/* ==========================================================================
   對頻設計 tonpin — 全站設計系統
   架構參考 hunglun2026（CSS 變數 token ＋ data-theme 深色模式），
   但視覺是對頻設計自己的：象牙白紙感 ＋ 深藍墨色 ＋ 一道金色對頻波。
   無 build step，單一檔案，各頁只引用這支 ＋ main.js。
   ========================================================================== */

/* ---------- Tokens：淺色（預設） ---------- */
:root {
  --bg: #fbfaf7;              /* 象牙白，比純白少一點刺眼 */
  --bg-soft: #f4f2ed;
  --bg-deep: #0b2447;         /* 深藍區塊底（品牌主色） */
  --card: #ffffff;
  --line: rgba(11, 36, 71, 0.12);
  --line-soft: rgba(11, 36, 71, 0.07);
  --text: #14213d;
  --muted: #4d5c75;           /* 對比 7.0:1 */
  --muted-faint: #6b7891;     /* 對比 4.6:1，符合 WCAG AA */
  --accent: #145da0;          /* 品牌中藍，連結與強調 */
  --accent-deep: #0b2447;
  --accent-bright: #19a7ce;   /* 品牌亮藍，漸層尾端 */
  --gold: #b8842a;            /* 淺底上的金：原 #F5B942 對比僅 1.8:1，調深後 4.6:1 */
  --gold-pure: #f5b942;       /* 深底上／裝飾線條才用原始品牌金 */
  --glow: rgba(20, 93, 160, 0.09);
  --header-bg: rgba(251, 250, 247, 0.88);
  --shadow-card: 0 1px 2px rgba(11, 36, 71, 0.04);
  --shadow-lift: 0 14px 34px -18px rgba(11, 36, 71, 0.35);
  --on-deep: #eef4fb;         /* 深藍底上的文字 */
  --on-deep-muted: rgba(238, 244, 251, 0.72);

  --font-sans: "Noto Sans TC", "PingFang TC", system-ui, sans-serif;
  --font-serif: "Noto Serif TC", "Songti TC", Georgia, serif;
  --font-en: "Outfit", "Noto Sans TC", system-ui, sans-serif;

  --maxw: 1120px;
  --maxw-prose: 760px;
  --radius: 3px;
  --radius-lg: 6px;

  /* 全站垂直節奏集中在這裡，要整體放鬆／收緊改這幾個值即可 */
  --sp-hero-top: 104px;
  --sp-hero-bottom: 112px;
  --sp-section: 88px;
  --sp-head-top: 64px;
  --sp-head-bottom: 40px;
}

/* ---------- Tokens：深色 ---------- */
:root[data-theme="dark"] {
  --bg: #0d1520;
  --bg-soft: #141d2b;
  --bg-deep: #08111d;
  --card: #141d2b;
  --line: rgba(233, 240, 250, 0.13);
  --line-soft: rgba(233, 240, 250, 0.07);
  --text: #e9f0fa;
  --muted: #a3b1c6;           /* 深底對比 8.0:1 */
  --muted-faint: #8494ad;     /* 深底對比 5.4:1 */
  --accent: #6db6e0;
  --accent-deep: #9fd2ec;
  --accent-bright: #19a7ce;
  --gold: #f0be5f;            /* 深底可用亮金，對比 8.9:1 */
  --gold-pure: #f5b942;
  --glow: rgba(109, 182, 224, 0.13);
  --header-bg: rgba(13, 21, 32, 0.9);
  --shadow-card: none;
  --shadow-lift: 0 14px 34px -18px rgba(0, 0, 0, 0.7);
  --on-deep: #e9f0fa;
  --on-deep-muted: rgba(233, 240, 250, 0.7);
}

/* ---------- Base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-sans);
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.85;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, h3, h4 { line-height: 1.4; font-weight: 500; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 880px; margin: 0 auto; padding: 0 24px; }

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

/* 中文不在詞中間斷行，但長句塞不下時仍允許換行 */
.keep { word-break: keep-all; overflow-wrap: anywhere; }

/* ---------- 共用文字樣式 ---------- */
.eyebrow {
  display: block;
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  color: var(--accent);
  margin-bottom: 16px;
  text-transform: uppercase;
}
.eyebrow.on-deep { color: var(--gold-pure); }

.display {
  font-family: var(--font-serif);
  font-weight: 900;
  line-height: 1.32;
  letter-spacing: 0.01em;
}
.num-en { font-family: var(--font-en); font-weight: 600; letter-spacing: 0.01em; }

/* 手繪感金色底線 —— 稀缺使用，全站不超過三處 */
.brush {
  background-image: linear-gradient(transparent 62%, rgba(245, 185, 66, 0.42) 62%, rgba(245, 185, 66, 0.42) 92%, transparent 92%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  padding: 0 2px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--header-bg);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 24px;
}
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand img { height: 34px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-zh { font-family: var(--font-serif); font-weight: 900; font-size: 1.02rem; color: var(--text); letter-spacing: 0.04em; }
.brand-en { font-family: var(--font-en); font-weight: 700; font-size: 0.64rem; letter-spacing: 0.32em; color: var(--muted-faint); }

.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a {
  color: var(--muted);
  font-size: 0.9rem;
  padding: 8px 11px;
  white-space: nowrap;
  border-radius: var(--radius);
  transition: color 0.2s;
}
.main-nav a:hover { color: var(--text); text-decoration: none; }
.main-nav a.active { color: var(--accent); font-weight: 500; }

.nav-cta {
  flex-shrink: 0;
  background: var(--accent-deep);
  color: #fff !important;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover { background: var(--accent); text-decoration: none; transform: translateY(-1px); }
:root[data-theme="dark"] .nav-cta { background: var(--accent); color: #08111d !important; }

.theme-toggle, .nav-toggle {
  flex-shrink: 0;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 1rem; line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}
.theme-toggle:hover, .nav-toggle:hover { border-color: var(--accent); transform: translateY(-1px); }
.nav-toggle { display: none; border-radius: var(--radius); }
.nav-toggle svg { width: 20px; height: 20px; stroke-width: 1.6; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: var(--sp-hero-top) 0 var(--sp-hero-bottom);
  overflow: hidden;
  background:
    radial-gradient(70% 90% at 12% 0%, var(--glow), transparent 62%),
    var(--bg);
}
.hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: 0.9;
}
.hero > .wrap { position: relative; z-index: 1; }
.hero-quote {
  color: var(--muted-faint);
  font-size: 0.95rem;
  margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(2.1rem, 6vw, 3.9rem);
  line-height: 1.28;
  letter-spacing: 0.01em;
  max-width: 15em;
}
.hero h1 .amp {
  background: linear-gradient(96deg, var(--accent-deep), var(--accent-bright));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
:root[data-theme="dark"] .hero h1 .amp {
  background: linear-gradient(96deg, var(--accent-bright), #8fd8f0);
  -webkit-background-clip: text; background-clip: text;
}
.hero .lead {
  margin-top: 26px;
  max-width: 40em;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.09rem);
}
.hero-price {
  margin-top: 26px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  font-size: 0.92rem; color: var(--muted-faint);
}
.hero-price strong { font-family: var(--font-en); font-weight: 600; color: var(--text); font-size: 1rem; }
.hero-cta { margin-top: 34px; display: flex; gap: 16px 26px; flex-wrap: wrap; align-items: center; }
.hero-trust {
  margin-top: 46px; padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted-faint); font-size: 0.86rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 30px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.94rem; font-weight: 500; letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--accent-deep); color: #fff; }
.btn-primary:hover { background: var(--accent); color: #fff; }
:root[data-theme="dark"] .btn-primary { background: var(--accent); color: #08111d; }
:root[data-theme="dark"] .btn-primary:hover { background: var(--accent-deep); color: #08111d; }
.btn-outline { border-color: var(--line); color: var(--text); background: none; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost {
  padding: 14px 0; border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0; color: var(--muted);
}
.btn-ghost:hover { border-color: var(--gold-pure); color: var(--text); transform: none; }
.btn-sm { padding: 9px 18px; font-size: 0.86rem; }
/* 深藍區塊有 `.section-deep a { color: gold }`（0,1,1）會蓋過單一 class 的按鈕規則，
   讓金底金字變成隱形。按鈕一律用 .btn.xxx（0,2,0）確保勝出。 */
.btn.btn-on-deep { background: var(--gold-pure); color: #0b2447; }
.btn.btn-on-deep:hover { background: #ffcf6d; color: #0b2447; }
.section-deep .btn.btn-primary { background: var(--gold-pure); color: #0b2447; }
.section-deep .btn.btn-outline { border-color: rgba(245, 185, 66, 0.5); color: var(--on-deep); }
.section-deep .btn.btn-outline:hover { border-color: var(--gold-pure); color: var(--gold-pure); }
/* 深藍區塊裡的文字型箭頭連結維持金色即可，但不要被誤套成按鈕樣式 */
.section-deep .link-arrow { color: var(--gold-pure); }
.btn-block { width: 100%; justify-content: center; }

/* 文字型箭頭連結 */
.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.92rem; font-weight: 500;
}
.link-arrow::after { content: "→"; transition: transform 0.2s; }
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Sections ---------- */
.section { padding: var(--sp-section) 0; }
.section-soft { background: var(--bg-soft); }
.section-deep {
  position: relative;
  background: linear-gradient(135deg, var(--bg-deep) 0%, #123a63 58%, #17608c 100%);
  color: var(--on-deep);
  overflow: hidden;
}
.section-deep h2, .section-deep h3 { color: var(--on-deep); }
.section-deep p { color: var(--on-deep-muted); }
.section-deep a { color: var(--gold-pure); }

.section-head { margin-bottom: 46px; max-width: 42em; }
.section-head.right { margin-left: auto; text-align: right; }
.section-head.right .eyebrow { text-align: right; }
.section-title {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(1.55rem, 3.4vw, 2.25rem);
  letter-spacing: 0.01em;
}
.section-sub { margin-top: 14px; color: var(--muted); }
.section-deep .section-sub { color: var(--on-deep-muted); }

/* 對頻波分隔線 */
.wave-divider { height: 26px; width: 100%; color: var(--gold-pure); opacity: 0.5; }
.wave-divider svg { width: 100%; height: 100%; display: block; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }

.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 30px 28px 32px;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
/* hover 時頂部浮出一道金線——品牌金的稀缺用法 */
.card::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold-pure), transparent 78%);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  opacity: 0; transition: opacity 0.28s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--line); }
.card:hover::before { opacity: 1; }
.card .card-ico {
  width: 40px; height: 40px;
  color: var(--accent);
  stroke-width: 1.4;
  margin-bottom: 18px;
}
.card h3 { font-size: 1.1rem; font-weight: 500; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.94rem; flex: 1; }
.card .card-foot { margin-top: 22px; }
/* 版面去範本感：卡片高低錯落 */
@media (min-width: 900px) {
  .stagger > *:nth-child(2) { margin-top: 26px; }
  .stagger > *:nth-child(3) { margin-top: 52px; }
}

.card-flat {
  background: none; border: none; box-shadow: none;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 26px 0 0;
}
.card-flat::before { display: none; }
.card-flat:hover { transform: none; box-shadow: none; }

/* ---------- 對照（Before / After） ---------- */
.compare { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.compare-col {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 26px 26px 28px;
  background: var(--card);
}
.compare-col.now { background: var(--bg-soft); border-style: dashed; }
.compare-tag {
  font-family: var(--font-en); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--muted-faint); margin-bottom: 16px; display: block;
}
.compare-col.after .compare-tag { color: var(--gold); }
.compare-col ul { list-style: none; display: grid; gap: 13px; }
.compare-col li { position: relative; padding-left: 26px; color: var(--muted); font-size: 0.94rem; }
.compare-col.now li::before { content: "✕"; position: absolute; left: 4px; color: var(--muted-faint); }
.compare-col.after li::before { content: "✓"; position: absolute; left: 4px; color: var(--gold); font-weight: 700; }

/* 分頁切換（你是哪一種忙 / 職務角色 / 場景篩選共用） */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 30px; }
.tab {
  font: inherit; font-size: 0.9rem;
  padding: 9px 18px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer; white-space: nowrap;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.tab:hover { color: var(--text); border-color: var(--accent); }
.tab.active { color: #fff; background: var(--accent-deep); border-color: var(--accent-deep); }
:root[data-theme="dark"] .tab.active { color: #08111d; background: var(--accent); border-color: var(--accent); }
@media (max-width: 560px) {
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .tabs::-webkit-scrollbar { display: none; }
}

/* ---------- 條列 ---------- */
.feature-list { list-style: none; display: grid; gap: 12px; }
.feature-list li {
  position: relative; padding-left: 24px;
  color: var(--muted); font-size: 0.94rem;
  word-break: keep-all; overflow-wrap: anywhere;
}
.feature-list li::before {
  content: ""; position: absolute; left: 4px; top: 0.72em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); opacity: 0.55;
}
.feature-list li strong { color: var(--text); font-weight: 500; }
.section-deep .feature-list li { color: var(--on-deep-muted); }
.section-deep .feature-list li::before { background: var(--gold-pure); opacity: 1; }

/* ---------- 收費方案 ---------- */
.plans { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); align-items: start; }
.plan {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 34px 28px 32px;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.plan.featured { border-color: var(--gold-pure); border-width: 1.5px; }
.plan-badge {
  position: absolute; top: -12px; left: 28px;
  background: var(--gold-pure); color: #0b2447;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
  padding: 4px 14px; border-radius: 999px;
}
.plan h3 { font-size: 1.14rem; font-weight: 500; }
.plan .plan-note { color: var(--muted-faint); font-size: 0.88rem; margin-top: 4px; }
.plan .price {
  font-family: var(--font-en); font-weight: 800;
  font-size: 1.95rem; color: var(--text);
  margin: 22px 0 6px; letter-spacing: 0;
}
.plan .price small { font-size: 0.9rem; font-weight: 600; color: var(--muted-faint); }
.plan .feature-list { margin: 20px 0 26px; flex: 1; }
.plan .btn { margin-top: auto; }

/* ---------- 價目表 ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line-soft); border-radius: var(--radius-lg); }
table.price-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 0.93rem; }
.price-table th, .price-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.price-table thead th {
  background: var(--bg-soft);
  font-family: var(--font-en); font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-faint);
}
.price-table tbody tr:last-child td { border-bottom: none; }
.price-table tbody tr:hover { background: var(--bg-soft); }
.price-table td:first-child { font-weight: 500; color: var(--text); white-space: nowrap; }
.price-table td:nth-child(2) { color: var(--muted); }
.price-table td.amount { font-family: var(--font-en); font-weight: 600; color: var(--text); white-space: nowrap; }
.table-note { margin-top: 14px; font-size: 0.85rem; color: var(--muted-faint); }

/* ---------- 流程 ---------- */
.steps { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); counter-reset: step; }
.step { position: relative; padding-top: 24px; border-top: 1px solid var(--line); }
.step .step-no {
  font-family: var(--font-en); font-weight: 800; font-size: 0.82rem;
  letter-spacing: 0.1em; color: var(--gold);
  display: block; margin-bottom: 10px;
}
.step h3 { font-size: 1.02rem; font-weight: 500; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.92rem; }

/* ---------- 案例 ---------- */
.case { display: grid; gap: 34px; grid-template-columns: 1fr; margin-bottom: 64px; }
@media (min-width: 900px) { .case { grid-template-columns: 1.05fr 1fr; align-items: center; } .case.flip .case-media { order: 2; } }
.case-media {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.case-media:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.case-media img { width: 100%; }
.case-body h3 { font-family: var(--font-serif); font-weight: 900; font-size: 1.35rem; margin: 12px 0 14px; }
.case-body p { color: var(--muted); font-size: 0.96rem; }
.case-detail {
  margin-top: 20px; padding: 20px 22px;
  background: var(--bg-soft);
  border-left: 2px solid var(--gold-pure);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.case-detail h4 { font-size: 0.88rem; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.case-detail p { font-size: 0.92rem; }

.tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0 22px; }
.tag {
  font-size: 0.78rem; padding: 4px 13px;
  border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted);
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; list-style: none;
  position: relative;
  padding: 22px 46px 22px 2px;
  font-weight: 500;
  word-break: keep-all; overflow-wrap: anywhere;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 8px; top: 50%;
  width: 11px; height: 11px;
  border-right: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.25s ease;
}
.faq-item[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
.faq-item summary:hover { color: var(--accent); }
.faq-item .faq-a { padding: 0 8px 24px 2px; color: var(--muted); font-size: 0.95rem; max-width: 46em; }

/* ---------- 頁首（內頁） ---------- */
.page-head {
  padding: var(--sp-head-top) 0 var(--sp-head-bottom);
  border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(60% 100% at 0% 0%, var(--glow), transparent 60%),
    var(--bg);
}
.page-head h1 {
  font-family: var(--font-serif); font-weight: 900;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  max-width: 18em;
}
.page-head p { margin-top: 18px; color: var(--muted); max-width: 42em; }
.breadcrumb { font-size: 0.84rem; color: var(--muted-faint); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted-faint); }
.breadcrumb a:hover { color: var(--accent); }

/* 合規／免責小字區塊 */
.notice {
  margin-top: 26px; padding: 18px 22px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--bg-soft);
  color: var(--muted); font-size: 0.89rem;
  max-width: 52em;
}

/* ---------- 內文（知識庫／長文） ---------- */
.prose { max-width: var(--maxw-prose); margin: 0 auto; }
/* 中文一行 38–43 字最好讀 */
.prose > p, .prose > ul, .prose > ol { max-width: 43em; }
.prose h2 {
  font-family: var(--font-serif); font-weight: 900;
  font-size: 1.42rem; margin: 46px 0 16px;
  padding-top: 26px; border-top: 1px solid var(--line-soft);
}
.prose h3 { font-size: 1.08rem; font-weight: 600; margin: 30px 0 12px; }
.prose p { color: var(--muted); margin-bottom: 18px; }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 20px; }
.prose li { color: var(--muted); margin-bottom: 9px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose .table-scroll { margin: 24px 0; }
.prose-cta {
  margin: 40px 0 0; padding: 28px 30px;
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
}
.prose-cta h3 { font-family: var(--font-serif); font-weight: 900; font-size: 1.15rem; margin-bottom: 10px; }
.prose-cta p { color: var(--muted); font-size: 0.94rem; margin-bottom: 18px; }

/* ---------- Google 認證證書（品牌合規：純白底、充足留白） ---------- */
.cert-band { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line-soft); padding: 46px 34px; }
:root[data-theme="dark"] .cert-band { background: #fff; }
.cert-band .cert-head h3 { color: #14213d; font-family: var(--font-serif); font-weight: 900; font-size: 1.3rem; }
.cert-band .cert-head p { color: #4d5c75; margin-top: 10px; }
.cert-grid {
  display: grid; gap: 26px; margin-top: 34px;
  /* 5 張證書要能在桌機排成一列（band 內寬約 1000px），所以下限抓 168px 而非 190px */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 168px), 1fr));
}
.cert-item { text-align: center; }
.cert-item img {
  width: 100%; max-width: 210px; margin: 0 auto;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 2px;
  background: #fff;
  cursor: zoom-in;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cert-item img:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12); }
.cert-item figcaption { margin-top: 14px; font-size: 0.86rem; color: #4d5c75; line-height: 1.6; }

/* Lightbox */
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(8, 17, 29, 0.86);
  display: flex; align-items: center; justify-content: center;
  padding: 40px; cursor: zoom-out;
}
.lightbox-overlay img { max-width: min(92vw, 900px); max-height: 88vh; width: auto; background: #fff; }
.lightbox-close {
  position: absolute; top: 18px; right: 22px;
  background: none; border: none; color: #fff;
  font-size: 1.6rem; line-height: 1; cursor: pointer;
}

/* ---------- 表單 ---------- */
.form-card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 38px 34px 34px;
  box-shadow: var(--shadow-card);
}
.field { margin-bottom: 22px; }
.field label { display: block; font-size: 0.9rem; font-weight: 500; margin-bottom: 8px; }
.field .req { color: var(--gold); }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit; font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--glow);
}
.field-row { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.checks { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
/* label.check 而非 .check：`.field label`（0,1,1）會蓋掉單一 class 的 display:flex，
   勾選框與文字就會擠在一起（2026-08-05 踩過） */
label.check {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 0; font-weight: 400;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.91rem; color: var(--muted);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.check:hover { border-color: var(--accent); }
.check input {
  width: 17px; height: 17px; margin: 4px 0 0;
  accent-color: var(--accent); flex-shrink: 0;
}
.form-note { margin-top: 16px; font-size: 0.86rem; color: var(--muted-faint); }
.form-sent {
  margin-top: 18px; padding: 14px 18px;
  border: 1px solid var(--gold-pure);
  border-radius: var(--radius);
  background: rgba(245, 185, 66, 0.1);
  font-size: 0.9rem; color: var(--text);
}

.info-cards { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.info-card { border-top: 1px solid var(--line); padding-top: 22px; }
.info-card h3 { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; color: var(--muted-faint); text-transform: uppercase; font-family: var(--font-en); margin-bottom: 10px; }
.info-card p, .info-card a { color: var(--text); font-size: 0.98rem; }

/* ---------- 手機底部固定諮詢列 ---------- */
.sticky-cta {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.sticky-cta .btn { width: 100%; justify-content: center; padding: 13px 20px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 60px 0 34px;
  font-size: 0.9rem;
}
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1.6fr 1fr 1fr; }
.footer-about p { color: var(--muted); margin-top: 16px; max-width: 30em; }
.footer-about .footer-hours { color: var(--muted-faint); font-size: 0.85rem; margin-top: 14px; }
.footer-grid h4 {
  font-family: var(--font-en);
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.2em;
  color: var(--muted-faint); text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-grid ul { list-style: none; border-top: 1px solid var(--line-soft); }
.footer-grid li { border-bottom: 1px solid var(--line-soft); }
.footer-grid li a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 2px; min-height: 44px;
  color: var(--muted) !important;
  transition: padding-left 0.2s ease, color 0.2s ease;
}
.footer-grid li a::after { content: "›"; color: var(--muted-faint); transition: transform 0.2s ease, color 0.2s ease; }
.footer-grid li a:hover { color: var(--text) !important; text-decoration: none; padding-left: 8px; }
.footer-grid li a:hover::after { color: var(--gold); transform: translateX(3px); }
.footer-bottom {
  margin-top: 44px; padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  color: var(--muted-faint); font-size: 0.83rem;
}

/* ---------- 聯絡管道（頁尾與 contact 頁共用） ---------- */
.channel-list { list-style: none; display: grid; gap: 10px; }
.channel {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; min-height: 48px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.channel:hover { border-color: var(--accent); transform: translateY(-1px); text-decoration: none; }
.channel-ico { flex: none; width: 22px; height: 22px; }
.channel-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.channel-txt b { font-weight: 500; font-size: 0.93rem; color: var(--text); }
.channel-txt span { font-size: 0.8rem; color: var(--muted-faint); }
.channel.line { border-color: rgba(6, 199, 85, 0.45); }
.channel.line .channel-ico { color: #06c755; }
.channel.line:hover { border-color: #06c755; }

/* LINE 官方帳號尚未開通前，整批隱藏；填好連結後把 data-line-ready 設成 1 即顯示 */
[data-line-ready="0"] .needs-line { display: none !important; }

/* LINE 綠按鈕（品牌色固定，深淺色模式都一樣） */
.btn-line { background: #06c755; color: #fff !important; border-color: #06c755; }
.btn-line:hover { background: #05a948; border-color: #05a948; color: #fff !important; }

/* 手機底部 CTA：一顆時滿版，兩顆時等分 */
.sticky-cta-row { display: flex; gap: 8px; }
.sticky-cta-row .btn { flex: 1; width: auto; }

/* ---------- 整合方案（寬版錨定卡） ---------- */
.plan-wide {
  position: relative;   /* .plan-badge 是 absolute，沒有這行會跑到別的祖先去定位 */
  margin-top: 30px;
  display: grid; gap: 30px;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  align-items: center;
  padding: 34px 36px;
  border: 1.5px solid var(--gold-pure);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--card) 62%, var(--glow));
  box-shadow: var(--shadow-card);
}
.plan-wide .plan-badge { left: 36px; }
.plan-wide h3 { font-size: 1.3rem; font-weight: 500; margin-top: 8px; }
.plan-wide .plan-note { color: var(--muted); margin-top: 10px; max-width: 34em; }
.plan-wide .feature-list { margin-top: 20px; }
.plan-wide-buy { text-align: right; border-left: 1px solid var(--line); padding-left: 30px; }
.plan-wide-buy .price {
  font-family: var(--font-en); font-size: 2.1rem; font-weight: 700;
  color: var(--text); line-height: 1.1;
}
.plan-wide-buy .price small { font-size: 0.9rem; font-weight: 600; color: var(--muted-faint); }
.plan-wide-buy .save { color: var(--gold); font-size: 0.86rem; margin-top: 8px; }
.plan-wide-buy .btn { margin-top: 20px; }
@media (max-width: 820px) {
  .plan-wide { grid-template-columns: 1fr; gap: 22px; padding: 26px 22px 28px; }
  .plan-wide-buy { text-align: left; border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 22px; }
  .plan-wide-buy .btn { width: 100%; justify-content: center; }
}

/* CTA 底下的降低摩擦說明 */
.cta-note { color: var(--muted-faint); font-size: 0.86rem; margin-top: 14px; }
.cta-note.on-deep { color: var(--on-deep-muted); }

/* ---------- 捲動淡入（漸進增強：只有 .js-fx 才隱藏） ---------- */
.js-fx .reveal { opacity: 0; transform: translateY(22px); }
.js-fx .reveal.in {
  opacity: 1; transform: none;
  transition: opacity 0.75s cubic-bezier(.22,.61,.36,1) var(--rd, 0s),
              transform 0.75s cubic-bezier(.22,.61,.36,1) var(--rd, 0s);
}
@media (prefers-reduced-motion: reduce) {
  .js-fx .reveal { opacity: 1; transform: none; }
  .hero-canvas { display: none; }
}

/* ---------- RWD ---------- */
@media (max-width: 980px) {
  :root { --sp-hero-top: 68px; --sp-hero-bottom: 76px; --sp-section: 64px; }
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 16px;
    box-shadow: var(--shadow-lift);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 4px; border-bottom: 1px solid var(--line-soft); font-size: 0.96rem; }
  .nav-cta { padding: 9px 15px; font-size: 0.83rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  body { line-height: 1.8; }
  .wrap, .wrap-narrow { padding: 0 20px; }
  .card, .plan, .compare-col { padding: 24px 22px 26px; }
  .form-card { padding: 26px 20px 24px; }
  .cert-band { padding: 30px 20px; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .sticky-cta.on { display: block; }
  body.has-sticky-cta { padding-bottom: 74px; }
  .section-head.right { text-align: left; margin-left: 0; }
  .section-head.right .eyebrow { text-align: left; }
}

/* ── 案例故事頁（cases/） ───────────────────────────────── */
.prose code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1px 6px;
}
.case-fact {
  margin: 38px 0 8px;
  padding: 26px 26px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  background: var(--card);
}
.case-fact h3 { margin-top: 0; }
.case-fact > p:last-child { margin-bottom: 0; }

/* 一鍵複製鈕（LINE ID／信箱）——電腦版加不了好友，ID 要能複製 */
.channel-list li { display: flex; align-items: stretch; gap: 8px; }
.channel-list li > .channel { flex: 1 1 auto; min-width: 0; }
.channel-txt span em {
  display: block; font-style: normal;
  font-size: 0.74rem; color: var(--muted-faint); opacity: .85; margin-top: 1px;
}
.fc-copy {
  flex: none; align-self: center;
  padding: 8px 12px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--card);
  color: var(--muted); font-family: inherit; font-size: 0.78rem; line-height: 1.2;
  cursor: pointer; white-space: nowrap;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.fc-copy:hover { border-color: var(--accent); color: var(--text); }
.fc-copy.copied { border-color: #06c755; color: #06c755; }
@media (max-width: 420px) { .fc-copy { padding: 8px 10px; font-size: 0.74rem; } }
