/* =============================================================================
   餐飲小店點餐系統｜接案作品集官網
   design.css v2 — 精品咖啡 × 專業工作室
   Mobile-first · 純 CSS · 無框架
   -----------------------------------------------------------------------------
   設計 DNA
     色彩：深墨綠 #1E4D3B（專業、餐飲）+ 琥珀 #C4783A（CTA）+ 奶油 #FBF7F1（底）
     字體：Noto Serif TC（展示襯線）/ Noto Sans TC（內文）/ Manrope（數字標籤）
     節奏：8pt 間距系統 · clamp() 流體排版 · 克制陰影兩層 · 44px 觸控目標
   ============================================================================= */

/* 本地字型：霞鶩文楷 TC（OFL 可商用，僅含本站用到的 45 個字，8.4 KB） */
@import url("fonts.css");

/* ========================= 1. 設計代幣 ========================= */
:root {
  /* 色 */
  --ink:        #14120F;
  --ink-2:      #3E382F;
  --muted:      #7A7266;
  --brand:      #1E4D3B;
  --brand-2:    #2F6B52;
  --brand-soft: #E8F0EA;
  --brand-tint: #F1F6F2;
  --accent:     #C4783A;
  --accent-2:   #A85F26;
  --accent-soft:#F7EADC;
  --cream:      #FBF7F1;
  --cream-2:    #F4EDE3;
  --surface:    #FFFFFF;
  --line:       #E8E0D4;
  --line-2:     #D8CDBC;
  --ok:         #2F6B52;
  --err:        #B4462F;
  --warn:       #9A6B1F;

  /* 間距（8pt） */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 20px; --s6: 24px; --s8: 32px; --s10: 40px;
  --s12: 48px; --s16: 64px; --s20: 80px; --s24: 96px;

  /* 圓角 */
  --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --r-full: 999px;

  /* 陰影（克制：兩層） */
  --sh-1: 0 1px 2px rgba(20, 18, 15, .05), 0 6px 20px rgba(20, 18, 15, .05);
  --sh-2: 0 2px 6px rgba(20, 18, 15, .06), 0 18px 44px rgba(20, 18, 15, .10);
  --sh-brand: 0 10px 30px rgba(30, 77, 59, .22);

  /* 動效 */
  --ease: cubic-bezier(.2, 0, 0, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --t-fast: 150ms; --t-mid: 260ms; --t-slow: 520ms;

  /* 字體 */
  --font-display: "Noto Serif TC", "Songti TC", Georgia, serif;
  --font-body: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  --font-num: "Manrope", "Noto Sans TC", system-ui, sans-serif;

  /* 尺度 */
  --maxw: 1160px;
  --nav-h: 68px;
  --tap: 44px;
}

/* ========================= 2. Reset / Base ========================= */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.85;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--accent-2); }
ul, ol { margin: 0 0 1em; padding-left: 1.15em; }
p { margin: 0 0 1.1em; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.3; margin: 0 0 .5em; font-weight: 700; letter-spacing: .005em; }
h1 { font-size: clamp(1.8rem, 6.6vw, 3.35rem); }
h2 { font-size: clamp(1.45rem, 3.6vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2.2vw, 1.3rem); }
h1, h2, h3, h4, p, li, td, th { overflow-wrap: break-word; word-break: normal; }
strong { font-weight: 700; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .88em; background: var(--cream-2); padding: .12em .45em; border-radius: 6px;
}
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--brand); color: #fff; }

/* ========================= 3. 排版元件 ========================= */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: clamp(56px, 9vw, 104px) 0; }
.section--cream { background: var(--cream-2); }
.section--brand { background: var(--brand); color: #EAF2ED; }
.section--dark { background: var(--ink); color: #E7E1D8; }
.section--tint { background: var(--brand-tint); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-num); font-size: .74rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--accent-2);
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.eyebrow--light { color: #F0C89A; }
.eyebrow--light::before { background: linear-gradient(90deg, #F0C89A, transparent); }

.sec-head { max-width: 640px; margin-bottom: clamp(30px, 5vw, 52px); }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head p { color: var(--ink-2); font-size: 1.03rem; margin-bottom: 0; }
.section--dark .sec-head p, .section--brand .sec-head p { color: rgba(255,255,255,.72); }
.sec-title { margin-bottom: .35em; }
.lead-lg { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--ink-2); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--brand); color: #fff; padding: 10px 18px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ========================= 4. 導覽列 ========================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 90; height: var(--nav-h);
  background: rgba(251, 247, 241, .82);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-mid) var(--ease), background var(--t-mid) var(--ease);
}
.nav.is-stuck { border-bottom-color: var(--line); background: rgba(251, 247, 241, .94); }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s4); }

/* ---------------------------------------------------------------------------
   品牌標誌（v3 商業標示版 · A2 產品層級）
   圖形：斜頂店面 ＋ 橘色訂單小票（純直線，零弧線）
   字標：已轉成向量路徑的 SVG → 不依賴任何字型檔，送印刷／割字都不走鐘
   --------------------------------------------------------------------------- */
.brand { display: inline-flex; align-items: center; color: var(--ink); }
.brand__mark {
  display: block; flex: 0 0 auto; height: 46px; width: auto;
}
.brand__mark img { display: block; height: 100%; width: auto; }

/* 頁尾的公司 LOCKUP 尺寸略大，給它「署名」的份量 */
.footer__brand .brand__mark { height: 52px; }
.brand__text { font-family: var(--font-display); font-weight: 700; font-size: 1.06rem; line-height: 1.15; }
.brand__text small {
  display: block; font-family: var(--font-num); font-size: .6rem; font-weight: 700;
  letter-spacing: .2em; color: var(--muted); text-transform: uppercase;
}

/* 頁尾使用反白版 LOCKUP */
.brand__mark--rev img { filter: none; }

.nav__toggle {
  width: var(--tap); height: var(--tap); border: 1px solid var(--line);
  border-radius: 12px; background: var(--surface); cursor: pointer;
  display: grid; place-content: center; gap: 5px;
}
.nav__toggle span { display: block; width: 19px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__menu {
  position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: var(--cream); border-bottom: 1px solid var(--line);
  box-shadow: var(--sh-2); display: none;
  max-height: calc(100dvh - var(--nav-h)); overflow-y: auto;
  padding: var(--s2) 0 var(--s6);
}
.nav__menu.is-open { display: block; animation: menuIn var(--t-mid) var(--ease); }
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.nav__menu ul { list-style: none; margin: 0; padding: 0 22px; }
.nav__menu li + li { border-top: 1px solid var(--line); }
.nav__menu a {
  display: flex; align-items: center; min-height: var(--tap);
  color: var(--ink); font-weight: 600; font-size: 1.02rem;
}
.nav__menu ul a[aria-current="page"] { color: var(--brand-2); }
.nav__cta { padding: var(--s4) 22px 0; }
body { padding-top: var(--nav-h); }

/* ========================= 5. 按鈕 / 標籤 ========================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 12px 26px; border-radius: var(--r-full);
  font-family: var(--font-body); font-weight: 700; font-size: .97rem; letter-spacing: .01em;
  cursor: pointer; border: 1.5px solid transparent; text-align: center;
  transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 22px rgba(196,120,58,.28); }
.btn--primary:hover { background: var(--accent-2); color: #fff; box-shadow: 0 12px 28px rgba(196,120,58,.34); }
.btn--brand { background: var(--brand); color: #fff; box-shadow: var(--sh-brand); }
.btn--brand:hover { background: var(--brand-2); color: #fff; }
.btn--outline { background: transparent; color: var(--brand); border-color: var(--line-2); }
.btn--outline:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-tint); }
.btn--ghost-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.28); }
.btn--ghost-light:hover { background: rgba(255,255,255,.16); color: #fff; }
.btn--block { display: flex; width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }
.btn-row > .btn { flex: 1 1 190px; }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 15px; border-radius: var(--r-full);
  background: var(--brand-soft); color: var(--brand);
  font-size: .84rem; font-weight: 700;
}
.chip--accent { background: var(--accent-soft); color: var(--accent-2); }
.chip--outline { background: transparent; border: 1px solid var(--line-2); color: var(--ink-2); }
.badge-new {
  position: absolute; top: -13px; left: var(--s6);
  background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700;
  padding: 5px 13px; border-radius: var(--r-full); letter-spacing: .04em;
  box-shadow: 0 6px 16px rgba(196,120,58,.3);
}

/* ========================= 6. Hero ========================= */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 100% at 88% 0%, rgba(47,107,82,.55) 0%, transparent 58%),
    radial-gradient(90% 80% at 0% 100%, rgba(196,120,58,.18) 0%, transparent 60%),
    linear-gradient(165deg, #14120F 0%, #1A2A22 55%, #1E4D3B 100%);
  color: #F3EEE6;
  padding: clamp(48px, 8vw, 92px) 0 clamp(56px, 9vw, 104px);
}
/* 網格紋理 */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 100%);
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 100%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { color: #FFFDF8; margin-bottom: .4em; }
.hero h1 em { font-style: normal; color: #F0C89A; }
.hero h1 .nb { white-space: nowrap; }
.hero__lead {
  font-size: clamp(1.02rem, 1.8vw, 1.16rem);
  color: rgba(240,236,228,.82); max-width: 34em;
}
.hero__note { font-size: .9rem; color: rgba(240,236,228,.6); margin-top: var(--s4); }
.hero__facts { display: grid; gap: 10px; align-content: center; }
.hero__fact {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  padding: 14px 18px; border-radius: var(--r-md);
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  font-size: .92rem; color: rgba(240,236,228,.78);
  backdrop-filter: blur(6px);
}
.hero__fact b { color: #F0C89A; font-weight: 700; font-family: var(--font-num); letter-spacing: .01em; }
.hero .btn--outline { color: #F3EEE6; border-color: rgba(255,255,255,.3); }
.hero .btn--outline:hover { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.6); }

.hero__grid { display: grid; gap: clamp(38px, 6vw, 64px); align-items: center; }
.hero__tag {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: var(--s5);
  padding: 7px 16px; border-radius: var(--r-full);
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16);
  color: #EFE7DA; font-size: .84rem; font-weight: 600;
  backdrop-filter: blur(8px);
}
.hero__tag i { width: 7px; height: 7px; border-radius: 50%; background: #6FD08C; box-shadow: 0 0 0 4px rgba(111,208,140,.2); }

/* 統計條 */
.stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  margin-top: clamp(32px, 5vw, 48px);
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-lg); overflow: hidden;
}
.stats__item { background: rgba(20,18,15,.28); padding: var(--s5) var(--s4); }
.stats__num {
  font-family: var(--font-num); font-size: clamp(1.6rem, 4.6vw, 2.1rem);
  font-weight: 800; line-height: 1.1; color: #F0C89A;
}
.stats__num small { font-size: .6em; font-weight: 700; margin-left: 2px; }
.stats__label { font-size: .84rem; color: rgba(240,236,228,.66); }

/* ========================= 7. 手機 Mockup ========================= */
.phone {
  width: min(280px, 78vw); margin: 0 auto; position: relative;
  background: #0E0D0B; border-radius: 38px; padding: 11px;
  box-shadow: 0 30px 70px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.08) inset;
}
.phone::after {
  content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 86px; height: 5px; border-radius: 4px; background: rgba(255,255,255,.16);
}
.phone__screen { background: var(--cream); border-radius: 28px; overflow: hidden; padding: 34px 14px 16px; }
.phone__bar { display: flex; justify-content: space-between; font-size: .62rem; color: var(--muted); font-family: var(--font-num); padding: 0 4px 10px; }
.phone__shop { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--ink); }
.phone__cats { display: flex; gap: 6px; margin: 10px 0 12px; overflow: hidden; }
.phone__cats span {
  font-size: .66rem; padding: 4px 9px; border-radius: var(--r-full);
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap;
}
.phone__cats span.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.phone__item {
  display: flex; align-items: center; gap: 9px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; padding: 9px; margin-bottom: 8px;
}
.phone__thumb { width: 34px; height: 34px; border-radius: 9px; background: var(--cream-2); flex: 0 0 34px; }
.phone__name { font-size: .76rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.phone__price { font-size: .72rem; color: var(--accent-2); font-weight: 700; font-family: var(--font-num); }
.phone__cta {
  margin-top: 12px; background: var(--accent); color: #fff; text-align: center;
  border-radius: 12px; padding: 11px; font-size: .82rem; font-weight: 700;
}
.phone__note { text-align: center; font-size: .6rem; color: var(--muted); margin-top: 8px; }

/* ========================= 8. 網格 / Bento ========================= */
.grid { display: grid; gap: var(--s4); }
.grid > *, .hero__grid > *, .split > *, .bento > *, .compare > * { min-width: 0; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: repeat(2, 1fr); }

.bento { display: grid; gap: var(--s4); grid-template-columns: 1fr; }
.bento__cell {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--s6) var(--s5); box-shadow: var(--sh-1);
  transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease), border-color var(--t-mid) var(--ease);
}
.bento__cell:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: var(--line-2); }
.bento__cell h3 { margin-bottom: .35em; }
.bento__cell p { color: var(--ink-2); font-size: .95rem; margin-bottom: 0; }
.bento__cell--wide { grid-column: span 1; }
.bento__cell--dark { background: var(--ink); color: #EDE7DD; border-color: transparent; }
.bento__cell--dark p { color: rgba(237,231,221,.72); }
.bento__cell--tint { background: var(--brand-tint); border-color: transparent; }
.bento__k {
  font-family: var(--font-num); font-size: .74rem; font-weight: 800; letter-spacing: .16em;
  color: var(--accent-2); margin-bottom: var(--s3);
}

/* 賣點卡 */
.vcard {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--s8) var(--s5) var(--s6); box-shadow: var(--sh-1);
  transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease);
}
.vcard:hover { transform: translateY(-5px); box-shadow: var(--sh-2); }
.vcard::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px;
  border-radius: 50%; background: var(--brand-tint); z-index: 0; transition: transform var(--t-slow) var(--ease);
}
.vcard:hover::after { transform: scale(1.35); }
.vcard > * { position: relative; z-index: 1; }
.vcard__no {
  font-family: var(--font-num); font-size: 2.6rem; font-weight: 800; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.4px var(--line-2); margin-bottom: var(--s4);
}
.vcard h3 { font-size: 1.2rem; }
.vcard p { color: var(--ink-2); font-size: .96rem; margin-bottom: 0; }

/* 勾選清單 */
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 32px; margin-bottom: 11px; }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 2px; width: 21px; height: 21px;
  border-radius: 50%; background: var(--brand-soft); color: var(--brand);
  font-size: .72rem; font-weight: 800; display: grid; place-items: center;
}
.checks li:last-child { margin-bottom: 0; }
.checks--light li::before { background: rgba(255,255,255,.16); color: #F0C89A; }

/* ========================= 9. 圖片占位 ========================= */
.shot { margin: 0; }
.shot__frame {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: var(--cream-2); border: 1px solid var(--line);
  aspect-ratio: 4 / 3; display: grid; place-items: center; text-align: center;
  color: #8C8071; font-size: .86rem; padding: var(--s5);
}
.shot__frame::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(45deg, rgba(214,200,180,.32) 25%, transparent 25%, transparent 75%, rgba(214,200,180,.32) 75%),
                    linear-gradient(45deg, rgba(214,200,180,.32) 25%, transparent 25%, transparent 75%, rgba(214,200,180,.32) 75%);
  background-size: 18px 18px; background-position: 0 0, 9px 9px; opacity: .55;
}
.shot__tag {
  position: relative; z-index: 1; display: block; font-weight: 700;
  color: var(--brand); margin-bottom: 4px; font-size: .9rem;
}
.shot__frame--tall { aspect-ratio: 3 / 4; }
.shot__frame--wide { aspect-ratio: 16 / 10; }

/* 真實截圖：取代原本的示意圖位置標籤 */
.shot__img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  object-position: top center; background: var(--cream-2);
}
.shot__img--top { object-position: top center; }
/* 手機截圖（直式）：只截「最有資訊量的上半段」，避免整張 932 高撐爆版面。
   實機畫面的關鍵資訊（導覽列、分類、第一批品項）都在上半段。 */
.shot__frame--phone { aspect-ratio: 430 / 700; background: var(--cream-2); }
.shot__frame--phone .shot__img { object-fit: cover; object-position: top center; }
.shot--phone .shot__frame { box-shadow: 0 12px 30px rgba(20,18,15,.14); }
.shot--phone figcaption { font-size: .8rem; }

/* 截圖角標：標明這是實機畫面 */
.shot__badge {
  position: absolute; z-index: 2; top: 10px; left: 10px;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px; border-radius: var(--r-full);
  background: rgba(20,18,15,.82); color: #F3EDE3;
  font-size: .7rem; font-weight: 600; letter-spacing: .04em;
  backdrop-filter: blur(4px);
}
.shot__badge::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: #6FD08C; box-shadow: 0 0 0 3px rgba(111,208,140,.24);
}
.shot__frame--real { border-color: var(--line); }
.shot__frame--real::before { display: none; }
/* 直式照片：完整顯示不裁切（object-fit: contain） */
.shot__frame--tall.shot__frame--real { background: var(--cream-2); }
.shot__frame--tall.shot__frame--real .shot__img { object-fit: contain; object-position: center; }
.shot__frame--wide.shot__frame--real .shot__img { object-fit: cover; object-position: center; }

/* ========================= 11. 技能卡（about） ========================= */
.hero__by {
  margin-top: var(--s4); font-size: .94rem; color: rgba(240,236,228,.72);
  padding-top: var(--s4); border-top: 1px solid rgba(255,255,255,.12);
}
.hero__by b { color: #F0C89A; font-weight: 700; }

.skillcard {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--s6) var(--s5);
  box-shadow: var(--shadow-1);
}
.skillcard__head { margin-bottom: var(--s4); }
.skillcard__k {
  display: block; font-family: var(--font-num); font-size: .72rem;
  letter-spacing: .16em; color: var(--brand-2); font-weight: 700; margin-bottom: 6px;
}
.skillcard__head h3 { font-size: 1.28rem; }
.skillcard__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.skillcard__list li {
  display: grid; gap: 2px; padding-left: var(--s4);
  border-left: 2px solid var(--brand-tint);
}
.skillcard__list b { font-size: .98rem; }
.skillcard__list span { font-size: .88rem; color: var(--muted); }
.skillcard__certs {
  margin-top: var(--s5); padding-top: var(--s4);
  border-top: 1px dashed var(--line);
}
.skillcard__certs ul {
  list-style: none; margin: 6px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: var(--s2);
}
.skillcard__certs li {
  font-size: .82rem; padding: 5px 12px; border-radius: var(--r-full);
  background: var(--brand-tint); color: var(--brand-dark); font-weight: 600;
}
.shot figcaption { font-size: .84rem; color: var(--muted); margin-top: 10px; }

/* ========================= 10. 案例頁 ========================= */
.case-hero { background: var(--ink); color: #EDE7DD; }
.case-hero h1 { color: #FFFDF8; }
.case-hero__meta {
  display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); margin-top: var(--s6);
  padding-top: var(--s5); border-top: 1px solid rgba(255,255,255,.14);
  font-size: .9rem; color: rgba(237,231,221,.7);
}
.case-hero__meta b { color: #F0C89A; font-weight: 700; display: block; font-size: 1rem; }

.fact { display: grid; gap: var(--s4); grid-template-columns: repeat(2, 1fr); }
.fact__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s5); }
.fact__item dt { font-size: .78rem; color: var(--muted); margin-bottom: 4px; letter-spacing: .04em; }
.fact__item dd { margin: 0; font-weight: 600; font-size: .98rem; }

.compare { display: grid; gap: var(--s4); grid-template-columns: 1fr; }
.compare__col { border-radius: var(--r-lg); padding: var(--s6) var(--s5); border: 1px solid var(--line); background: var(--surface); }
.compare__col--before { background: var(--cream-2); border-color: transparent; }
.compare__col--after { background: var(--brand-tint); border-color: transparent; }
.compare__label {
  font-family: var(--font-num); font-size: .72rem; font-weight: 800; letter-spacing: .16em;
  margin-bottom: var(--s3); display: block;
}
.compare__col--before .compare__label { color: var(--muted); }
.compare__col--after .compare__label { color: var(--brand-2); }
.compare__col h3 { font-size: 1.1rem; }
.compare__col p { font-size: .95rem; color: var(--ink-2); margin-bottom: 0; }

.demo-box {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4);
  background: var(--ink); color: #EDE7DD; border-radius: var(--r-lg);
  padding: var(--s6) var(--s5);
}
.demo-box__k { font-family: var(--font-num); font-size: .74rem; letter-spacing: .16em; color: #F0C89A; font-weight: 800; }
.demo-box a { color: #F3EEE6; text-decoration: underline; text-underline-offset: 4px; }
.demo-box a:hover { color: #F0C89A; }

/* ========================= 11. 方案 / 表格 ========================= */
.plan {
  position: relative; display: flex; flex-direction: column; gap: var(--s4);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: var(--s8) var(--s5) var(--s6); box-shadow: var(--sh-1);
  transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease);
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.plan--hot { border: 2px solid var(--brand); box-shadow: var(--sh-2); }
.plan__name { font-family: var(--font-num); font-size: .78rem; font-weight: 800; letter-spacing: .16em; color: var(--accent-2); }
.plan h3 { font-size: 1.55rem; margin: 0; }
.plan__price { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; color: var(--brand); }
.plan__price small { font-family: var(--font-body); font-size: .82rem; font-weight: 400; color: var(--muted); }
.plan p { color: var(--ink-2); font-size: .95rem; }
.plan__list { list-style: none; padding: 0; margin: 0; font-size: .93rem; }
.plan__list li { padding: 9px 0; border-bottom: 1px dashed var(--line); display: flex; gap: 9px; }
.plan__list li:last-child { border-bottom: 0; }
.plan .btn { margin-top: auto; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 540px; font-size: .93rem; }
th, td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th {
  background: var(--ink); color: #F3EEE6; font-size: .84rem; letter-spacing: .04em;
  font-weight: 700; border-bottom: 0;
}
tbody th { font-weight: 700; color: var(--ink); background: var(--cream-2); white-space: nowrap; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--brand-tint); }

.note {
  border-left: 3px solid var(--accent); background: var(--accent-soft);
  border-radius: 0 var(--r-md) var(--r-md) 0; padding: var(--s4) var(--s5);
  font-size: .93rem; color: var(--ink-2);
}
.note--info { border-left-color: var(--brand); background: var(--brand-tint); }

/* ========================= 12. 表單 ========================= */
.form {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: clamp(22px, 4vw, 38px); box-shadow: var(--sh-1);
}
.field { margin-bottom: var(--s5); }
.field > label, .field > .label { display: block; font-weight: 700; margin-bottom: var(--s2); }
.req { color: var(--err); margin-left: 2px; }
.hint { display: block; font-size: .82rem; color: var(--muted); font-weight: 400; margin-top: 3px; }
input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  width: 100%; min-height: var(--tap); padding: 12px 15px;
  font: inherit; font-size: .97rem; color: var(--ink);
  background: var(--cream); border: 1.5px solid var(--line); border-radius: var(--r-md);
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
textarea { min-height: 130px; resize: vertical; line-height: 1.75; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand); background: var(--surface);
  box-shadow: 0 0 0 4px rgba(30,77,59,.1);
}
input::placeholder, textarea::placeholder { color: #A79C8C; }
select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%237A7266' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px;
}
.checks-row { display: grid; gap: 10px; grid-template-columns: 1fr; }
.check-item {
  display: flex; align-items: center; gap: 11px; min-height: var(--tap);
  background: var(--cream); border: 1.5px solid var(--line); border-radius: var(--r-md);
  padding: 10px 14px; cursor: pointer; font-size: .95rem; font-weight: 500;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.check-item:hover { border-color: var(--brand-2); background: var(--brand-tint); }
.check-item input { width: 20px; height: 20px; accent-color: var(--brand); flex: 0 0 20px; }
.check-item:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); }
/* reCAPTCHA 掛載容器（目前尚未啟用，contact.html 中未使用，啟用時解除註解即可） */
.g-recaptcha {
  margin: var(--s2) 0 var(--s6); display: flex; justify-content: center;
}
.g-recaptcha:not(:empty) {
  padding: var(--s5); border: 1.5px dashed var(--line-2); border-radius: var(--r-md); background: var(--cream);
}
.msg {
  display: none; padding: 15px 18px; border-radius: var(--r-md);
  font-size: .93rem; margin-bottom: var(--s5); border: 1px solid transparent;
}
.msg.is-show { display: block; animation: msgIn var(--t-mid) var(--ease); }
@keyframes msgIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.msg--ok { background: #EAF4EE; border-color: #B9D9C7; color: var(--ok); }
.msg--err { background: #FBEDEA; border-color: #E7C0B8; color: var(--err); }
.msg--warn { background: #FBF3E3; border-color: #E8D3A8; color: var(--warn); }

/* ========================= 13. QA 手風琴 ========================= */
.qa { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.qa details + details { border-top: 1px solid var(--line); }
.qa summary {
  cursor: pointer; list-style: none; position: relative;
  padding: 20px 56px 20px 24px; font-family: var(--font-display);
  font-weight: 700; font-size: 1.04rem; transition: background var(--t-fast) var(--ease);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { background: var(--brand-tint); }
.qa summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; background: var(--brand-tint);
  color: var(--brand); font-family: var(--font-num); font-size: 1.15rem; font-weight: 700;
  display: grid; place-items: center; transition: transform var(--t-mid) var(--ease), background var(--t-fast) var(--ease);
}
.qa summary:hover::after { background: var(--brand-soft); }
.qa details[open] summary::after { content: "−"; background: var(--brand); color: #fff; }
.qa__body { padding: 0 24px 24px; color: var(--ink-2); font-size: .95rem; }
.qa__body p:last-child { margin-bottom: 0; }

/* ========================= 14. 步驟 / 時間軸 ========================= */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 60px; margin-bottom: var(--s6); }
.steps li::before {
  content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 0;
  font-family: var(--font-num); font-size: .82rem; font-weight: 800; letter-spacing: .06em;
  color: var(--accent-2); padding-top: 4px;
}
.steps li::after {
  content: ""; position: absolute; left: 0; top: 34px; bottom: -14px; width: 2px;
  background: linear-gradient(var(--line-2), transparent);
}
.steps li:last-child::after { display: none; }
.steps li h4 { margin-bottom: 2px; font-size: 1.06rem; }
.steps li p { margin: 0; color: var(--ink-2); font-size: .95rem; }

/* ========================= 15. 引言 ========================= */
.quote {
  background: var(--ink); color: #EDE7DD; border-radius: var(--r-xl);
  padding: clamp(30px, 5vw, 56px);
}
.quote__text {
  font-family: var(--font-display); font-size: clamp(1.1rem, 2.4vw, 1.45rem);
  line-height: 1.65; margin-bottom: var(--s5);
}
.quote__by { display: flex; align-items: center; gap: 12px; font-size: .9rem; color: rgba(237,231,221,.66); }
.quote__avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: 0 0 40px;
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: .9rem;
}

/* ========================= 16. CTA 帶 ========================= */
.cta-band {
  position: relative; overflow: hidden; text-align: center;
  background: linear-gradient(150deg, var(--brand-2), var(--brand) 55%, #163C2E);
  color: #fff; border-radius: var(--r-xl); padding: clamp(36px, 6vw, 68px) var(--s5);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 100% at 20% 0%, rgba(240,200,154,.22), transparent 60%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.78); max-width: 44em; margin-left: auto; margin-right: auto; }
.cta-band .btn--outline { color: #fff; border-color: rgba(255,255,255,.35); }
.cta-band .btn--outline:hover { background: rgba(255,255,255,.12); color: #fff; }
.cta-band .btn-row { justify-content: center; }

/* ========================= 17. 頁尾 ========================= */
.footer { background: var(--ink); color: #B9B0A4; padding: clamp(44px, 7vw, 76px) 0 var(--s8); font-size: .92rem; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: var(--s3); }
.footer a { color: #D8CFC2; }
.footer a:hover { color: #F0C89A; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; }
.footer__grid { display: grid; gap: var(--s8); grid-template-columns: 1fr; }
.footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s3); margin-bottom: var(--s4); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: var(--s10);
  padding-top: var(--s5); display: flex; flex-wrap: wrap; gap: var(--s3);
  justify-content: space-between; font-size: .84rem; color: #8D8479;
}

/* -------- 17b. LINE QR（不公開帳號，用掃碼加好友） -------- */
/* 設計原則：頁面上不出現 LINE ID 明文，只提供「掃碼加好友」與一個不點擊即跳出的入口 */

.lineqr { display: flex; align-items: center; gap: var(--s4); }

/* 頁尾版：QR 尺寸經實測 — 68px 時每模組僅 1.9px（掃不出來），
   120px 時每模組 3.3px 才可靠，因此頁尾用 120px。 */
.lineqr--sm { gap: var(--s4); }
.lineqr--sm .lineqr__img {
  width: 120px; height: 120px; flex: 0 0 120px;
  border-radius: 16px; background: #fff; padding: 3px;
  border: 1px solid rgba(255,255,255,.18);
}
.lineqr--sm .lineqr__k {
  color: #fff; font-size: .95rem; font-weight: 600;
  display: flex; align-items: center; gap: 7px; margin-bottom: 4px;
}
.lineqr--sm .lineqr__d { font-size: .82rem; color: #8D8479; line-height: 1.6; }
.lineqr--sm .lineqr__d b { color: #D8CFC2; font-weight: 600; }
.lineqr--sm .lineqr__d a { word-break: break-all; }

/* 內文／深底區版：大卡片 */
.lineqr--lg {
  flex-direction: column; align-items: center; text-align: center;
  gap: var(--s4);
}
.lineqr--lg .lineqr__img {
  width: 168px; height: 168px; flex: 0 0 168px;
  border-radius: 20px; background: #fff; padding: 6px;
  box-shadow: 0 8px 26px rgba(0,0,0,.22);
}
.lineqr--lg .lineqr__k {
  color: #fff; font-size: 1.02rem; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
}
.lineqr--lg .lineqr__d { font-size: .86rem; color: rgba(255,255,255,.72); line-height: 1.6; max-width: 26em; }

/* LINE 綠色小圓點（icon） */
.lineqr__dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #06C755; flex: 0 0 9px;
  box-shadow: 0 0 0 3px rgba(6,199,85,.22);
}

/* 淺底區版（contact 側欄的白色卡片） */
.lineqr--light .lineqr__k { color: var(--ink); }
.lineqr--light .lineqr__d { color: var(--muted); }
.lineqr--light .lineqr__img { border: 1px solid var(--line); box-shadow: 0 6px 20px rgba(20,18,15,.08); }

/* 掃碼 CTA 按鈕 */
.lineqr__cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: #06C755; color: #fff; font-weight: 700; font-size: .9rem;
  padding: 11px 20px; border-radius: var(--r-full);
  border: 0; cursor: pointer; text-decoration: none;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
  box-shadow: 0 6px 16px rgba(6,199,85,.3);
}
.lineqr__cta:hover { background: #05B04A; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(6,199,85,.4); }
.lineqr__cta:focus-visible { outline: 3px solid rgba(6,199,85,.45); outline-offset: 3px; }
.lineqr__cta svg { width: 18px; height: 18px; fill: currentColor; }

/* 沒有 JS 時的降級：QR 本身就是可掃的入口 */
.lineqr__img { display: block; image-rendering: -webkit-optimize-contrast; }

/* -------- 17c. 官網截圖（寬幅網頁） -------- */
/* 這些是 1140px 寬的網頁區塊截圖 → 用 contain 完整呈現，不裁切 */
.siteshot { margin: 0; }
.siteshot__frame {
  position: relative; overflow: hidden;
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
}
.siteshot__frame::after {
  /* 假瀏覽器視窗列，讓人一看就知道這是網頁截圖 */
  content: ''; position: absolute; inset: 0 0 auto 0; height: 26px;
  background: linear-gradient(180deg, rgba(20,18,15,.06), rgba(20,18,15,0));
  border-bottom: 1px solid rgba(20,18,15,.07);
  pointer-events: none;
}
.siteshot__img {
  display: block; width: 100%; height: auto;
  object-fit: contain; object-position: center top;
}
.siteshot__badge {
  position: absolute; z-index: 2; top: 12px; right: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(20,18,15,.82); color: #F3EDE3;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  padding: 5px 11px; border-radius: var(--r-full);
}
.siteshot__badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #6FCF97; box-shadow: 0 0 0 3px rgba(111,207,151,.22);
}
.siteshot figcaption { font-size: .86rem; color: var(--muted); margin-top: 12px; }
.siteshot figcaption strong { color: var(--ink); font-weight: 700; }

/* 官網特色清單 */
.sitefeat { list-style: none; padding: 0; margin: 0; }
.sitefeat li {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 11px 0; border-bottom: 1px solid var(--line);
  font-size: .94rem; color: var(--ink-2); line-height: 1.6;
}
.sitefeat li:last-child { border-bottom: 0; }
.sitefeat b { color: var(--ink); font-weight: 700; }
.sitefeat__no {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand);
  font-family: var(--font-num); font-size: .74rem; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 2px;
}

/* -------- 17d. 模組價值分級 -------- */
/* 說明「哪些模組最值錢」——讓店家一眼看懂自己買到的是什麼 */
.mods { display: grid; gap: var(--s5); grid-template-columns: 1fr; }

.mod {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); overflow: hidden;
  box-shadow: var(--sh-1);
}
.mod__head {
  display: flex; align-items: flex-start; gap: var(--s3);
  padding: var(--s4) var(--s5);
  background: var(--cream-2); border-bottom: 1px solid var(--line);
}
.mod__head > div { min-width: 0; }
.mod__tier {
  font-family: var(--font-num); font-size: .72rem; font-weight: 800;
  letter-spacing: .12em; color: #fff;
  background: var(--brand); padding: 4px 10px; border-radius: var(--r-full);
  white-space: nowrap; flex: 0 0 auto; margin-top: 2px;
}
.mod__title { font-size: 1.02rem; margin: 0 0 3px; line-height: 1.35; }
.mod__desc { font-size: .84rem; color: var(--muted); margin: 0; line-height: 1.5; }

.mod--core .mod__head { background: var(--ink); border-bottom-color: transparent; }
.mod--core .mod__tier { background: var(--accent); }
.mod--core .mod__title { color: #fff; }
.mod--core .mod__desc { color: rgba(255,255,255,.68); }

/* 第二級：綠 */
.mod--plus .mod__tier { background: var(--brand-2); }
/* 第三級：灰 */
.mod--skin .mod__tier { background: var(--muted); }
.mod--skin { background: var(--cream); }
.mod--skin .mod__head { background: transparent; border-bottom-color: var(--line); }

.mod__list { list-style: none; padding: var(--s3) var(--s5) var(--s5); margin: 0; }
.mod__list li {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 9px 0; border-bottom: 1px dashed var(--line);
  font-size: .9rem; color: var(--ink-2); line-height: 1.6;
}
.mod__list li:last-child { border-bottom: 0; }
.mod__list b { color: var(--ink); font-weight: 700; }
.mod__list i {
  flex: 0 0 auto; font-style: normal; color: var(--accent-2);
  font-family: var(--font-num); font-weight: 800; font-size: .8rem;
  margin-top: 1px;
}

/* 價值對照表 */
.vtable { width: 100%; border-collapse: collapse; font-size: .9rem; }
.vtable th, .vtable td { padding: 13px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.vtable thead th {
  background: var(--ink); color: #fff; font-size: .8rem; font-weight: 700;
  letter-spacing: .04em; border-bottom: 0;
}
.vtable thead th:first-child { border-radius: var(--r-md) 0 0 0; }
.vtable thead th:last-child { border-radius: 0 var(--r-md) 0 0; }
.vtable tbody tr:nth-child(even) { background: var(--cream); }
.vtable td:first-child { font-weight: 700; color: var(--ink); white-space: nowrap; }
.vtable td:last-child { color: var(--ink-2); }
.vtable tbody tr:last-child td { border-bottom: 0; }

/* 市場行情表的最後一列：本系統 → 明確強調，與競品列一眼區隔 */
/* 窄欄位不換行（例如「1 年合約」被斷成兩行） */
.vtable__nowrap { white-space: nowrap; }

.vtable tbody tr.vtable__us {
  background: var(--brand-soft);
  box-shadow: inset 3px 0 0 var(--brand);
}
.vtable tbody tr.vtable__us td {
  color: var(--brand-2);
}
.vtable tbody tr.vtable__us td:first-child {
  color: var(--brand);
}
.vtable tbody tr.vtable__us strong {
  font-weight: 800;
}

/* ========================= 18. 動效 / 工具 ========================= */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 80ms; }
.reveal[data-d="2"] { transition-delay: 160ms; }
.reveal[data-d="3"] { transition-delay: 240ms; }
.reveal[data-d="4"] { transition-delay: 320ms; }
.reveal[data-d="5"] { transition-delay: 400ms; }
.reveal[data-d="6"] { transition-delay: 480ms; }

.grid--2 > .reveal:nth-child(2), .grid--3 > .reveal:nth-child(2) { transition-delay: 90ms; }
.grid--3 > .reveal:nth-child(3) { transition-delay: 180ms; }
.grid--4 > .reveal:nth-child(2) { transition-delay: 70ms; }
.grid--4 > .reveal:nth-child(3) { transition-delay: 140ms; }
.grid--4 > .reveal:nth-child(4) { transition-delay: 210ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ========================= 19. 響應式 ========================= */
@media (min-width: 560px) {
  .fact { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .checks-row { grid-template-columns: repeat(2, 1fr); }
  .compare { grid-template-columns: repeat(2, 1fr); }
  .btn-row > .btn { flex: 0 1 auto; }
}

@media (min-width: 900px) {
  :root { --nav-h: 76px; }
  .nav__toggle { display: none; }
  .nav__menu {
    position: static; display: flex !important; align-items: center; justify-content: flex-end;
    gap: var(--s2); background: transparent; border: 0;
    box-shadow: none; max-height: none; overflow: visible; padding: 0; animation: none;
  }
  .nav__menu ul { display: flex; align-items: center; gap: 2px; padding: 0; flex: 0 1 auto; }
  .nav__menu li + li { border-top: 0; }
  .nav__menu a {
    min-height: 0; padding: 9px 15px; font-size: .95rem; border-radius: var(--r-full);
    color: var(--ink-2); transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
  }
  .nav__menu a:hover { background: var(--brand-tint); color: var(--brand); }
  .nav__menu ul a[aria-current="page"] { background: var(--brand); color: #fff; }
  .nav__cta { padding: 0; margin-left: var(--s2); display: flex; }
  .nav__cta .btn { padding: 10px 22px; font-size: .92rem; flex: 0 0 auto; white-space: nowrap; }

  .hero__grid { grid-template-columns: 1.05fr .95fr; }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .bento { grid-template-columns: repeat(3, 1fr); }
  .bento__cell--wide { grid-column: span 2; }
  .split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
  .split--sticky > :first-child { position: sticky; top: calc(var(--nav-h) + 28px); }
  .footer__grid { grid-template-columns: 1.5fr 1fr 1fr; gap: var(--s10); }
  .checks-row { grid-template-columns: repeat(3, 1fr); }
  .quote { display: grid; grid-template-columns: 1fr auto; gap: var(--s8); align-items: center; }
}

@media (min-width: 1080px) {
  .wrap { padding: 0 32px; }
  .bento { grid-template-columns: repeat(6, 1fr); }
  .bento__cell { grid-column: span 2; }
  .bento__cell--wide { grid-column: span 3; }
  /* 模組分級：第一級佔左側較寬欄，第二三級在右側各 1 欄 → 三張卡同一列 */
  .mods { grid-template-columns: 1.45fr 1fr 1fr; align-items: stretch; }
  .mod--core { grid-column: 1; }
  .mod--plus { grid-column: 2; }
  .mod--skin { grid-column: 3; }
  .mod { display: flex; flex-direction: column; }
  .mod__list { flex: 1; }
}

/* =============================================================================
   18. 報價單專用（pricing.html）
   -----------------------------------------------------------------------------
   沿用既有 token：深墨綠 #1E4D3B（品牌）/ 琥珀 #C4783A（價格與 CTA）/ 奶油底
   設計意圖：價格是「視覺焦點」——數字用 Manrope 半粗體大級別、琥珀色，
   讓客戶一眼看到方案金額；早鳥 8 折用琥珀印章感的橫幅搶眼但不俗氣。
   ========================================================================== */

/* --- 早鳥優惠活動橫幅 --- */
.promo {
  position: relative; overflow: hidden;
  background: linear-gradient(140deg, var(--accent-2), var(--accent) 48%, #D08A4A);
  color: #fff; border-radius: var(--r-xl);
  padding: clamp(24px, 4vw, 40px) clamp(20px, 3.6vw, 42px);
  box-shadow: 0 14px 40px rgba(196,120,58,.28);
  display: grid; gap: var(--s5);
  grid-template-columns: 1fr; align-items: center;
}
.promo::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(70% 120% at 88% 12%, rgba(255,255,255,.24), transparent 58%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 12px, transparent 12px 24px);
}
.promo > * { position: relative; }
.promo__k {
  font-family: var(--font-num); font-size: .74rem; font-weight: 800;
  letter-spacing: .2em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 9px;
}
.promo__k::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.7);
}
.promo__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.5rem, 3.6vw, 2.35rem); line-height: 1.22; margin: 0;
}
.promo__title b { color: #FFE9C8; font-weight: 700; }
.promo__desc { margin: 0; color: rgba(255,255,255,.9); font-size: .98rem; max-width: 46em; }
.promo__meta { display: flex; flex-wrap: wrap; gap: 10px; }
.promo__chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 15px; border-radius: var(--r-full);
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3);
  font-size: .84rem; font-weight: 700;
}
.promo__chip--solid { background: #fff; color: var(--accent-2); border-color: #fff; }

/* --- 方案價目卡（4 案） --- */
.tiers { display: grid; gap: var(--s4); grid-template-columns: 1fr; align-items: stretch; }
.tier {
  position: relative; display: flex; flex-direction: column; gap: var(--s3);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: var(--s6) var(--s5) var(--s5);
  box-shadow: var(--sh-1);
  transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease);
}
.tier:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.tier--hot { border: 2px solid var(--brand); box-shadow: var(--sh-2); }
.tier__no {
  font-family: var(--font-num); font-size: .74rem; font-weight: 800;
  letter-spacing: .18em; color: var(--accent-2);
}
.tier h3 { font-size: 1.22rem; margin: 0; line-height: 1.35; }
.tier__warranty {
  font-size: .8rem; color: var(--muted); font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
}
.tier__price {
  font-family: var(--font-num); font-weight: 800;
  font-size: clamp(1.85rem, 3.4vw, 2.3rem); line-height: 1.1;
  color: var(--brand); letter-spacing: -.02em;
  display: flex; align-items: baseline; gap: 4px;
}
.tier__price small {
  font-family: var(--font-body); font-size: .78rem; font-weight: 600; color: var(--muted);
  letter-spacing: 0; white-space: nowrap; display: inline-block;
  margin-left: 2px; vertical-align: baseline;
}
.tier__price { flex-wrap: wrap; }
.tier__old {
  font-family: var(--font-num); font-size: .95rem; font-weight: 600;
  color: var(--muted); text-decoration: line-through; text-decoration-thickness: 2px;
}
.tier__now {
  display: inline-flex; align-items: baseline; gap: 6px;
  margin-top: -2px; padding: 7px 13px; border-radius: var(--r-sm);
  background: var(--accent-soft); color: var(--accent-2);
  font-family: var(--font-num); font-weight: 800; font-size: .92rem;
  align-self: flex-start;
}
.tier__list { list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.tier__list li { padding: 7px 0; border-bottom: 1px dashed var(--line); display: flex; gap: 8px; align-items: flex-start; }
.tier__list li:last-child { border-bottom: 0; }
.tier__list .no { color: var(--err); font-weight: 700; }
.tier__list .yes { color: var(--ok); font-weight: 700; }
.tier__note {
  font-size: .82rem; color: var(--ink-2); background: var(--cream);
  border-radius: var(--r-sm); padding: 10px 13px; margin: 0;
  border-left: 3px solid var(--warn);
}
.tier .btn { margin-top: auto; }

/* --- 價目明細表（加購 / 模組單價） --- */
.price-list { list-style: none; padding: 0; margin: 0; }
.price-list li {
  display: grid; grid-template-columns: 1fr auto; gap: var(--s4);
  align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line);
}
.price-list li:last-child { border-bottom: 0; }
.price-list__k { font-weight: 700; color: var(--ink); }
.price-list__d { display: block; font-size: .85rem; color: var(--muted); font-weight: 400; margin-top: 2px; }
.price-list__v {
  font-family: var(--font-num); font-weight: 800; font-size: 1.02rem;
  color: var(--brand); white-space: nowrap;
}
.price-list__v s { color: var(--muted); font-weight: 600; font-size: .82rem; display: block; text-align: right; }
/* 需個別報價的項目（例如網域與主機代辦：依店家選用的主機商而異） */
.price-list__v--na {
  font-family: var(--font-body); font-size: .95rem; font-weight: 700;
  color: var(--ink-2); background: var(--cream);
  border: 1px dashed var(--line); border-radius: var(--r-sm);
  padding: 7px 14px; white-space: nowrap;
}

/* --- 對照表（本系統 vs SaaS） --- */
.vs { display: grid; gap: var(--s4); grid-template-columns: 1fr; }
.vs__col {
  border-radius: var(--r-lg); padding: var(--s5) var(--s4);
  border: 1px solid var(--line); background: var(--surface);
}
.vs__col--us { background: var(--brand-tint); border-color: transparent; }
.vs__col--them { background: var(--cream-2); border-color: transparent; }
.vs__k {
  font-family: var(--font-num); font-size: .72rem; font-weight: 800;
  letter-spacing: .16em; margin-bottom: var(--s3); display: block;
}
.vs__col--them .vs__k { color: var(--muted); }
.vs__col--us .vs__k { color: var(--brand-2); }
.vs__col h3 { font-size: 1.05rem; margin-bottom: 6px; }
.vs__row { padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .89rem; }
.vs__row:last-child { border-bottom: 0; }
.vs__row b { display: block; color: var(--ink); }
.vs__row span { color: var(--ink-2); }

/* --- 交付前提清單 --- */
.preconds { counter-reset: pc; list-style: none; padding: 0; margin: 0; }
.preconds li {
  counter-increment: pc; position: relative; padding: 0 0 0 46px;
  margin-bottom: var(--s4); font-size: .93rem; color: var(--ink-2);
}
.preconds li::before {
  content: counter(pc, decimal-leading-zero);
  position: absolute; left: 0; top: 1px;
  font-family: var(--font-num); font-size: .82rem; font-weight: 800;
  color: var(--brand); background: var(--brand-soft);
  width: 32px; height: 32px; border-radius: 10px;
  display: grid; place-items: center;
}
.preconds li b { color: var(--ink); }

/* --- 聯絡 QR 區（報價頁專用） --- */
.promo-contact {
  display: grid; gap: var(--s6); align-items: center;
  grid-template-columns: 1fr;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: clamp(22px, 4vw, 38px);
  box-shadow: var(--sh-1);
}
.promo-contact__qr {
  display: flex; align-items: center; gap: var(--s4); justify-content: center;
}

/* --- 頁面層級：報價單 hero --- */
.phero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 100% at 88% 0%, rgba(47,107,82,.5) 0%, transparent 58%),
    radial-gradient(90% 80% at 0% 100%, rgba(196,120,58,.2) 0%, transparent 60%),
    linear-gradient(160deg, #17402F, #1E4D3B 55%, #123326);
  color: #F0ECE4; padding: clamp(52px, 8vw, 92px) 0 clamp(46px, 6vw, 76px);
}
.phero__k {
  font-family: var(--font-num); font-size: .74rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: #F0C89A;
  display: inline-flex; align-items: center; gap: 9px;
}
.phero__k::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: #F0C89A; }
.phero h1 { color: #fff; margin: var(--s4) 0 var(--s4); }
.phero h1 em { font-style: normal; color: #F0C89A; }
.phero__lead { color: rgba(240,236,228,.82); font-size: clamp(1rem, 1.5vw, 1.1rem); max-width: 46em; }
.phero__grid { display: grid; gap: var(--s8); grid-template-columns: 1fr; align-items: center; }
.phero__facts { display: grid; gap: 10px; align-content: center; }
.phero__fact {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  padding: 14px 18px; border-radius: var(--r-md);
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  font-size: .92rem; color: rgba(240,236,228,.78);
}
.phero__fact b { color: #F0C89A; font-family: var(--font-num); font-weight: 800; font-size: 1.05rem; }

/* --- 客製整包方案（不列單價，只給整體報價） --- */
.bundles { display: grid; gap: var(--s4); grid-template-columns: 1fr; align-items: stretch; }
.bundle {
  position: relative; display: flex; flex-direction: column; gap: var(--s3);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: var(--s6) var(--s5) var(--s5);
  box-shadow: var(--sh-1);
  transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease);
}
.bundle:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.bundle--full { border: 2px solid var(--brand); box-shadow: var(--sh-2); }
.bundle__k {
  font-family: var(--font-num); font-size: .74rem; font-weight: 800;
  letter-spacing: .18em; color: var(--accent-2);
}
.bundle h3 { font-size: 1.1rem; margin: 0; line-height: 1.4; }
.bundle__price {
  font-family: var(--font-num); font-weight: 800;
  font-size: clamp(1.5rem, 2.6vw, 1.85rem); line-height: 1.15;
  color: var(--brand); letter-spacing: -.02em;
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
.bundle__price s {
  font-size: .85rem; font-weight: 600; color: var(--muted);
  text-decoration-thickness: 2px;
}
.bundle__price em {
  font-family: var(--font-body); font-style: normal;
  font-size: .78rem; font-weight: 700; color: var(--muted);
}
.bundle__d { margin: 0; font-size: .9rem; color: var(--ink-2); }
.bundle__d b { color: var(--ink); }
.bundle__tag {
  align-self: flex-start;
  font-size: .76rem; font-weight: 700;
  padding: 6px 12px; border-radius: var(--r-full);
  background: var(--brand-tint); color: var(--brand-2);
  border: 1px solid var(--brand-soft);
}

@media (min-width: 760px) {
  .bundles { grid-template-columns: repeat(3, 1fr); }
}

/* --- 列印（客戶要直接印出或轉 PDF 給店家） --- */
@media print {
  .nav, .footer, .promo-contact, .no-print { display: none !important; }
  body { background: #fff; padding-top: 0; font-size: 12pt; }
  .section, .phero { padding: 12pt 0; background: #fff !important; color: var(--ink) !important; }
  .phero h1, .phero__lead, .phero__fact { color: var(--ink) !important; }
  .promo { background: #fff !important; color: var(--ink) !important; border: 2px solid var(--accent); box-shadow: none; }
  .promo__title b, .promo__k, .promo__chip { color: var(--accent-2) !important; }
  .promo__desc { color: var(--ink-2) !important; }
  .promo__chip { border-color: var(--accent) !important; background: #fff !important; }
  .tier, .table-wrap, .vs__col, .promo-contact { box-shadow: none; break-inside: avoid; }
  .table-wrap { overflow: visible; }
  a[href]::after { content: ""; }
}

/* ========================= 響應式：報價頁 ========================= */
@media (min-width: 900px) {
  .promo { grid-template-columns: 1.5fr auto; gap: var(--s10); }
  .promo__meta { justify-content: flex-end; }
  .tiers { grid-template-columns: repeat(2, 1fr); }
  .vs { grid-template-columns: 1fr 1fr; }
  .promo-contact { grid-template-columns: auto 1fr; }
  .phero__grid { grid-template-columns: 1.35fr 1fr; }
}

@media (min-width: 1080px) {
  .tiers { grid-template-columns: repeat(4, 1fr); }
  .tier--hot { order: -1; }
}
