/*
Theme Name: WordPress 形象官網示意
Description: WordPress 形象官網示意佈景主題。首頁每段文字都能在後台「首頁內容」改（藍色鉛筆即時預覽），附精簡後台與業主帳號類型。
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: qingge
*/
:root {
  --bg: #fbfbf9;
  --paper: #ffffff;
  --mist: #eef3f8;
  --ink: #1a2332;
  --ink-2: #4b5666;
  --ink-3: #8a94a3;
  --line: #e3e7ec;
  --blue: #2a5fb8;
  --blue-l: #dfe9f8;
  --amber: #eba24a;
  --night: #16202e;
  --serif: "Noto Serif TC", serif;
  --sans: "Noto Sans TC", system-ui, -apple-system, "Microsoft JhengHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.85; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.35; font-weight: 700; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }

/* 區塊標籤 01 About */
.sec-label { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 18px; }
.sec-label span { font-family: var(--serif); font-size: 15px; letter-spacing: 0; color: var(--blue); }
.sec-label span::after { content: ""; display: inline-block; width: 28px; height: 1px; background: currentColor; vertical-align: middle; margin-left: 12px; opacity: .6; }
.sec-head { margin-bottom: 40px; }
.sec-head h2 { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 40px); letter-spacing: .04em; }
.section { padding: 56px 0; }

/* 頁首 */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s; }
.site-header.scrolled { background: rgba(251, 251, 249, .94); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; width: 24px; height: 24px; }
.brand-mark i { border-radius: 3px; background: var(--blue); }
.brand-mark i:nth-child(2) { background: var(--amber); }
.brand-mark i:nth-child(3) { background: #8fb0e6; }
.brand-mark i:nth-child(4) { background: transparent; border: 1.5px solid #8fb0e6; }
.brand-name { font-family: var(--serif); font-size: 21px; font-weight: 700; letter-spacing: .12em; display: flex; align-items: baseline; gap: 10px; }
.brand-name small { font-family: var(--sans); font-size: 11px; font-weight: 400; letter-spacing: .16em; color: var(--ink-3); text-transform: uppercase; }
.site-nav { display: flex; gap: 36px; font-size: 15px; letter-spacing: .06em; }
.site-nav a { position: relative; padding: 4px 0; color: var(--ink-2); }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1px; background: var(--blue); transition: right .25s; }
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { right: 0; }
.menu-toggle { display: none; }

/* 主視覺 */
.hero { position: relative; min-height: min(86vh, 720px); min-height: min(86svh, 720px); display: flex; align-items: center; overflow: hidden; background: linear-gradient(180deg, #f4f7fb 0%, var(--bg) 100%); }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .75; }
.orb-1 { width: 520px; height: 520px; background: #cfe0f8; right: -80px; top: -120px; }
.orb-2 { width: 360px; height: 360px; background: #fbe4c4; right: 26%; bottom: -120px; opacity: .6; }
.orb-3 { width: 280px; height: 280px; background: #dbe9e1; left: -100px; bottom: 10%; opacity: .55; }
.grid-lines { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 96px 96px; opacity: .35; mask-image: linear-gradient(90deg, transparent 0%, #000 45%, #000 100%); -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%, #000 100%); }
.hero-inner { position: relative; z-index: 2; padding: 112px 0 64px; }
.hero-kicker { font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--blue); margin-bottom: 26px; }
.hero h1 { font-family: var(--serif); font-size: clamp(44px, 7vw, 92px); line-height: 1.22; letter-spacing: .08em; margin-bottom: 32px; }
.hero-sub { font-size: 17px; color: var(--ink-2); max-width: 34em; margin-bottom: 40px; }
.hero-more { display: inline-flex; align-items: center; gap: 16px; font-size: 13px; letter-spacing: .2em; color: var(--ink-2); }
.hero-more i { position: relative; width: 1px; height: 56px; background: var(--line); overflow: hidden; }
.hero-more i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--blue); animation: drop 2.2s ease-in-out infinite; }
@keyframes drop { to { top: 100%; } }

/* 主視覺裝置示意 */
.hero-devices { position: absolute; z-index: 1; right: max(24px, calc((100vw - 1180px) / 2 - 40px)); top: 50%; transform: translateY(-42%); width: min(46vw, 600px); }
.dev { position: relative; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 30px 70px rgba(26, 35, 50, .14); overflow: hidden; }
.dev-pc { border-radius: 14px; }
.dev-bar { display: flex; gap: 6px; padding: 10px 14px; background: #f5f7fa; border-bottom: 1px solid var(--line); }
.dev-bar i { width: 8px; height: 8px; border-radius: 50%; background: #d6dce5; }
.dev-phone { position: absolute; width: 30%; left: -12%; bottom: -14%; border-radius: 22px; border: 6px solid var(--night); }
.dev-screen { position: relative; display: flex; flex-direction: column; gap: 9px; padding: 9% 8%; }
.dev-pc .dev-screen { aspect-ratio: 16 / 10; padding-left: 24%; }
.dev-phone .dev-screen { aspect-ratio: 9 / 18; padding: 22% 10%; }
.dev-screen b { width: 56%; height: 14px; border-radius: 4px; background: rgba(26, 35, 50, .78); position: relative; z-index: 1; }
.dev-screen span { width: 40%; height: 6px; border-radius: 3px; background: rgba(26, 35, 50, .2); position: relative; z-index: 1; }
.dev-screen em { width: 72px; height: 22px; border-radius: 999px; background: var(--blue); margin-top: 8px; position: relative; z-index: 1; }
.scr-a { background: linear-gradient(120deg, #fff 0 46%, transparent 46%), linear-gradient(160deg, #cfe0fa 0%, #e9f1fd 55%, #fbe7c8 100%); }
.scr-a::after { content: ""; position: absolute; right: 12%; top: 18%; width: 22%; aspect-ratio: 1; border-radius: 50%; background: #fff6e4; }
.scr-b { background: linear-gradient(180deg, #fff 0 52%, #dbe8f8 52%); }
.scr-b b { width: 80%; height: 10px; }
.scr-b span { width: 64%; }
.scr-b em { width: 54%; height: 16px; }

/* 關於我們 */
.about-inner { display: grid; grid-template-columns: 1fr 1fr; column-gap: 80px; }
.about-inner .sec-label { grid-column: 1 / -1; }
.about-title { font-family: var(--serif); font-size: clamp(28px, 3.2vw, 40px); letter-spacing: .05em; line-height: 1.6; }
.about-text { color: var(--ink-2); padding-top: 8px; }
.about-text p + p { margin-top: 18px; }
.about-values { margin-top: 28px; border-top: 1px solid var(--line); }
.about-values li { display: flex; align-items: baseline; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.about-values b { font-family: var(--serif); font-size: 19px; color: var(--ink); width: 2.6em; flex: none; letter-spacing: .1em; }

/* 服務項目 */
.services { background: var(--mist); }
.service-list { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #cfd8e3; }
.service-list li { padding: 28px 28px 30px 0; border-right: 1px solid #cfd8e3; }
.service-list li + li { padding-left: 28px; }
.service-list li:last-child { border-right: 0; }
.svc-no { display: block; font-family: var(--serif); font-size: 40px; line-height: 1; color: #b9cbe6; margin-bottom: 18px; }
.service-list h3 { font-size: 19px; margin-bottom: 12px; letter-spacing: .04em; }
.service-list p { font-size: 15px; color: var(--ink-2); }

/* 工作流程（7 步立體方塊） */
.sec-desc { margin-top: 18px; color: var(--ink-2); max-width: 40em; }
.blk {
  --d: 16px;
  position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  min-height: 92px; padding: 14px 10px; margin: var(--d) var(--d) 0 0;
  background: var(--c); color: #fff;
}
.blk::before { content: ""; position: absolute; left: 0; right: 0; top: calc(-1 * var(--d)); height: var(--d); background: var(--c-top); transform: skewX(-45deg); transform-origin: bottom left; }
.blk::after { content: ""; position: absolute; top: 0; bottom: 0; right: calc(-1 * var(--d)); width: var(--d); background: var(--c-side); transform: skewY(-45deg); transform-origin: top left; }
.blk b { font-size: 16px; letter-spacing: .04em; }
.blk small { font-size: 12.5px; opacity: .88; margin-top: 4px; line-height: 1.5; }
.b1 { --c: #3d7fc4; --c-top: #7eaedc; --c-side: #2b5d93; }
.b2 { --c: #7a5fc8; --c-top: #a995e0; --c-side: #574099; }
.b3 { --c: #e08b2e; --c-top: #f0b877; --c-side: #ad6618; }
.b4 { --c: #c8a24c; --c-top: #e0c88c; --c-side: #9a7a30; }
.b5 { --c: #3e9f6c; --c-top: #80c7a0; --c-side: #2b7550; }
.b6 { --c: #7a5fc8; --c-top: #a995e0; --c-side: #574099; }
.b7 { --c: #7d8796; --c-top: #b3bac5; --c-side: #5b6472; }

.flow { display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 64px; row-gap: 84px; margin-bottom: 48px; }
.b1 { grid-area: 1 / 1; } .b2 { grid-area: 1 / 2; } .b3 { grid-area: 1 / 3; } .b4 { grid-area: 1 / 4; }
.b5 { grid-area: 2 / 4; } .b6 { grid-area: 2 / 3; } .b7 { grid-area: 2 / 2; }
.to { position: absolute; z-index: 2; width: 0; height: 0; border: 12px solid transparent; }
.to-r { right: -54px; top: 50%; margin-top: -12px; border-left: 18px solid #5a6474; border-right: 0; }
.to-l { left: -42px; top: 50%; margin-top: -12px; border-right: 18px solid #5a6474; border-left: 0; }
.to-d { left: 50%; bottom: -54px; margin-left: -12px; border-top: 18px solid #5a6474; border-bottom: 0; }
.to-d::before { content: ""; position: absolute; left: -1.5px; top: -46px; width: 3px; height: 28px; background: #5a6474; }
.loop { grid-area: 2 / 1 / 2 / 4; align-self: start; margin-top: -58px; position: relative; padding-top: 14px; text-align: center; font-size: 13.5px; font-weight: 700; color: #d2524a; }
.loop::before { content: ""; position: absolute; left: 16%; right: 18%; top: 4px; border-top: 3px dashed #d2524a; }
.loop::after { content: ""; position: absolute; left: calc(16% - 14px); top: -4px; border: 9px solid transparent; border-right: 15px solid #d2524a; border-left: 0; }

.stage { display: grid; grid-template-columns: 1fr 1.1fr 1fr; grid-template-areas: "test move live" "copy . ." "db . ."; column-gap: 40px; align-items: center; max-width: 960px; margin: 0 auto; }
.blk.big { --d: 22px; min-height: 140px; }
.blk.big b { font-size: 22px; letter-spacing: .1em; }
.blk.big small { font-size: 14px; }
.st-test { grid-area: test; --c: #3d7fc4; --c-top: #7eaedc; --c-side: #2b5d93; }
.st-live { grid-area: live; --c: #3e9f6c; --c-top: #80c7a0; --c-side: #2b7550; }
.st-move { grid-area: move; text-align: center; font-size: 13.5px; color: var(--ink-2); padding-top: 14px; }
.st-move strong { display: block; color: #2f8a5c; font-size: 15px; padding-bottom: 12px; margin-bottom: 10px; position: relative; }
.st-move strong::after { content: ""; position: absolute; left: 0; right: 10px; bottom: 0; height: 3px; background: #3e9f6c; }
.st-move strong::before { content: ""; position: absolute; right: -6px; bottom: -8px; border: 9.5px solid transparent; border-left: 16px solid #3e9f6c; border-right: 0; }
.st-move span { line-height: 1.7; }
.st-copy { grid-area: copy; justify-self: center; position: relative; height: 92px; width: 3px; background: #7a5fc8; margin: 8px 0 6px -22px; }
.st-copy::before { content: ""; position: absolute; left: -8px; top: -6px; border: 9.5px solid transparent; border-bottom: 16px solid #7a5fc8; border-top: 0; }
.st-copy span { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); white-space: nowrap; font-size: 13px; font-weight: 700; color: #6a50b8; }
.db { grid-area: db; justify-self: center; position: relative; width: 132px; height: 92px; margin: 14px 0 0 -22px; background: linear-gradient(90deg, #7a5fc8, #8f76d6 45%, #6a50b8); border-radius: 0 0 66px 66px / 0 0 18px 18px; display: flex; align-items: center; justify-content: center; color: #fff; }
.db::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 36px; border-radius: 50%; background: #b3a2e6; }
.db::after { content: ""; position: absolute; left: 0; right: 0; top: 30px; height: 36px; border-radius: 50%; border-bottom: 1.5px solid rgba(255, 255, 255, .45); }
.db b { position: relative; z-index: 1; margin-top: 14px; letter-spacing: .06em; }
.st-db-note { grid-area: db; justify-self: center; align-self: end; margin: 0 0 -32px -22px; font-size: 13px; color: var(--ink-3); }
.process-note { margin: 48px auto 0; max-width: 960px; background: var(--mist); border-radius: 10px; padding: 20px 26px; color: var(--ink-2); font-size: 15px; }
.process-note strong { color: var(--ink); }

/* 精選作品 */
.work { display: grid; grid-template-columns: 1.35fr 1fr; gap: 72px; align-items: center; }
.work + .work { margin-top: 112px; }
.work-rev { grid-template-columns: 1fr 1.35fr; }
.work-rev .work-visual { order: 2; }
.work-visual { position: relative; aspect-ratio: 16 / 11; border-radius: 6px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.wv-blue { background: linear-gradient(140deg, #e4edfb, #c4d7f4); }
.wv-warm { background: linear-gradient(140deg, #fbefe0, #efcfa4); }
.wv-sage { background: linear-gradient(140deg, #e8f0ea, #c3d8c8); }
.wv-pc { position: relative; width: 70%; aspect-ratio: 16 / 10; background: var(--paper); border-radius: 8px; box-shadow: 0 20px 50px rgba(26, 35, 50, .16); padding: 7% 6%; display: flex; flex-direction: column; gap: 8px; transition: transform .5s; }
.wv-pc b { width: 46%; height: 12px; border-radius: 3px; background: rgba(26, 35, 50, .78); }
.wv-pc span { width: 34%; height: 5px; border-radius: 3px; background: rgba(26, 35, 50, .18); }
.wv-pc em { width: 60px; height: 18px; border-radius: 999px; margin-top: 6px; background: var(--blue); }
.wv-pc i { position: absolute; right: 6%; top: 12%; bottom: 12%; width: 40%; border-radius: 6px; }
.wv-phone { position: absolute; right: 9%; bottom: 10%; width: 17%; aspect-ratio: 9 / 18; background: var(--paper); border: 4px solid var(--night); border-radius: 14px; padding: 18px 8px 8px; display: flex; flex-direction: column; gap: 6px; transition: transform .5s; }
.wv-phone b { width: 80%; height: 7px; border-radius: 2px; background: rgba(26, 35, 50, .7); }
.wv-phone span { width: 60%; height: 4px; border-radius: 2px; background: rgba(26, 35, 50, .18); }
.wv-phone i { margin-top: auto; height: 42%; border-radius: 4px; }
.wv-blue i { background: linear-gradient(160deg, #cfe0fa, #fbe7c8); }
.wv-warm i { background: linear-gradient(160deg, #f6dcb8, #c99a6b); }
.wv-sage i { background: linear-gradient(160deg, #d3e3d8, #8fae98); }
.wv-warm em { background: #b7773a; }
.wv-sage em { background: #4f7a5c; }
.work:hover .wv-pc { transform: translateY(-6px); }
.work:hover .wv-phone { transform: translateY(-10px); }
.work-cat { font-size: 13px; letter-spacing: .14em; color: var(--blue); margin-bottom: 14px; }
.work-info h3 { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 30px); letter-spacing: .05em; margin-bottom: 18px; }
.work-info > p:not(.work-cat) { color: var(--ink-2); margin-bottom: 26px; }
.work-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.work-tags li { font-size: 13px; color: var(--ink-2); border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 3px 14px; }

/* 理念 */
.quote { padding: 120px 0; background: linear-gradient(120deg, #e9f0fa 0%, #f6f1e8 100%); text-align: center; }
.quote blockquote { margin: 0; }
.quote p { font-family: var(--serif); font-size: clamp(22px, 2.8vw, 34px); line-height: 1.8; letter-spacing: .06em; }
.quote cite { display: block; margin-top: 26px; font-style: normal; font-size: 14px; letter-spacing: .14em; color: var(--ink-3); }

/* 最新消息 */
.sec-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.link-more { font-size: 14px; letter-spacing: .08em; color: var(--blue); }
.news-list { border-top: 1px solid var(--line); }
.news-list a { display: grid; grid-template-columns: 130px 80px 1fr; align-items: center; gap: 16px; padding: 26px 8px; border-bottom: 1px solid var(--line); transition: background .2s, padding .2s; }
.news-list a:hover { background: var(--paper); padding-left: 18px; }
.news-list time { font-family: var(--serif); color: var(--ink-3); letter-spacing: .06em; }
.news-cat { justify-self: start; font-size: 12px; color: var(--blue); background: var(--blue-l); border-radius: 4px; padding: 1px 10px; }
.news-title { font-size: 16px; }

/* 聯絡 */
.contact { background: var(--bg); color: var(--ink); padding: 56px 0; position: relative; }
.contact-inner { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: center; }
.contact h2 { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 40px); letter-spacing: .04em; line-height: 1.35; margin-bottom: 14px; color: var(--ink); }
.contact-main p { color: var(--ink-2); margin-bottom: 26px; }
.btn-light { display: inline-flex; align-items: center; gap: 12px; padding: 11px 28px; border: 1px solid var(--blue); border-radius: 999px; color: var(--blue); letter-spacing: .08em; transition: background .25s, color .25s; }
.btn-light::after { content: "→"; transition: transform .25s; }
.btn-light:hover { background: var(--blue); color: #fff; }
.btn-light:hover::after { transform: translateX(4px); }
.contact-info { border-top: 1px solid var(--line); }
.contact-info div { display: flex; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-info dt { width: 76px; flex: none; font-size: 13px; color: var(--ink-3); letter-spacing: .08em; padding-top: 2px; }
.contact-info dd { font-size: 15px; }

/* 頁尾 */
.site-footer { background: var(--bg); color: var(--ink-3); font-size: 13px; padding: 22px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---- 響應式 ---- */
@media (max-width: 1100px) {
  .site-nav { gap: 24px; }
  .hero-devices { width: 44vw; opacity: .9; }
  .service-list { grid-template-columns: repeat(2, 1fr); }
  .service-list li:nth-child(2) { border-right: 0; }
  .service-list li:nth-child(3) { padding-left: 0; }
  .service-list li:nth-child(n+3) { border-top: 1px solid #cfd8e3; }
  .work { gap: 48px; }
}

@media (max-width: 900px) {
  .menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .8); cursor: pointer; padding: 0 10px; }
  .menu-toggle span { height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav { position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--paper); box-shadow: 0 12px 30px rgba(26, 35, 50, .1); padding: 6px 24px 16px; display: none; font-size: 16px; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav a::after { display: none; }
  .site-header:has(.site-nav.open) { background: var(--paper); }

  .hero { min-height: auto; flex-direction: column; align-items: stretch; }
  .hero-inner { padding: 140px 0 48px; }
  .hero-sub { margin-bottom: 40px; }
  .hero-devices { position: relative; right: auto; top: auto; transform: none; width: min(560px, calc(100% - 96px)); margin: 0 auto 64px; left: 4%; }
  .section { padding: 48px 0; }
  .about-inner { grid-template-columns: 1fr; row-gap: 18px; }
  .about-inner .sec-label { margin-bottom: 0; }
  .work, .work-rev { grid-template-columns: 1fr; gap: 32px; }
  .work-rev .work-visual { order: 0; }
  .work + .work { margin-top: 80px; }
  .contact-inner { grid-template-columns: 1fr; gap: 28px; align-items: start; }
}

@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { height: 64px; }
  .site-nav { top: 64px; }
  .brand-name small { display: none; }
  .br-pc { display: none; }
  .hero-inner { padding: 112px 0 40px; }
  .hero h1 { letter-spacing: .05em; }
  .hero-sub { font-size: 16px; }
  .hero-devices { width: calc(100% - 80px); left: 0; margin: 0 16px 52px auto; }
  .sec-head { margin-bottom: 30px; }
  .section { padding: 40px 0; }
  .service-list { grid-template-columns: 1fr; }
  .service-list li, .service-list li + li { padding: 28px 0; border-right: 0; }
  .service-list li + li { border-top: 1px solid #cfd8e3; }
  .svc-no { font-size: 34px; margin-bottom: 16px; }
  .quote { padding: 88px 0; }
  .news-list a { grid-template-columns: auto 1fr; row-gap: 6px; padding: 20px 4px; }
  .news-title { grid-column: 1 / -1; }
  .sec-head-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .contact { padding: 48px 0; }
  .contact-info div { gap: 16px; }
}

/* 工作流程：窄螢幕改直排 */
@media (max-width: 1000px) {
  .flow { grid-template-columns: 1fr; row-gap: 58px; max-width: 420px; margin-inline: auto; padding-right: 16px; }
  .flow > li { grid-area: auto !important; }
  .blk { min-height: 78px; }
  .to, .to-r, .to-l, .to-d { left: 50%; right: auto; top: auto; bottom: -46px; margin: 0 0 0 -12px; border: 12px solid transparent; border-top: 16px solid #5a6474; border-bottom: 0; }
  .to-d::before { display: none; }
  .loop { margin: -30px 16px -6px 0; padding: 10px 14px; border: 2px dashed #d2524a; border-radius: 10px; background: #fff6f5; }
  .loop::before { display: none; }
  .b3 .to { display: none; }
  .loop::after { display: block; left: 50%; top: auto; bottom: -40px; margin-left: -12px; border: 12px solid transparent; border-top: 16px solid #5a6474; border-bottom: 0; }

  .stage { grid-template-columns: 1fr; grid-template-areas: "db" "note" "copy" "test" "move" "live"; max-width: 380px; padding-right: 22px; row-gap: 0; }
  .db, .st-copy { margin-left: 0; }
  .db { margin-top: 20px; }
  .st-db-note { grid-area: note; align-self: center; margin: 8px 0 0; }
  .st-copy { height: 64px; margin: 6px 0 14px; }
  .st-copy span { right: auto; left: 16px; }
  .st-move { padding: 20px 0 40px; }
  .st-move strong { display: inline-block; padding: 0 0 10px; }
  .st-move strong::after { left: 50%; right: auto; top: 30px; bottom: auto; width: 3px; height: 34px; margin-left: -1.5px; }
  .st-move strong::before { left: 50%; right: auto; top: 62px; bottom: auto; margin-left: -9.5px; border: 9.5px solid transparent; border-top: 16px solid #3e9f6c; border-bottom: 0; }
  .st-move span { display: block; margin-top: 44px; }
  .process-note { margin-top: 56px; padding: 18px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-more i::after { animation: none; }
  .wv-pc, .wv-phone, .btn-light, .news-list a { transition: none; }
}

/* ===== 以下為 WordPress 版才有的部分 ===== */
.sec-label em { font-style: normal; }
.hero-sub .nb { display: block; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 16px; border-radius: 6px; }
.skip-link:focus { top: 12px; }
.site-header.solid { background: rgba(251, 251, 249, .96); box-shadow: 0 1px 0 var(--line); }
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
.process { background: var(--mist); }
.process .process-note { background: var(--paper); }
.work-visual.has-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.work-desc { color: var(--ink-2); margin-bottom: 26px; }
.news-empty { color: var(--ink-3); padding: 24px 0; border-top: 1px solid var(--line); }

/* 後台版面欄位：上下間距、標題置中、補充文字 */
.section.sp-s { padding: 36px 0; }
.section.sp-l { padding: 96px 0; }
.al-c .sec-head, .al-c .about-title { text-align: center; }
.al-c .sec-head .sec-desc { margin-inline: auto; }
.al-c .sec-head-row { flex-direction: column; align-items: center; }
.extra { margin-top: 40px; color: var(--ink-2); max-width: 46em; }

/* 後台導覽 */
.tour-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.tour-tabs [role="tab"] { font: inherit; font-size: 15px; letter-spacing: .06em; padding: 9px 22px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink-2); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.tour-tabs [role="tab"]:hover { border-color: var(--blue); color: var(--blue); }
.tour-tabs [role="tab"][aria-selected="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.tour-tabs [role="tab"]:focus-visible { outline: 3px solid var(--blue-l); outline-offset: 2px; }
.tour-panel { display: grid; grid-template-columns: 1.7fr 1fr; gap: 48px; align-items: start; }
.tour-panel[hidden] { display: none; }
.tour-shot { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 24px 60px rgba(26, 35, 50, .12); }
.tour-bar { display: flex; align-items: center; gap: 6px; padding: 9px 14px; background: #f5f7fa; border-bottom: 1px solid var(--line); }
.tour-bar i { width: 8px; height: 8px; border-radius: 50%; background: #d6dce5; }
.tour-bar span { margin-left: 10px; font-size: 12px; color: var(--ink-3); }
.tour-shot img { display: block; width: 100%; height: auto; }
.tour-missing { aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; color: var(--ink-3); }
.tour-text h3 { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 28px); letter-spacing: .04em; margin: 6px 0 22px; }
.tour-steps { counter-reset: st; }
.tour-steps li { counter-increment: st; position: relative; padding: 14px 0 14px 46px; border-top: 1px solid var(--line); color: var(--ink-2); }
.tour-steps li:last-child { border-bottom: 1px solid var(--line); }
.tour-steps li::before { content: counter(st); position: absolute; left: 0; top: 14px; width: 28px; height: 28px; border-radius: 50%; background: #f08a24; color: #fff; font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; line-height: 1; }
.tour-fine { margin-top: 26px; font-size: 13px; color: var(--ink-3); }
@media (max-width: 900px) {
  .tour-panel { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 600px) {
  .hero-sub .nb { display: inline; }
  .tour-tabs { gap: 8px; }
  .tour-tabs [role="tab"] { padding: 7px 16px; font-size: 14px; }
}

/* 內頁：消息列表、單篇、一般頁面 */
.page-main { padding: 150px 0 110px; min-height: 70vh; }
.wrap-narrow { width: min(820px, 100% - 48px); }
.entry-head { margin-bottom: 40px; }
.entry-head h1 { font-family: var(--serif); font-size: clamp(28px, 3.6vw, 42px); letter-spacing: .04em; }
.entry-meta { display: flex; align-items: center; gap: 14px; color: var(--ink-3); margin-bottom: 14px; font-family: var(--serif); }
.entry-thumb { margin: 0 0 36px; }
.entry-thumb img { width: 100%; height: auto; border-radius: 8px; }
.entry-body { font-size: 17px; }
.entry-body > * + * { margin-top: 1.2em; }
.entry-body img { max-width: 100%; height: auto; border-radius: 6px; }
.entry-body h2, .entry-body h3 { font-family: var(--serif); margin-top: 2em; }
.entry-body a { color: var(--blue); text-decoration: underline; }
.entry-back { margin-top: 56px; }
.entry-back a, .pager a { color: var(--blue); }
.pager { margin-top: 32px; }
.pager .nav-links { display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 600px) {
  .page-main { padding: 112px 0 80px; }
  .wrap-narrow { width: calc(100% - 32px); }
}

/* 網站標誌（後台上傳了就取代四格圖示） */
.brand-logo { display: block; height: 32px; width: auto; }
/* 後台截圖點了開大圖 */
.tour-zoom { position: relative; display: block; cursor: zoom-in; }
.tour-zoom-tip { position: absolute; right: 12px; bottom: 12px; font-size: 13px; color: #fff; background: rgba(26, 35, 50, .72); padding: 4px 12px; border-radius: 999px; }
.sec-head h2, .tour-text h3 { text-wrap: balance; }
/* 手機上避免最後一行只剩一兩個字 */
.hero-sub, .process-note, .sec-desc, .service-list p, .tour-steps li { text-wrap: pretty; }

/* 最下面的名片（製作者） */
.namecard { background: var(--bg); padding: 8px 0 40px; text-align: center; }
.namecard-label { font-size: 12px; letter-spacing: .2em; color: var(--ink-3); margin-bottom: 12px; }
.namecard a { display: block; width: min(560px, 100%); margin: 0 auto; border-radius: 10px; overflow: hidden; box-shadow: 0 10px 28px rgba(26, 35, 50, .16); transition: transform .25s; }
.namecard a:hover { transform: translateY(-3px); }
.namecard img { display: block; width: 100%; height: auto; }
@media (prefers-reduced-motion: reduce) { .namecard a { transition: none; } }

/* ===== 10/21 統一排法：每一區都是「小標＋標題在上、內容在下」，靠左、同寬；間距收緊 ===== */
.section { padding: 48px 0; }
.sec-head { margin-bottom: 28px; }
.sec-label { margin-bottom: 12px; }
.about-inner { grid-template-columns: 1fr; row-gap: 0; }
.about-inner .sec-label { margin-bottom: 12px; }
.about-title { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: .04em; line-height: 1.35; margin-bottom: 20px; }
.about-text { padding-top: 0; max-width: 860px; }
.about-values { margin-top: 20px; }
.flow { margin-bottom: 40px; }
.stage { margin: 0; }
.process-note { margin: 32px 0 0; max-width: none; }
.contact { padding: 48px 0 32px; }
.contact-inner { grid-template-columns: 1fr; gap: 20px; align-items: start; }
.contact-main p { margin-bottom: 20px; }
.contact-info { max-width: 560px; }
.namecard { padding: 0 0 36px; }
@media (max-width: 900px) {
  .section { padding: 40px 0; }
  .contact { padding: 40px 0 28px; }
}
@media (max-width: 600px) {
  .section { padding: 32px 0; }
  .sec-head { margin-bottom: 22px; }
  .contact { padding: 32px 0 24px; }
  .namecard { padding: 0 0 28px; }
}

/* ===== 10/22 05 方案內容清單；06 聯絡（左）＋名片（右） ===== */
/* 標題「WordPress 網頁製作・形象官網內容包含」手機寬只在空白/標點斷行，不把「製作」拆兩行 */
#plans .sec-head h2 { word-break: keep-all; }
.plan-list { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 48px; border-top: 1px solid var(--line); }
.plan-list li { position: relative; padding: 12px 0 12px 30px; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink); }
.plan-list li::before { content: ""; position: absolute; left: 2px; top: 18px; width: 12px; height: 7px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }
.contact { background: var(--mist); padding: 48px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 480px; gap: 48px; align-items: center; }
.contact-main .sec-desc { margin: 14px 0 24px; }
.namecard { background: none; padding: 0; margin: 0; text-align: left; }
.namecard-label { margin-bottom: 10px; }
.namecard a { width: 100%; margin: 0; }
@media (max-width: 900px) {
  .plan-list { grid-template-columns: 1fr; }
  .contact { padding: 40px 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .namecard a { width: min(480px, 100%); }
}
@media (max-width: 600px) {
  .contact { padding: 32px 0; }
  .namecard { padding: 0; }
}

/* 01 優勢：6 格（桌機 3 欄、平板 2 欄、手機 1 欄） */
.about-text { max-width: none; }
.about-text p { max-width: 860px; }
.about-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; margin-top: 24px; border-top: 0; }
.about-values li { display: block; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 0; }
.about-values b { display: block; width: auto; font-size: 18px; letter-spacing: .06em; margin-bottom: 4px; }
.about-values span { display: block; color: var(--ink-2); font-size: 15px; }
@media (max-width: 900px) { .about-values { grid-template-columns: repeat(2, 1fr); gap: 0 24px; } }
@media (max-width: 600px) { .about-values { grid-template-columns: 1fr; } }

/* 06 名片放大：文字窄欄、名片寬欄 */
.contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 48px; }
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .namecard a { width: 100%; }
}
.about-values span { text-wrap: pretty; }

/* 06 名片（網頁文字版，照 90x54mm 正式名片排；字隨寬度縮放、小字有下限） */
.ncard { position: relative; display: block; container-type: inline-size; aspect-ratio: 5 / 3; overflow: hidden; border-radius: 12px; background: #0d1117; color: #f0f4f9; text-decoration: none; box-shadow: 0 12px 30px rgba(26, 35, 50, .18); transition: transform .25s; font-family: "Microsoft JhengHei", "Noto Sans TC", sans-serif; }
.ncard:hover { transform: translateY(-3px); }
.ncard-slab { position: absolute; inset: 0; background: linear-gradient(160deg, #f5b641 0%, #e0842a 100%); clip-path: polygon(100% 8%, 100% 100%, 86% 100%); }
.ncard-body { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 4.2cqw; height: 100%; padding: 6cqw 6.5cqw; max-width: 84%; }
.ncard-body > span, .ncard-body span span { display: block; }
.ncard-kicker { font-size: max(11px, 1.7cqw); letter-spacing: .45em; color: #f5b641; font-weight: 700; margin-bottom: .6cqw; }
.ncard-name { font-size: 7.4cqw; font-weight: 800; line-height: 1; letter-spacing: -.01em; white-space: nowrap; }
.ncard-name em { font-style: normal; color: #f5b641; }
.ncard-role { font-size: max(13px, 2.4cqw); color: #b3bfcd; margin-top: 1.3cqw; letter-spacing: .25em; }
.ncard-keys { display: flex !important; flex-wrap: wrap; gap: 1.1cqw; }
.ncard-keys i { font-style: normal; font-size: max(13px, 2.4cqw); font-weight: 700; padding: .5em .85em; border-radius: 8px; background: rgba(245, 182, 65, .14); border: 2px solid rgba(245, 182, 65, .55); color: #ffd487; }
.ncard-full { margin-top: 1.4cqw; font-size: max(13px, 2cqw); color: #a7b4c6; line-height: 1.7; }
.ncard-bar { padding-top: 1.5cqw; border-top: 1px solid rgba(255, 255, 255, .16); }
.ncard-stack, .ncard-site { font-family: Consolas, monospace; font-size: max(12px, 1.75cqw); letter-spacing: .02em; }
.ncard-stack { color: #8f9fb5; }
.ncard-stack b { color: #cfdbea; font-weight: 600; }
.ncard-site { color: #f5b641; margin-top: .4cqw; }
@media (prefers-reduced-motion: reduce) { .ncard { transition: none; } }
@media (max-width: 600px) { .ncard { aspect-ratio: auto; } .ncard-body { max-width: 100%; padding: 22px 20px; gap: 16px; } .ncard-slab { clip-path: polygon(100% 0, 100% 100%, 92% 100%); } }
.contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; }
.ncard-full { font-size: max(14px, 2.1cqw); }
.ncard-stack, .ncard-site { font-size: max(13px, 1.9cqw); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 24px; } }
.ncard-full .nl { display: inline; }
.ncard-full .sep { display: inline; }
.ncard-stack { text-wrap: balance; }
@media (max-width: 600px) {
  .ncard-full .nl { display: block; }
  .ncard-full .sep, .ncard-full br { display: none; }
}
/* 名片驗證後修正：1100 以下就改上下排（名片不再變小）、技術列分兩組不拆、上下留白 */
.contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr); }
.contact-main .sec-desc { text-wrap: pretty; }
.ncard-body { gap: 3.4cqw; padding: 6.5cqw 6.5cqw; }
.ncard-name { font-size: 7cqw; }
.ncard-kicker { font-size: max(12px, 1.7cqw); }
.ncard-stack .ng { display: inline; white-space: nowrap; }
@media (max-width: 1100px) {
  .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .ncard { max-width: 820px; }
}
@media (max-width: 600px) {
  .ncard-body { gap: 14px; padding: 20px 18px; }
  .ncard-stack .ng { display: block; }
  .ncard-stack .ng + .ng { margin-top: 2px; }
}
.ncard-stack .dot { display: inline; }
@media (max-width: 600px) { .ncard-stack .dot { display: none; } }
@media (max-width: 600px) { .ncard-name { font-size: 9cqw; } }
/* 全頁驗證後修正 */
.about-title { margin-bottom: 28px; }
.contact-grid { align-items: start; }
@media (max-width: 900px) { .about-title { margin-bottom: 22px; } }
.nbt { display: inline !important; }
