/* =========================================================
   香港信箱網站原型 — 共用樣式
   色系（v5 明亮版）：白＋極淺冰藍底；品牌主藍 #0046D1 作按鈕／重點；
   淺藍 #63B7FC 只作裝飾色塊（白底對比僅 2.16:1，切勿用於文字）；WhatsApp 綠只用於 WhatsApp 按鈕
   不設大面積深色區塊（.section--navy 類名保留，但已改為淺色）
   搜尋 ".ph" 可找到所有「待填寫」佔位樣式
   ========================================================= */

:root {
  /* 品牌色：主藍 #0046D1 (RGB 0,70,209)、淺藍 #63B7FC (RGB 99,183,252) */
  --brand: #0046D1;        /* 主藍：按鈕、連結、圖示（白字對比 7.5:1） */
  --brand-light: #63B7FC;  /* 淺藍：只作裝飾色塊；切勿作文字色，亦勿在其上放白字（對比僅 2.16:1） */
  --blue-800: #002A80;     /* 標題字（白底 12.8:1） */
  --blue-700: #0034A0;     /* hover、漸變 */
  --blue-100: #EAF3FF;     /* 冰藍底（較深） */
  --ice-50: #F3F8FF;       /* 冰藍底（極淺） */
  --ice-line: #CFE2FB;     /* 冰藍底上的框線 */
  --accent-700: #0046D1;
  --accent-600: #0046D1;
  --accent-100: #E3F1FF;
  --wa: #0f7b4b;          /* WhatsApp 按鈕（白字對比 > 5:1） */
  --wa-hover: #0b6139;
  --ink: #1b2430;
  --muted: #4d5a6a;
  --line: #dbe5f2;
  --bg: #ffffff;
  --bg-soft: #F3F8FF;
  --ph-bg: #fff4c7;       /* 佔位符底色 */
  --ph-line: #c99a06;
  --ph-ink: #5c4300;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 6px 24px rgba(0, 52, 160, .07);
  --shadow-lg: 0 14px 40px rgba(0, 52, 160, .13);
  --header-h: 68px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang HK", "PingFang TC", "Noto Sans TC", "Noto Sans CJK TC", "Microsoft JhengHei", "Heiti TC", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; overflow-x: clip; font-family: var(--font); color: var(--ink); background: var(--bg);
  font-size: 16px; line-height: 1.7; letter-spacing: .01em;
}
img, svg { max-width: 100%; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--blue-800); }
[hidden] { display: none !important; }
h1, h2, h3, h4 { color: var(--blue-800); line-height: 1.35; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.6vw, 2.75rem); letter-spacing: .02em; }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.3vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }

/* 焦點樣式：主藍外框（白底 7.5:1、冰藍底 6.7:1），offset 令外框落在淺色底上，綠色／藍色按鈕亦清楚 */
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--blue-800); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container { width: min(1160px, 100% - 40px); margin-inline: auto; }
.section { padding: clamp(48px, 6vw, 88px) 0; }
.section--soft { background: var(--bg-soft); }
/* v5：原深藍區塊改為冰藍底（類名保留以免改動 HTML） */
.section--navy { background: var(--blue-100); color: var(--ink); }
.section--navy .section-head p { color: var(--muted); }
.section--navy .eyebrow { background: #fff; }
.section-head { max-width: 720px; margin-bottom: 32px; }
.section-head--center { text-align: center; margin-inline: auto; }
.eyebrow {
  display: inline-block; font-size: .82rem; font-weight: 700; letter-spacing: .12em;
  color: var(--accent-700); background: var(--accent-100); padding: 3px 12px; border-radius: 999px; margin-bottom: 12px;
}
.lead { font-size: 1.08rem; color: var(--muted); }

.icon { width: 24px; height: 24px; flex: none; display: inline-block; vertical-align: middle; }
.icon-sm { width: 18px; height: 18px; }

/* ---------- 佔位符 (Placeholders) ---------- */
.ph {
  display: inline-block; background: var(--ph-bg); color: var(--ph-ink);
  border: 1.5px dashed var(--ph-line); border-radius: 6px; padding: 0 8px;
  font-weight: 700; line-height: 1.6; white-space: normal; overflow-wrap: anywhere;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.ph[data-placeholder="price"], .ph[data-placeholder="tbd"] { white-space: nowrap; }
.ph--block { display: block; white-space: normal; padding: 6px 10px; }
.section--navy .ph, .site-footer .ph, .cta-band .ph { color: var(--ph-ink); }
.price-note { font-size: .85rem; color: var(--muted); margin-top: 16px; }
.price-note::before { content: "※ "; }

.img-ph {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 220px; border-radius: var(--radius); text-align: center; padding: 20px;
  color: var(--blue-700); font-weight: 600; font-size: .95rem;
  background:
    repeating-linear-gradient(45deg, rgba(0,42,128,.05) 0 12px, transparent 12px 24px),
    linear-gradient(135deg, #e8eef6, #e3f1ff);
  border: 2px dashed #9db8e0;
}
.img-ph small { font-weight: 400; color: var(--muted); }
.img-ph .icon { width: 44px; height: 44px; color: var(--accent-700); }
.img-ph--tall { min-height: 340px; }
.img-ph--map { min-height: 300px; }

/* ---------- 按鈕 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 22px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 6px 18px rgba(15,123,75,.28); }
.btn-wa:hover { background: var(--wa-hover); color: #fff; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--blue-700); color: #fff; }
.btn-outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-light { background: #fff; color: var(--brand); border-color: var(--brand); }
.btn-light:hover { background: var(--brand); color: #fff; }
.btn-sm { min-height: 44px; padding: 6px 16px; font-size: .92rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; text-decoration: none; margin-right: auto; line-height: 0; }
.logo-img { display: block; height: 52px; width: auto; }
@media (max-width: 640px) { .logo-img { height: 44px; } }

.site-nav { display: flex; align-items: center; gap: 4px; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav-link, .dropdown-toggle {
  display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 8px;
  color: var(--ink); text-decoration: none; font: inherit; font-weight: 600; font-size: .98rem;
  background: none; border: 0; cursor: pointer;
}
.nav-link:hover, .dropdown-toggle:hover { background: var(--blue-100); color: var(--blue-800); }
.nav-link[aria-current="page"], .dropdown-toggle.is-active { color: var(--accent-700); box-shadow: inset 0 -3px 0 var(--accent-600); border-radius: 8px 8px 0 0; }
.dropdown { position: relative; }
.dropdown-toggle .icon { width: 20px; height: 20px; transition: transform .2s; }
.dropdown-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.dropdown-menu {
  list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 8px); left: 0; min-width: 260px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.dropdown-menu[hidden] { display: none; }
.dropdown-menu a {
  display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 10px;
  text-decoration: none; color: var(--ink);
}
.dropdown-menu a:hover, .dropdown-menu a[aria-current="page"] { background: var(--accent-100); }
.dropdown-menu a .icon { color: var(--accent-700); margin-top: 2px; }
.dropdown-menu strong { display: block; font-size: .98rem; color: var(--blue-800); }
.dropdown-menu small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.4; }

.lang-switch { display: flex; align-items: center; gap: 2px; margin-left: 6px; padding-left: 10px; border-left: 1px solid var(--line); }
.lang-switch a, .lang-switch button {
  font: inherit; font-size: .88rem; font-weight: 600; padding: 4px 8px; border-radius: 6px; border: 0; background: none;
  color: var(--muted); text-decoration: none; cursor: pointer; position: relative;
}
.lang-switch [aria-current="true"] { color: #fff; background: var(--brand); }
.lang-switch a:not([aria-current]):hover { background: var(--blue-100); color: var(--blue-800); }

.header-wa { margin-left: 8px; }
.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 10px; border: 1px solid var(--line); background: #fff;
  align-items: center; justify-content: center; cursor: pointer; color: var(--blue-800);
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: #fff; flex-direction: column; align-items: stretch;
    padding: 16px 20px 120px; overflow-y: auto; gap: 8px;
    transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility .25s;
  }
  .site-nav.is-open { transform: none; visibility: visible; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link, .dropdown-toggle { width: 100%; justify-content: space-between; padding: 14px 12px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-link[aria-current="page"], .dropdown-toggle.is-active { box-shadow: inset 4px 0 0 var(--accent-600); }
  .dropdown-menu { position: static; box-shadow: none; border: 0; padding: 4px 0 8px 8px; min-width: 0; }
  .lang-switch { border-left: 0; padding: 12px 0 0; margin: 0; gap: 8px; }
  .lang-switch a, .lang-switch button { padding: 8px 14px; border: 1px solid var(--line); }
  .header-wa-wrap { display: none; }
  body.nav-open { overflow: hidden; }
}
@media (min-width: 640px) and (max-width: 1080px) { .header-wa-wrap { display: block; } }

/* ---------- Hero（v5 明亮版：冰藍／白底、深色標題） ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--ink);
  background:
    radial-gradient(circle at 92% 8%, rgba(99,183,252,.22) 0 220px, transparent 221px),
    linear-gradient(170deg, #fff 0%, var(--ice-50) 45%, var(--blue-100) 100%);
  border-bottom: 1px solid var(--ice-line);
}
.hero-inner { display: grid; gap: 40px; padding: clamp(48px, 7vw, 96px) 0; align-items: center; }
.hero h1 { color: var(--blue-800); }
.hero .eyebrow { background: #fff; border: 1px solid var(--ice-line); }
.hero .lead { color: var(--muted); font-size: 1.1rem; }
.hero-tags { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-tags li { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--ice-line); color: var(--ink); padding: 4px 12px; border-radius: 999px; font-size: .9rem; font-weight: 600; box-shadow: 0 2px 8px rgba(0,52,160,.05); }
.hero-tags .icon { width: 16px; height: 16px; color: var(--brand); }
.hero .btn-outline { background: #fff; }
.hero .btn-outline:hover { background: var(--brand); color: #fff; }
.hero .branch-fig { position: relative; }
.hero .branch-fig::before { /* 裝飾色塊：淺藍 #63B7FC（不承載文字） */
  content: ""; position: absolute; z-index: 0; top: -16px; right: -16px; width: 62%; height: 70%;
  background: var(--brand-light); opacity: .35; border-radius: 24px;
}
.hero .hero-photo, .hero .photo-credit { position: relative; z-index: 1; }
@media (max-width: 899px) {
  .hero { background: radial-gradient(circle at 100% 0%, rgba(99,183,252,.2) 0 120px, transparent 121px), linear-gradient(170deg, #fff 0%, var(--ice-50) 45%, var(--blue-100) 100%); }
  .hero .branch-fig::before { top: -10px; right: -10px; }
}
@media (min-width: 900px) { .hero-inner { grid-template-columns: 1.15fr .85fr; } }

.page-hero {
  color: var(--ink); padding: clamp(40px, 5vw, 72px) 0; border-bottom: 1px solid var(--ice-line);
  background:
    radial-gradient(circle at 95% 0%, rgba(99,183,252,.2) 0 180px, transparent 181px),
    linear-gradient(170deg, #fff 0%, var(--ice-50) 50%, var(--blue-100) 100%);
}
.page-hero h1 { color: var(--blue-800); margin-bottom: .3em; }
.page-hero .lead { color: var(--muted); max-width: 760px; }
.breadcrumb { font-size: .88rem; margin-bottom: 12px; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--muted); }
.breadcrumb a { color: var(--brand); display: inline-block; padding: 4px 0; }
.breadcrumb [aria-current] { color: var(--ink); }

/* ---------- Grid / Cards ---------- */
.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid-2, .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); }
.card-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--accent-100); color: var(--accent-700); display: grid; place-items: center; margin-bottom: 16px; }
.card-icon .icon { width: 28px; height: 28px; }
.card .card-link { margin-top: auto; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.card .card-link:hover { text-decoration: underline; }
.card-for { font-size: .9rem; background: var(--bg-soft); border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 16px; color: var(--ink); }
.card-for b { color: var(--blue-800); }

.check-list { list-style: none; padding: 0; margin: 0 0 1em; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230046D1' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat;
}
.dot-list li { margin-bottom: 6px; }

.audience { display: grid; gap: 12px; }
@media (min-width: 640px) { .audience { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .audience--5 { grid-template-columns: repeat(5, 1fr); } }
.audience-item { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.audience-item .icon { color: var(--accent-700); margin-top: 2px; }
.audience-item strong { display: block; color: var(--blue-800); }
.audience-item span { font-size: .9rem; color: var(--muted); }
@media (min-width: 960px) { .audience--5 .audience-item { flex-direction: column; } }

.split { display: grid; gap: 32px; align-items: center; }
.split > *, .grid > *, .hero-inner > *, .footer-grid > * { min-width: 0; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--wide-left { grid-template-columns: 1.2fr .8fr; } }

.info-list { list-style: none; padding: 0; margin: 0 0 20px; }
.info-list li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.info-list li:last-child { border-bottom: 0; }
.info-list .icon { color: var(--accent-700); margin-top: 3px; }
.info-list b { display: block; color: var(--blue-800); }

/* ---------- 收費卡 ---------- */
.price-card { position: relative; }
.price-card .price { font-size: 1.15rem; margin: 6px 0 4px; }
.price-card .price .ph { font-size: 1.15rem; }
.price-card .unit { font-size: .88rem; color: var(--muted); margin-bottom: 16px; }
.price-card .check-list { font-size: .95rem; flex: 1; }
.price-card .btn { margin-top: 8px; }
.badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--blue-100); color: var(--blue-800); margin-bottom: 10px; align-self: flex-start; }

/* 收費比較表 */
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.compare { width: 100%; border-collapse: collapse; font-size: .95rem; }
.compare caption { text-align: left; padding: 16px 20px; font-weight: 700; color: var(--blue-800); background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.compare th, .compare td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.compare thead th { background: var(--blue-100); color: var(--blue-800); font-size: 1rem; }
.compare thead th small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; }
.compare tbody th { background: var(--bg-soft); color: var(--blue-800); width: 14%; white-space: nowrap; }
.compare td ul { margin: 0; padding-left: 1.1em; }
.compare td li { margin-bottom: 4px; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare .cta-row td { text-align: center; }
@media (max-width: 860px) {
  .compare, .compare tbody, .compare tr, .compare th, .compare td, .compare caption { display: block; width: 100%; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare tbody tr { border-bottom: 6px solid var(--bg-soft); }
  .compare tbody th { width: 100%; background: var(--blue-100); color: var(--blue-800); padding: 10px 16px; }
  .compare td { display: grid; grid-template-columns: 7.5em 1fr; gap: 10px; }
  .compare td::before { content: attr(data-label); font-weight: 700; color: var(--accent-700); }
  .compare .cta-row td { text-align: left; }
}

.fee-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.fee-table th, .fee-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.fee-table thead th { background: var(--bg-soft); color: var(--blue-800); }
.fee-table td:last-child { white-space: nowrap; }
@media (max-width: 560px) { .fee-table td:last-child { white-space: normal; } .fee-table th, .fee-table td { padding: 10px 12px; } }

/* ---------- 流程 ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px 20px; counter-increment: step; }
.step::before {
  content: counter(step); position: absolute; top: -16px; left: 20px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent-600); color: #fff; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 4px var(--bg-soft);
}
.step .icon { color: var(--blue-700); width: 30px; height: 30px; margin: 4px 0 8px; }
.step h3 { margin-bottom: .3em; }
.step p { font-size: .93rem; color: var(--muted); margin: 0; }
@media (min-width: 760px) {
  .step:not(:last-child)::after { content: "→"; position: absolute; right: -14px; top: 50%; transform: translateY(-50%); color: var(--accent-600); font-weight: 800; font-size: 1.2rem; z-index: 1; }
}

/* ---------- 信件處理 ---------- */
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature .card-icon { margin: 0; flex: none; }
.feature h3 { margin-bottom: .25em; }
.feature p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------- 信任 ---------- */
.trust-card { background: #fff; border: 1px solid var(--ice-line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.trust-card .icon { color: var(--brand); width: 30px; height: 30px; margin-bottom: 10px; }
.trust-card p, .trust-card li { color: var(--muted); font-size: .95rem; }
.trust-card ul { margin: 0; padding-left: 1.1em; }
.section--navy .img-ph { min-height: 180px; }

/* ---------- Accordion ---------- */
.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-item h3 { margin: 0; font-size: 1rem; }
.acc-btn {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; text-align: left;
  padding: 18px 4px; background: none; border: 0; font: inherit; font-weight: 700; font-size: 1.04rem; color: var(--blue-800); cursor: pointer;
}
.acc-btn:hover { color: var(--accent-700); }
.acc-btn .icon { transition: transform .2s; color: var(--accent-700); }
.acc-btn[aria-expanded="true"] .icon { transform: rotate(45deg); }
.acc-panel { padding: 0 4px 18px; color: var(--muted); }
.acc-panel p:last-child { margin-bottom: 0; }
.faq-group + .faq-group { margin-top: 40px; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; color: var(--muted); border: 1px solid var(--ice-line); border-radius: 20px;
  padding: clamp(28px, 4vw, 52px); display: grid; gap: 20px; align-items: center;
  background:
    radial-gradient(circle at 100% 0%, rgba(99,183,252,.28) 0 140px, transparent 141px),
    linear-gradient(120deg, var(--blue-100), var(--ice-50));
}
.cta-band::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--brand); }
.cta-band > * { position: relative; }
.cta-band h2 { color: var(--blue-800); margin-bottom: .3em; }
.cta-band p { margin: 0; }
@media (min-width: 860px) { .cta-band { grid-template-columns: 1fr auto; } }

.notice { border-left: 4px solid var(--accent-600); background: var(--accent-100); padding: 14px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: .95rem; }
.notice--warn { border-left-color: var(--ph-line); background: var(--ph-bg); color: var(--ph-ink); }

/* ---------- 表單 ---------- */
.form { display: grid; gap: 18px; }
.field label { display: block; font-weight: 700; color: var(--blue-800); margin-bottom: 6px; }
.field .req { color: #b42318; }
.field .hint { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border: 1.5px solid #7b8aa0; border-radius: 10px; background: #fff; color: var(--ink);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent-600); outline: 3px solid rgba(0,70,209,.25); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: #b42318; }
.field .error { color: #b42318; font-size: .88rem; margin-top: 4px; }
.form-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--muted); }
.checkbox input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--accent-600); }

.contact-methods { display: grid; gap: 14px; }
.contact-method { display: flex; gap: 14px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-decoration: none; color: var(--ink); }
.contact-method:hover { border-color: var(--accent-600); color: var(--ink); }
.contact-method .card-icon { margin: 0; }
.contact-method > span:last-child { min-width: 0; }
.contact-method b { display: block; color: var(--blue-800); }
.contact-method--wa { border: 2px solid var(--wa); background: #eef8f2; }
.contact-method--wa .card-icon { background: var(--wa); color: #fff; }

.prose { max-width: 780px; }
.prose h2 { font-size: 1.3rem; margin-top: 1.8em; }
.prose li { margin-bottom: .4em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ice-50); color: var(--muted); padding: 64px 0 28px; font-size: .95rem; border-top: 1px solid var(--ice-line); }
.site-footer a { color: var(--brand); text-decoration: none; }
.site-footer a:hover { color: var(--blue-800); text-decoration: underline; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1.3fr; } }
.site-footer h2 { color: var(--blue-800); font-size: 1rem; margin-bottom: 14px; letter-spacing: .05em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-brand .logo--tile { background: none; border-radius: 0; padding: 0; margin-bottom: 16px; } /* 淺色頁尾不再需要白底磚 */
.footer-brand .logo--tile .logo-img { height: 56px; }
.footer-branches li { margin-bottom: 6px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { width: 18px; height: 18px; color: var(--brand); margin-top: 4px; }
.footer-bottom { border-top: 1px solid var(--ice-line); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: .85rem; }
.footer-bottom ul { display: flex; gap: 16px; }
/* 手機點擊目標 ≥ 44px（WCAG 2.5.5／Apple HIG）；桌面版不變 */
@media (max-width: 767px) {
  .site-footer li { margin-bottom: 0; }
  .site-footer a:not(.logo) { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-contact li { align-items: center; min-height: 44px; }
  .footer-contact .icon { margin-top: 0; }
  .footer-bottom ul { gap: 24px; }
  .branch-nav a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* ---------- WhatsApp：桌面浮動按鈕 / 手機底部固定欄 ---------- */
.wa-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 90; display: inline-flex; align-items: center; gap: 10px;
  background: var(--wa); color: #fff; text-decoration: none; font-weight: 700; padding: 12px 20px 12px 14px; border-radius: 999px;
  box-shadow: 0 10px 28px rgba(15,123,75,.4);
}
.wa-float:hover { background: var(--wa-hover); color: #fff; }
.wa-float .icon { width: 30px; height: 30px; }
.wa-bar { display: none; }
@media (max-width: 767px) {
  .wa-float { display: none; }
  .wa-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 110; gap: 10px; align-items: center;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(0,42,128,.12);
  }
  .wa-bar .btn { flex: 1; min-height: 50px; font-size: 1.05rem; }
  .wa-bar .btn-call { flex: 0 0 auto; width: 50px; padding: 0; border-radius: 50%; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}

.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.text-center { text-align: center; }
.muted { color: var(--muted); }
.split--top { align-items: start; }
.card--link { text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.card--link:hover { border-color: var(--accent-600); transform: translateY(-2px); color: var(--ink); }
.h-sm { font-size: 1.25rem; }
.nowrap { white-space: nowrap; }
@media (max-width: 899px) { .img-ph--tall { min-height: 220px; } }
.compare .cell .ph { margin: 2px 0; }

/* ---------- 「待確認」標籤（參考草擬價格／未確認資料） ---------- */
.tbc {
  display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 4px; vertical-align: 2px;
  font-size: .68rem; font-weight: 700; line-height: 1.6; letter-spacing: .02em; white-space: nowrap;
  color: var(--ph-ink); background: var(--ph-bg); border: 1px dashed var(--ph-line);
}
.price-val { font-weight: 800; color: var(--blue-800); white-space: nowrap; }
.price-val small { font-weight: 600; font-size: .8em; color: var(--muted); }
.price-card .price .price-val { font-size: 1.35rem; }
.price-lbl { display: inline-block; min-width: 2.6em; margin-right: 6px; font-size: .85rem; color: var(--muted); font-weight: 600; }
.card .price .price-val { font-size: 1.15rem; }
.compare .price-val { font-size: 1.05rem; }

/* ---------- 分店相片：固定 3:2，object-fit: cover（同名覆蓋即可換相） ---------- */
.branch-photo { margin: 0; aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden; background: var(--blue-100); }
.branch-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.branch-photo--ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 16px;
  color: var(--blue-700); font-weight: 600; font-size: .95rem; border: 2px dashed #9db8e0;
  background: repeating-linear-gradient(45deg, rgba(0,42,128,.05) 0 12px, transparent 12px 24px), linear-gradient(135deg, #eaf3ff, #e3f1ff);
}
.branch-photo--ph small { font-weight: 400; color: var(--muted); font-size: .8rem; overflow-wrap: anywhere; }
.branch-photo--ph .icon { width: 40px; height: 40px; color: var(--brand); }
.hero-photo { box-shadow: 0 18px 48px rgba(0,52,160,.16); border: 6px solid #fff; }
.img-ph--43 { aspect-ratio: 3 / 2; min-height: 0 !important; }
.section--navy .branch-photo { border: 1px solid var(--ice-line); }

.branch-nav ul { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.branch-nav a { display: inline-block; padding: 6px 16px; border-radius: 999px; border: 1.5px solid var(--brand); color: var(--brand); font-weight: 700; text-decoration: none; }
.branch-nav a:hover { background: var(--brand); color: #fff; }
.branch-grid { display: grid; gap: 24px; }
@media (min-width: 700px) { .branch-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .branch-grid { grid-template-columns: repeat(3, 1fr); } }
.branch-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; scroll-margin-top: calc(var(--header-h) + 16px); }
.branch-card .branch-photo { border-radius: 0; }
.branch-card .branch-photo--ph { border-width: 0 0 2px; }
.branch-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.branch-body .btn-row { margin-top: auto; }
.branch-area { margin: 0 0 2px; font-size: .85rem; font-weight: 700; letter-spacing: .1em; color: var(--brand); }
.info-list--compact li { padding: 9px 0; font-size: .94rem; }
.info-list--compact .icon { width: 20px; height: 20px; }

.branch-mini-grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .branch-mini-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .branch-mini-grid { grid-template-columns: repeat(3, 1fr); } }
.branch-mini { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); }
.branch-mini:hover { border-color: var(--brand); color: var(--ink); box-shadow: var(--shadow); }
.branch-mini strong { color: var(--blue-800); font-size: 1.05rem; }
.branch-mini span { display: flex; gap: 6px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.branch-mini .icon { color: var(--brand); margin-top: 3px; }
.trust-photo { display: block; text-decoration: none; color: var(--brand); }
.trust-photo span { display: block; margin-top: 8px; font-weight: 700; font-size: .95rem; }
.trust-photo:hover span { text-decoration: underline; }

/* ---------- v3：年費方案 ---------- */
.btn-outline-wa { background: #fff; color: var(--wa); border-color: var(--wa); }
.btn-outline-wa:hover { background: var(--wa); color: #fff; }
.plan-grid { align-items: stretch; }
.plan-card { position: relative; display: flex; flex-direction: column; }
.plan-card .plan-name { font-size: 1.3rem; margin: 0 0 4px; color: var(--blue-800); }
.plan-card .plan-price { margin: 0 0 6px; }
.plan-card .plan-price .price-val { font-size: 1.7rem; }
.plan-card .plan-pos { font-weight: 700; color: var(--ink); margin-bottom: 14px; }
.plan-card .check-list { font-size: .95rem; flex: 1; }
.plan-card .plan-inherit { font-size: .88rem; font-weight: 700; color: var(--accent-700); margin: 0 0 8px; }
.plan-card .plan-suits { font-size: .9rem; background: var(--bg-soft); border-radius: var(--radius-sm); padding: 10px 12px; color: var(--ink); }
.plan-card .plan-suits b { color: var(--blue-800); }
.plan-card .btn { margin-top: auto; }
.plan-card--featured { background: #fff; border: 2px solid var(--brand); box-shadow: 0 18px 44px rgba(0,70,209,.16); }
@media (min-width: 960px) { .plan-card--featured { transform: translateY(-8px); } }
.plan-flag { position: absolute; top: -13px; left: 20px; background: var(--brand); color: #fff; font-size: .8rem; font-weight: 700; padding: 3px 12px; border-radius: 999px; letter-spacing: .04em; }
.plan-flag--sm { position: static; display: inline-block; margin-left: 8px; font-size: .72rem; padding: 1px 8px; vertical-align: 2px; }
.plan-table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }
.plan-table caption { text-align: left; padding: 16px 20px; font-weight: 700; color: var(--blue-800); background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.plan-table th, .plan-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.plan-table tbody th { text-align: left; font-weight: 600; color: var(--ink); }
.plan-table thead th { background: var(--blue-100); color: var(--blue-800); }
.plan-table thead th:first-child { text-align: left; }
.plan-table thead th small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; }
.plan-table thead th.is-featured { background: var(--brand); color: #fff; }
.plan-table thead th.is-featured small { color: #fff; }
.plan-table td:nth-child(3) { background: rgba(0,70,209,.05); }
.plan-table .tick { color: var(--wa); font-weight: 800; font-size: 1.15rem; }
.plan-table .dash { color: #6b7788; } /* v5：≥3:1（白底 4.55、B 欄淡藍底 4.19） */
.plan-table tr:last-child th, .plan-table tr:last-child td { border-bottom: 0; }
.table-wrap--scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.plan-start { font-size: 1.1rem; font-weight: 800; color: var(--blue-800); margin-bottom: 12px; }
.plan-mini-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; }
.plan-mini a { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); min-height: 44px; }
.plan-mini a:hover { border-color: var(--brand); }
.plan-mini--rec a { border: 2px solid var(--brand); background: var(--accent-100); }
.plan-mini-name { font-weight: 800; color: var(--blue-800); }
.plan-mini-price { font-weight: 700; }
.plan-mini-pos { font-size: .88rem; color: var(--muted); }

/* ---------- v3：相片署名 ---------- */
.branch-fig { margin: 0; }
.photo-credit { font-size: .72rem; line-height: 1.5; color: var(--muted); padding: 6px 2px 0; }
.photo-credit a { color: inherit; display: inline-block; min-height: 24px; line-height: 24px; padding: 0 2px; }
.checkbox a { display: inline-block; min-height: 24px; line-height: 24px; }
.branch-card .photo-credit { padding: 6px 16px 0; }
.trust-photo > a { display: inline-flex; align-items: center; min-height: 44px; margin-top: 2px; font-weight: 700; font-size: .95rem; color: var(--brand); }

/* ---------- v3：私隱政策／服務條款 ---------- */
.legal-layout { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .legal-layout { grid-template-columns: 260px minmax(0, 1fr); align-items: start; } .legal-toc { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow: auto; } }
.legal-toc { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; font-size: .9rem; }
.legal-toc ol { list-style: none; padding: 0; margin: 0; }
.legal-toc ol ol { padding-left: 12px; margin: 2px 0 6px; font-size: .85rem; }
.legal-toc a { display: block; padding: 4px 0; text-decoration: none; }
.legal-toc a:hover { text-decoration: underline; }
@media (max-width: 999px) { .legal-toc a { padding: 10px 0; } }
.prose.legal { max-width: 820px; }
.prose.legal h2 { font-size: 1.45rem; margin-top: 2em; padding-top: .4em; border-top: 2px solid var(--line); }
.prose.legal h3 { font-size: 1.15rem; margin-top: 1.6em; }
.prose.legal h2, .prose.legal h3 { scroll-margin-top: 96px; }
.prose.legal blockquote { margin: 1em 0; padding: 12px 16px; border-left: 4px solid var(--accent-600); background: var(--bg-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose.legal blockquote p { margin: 0; }
.prose.legal hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.legal-table { min-width: 480px; }
.legal-table td:last-child { white-space: normal; }
.legal-table th, .legal-table td { vertical-align: top; }
.legal-mark { font-weight: 700; font-size: .92em; padding: 0 4px; line-height: 1.5; }
.legal-toc .toc-part > a { margin-top: 10px; font-weight: 800; color: var(--blue-800); }
.prose.legal h2.legal-part { font-size: 1.6rem; color: var(--blue-800); border-top: 4px solid var(--brand); }
@media (max-width: 999px) { .legal-toc ol ol { display: none; } }
@media (max-width: 640px) {
  .plan-table { min-width: 0; font-size: .85rem; }
  .plan-table th, .plan-table td { padding: 10px 6px; }
  .plan-table tbody th { padding-left: 12px; }
  .plan-table thead th { font-size: .82rem; }
  .plan-table thead th small { font-size: .68rem; }
  .plan-table .cta-row .btn-sm { padding: 6px 8px; }
}
@media (max-width: 640px) { .plan-table .cta-row .btn-sm .icon { display: none; } }

/* ---------- v4：三語 ---------- */
:lang(zh-Hans) { --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", "Heiti SC", sans-serif; }
:lang(en) { --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang HK", "Noto Sans TC", sans-serif; }
html:lang(zh-Hans) body, html:lang(en) body { font-family: var(--font); }
html:lang(en) .nav-link, html:lang(en) .dropdown-toggle { font-size: .95rem; }
html:lang(en) .lead { hyphens: manual; }

/* 持牌人聲明（註冊地址／公司秘書地址由 HKCSC 提供）：每頁一次 */
.notice--licence { display: flex; gap: 10px; align-items: flex-start; border-left-color: var(--blue-800); }
.notice--licence .icon { color: var(--blue-800); margin-top: 3px; }
.plan-licence { display: flex; gap: 8px; align-items: flex-start; font-size: .8rem; line-height: 1.5; color: var(--muted); margin: -4px 0 12px; }
.plan-licence .icon { width: 16px; height: 16px; margin-top: 2px; color: var(--blue-800); }
.footer-legal small { display: block; line-height: 1.6; }

/* 首次到訪語言建議橫額（可關閉；不會自動轉址） */
.lang-banner {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 24px; z-index: 120; width: min(560px, calc(100% - 24px));
  display: grid; grid-template-columns: 1fr auto; gap: 10px 12px; align-items: center;
  background: #fff; color: var(--ink); border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 14px 14px 14px 18px;
}
.lang-banner p { margin: 0; font-weight: 600; grid-column: 1; }
.lang-banner-actions { display: flex; flex-wrap: wrap; gap: 8px; grid-column: 1; }
.lang-banner-actions .btn { min-height: 44px; }
.lang-banner-close { grid-column: 2; grid-row: 1 / span 2; align-self: start; width: 44px; height: 44px; border: 0; background: none; font-size: 1.6rem; line-height: 1; color: var(--muted); cursor: pointer; border-radius: 8px; }
.lang-banner-close:hover { background: var(--bg-soft); }
@media (min-width: 768px) { .lang-banner { left: 24px; transform: none; } }
@media (max-width: 767px) { .lang-banner { bottom: calc(84px + env(safe-area-inset-bottom)); } }

/* 手機點擊範圍：麵包屑 ≥ 44px、相片署名連結 ≥ 24px（不改變桌面版面） */
@media (max-width: 767px) {
  .breadcrumb ol { align-items: center; gap: 0 6px; }
  .breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; margin-left: -4px; }
  .breadcrumb li { display: inline-flex; align-items: center; min-height: 44px; }
  .breadcrumb { margin-bottom: 4px; }
  .photo-credit { line-height: 2; }
  .photo-credit a { display: inline-block; min-height: 24px; line-height: 24px; padding: 0 2px; }
}
