/* ==========================================================================
   對頻設計 tonpair — 全站設計系統 v2（2026-08-17 改版）
   路線：象牙白紙感雜誌。三色收斂（象牙白紙／深墨藍／對頻金），
   視覺簽名＝「雙軸對頻線」：兩條錯位髮絲線在互動中鎖定重合，
   搭配金色硬質偏移陰影（不加 blur）。UI 不再使用亮藍與漸層。
   無 build step，單一檔案，各頁只引用這支 ＋ main.js。
   ========================================================================== */

/* ---------- Tokens：淺色（預設） ---------- */
:root {
  --bg: #faf7f2;              /* 象牙紙白 */
  --bg-soft: #f3efe7;         /* 第二層紙色（區塊交替用，差異刻意做小） */
  --bg-deep: #07172b;         /* 深色區唯一底色：純墨藍，不用漸層 */
  --card: #ffffff;
  --line: rgba(13, 40, 71, 0.16);
  --line-soft: rgba(13, 40, 71, 0.1);
  --line-strong: #0d2847;     /* 卡片、表格的結構實線 */
  --text: #122033;
  --ink: #0d2847;             /* 標題墨色 */
  --muted: #4a5868;           /* 內文說明 */
  --muted-faint: #6b7891;
  --accent: #0d2847;          /* 連結與強調一律墨藍（UI 已刪亮藍） */
  --accent-deep: #0d2847;
  --gold: #b8842a;            /* 淺底上的金字（對比 4.6:1） */
  --gold-pure: #f5b942;       /* 對頻金：1px 線、硬影、4px 圓點，嚴禁大面積 */
  --glow: rgba(13, 40, 71, 0.05);
  --header-bg: rgba(250, 247, 242, 0.92);
  --shadow-card: none;
  --shadow-lift: 0 10px 24px -16px rgba(13, 40, 71, 0.3);
  --shadow-hard: 6px 6px 0 var(--gold-pure);   /* 金色硬影：不加 blur */
  --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: 720px;
  --radius: 0px;              /* 紙張裁切的銳利感：直角 */
  --radius-lg: 2px;

  /* 垂直節奏：非對稱（上緊下鬆），整體放鬆／收緊改這裡 */
  --sp-hero-top: 96px;
  --sp-hero-bottom: 120px;
  --sp-section: 96px;
  --sp-head-top: 64px;
  --sp-head-bottom: 44px;
}

/* ---------- Tokens：深色（夜刊模式，不是純黑） ---------- */
:root[data-theme="dark"] {
  --bg: #0b131e;
  --bg-soft: #101a28;
  --bg-deep: #07101c;
  --card: #132030;
  --line: rgba(232, 237, 242, 0.14);
  --line-soft: rgba(232, 237, 242, 0.08);
  --line-strong: rgba(232, 237, 242, 0.4);
  --text: #e8edf2;
  --ink: #e8edf2;
  --muted: #a3b1c6;
  --muted-faint: #8494ad;
  --accent: #cfdcec;
  --accent-deep: #e8edf2;
  --gold: #f0be5f;            /* 深底可用亮金，對比 8.9:1 */
  --gold-pure: #f5b942;
  --glow: rgba(232, 237, 242, 0.04);
  --header-bg: rgba(11, 19, 30, 0.92);
  --shadow-card: none;
  --shadow-lift: 0 14px 30px -18px rgba(0, 0, 0, 0.7);
  --shadow-hard: 6px 6px 0 rgba(245, 185, 66, 0.4); /* 深底降低不透明度，維持硬邊不加 blur，保留品牌識別 */
  --on-deep: #e8edf2;
  --on-deep-muted: rgba(232, 237, 242, 0.7);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 92px; -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.75;
  font-size: 16px;
  letter-spacing: 0.02em;
  -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; text-underline-offset: 4px; text-decoration-color: var(--gold-pure); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
:root[data-theme="dark"] :focus-visible { outline-color: var(--gold-pure); }

h1, h2, h3, h4 { line-height: 1.4; font-weight: 700; color: var(--ink); }
.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(--ink); 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.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 14px;
  text-transform: uppercase;
}
.eyebrow.on-deep { color: var(--gold-pure); }

.display {
  font-family: var(--font-serif);
  font-weight: 900;
  line-height: 1.3;
  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;
}

/* ---------- 視覺簽名：雙軸對頻線 ----------
   兩條 1.5px 髮絲線（藍＋金）預設微幅錯位，進入視野／載入時鎖定重合。
   用在 hero eyebrow 上方、區塊分隔線、頁尾頂端。 */
.sig-line { display: block; width: 120px; height: 12px; overflow: visible; }
.sig-line .line-navy, .sig-line .line-gold { transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
.js-fx .sig-line:not(.in) .line-navy { transform: translateY(-3px); }
.js-fx .sig-line:not(.in) .line-gold { transform: translateY(3px); }
.sig-line.in .line-navy, .sig-line.in .line-gold { transform: translateY(0); }
.sig-line .line-navy { stroke: var(--ink); }
.sig-line .line-gold { stroke: var(--gold-pure); }
.section-deep .sig-line .line-navy { stroke: var(--on-deep); }

/* 區塊分隔：1px 網格線＋中央對頻結點（兩枚小方塊向中間靠攏重合） */
.divider { position: relative; height: 12px; margin: 0 auto; max-width: var(--maxw); padding: 0 24px; }
.divider::before {
  content: ""; position: absolute; left: 24px; right: 24px; top: 50%;
  border-top: 1px solid var(--line-soft);
}
.divider i {
  position: absolute; top: 50%; left: 50%;
  width: 4px; height: 8px; margin-top: -4px;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
}
.divider i:first-of-type { background: var(--ink); margin-left: -5px; }
.divider i:last-of-type { background: var(--gold-pure); margin-left: 1px; }
.js-fx .divider:not(.in) i:first-of-type { transform: translateX(-10px); opacity: 0; }
.js-fx .divider:not(.in) i:last-of-type { transform: translateX(10px); opacity: 0; }

/* ---------- 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(--ink); 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;
  transition: color 0.2s;
}
.main-nav a:hover { color: var(--ink); text-decoration: none; }
.main-nav a.active { color: var(--ink); font-weight: 500; box-shadow: inset 0 -2px 0 var(--gold-pure); }

.nav-cta {
  flex-shrink: 0;
  background: var(--ink);
  color: #fff !important;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: var(--radius-lg);
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.nav-cta:hover { background: #071526; color: var(--gold-pure) !important; text-decoration: none; }
:root[data-theme="dark"] .nav-cta { background: var(--gold-pure); color: #07172b !important; }
:root[data-theme="dark"] .nav-cta:hover { background: #ffcf6d; color: #07172b !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, color 0.2s;
}
.theme-toggle:hover, .nav-toggle:hover { border-color: var(--ink); }
.nav-toggle { display: none; border-radius: var(--radius-lg); }
.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: var(--bg);   /* 乾淨純粹的紙面，讓對頻線成為唯一線條焦點 */
}
.hero > .wrap { position: relative; z-index: 1; }
.hero-quote {
  color: var(--muted-faint);
  font-size: 0.95rem;
  margin: 14px 0 18px;
}
.hero h1 {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(2.2rem, 5.2vw, 3.75rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.hero h1 .amp { color: var(--gold); }
.hero .lead {
  margin-top: 24px;
  max-width: 32em;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.09rem);
  line-height: 1.7;
}
.hero-price {
  margin-top: 22px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 0.9rem; color: var(--muted);
}
.hero-price::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--gold-pure); flex: none; }
.hero-price strong { font-family: var(--font-en); font-weight: 600; color: var(--ink); font-size: 0.98rem; letter-spacing: 0; }
.hero-cta { margin-top: 32px; display: flex; gap: 14px 24px; flex-wrap: wrap; align-items: center; }
.hero-trust {
  margin-top: 44px; padding-top: 20px;
  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: 14px 28px;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  font-size: 0.94rem; font-weight: 500; letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-primary:hover { background: #071526; color: var(--gold-pure); }
:root[data-theme="dark"] .btn-primary { background: var(--gold-pure); color: #07172b; border-color: var(--gold-pure); }
:root[data-theme="dark"] .btn-primary:hover { background: #ffcf6d; color: #07172b; }
.btn-outline { border-color: var(--line); color: var(--text); background: none; }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); background: var(--card); }
:root[data-theme="dark"] .btn-outline:hover { background: none; border-color: var(--gold-pure); color: var(--gold-pure); }
.btn-ghost {
  padding: 13px 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(--ink); }
.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: transparent; color: var(--gold-pure);
  border: 1px solid var(--gold-pure);
}
.btn.btn-on-deep:hover { background: var(--gold-pure); color: #07172b; }
.section-deep .btn.btn-primary { background: transparent; color: var(--gold-pure); border-color: var(--gold-pure); }
.section-deep .btn.btn-primary:hover { background: var(--gold-pure); color: #07172b; }
.section-deep .btn.btn-outline { border-color: rgba(238, 244, 251, 0.35); color: var(--on-deep); }
.section-deep .btn.btn-outline:hover { border-color: var(--gold-pure); color: var(--gold-pure); background: none; }
.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: "→"; font-family: var(--font-en); transition: transform 0.2s; }
.link-arrow:hover { text-decoration: none; color: var(--gold); }
.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: var(--bg-deep);   /* 純墨藍，不用漸層 */
  color: var(--on-deep);
  overflow: hidden;
}
/* 深色模式下 bg-deep 跟畫布色 bg 明度太接近，補一道金色頂緣定義邊界 */
:root[data-theme="dark"] .section-deep::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0;
  border-top: 1px solid rgba(245, 185, 66, 0.35);
}
.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: 48px; 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.7rem, 3.4vw, 2.55rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.section-sub { margin-top: 14px; color: var(--muted); }
.section-deep .section-sub { color: var(--on-deep-muted); }

/* B 型：編輯室宣言（完全置中） */
.section-head.center { max-width: 760px; margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .section-sub { margin-left: auto; margin-right: auto; max-width: 34em; }

/* C 型：懸掛式索引（標題滿版，下方掛一條滿版對頻線，卡片吊在線下） */
.section-head.hang { max-width: none; margin-bottom: 0; padding-bottom: 28px; position: relative; }
.section-head.hang::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  border-bottom: 1px solid var(--line);
}
.section-head.hang + * { margin-top: 44px; }

/* 對頻波分隔線（沿用，深色 CTA 區頂端用） */
.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)); }

/* 對頻吸附卡：偽元素是一圈錯位的金框，hover 時吸附回位（＝對上頻率） */
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px 34px;
  display: flex; flex-direction: column;
  transition: border-color 0.25s ease;
}
.card::after {
  content: "";
  position: absolute; inset: -1px;
  border: 1px solid var(--gold-pure);
  pointer-events: none;
  transform: translate(4px, 4px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}
.card:hover { border-color: var(--line-strong); }
.card:hover::after { transform: translate(0, 0); opacity: 1; }
/* 卡片編號（取代泛用小 icon）：Outfit 幾何數字＋金色斜線 */
.card-num {
  font-family: var(--font-en); font-weight: 600; font-size: 1.5rem;
  color: var(--ink); letter-spacing: 0.02em;
  margin-bottom: 20px; line-height: 1;
}
.card-num::after { content: " /"; color: var(--gold-pure); font-weight: 400; }
.card .card-ico {
  width: 36px; height: 36px;
  color: var(--ink);
  stroke-width: 1.4;
  margin-bottom: 18px;
}
.card h3 { font-size: 1.35rem; font-weight: 700; letter-spacing: 0.02em; 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; }
}

/* 報紙剪報清單卡（知識庫）：無底色、上劃線，hover 標題轉金 */
.card-flat {
  background: none; border: none; box-shadow: none;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 24px 0 0;
}
.card-flat::after { display: none; }
.card-flat:hover { border-top-color: var(--line-strong); }
.card-flat h3 { font-size: 1.08rem; }
.card-flat h3 a { color: var(--ink); }
.card-flat h3 a:hover { color: var(--gold); text-decoration: none; }

/* ---------- 對照（Before / After） ---------- */
.compare { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.compare-col {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 28px 30px;
  background: var(--card);
}
/* Before：紙上的草稿感（虛線框、灰字）；After：定稿（實線白卡＋金色硬影） */
.compare-col.now { background: rgba(13, 40, 71, 0.03); border-style: dashed; border-color: var(--line); }
:root[data-theme="dark"] .compare-col.now { background: rgba(232, 237, 242, 0.03); }
.compare-col.after { border-color: var(--line-strong); box-shadow: 6px 6px 0 rgba(13, 40, 71, 0.08); }
:root[data-theme="dark"] .compare-col.after { box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.4); }
.compare-tag {
  font-family: var(--font-en); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted-faint); margin-bottom: 16px; display: block;
}
.compare-col.after .compare-tag { color: var(--gold); }
.compare-col.after .compare-tag::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--gold-pure); margin-right: 8px; vertical-align: 2px; }
.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; }

/* 分頁切換：對頻刻度列（1px 底線＋細刻度，金色指針吸附至選中項） */
.tabs {
  position: relative;
  display: flex; gap: 32px; flex-wrap: wrap;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--line);
  background-image: repeating-linear-gradient(90deg, var(--line-soft) 0 1px, transparent 1px 24px);
  background-repeat: repeat-x;
  background-position: 0 100%;
  background-size: 100% 6px;
}
.tab {
  font: inherit; font-size: 0.94rem;
  padding: 10px 2px 14px;
  background: none;
  border: none;
  border-radius: 0;
  color: var(--muted);
  cursor: pointer; white-space: nowrap;
  position: relative;
  transition: color 0.2s;
}
.tab::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px; background: var(--gold-pure);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); font-weight: 500; }
.tab.active::after { transform: scaleX(1); }
@media (max-width: 560px) {
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; gap: 22px; }
  .tabs::-webkit-scrollbar { display: none; }
}

/* ---------- 條列 ---------- */
.feature-list { list-style: none; display: grid; gap: 12px; }
.feature-list li {
  position: relative; padding-left: 22px;
  color: var(--muted); font-size: 0.94rem;
  word-break: keep-all; overflow-wrap: anywhere;
}
.feature-list li::before {
  content: ""; position: absolute; left: 2px; top: 0.75em;
  width: 8px; height: 1px;
  background: var(--gold-pure);
}
.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); }

/* ---------- 收費方案：票券／存根聯 ---------- */
.plans { display: grid; gap: 26px; 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-strong);
  border-radius: var(--radius);
  padding: 34px 28px 32px;
  display: flex; flex-direction: column;
  transition: border-color 0.25s ease;
}
.plan.featured { box-shadow: var(--shadow-hard); }
.plan-badge {
  position: absolute; top: 0; right: 0;
  background: var(--ink); color: #faf7f2;
  font-family: var(--font-en);
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em;
  padding: 5px 14px;
  text-transform: uppercase;
}
:root[data-theme="dark"] .plan-badge { background: var(--gold-pure); color: #07172b; }
.plan h3 { font-size: 1.2rem; font-weight: 700; }
.plan .plan-note { color: var(--muted-faint); font-size: 0.88rem; margin-top: 4px; }
/* 票券撕線：金額與內容之間的虛線，兩端做半圓缺角（撕票的鏤空感） */
.plan .price {
  font-family: var(--font-en); font-weight: 400;
  font-size: 2.6rem; color: var(--ink);
  letter-spacing: -0.03em; line-height: 1.1;
  margin: 20px 0 0; padding-bottom: 20px;
  border-bottom: 1px dashed var(--line);
  position: relative;
}
.plan .price::before, .plan .price::after {
  content: "";
  position: absolute; bottom: -7px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg);
}
.plan .price::before { left: -36px; }
.plan .price::after { right: -36px; }
@media (max-width: 640px) {
  .plan .price::before { left: -30px; }
  .plan .price::after { right: -30px; }
}
.section-soft .plan .price::before, .section-soft .plan .price::after { background: var(--bg-soft); }
.plan .price small { font-size: 0.9rem; font-weight: 600; color: var(--muted-faint); letter-spacing: 0; }
.plan .feature-list { margin: 22px 0 26px; flex: 1; }
.plan .btn { margin-top: auto; }

/* ---------- 價目表：報紙目錄式 ---------- */
/* 手機可左右滑動；兩側漸層陰影提示還有內容（scroll shadow 技法） */
.table-scroll {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  background:
    linear-gradient(90deg, var(--bg) 30%, transparent),
    linear-gradient(270deg, var(--bg) 30%, transparent) 100% 0,
    radial-gradient(farthest-side at 0 50%, rgba(13, 40, 71, 0.14), transparent),
    radial-gradient(farthest-side at 100% 50%, rgba(13, 40, 71, 0.14), transparent) 100% 0;
  background-repeat: no-repeat;
  background-size: 40px 100%, 40px 100%, 12px 100%, 12px 100%;
  background-attachment: local, local, scroll, scroll;
}
table.price-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 0.93rem; }
.price-table th, .price-table td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.price-table thead th {
  font-family: var(--font-en); font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink);
  border-bottom: 2px solid var(--ink);
  background: none;
}
:root[data-theme="dark"] .price-table thead th { border-bottom-color: var(--line-strong); }
.price-table tbody tr:nth-child(even) { background: rgba(13, 40, 71, 0.02); }
:root[data-theme="dark"] .price-table tbody tr:nth-child(even) { background: rgba(232, 237, 242, 0.02); }
.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(--ink); white-space: nowrap; text-align: right; }
.price-table th:last-child, .price-table td:last-child { text-align: right; }
.table-note { margin-top: 14px; font-size: 0.85rem; color: var(--muted-faint); }

/* ---------- 流程：橫向時間軸（頂部貫穿金色對頻線＋圓點） ---------- */
.steps { display: grid; gap: 30px 26px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); counter-reset: step; position: relative; }
.steps::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0;
  border-top: 1px solid var(--gold-pure);
}
.step { position: relative; padding-top: 26px; }
.step::after {
  content: ""; position: absolute; left: 0; top: -4px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold-pure);
}
.step .step-no {
  font-family: var(--font-en); font-weight: 600; font-size: 1.3rem;
  letter-spacing: 0.02em; color: var(--ink);
  display: block; margin-bottom: 8px; line-height: 1;
}
.step .step-no::after { content: " /"; color: var(--gold-pure); font-weight: 400; }
.step h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.92rem; }
/* 手機單欄時，每步之間補一條淡線（貫穿線只剩最上面那條時的替代節奏） */
@media (max-width: 640px) {
  .step + .step { border-top: 1px solid var(--line-soft); }
  .step + .step::after { top: -4px; }
}

/* ---------- 案例（portfolio 頁）：檔案夾式展覽卡 ---------- */
.case { display: grid; gap: 34px; grid-template-columns: 1fr; margin-bottom: 72px; }
@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-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
  transition: box-shadow 0.3s ease;
}
.case-media:hover { box-shadow: var(--shadow-hard); }
.case-media img { width: 100%; }
.case-body h3 { font-family: var(--font-serif); font-weight: 900; font-size: 1.4rem; 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);
}
.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-family: var(--font-en);
  font-size: 0.74rem; font-weight: 500; letter-spacing: 0.08em;
  padding: 4px 12px;
  border: 1px solid var(--line);
  color: var(--muted);
  text-transform: uppercase;
}

/* ---------- 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; }
/* 展開符號：Outfit 的「＋」，展開時轉 45° 變「×」 */
.faq-item summary::after {
  content: "+";
  position: absolute; right: 8px; top: 50%;
  font-family: var(--font-en); font-weight: 400; font-size: 1.35rem;
  color: var(--gold); line-height: 1;
  transform: translateY(-50%);
  transition: transform 0.25s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item summary:hover { color: var(--gold); }
.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: var(--bg);
}
.page-head h1 {
  font-family: var(--font-serif); font-weight: 900;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.01em;
  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(--ink); }

/* 內頁 hero v2（2026-08-18）：雜誌式左右分欄
   左欄＝對頻線＋標籤＋大標；右欄＝導言、本頁目次、單一動作。
   目次只放在章節 3 個以上的頁面；欄位不足時自動疊成單欄。 */
.page-head .breadcrumb { margin-bottom: 28px; }
.ph-grid { display: grid; gap: 32px; }
.page-head .sig-line { margin-bottom: 20px; }
.ph-main h1 { margin-top: 0; }
.ph-lede { margin: 0; color: var(--muted); max-width: 34em; line-height: 1.75; }
.ph-actions { margin-top: 24px; display: flex; gap: 12px 22px; flex-wrap: wrap; align-items: center; }
.ph-toc { margin-top: 28px; }
.ph-toc-title {
  display: block;
  font-family: var(--font-en); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted-faint); margin-bottom: 10px;
}
.ph-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.ph-toc li { counter-increment: toc; border-top: 1px solid var(--line-soft); }
.ph-toc li:last-child { border-bottom: 1px solid var(--line-soft); }
.ph-toc a {
  display: flex; align-items: baseline; gap: 12px;
  padding: 9px 0; color: var(--muted); font-size: 0.92rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.ph-toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-en); font-size: 0.76rem; color: var(--gold); flex: none;
}
.ph-toc a:hover { color: var(--ink); padding-left: 6px; }
.page-head .notice { margin-top: 34px; }

@media (min-width: 900px) {
  .ph-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: 56px; align-items: end; }
  .ph-side { border-left: 1px solid var(--line-soft); padding-left: 40px; }
  .ph-main h1 { max-width: 13em; }
}
@media (prefers-reduced-motion: reduce) {
  .ph-toc a { transition: none; }
}

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

/* ---------- 內文（知識庫／長文） ---------- */
.prose { max-width: var(--maxw-prose); margin: 0 auto; }
/* 中文一行 35–40 字最好讀 */
.prose > p, .prose > ul, .prose > ol { max-width: 40em; }
.prose h2 {
  font-family: var(--font-serif); font-weight: 900;
  font-size: 1.5rem; line-height: 1.3;
  margin: 56px 0 20px;
  padding-left: 14px;
  border-left: 3px solid var(--gold-pure);
}
.prose h3 { font-size: 1.15rem; font-weight: 700; margin: 36px 0 12px; color: var(--ink); }
.prose p { color: var(--muted); margin-bottom: 22px; font-size: 1.02rem; line-height: 1.85; }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 22px; }
.prose li { color: var(--muted); margin-bottom: 9px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose blockquote {
  background: var(--bg-soft);
  border-left: 2px solid var(--ink);
  padding: 20px 24px; margin: 32px 0;
  font-size: 0.98rem; color: var(--muted);
}
.prose .table-scroll { margin: 24px 0; }
.prose-cta {
  margin: 48px 0 0; padding: 30px 32px;
  background: var(--card);
  border: 1px solid var(--line-strong);
  position: relative;
}
.prose-cta::after {
  content: ""; position: absolute; inset: -1px;
  border: 1px solid var(--gold-pure);
  transform: translate(5px, 5px);
  pointer-events: none; z-index: -1;
}
.prose-cta h3 { font-family: var(--font-serif); font-weight: 900; font-size: 1.2rem; margin: 0 0 10px; }
.prose-cta p { color: var(--muted); font-size: 0.94rem; margin-bottom: 18px; }

/* 雜誌引言頁（pull quote）：取代滿版深色金句區 */
.pull-quote {
  max-width: 680px; margin: 0 auto;
  padding: 56px 24px;
  text-align: center;
  position: relative;
}
.pull-quote::before, .pull-quote::after {
  content: ""; display: block; height: 9px; position: relative;
  border-top: 1px solid var(--line);
  margin-bottom: 40px;
}
.pull-quote::after { margin: 40px 0 0; }
.pull-quote .pq-mark {
  font-family: var(--font-en); font-weight: 400; font-size: 3.5rem;
  color: var(--gold-pure); line-height: 0.6; display: block; margin-bottom: 18px;
}
.pull-quote p {
  font-family: var(--font-serif); font-weight: 900;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  line-height: 1.5; color: var(--ink);
}
.pull-quote .pq-sub { font-family: var(--font-sans); font-weight: 400; font-size: 0.95rem; color: var(--muted); margin-top: 18px; line-height: 1.7; }

/* ---------- 資訊告示框（非證書用，會跟著深色模式走） ----------
   跟 .cert-band 外觀相同但不是證書圖片展示，用在首頁／服務頁的
   Google 服務簡介卡。.cert-band 本身依合規規定恆定純白，不可共用。 */
.info-band {
  background: var(--card);
  border: 2px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 52px 40px;
  position: relative;
}
.info-band::before {
  content: ""; position: absolute; inset: 7px;
  border: 1px dashed var(--line);
  pointer-events: none;
}
.info-band .cert-head h3 { color: var(--ink); font-family: var(--font-serif); font-weight: 900; font-size: 1.3rem; }
.info-band .cert-head p { color: var(--muted); margin-top: 10px; }
.info-band h3 { color: var(--ink); }
.info-band p { color: var(--muted); }

/* ---------- Google 認證：證書告示（公文書框，恆定純白——品牌合規） ---------- */
.cert-band {
  background: #fff;
  border: 2px solid #0d2847;
  border-radius: var(--radius);
  padding: 52px 40px;
  position: relative;
}
/* 內圈 1px 虛線框：證書感 */
.cert-band::before {
  content: ""; position: absolute; inset: 7px;
  border: 1px dashed rgba(13, 40, 71, 0.3);
  pointer-events: none;
}
:root[data-theme="dark"] .cert-band { background: #fff; }
.cert-band .cert-head h3 { color: #0d2847; font-family: var(--font-serif); font-weight: 900; font-size: 1.3rem; }
.cert-band .cert-head p { color: #4a5868; margin-top: 10px; }
/* 證書告示框內的欄位分隔線（桌機） */
@media (min-width: 900px) {
  .cert-band .grid-3 > div + div { border-left: 1px solid rgba(13, 40, 71, 0.12); padding-left: 24px; }
  .info-band .grid-3 > div + div { border-left: 1px solid var(--line); padding-left: 24px; }
}
.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: box-shadow 0.2s ease;
}
.cert-item img:hover { box-shadow: 5px 5px 0 rgba(13, 40, 71, 0.15); }
.cert-item figcaption { margin-top: 14px; font-size: 0.86rem; color: #4a5868; line-height: 1.6; }

/* Lightbox */
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(7, 23, 43, 0.88);
  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-strong);
  border-radius: var(--radius);
  padding: 40px 36px 36px;
}
.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: 13px 15px;
  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(--ink);
  box-shadow: 4px 4px 0 var(--gold-pure);
}
:root[data-theme="dark"] .field input:focus,
:root[data-theme="dark"] .field select:focus,
:root[data-theme="dark"] .field textarea:focus { border-color: var(--gold-pure); box-shadow: none; }
.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(--ink); }
.check input {
  width: 17px; height: 17px; margin: 4px 0 0;
  accent-color: var(--ink); flex-shrink: 0;
}
:root[data-theme="dark"] .check input { accent-color: var(--gold-pure); }
.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.76rem; 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: 64px 0 34px;
  font-size: 0.9rem;
  position: relative;
}
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 3px;
  border-top: 1px solid var(--gold-pure);
  opacity: 0.65;
}
.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(--ink) !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;
}
.channel:hover { border-color: var(--ink); 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: 34px;
  display: grid; gap: 30px;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  align-items: center;
  padding: 38px 40px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--card);
}
.plan-wide .plan-badge { left: auto; right: 0; top: 0; }
.plan-wide h3 { font-family: var(--font-serif); font-weight: 900; font-size: 1.45rem; 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 dashed var(--line); padding-left: 30px; }
.plan-wide-buy .price {
  font-family: var(--font-en); font-size: 2.6rem; font-weight: 400;
  color: var(--ink); line-height: 1.1; letter-spacing: -0.03em;
}
.plan-wide-buy .price small { font-size: 0.9rem; font-weight: 600; color: var(--muted-faint); letter-spacing: 0; }
.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: 28px 24px 30px; }
  .plan-wide-buy { text-align: left; border-left: 0; border-top: 1px dashed 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(18px); }
.js-fx .reveal.in {
  opacity: 1; transform: none;
  transition: opacity 0.7s cubic-bezier(.22,.61,.36,1) var(--rd, 0s),
              transform 0.7s cubic-bezier(.22,.61,.36,1) var(--rd, 0s);
}
@media (prefers-reduced-motion: reduce) {
  .js-fx .reveal { opacity: 1; transform: none; }
  .js-fx .sig-line:not(.in) .line-navy,
  .js-fx .sig-line:not(.in) .line-gold { transform: none; }
  .js-fx .divider:not(.in) i { transform: none !important; opacity: 1 !important; }
  .sig-line .line-navy, .sig-line .line-gold, .divider i, .tab::after, .card::after { transition: none !important; }
}

/* ---------- RWD ---------- */
@media (max-width: 980px) {
  :root { --sp-hero-top: 64px; --sp-hero-bottom: 80px; --sp-section: 68px; }
  .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; }
  .main-nav a.active { box-shadow: none; border-left: 2px solid var(--gold-pure); padding-left: 10px; }
  .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: 34px 22px; }
  .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; }
  .compare-col.after { box-shadow: 4px 4px 0 rgba(13, 40, 71, 0.08); }
  :root[data-theme="dark"] .compare-col.after { box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.4); }
  .plan.featured { box-shadow: 4px 4px 0 var(--gold-pure); }
  :root[data-theme="dark"] .plan.featured { box-shadow: 4px 4px 0 rgba(245, 185, 66, 0.4); }
}

/* ── 案例故事頁（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-pure);
  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(--ink); color: var(--text); }
.fc-copy.copied { border-color: #06c755; color: #06c755; }
@media (max-width: 420px) { .fc-copy { padding: 8px 10px; font-size: 0.74rem; } }

/* ══════════════════════════════════════════════════════════
   首頁版面（hero 左文右視覺＝Editorial 壓紙擺法）
   ══════════════════════════════════════════════════════════ */

.hero-grid { display: grid; gap: 64px; align-items: center; }
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: 80px; }
  .hero-grid .hero-copy h1 { max-width: 11em; }
  .hero-grid .hero-copy .lead { max-width: 30em; }
}

/* 右欄：真實案例畫面，2D 不對稱壓紙疊放（銳利邊、金色硬影） */
.hero-visual { position: relative; padding: 0 14px 30px 0; }
.shot {
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
}
.shot-main { box-shadow: 10px 10px 0 var(--gold-pure); }
:root[data-theme="dark"] .shot-main { box-shadow: 10px 10px 0 rgba(245, 185, 66, 0.4); border-color: var(--line); }
.shot-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 14px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line-soft);
}
.shot-bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); flex: none; }
.shot-bar span {
  margin-left: 8px; font-family: var(--font-en); font-size: 0.72rem;
  color: var(--muted-faint); letter-spacing: 0.04em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.shot img { display: block; width: 100%; height: auto; }
.shot-float {
  position: absolute; right: -14px; bottom: -18px;
  width: 44%; z-index: 2;
  box-shadow: -6px 6px 0 rgba(13, 40, 71, 0.1);
}
:root[data-theme="dark"] .shot-float { box-shadow: -6px 6px 0 rgba(0, 0, 0, 0.45); }
.hero-visual .shot-cap {
  margin-top: 30px;
  padding-right: 46%;          /* 讓開右下角那張浮起的小卡 */
  font-size: 0.84rem; color: var(--muted-faint);
}
@media (max-width: 999px) {
  .hero-visual { max-width: 560px; padding-right: 10px; }
  .shot-float { right: -8px; bottom: -14px; width: 42%; }
}
@media (max-width: 560px) {
  .shot-float { display: none; }
  .shot-main { box-shadow: 6px 6px 0 var(--gold-pure); }
  :root[data-theme="dark"] .shot-main { box-shadow: 6px 6px 0 rgba(245, 185, 66, 0.4); }
  .hero-visual { padding: 0 8px 8px 0; }
  .hero-visual .shot-cap { margin-top: 16px; padding-right: 0; }
}

/* ---------- 區塊標題 A 型：左標題 ＋ 右說明 ---------- */
.section-head.split { max-width: none; margin-bottom: 52px; }
@media (min-width: 900px) {
  .section-head.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: end;
    column-gap: 60px;
  }
  .section-head.split .eyebrow,
  .section-head.split .section-title { grid-column: 1; }
  .section-head.split .section-sub {
    grid-column: 2; grid-row: 1 / span 2;
    margin-top: 0; align-self: end; max-width: 34em;
  }
}

/* ---------- 段落 ＋ 連結並排（服務區塊那段補充說明） ---------- */
.note-row { margin-top: 46px; padding-top: 26px; border-top: 1px dashed var(--line); display: grid; gap: 20px; align-items: start; }
@media (min-width: 900px) {
  .note-row { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); column-gap: 60px; }
  .note-row > :last-child { justify-self: end; text-align: right; padding-top: 4px; }
}
.note-row p { color: var(--muted); margin: 0; }

/* ---------- 卡片群一律對齊（首頁不再高低錯落） ---------- */
.grid.level > * { margin-top: 0 !important; }

/* 知識頁「一句話答案」：標題正下方的直接回答，AI 概覽與精選摘要抓的就是這一段。
   視覺上比其他段落重一階，但不做成色塊——它本來就在「先講結論」框裡了。 */
.prose .answer-line{font-size:1.06rem;line-height:1.85;margin-bottom:14px}
.prose .answer-line strong{font-weight:700;color:var(--text)}

/* ---------- 網站效果展示（首頁：現場演示的互動效果卡） ----------
   每張卡片自己就是那個效果的實物，不用截圖也不用影片。
   一律走既有變數與紙感規則（直角、髮絲線、金色只當點綴）；
   reduced-motion 時全部停在最終狀態，內容仍完整可讀。 */
.fx-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .fx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .fx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.fx-card {
  border: 1px solid var(--line);
  background: var(--card);
  display: flex; flex-direction: column;
}
.fx-stage {
  position: relative;
  height: 150px; padding: 18px;
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-soft);
  overflow: hidden;
  text-align: center;
}
.fx-body { padding: 18px 20px 20px; }
.fx-body h3 { font-size: 1.02rem; margin-bottom: 6px; }
.fx-body p { font-size: 0.9rem; color: var(--muted); }
.fx-replay {
  margin-top: 12px; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 0.84rem; color: var(--gold);
  border-bottom: 1px solid currentColor; line-height: 1.4;
}
.fx-replay:hover { color: var(--ink); }

/* 1. 捲動淡入 */
.fx-reveal-box {
  padding: 12px 18px; border: 1px solid var(--line-strong); background: var(--card);
  font-size: 0.92rem;
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.fx-reveal-box.on { opacity: 1; transform: none; }

/* 2. 打字機 */
.fx-type { font-size: 0.98rem; color: var(--ink); }
.fx-type::after {
  content: ""; display: inline-block; width: 1px; height: 1.05em;
  background: var(--gold-pure); margin-left: 3px; vertical-align: -2px;
  animation: fx-caret 1s steps(1) infinite;
}
@keyframes fx-caret { 50% { opacity: 0; } }

/* 3. 數字滾動 */
.fx-num {
  font-family: var(--font-en); font-weight: 700; font-size: 2.1rem;
  color: var(--ink); letter-spacing: -0.01em;
}
.fx-num small { font-size: 0.9rem; font-weight: 600; color: var(--muted); margin-left: 4px; }

/* 4. 3D 傾斜卡片 */
.fx-tilt-wrap { perspective: 700px; }
.fx-tilt {
  width: 150px; padding: 20px 14px;
  border: 1px solid var(--line-strong); background: var(--card);
  font-size: 0.9rem;
  box-shadow: 4px 4px 0 var(--gold-pure);
  transition: transform 0.25s ease;
  transform-style: preserve-3d;
}

/* 5. 金色流動標題 */
.fx-flow {
  font-family: var(--font-serif); font-weight: 900; font-size: 1.5rem;
  background: linear-gradient(100deg, var(--ink) 0%, var(--ink) 38%, var(--gold-pure) 50%, var(--ink) 62%, var(--ink) 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: fx-flow 4.5s linear infinite;
}
@keyframes fx-flow { from { background-position: 130% 0; } to { background-position: -130% 0; } }

/* 6. 對頻線（自家簽名） */
.fx-sig { width: 150px; }
.fx-sig .sig-line { width: 150px; margin: 0 auto; }

@media (prefers-reduced-motion: reduce) {
  .fx-reveal-box { opacity: 1; transform: none; transition: none; }
  .fx-type::after { animation: none; }
  .fx-flow { animation: none; background: none; color: var(--ink); }
  .fx-tilt { transition: none; }
}
