/* ==========================================================================
   康薈微創醫療中心 — 首頁
   物料取自診所本身：米白牆身、淺色木紋、銅色招牌字，以及招牌下方的粉紅燈帶。
   ========================================================================== */

:root {
  /* 色彩 */
  --paper: #FFF9F3;
  --surface: #FFFDFA;
  --antique: #FFE9D2;      /* 客戶指定：antique white */
  --petal: #FEEBF1;        /* 客戶指定：淺粉紅 */
  --blush: #FFE2E6;        /* 客戶指定：粉紅 */
  --ink: #2B1B22;
  --ink-2: #5E4B53;
  --magenta: #C2136F;      /* 由標誌的洋紅調深，白字對比 5.8:1 */
  --magenta-deep: #9E0E59;
  --logo: #FF00B4;
  --bronze: #7A5C33;       /* 招牌字的銅色 */
  --rule: rgba(122, 92, 51, .26);
  --light: linear-gradient(90deg, rgba(255, 0, 180, 0) 0%, #FFA6D2 14%, #FF2FA6 50%, #FFA6D2 86%, rgba(255, 0, 180, 0) 100%);

  /* 字體 */
  --font-display: "Chiron Sung HK", "Noto Serif HK", "Songti TC", "PMingLiU", serif;
  --font-text: "Chiron Hei HK", "Noto Sans HK", "PingFang HK", "Microsoft JhengHei", sans-serif;

  /* 版面 */
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --band: clamp(72px, 10vw, 128px);
  --radius: 4px;
  --header-h: 76px;
}

/* ── 基礎 ─────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .01em;
}
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); line-height: 1.3; }
h3 { font-size: 1.375rem; line-height: 1.4; }

:focus-visible {
  outline: 3px solid var(--magenta);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: .6rem 1rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* ── 連結與按鈕 ───────────────────────────────────────────────────────── */

.link {
  text-decoration: underline;
  text-decoration-color: var(--magenta);
  text-decoration-thickness: 1.5px;
  text-underline-offset: .32em;
  transition: color .15s;
}
.link:hover { color: var(--magenta); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 52px;
  padding: 0 1.5rem;
  border: 1.5px solid transparent;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn svg { width: 1.3em; height: 1.3em; flex: none; }
.btn-primary { background: var(--magenta); color: #fff; }
.btn-primary:hover { background: var(--magenta-deep); }
.btn-outline { border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-compact { min-height: 44px; padding: 0 1.1rem; font-size: .9375rem; }

/* ── 頁首 ─────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 249, 243, .92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-stuck { border-bottom-color: var(--rule); }

.header-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-right: auto;
  text-decoration: none;
}
.brand img { width: 38px; height: 38px; }
.brand-zh {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.25;
}
.brand-en {
  display: block;
  font-size: .75rem;
  line-height: 1.4;
  color: var(--bronze);
}

.nav { display: flex; gap: 1.5rem; }
.nav a {
  position: relative;
  padding: .5rem 0;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s;
}
.nav a:hover { color: var(--magenta); }
.nav a[aria-current="true"] { color: var(--magenta); }

.header-actions { display: flex; align-items: center; gap: 1.25rem; }
.header-tel {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  white-space: nowrap;
}
.header-tel svg { width: 1.1em; height: 1.1em; color: var(--magenta); }
.header-tel:hover { color: var(--magenta); }

.menu-btn {
  display: none;
  align-items: center;
  gap: .6rem;
  min-height: 44px;
  padding: 0 .9rem;
  background: none;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  font-size: .9375rem;
  font-weight: 700;
  cursor: pointer;
}
.menu-btn-bars,
.menu-btn-bars::before {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: transform .2s;
}
.menu-btn-bars { position: relative; transform: translateY(-3px); }
.menu-btn-bars::before { content: ""; position: absolute; top: 6px; }
.menu-btn[aria-expanded="true"] .menu-btn-bars { transform: translateY(0) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn-bars::before { transform: translateY(-6px) rotate(-90deg); }

@media (max-width: 1220px) {
  .header-tel { display: none; }
}

@media (max-width: 1060px) {
  :root { --header-h: 64px; }
  .header-row { gap: 1rem; }
  .menu-btn { display: inline-flex; }
  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: .25rem var(--gutter) 1.25rem;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
  }
  .nav.is-open { display: flex; }
  .nav a {
    padding: .95rem 0;
    border-bottom: 1px solid var(--rule);
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
  }
  .nav a:last-child { border-bottom: 0; }
}

@media (max-width: 600px) {
  .header-actions .btn { display: none; }
  .brand-zh { font-size: 1.0625rem; letter-spacing: .05em; }
  .brand-en { font-size: .6875rem; }
  .brand img { width: 34px; height: 34px; }
}

/* ── 首屏 ─────────────────────────────────────────────────────────────── */

.hero { padding-top: clamp(32px, 4.5vw, 64px); }

.hero-head { display: grid; gap: 1.5rem 2rem; }

.hero h1 {
  font-size: clamp(1.625rem, 8.4vw, 2.75rem);
  line-height: 1.28;
  letter-spacing: .02em;
}
.lede { color: var(--ink-2); max-width: 31em; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.actions .btn { flex: 1 1 190px; }

@media (min-width: 900px) {
  .hero-head { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; }
  .hero h1 { grid-column: 1 / span 8; font-size: clamp(2.75rem, 4.7vw, 4rem); }
  .hero-side { grid-column: 9 / -1; padding-bottom: .5rem; }
}

.counter { margin-top: clamp(28px, 3.6vw, 52px); }

.counter-photo {
  position: relative;
  width: min(100% - 2 * var(--gutter), 1440px);
  margin-inline: auto;
}
.counter-photo img {
  width: 100%;
  aspect-ratio: 2000 / 710;
  max-height: 44vh;
  object-fit: cover;
  object-position: 50% 42%;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--antique);
}

/* 招牌下方那條粉紅燈帶：全頁只用在這裏和服務選單 */
.lightline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 3px;
  background: var(--light);
  box-shadow: 0 0 22px 3px rgba(255, 0, 180, .32);
  transform-origin: left center;
}

.facts {
  display: grid;
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}
.fact { padding: 1.5rem 0; border-bottom: 1px solid var(--rule); }
.fact dt { font-size: .9375rem; color: var(--bronze); }
.fact dd strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
.fact dd > span {
  display: block;
  margin-top: .2rem;
  font-size: .9375rem;
  line-height: 1.7;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.fact .link { color: var(--ink); white-space: nowrap; }
.fact .link:hover { color: var(--magenta); }

.status-dot {
  display: inline-block;
  width: .55em;
  height: .55em;
  margin-right: .5em;
  border-radius: 50%;
  background: #B9A7AE;
  vertical-align: .08em;
}
.status-dot.is-open { background: #1F9D6B; box-shadow: 0 0 0 4px rgba(31, 157, 107, .18); }

@media (min-width: 800px) {
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fact { padding: 2rem 2rem 2.25rem 0; border-bottom: 0; }
  .fact + .fact { padding-left: 2rem; border-left: 1px solid var(--rule); }
}

@media (max-width: 700px) {
  .counter-photo img { aspect-ratio: 1100 / 685; max-height: none; object-position: center; }
}

/* 首屏載入：燈帶亮起，全頁唯一的自動動態。資料列不設淡入，確保內容任何情況下都看得到。 */
@media (prefers-reduced-motion: no-preference) {
  .js .lightline { animation: light-on 1.2s cubic-bezier(.2, .7, .2, 1) .25s backwards; }
}
@keyframes light-on {
  from { transform: scaleX(0); opacity: 0; }
  to { transform: scaleX(1); opacity: 1; }
}

/* ── 區塊 ─────────────────────────────────────────────────────────────── */

.band { padding-block: var(--band); }
.band-antique { background: var(--antique); }
.band-petal { background: var(--petal); }

.section-head {
  display: grid;
  gap: .75rem 2rem;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.section-head p { color: var(--ink-2); max-width: 30em; }

@media (min-width: 900px) {
  .section-head { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; }
  .section-head h2 { grid-column: 1 / span 7; }
  .section-head p { grid-column: 9 / -1; }
}

/* ── 醫療服務 ─────────────────────────────────────────────────────────── */

.finder { display: grid; gap: 1.75rem; }

.finder-tabs { display: flex; flex-direction: column; }

.finder-tab {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  background: none;
  border: 0;
  border-top: 1px solid var(--rule);
  text-align: left;
  color: var(--ink-2);
  cursor: pointer;
  transition: color .15s;
}
.finder-tab:last-child { border-bottom: 1px solid var(--rule); }
.finder-tab b {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.35;
}
.finder-tab small { font-size: .8125rem; color: var(--bronze); white-space: nowrap; }
.finder-tab:hover,
.finder-tab[aria-selected="true"] { color: var(--ink); }
.finder-tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -2px;
  height: 3px;
  background: var(--light);
  box-shadow: 0 0 14px 2px rgba(255, 0, 180, .28);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .4s cubic-bezier(.2, .7, .2, 1);
}
.finder-tab[aria-selected="true"]::after { transform: scaleX(1); }

.panel {
  padding: clamp(24px, 4vw, 48px);
  background: var(--surface);
  border-radius: var(--radius);
}
.js .panel[hidden] { display: none; }
.panel + .panel { margin-top: 1rem; }
.js .panel + .panel { margin-top: 0; }
.panel h3 { font-size: clamp(1.5rem, 2.4vw, 1.875rem); }
.panel-intro { margin-top: .5rem; color: var(--ink-2); max-width: 34em; }

.groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.75rem 2.5rem;
  margin-top: 2rem;
}
.group h4 {
  margin-bottom: .7rem;
  padding-bottom: .55rem;
  border-bottom: 1px solid var(--rule);
  font-size: .9375rem;
  font-weight: 700;
  color: var(--bronze);
}
.group li { padding: .22rem 0; line-height: 1.6; }

.panel-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
}
.panel-label { display: block; margin-bottom: .5rem; font-size: .9375rem; color: var(--bronze); }
.panel-note { color: var(--ink-2); }
.panel-doctors { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; }
.panel-doctors .panel-label { flex-basis: 100%; margin-bottom: 0; }

.doctor-chip {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-weight: 700;
  text-decoration: none;
}
.doctor-chip img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.doctor-chip:hover { color: var(--magenta); }

.panel-actions { display: grid; gap: .85rem; justify-items: start; }
.panel-more { font-size: .9375rem; color: var(--ink-2); }
.panel-more .link { display: inline-block; margin-right: 1em; color: var(--ink); white-space: nowrap; }
.panel-more .link:hover { color: var(--magenta); }

@media (prefers-reduced-motion: no-preference) {
  .js .panel:not([hidden]) { animation: panel-in .28s ease-out both; }
}
@keyframes panel-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@media (min-width: 900px) {
  .finder { grid-template-columns: 300px minmax(0, 1fr); gap: 3.5rem; align-items: start; }
  .finder-tabs { position: sticky; top: calc(var(--header-h) + 24px); }
}

@media (max-width: 899px) {
  .finder-tabs {
    flex-direction: row;
    gap: 1.6rem;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 1px solid var(--rule);
  }
  .finder-tabs::-webkit-scrollbar { display: none; }
  .finder-tab,
  .finder-tab:last-child { flex: none; padding: .7rem 0 .95rem; border: 0; }
  .finder-tab b { font-size: 1.1875rem; }
  .finder-tab small { display: none; }
  .finder-tab::after { top: auto; bottom: -1px; }
  .panel-actions { width: 100%; }
  .panel-actions .btn { width: 100%; white-space: normal; text-align: center; }
}

/* ── 專科醫生 ─────────────────────────────────────────────────────────── */

.doctors { display: grid; gap: 2.5rem 2rem; }

.doctor { scroll-margin-top: calc(var(--header-h) + 24px); }
.doctor img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--antique);
}
.doctor-spec { margin-top: 1.25rem; font-size: .9375rem; color: var(--bronze); }
.doctor h3 { margin-top: .1rem; font-size: 1.625rem; letter-spacing: .04em; }
.doctor-en { font-size: .9375rem; color: var(--ink-2); }

.doctor-scope {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem .5rem;
  margin: 1rem 0 1.1rem;
  font-size: .9375rem;
}
.doctor-scope span { margin-right: .25rem; color: var(--ink-2); }
.doctor-scope a {
  padding: .1rem .7rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color .15s, color .15s;
}
.doctor-scope a:hover { border-color: var(--magenta); color: var(--magenta); }

@media (min-width: 760px) {
  .doctors { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 759px) {
  .doctor {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 1.1rem;
    align-items: start;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--rule);
  }
  .doctor:last-child { padding-bottom: 0; border-bottom: 0; }
  .doctor-spec { margin-top: 0; }
  .doctor h3 { font-size: 1.4375rem; }
}

/* ── 診所環境 ─────────────────────────────────────────────────────────── */

.centre-grid { display: grid; gap: 2.5rem; }
.centre-text p { margin-top: 1.25rem; color: var(--ink-2); }

.facilities { margin-top: 2rem; border-top: 1px solid var(--rule); }
.facilities > div { padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.facilities dt { font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; }
.facilities dd { font-size: .9375rem; color: var(--ink-2); }

.mosaic {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: .75rem;
  align-content: start;
}
.mosaic figure { display: flex; flex-direction: column; min-width: 0; }
.mosaic img {
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--blush);
}
.mosaic-wide { grid-column: 1 / -1; }
.mosaic-wide img { aspect-ratio: 1600 / 550; }
.mosaic-tall img { aspect-ratio: 3 / 4; }
.mosaic-room img { flex: 1; min-height: 0; aspect-ratio: 3 / 2; }
.mosaic figcaption { margin-top: .4rem; font-size: .8125rem; color: var(--ink-2); }

@media (min-width: 900px) {
  .centre-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2rem; align-items: start; }
  .centre-text { grid-column: 1 / span 4; position: sticky; top: calc(var(--header-h) + 32px); }
  .mosaic { grid-column: 6 / -1; }
}

@media (max-width: 560px) {
  .mosaic { grid-template-columns: 1fr 1fr; }
  .mosaic-room { grid-column: 1 / -1; }
  .mosaic-wide img { aspect-ratio: 2 / 1; }
}

/* ── 健康資訊 ─────────────────────────────────────────────────────────── */

.health-grid { display: grid; gap: 2.5rem; }
.health-text p { margin-top: 1rem; color: var(--ink-2); max-width: 28em; }
.health-text .media-note {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-size: .9375rem;
}

.health-list { border-top: 1px solid var(--rule); }
.health-item {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: .25rem 1.5rem;
  align-items: baseline;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
}
.health-topic { font-size: .9375rem; color: var(--bronze); }
.health-title {
  font-family: var(--font-display);
  font-size: clamp(1.1875rem, 2vw, 1.4375rem);
  font-weight: 600;
  line-height: 1.5;
  transition: color .15s;
}
.health-item:hover .health-title { color: var(--magenta); }
.health-more { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; margin-top: 1.5rem; }

@media (min-width: 900px) {
  .health-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2rem; }
  .health-text { grid-column: 1 / span 4; }
  .health-main { grid-column: 6 / -1; }
}

@media (max-width: 520px) {
  .health-item { grid-template-columns: 1fr; }
}

/* ── 預約及到診 ───────────────────────────────────────────────────────── */

.visit-grid { display: grid; gap: 3rem; }

.steps { counter-reset: step; border-bottom: 1px solid var(--rule); }
.step {
  position: relative;
  padding: 1.35rem 0 1.35rem 3.75rem;
  border-top: 1px solid var(--rule);
  counter-increment: step;
}
.step::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1.1rem;
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
  color: var(--magenta);
}
.step h3 { font-size: 1.25rem; }
.step p { color: var(--ink-2); }

.contact { display: grid; gap: .75rem; margin-top: 2rem; }
.contact-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .9rem;
  min-height: 64px;
  padding: .5rem 1.25rem;
  background: var(--surface);
  border-radius: 6px;
  text-decoration: none;
  transition: background-color .15s, color .15s;
}
.contact-row svg { width: 1.4rem; height: 1.4rem; color: var(--magenta); }
.contact-row span { font-weight: 500; }
.contact-row strong {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: .03em;
}
.contact-row:hover { background: var(--ink); color: var(--paper); }
.contact-row:hover svg { color: #FF8CC6; }

.visit-info {
  display: grid;
  gap: 2.5rem;
  padding: clamp(24px, 4vw, 48px);
  background: var(--surface);
  border-radius: var(--radius);
}
.info-block { scroll-margin-top: calc(var(--header-h) + 24px); }
.info-block h3 { margin-bottom: .9rem; }

.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th,
.hours td {
  padding: .8rem 0;
  border-top: 1px solid var(--rule);
  font-weight: 400;
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
}
.hours tr:last-child th,
.hours tr:last-child td { border-bottom: 1px solid var(--rule); }
.hours td { text-align: right; }
.hours tr.is-today th,
.hours tr.is-today td { font-weight: 700; }
.today-tag {
  display: inline-block;
  margin-left: .6rem;
  padding: 0 .5rem;
  background: var(--magenta);
  border-radius: 3px;
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.7;
  vertical-align: .1em;
}

.visit-info address { line-height: 1.7; }
.visit-info address span { display: block; font-size: .9375rem; color: var(--ink-2); }

.route { margin-top: 1.5rem; }
.route svg {
  width: 100%;
  height: auto;
  background: var(--paper);
  border-radius: var(--radius);
  font-family: var(--font-text);
}
.route figcaption { margin-top: .4rem; font-size: .8125rem; color: var(--ink-2); }
.route-narrow { display: none; }
@media (max-width: 620px) {
  .route-narrow { display: block; }
  .route-wide { display: none; }
  .route-narrow .route-clinic text { font-size: 14px; }
  .route-narrow .route-clinic text.route-clinic-sub { font-size: 12.5px; }
}
.route-streets path { fill: none; stroke: #EBD9C5; stroke-width: 20; stroke-linecap: round; stroke-linejoin: round; }
.route-walk { fill: none; stroke: var(--magenta); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 8; }
.route-names text { font-size: 13px; font-weight: 500; fill: var(--ink-2); }
.route-places text { font-size: 12px; fill: var(--bronze); }
.route-exit rect { fill: var(--ink); }
.route-exit text { font-size: 13px; font-weight: 700; fill: #fff; }
.route-clinic circle:first-child { fill: rgba(255, 0, 180, .16); }
.route-clinic circle:nth-child(2) { fill: var(--magenta); }
.route-clinic text { font-size: 15px; font-weight: 700; fill: var(--ink); }
.route-clinic text.route-clinic-sub { font-size: 12.5px; font-weight: 400; fill: var(--ink-2); }

.route-list { margin: 1.25rem 0 1.5rem; }
.route-list li { padding: .3rem 0; font-size: .9375rem; line-height: 1.7; color: var(--ink-2); }
.route-list b { color: var(--ink); }

@media (min-width: 900px) {
  .visit-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; align-items: start; }
  .visit-book { position: sticky; top: calc(var(--header-h) + 32px); }
}

/* ── 頁尾 ─────────────────────────────────────────────────────────────── */

.site-footer {
  padding-block: clamp(56px, 8vw, 96px) 2rem;
  background: var(--ink);
  color: #F3E4D8;
  font-size: .9375rem;
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: .3em; }

.footer-grid { display: grid; gap: 2.5rem 2rem; }
.footer-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: #fff;
}
.footer-name-en { color: #D8B98E; }
.footer-brand address { margin-top: 1.25rem; line-height: 1.7; max-width: 22em; }
.footer-brand address span { display: block; margin-top: .25rem; color: #C9B5AC; }

.site-footer h2 {
  margin-bottom: .75rem;
  font-family: var(--font-text);
  font-size: .9375rem;
  font-weight: 700;
  letter-spacing: 0;
  color: #D8B98E;
}
.footer-links li { padding: .22rem 0; font-variant-numeric: tabular-nums; }
.footer-links-2col { columns: 2; column-gap: 1.5rem; }
.footer-links-2col li { break-inside: avoid; }

.footer-legal {
  margin-top: clamp(40px, 6vw, 72px);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(243, 228, 216, .18);
  font-size: .8125rem;
  color: #C9B5AC;
}

@media (min-width: 620px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 980px) {
  .footer-grid { grid-template-columns: 4fr 4fr 2fr 3fr; }
}

/* ── 手機底部聯絡列 ───────────────────────────────────────────────────── */

.mobile-bar { display: none; }

@media (max-width: 759px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }

  .mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr;
    gap: .5rem;
    padding: .5rem .5rem calc(.5rem + env(safe-area-inset-bottom));
    background: rgba(255, 253, 250, .96);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--rule);
  }
  .mobile-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .45em;
    min-height: 52px;
    border: 1.5px solid var(--ink);
    border-radius: 6px;
    font-size: .9375rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
  }
  .mobile-bar svg { width: 1.2em; height: 1.2em; flex: none; }
  .mobile-bar .mobile-bar-main { background: var(--magenta); border-color: var(--magenta); color: #fff; }

  /* 首屏的預約按鈕仍在畫面內時，底部列先收起，避免同一畫面出現兩組相同按鈕 */
  .js .mobile-bar { transition: transform .25s ease-out; }
  .js .mobile-bar:not(.is-visible) { transform: translateY(110%); }
}

/* ── 減少動態 ─────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
