/* ==========================================================================
   港澳行業模板 · 基礎層樣式（骨架版）
   --------------------------------------------------------------------------
   這份是「跟行業無關」的基礎層，五套模板共用。
   用法：複製後**只往下追加行業區塊**，不要改上面的基礎層。
   追加位置見檔案最底「行業區塊寫在這裡」。
   ========================================================================== */

:root {
  /* 第一層：主題色（換品牌就改這裡） */
  --brand-ink: #0B1220;         /* 主深色：頂條、頁腳、深色區 */
  --brand-ink-2: #121B2C;       /* 深色卡片 */
  --brand-gold: #C9A961;        /* 主強調：CTA、價格、標籤 */
  --brand-gold-hi: #D8BC7E;     /* 金色 hover */
  --brand-gold-deep: #8A6D2F;   /* 淺底上的金字（對比度更佳） */
  --surface: #F5F6F8;           /* 區塊交替底色 */
  --border: #E6E9EE;            /* 邊框、分隔線 */

  /* 第二層：語意 */
  --background-primary: #FFFFFF;
  --background-secondary: var(--surface);
  --background-dark: var(--brand-ink);
  --foreground-primary: var(--brand-ink);
  --foreground-muted: #5F5E5A;
  --foreground-on-dark: #FFFFFF;
  --border-default: var(--border);
  --accent: var(--brand-gold);
  --accent-strong: var(--brand-gold-deep);

  /* 第三層：尺寸
     留白檔位（選一檔填入 --space-section）：
       88  = 緊湊：資訊密度高（零售門店 / 教育）
       96  = 標準：餐飲
       104 = 品牌：集團官網
       112 = 極簡：健身 / 高端服務 */
  --radius-card: 16px;
  --radius-btn: 8px;
  --radius-pill: 999px;
  --space-section: 104px;
  --shadow-card: 0 18px 40px -28px rgba(11, 18, 32, .45);
}

body {
  font-family: "PingFang HK", "Noto Sans HK", "Microsoft JhengHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--foreground-primary);
  background: var(--background-primary);
}

h1, h2, h3, h4 { font-weight: 700; letter-spacing: .01em; }
a { text-decoration: none; }

.eyebrow {
  font-size: 13px; font-weight: 500; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent-strong); margin-bottom: 8px;
}
.eyebrow-light { color: var(--brand-gold); }

/* ---------- 頂部工具條 ---------- */
.topbar { background: var(--brand-ink); color: rgba(255,255,255,.75); font-size: 13px; }
.topbar a { color: rgba(255,255,255,.78); }
.topbar a:hover { color: var(--brand-gold); }
.topbar-note { letter-spacing: .02em; }
.topbar-links { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.cart-count {
  display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px;
  background: var(--brand-gold); color: var(--brand-ink);
  border-radius: var(--radius-pill); font-size: 13px; text-align: center;
}

/* ---------- 主導航 ---------- */
.site-nav { background: #fff; border-bottom: 1px solid var(--border-default); }
.site-nav .nav-link { color: var(--foreground-primary); font-weight: 500; padding: .5rem .9rem; }
.site-nav .nav-link:hover { color: var(--accent-strong); }
.site-nav .nav-cta {
  background: var(--brand-gold); color: var(--brand-ink);
  border-radius: var(--radius-btn); padding: .45rem 1rem;
}
.site-nav .nav-cta:hover { background: var(--brand-gold-hi); color: var(--brand-ink); }
.dropdown-menu { border-color: var(--border-default); border-radius: var(--radius-btn); }
.dropdown-item:hover, .dropdown-item:active { background: var(--surface); color: var(--accent-strong); }
.site-search { position: relative; flex: 1 1 260px; max-width: 420px; }
.site-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--foreground-muted); }
.site-search input { border: 1px solid var(--border-default); border-radius: var(--radius-pill); padding-left: 40px; height: 44px; }
.site-search input:focus { border-color: var(--brand-gold); box-shadow: 0 0 0 3px rgba(201,169,97,.18); }

/* ---------- 首屏（全屏大圖版，餐飲 / 教育 / 集團都用這版） ---------- */
.hero { position: relative; overflow: hidden; background: var(--brand-ink); padding: 104px 0 96px; }
.hero-media { position: absolute; inset: 0; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11,18,32,.93) 0%, rgba(11,18,32,.74) 50%, rgba(11,18,32,.34) 100%);
}
.hero-img { width: 100%; height: 100%; object-fit: cover; }
.hero-copy { position: relative; color: var(--foreground-on-dark); max-width: 660px; }
.hero-copy h1 { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.22; margin-bottom: 14px; }
.hero-copy .lead { opacity: .85; margin-bottom: 26px; font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 22px; font-size: 14px; color: rgba(255,255,255,.72); }
.hero-meta i { color: var(--brand-gold); margin-right: 6px; }

/* 首屏輪播版（零售門店用）：改用 .hero-caro 包住 .hero-slide */
.hero-slide {
  position: relative; background: var(--brand-ink-2);
  border-radius: var(--radius-card); overflow: hidden;
  min-height: 340px; display: flex; align-items: center;
}
.hero .carousel-control-prev, .hero .carousel-control-next { width: 8%; opacity: .8; }
.hero .carousel-control-prev i, .hero .carousel-control-next i { font-size: 26px; color: var(--brand-gold); }

/* ---------- 通用區塊 ---------- */
.section { padding: var(--space-section) 0; }
.section-surface { background: var(--background-secondary); }
.section-dark { background: var(--background-dark); }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 32px;
}
.section-head h2 { font-size: clamp(24px, 3vw, 34px); margin: 0; }
.section-lead { color: rgba(255,255,255,.78); margin-top: 12px; }
.section-sub { color: var(--foreground-muted); margin-bottom: 28px; }
.link-gold { color: var(--accent-strong); font-weight: 500; }
.link-gold:hover { color: var(--brand-gold-hi); }
.menu-note { margin-top: 22px; font-size: 13px; color: var(--foreground-muted); }
.empty-hint { margin-top: 20px; color: var(--foreground-muted); font-size: 14px; }

/* ---------- 通用卡片 ---------- */
.info-card {
  height: 100%; background: #fff; border: 1px solid var(--border-default);
  border-radius: var(--radius-card); padding: 24px;
}
.info-card h3 { font-size: 18px; margin: 0 0 10px; }
.info-card p { font-size: 14px; color: var(--foreground-muted); margin: 0; }

.service-card {
  height: 100%; background: #fff; border: 1px solid var(--border-default);
  border-radius: var(--radius-card); padding: 26px 24px;
}
.service-card i { font-size: 30px; color: var(--accent-strong); }
.service-card h3 { font-size: 19px; margin: 14px 0 8px; }
.service-card p { font-size: 14px; color: var(--foreground-muted); margin: 0; }

/* ---------- 標籤 / 徽章 ---------- */
.tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--brand-ink); color: #fff; font-size: 13px;
  padding: 4px 10px; border-radius: var(--radius-pill);
}
.tag-hot { background: var(--brand-gold); color: var(--brand-ink); }
.news-tag {
  background: var(--surface); color: var(--accent-strong);
  font-size: 13px; padding: 4px 12px; border-radius: var(--radius-pill);
}
.news-tag.tag-hot { background: var(--brand-gold); color: var(--brand-ink); font-weight: 500; }
.badge-soft {
  background: var(--surface); color: var(--accent-strong);
  font-size: 13px; padding: 4px 12px; border-radius: var(--radius-pill); white-space: nowrap;
}

/* ---------- 數據條（帶腳註編號） ---------- */
.stat-band { background: var(--surface); padding: 56px 0; }
.stat { display: block; text-align: center; }
.stat-num { display: block; font-size: clamp(30px, 4.4vw, 52px); font-weight: 700; color: var(--brand-ink); font-variant-numeric: tabular-nums; }
.stat-unit { font-size: 20px; font-weight: 700; color: var(--accent-strong); margin-left: 2px; }
.stat-label { display: block; margin-top: 6px; font-size: 14px; color: var(--foreground-muted); }
.stat-label sup { color: var(--accent-strong); font-weight: 500; }
.footnote-note { margin-top: 26px; font-size: 13px; color: var(--foreground-muted); text-align: center; }

/* 店舖數字卡（集團模板的四格版） */
.count-card {
  display: block; height: 100%; padding: 28px 26px;
  background: var(--surface); border-radius: var(--radius-card);
  border-left: 3px solid var(--brand-gold);
}
.count-num { display: block; font-size: clamp(30px, 4vw, 42px); font-weight: 700; color: var(--brand-ink); font-variant-numeric: tabular-nums; line-height: 1.1; }
.count-label { font-size: 14px; color: var(--foreground-muted); }

/* ---------- 篩選按鈕（分區 / 分類通用） ---------- */
.zone-filter, .news-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.filter-btn, .zone-btn {
  background: #fff; border: 1px solid var(--border-default);
  border-radius: var(--radius-pill); padding: 8px 18px;
  font-size: 14px; color: var(--foreground-primary);
}
.filter-btn:hover, .zone-btn:hover { border-color: var(--brand-gold); color: var(--accent-strong); }
.filter-btn.is-active, .zone-btn.is-active { background: var(--brand-ink); border-color: var(--brand-ink); color: #fff; }

/* ---------- 防騙 / 提示橫幅（港澳站建議保留） ---------- */
.alert-band { background: #FFF8E8; border-bottom: 1px solid #EFE0BE; padding: 18px 0; font-size: 14px; color: #6B5518; }
.alert-band > .container { align-items: flex-start; }
.alert-band i { font-size: 20px; color: var(--brand-gold-deep); flex-shrink: 0; margin-top: 2px; }
.alert-band strong { color: var(--brand-ink); }
.alert-band a { color: var(--brand-gold-deep); text-decoration: underline; }

/* ---------- 倒數（限時優惠） ---------- */
.countdown {
  font-variant-numeric: tabular-nums; font-weight: 500;
  color: var(--brand-ink); background: var(--surface);
  padding: 8px 16px; border-radius: var(--radius-pill); font-size: 14px;
}

/* ---------- 地址 / 行動列 ---------- */
.store-addr { font-size: 14px; color: var(--foreground-muted); margin: 0 0 8px; }
.store-addr i { color: var(--brand-gold); margin-right: 8px; }
.store-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* ---------- 深色區元件 ---------- */
.check-list { list-style: none; padding: 0; margin: 20px 0 0; color: rgba(255,255,255,.85); font-size: 15px; }
.check-list li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 16px; height: 16px; border-radius: 50%; background: var(--brand-gold); opacity: .9;
}
.contact-block { margin-bottom: 18px; }
.contact-block h4 { font-size: 13px; color: var(--brand-gold); letter-spacing: .06em; margin-bottom: 6px; }
.contact-block p { margin: 0; font-size: 15px; color: rgba(255,255,255,.8); }
.contact-block a { color: rgba(255,255,255,.85); }
.contact-block a:hover { color: var(--brand-gold); }

.qr-card { display: inline-block; background: #fff; border-radius: var(--radius-card); padding: 22px; text-align: center; box-shadow: var(--shadow-card); }
.qr-note { margin: 14px 0 0; color: var(--brand-ink); font-size: 14px; }
.qr-note small { display: block; margin-top: 4px; color: var(--foreground-muted); }

/* ---------- 表單 ---------- */
.booking-form { background: #fff; border-radius: var(--radius-card); padding: 30px 28px; box-shadow: var(--shadow-card); }
.form-title { font-size: 20px; margin: 0 0 18px; }
.booking-form .form-label { font-size: 13px; font-weight: 500; }
.booking-form .form-control,
.booking-form .form-select { border-color: var(--border-default); border-radius: var(--radius-btn); padding: .6rem .8rem; }
.booking-form .form-control:focus,
.booking-form .form-select:focus { border-color: var(--brand-gold); box-shadow: 0 0 0 3px rgba(201,169,97,.18); }
.form-hint { font-size: 13px; color: var(--foreground-muted); }
.form-hint.is-ok { color: var(--brand-gold-deep); font-weight: 500; }

/* 手風琴（FAQ） */
.accordion-item { border-color: var(--border-default); border-radius: var(--radius-card); margin-bottom: 12px; overflow: hidden; }
.accordion-button { font-size: 16px; font-weight: 500; color: var(--brand-ink); }
.accordion-button:not(.collapsed) { background: var(--surface); color: var(--brand-ink); box-shadow: none; }
.accordion-button:focus { box-shadow: 0 0 0 3px rgba(201,169,97,.18); border-color: var(--brand-gold); }
.accordion-body { font-size: 15px; color: var(--foreground-muted); line-height: 1.8; }

/* ---------- 按鈕 ---------- */
.btn-gold {
  background: var(--brand-gold); color: var(--brand-ink);
  border: 1px solid var(--brand-gold); border-radius: var(--radius-btn);
  padding: 10px 24px; font-weight: 500;
}
.btn-gold:hover { background: var(--brand-gold-hi); border-color: var(--brand-gold-hi); color: var(--brand-ink); }
.btn-outline-gold {
  background: transparent; color: var(--accent-strong);
  border: 1px solid var(--brand-gold); border-radius: var(--radius-btn);
  padding: 10px 24px; font-weight: 500;
}
.btn-outline-gold:hover { background: var(--brand-gold); color: var(--brand-ink); }
.btn-sm { padding: 6px 14px; font-size: 14px; }

/* ---------- 頁腳 ---------- */
.site-footer { background: var(--brand-ink); color: rgba(255,255,255,.72); }
.site-footer h4 { font-size: 14px; color: #fff; margin-bottom: 14px; letter-spacing: .04em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: rgba(255,255,255,.7); font-size: 14px; }
.site-footer a:hover { color: var(--brand-gold); }
.footer-logo { filter: brightness(0) invert(1); opacity: .95; }
.footer-note { margin-top: 16px; font-size: 14px; }
.social a { font-size: 20px; margin-right: 14px; color: rgba(255,255,255,.75); }
.social a:hover { color: var(--brand-gold); }
.footer-hr { border-color: rgba(255,255,255,.14); margin: 28px 0 18px; }
.footnotes { margin-bottom: 18px; }
.footnotes p { margin: 0 0 6px; }
.footnotes sup { color: var(--brand-gold); }
.footer-legal { font-size: 13px; color: rgba(255,255,255,.5); margin: 0; }

/* ---------- 響應式 ---------- */
@media (max-width: 991.98px) {
  :root { --space-section: 64px; }
  .hero { padding: 76px 0 64px; }
  .hero-media::after { background: rgba(11,18,32,.78); }
  .topbar-note { display: none; }
}

/* ---------- 通用卡片變體（五套模板都用過，已提升為基礎層） ---------- */
/* 帶圖卡片：課程 / 療程 / 商品 */
.course-card {
  height: 100%; background: #fff;
  border: 1px solid var(--border-default); border-radius: var(--radius-card);
  overflow: hidden;
}
.course-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--surface); }
.course-body { padding: 18px 20px 22px; }
.course-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.course-card h3 { font-size: 18px; margin: 0 0 8px; }
.course-card p { font-size: 14px; color: var(--foreground-muted); margin: 0; }
.course-price { margin-top: 14px !important; font-size: 17px; font-weight: 700; color: var(--brand-ink); }

/* 步驟卡（流程 / 三步 / 四步） */
.step-card {
  height: 100%; text-align: center; padding: 26px 16px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-card); color: #fff;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand-gold); color: var(--brand-ink);
  font-size: 14px; font-weight: 700; margin-bottom: 12px;
}
.step-card i { display: block; font-size: 30px; color: var(--brand-gold); margin-bottom: 10px; }
.step-card h3 { font-size: 17px; margin: 0 0 8px; }
.step-card p { margin: 0; font-size: 14px; color: rgba(255,255,255,.78); }

/* 人物卡（導師 / 教練 / 醫生 / 治療師） */
.tutor-card {
  height: 100%; background: #fff;
  border: 1px solid var(--border-default); border-radius: var(--radius-card);
  overflow: hidden;
}
.tutor-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; background: var(--surface); }
.tutor-body { padding: 16px 18px 20px; }
.tutor-body h3 { font-size: 18px; margin: 0 0 4px; }
.tutor-subject { font-size: 13px; color: var(--accent-strong); margin: 0 0 8px; }
.tutor-desc { font-size: 14px; color: var(--foreground-muted); margin: 0; }
.reg-no { margin: 10px 0 0; font-size: 13px; color: var(--foreground-muted); opacity: .8; }

/* 環境 / 場景卡 */
.mode-card {
  height: 100%; background: #fff;
  border: 1px solid var(--border-default); border-radius: var(--radius-card);
  overflow: hidden;
}
.mode-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; background: var(--surface); }
.mode-card h3 { font-size: 18px; margin: 16px 18px 6px; }
.mode-card p { font-size: 14px; color: var(--foreground-muted); margin: 0 18px 20px; }

/* 小圖標卡（支付方式 / 服務項目） */
.pay-card { text-align: center; padding: 24px 18px; }
.pay-card i { font-size: 28px; color: var(--accent-strong); }
.pay-card h3 { font-size: 17px; margin: 12px 0 6px; }
.pay-card p { font-size: 14px; color: var(--foreground-muted); margin: 0; }

/* 頁腳示例說明（演示圖來源聲明） */
.demo-note { margin-top: 8px; font-size: 13px; opacity: .68; max-width: 520px; }

/* 促銷跑馬燈（滿額免運 / 會員日 / 門市自取 等橫向提示） */
.marquee {
  background: var(--brand-ink); color: rgba(255,255,255,.9);
  font-size: 13px; overflow: hidden; white-space: nowrap;
}
.marquee-track { display: inline-flex; gap: 48px; padding: 10px 0; animation: marquee-scroll 28s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: inline-flex; align-items: center; gap: 8px; }
.marquee-track i { color: var(--brand-gold); }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* 圓形快捷分類入口 */
.cat { display: block; color: var(--foreground-primary); padding: 8px 0; text-align: center; }
.cat-icon {
  display: flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; margin: 0 auto 10px;
  border-radius: 50%; background: #fff; border: 1px solid var(--border-default);
  color: var(--accent-strong); font-size: 26px; transition: background .18s ease, color .18s ease;
}
.cat:hover .cat-icon { background: var(--brand-ink); color: var(--brand-gold); border-color: var(--brand-ink); }
.cat-label { font-size: 14px; }

/* 商品卡（零售通用：原價 / 特價 / 角標 / 會員價） */
.product-card {
  position: relative; height: 100%; background: #fff;
  border: 1px solid var(--border-default); border-radius: var(--radius-card);
  overflow: hidden; transition: transform .18s ease, box-shadow .18s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.product-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; background: var(--surface); }
.product-body { padding: 16px 18px 20px; }
.product-name { font-size: 16px; margin: 0 0 4px; line-height: 1.4; }
.product-meta { font-size: 13px; color: var(--foreground-muted); margin-bottom: 10px; }
.product-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.price { font-size: 20px; font-weight: 700; color: var(--accent-strong); }
.price-was { font-size: 13px; color: var(--foreground-muted); text-decoration: line-through; }
.price-off { font-size: 13px; font-weight: 600; color: #fff; background: var(--accent-strong); padding: 2px 8px; border-radius: var(--radius-pill); }
.product-actions { display: flex; flex-wrap: wrap; gap: 8px; }
/* flex-basis 132px：容器够宽时两颗并排，窄于 ~272px 时自动换行成上下两颗。
   不要写 flex: 1，那会把按钮压窄到文字竖排。 */
.product-actions > .btn { flex: 1 1 132px; }
.btn-buy { flex: 1 1 132px; }

/* 資訊卡（新聞 / 洞見 / 監管更新 / 文章列表） */
.news-card {
  display: flex; flex-direction: column; height: 100%;
  background: #fff; color: var(--foreground-primary);
  border: 1px solid var(--border-default); border-radius: var(--radius-card);
  overflow: hidden; transition: transform .18s ease, box-shadow .18s ease;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.news-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--surface); display: block; }
.news-body { padding: 18px 20px 22px; }
.news-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.news-date { font-size: 13px; color: var(--foreground-muted); }
.news-card h3 { font-size: 17px; line-height: 1.45; margin: 0 0 8px; }
.news-card p { font-size: 14px; color: var(--foreground-muted); margin-bottom: 12px; }

/* 資格 / 認證卡（專業資格、認證及獎項、監管合規） */
.cred-card {
  height: 100%; background: #fff;
  border: 1px solid var(--border-default); border-radius: var(--radius-card);
  padding: 26px 24px;
  border-top: 3px solid var(--brand-gold);
}
.cred-card > i { font-size: 26px; color: var(--accent-strong); }
.cred-card h3 { font-size: 18px; margin: 14px 0 8px; }
.cred-card p { font-size: 14px; color: var(--foreground-muted); margin: 0; }
.cred-no {
  margin: 12px 0 0; padding-top: 10px;
  border-top: 1px dashed var(--border-default);
  font-size: 13px; color: var(--foreground-muted); opacity: .85;
}

/* 核對清單：預設 .check-list 是給深色底用的（白字），
   放在淺色區塊就加 .check-list-light 改回深字，別自己寫 !important 覆寫 */
.check-list-light { color: var(--foreground-primary); }
.check-list-light strong { color: var(--brand-ink); }

/* 獨立環境小圖（門市 / 廠房 / 辦公室的圖片走廊用） */
.mode-card-img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: var(--radius-card); display: block; background: var(--surface);
}

/* ---------- 免責聲明內文（醫美第 1 次出現，家裝/法律/會計第 2 次起提升至基礎層） ---------- */
.disclaimer-body {
  margin-top: 20px; padding: 24px 26px;
  background: #fff; border-left: 3px solid var(--brand-gold);
  border-radius: var(--radius-card);
}
.disclaimer-body p { font-size: 15px; line-height: 1.85; color: var(--foreground-muted); margin: 0 0 12px; }
.disclaimer-body p:last-child { margin-bottom: 0; }

/* ---------- 表格（套餐比較 / 收費表 / 服務範圍對照）
   一律包 .table-responsive，手機上橫向滾動，不硬塞 ---------- */
.table { color: var(--foreground-primary); }
.table > thead th {
  font-size: 14px; font-weight: 600; color: var(--brand-ink);
  border-bottom: 2px solid var(--brand-gold); padding: 12px 16px; white-space: nowrap;
}
.table > tbody th {
  font-size: 15px; font-weight: 600; color: var(--brand-ink);
  background: var(--surface); padding: 14px 16px;
}
.table > tbody td { font-size: 14px; padding: 14px 16px; border-bottom: 1px solid var(--border-default); }
.table > tbody tr:last-child td, .table > tbody tr:last-child th { border-bottom: 0; }

/* ==========================================================================
   行業區塊寫在這裡
   --------------------------------------------------------------------------
   基礎層到此為止。下面放這個行業專屬的樣式，例如：
     .dish-card / .store-card / .deal-card / .gallery-grid ...
   新卡片記得同步追加到 animations.css 的 hover 清單。

   ⚠️ 寫在這段註解「下面」，不要追加到檔案最末。
      檔案最末是手機端統一補丁，必須永遠排在行業 CSS 之後才壓得住桌面端預設值。
   ========================================================================== */


/* ==========================================================================
   手機端窄欄位修正（基礎層統一補丁，追加在最後以壓過桌面端預設）
   --------------------------------------------------------------------------
   手機兩欄時每欄只有 ~160px，商品卡內的橫排按鈕、內邊距、字號都要收。
   ========================================================================== */
@media (max-width: 767.98px) {
  /* 按鈕改成上下各佔一行，徹底避免被壓成豎長條 */
  .product-actions > .btn { flex: 1 1 100%; padding: 8px 12px; font-size: 13px; }
  .product-actions { gap: 6px; }

  /* 按鈕貼底：同一行卡片高度不齊時，空白落在價格與按鈕之間，
     看起來像留白而不是像排版壞掉 */
  .product-card { display: flex; flex-direction: column; }
  .product-body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 12px 12px 14px; }
  .product-actions { margin-top: auto; }

  .product-name { font-size: 14px; }
  .product-meta { font-size: 13px; margin-bottom: 8px; }
  .product-price { gap: 6px; margin-bottom: 10px; }
  .price { font-size: 17px; }
  .price-was { font-size: 13px; }
}

@media (max-width: 575.98px) {
  /* g-4 在 375px 屏上吃掉 24px 間距，兩欄各只剩 159px，收窄到 16px */
  .row.g-4 { --bs-gutter-x: 1rem; --bs-gutter-y: 1rem; }
  .row.g-3 { --bs-gutter-x: .75rem; --bs-gutter-y: .75rem; }
}


/* ==========================================================================
   行業專屬信任組件（2026-09-16 依香港真站調研新增）
   痛點前置 / 編號保障 / 行業價目表 / 業務範圍 / 牌照條 / 評價
   這些是為了讓 21 套模板不再長得一樣——每個行業只用它真正需要的那幾個。
   ========================================================================== */

/* 痛點前置：先說中客戶怕什麼（怕爛尾、怕黑店、怕海鮮價） */
.pain-card {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border-default);
  border-left: 3px solid var(--accent-strong);
  border-radius: var(--radius-card); padding: 18px 20px; height: 100%;
}
.pain-card i { font-size: 22px; color: var(--accent-strong); flex: 0 0 auto; margin-top: 2px; }
.pain-card h3 { font-size: 16px; margin: 0 0 4px; }
.pain-card p { font-size: 14px; margin: 0; color: var(--foreground-muted); line-height: 1.65; }

/* 編號保障：EcHouse 的「保障1～保障7」，編號化才是承諾 */
.guar-card {
  height: 100%; background: #fff; border: 1px solid var(--border-default);
  border-radius: var(--radius-card); padding: 22px 20px;
}
.guar-no {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .06em;
  color: #fff; background: var(--accent-strong);
  padding: 3px 10px; border-radius: var(--radius-pill); margin-bottom: 10px;
}
.guar-card h3 { font-size: 17px; margin: 0 0 8px; }
.guar-card p { font-size: 14px; margin: 0; color: var(--foreground-muted); line-height: 1.7; }

/* 行業價目表：計價單位由行業決定，價格靠右對齊並強調 */
.pricelist tbody th { width: 34%; font-weight: 600; font-size: 15px; }
.pricelist td.pr {
  text-align: right; font-weight: 700; color: var(--accent-strong);
  white-space: nowrap; font-size: 15px;
}

/* 只報價不明碼（清潔 / 律師 / 會計 / 保險的行規） */
.quote-only {
  text-align: center; padding: 36px 28px; background: var(--surface);
  border: 1px dashed var(--border-default); border-radius: var(--radius-card);
}
.quote-only i { font-size: 34px; color: var(--accent-strong); }
.quote-only h3 { font-size: 21px; margin: 12px 0 8px; }
.quote-only p { font-size: 14px; margin: 0; color: var(--foreground-muted); line-height: 1.7; }

/* 業務範圍 / 專科分科 */
.scope-card {
  height: 100%; background: #fff; border: 1px solid var(--border-default);
  border-radius: var(--radius-card); padding: 22px 22px 20px;
}
.scope-card h3 { font-size: 17px; margin: 0 0 10px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border-default); }
.scope-card ul { list-style: none; padding: 0; margin: 0; }
.scope-card li { font-size: 14px; color: var(--foreground-muted);
  padding: 5px 0 5px 16px; position: relative; line-height: 1.6; }
.scope-card li::before { content: ""; position: absolute; left: 0; top: 13px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent-strong); }

/* 牌照醒目條：保監局牌照號碼這類可查證的東西要放大寫 */
.license-band {
  text-align: center; padding: 34px 24px; background: var(--surface);
  border: 1px solid var(--border-default); border-radius: var(--radius-card);
}
.license-band > i { font-size: 32px; color: var(--accent-strong); }
.license-main { margin: 12px 0 10px; }
.license-label { display: block; font-size: 13px; color: var(--foreground-muted); margin-bottom: 4px; }
.license-no { font-size: 30px; font-weight: 700; letter-spacing: .04em; color: var(--foreground-primary); }
.license-band p { font-size: 14px; margin: 0; color: var(--foreground-muted); line-height: 1.7; }

/* 客戶評價：香港站極少用評分制，標註方式按行業而異 */
.review-card {
  height: 100%; background: #fff; border: 1px solid var(--border-default);
  border-radius: var(--radius-card); padding: 24px 22px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.rev-text { font-size: 15px; line-height: 1.8; margin: 0 0 14px; }
.rev-who { display: block; font-size: 14px; font-weight: 600; }
.rev-meta { display: block; font-size: 13px; color: var(--foreground-muted); margin-top: 2px; }

/* ==========================================================================
   [mobile-patch-3] 手機端（<768px）實測修補
   來源：_tools/audit-runtime.py 在 390x844 量出的真實像素。
   必須放在所有行業樣式之後（追加在檔案末尾）才能蓋住前面的規則。
   ========================================================================== */
@media (max-width: 767.98px) {
  /* 1. g-5 的 gutter 3rem 負 margin(-24px) 大過 container 的 padding(12px)，
        整頁會多出左右各 12px 的橫向滾動。收回 1.5rem 剛好抵消。 */
  .row.g-5, .row.gx-5 { --bs-gutter-x: 1.5rem; }
  .row.g-5, .row.gy-5 { --bs-gutter-y: 1.5rem; }

  /* 2. 表格寧可橫向滑動，也不要把每列擠成 100px 的豎條 */
  .table-responsive > .table { min-width: 520px; }

  /* 3. 卡片底部留白：padding-bottom 之外還疊了末尾 <p> 的 margin-bottom */
  .step-card > :last-child,
  .service-card > :last-child,
  .mode-card > :last-child,
  .price-card > :last-child,
  .info-card > :last-child { margin-bottom: 0; }

  .step-card, .service-card { padding: 20px 14px; }
}

/* ==========================================================================
   [design-fix] 深色底上的金色改用淺金
   --accent-strong 是給白底用的深金（#8A6D2F，白底 4.87:1）；
   它落在深色 hero / section-dark 上只剩 3.84:1，不達 WCAG AA。
   深色底改用 --brand-gold（#C9A961，對 #0B1220 為 8.40:1）。
   ========================================================================== */
.section-dark .eyebrow,
.hero .eyebrow,
.section-dark .link-gold,
.section-dark .stat-num,
.section-dark .step-num,
.hero .link-gold { color: var(--brand-gold); }
.section-dark .btn-outline-gold,
.hero .btn-outline-gold { color: var(--brand-gold); border-color: var(--brand-gold); }

/* ==========================================================================
   [design-fix-2] 深色組件落在淺色區 → 自動轉淺色版
   根因：.step-card / .section-lead 內建白字，設計上只用在深色 section。
   一旦被放進淺色 section（例如「流程」區塊沒標 section-dark），就是白底白字。
   用父選擇器讓它自適應，避免逐個模板去數哪個區塊是深是淺。
   ========================================================================== */
.section:not(.section-dark):not(.hero) .step-card {
  background: #fff;
  border: 1px solid var(--border-default);
}
.section:not(.section-dark):not(.hero) .step-card h3 { color: var(--foreground-primary); }
.section:not(.section-dark):not(.hero) .step-card p { color: var(--foreground-muted); }
.section:not(.section-dark):not(.hero) .step-num {
  background: var(--surface); color: var(--accent-strong);
}

/* section-lead 預設是給深色區的白字，落在淺色區要轉深灰 */
.section:not(.section-dark):not(.hero) .section-lead { color: var(--foreground-muted); }

/* footnote-note 是給淺色區的深灰字，落在深色區要轉淺 */
.section-dark .footnote-note,
.hero .footnote-note { color: rgba(255, 255, 255, .72); }
