/* ============================================================
   深港睇牙 — Design System
   專業、清爽、可信賴的高端牙科服務感
   白 / 淺藍 / 深藍 / 淺金 / 綠 點綴
   ============================================================ */

:root {
  /* Blues */
  --blue-900: #0A3766;
  --blue-800: #0B4682;
  --blue-700: #0E5BA6;   /* primary */
  --blue-600: #1469BE;
  --blue-500: #1E7BE0;
  --blue-200: #BFD9F4;
  --blue-100: #E6F0FB;
  --blue-50:  #F3F8FE;

  /* Accents */
  --gold-600: #B68A3C;
  --gold-500: #CBA75C;
  --gold-100: #F5ECD8;
  --green-700: #157A50;
  --green-600: #1E9E6A;
  --green-100: #E2F4EB;

  /* Ink / neutral */
  --ink-900: #14222F;
  --ink-800: #233544;
  --ink-700: #3A4B59;
  --ink-500: #5E6F7C;
  --ink-400: #8595A1;
  --line:    #E6EDF3;
  --line-2:  #D7E2EC;

  --bg:      #FFFFFF;
  --bg-soft: #F4F8FC;     /* light blue tint */
  --bg-blue: #EEF5FD;

  /* Radii */
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 26px;
  --r-pill: 999px;

  /* Shadows (cool/soft) */
  --sh-xs: 0 1px 2px rgba(16,46,80,.06);
  --sh-sm: 0 2px 10px rgba(16,46,80,.06);
  --sh-md: 0 10px 30px rgba(16,46,80,.08);
  --sh-lg: 0 20px 50px rgba(16,46,80,.12);

  /* Type */
  --font: "Noto Sans HK", "PingFang HK", "Microsoft JhengHei", system-ui, sans-serif;
  --font-en: "Manrope", var(--font);
  --font-serif: "Noto Serif HK", Georgia, serif;

  --maxw: 1200px;
  --nav-h: 70px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink-800);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
h1,h2,h3,h4 { margin: 0; color: var(--ink-900); font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0; }
::selection { background: var(--blue-100); color: var(--blue-800); }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { scrollbar-width: none; }

/* ---------- Layout ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 76px 0; }
.section--soft { background: var(--bg-soft); }
.section--blue { background: var(--bg-blue); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 700; letter-spacing: .04em;
  color: var(--blue-700); text-transform: none;
  background: var(--blue-100); padding: 6px 14px; border-radius: var(--r-pill);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-500); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-title { font-size: clamp(26px, 3.4vw, 38px); margin: 16px 0 12px; }
.section-sub { font-size: 16px; color: var(--ink-500); line-height: 1.7; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 15px; padding: 13px 24px; border-radius: var(--r-pill);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue-700); color: #fff; box-shadow: 0 8px 20px rgba(14,91,166,.25); }
.btn-primary:hover { background: var(--blue-800); box-shadow: 0 10px 26px rgba(14,91,166,.32); }
.btn-gold { background: linear-gradient(120deg, var(--gold-500), var(--gold-600)); color: #fff; box-shadow: 0 8px 20px rgba(182,138,60,.25); }
.btn-ghost { background: #fff; color: var(--blue-700); box-shadow: inset 0 0 0 1.5px var(--blue-200); }
.btn-ghost:hover { background: var(--blue-50); }
.btn-green { background: var(--green-600); color: #fff; box-shadow: 0 8px 20px rgba(30,158,106,.25); }
.btn-green:hover { background: var(--green-700); }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 30px; font-size: 16px; }

.link-arrow { display: inline-flex; align-items: center; gap: 5px; color: var(--blue-700); font-weight: 700; font-size: 15px; }
.link-arrow svg { transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60; height: var(--nav-h);
  background: rgba(255,255,255,.88); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { height: 100%; display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand__mark {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-800));
  display: flex; align-items: center; justify-content: center; box-shadow: var(--sh-sm);
}
.brand__mark--siteicon {
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}
.brand__mark--siteicon img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}
.brand__name { font-weight: 800; font-size: 18px; color: var(--ink-900); letter-spacing: -.01em; line-height: 1.1; }
.brand__name small { display: block; font-size: 10.5px; font-weight: 600; color: var(--ink-400); letter-spacing: .06em; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav a {
  padding: 9px 13px; border-radius: var(--r-sm); font-size: 14.5px; font-weight: 600; color: var(--ink-700);
  transition: background .15s, color .15s;
}
.nav a:hover { background: var(--blue-50); color: var(--blue-700); }
.nav a.active { color: var(--blue-700); }
/* nav dropdown */
.nav-dd { position: relative; }
.nav-dd__t { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.nav-dd__t svg { transition: transform .2s; }
.nav-dd:hover .nav-dd__t svg { transform: rotate(180deg); }
.nav-dd__menu {
  position: absolute; top: 100%; left: 0; min-width: 180px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--sh-md); padding: 8px; opacity: 0; visibility: hidden;
  transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; display: flex; flex-direction: column;
}
.nav-dd:hover .nav-dd__menu { opacity: 1; visibility: visible; transform: none; }
.nav-dd__menu a { padding: 9px 12px; border-radius: var(--r-sm); font-size: 14px; font-weight: 600; color: var(--ink-700); }
.nav-dd__menu a:hover { background: var(--blue-50); color: var(--blue-700); }
.header-cta { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.header-phone { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--ink-800); font-size: 14.5px; }
.header-phone .num { font-family: var(--font-en); }
.header-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  transition: transform .15s, background .2s, box-shadow .2s;
}
.header-contact:hover { transform: translateY(-1px); }
.header-contact svg { width: 17px; height: 17px; flex-shrink: 0; }
.header-contact--wechat { color: #168B35; background: #E9F8EE; }
.header-contact--wechat:hover { background: #DDF3E5; }
.header-contact--whatsapp { color: #fff; background: #25D366; box-shadow: 0 7px 16px rgba(37,211,102,.20); }
.header-contact--whatsapp:hover { background: #1FB85A; }
.menu-btn { display: none; width: 42px; height: 42px; border-radius: 10px; align-items: center; justify-content: center; color: var(--ink-800); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--blue-50), #fff 80%); }
.hero::before {
  content: ""; position: absolute; top: -180px; right: -160px; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(30,123,224,.10), rgba(30,123,224,0) 65%);
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.hero h1 { font-size: clamp(30px, 4.4vw, 50px); line-height: 1.18; letter-spacing: -.02em; }
.hero h1 .hl { color: var(--blue-700); }
.hero .lead { font-size: 17px; color: var(--ink-500); line-height: 1.75; margin: 22px 0 30px; max-width: 540px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 26px; margin-top: 34px; flex-wrap: wrap; }
.hero-trust .it { display: flex; flex-direction: column; }
.hero-trust .it b { font-family: var(--font-en); font-size: 26px; font-weight: 800; color: var(--ink-900); }
.hero-trust .it span { font-size: 13px; color: var(--ink-500); }
.hero-trust .it i { width: 1px; }

/* ---------- GEO answer block ---------- */
.geo-answer { padding-top: 58px; padding-bottom: 58px; background: #fff; }
.geo-answer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 34px;
  align-items: start;
}
.geo-answer__lead { font-size: 16px; color: var(--ink-600); line-height: 1.8; margin-bottom: 14px; }
.geo-answer p:not(.geo-answer__lead) { color: var(--ink-500); line-height: 1.75; }
.geo-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.geo-fact {
  min-height: 118px;
  border: 1px solid var(--line);
  background: var(--blue-50);
  border-radius: var(--r);
  padding: 18px;
}
.geo-fact b {
  display: block;
  color: var(--ink-900);
  font-size: 15px;
  margin-bottom: 8px;
}
.geo-fact span {
  display: block;
  color: var(--ink-500);
  font-size: 13.5px;
  line-height: 1.65;
}

/* hero visual card */
.hero-visual { position: relative; }
.compare-card {
  background: #fff; border-radius: var(--r-xl); box-shadow: var(--sh-lg); padding: 26px; border: 1px solid var(--line);
}
.compare-card h4 { font-size: 16px; display: flex; align-items: center; gap: 8px; }
.compare-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px dashed var(--line-2); }
.compare-row:last-child { border-bottom: none; }
.compare-row .name { font-weight: 600; font-size: 14.5px; color: var(--ink-800); }
.compare-row .hk { font-family: var(--font-en); font-size: 14px; color: var(--ink-400); text-decoration: line-through; text-align: right; min-width: 78px; }
.compare-row .sz { font-family: var(--font-en); font-weight: 800; font-size: 16px; color: var(--blue-700); text-align: right; min-width: 76px; }
.compare-badge { position: absolute; top: -16px; right: 22px; background: var(--green-600); color: #fff; font-size: 13px; font-weight: 800; padding: 8px 16px; border-radius: var(--r-pill); box-shadow: var(--sh-md); }
.float-pill {
  position: absolute; left: -20px; bottom: -26px; background: #fff; border-radius: var(--r); box-shadow: var(--sh-md);
  padding: 12px 16px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); z-index: 3;
}
.float-pill .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--green-100); color: var(--green-600); display: flex; align-items: center; justify-content: center; }
.float-pill b { font-size: 13.5px; color: var(--ink-900); }
.float-pill span { font-size: 11.5px; color: var(--ink-500); display: block; }

/* ---------- Price table ---------- */
.ptable-wrap { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-sm); background: #fff; }
.ptable { width: 100%; border-collapse: collapse; }
.ptable thead th {
  background: var(--blue-700); color: #fff; font-weight: 700; font-size: 14px; padding: 16px 18px; text-align: left; white-space: nowrap;
}
.ptable thead th.num { text-align: right; }
.ptable tbody td { padding: 16px 18px; border-bottom: 1px solid var(--line); font-size: 14.5px; vertical-align: middle; }
.ptable tbody tr:last-child td { border-bottom: none; }
.ptable tbody tr:nth-child(even) { background: var(--blue-50); }
.ptable .proj { font-weight: 700; color: var(--ink-900); }
.ptable .proj small { display: block; font-weight: 500; color: var(--ink-400); font-size: 12px; margin-top: 2px; }
.ptable .hkp { font-family: var(--font-en); color: var(--ink-500); text-align: right; white-space: nowrap; }
.ptable .szp { font-family: var(--font-en); font-weight: 800; color: var(--blue-700); text-align: right; white-space: nowrap; }
.ptable .fit { color: var(--ink-500); font-size: 13.5px; }
.ptable .act { text-align: right; white-space: nowrap; }
.price-note { margin-top: 16px; font-size: 13px; color: var(--ink-400); line-height: 1.7; display: flex; gap: 8px; }
.price-note svg { flex-shrink: 0; margin-top: 2px; }

/* save chip */
.chip-save { display: inline-block; background: var(--green-100); color: var(--green-700); font-weight: 800; font-size: 12px; padding: 3px 9px; border-radius: var(--r-pill); font-family: var(--font-en); }

/* ---------- Project cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.pcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex; flex-direction: column;
}
.pcard:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--blue-200); }
.pcard__ic { width: 54px; height: 54px; border-radius: 15px; background: var(--blue-100); color: var(--blue-700); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.pcard h3 { font-size: 18.5px; margin-bottom: 8px; }
.pcard .fit { font-size: 13px; color: var(--gold-600); font-weight: 700; margin-bottom: 10px; }
.pcard p { font-size: 14px; color: var(--ink-500); line-height: 1.7; margin-bottom: 16px; }
.pcard .pcard__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.pcard .pcard__price { font-size: 12.5px; color: var(--ink-500); white-space: nowrap; }
.pcard .pcard__price b { font-family: var(--font-en); font-size: 16px; color: var(--blue-700); font-weight: 800; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: s; position: relative; }
.step { text-align: center; padding: 0 14px; position: relative; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 28px; left: 60%; right: -40%; height: 2px; background: var(--line-2); }
.step__num { width: 56px; height: 56px; border-radius: 50%; background: #fff; border: 2px solid var(--blue-200); color: var(--blue-700); font-family: var(--font-en); font-weight: 800; font-size: 20px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; position: relative; z-index: 2; box-shadow: var(--sh-xs); }
.step h4 { font-size: 16px; margin-bottom: 6px; }
.step p { font-size: 13.5px; color: var(--ink-500); }

/* ---------- Why us ---------- */
.feat { display: flex; gap: 15px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.feat__ic { width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.feat h4 { font-size: 16.5px; margin-bottom: 5px; }
.feat p { font-size: 13.5px; color: var(--ink-500); line-height: 1.65; }

/* ---------- Articles ---------- */
.acard { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.acard:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.acard__cover { height: 168px; position: relative; }
.acard__tag { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.94); color: var(--blue-700); font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: var(--r-pill); }
.acard__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.acard h3 { font-size: 17px; line-height: 1.4; margin-bottom: 8px; }
.acard p { font-size: 13.5px; color: var(--ink-500); line-height: 1.65; margin-bottom: 14px; }
.acard__meta { margin-top: auto; display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--ink-400); }

/* placeholder imagery (clean, professional, no photos) */
.ph {
  background: linear-gradient(135deg, var(--blue-50), var(--blue-100));
  position: relative; overflow: hidden;
}
.ph::after {
  content: attr(data-label); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-en); font-size: 11px; letter-spacing: .08em; color: rgba(14,91,166,.45); text-transform: uppercase;
}
.ph--ico { display: flex; align-items: center; justify-content: center; }
.ph--ico svg { width: 52px; height: 52px; color: rgba(14,91,166,.32); position: relative; z-index: 1; }
.ph--ico::after { content: none; }

/* ---------- Inline consult block (in articles) ---------- */
.consult-inline {
  background: linear-gradient(120deg, var(--blue-700), var(--blue-900)); color: #fff; border-radius: var(--r-lg); padding: 26px 28px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin: 30px 0;
}
.consult-inline h4 { color: #fff; font-size: 19px; margin-bottom: 6px; }
.consult-inline p { color: rgba(255,255,255,.82); font-size: 14px; }
.consult-inline .btn { margin-left: auto; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--blue-800), var(--blue-900)); color: #fff; border-radius: var(--r-xl); padding: 54px; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(203,167,92,.22), transparent 70%); }
.cta-band h2 { color: #fff; font-size: clamp(24px, 3vw, 34px); position: relative; }
.cta-band p { color: rgba(255,255,255,.85); font-size: 16px; margin: 14px 0 28px; max-width: 640px; position: relative; line-height: 1.7; }
.cta-band .btns { display: flex; gap: 14px; flex-wrap: wrap; position: relative; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-900); color: #B9C6D2; padding: 56px 0 28px; }
.site-footer a { color: #B9C6D2; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-grid h5 { color: #fff; font-size: 14.5px; margin-bottom: 16px; font-weight: 700; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-brand p { font-size: 13.5px; line-height: 1.7; margin-top: 14px; color: #93A3B2; }
.footer-contact .row { display: flex; align-items: center; gap: 10px; font-size: 14px; margin-bottom: 12px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 22px; font-size: 12.5px; color: #7B8B9A; }
.footer-disclaimer { font-size: 12px; color: #6E7E8D; line-height: 1.7; margin-top: 16px; }
/* constrain inline svg icons that ship without width attrs */
.header-phone svg { width: 18px; height: 18px; flex-shrink: 0; }
.footer-contact .row svg { width: 18px; height: 18px; flex-shrink: 0; }
.consult-fab__btn svg { width: 18px; height: 18px; }
.consult-opt .ic svg, .modal-opt .ic svg { width: 22px; height: 22px; }
.mbar .ic svg { width: 22px; height: 22px; }
.feat__ic svg, .pcard__ic svg { width: 24px; height: 24px; }
.pcard__ic svg { width: 26px; height: 26px; }
.float-pill .ic svg { width: 20px; height: 20px; }

/* ============================================================
   Persistent consult — desktop floating + panel
   ============================================================ */
.consult-fab {
  position: fixed; right: 26px; bottom: 26px; z-index: 80;
  display: flex; flex-direction: column-reverse; align-items: flex-end; gap: 12px;
}
.consult-fab__btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 14px 22px; border-radius: var(--r-pill);
  background: var(--blue-700); color: #fff; font-weight: 800; font-size: 15px; box-shadow: 0 12px 30px rgba(14,91,166,.35);
  transition: transform .15s, box-shadow .2s;
}
.consult-fab__btn:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(14,91,166,.42); }
.consult-fab__btn .pulse { width: 9px; height: 9px; border-radius: 50%; background: #6FE3A6; box-shadow: 0 0 0 0 rgba(111,227,166,.7); animation: cpulse 2s infinite; }
@keyframes cpulse { 70% { box-shadow: 0 0 0 9px rgba(111,227,166,0); } 100% { box-shadow: 0 0 0 0 rgba(111,227,166,0); } }
.consult-options {
  display: flex; flex-direction: column; gap: 10px; opacity: 0; transform: translateY(10px) scale(.96); pointer-events: none;
  transition: opacity .2s, transform .2s; transform-origin: bottom right;
}
.consult-fab.open .consult-options { opacity: 1; transform: none; pointer-events: auto; }
.consult-opt {
  display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 11px 18px 11px 12px; box-shadow: var(--sh-md); min-width: 188px; transition: transform .15s, border-color .2s;
}
.consult-opt:hover { transform: translateX(-3px); border-color: var(--blue-200); }
.consult-opt .ic { width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #fff; }
.consult-opt > span:not(.ic), .modal-opt > span:not(.ic):not(.go) { text-align: left; min-width: 0; }
.consult-opt b { font-size: 14.5px; color: var(--ink-900); display: block; line-height: 1.2; }
.consult-opt span { font-size: 11.5px; color: var(--ink-400); }
.ic--wa { background: #25D366; }
.ic--wx { background: #1AAD19; }
.ic--tel { background: var(--blue-600); }
.ic--form { background: var(--gold-500); }

/* mobile bottom bar */
.mbar { display: none; }

/* ---------- Modal ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(20,34,47,.55); backdrop-filter: blur(4px); z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.open { display: flex; animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; } }
.modal { background: #fff; border-radius: var(--r-xl); max-width: 460px; width: 100%; box-shadow: var(--sh-lg); overflow: hidden; animation: pop .28s cubic-bezier(.2,.9,.3,1); max-height: 92vh; overflow-y: auto; }
@keyframes pop { from { transform: translateY(20px) scale(.98); opacity: .6; } }
.modal__head { padding: 24px 24px 0; position: relative; }
.modal__head h3 { font-size: 21px; }
.modal__head p { font-size: 13.5px; color: var(--ink-500); margin-top: 6px; }
.modal__close { position: absolute; top: 18px; right: 18px; width: 34px; height: 34px; border-radius: 50%; background: var(--bg-soft); color: var(--ink-500); display: flex; align-items: center; justify-content: center; }
.modal__body { padding: 22px 24px 26px; }
.modal-opts { display: flex; flex-direction: column; gap: 12px; }
.modal-opt { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line); transition: border-color .2s, background .2s; }
.modal-opt:hover { border-color: var(--blue-200); background: var(--blue-50); }
.modal-opt .ic { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.modal-opt b { font-size: 15.5px; color: var(--ink-900); display: block; }
.modal-opt span { font-size: 12.5px; color: var(--ink-400); }
.modal-opt .go { margin-left: auto; color: var(--ink-400); }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: 32px; box-shadow: var(--sh-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 700; color: var(--ink-800); }
.field label .req { color: #E0584C; }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 15px; color: var(--ink-900); background: var(--bg-soft);
  border: 1.5px solid transparent; border-radius: var(--r); padding: 13px 15px; width: 100%; transition: border-color .15s, background .15s; outline: none;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue-500); background: #fff; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-400); }
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  padding: 9px 15px; border-radius: var(--r-pill); font-size: 13.5px; font-weight: 600; color: var(--ink-700);
  background: var(--bg-soft); border: 1.5px solid transparent; transition: all .15s;
}
.chip.on { background: var(--blue-700); color: #fff; border-color: var(--blue-700); }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; background: var(--bg-soft); border-radius: var(--r); }
.toggle-row span { font-size: 14px; font-weight: 600; color: var(--ink-800); }
.switch { width: 46px; height: 27px; border-radius: var(--r-pill); background: var(--line-2); position: relative; transition: background .2s; flex-shrink: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; border-radius: 50%; background: #fff; box-shadow: var(--sh-xs); transition: transform .2s; }
.switch.on { background: var(--blue-600); }
.switch.on::after { transform: translateX(19px); }
.upload {
  border: 1.6px dashed var(--line-2); border-radius: var(--r); padding: 22px; text-align: center; color: var(--ink-500); background: var(--bg-soft);
  transition: border-color .15s, background .15s; cursor: pointer;
}
.upload:hover { border-color: var(--blue-500); background: var(--blue-50); }
.upload svg { color: var(--blue-600); margin-bottom: 8px; }
.upload b { color: var(--ink-800); font-size: 14px; }
.upload span { font-size: 12.5px; display: block; margin-top: 3px; }

/* form success */
.form-success { text-align: center; padding: 20px 10px; }
.form-success .tick { width: 70px; height: 70px; border-radius: 50%; background: var(--green-100); color: var(--green-600); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; animation: pop .4s ease; }

/* ---------- Article body ---------- */
.article-body { font-size: 16.5px; line-height: 1.9; color: var(--ink-700); }
.article-body > * { margin-bottom: 22px; }
.article-body h2 { font-size: 24px; margin-top: 12px; padding-left: 14px; border-left: 4px solid var(--blue-700); }
.article-body h3 { font-size: 19px; color: var(--ink-900); }
.article-body ul, .article-body ol { padding-left: 22px; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--ink-900); }
.faq-item { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.faq-q { padding: 16px 18px; font-weight: 700; color: var(--ink-900); display: flex; justify-content: space-between; align-items: center; gap: 12px; cursor: pointer; font-size: 15.5px; }
.faq-q .pm { color: var(--blue-600); flex-shrink: 0; transition: transform .2s; }
.faq-item.open .faq-q .pm { transform: rotate(45deg); }
.faq-a { padding: 0 18px; max-height: 0; overflow: hidden; transition: max-height .25s, padding .25s; font-size: 14.5px; color: var(--ink-600); }
.faq-item.open .faq-a { max-height: 320px; padding: 0 18px 18px; }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Pagination ---------- */
.pager { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 38px; flex-wrap: wrap; }
.pager button {
  min-width: 44px; height: 44px; padding: 0 14px; border-radius: 12px; background: #fff;
  border: 1.5px solid var(--line-2); color: var(--ink-700); font-weight: 700; font-family: var(--font-en); font-size: 15px;
  transition: border-color .15s, color .15s, background .15s;
}
.pager button:hover:not(:disabled):not(.on) { border-color: var(--blue-200); color: var(--blue-700); background: var(--blue-50); }
.pager button.on { background: var(--blue-700); color: #fff; border-color: var(--blue-700); }
.pager button:disabled { opacity: .4; cursor: not-allowed; }
.pager .dots { min-width: 22px; color: var(--muted); text-align: center; font-weight: 700; }

/* ---------- Reviews marquee (客戶反饋截圖) ---------- */
.reviews-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.reviews-track { display: flex; gap: 20px; width: max-content; padding: 6px 20px; animation: marquee-x 70s linear infinite; }
.reviews-marquee:hover .reviews-track { animation-play-state: paused; }
@keyframes marquee-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.review-card { width: 236px; flex-shrink: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px; box-shadow: var(--sh-sm); }
.review-card image-slot { width: 100%; height: 380px; display: block; border-radius: 12px; background: var(--bg-soft); }
/* WordPress 主題用：以 <img> 取代拖放位（客戶上傳真實截圖） */
.review-card .rc-slot { width: 100%; height: 380px; border-radius: 12px; overflow: hidden; position: relative; background: #fff; }
.review-card .rc-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; background: #fff; }
.review-card .rc-foot { display: flex; align-items: center; gap: 9px; padding: 11px 6px 4px; }
.review-card .rc-av { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; background: linear-gradient(135deg, var(--blue-500), var(--blue-700)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.review-card .rc-name { font-size: 13px; font-weight: 700; color: var(--ink-900); line-height: 1.2; }
.review-card .rc-stars { color: var(--gold-500); font-size: 12px; letter-spacing: 1px; }
@media (max-width: 680px) {
  .review-card { width: 200px; }
  .review-card image-slot { height: 330px; }
  .review-card .rc-slot { height: 330px; }
  .reviews-track { animation-duration: 50s; }
}
.tag { font-size: 12.5px; color: var(--blue-700); background: var(--blue-50); padding: 5px 12px; border-radius: var(--r-pill); font-weight: 600; }

.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-400); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--blue-700); }

/* ---------- Mobile menu drawer ---------- */
.drawer-overlay { position: fixed; inset: 0; background: rgba(20,34,47,.5); z-index: 90; display: none; }
.drawer-overlay.open { display: block; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 82%; max-width: 340px; background: #fff; z-index: 95; transform: translateX(100%); transition: transform .25s ease; display: flex; flex-direction: column; padding: 20px; overflow-y: auto; }
.drawer.open { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.drawer nav { display: flex; flex-direction: column; }
.drawer nav a { padding: 14px 8px; font-size: 16px; font-weight: 600; color: var(--ink-800); border-bottom: 1px solid var(--line); }
.drawer nav a.active { color: var(--blue-700); }
.drawer__cta { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; gap: 40px; padding-top: 44px; }
  .hero-visual { max-width: 480px; }
  .geo-answer__grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 28px 14px; }
  .step::after { display: none; }
  .nav, .header-phone, .header-contact { display: none; }
  .menu-btn { display: flex; }
}
@media (max-width: 680px) {
  .section { padding: 52px 0; }
  .container { padding: 0 18px; }
  .grid-4, .grid-3, .grid-2, .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 34px 24px; }
  .consult-inline { flex-direction: column; align-items: flex-start; }
  .consult-inline .btn { margin-left: 0; }
  .form-card { padding: 22px; }
  .steps { grid-template-columns: 1fr; }
  .geo-answer { padding-top: 42px; padding-bottom: 42px; }
  .geo-facts { grid-template-columns: 1fr; }
  .geo-fact { min-height: 0; }

  /* price table: keep the core comparison visible without horizontal scrolling */
  .ptable-wrap { overflow: hidden; border-radius: 0; margin-left: -18px; margin-right: -18px; border-left: 0; border-right: 0; }
  .ptable { width: 100%; min-width: 0; table-layout: fixed; }
  .ptable th:nth-child(4),
  .ptable th:nth-child(5),
  .ptable td:nth-child(4),
  .ptable td:nth-child(5) { display: none; }
  .ptable th:nth-child(1), .ptable td:nth-child(1) { width: 30%; }
  .ptable th:nth-child(2), .ptable td:nth-child(2) { width: 36%; }
  .ptable th:nth-child(3), .ptable td:nth-child(3) { width: 34%; }
  .ptable thead th { padding: 12px 8px; font-size: 12px; }
  .ptable tbody td { padding: 14px 8px; font-size: 13px; }
  .ptable .proj { line-height: 1.35; }
  .ptable .proj small { font-size: 11px; line-height: 1.55; word-break: keep-all; }
  .ptable .hkp, .ptable .szp { font-size: 12.5px; letter-spacing: 0; line-height: 1.35; white-space: normal; }
  .ptable .szp { font-size: 13.5px; }

  /* hide desktop FAB, show mobile bar */
  .consult-fab { display: none; }
  .mbar {
    display: grid; grid-template-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 20px rgba(16,46,80,.08);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mbar button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 4px; color: var(--ink-700); font-size: 11.5px; font-weight: 600; }
  .mbar button .ic { color: var(--blue-700); }
  .mbar button.primary { background: var(--blue-700); color: #fff; }
  .mbar button.primary .ic { color: #fff; }
  body { padding-bottom: 62px; }
  .site-footer { padding-bottom: 78px; }
}
@media (max-width: 420px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-trust { gap: 18px; }
}
/* /articles/: no category filters, keep 9-per-page pagination. */
body.page-id-115 #cat-chips,
body.page-id-115 .chips,
body.page-id-115 .acard__tag,
body.page-id-115 .acard__cover {
  display: none !important;
}
/* Hide image placeholders on article cards sitewide. */
.acard__cover {
  display: none !important;
}
.acard__tag {
  display: none !important;
}
@media (max-width: 1120px) {
  .header-contact span { display: none; }
  .header-contact { width: 36px; padding: 8px; }
}

