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

:root {
  /* 第一層：主題色（換品牌就改這裡） */
  --brand-ink: #0B1220;         /* 主深色：頂條、頁腳、深色區 */
  --brand-ink-2: #121B2C;       /* 深色卡片 */
  --brand-gold: #C9A961;        /* 主強調：CTA、價格、標籤 */
  --brand-gold-hi: #D8BC7E;     /* 金色 hover */
  --brand-gold-deep: #A98A45;   /* 淺底上的金字（對比度更佳） */
  --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: 12px; 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: 12px; 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: 12px;
  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: 12px; 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: 12px; 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: 12px; 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; }
}

/* ==========================================================================
   行業區塊：醫學美容 / 診所
   --------------------------------------------------------------------------
   基礎層到此為止，下面是這個行業專屬的樣式。
   新卡片記得同步追加到 animations.css 的 hover 清單。
   ========================================================================== */

/* ---------- 療程卡 ---------- */
.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: 12px; 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; }

/* ---------- 免責聲明 ---------- */
.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; }

/* ---------- 頁腳示例說明 ---------- */
.demo-note { margin-top: 8px; font-size: 12px; opacity: .68; max-width: 520px; }
