/* ==========================================================================
   車皇港澳牌 CallCarKing — callcarking.com
   手寫 CSS，零外部依賴（無 Tailwind CDN、無 Google Fonts、無圖表庫）
   v2.0  2026-11-15
   ========================================================================== */

/* ---------- 1. 設計變數 ---------- */
:root {
  --navy-950: #060d1a;
  --navy-900: #0b192c;
  --navy-800: #132743;
  --navy-700: #1e3a5f;

  --gold-600: #8a6208;
  --gold-500: #d4af37;
  --gold-400: #f59e0b;
  --gold-300: #fcd34d;
  --gold-100: #fef3c7;

  --ink-900: #0f172a;
  --ink-800: #1e293b;
  --ink-700: #334155;
  --ink-600: #475569;
  --ink-500: #64748b;
  --ink-400: #94a3b8;
  --ink-300: #cbd5e1;
  --ink-200: #e2e8f0;
  --ink-100: #f1f5f9;
  --ink-50: #f8fafc;

  --green-700: #047857;
  --green-600: #059669;
  --green-500: #10b981;
  /* 按鈕用深一級綠：白字對比 5.48:1（#059669 只有 3.76，不合 WCAG AA） */
  --green-btn: #047857;
  --green-btn-hover: #036349;

  --red-700: #be123c;
  --red-600: #e11d48;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --shadow: 0 4px 14px -4px rgba(15, 23, 42, .12);
  --shadow-lg: 0 18px 40px -18px rgba(6, 13, 26, .35);

  --wrap: 1200px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang HK",
          "Hiragino Sans GB", "Microsoft JhengHei", "Noto Sans TC", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-800);
  background: var(--ink-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 68px; /* 預留手機底部固定欄 */
}

@media (min-width: 768px) { body { padding-bottom: 0; } }

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.28; letter-spacing: -.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }
table { border-collapse: collapse; width: 100%; }
::selection { background: var(--gold-400); color: #fff; }

:focus-visible {
  outline: 3px solid var(--gold-400);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold-400);
  color: var(--navy-950);
  padding: 10px 18px;
  font-weight: 700;
  z-index: 999;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- 3. 版面工具 ---------- */
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 640px) { .wrap { padding: 0 28px; } }

.section { padding: 64px 0; border-bottom: 1px solid var(--ink-200); }
@media (min-width: 768px) { .section { padding: 80px 0; } }
.section--tight { padding: 44px 0; }
.section--white { background: #fff; }
.section--grey { background: var(--ink-50); }
.section--navy { background: var(--navy-900); color: #fff; border-bottom-color: var(--navy-800); }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--dark { background: var(--navy-950); color: #fff; }
.section--flush { border-bottom: 0; }

.stack > * + * { margin-top: 16px; }
.stack-lg > * + * { margin-top: 28px; }
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.measure { max-width: 760px; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 44px; }
.hide { display: none; }

.lead {
  color: var(--ink-600);
  font-size: 1.0625rem;
  line-height: 1.8;
}
.section--navy .lead, .section--dark .lead { color: var(--ink-300); }

.small { font-size: .8125rem; color: var(--ink-500); line-height: 1.65; }
.tiny { font-size: .75rem; color: var(--ink-500); line-height: 1.6; }
.section--navy .small, .section--navy .tiny,
.section--dark .small, .section--dark .tiny { color: var(--ink-400); }

strong, b { font-weight: 700; color: var(--ink-900); }
/* 深色容器內一律轉白：全域 strong 的深色會在深底上變成 1.01:1（等於隱形）。
   這裡一次列齊所有深色情境，新增深色區塊時記得加進來。 */
.section--navy strong, .section--dark strong,
.hero strong, .cta strong, .pagehead strong,
.card--dark strong, .note--dark strong,
.site-footer strong, .datacard strong, .metric strong, .ccard--dark strong,
.section--navy b, .section--dark b,
.hero b, .cta b, .pagehead b,
.card--dark b, .note--dark b,
.site-footer b, .datacard b, .metric b { color: #fff; }

.gold { color: var(--gold-400); }
.gold-text {
  background: linear-gradient(135deg, #fef3c7 0%, #f59e0b 52%, #d4af37 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #f59e0b;
}

/* ---------- 4. 標題與眉標 ---------- */
h1 { font-size: clamp(1.85rem, 5.2vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 3.4vw, 2.1rem); font-weight: 800; color: var(--navy-900); }
h3 { font-size: clamp(1.075rem, 2vw, 1.3rem); font-weight: 700; color: var(--navy-900); }
h4 { font-size: 1rem; font-weight: 700; color: var(--navy-900); }

.eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--gold-100);
  color: #92400e;
}
.eyebrow--navy { background: var(--navy-900); color: var(--gold-300); }
.eyebrow--rose { background: #ffe4e6; color: #9f1239; }
.eyebrow--outline {
  background: rgba(212, 175, 55, .12);
  color: var(--gold-300);
  border: 1px solid rgba(212, 175, 55, .35);
}

.section-head { max-width: 780px; margin: 0 auto 36px; text-align: center; }
.section-head h2 { margin-top: 12px; }
.section-head .lead { margin-top: 12px; }

/* ---------- 5. 按鈕 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-weight: 800;
  font-size: .9375rem;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .16s ease, background-color .16s ease, box-shadow .16s ease, filter .16s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: var(--navy-950);
  box-shadow: 0 10px 26px -12px rgba(245, 158, 11, .8);
}
.btn-gold:hover { filter: brightness(1.07); }

.btn-wa {
  background: var(--green-btn);
  color: #fff;
  box-shadow: 0 10px 26px -14px rgba(5, 150, 105, .9);
}
.btn-wa:hover { background: var(--green-btn-hover); }

.btn-navy { background: var(--navy-900); color: var(--gold-300); }
.btn-navy:hover { background: var(--navy-800); }

.btn-ghost {
  background: rgba(255, 255, 255, .06);
  color: #fff;
  border-color: rgba(255, 255, 255, .22);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }

.btn-outline {
  background: #fff;
  color: var(--navy-900);
  border-color: var(--ink-300);
}
.btn-outline:hover { border-color: var(--navy-900); }

.btn-lg { padding: 17px 30px; font-size: 1rem; }
.btn-sm { padding: 10px 16px; font-size: .8125rem; }
.btn-block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.btn-row--center { justify-content: center; }

.wa-icon { width: 19px; height: 19px; fill: currentColor; flex: none; }

/* ---------- 6. 頂部公告條 ---------- */
.topbar {
  background: var(--navy-950);
  color: var(--ink-300);
  border-bottom: 1px solid var(--navy-800);
  font-size: .8125rem;
  padding: 9px 0;
}
.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 18px;
}
.topbar__msg { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; line-height: 1.5; }
.topbar__msg b { color: var(--gold-300); }
.topbar__pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: .6875rem;
  font-weight: 800;
  background: rgba(245, 158, 11, .16);
  color: var(--gold-300);
  border: 1px solid rgba(212, 175, 55, .32);
  white-space: nowrap;
}
.topbar__contact { display: flex; gap: 14px; font-size: .8125rem; }
.topbar__contact a:hover { color: var(--gold-300); }
@media (max-width: 1023px) { .topbar__contact { display: none; } }

/* ---------- 7. Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(11, 25, 44, .97);
  border-bottom: 1px solid var(--navy-800);
  backdrop-filter: blur(8px);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
}
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand__mark {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: linear-gradient(135deg, #fbbf24, #d97706);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy-950);
  font-weight: 900;
  font-size: 1.1rem;
  flex: none;
}
.brand__name {
  display: flex; align-items: center; gap: 8px;
  color: #fff; font-weight: 900; font-size: 1.0625rem; letter-spacing: -.01em;
}
.brand__tag {
  font-size: .6875rem; font-weight: 800; padding: 2px 8px; border-radius: 5px;
  background: rgba(245, 158, 11, .18); color: var(--gold-300);
  border: 1px solid rgba(212, 175, 55, .32);
}
.brand__sub { font-size: .6875rem; color: var(--ink-400); margin-top: 2px; }
@media (max-width: 480px) { .brand__sub { display: none; } }

.nav { display: none; }
@media (min-width: 1040px) {
  .nav { display: flex; align-items: center; gap: 20px; font-size: .875rem; font-weight: 600; }
  .nav a { color: var(--ink-200); padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
  .nav a:hover { color: var(--gold-300); }
  .nav a[aria-current="page"] { color: var(--gold-300); border-bottom-color: var(--gold-400); }
}

.header-cta { display: flex; align-items: center; gap: 9px; flex: none; }
.header-cta .btn { padding: 10px 16px; font-size: .8125rem; }
.header-cta .btn-ghost { display: none; }
@media (min-width: 640px) { .header-cta .btn-ghost { display: inline-flex; } }
@media (max-width: 479px) { .header-cta .btn-wa span { display: none; } .header-cta .btn-wa { padding: 11px 13px; } }

/* 手機選單：純 CSS <details>，零 JS */
.mnav { display: block; }
@media (min-width: 1040px) { .mnav { display: none; } }
.mnav > summary {
  list-style: none;
  cursor: pointer;
  padding: 10px;
  border-radius: var(--radius-sm);
  color: var(--ink-300);
  display: flex; align-items: center;
}
.mnav > summary::-webkit-details-marker { display: none; }
.mnav > summary:hover { background: var(--navy-800); color: #fff; }
.mnav > summary svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; }
.mnav[open] > summary { color: var(--gold-300); }
.mnav__panel {
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  background: var(--navy-950);
  border-top: 1px solid var(--navy-800);
  border-bottom: 1px solid var(--navy-800);
  padding: 12px 20px 20px;
  max-height: calc(100vh - 68px);
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.mnav__panel a {
  display: block;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  color: var(--ink-200);
  font-size: .9375rem;
  font-weight: 600;
}
.mnav__panel a:hover { background: var(--navy-800); color: var(--gold-300); }
.mnav__panel a[aria-current="page"] { background: var(--navy-800); color: var(--gold-300); }
.mnav__meta {
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--navy-800);
  font-size: .8125rem; color: var(--ink-400);
  display: grid; gap: 5px;
}

/* ---------- 8. Hero ---------- */
.hero {
  background-color: var(--navy-950);
  background-image:
    radial-gradient(at 14% 18%, rgba(212, 175, 55, .17) 0, transparent 46%),
    radial-gradient(at 86% 26%, rgba(30, 58, 95, .62) 0, transparent 52%),
    radial-gradient(at 52% 96%, rgba(16, 185, 129, .11) 0, transparent 46%);
  color: #fff;
  padding: 52px 0 60px;
  border-bottom: 1px solid var(--navy-800);
}
@media (min-width: 768px) { .hero { padding: 76px 0 84px; } }

.hero__grid {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: 1.35fr 1fr; gap: 48px; }
}
.hero h1 { color: #fff; }
.hero__lead {
  color: var(--ink-300);
  font-size: 1rem;
  line-height: 1.85;
  margin-top: 18px;
}
@media (min-width: 768px) { .hero__lead { font-size: 1.0625rem; } }
.hero__lead strong { color: #fff; }

.hero__badges {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 9px;
  padding: 7px 15px;
  border-radius: 999px;
  background: rgba(30, 41, 59, .85);
  border: 1px solid rgba(212, 175, 55, .38);
  color: var(--gold-300);
  font-size: .8125rem;
  font-weight: 700;
}

.sell-grid { display: grid; gap: 12px; margin-top: 22px; }
@media (min-width: 560px) { .sell-grid { grid-template-columns: 1fr 1fr; } }
.sell {
  display: flex; gap: 11px;
  background: rgba(11, 25, 44, .78);
  border: 1px solid var(--navy-800);
  border-radius: var(--radius);
  padding: 15px;
}
.sell__ico { color: var(--gold-400); font-size: 1rem; line-height: 1.5; flex: none; }
.sell__ico--green { color: var(--green-500); }
.sell h2, .sell h3 { color: #fff; font-size: .875rem; font-weight: 700; }
.sell p { font-size: .75rem; color: var(--ink-300); margin-top: 3px; line-height: 1.65; }

/* 權威數據卡 */
.datacard {
  background: rgba(11, 25, 44, .92);
  border: 1px solid var(--navy-700);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-lg);
}
.datacard__head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  padding-bottom: 15px; margin-bottom: 15px;
  border-bottom: 1px solid var(--navy-800);
}
.datacard__kicker {
  font-size: .6875rem; font-weight: 800; letter-spacing: .09em;
  text-transform: uppercase; color: var(--gold-400);
}
.datacard__title { color: #fff; font-size: 1rem; font-weight: 700; margin-top: 3px; }
.datacard__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.metric {
  background: rgba(6, 13, 26, .92);
  border: 1px solid var(--navy-800);
  border-radius: var(--radius);
  padding: 13px;
}
.metric--gold { border-color: rgba(212, 175, 55, .45); }
.metric__label { font-size: .6875rem; color: var(--ink-400); }
.metric--gold .metric__label { color: var(--gold-300); }
.metric__value { font-size: 1.5rem; font-weight: 900; color: #fff; margin-top: 3px; line-height: 1.1; }
.metric__value small { font-size: .6875rem; font-weight: 500; color: var(--ink-400); }
.metric--gold .metric__value { color: var(--gold-400); }
.metric--gold .metric__value small { color: var(--gold-300); }
.metric__note { font-size: .6875rem; color: var(--ink-400); margin-top: 4px; }
.metric--gold .metric__note { color: var(--ink-300); }

.datacard__note {
  margin-top: 15px;
  background: rgba(245, 158, 11, .1);
  border: 1px solid rgba(212, 175, 55, .3);
  border-radius: var(--radius);
  padding: 13px;
  font-size: .75rem;
  line-height: 1.7;
  color: var(--ink-200);
}
.datacard__note b { display: block; color: var(--gold-300); margin-bottom: 4px; font-size: .8125rem; }
.datacard__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: 14px; font-size: .6875rem; color: var(--ink-400);
}
.datacard__foot a { color: var(--gold-400); font-weight: 700; }
.datacard__foot a:hover { text-decoration: underline; }

/* ---------- 9. 卡片 ---------- */
.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }
@media (min-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}
.grid--sidebar { display: grid; gap: 26px; }
@media (min-width: 980px) {
  .grid--sidebar { grid-template-columns: 1fr 1.55fr; gap: 32px; align-items: start; }
  .grid--sidebar--rev { grid-template-columns: 1.55fr 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--ink-300); }
.card--flat { background: var(--ink-50); box-shadow: none; }
.card--feature { border: 2px solid var(--gold-500); background: var(--ink-50); box-shadow: var(--shadow); position: relative; }
.card--dark {
  background: var(--navy-900);
  border-color: var(--navy-700);
  color: #fff;
}
.card--dark h3, .card--dark h4 { color: #fff; }
.card--dark p, .card--dark li { color: var(--ink-300); }

.card__badge {
  position: absolute;
  top: -11px; right: 16px;
  background: var(--gold-400);
  color: var(--navy-950);
  font-size: .6875rem;
  font-weight: 900;
  padding: 3px 11px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.card__num {
  width: 44px; height: 44px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1.0625rem;
  background: var(--navy-900); color: var(--gold-400);
  flex: none;
}
.card__num--green { background: var(--green-btn); color: #fff; }
.card__num--slate { background: var(--ink-700); color: var(--gold-300); }
.card__head { display: flex; align-items: flex-start; gap: 13px; }
.card__body { margin-top: 15px; flex: 1; }
.card__foot { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--ink-200); }
.card--feature .card__foot { border-top-color: #e5d5a8; }

.checklist { display: grid; gap: 9px; margin-top: 14px; }
.checklist li { display: flex; gap: 9px; font-size: .8125rem; line-height: 1.65; color: var(--ink-700); }
.checklist li::before {
  content: "✓";
  color: var(--green-600);
  font-weight: 900;
  flex: none;
  line-height: 1.65;
}
.card--dark .checklist li { color: var(--ink-300); }
.card--dark .checklist li::before { color: var(--green-500); }

.bulletlist { display: grid; gap: 10px; }
.bulletlist li { display: flex; gap: 10px; font-size: .875rem; line-height: 1.7; color: var(--ink-600); }
.bulletlist li::before {
  content: "▪";
  color: var(--gold-500);
  font-weight: 900;
  flex: none;
}

/* 統計小方塊（澳門開公司頁） */
.factgrid { display: grid; gap: 12px; }
@media (min-width: 560px) { .factgrid { grid-template-columns: repeat(3, 1fr); } }
.fact {
  background: rgba(6, 13, 26, .9);
  border: 1px solid var(--navy-800);
  border-radius: var(--radius);
  padding: 15px;
}
.fact__value { font-size: 1.125rem; font-weight: 900; color: var(--gold-400); line-height: 1.2; }
.fact__value--green { color: var(--green-500); }
.fact__label { font-size: .75rem; font-weight: 700; color: #fff; margin-top: 5px; }
.fact__note { font-size: .6875rem; color: var(--ink-400); margin-top: 5px; line-height: 1.6; }

/* ---------- 10. 表格 ---------- */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  background: #fff;
  /* 滑動時顯示陰影暗示還有內容 */
  background-image:
    linear-gradient(to right, #fff 30%, rgba(255,255,255,0)),
    linear-gradient(to right, rgba(255,255,255,0), #fff 70%);
  background-position: 0 0, 100% 0;
  background-repeat: no-repeat;
  background-size: 34px 100%, 34px 100%;
  background-attachment: local, local;
}

/* 手機／平板：首列固定，橫向滑動時仍能看到比較維度 */
@media (max-width: 999px) {
  .cmp-table th[scope="row"] {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #fff;
    box-shadow: 2px 0 0 var(--ink-200), 6px 0 12px -6px rgba(15, 23, 42, .16);
    min-width: 118px;
    white-space: normal;
  }
  .cmp-table thead th:first-child {
    position: sticky;
    left: 0;
    z-index: 3;
    background: var(--ink-100);
    box-shadow: 2px 0 0 var(--ink-200);
  }
  .cmp-table { font-size: .78rem; }
  .cmp-table th, .cmp-table td { padding: 11px 12px; }
}

/* 橫向滑動提示（只在窄屏出現） */
.table-hint {
  display: none;
  align-items: center;
  gap: 7px;
  font-size: .75rem;
  font-weight: 700;
  color: var(--ink-600);
  background: var(--ink-100);
  border: 1px solid var(--ink-200);
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 8px 13px;
}
@media (max-width: 999px) {
  .table-hint { display: flex; }
  .table-hint + .table-wrap { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
}
.cmp-table { min-width: 900px; font-size: .8125rem; }
.cmp-table th, .cmp-table td {
  padding: 14px 15px;
  text-align: left;
  vertical-align: top;
  line-height: 1.65;
  border-bottom: 1px solid var(--ink-200);
}
.cmp-table thead th {
  background: var(--ink-100);
  color: var(--navy-900);
  font-weight: 800;
  font-size: .8125rem;
  vertical-align: bottom;
  border-bottom: 2px solid var(--ink-300);
}
.cmp-table thead th + th { border-left: 1px solid var(--ink-200); }
.cmp-table thead th.is-hot { background: #fdf6e3; }
.cmp-table tbody td + td { border-left: 1px solid var(--ink-200); }
.cmp-table tbody td.is-hot { background: #fdfaf0; }
.cmp-table tbody tr:last-child td { border-bottom: 0; }
.cmp-table tbody th {
  font-weight: 800;
  color: var(--navy-900);
  background: #fff;
  white-space: nowrap;
}
.cmp-table .col-tag {
  display: inline-block;
  font-size: .625rem;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--gold-400);
  color: var(--navy-950);
  margin-bottom: 6px;
}
.cmp-table .ok { color: var(--green-700); font-weight: 700; }
.cmp-table .warn { color: var(--red-700); font-weight: 700; }

.fee-table { font-size: .875rem; }
.fee-table td { padding: 13px 0; border-bottom: 1px solid var(--ink-200); vertical-align: top; }
.fee-table tr:last-child td { border-bottom: 0; }
.fee-table td:last-child { text-align: right; white-space: nowrap; padding-left: 14px; font-weight: 900; color: var(--navy-900); font-size: 1rem; }
.fee-table .fee-name { font-weight: 700; color: var(--ink-900); }
.fee-table .fee-sub { font-size: .75rem; color: var(--ink-500); margin-top: 2px; font-weight: 400; }
.fee-table .fee-free { color: var(--green-600); }

/* ---------- 11. 純 CSS 柱狀圖（取代 Chart.js） ---------- */
.chart {
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.chart__title { font-size: 1rem; font-weight: 800; color: var(--navy-900); }
.chart__sub { font-size: .75rem; color: var(--ink-500); margin-top: 4px; }
.chart__plot {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 230px;
  margin-top: 24px;
  padding-bottom: 2px;
  border-bottom: 2px solid var(--ink-200);
}
.chart__col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
  gap: 6px;
  min-width: 0;
}
.chart__val {
  font-size: .75rem;
  font-weight: 900;
  color: var(--navy-900);
  line-height: 1;
  white-space: nowrap;
}
.chart__bar {
  width: 100%;
  max-width: 62px;
  border-radius: 7px 7px 0 0;
  background: linear-gradient(180deg, #d4af37, #b8860b);
  height: var(--h, 10%);
  min-height: 4px;
  transition: filter .2s ease;
}
.chart__col:hover .chart__bar { filter: brightness(1.08); }
.chart__bar--gold { background: linear-gradient(180deg, #f59e0b, #d97706); }
.chart__bar--navy { background: linear-gradient(180deg, #1e3a5f, #0b192c); }
.chart__bar--slate { background: linear-gradient(180deg, #64748b, #334155); }
.chart__bar--green { background: linear-gradient(180deg, #10b981, #047857); }
.chart__x {
  font-size: .6875rem;
  color: var(--ink-600);
  text-align: center;
  line-height: 1.35;
  padding-top: 8px;
  word-break: break-word;
}
.chart__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 16px;
  font-size: .75rem;
  color: var(--ink-600);
}
.chart__legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart__key { width: 11px; height: 11px; border-radius: 3px; flex: none; }

/* ---------- 12. FAQ Accordion（原生 details） ---------- */
.faq { display: grid; gap: 12px; }
.faq__item {
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.faq__item[open] { border-color: var(--gold-400); box-shadow: var(--shadow); }
.faq__item > summary {
  list-style: none;
  cursor: pointer;
  padding: 17px 50px 17px 19px;
  position: relative;
  font-weight: 700;
  color: var(--navy-900);
  font-size: .9375rem;
  line-height: 1.55;
}
.faq__item > summary::-webkit-details-marker { display: none; }
.faq__item > summary:hover { background: var(--ink-50); }
.faq__item > summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--gold-600);
  line-height: 1;
}
.faq__item[open] > summary::after { content: "−"; }
.faq__item[open] > summary { background: #fdfaf0; border-bottom: 1px solid #ecdcae; }
.faq__body { padding: 17px 19px 19px; font-size: .875rem; line-height: 1.85; color: var(--ink-600); }
.faq__body p + p { margin-top: 10px; }
.faq__body strong { color: var(--ink-900); }

.faq-cat-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.faq-cat-nav a {
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: .8125rem;
  font-weight: 700;
  background: #fff;
  border: 1px solid var(--ink-200);
  color: var(--ink-700);
}
.faq-cat-nav a:hover { border-color: var(--navy-900); color: var(--navy-900); }

/* ---------- 13. 分流卡（取代 30 秒評估器 JS） ---------- */
.path {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 2px solid var(--ink-200);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
  height: 100%;
}
.path:hover { border-color: var(--gold-500); transform: translateY(-3px); box-shadow: var(--shadow); }
.path--hot { border-color: var(--gold-500); background: #fffdf7; }
.path__tag {
  align-self: flex-start;
  font-size: .625rem;
  font-weight: 900;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--gold-400);
  color: var(--navy-950);
  margin-bottom: 10px;
}
.path__tag--green { background: var(--green-btn); color: #fff; }
.path__tag--slate { background: var(--ink-200); color: var(--ink-700); }
.path h3 { font-size: 1.0625rem; }
.path__desc { font-size: .8125rem; color: var(--ink-600); margin-top: 7px; line-height: 1.7; }
.path__meta {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--ink-200);
  display: grid;
  gap: 7px;
  font-size: .75rem;
  flex: 1;
}
.path__meta div { display: flex; justify-content: space-between; gap: 10px; }
.path__meta dt { color: var(--ink-500); }
.path__meta dd { margin: 0; font-weight: 700; color: var(--navy-900); text-align: right; }
.path__link {
  margin-top: 15px;
  font-size: .8125rem;
  font-weight: 800;
  color: var(--gold-600);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 4px 0;
}
.path:hover .path__link { color: var(--navy-900); }

/* ---------- 14. 流程時間軸 ---------- */
.steps { display: grid; gap: 14px; }
.step {
  display: flex;
  gap: 15px;
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.step__num {
  width: 40px; height: 40px;
  border-radius: var(--radius);
  background: var(--navy-900);
  color: var(--gold-400);
  font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  flex: none;
  font-size: .9375rem;
}
.step__num--green { background: var(--green-btn); color: #fff; }
.step__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.step h3 { font-size: .9375rem; }
.step p { font-size: .8125rem; color: var(--ink-600); margin-top: 6px; line-height: 1.8; }
.step__flag {
  font-size: .6875rem;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  background: var(--gold-100);
  color: #92400e;
}
.step__flag--red { background: #ffe4e6; color: #9f1239; }

/* 時間表（澳門開公司）
   注意：這些卡片在「白色卡片」內，底色必須保持不透明深色，
   否則半透明綠在淺底上會變成淺綠白底，而文字仍用淺色 → 完全不可讀。 */
.timeline { display: grid; gap: 10px; }
.timeline li {
  border-radius: var(--radius);
  padding: 13px 15px;
  background: #0a1626;
  border: 1px solid var(--navy-800);
  font-size: .8125rem;
  line-height: 1.7;
}
.timeline li.is-final {
  background: #06231c;
  border-color: rgba(16, 185, 129, .55);
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, .12);
}
.timeline b { display: block; color: var(--gold-300); font-size: .8125rem; }
.timeline li.is-final b { color: #6ee7b7; }
.timeline p { color: var(--ink-300); margin-top: 3px; font-size: .75rem; }
.timeline li.is-final p { color: #cbd5e1; }

/* ---------- 15. 提示框 ---------- */
.note {
  border-radius: var(--radius);
  padding: 15px 17px;
  font-size: .8125rem;
  line-height: 1.8;
  border: 1px solid;
}
.note b { display: block; margin-bottom: 5px; }
.note--gold { background: var(--gold-100); border-color: #f0d9a0; color: #78350f; }
.note--gold b { color: #92400e; }
.note--red { background: #fff1f2; border-color: #fecdd3; color: #881337; }
.note--red b { color: #9f1239; }
.note--green { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.note--green b { color: #047857; }
.note--grey { background: var(--ink-100); border-color: var(--ink-200); color: var(--ink-600); }
.note--grey b { color: var(--ink-800); }

/* 提示框內的 .small / .tiny 必須繼承父層深色，否則預設 #64748b 在淺色底上對比不足 */
.note--gold .small, .note--gold .tiny { color: #78350f; }
.note--red .small, .note--red .tiny { color: #881337; }
.note--green .small, .note--green .tiny { color: #065f46; }
.note--grey .small, .note--grey .tiny { color: var(--ink-600); }
.note--dark {
  background: rgba(6, 13, 26, .9);
  border-color: var(--navy-700);
  color: var(--ink-300);
}
.note--dark b { color: var(--gold-400); }
/* 深色提示框內的所有文字必須轉淺色，否則深灰落深藍會不可讀 */
.note--dark p,
.note--dark li,
.note--dark .small,
.note--dark .tiny,
.note--dark .checklist li { color: var(--ink-200); }
.note--dark .checklist li::before { color: var(--gold-400); }
.note--dark strong { color: #fff; }

/* ---------- 14b. 金色標籤（卡片內標示「本服務」等）---------- */
.badge-gold {
  display: inline-block;
  font-size: .625rem;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--gold-400);
  color: var(--navy-950);
  margin-bottom: 10px;
}

/* ---------- 14c. 圖表（SVG 資訊圖，可被引用）---------- */
.figure {
  margin: 0;
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.figure__scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-sm);
}
.figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
}
.figure__hint { display: none; }
/* 手機：SVG 內含 12px 細字，縮到 320px 會變 5px 不可讀。
   改為保持最小可讀寬度並容許橫向滑動，標題與說明仍在正常位置。 */
@media (max-width: 767px) {
  .figure img { min-width: 680px; }
  .figure__scroll {
    /* 右側陰影暗示可滑動 */
    background:
      linear-gradient(to right, transparent 88%, rgba(15, 23, 42, .07)) right / 30px 100% no-repeat;
  }
  .figure__hint {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .75rem;
    font-weight: 700;
    color: var(--ink-600);
    background: var(--ink-100);
    border: 1px solid var(--ink-200);
    border-radius: var(--radius-sm);
    padding: 7px 11px;
    margin-bottom: 9px;
  }
}
.figure figcaption {
  margin-top: 12px;
  padding: 0 4px 2px;
  font-size: .8125rem;
  line-height: 1.7;
  color: var(--ink-600);
  border-top: 1px solid var(--ink-200);
  padding-top: 11px;
}

/* ---------- 15a. 聯絡通道卡（四格並排） ---------- */
.ccard {
  display: flex;
  flex-direction: column;
  gap: 7px;
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
a.ccard:hover {
  transform: translateY(-3px);
  border-color: var(--gold-400);
  box-shadow: var(--shadow);
}
.ccard__ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  line-height: 1;
  flex: none;
  background: var(--ink-100);
  border: 1px solid var(--ink-200);
  margin-bottom: 4px;
}
.ccard--wa .ccard__ico { background: rgba(4, 120, 87, .1); border-color: rgba(4, 120, 87, .26); }
.ccard--wx .ccard__ico { background: rgba(7, 193, 96, .1); border-color: rgba(7, 193, 96, .3); }
.ccard--tel .ccard__ico { background: rgba(30, 58, 95, .09); border-color: rgba(30, 58, 95, .22); }
.ccard--mail .ccard__ico { background: rgba(212, 175, 55, .14); border-color: rgba(212, 175, 55, .34); }
.ccard__label {
  font-size: .6875rem;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.ccard__val {
  font-size: 1.0625rem;
  font-weight: 900;
  color: var(--navy-900);
  line-height: 1.35;
  word-break: break-all;
}
a.ccard:hover .ccard__val { color: var(--gold-600); }
.ccard__hint {
  font-size: .75rem;
  color: var(--ink-500);
  line-height: 1.6;
  margin-top: auto;
  padding-top: 6px;
}

/* ---------- 15b. 聯絡資料清單（深色卡） ---------- */
.contact-list { display: grid; gap: 6px; margin-top: 4px; }
.contact-list li { margin: 0; }
.contact-list a,
.contact-list .row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 12px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background-color .16s ease, border-color .16s ease;
}
.contact-list a:hover {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(212, 175, 55, .35);
}
.contact-list .ico {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 175, 55, .14);
  border: 1px solid rgba(212, 175, 55, .28);
  color: var(--gold-300);
  font-size: 1rem;
  line-height: 1;
}
.contact-list .ico--wa { background: rgba(16, 185, 129, .16); border-color: rgba(16, 185, 129, .35); color: #6EE7B7; }
.contact-list .ico--wx { background: rgba(7, 193, 96, .16); border-color: rgba(7, 193, 96, .35); color: #86efac; }
.contact-list .txt { min-width: 0; }
.contact-list .label {
  display: block;
  font-size: .6875rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--gold-400);
  line-height: 1.4;
}
.contact-list .value {
  display: block;
  font-size: .9375rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.45;
  word-break: break-all;
}
.contact-list a:hover .value { color: var(--gold-300); }
.contact-list .hint {
  display: block;
  font-size: .6875rem;
  color: var(--ink-400);
  line-height: 1.5;
  margin-top: 1px;
}

/* 頁尾聯絡清單在深底上，維持淺色 */
.site-footer .contact-list .label { color: var(--gold-400); }
.site-footer .contact-list .value { color: #fff; }

/* ---------- 16. CTA 區 ---------- */
.cta {
  background-color: var(--navy-950);
  background-image:
    radial-gradient(at 20% 20%, rgba(212, 175, 55, .2) 0, transparent 48%),
    radial-gradient(at 80% 80%, rgba(30, 58, 95, .7) 0, transparent 52%);
  color: #fff;
  padding: 60px 0;
  border-top: 1px solid var(--navy-800);
}
@media (min-width: 768px) { .cta { padding: 76px 0; } }
.cta h2 { color: #fff; }
.cta p { color: var(--ink-300); }

/* ---------- 17. Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: var(--ink-400);
  padding: 52px 0 26px;
  font-size: .8125rem;
  border-top: 1px solid var(--navy-800);
}
.site-footer__grid {
  display: grid;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--navy-800);
}
@media (min-width: 760px) { .site-footer__grid { grid-template-columns: 1.6fr 1fr 1.2fr; gap: 40px; } }
.site-footer h2, .site-footer h3 {
  color: #fff;
  font-size: .875rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.site-footer p { line-height: 1.8; font-size: .8125rem; }
.site-footer a { color: var(--ink-300); }
.site-footer a:hover { color: var(--gold-300); }
.footer-links { display: grid; gap: 8px; font-size: .8125rem; }
.footer-contact { display: grid; gap: 11px; font-size: .8125rem; }
.footer-contact li { display: flex; gap: 9px; }
.footer-contact .ico { color: var(--gold-400); flex: none; }
.footer-legal {
  margin-top: 22px;
  font-size: .75rem;
  color: var(--ink-400);
  line-height: 1.75;
}
.site-footer__bottom {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  font-size: .75rem;
  color: var(--ink-400);
}

/* ---------- 18. 浮動 WhatsApp + 手機底欄 ---------- */
/* aside 只作 landmark 容器，不參與定位；定位交由內部 .wa-float */
.wa-float-wrap { position: static; }
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 55;
  display: none;
  align-items: center;
  gap: 9px;
  padding: 14px 20px;
  border-radius: 999px;
  background: var(--green-btn);
  color: #fff;
  font-weight: 800;
  font-size: .875rem;
  box-shadow: 0 12px 30px -8px rgba(5, 150, 105, .6);
}
.wa-float:hover { background: var(--green-500); }
@media (min-width: 768px) { .wa-float { display: inline-flex; } }

.mobile-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 56;
  background: rgba(6, 13, 26, .97);
  border-top: 1px solid var(--navy-800);
  padding: 9px 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  backdrop-filter: blur(6px);
}
@media (min-width: 768px) { .mobile-bar { display: none; } }
.mobile-bar a {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 12px 10px;
  border-radius: var(--radius);
  font-weight: 800;
  font-size: .8125rem;
  color: #fff;
  background: var(--navy-800);
}
.mobile-bar a.is-wa { background: var(--green-btn); }

/* ---------- 18b. 頁內目錄（長頁導航） ---------- */
.toc {
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.toc__title {
  font-size: .6875rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--gold-700, #7a5608);
  margin-bottom: 12px;
}
.toc__list {
  display: grid;
  gap: 2px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 900px) { .toc__list { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 380px) { .toc__list { grid-template-columns: 1fr; } }
.toc__list a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: .8125rem;
  font-weight: 600;
  color: var(--ink-800);
  min-height: 40px;
  line-height: 1.35;
  transition: background-color .15s ease, color .15s ease;
}
.toc__list a:hover { background: var(--gold-100); color: #78350f; }
.toc__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 6px;
  background: var(--navy-900);
  color: var(--gold-300);
  font-size: .6875rem;
  font-weight: 900;
}

/* 頁尾「返回頂部」 */
.to-top {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .2);
  color: var(--ink-200);
  font-size: .8125rem;
  font-weight: 700;
  min-height: 40px;
}
.to-top:hover { background: rgba(255, 255, 255, .14); color: #fff; }

/* ---------- 18c. 自我判斷流程（取代原 JS 評估器） ---------- */
.decide {
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  max-width: 900px;
  margin: 0 auto;
}
@media (min-width: 768px) { .decide { padding: 30px 34px; } }
.decide__title {
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--gold-700, #7a5608);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink-200);
}
.decide__q {
  display: flex;
  gap: 15px;
  padding: 20px 0;
  border-bottom: 1px dashed var(--ink-200);
}
.decide__q:last-of-type { border-bottom: 0; }
.decide__n {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--gold-300);
  font-size: .75rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}
.decide__ask {
  font-weight: 800;
  color: var(--navy-900);
  font-size: .9375rem;
  line-height: 1.55;
}
.decide__branches {
  display: grid;
  gap: 10px;
  margin-top: 13px;
}
@media (min-width: 700px) { .decide__branches { grid-template-columns: 1fr 1fr; } }
.decide__b {
  background: var(--ink-50);
  border: 1px solid var(--ink-200);
  border-left: 3px solid var(--ink-400);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.decide__b--best { border-left-color: var(--gold-500); background: #fffdf7; }
.decide__b--alt { border-left-color: var(--navy-700); }
.decide__label {
  font-size: .6875rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-600);
  margin-bottom: 5px;
}
.decide__b--best .decide__label { color: #92400e; }
.decide__then {
  font-size: .8125rem;
  line-height: 1.75;
  color: var(--ink-700);
}
.decide__then strong { color: var(--navy-900); }
.decide__note {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--ink-200);
  font-size: .8125rem;
  color: var(--ink-600);
  line-height: 1.75;
}
.decide__note strong { color: var(--red-700); }

/* ---------- 18d. 頁面資訊（更新日期／審閱／來源）---------- */
.pmeta {
  background: var(--navy-950);
  color: var(--ink-400);
  border-top: 1px solid var(--navy-800);
  padding: 30px 0 34px;
  font-size: .8125rem;
}
.pmeta__grid { display: grid; gap: 22px; }
@media (min-width: 820px) { .pmeta__grid { grid-template-columns: 1.15fr 1fr; gap: 36px; } }
.pmeta__line { line-height: 1.85; }
.pmeta__line + .pmeta__line { margin-top: 6px; }
.pmeta time { color: var(--gold-300); font-weight: 700; font-variant-numeric: tabular-nums; }
.pmeta__disc { color: var(--ink-400); font-size: .75rem; margin-top: 10px; }
.pmeta__src {
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--navy-800);
  border-radius: var(--radius);
  padding: 15px 17px;
}
.pmeta__src-title {
  font-size: .6875rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 9px;
}
.pmeta__src ul { display: grid; gap: 7px; }
.pmeta__src li {
  font-size: .75rem;
  line-height: 1.65;
  padding-left: 15px;
  position: relative;
  color: var(--ink-300);
}
.pmeta__src li::before {
  content: "↗";
  position: absolute;
  left: 0;
  color: var(--gold-500);
  font-size: .75rem;
}
.pmeta__src a { color: var(--ink-200); text-decoration: underline; text-underline-offset: 2px; }
.pmeta__src a:hover { color: var(--gold-300); }

/* ---------- 18e. 即時答案 block（GEO 對題性 + 可抽取塊）---------- */
.answer {
  background: #fff;
  border: 1px solid var(--ink-200);
  border-left: 4px solid var(--gold-500);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-top: 22px;
  box-shadow: var(--shadow-sm);
}
.answer__label {
  display: inline-block;
  font-size: .6875rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #92400e;
  background: var(--gold-100);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 9px;
}
.answer p {
  font-size: .9375rem;
  line-height: 1.85;
  color: var(--ink-800);
}
.answer p strong { color: var(--navy-900); font-weight: 800; }
.section--navy .answer, .section--dark .answer {
  background: rgba(6, 13, 26, .9);
  border-color: var(--navy-700);
  border-left-color: var(--gold-400);
}
.section--navy .answer p, .section--dark .answer p { color: var(--ink-200); }
.section--navy .answer p strong, .section--dark .answer p strong { color: #fff; }

/* ---------- 19. 麵包屑 ---------- */
.crumbs {
  background: var(--ink-100);
  border-bottom: 1px solid var(--ink-200);
  font-size: .75rem;
  color: var(--ink-500);
  padding: 11px 0;
}
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.crumbs li { display: flex; align-items: center; gap: 7px; }
.crumbs li + li::before { content: "›"; color: var(--ink-400); }
.crumbs a { color: var(--ink-600); }
.crumbs a:hover { color: var(--navy-900); text-decoration: underline; }
.crumbs [aria-current="page"] { color: var(--navy-900); font-weight: 700; }

/* ---------- 20. 頁面標題區（內頁） ---------- */
.pagehead {
  background-color: var(--navy-900);
  background-image:
    radial-gradient(at 12% 0%, rgba(212, 175, 55, .15) 0, transparent 45%),
    radial-gradient(at 88% 100%, rgba(30, 58, 95, .75) 0, transparent 55%);
  color: #fff;
  padding: 44px 0 48px;
  border-bottom: 1px solid var(--navy-800);
}
@media (min-width: 768px) { .pagehead { padding: 58px 0 62px; } }
.pagehead h1 { color: #fff; margin-top: 12px; }
.pagehead .lead { color: var(--ink-300); margin-top: 14px; max-width: 780px; }
.pagehead__meta {
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  margin-top: 20px; font-size: .75rem; color: var(--ink-400);
}

/* ---------- 21. 錨點偏移（sticky header） ---------- */
[id] { scroll-margin-top: 88px; }
/* 所有可聚焦元素也加偏移：鍵盤 Tab 或 scrollIntoView 時不會被 sticky header 遮住 */
a, button, summary, input, select, textarea { scroll-margin-top: 96px; }

/* ---------- 22. 列印 ---------- */
@media print {
  .site-header, .topbar, .mobile-bar, .wa-float, .mnav, .btn-row { display: none !important; }
  body { padding: 0; background: #fff; }
  .section, .hero, .pagehead, .cta, .section--navy { background: #fff !important; color: #000 !important; }
  .section--navy h2, .hero h1, .pagehead h1 { color: #000 !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .75em; color: #555; }
}

/* ---------- 23. 減少動畫偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
