/* ==========================================================================
   高皓珉 營養師｜嘉嘉168 呷營養滴家 — 全站樣式
   Design System: Soft UI Evolution / Variance 4 / Motion 4 / Density 4
   雙軌配色：深森綠 = B2B 企業端｜陶土橘 = B2C 個人端
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@300;400;500;600;700;800&family=Noto+Sans+TC:wght@300;400;500;700;900&display=swap');

/* --------------------------------------------------------------------------
   1. Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* 中性 / 文字 */
  --ink-900: #101A15;
  --ink-700: #28382F;
  --ink-500: #56655C;
  --ink-300: #8E9A93;

  /* 主色 — 深森綠（專業 / B2B） */
  --green-900: #0C3A26;
  --green-700: #14532D;
  --green-600: #1B6B45;
  --green-300: #9FC6AE;
  --green-100: #E4EFE8;
  --green-050: #F2F7F3;

  /* 強調色 — 陶土橘（轉換 / B2C） */
  --clay-700: #9A340B;
  --clay-600: #C2410C;
  --clay-300: #F0A882;
  --clay-100: #FBEADF;

  /* 表面 */
  --paper: #FBFAF7;
  --surface: #FFFFFF;
  --surface-alt: #F4F5F1;
  --border: #E5E7E0;
  --border-strong: #CFD4CB;

  /* 語意 */
  --danger: #B91C1C;
  --success: #15803D;
  --ring: var(--green-600);

  /* 字級 — fluid type scale */
  --fs-display: clamp(2.35rem, 1.35rem + 4.2vw, 4.5rem);
  --fs-h1: clamp(2rem, 1.35rem + 2.6vw, 3.25rem);
  --fs-h2: clamp(1.55rem, 1.2rem + 1.5vw, 2.35rem);
  --fs-h3: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);
  --fs-lead: clamp(1.02rem, 0.97rem + 0.35vw, 1.2rem);
  --fs-body: 1rem;
  --fs-sm: 0.9rem;
  --fs-xs: 0.8rem;

  /* 間距 — Density 4（標準 16–64） */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --section-y: clamp(3.5rem, 2rem + 6vw, 7rem);

  /* 形狀與陰影（Soft UI Evolution：比扁平柔、比擬物清楚） */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;
  --shadow-xs: 0 1px 2px rgba(16, 26, 21, .05);
  --shadow-sm: 0 2px 8px rgba(16, 26, 21, .06);
  --shadow-md: 0 10px 28px -12px rgba(16, 26, 21, .18);
  --shadow-lg: 0 24px 60px -24px rgba(16, 26, 21, .26);

  /* 動態 */
  --dur: 220ms;
  --dur-slow: 420ms;
  --ease: cubic-bezier(.22, .61, .36, 1);

  --nav-h: 68px;
  --maxw: 1180px;

  --font-sans: 'Figtree', 'Noto Sans TC', -apple-system, BlinkMacSystemFont,
    'Segoe UI', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
}

/* --------------------------------------------------------------------------
   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;
  padding-top: var(--nav-h);           /* Sticky nav 補償，避免蓋住首屏 */
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--ink-900);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

/* [hidden] 必須勝過本檔中所有明確的 display 宣告（例如 .social-links 的 flex），
   否則 site-config.js 隱藏未填寫的社群區塊時會失效。 */
[hidden] { display: none !important; }
a { color: var(--green-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

h1, h2, h3, h4 {
  margin: 0 0 var(--space-2);
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: -.015em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 700; }
p { margin: 0 0 var(--space-2); }
p:last-child { margin-bottom: 0; }

::selection { background: var(--green-100); color: var(--green-900); }

/* 鍵盤焦點：絕不移除 focus ring */
:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--green-700); color: #fff;
  padding: .75rem 1.25rem; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   3. Layout Utilities
   -------------------------------------------------------------------------- */
.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.container--narrow { width: min(100% - 2.5rem, 860px); margin-inline: auto; }

.section { padding-block: var(--section-y); }
.section--tint { background: var(--green-050); }
.section--ink { background: var(--green-900); color: #F3F7F4; }
.section--paper { background: var(--surface); }

.section-head { max-width: 720px; margin-bottom: var(--space-5); }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--green-600);
  margin-bottom: var(--space-1);
}
.eyebrow::before {
  content: ''; width: 22px; height: 2px; background: currentColor; border-radius: 2px;
}
.eyebrow--clay { color: var(--clay-600); }
.section--ink .eyebrow { color: var(--green-300); }

.lead { font-size: var(--fs-lead); color: var(--ink-500); line-height: 1.85; }
.section--ink .lead { color: #C8D8CE; }

.grid { display: grid; gap: var(--space-3); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px;                       /* 觸控目標 ≥ 44px */
  padding: .8rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-weight: 700; font-size: var(--fs-sm); letter-spacing: .01em;
  text-decoration: none; text-align: center;
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              background-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--b2b { background: var(--green-700); color: #fff; box-shadow: var(--shadow-md); }
.btn--b2b:hover { background: var(--green-600); box-shadow: var(--shadow-lg); }

.btn--b2c { background: var(--clay-600); color: #fff; box-shadow: var(--shadow-md); }
.btn--b2c:hover { background: var(--clay-700); box-shadow: var(--shadow-lg); }

.btn--ghost { background: transparent; color: var(--green-900); border-color: var(--border-strong); }
.btn--ghost:hover { border-color: var(--green-600); background: var(--surface); }

.btn--light { background: #fff; color: var(--green-900); }
.btn--light:hover { background: var(--green-100); }

.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn--outline-light:hover { border-color: #fff; background: rgba(255,255,255,.1); }

.btn--sm { min-height: 44px; padding: .6rem 1.2rem; font-size: var(--fs-xs); }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.btn-note { font-size: var(--fs-xs); color: var(--ink-500); margin-top: var(--space-2); }

.btn .icon { width: 18px; height: 18px; flex: none; }

/* --------------------------------------------------------------------------
   5. Header / Sticky Nav
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(251, 250, 247, .88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-xs); }

.nav {
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-2);
}

.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink-900); }
.brand__mark {
  width: 38px; height: 38px; border-radius: 12px; flex: none;
  background: linear-gradient(150deg, var(--green-600), var(--green-900));
  color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: .82rem; letter-spacing: -.02em;
  box-shadow: var(--shadow-sm);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-weight: 800; font-size: .98rem; letter-spacing: -.01em; }
.brand__sub { font-size: .68rem; color: var(--ink-500); letter-spacing: .08em; }

.nav__links { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 0 .85rem; border-radius: var(--r-pill);
  font-size: var(--fs-sm); font-weight: 600; color: var(--ink-700); text-decoration: none;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav__links a:hover { background: var(--green-100); color: var(--green-900); }
.nav__links a[aria-current='page'] { color: var(--green-700); background: var(--green-100); }

.nav__actions { display: flex; align-items: center; gap: .5rem; }

.nav__toggle {
  display: none;
  width: 46px; height: 46px; border: 1px solid var(--border-strong);
  border-radius: 12px; background: var(--surface);
  align-items: center; justify-content: center;
}
.nav__toggle span {
  display: block; width: 20px; height: 2px; background: var(--ink-900); border-radius: 2px;
  position: relative; transition: background-color var(--dur) var(--ease);
}
.nav__toggle span::before, .nav__toggle span::after {
  content: ''; position: absolute; left: 0; width: 20px; height: 2px;
  background: var(--ink-900); border-radius: 2px;
  transition: transform var(--dur) var(--ease), top var(--dur) var(--ease);
}
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }
.nav__toggle[aria-expanded='true'] span { background: transparent; }
.nav__toggle[aria-expanded='true'] span::before { top: 0; transform: rotate(45deg); }
.nav__toggle[aria-expanded='true'] span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .nav__toggle { display: inline-flex; }
  .nav__cta { display: none; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--border);
    padding: var(--space-2) 1.25rem calc(var(--space-3));
    box-shadow: var(--shadow-lg);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
  }
  .nav__links.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__links a { min-height: 52px; border-radius: var(--r-sm); font-size: 1rem; }
  .nav__links .nav__cta-mobile { display: block; margin-top: var(--space-2); }
}
@media (min-width: 901px) { .nav__cta-mobile { display: none; } }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: var(--paper); }
.hero::after {
  content: ''; position: absolute; z-index: 0; pointer-events: none;
  width: 620px; height: 620px; right: -220px; top: -260px; border-radius: 50%;
  background: radial-gradient(circle, var(--green-100) 0%, rgba(228,239,232,0) 68%);
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; gap: var(--space-5); align-items: center;
  padding-block: clamp(2.5rem, 1.5rem + 5vw, 5.5rem) var(--section-y);
  grid-template-columns: 1fr;
}
@media (min-width: 960px) { .hero__inner { grid-template-columns: 1.05fr .95fr; gap: var(--space-6); } }

.hero__title { font-size: var(--fs-display); line-height: 1.14; margin-bottom: var(--space-3); }
.hero__title em { font-style: normal; color: var(--clay-600); }
.hero__title .u-mark {
  background: linear-gradient(transparent 62%, var(--green-100) 62%);
  padding-inline: .08em;
}
.hero__pains { list-style: none; margin: 0 0 var(--space-3); padding: 0; display: grid; gap: .45rem; }
.hero__pains li {
  display: flex; gap: .6rem; align-items: flex-start;
  font-size: var(--fs-sm); color: var(--ink-500);
}
.hero__pains .icon { width: 18px; height: 18px; flex: none; margin-top: .38rem; color: var(--clay-600); }

.hero__media { position: relative; }
.hero__media img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--r-lg); background: var(--surface-alt);
  box-shadow: var(--shadow-lg);
}
.hero__badge {
  position: absolute; left: -8px; bottom: 26px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: .85rem 1.1rem;
  box-shadow: var(--shadow-md); max-width: 250px;
}
.hero__badge strong { display: block; font-size: 1.6rem; color: var(--green-700); line-height: 1.1; }
.hero__badge span { font-size: var(--fs-xs); color: var(--ink-500); }

/* 資歷 chips */
.creds { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: var(--space-3); }
.cred {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .4rem .85rem; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--border);
  font-size: var(--fs-xs); font-weight: 600; color: var(--ink-700);
  box-shadow: var(--shadow-xs);
}
.cred .icon { width: 15px; height: 15px; color: var(--green-600); }

/* 頁面小 Hero（內頁共用） */
.page-hero { background: var(--green-050); border-bottom: 1px solid var(--border); }
.page-hero__inner { padding-block: clamp(2.5rem, 1.8rem + 4vw, 4.5rem); max-width: 780px; }
.breadcrumb { font-size: var(--fs-xs); color: var(--ink-500); margin-bottom: var(--space-1); }
.breadcrumb a { color: var(--ink-500); }

/* --------------------------------------------------------------------------
   7. Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-3);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--green-300); }
.card__icon {
  width: 52px; height: 52px; border-radius: 16px; margin-bottom: var(--space-2);
  display: grid; place-items: center;
  background: var(--green-100); color: var(--green-700);
}
.card__icon--clay { background: var(--clay-100); color: var(--clay-700); }
.card__icon .icon { width: 26px; height: 26px; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--ink-500); font-size: var(--fs-sm); }
.card__list { list-style: none; margin: var(--space-2) 0 0; padding: 0; display: grid; gap: .5rem; }
.card__list li {
  display: flex; gap: .55rem; font-size: var(--fs-sm); color: var(--ink-700);
}
.card__list .icon { width: 17px; height: 17px; flex: none; margin-top: .4rem; color: var(--green-600); }

/* 案例卡 */
.case { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.case__media { position: relative; aspect-ratio: 16 / 10; background: var(--surface-alt); }
.case__media img { width: 100%; height: 100%; object-fit: cover; }
.case__tag {
  position: absolute; top: 12px; left: 12px;
  padding: .3rem .7rem; border-radius: var(--r-pill);
  background: rgba(12, 58, 38, .9); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
}
.case__tag--clay { background: rgba(154, 52, 11, .92); }
.case__body { padding: var(--space-3); display: flex; flex-direction: column; flex: 1; }
.case__metrics {
  display: flex; flex-wrap: wrap; gap: var(--space-2);
  margin-top: auto; padding-top: var(--space-2); border-top: 1px dashed var(--border-strong);
}
.case__metric strong { display: block; font-size: 1.5rem; color: var(--green-700); line-height: 1.15; }
.case__metric span { font-size: var(--fs-xs); color: var(--ink-500); }

/* 交付項目標籤（取代未經查證的成效數字） */
.tag-list { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.tag-list li {
  padding: .3rem .7rem; border-radius: var(--r-pill);
  background: var(--green-050); border: 1px solid var(--border);
  font-size: var(--fs-xs); font-weight: 600; color: var(--green-700);
}
.case--clay .tag-list li { background: var(--clay-100); border-color: #F3D8C7; color: var(--clay-700); }

/* 查證說明條 — 誠實揭露，不是弱點是專業訊號 */
.disclosure {
  display: flex; gap: .75rem; align-items: flex-start;
  margin-top: var(--space-3); padding: 1rem 1.15rem;
  background: var(--surface); border: 1px dashed var(--border-strong);
  border-radius: var(--r-md); font-size: var(--fs-sm); color: var(--ink-500);
}
.disclosure .icon { width: 19px; height: 19px; flex: none; margin-top: .3rem; color: var(--green-600); }
.section--ink .disclosure {
  background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.22); color: #C8D8CE;
}
.section--ink .disclosure .icon { color: var(--green-300); }

/* --------------------------------------------------------------------------
   8. Trust Strip / 見證
   -------------------------------------------------------------------------- */
.trust-logos {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem var(--space-3);
  padding: var(--space-3) 0; margin-top: var(--space-3);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.trust-logos li {
  font-size: var(--fs-sm); font-weight: 700; letter-spacing: .04em;
  color: var(--ink-300);
}

.quote {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: var(--space-3); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: var(--space-2);
}
.quote blockquote { margin: 0; font-size: var(--fs-sm); color: var(--ink-700); line-height: 1.85; }
.quote blockquote::before { content: '「'; color: var(--green-300); }
.quote blockquote::after { content: '」'; color: var(--green-300); }
.quote__person { display: flex; align-items: center; gap: .75rem; margin-top: auto; }
.quote__avatar {
  width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex: none;
  background: var(--surface-alt);
}
.quote__name { font-weight: 700; font-size: var(--fs-sm); }
.quote__role { font-size: var(--fs-xs); color: var(--ink-500); }

/* --------------------------------------------------------------------------
   9. 統計數據
   -------------------------------------------------------------------------- */
.stats { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stat { text-align: center; padding: var(--space-2); }
.stat strong {
  display: block; font-size: clamp(2rem, 1.4rem + 2vw, 2.9rem);
  font-weight: 800; color: var(--green-700); line-height: 1.05; letter-spacing: -.03em;
}
.section--ink .stat strong { color: var(--green-300); }
.stat span { font-size: var(--fs-sm); color: var(--ink-500); }
.section--ink .stat span { color: #C8D8CE; }

/* --------------------------------------------------------------------------
   10. 表格（服務對比）
   -------------------------------------------------------------------------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r-lg); }
table.compare {
  width: 100%; min-width: 620px; border-collapse: separate; border-spacing: 0;
  background: var(--surface); font-size: var(--fs-sm);
  border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden;
}
table.compare th, table.compare td { padding: 1rem 1.1rem; text-align: left; vertical-align: top; }
table.compare thead th {
  background: var(--green-900); color: #fff; font-weight: 700; font-size: var(--fs-xs);
  letter-spacing: .06em; white-space: nowrap;
}
table.compare tbody tr + tr th, table.compare tbody tr + tr td { border-top: 1px solid var(--border); }
table.compare tbody th { font-weight: 700; color: var(--ink-900); width: 24%; }
table.compare .col-before { color: var(--ink-500); }
table.compare .col-after { color: var(--green-700); font-weight: 600; background: var(--green-050); }

/* 價目卡 */
.price-tag {
  display: inline-flex; align-items: baseline; gap: .3rem;
  margin: var(--space-1) 0 var(--space-2);
  font-weight: 800; color: var(--green-700); font-size: 1.35rem; letter-spacing: -.02em;
}
.price-tag small { font-size: var(--fs-xs); font-weight: 600; color: var(--ink-500); }

/* --------------------------------------------------------------------------
   11. FAQ Accordion
   -------------------------------------------------------------------------- */
.faq { display: grid; gap: .75rem; }
.faq details {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  overflow: hidden; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.faq details[open] { border-color: var(--green-300); box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-2);
  padding: 1.1rem 1.25rem; min-height: 56px;
  font-weight: 700; font-size: var(--fs-body);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex: none; width: 12px; height: 12px;
  border-right: 2px solid var(--green-600); border-bottom: 2px solid var(--green-600);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform var(--dur) var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq .faq__body { padding: 0 1.25rem 1.25rem; color: var(--ink-500); font-size: var(--fs-sm); }

/* --------------------------------------------------------------------------
   12. 時間軸（專業里程碑）
   -------------------------------------------------------------------------- */
.timeline { list-style: none; margin: 0; padding: 0 0 0 1.9rem; position: relative; display: grid; gap: var(--space-4); }
.timeline::before {
  content: ''; position: absolute; left: 6px; top: .6rem; bottom: .6rem;
  width: 2px; background: linear-gradient(var(--green-300), var(--clay-300));
}
.timeline > li { position: relative; }
.timeline > li::before {
  content: ''; position: absolute; left: -1.9rem; top: .55rem;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--green-600);
}
.timeline time {
  display: inline-block; font-weight: 800; color: var(--clay-600);
  font-size: var(--fs-sm); letter-spacing: .04em; margin-bottom: .2rem;
}
.timeline h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.timeline p { color: var(--ink-500); font-size: var(--fs-sm); }

/* --------------------------------------------------------------------------
   13. 圖文交錯區塊 / 剪影
   -------------------------------------------------------------------------- */
.split { display: grid; gap: var(--space-4); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
  .split--reverse .split__media { order: 2; }
}
.split__media img {
  width: 100%; aspect-ratio: 5 / 4; object-fit: cover;
  border-radius: var(--r-lg); box-shadow: var(--shadow-md); background: var(--surface-alt);
}

.gallery { display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.gallery figure { margin: 0; }
.gallery img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: var(--r-md); background: var(--surface-alt); box-shadow: var(--shadow-sm);
  transition: transform var(--dur-slow) var(--ease);
}
.gallery figure:hover img { transform: scale(1.03); }
.gallery figcaption { font-size: var(--fs-xs); color: var(--ink-500); margin-top: .5rem; }

/* --------------------------------------------------------------------------
   14. 雙軌分流卡（B2B / B2C）
   -------------------------------------------------------------------------- */
.track {
  border-radius: var(--r-lg); padding: var(--space-4);
  border: 1px solid var(--border); background: var(--surface);
  display: flex; flex-direction: column; gap: var(--space-2);
  box-shadow: var(--shadow-sm);
}
.track--b2b { border-top: 5px solid var(--green-600); }
.track--b2c { border-top: 5px solid var(--clay-600); }
.track__label {
  font-size: var(--fs-xs); font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green-600);
}
.track--b2c .track__label { color: var(--clay-600); }
.track ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.track ul li { display: flex; gap: .55rem; font-size: var(--fs-sm); color: var(--ink-700); }
.track ul .icon { width: 17px; height: 17px; flex: none; margin-top: .4rem; color: var(--green-600); }
.track--b2c ul .icon { color: var(--clay-600); }
.track .btn { margin-top: auto; }

/* --------------------------------------------------------------------------
   15. Final CTA
   -------------------------------------------------------------------------- */
.cta-band {
  background: linear-gradient(140deg, var(--green-900) 0%, #123F2B 55%, #1B5638 100%);
  color: #fff; border-radius: var(--r-lg);
  padding: clamp(2rem, 1.4rem + 3vw, 3.5rem);
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-band::after {
  content: ''; position: absolute; right: -80px; bottom: -120px;
  width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(194,65,12,.34), rgba(194,65,12,0) 70%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #C8D8CE; }

/* --------------------------------------------------------------------------
   16. Forms
   -------------------------------------------------------------------------- */
.form { display: grid; gap: var(--space-3); }
.field { display: grid; gap: .4rem; }
.field > label { font-weight: 700; font-size: var(--fs-sm); }
.field .req { color: var(--clay-600); }
.field .hint { font-size: var(--fs-xs); color: var(--ink-500); }

.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .75rem .95rem;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--r-sm); font-size: 1rem;   /* ≥16px 避免 iOS 自動縮放 */
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.7; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--green-300); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(27, 107, 69, .18);
}
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--danger); }
.field .error { display: none; font-size: var(--fs-xs); color: var(--danger); font-weight: 600; }
.field.is-invalid .error { display: block; }

.field-row { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

.radio-cards { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.radio-card {
  position: relative; display: flex; flex-direction: column; gap: .2rem;
  padding: 1rem 1.1rem; min-height: 64px; cursor: pointer;
  border: 1px solid var(--border-strong); border-radius: var(--r-md); background: var(--surface);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.radio-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.radio-card strong { font-size: var(--fs-sm); }
.radio-card span { font-size: var(--fs-xs); color: var(--ink-500); }
.radio-card:hover { border-color: var(--green-300); }
.radio-card:has(input:checked) { border-color: var(--green-600); background: var(--green-050); box-shadow: 0 0 0 2px rgba(27,107,69,.16); }
.radio-card:has(input:focus-visible) { outline: 3px solid var(--ring); outline-offset: 3px; }
.radio-card--clay:has(input:checked) { border-color: var(--clay-600); background: var(--clay-100); box-shadow: 0 0 0 2px rgba(194,65,12,.16); }

.form__status {
  display: none; padding: 1rem 1.15rem; border-radius: var(--r-md);
  font-size: var(--fs-sm); font-weight: 600;
}
.form__status.is-visible { display: block; }
.form__status.is-success { background: var(--green-100); color: var(--green-900); border: 1px solid var(--green-300); }
.form__status.is-error { background: #FDECEC; color: var(--danger); border: 1px solid #F3C7C7; }

.conditional { display: none; }
.conditional.is-shown { display: grid; gap: .4rem; }

/* 聯絡資訊清單 */
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.info-list li { display: flex; gap: .85rem; align-items: flex-start; }
.info-list .icon { width: 20px; height: 20px; flex: none; margin-top: .3rem; color: var(--green-600); }
.info-list dt { font-size: var(--fs-xs); color: var(--ink-500); letter-spacing: .06em; }
.info-list dd { margin: 0; font-weight: 700; font-size: var(--fs-sm); }
.info-list a { color: var(--ink-900); }

.map-frame {
  border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); background: var(--surface-alt);
}
.map-frame iframe { display: block; width: 100%; height: 380px; border: 0; }

/* --------------------------------------------------------------------------
   17. Footer + 社群矩陣
   -------------------------------------------------------------------------- */
.social-band {
  background: var(--clay-600); color: #fff;
  padding-block: var(--space-4);
}
.social-band__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--space-3);
}
.social-band h2 { font-size: var(--fs-h3); color: #fff; margin-bottom: .35rem; }
.social-band p { color: #FBEADF; font-size: var(--fs-sm); margin: 0; }
.social-links { display: flex; flex-wrap: wrap; gap: .75rem; list-style: none; margin: 0; padding: 0; }
.social-links a {
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 48px; padding: .6rem 1.15rem; border-radius: var(--r-pill);
  background: #fff; color: var(--clay-700); text-decoration: none;
  font-weight: 700; font-size: var(--fs-sm);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.social-links a:hover { transform: translateY(-2px); background: #FFF6F0; }
.social-links .icon { width: 20px; height: 20px; }

.site-footer { background: var(--green-900); color: #C8D8CE; padding-block: var(--space-5) var(--space-3); }
.footer-grid {
  display: grid; gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}
.site-footer .brand { color: #fff; }
.site-footer .brand__sub { color: #9FC6AE; }
.site-footer h3 { color: #fff; font-size: var(--fs-sm); letter-spacing: .1em; text-transform: uppercase; margin-bottom: var(--space-2); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-links a {
  color: #C8D8CE; text-decoration: none; font-size: var(--fs-sm);
  display: inline-flex; min-height: 32px; align-items: center;
  transition: color var(--dur) var(--ease);
}
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  margin-top: var(--space-4); padding-top: var(--space-3);
  border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3);
  justify-content: space-between; align-items: center;
  font-size: var(--fs-xs); color: #9FC6AE;
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.footer-bottom a { color: #9FC6AE; }
.footer-disclaimer { max-width: 640px; line-height: 1.7; }

/* --------------------------------------------------------------------------
   18. 進場動態（Motion 4 / Standard）
   在有 JS 時才隱藏，避免 JS 失效導致內容看不見
   -------------------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
  transition-delay: var(--d, 0ms);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .btn:hover, .card--hover:hover, .social-links a:hover { transform: none; }
}

/* --------------------------------------------------------------------------
   19. 列印
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .social-band, .cta-band, .nav__toggle { display: none !important; }
  body { padding-top: 0; background: #fff; }
  a[href^='http']::after { content: ' (' attr(href) ')'; font-size: .75em; color: #555; }
}
