/* ══════════════════════════════════════════════════════════
   台中雅典娜醫美診所 — main.css
   色系與版型延續 ATHENA 版型，擴充為 5 大分類、Hero 輪播、
   LINE 導流與完整 RWD。
   ══════════════════════════════════════════════════════════ */

:root {
  --ink: #30302c;
  --paper: #f7f5f0;
  --cream: #eee8df;
  --sand: #eae5dc;
  --taupe: #a78e76;
  --deep: #393830;
  --accent: #9d846d;
  --accent-dark: #6b5949;
  --muted: #6f6960;
  --line: rgba(49, 48, 43, .16);
  --line-light: rgba(255, 255, 255, .28);
  --serif: "Noto Serif TC", "Songti TC", Georgia, serif;
  --sans: "Noto Sans TC", -apple-system, "Segoe UI", Arial, sans-serif;
  --radius: 4px;
  --shadow: 0 18px 50px -28px rgba(49, 48, 43, .45);
  --header-h: 104px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
address { font-style: normal; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  padding: 14px 22px; background: var(--deep); color: #fff;
  font: 500 14px var(--sans);
}
.skip-link:focus { left: 12px; top: 12px; }

.muted { color: var(--muted); font-size: 13px; }

/* ── 共用排版 ────────────────────────────────── */

.section { padding: clamp(64px, 9vw, 118px) max(6vw, 24px); }
.section.compact { padding-block: clamp(56px, 7vw, 92px); }

.eyebrow {
  margin: 0 0 20px;
  font: 500 10px/1.5 var(--sans);
  letter-spacing: .28em;
  color: #8a715b;
  text-transform: uppercase;
}
.eyebrow.light { color: #efe6da; }

h1, h2, h3 { font-weight: 400; letter-spacing: .03em; }
h1 { margin: 0; font-size: clamp(38px, 5.4vw, 74px); line-height: 1.2; }
h2 { margin: 0; font-size: clamp(30px, 3.9vw, 56px); line-height: 1.3; }
h3 { margin: 0; font-size: clamp(19px, 1.6vw, 25px); line-height: 1.5; }
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

.section-heading {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 40px; margin-bottom: clamp(36px, 4.5vw, 58px); flex-wrap: wrap;
}
.section-heading > p { max-width: 380px; margin: 0; font-size: 14px; line-height: 2; color: var(--muted); }
.section-more { margin-top: 40px; text-align: center; }

.text-link {
  display: inline-flex; align-items: center; gap: 14px;
  padding-bottom: 7px; border-bottom: 1px solid var(--accent);
  font: 500 12px var(--sans); letter-spacing: .12em; color: var(--accent-dark);
  transition: gap .25s, color .25s;
}
.text-link:hover { gap: 22px; color: var(--ink); }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-width: 168px; padding: 16px 26px; border-radius: 99px;
  font: 500 13px var(--sans); letter-spacing: .1em;
  transition: transform .25s, background .25s, color .25s, border-color .25s;
}
.button:hover { transform: translateY(-2px); }
.button.lg { width: 100%; padding: 19px 26px; }
.button.fill { color: #4c4034; background: #f4eee6; }
.button.fill:hover { background: #fff; }
.button.ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .55); }
.button.ghost:hover { background: rgba(255, 255, 255, .12); }
.button.ghost-dark { color: var(--accent-dark); border: 1px solid #c3b3a1; }
.button.ghost-dark:hover { background: var(--cream); }
.button.outline-light { width: max-content; color: #fff; border: 1px solid var(--line-light); }
.button.outline-light:hover { background: rgba(255, 255, 255, .12); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chip {
  padding: 11px 20px; border: 1px solid #cabfb2; border-radius: 99px;
  font: 400 13px var(--sans); color: var(--accent-dark); transition: .22s;
}
.chip:hover { color: #fff; background: var(--accent); border-color: var(--accent); }

.breadcrumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 9px;
  margin-bottom: 24px; font: 400 12px var(--sans); color: var(--muted);
}
.breadcrumbs a:hover { color: var(--accent); text-decoration: underline; }
.breadcrumbs span[aria-hidden] { opacity: .45; }

/* 免責聲明：外層撐滿底色帶，內層收窄並置中，與內文欄位對齊 */
.page-notice {
  margin: 0; padding: 34px max(6vw, 24px);
  background: var(--cream); border-top: 1px solid var(--line);
}
.page-notice p {
  max-width: 760px; margin: 0 auto;
  font: 400 12px/2.05 var(--sans); color: #6a635a;
  text-align: center; text-wrap: pretty;
}

.legal-note { margin: 34px 0 0; font: 400 12px/1.95 var(--sans); color: #8a8379; }

/* ── Header ──────────────────────────────────── */

.site-header {
  position: sticky; top: 0; z-index: 100;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
  height: var(--header-h); padding: 0 max(4vw, 20px);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid #e6e0d8;
}
.brand { display: flex; align-items: center; }
.brand img { height: 46px; width: auto; }

.site-header nav { display: flex; justify-content: center; gap: clamp(18px, 2.4vw, 40px); }
.site-header nav > a, .has-sub > a {
  position: relative; display: inline-flex; align-items: center; gap: 5px;
  padding: 12px 0; font: 400 15px var(--sans); letter-spacing: .06em; color: #49463f;
  transition: color .22s;
}
.site-header nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 6px;
  height: 1px; background: var(--accent); transition: right .25s;
}
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--accent); }
.site-header nav a:hover::after, .site-header nav a[aria-current]::after { right: 0; }
.has-sub > a i { font-size: 11px; font-style: normal; opacity: .75; transition: transform .25s; }
.has-sub > a i::before { content: "▾"; }
.has-sub:hover > a i, .has-sub:focus-within > a i { transform: rotate(180deg); }

.has-sub { position: relative; }
.submenu {
  position: absolute; top: 100%; left: 50%; transform: translate(-50%, 8px);
  min-width: 230px; padding: 10px; background: #fff;
  border: 1px solid #e6e0d8; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transition: .22s;
}
.has-sub:hover .submenu, .has-sub:focus-within .submenu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.submenu a {
  display: flex; align-items: baseline; gap: 12px; padding: 12px 16px;
  font: 400 14px var(--sans); color: #4b473f;
}
.submenu a::after { display: none; }
.submenu a span { flex: 0 0 22px; font: 500 9px var(--sans); letter-spacing: .18em; color: var(--taupe); }
.submenu a:hover { background: var(--cream); color: var(--accent-dark); }
.submenu-all { border-bottom: 1px solid #ece5db; margin-bottom: 4px; font-weight: 500; }

.nav-cta {
  justify-self: end; padding: 14px 24px; border: 1px solid #b9a690; border-radius: 99px;
  font: 500 14px var(--sans); letter-spacing: .06em; color: var(--accent-dark);
  white-space: nowrap; transition: .25s;
}
.nav-cta:hover { color: #fff; background: var(--accent); border-color: var(--accent); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 10px; }
.nav-toggle span { display: block; width: 24px; height: 1.5px; background: var(--ink); transition: .25s; }

/* ── Hero 輪播 ───────────────────────────────── */

.hero {
  position: relative; min-height: 620px; height: calc(100svh - var(--header-h));
  max-height: 900px; overflow: hidden; color: #fff;
}
.hero-track { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity .9s ease;
}
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: var(--pos, center);
}
/* 直式螢幕改用 --pos-m（hero.json 的 position_mobile），未設定則沿用桌機值 */
@media (orientation: portrait) {
  .hero-slide img { object-position: var(--pos-m, var(--pos, center)); }
}
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(92deg, rgba(46, 39, 31, .68) 0%, rgba(58, 49, 40, .34) 46%, rgba(0, 0, 0, .06) 100%);
}
.hero-slide[data-tone="dark"] { color: var(--ink); }
.hero-slide[data-tone="dark"] .hero-shade {
  background: linear-gradient(92deg, rgba(255, 255, 255, .78) 0%, rgba(255, 255, 255, .38) 48%, rgba(255, 255, 255, .04) 100%);
}
.hero-slide[data-tone="dark"] .eyebrow.light { color: var(--accent-dark); }

.hero-content {
  position: absolute; top: 50%; left: max(7vw, 24px);
  transform: translateY(-46%); max-width: 620px; padding-right: 20px;
}
.hero-content h1 { margin: 0 0 26px; text-shadow: 0 2px 30px rgba(40, 32, 22, .28); }
.hero-copy { font-size: clamp(15px, 1.2vw, 17px); line-height: 2.1; letter-spacing: .1em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero-foot {
  position: absolute; left: max(4vw, 20px); right: max(4vw, 20px); bottom: 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding-top: 16px; border-top: 1px solid var(--line-light);
  font: 500 9px var(--sans); letter-spacing: .24em;
}
/* 讓出右下角浮動 LINE 按鈕的空間，避免文字被蓋住 */
.hero-foot > :last-child { padding-right: 74px; }
.hero-dots { display: flex; gap: 9px; }
.hero-dots button {
  width: 30px; height: 3px; padding: 0; border-radius: 2px;
  background: rgba(255, 255, 255, .35); transition: background .25s;
}
.hero-dots button.is-active { background: #fff; }
.hero[data-single] .hero-dots { display: none; }

/* ── 首頁：診所介紹（H1 + 影片）────────────── */

/* hero 的金句已改為 <p>，H1 讓給這一區含關鍵字的標題。
   視覺樣式與原本的 h1 完全一致。 */
.hero-quote-h {
  margin: 0 0 26px; font-size: clamp(38px, 5.4vw, 74px); line-height: 1.2;
  letter-spacing: .03em; text-shadow: 0 2px 30px rgba(40, 32, 22, .28);
}

.clinic-intro {
  display: grid; grid-template-columns: 46% 1fr; gap: clamp(30px, 5vw, 72px);
  align-items: start; padding: clamp(56px, 8vw, 104px) max(6vw, 24px);
  background: #fff; border-bottom: 1px solid var(--line);
}
.ci-media { position: sticky; top: calc(var(--header-h) + 28px); }
.yt-facade {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9;
  padding: 0; overflow: hidden; background: var(--cream); cursor: pointer;
}
.yt-facade img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, filter .3s; }
.yt-facade:hover img { transform: scale(1.03); filter: brightness(.92); }
.yt-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 74px; height: 74px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .45);
  transition: transform .25s, background .25s;
}
.yt-play::after {
  content: ""; position: absolute; top: 50%; left: 54%; transform: translate(-50%, -50%);
  border-style: solid; border-width: 13px 0 13px 21px;
  border-color: transparent transparent transparent var(--accent-dark);
}
.yt-facade:hover .yt-play { transform: translate(-50%, -50%) scale(1.08); background: #fff; }
.yt-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ci-caption { margin: 14px 0 0; font: 400 12px var(--sans); color: var(--muted); }

.ci-copy h1 { margin: 0 0 18px; font-size: clamp(27px, 3.1vw, 44px); line-height: 1.35; }
.ci-lead {
  margin: 0 0 34px; padding-bottom: 26px; border-bottom: 1px solid var(--line);
  font-size: clamp(17px, 1.6vw, 22px); line-height: 1.85; color: #5d5750;
  font-weight: 400; letter-spacing: .02em;
}
.ci-block { margin-bottom: 30px; }
.ci-block h3 { margin: 0 0 12px; font-size: clamp(18px, 1.5vw, 22px); color: var(--accent-dark); }
.ci-block p { font-size: 15px; line-height: 2.05; color: #56514a; }

/* ── 首頁區塊 ────────────────────────────────── */

.intro {
  display: grid; grid-template-columns: 1.05fr .9fr .32fr;
  gap: clamp(32px, 6vw, 88px); align-items: start;
}
.intro h2 { font-size: clamp(32px, 4.4vw, 62px); }
.intro-copy { padding-top: 30px; font-size: 16px; line-height: 2.15; color: #635d55; }
.intro-copy .text-link { margin-top: 22px; }
.intro-seal {
  width: 138px; height: 138px; justify-self: end;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid #b5a89a; border-radius: 50%; color: #897765; transform: rotate(8deg);
}
.intro-seal span { font: 400 8px var(--sans); letter-spacing: .22em; }
.intro-seal b { font-size: 26px; font-weight: 400; }

.treatments { background: var(--sand); }
.treatment-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.treatment-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
.treatment-card {
  position: relative; min-height: 460px; padding: 24px;
  display: flex; flex-direction: column; justify-content: space-between;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; isolation: isolate; transition: background .3s, transform .3s;
}
.treatment-card:hover { background: #f6f2eb; transform: translateY(-6px); }
.card-top { display: flex; justify-content: space-between; font: 500 9px var(--sans); letter-spacing: .2em; color: #7b7066; }
.line-art { position: absolute; z-index: -1; top: 68px; left: 50%; width: 150px; height: 172px; transform: translateX(-50%); opacity: .5; }
.line-art i { position: absolute; inset: 10px 24px; display: block; border: 1px solid var(--taupe); border-radius: 48% 52% 45% 55%; transform: rotate(18deg); }
.line-art i:nth-child(2) { inset: 30px 6px; transform: rotate(63deg); }
.line-art i:nth-child(3) { inset: 22px 38px; transform: rotate(117deg); }

.treatment-card h3 { margin: 0 0 10px; font-size: 25px; }
.treatment-card p { min-height: 68px; margin: 0; font-size: 13px; line-height: 1.9; color: var(--muted); }
.treatment-card ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; padding: 0; list-style: none; }
.treatment-card li { padding: 6px 10px; border: 1px solid #c8bdb1; border-radius: 99px; font: 400 10px var(--sans); }
/* 標題是唯一的連結，用 ::after 撐滿整張卡片 —— 點標題、點卡片任一處都能進去。
   錨點文字也從無意義的「↗」變成療程名稱，對 SEO 有幫助。 */
.card-title-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-title-link:hover { color: var(--accent); }
.treatment-card:hover h3 a { color: var(--accent); }
.card-arrow {
  position: absolute; right: 18px; top: 44%; width: 40px; height: 40px;
  display: grid; place-items: center; border: 1px solid #aa9d8f; border-radius: 50%;
  transition: .25s;
}
.treatment-card:hover .card-arrow { color: #fff; background: var(--accent); border-color: var(--accent); }

/* 文章卡片同樣處理，維持一致的點擊行為 */
.news-item h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.news-item:hover h3 a { color: var(--accent); }

/* ── 首頁：9 大人氣醫美服務 ─────────────────── */

.popular { background: var(--paper); }
/* 標題含完整關鍵字字串，第二段縮小以免看起來像塞關鍵字的標題 */
.popular .section-heading h2 span {
  display: block; margin-top: 10px;
  font-size: clamp(15px, 1.3vw, 19px); letter-spacing: .06em; color: var(--muted);
}
.popular-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pop-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line);
  transition: transform .3s, box-shadow .3s;
}
.pop-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.pop-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--cream); }
.pop-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .55s; }
.pop-card:hover .pop-media img { transform: scale(1.05); }
.pop-body { display: block; padding: 24px 24px 62px; }
.pop-body small { display: block; font: 500 9px var(--sans); letter-spacing: .2em; color: var(--taupe); }
.pop-body b { display: block; margin: 11px 0 9px; font: 400 21px/1.45 var(--serif); }
.pop-body em { display: block; font: 400 13px/1.95 var(--sans); font-style: normal; color: var(--muted); }
.pop-fig {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 15px;
  padding: 5px 12px 5px 10px; border: 1px solid #ddd2c4; border-radius: 99px;
  font: 500 10.5px var(--sans); font-style: normal; letter-spacing: .06em; color: var(--accent-dark);
}
.pop-fig::before {
  content: ""; width: 12px; height: 12px; flex: 0 0 auto;
  border: 1.5px solid currentColor; border-radius: 2px;
  background: linear-gradient(to top right, transparent 46%, currentColor 46%, currentColor 54%, transparent 54%);
}
.pop-arrow {
  position: absolute; right: 18px; bottom: 18px;
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 1px solid #cabfb2; border-radius: 50%; color: var(--accent-dark);
  font-size: 13px; transition: .25s;
}
.pop-card:hover .pop-arrow { color: #fff; background: var(--accent); border-color: var(--accent); }

.space-section {
  min-height: 660px; display: grid; grid-template-columns: 56% 44%;
  background: #4a4941; color: #fff;
}
.space-image img { width: 100%; height: 100%; object-fit: cover; }
.space-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(44px, 6vw, 76px) max(6vw, 28px); }
.space-copy h2 { font-size: clamp(30px, 4.1vw, 58px); }
.space-copy > p:not(.eyebrow) { max-width: 460px; margin: 26px 0; color: #d5d0c8; line-height: 2.05; }
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); margin: 18px 0 38px; padding: 24px 0;
  border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light);
}
.stats div { display: flex; flex-direction: column; gap: 7px; }
.stats b { font: 400 27px Georgia, serif; }
.stats span { font: 400 11px var(--sans); color: #c7c2ba; }

.doctors { background: var(--paper); }
.heading-side { display: flex; flex-direction: column; align-items: flex-end; gap: 20px; }
.heading-side > p { max-width: 380px; margin: 0; font-size: 14px; line-height: 2; color: var(--muted); text-align: right; }

/* 首頁醫師輪播：原生 scroll-snap + 箭頭按鈕，手機可直接滑 */
.carousel-nav { display: flex; gap: 10px; }
.cnav-btn {
  width: 46px; height: 46px; display: grid; place-items: center;
  border: 1px solid #c3b6a7; border-radius: 50%; font-size: 15px; color: var(--accent-dark);
  transition: .22s;
}
.cnav-btn:hover:not(:disabled) { color: #fff; background: var(--accent); border-color: var(--accent); }
.cnav-btn:disabled { opacity: .3; cursor: default; }

.doctor-carousel {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 72px) / 5);
  gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; scrollbar-width: none; padding-bottom: 4px;
}
.doctor-carousel::-webkit-scrollbar { display: none; }
.doctor-carousel:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.doctor-carousel .doctor-card { scroll-snap-align: start; }

.doctor-card { padding: 12px; background: #efebe4; transition: transform .3s; }
.doctor-card:hover { transform: translateY(-5px); }
.doctor-portrait {
  position: relative; display: grid; place-items: center;
  aspect-ratio: 3 / 4; overflow: hidden; background: #fff;
}
/* 絕對定位鎖死尺寸：aspect-ratio 容器內的 grid item 用 height:100% 會解析失敗，
   圖片退回自然比例後溢出被裁掉。inset:0 才能保證 contain 真的完整呈現 */
.doctor-portrait img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; transition: transform .5s;
}
.doctor-card:hover .doctor-portrait img { transform: scale(1.03); }
.doctor-meta { padding: 18px 5px 10px; }
.doctor-meta small { font: 500 9px var(--sans); letter-spacing: .17em; color: #8d7968; }
.doctor-meta h3 { margin: 6px 0; font-size: 20px; }
.doctor-meta p { margin: 0; font: 400 11.5px/1.7 var(--sans); color: #7a746c; }
.doctor-card .text-link { margin: 0 5px 5px; gap: 10px; font-size: 11px; }

.process { background: var(--cream); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; }
.step { padding: 30px 22px; background: rgba(255, 255, 255, .58); border: 1px solid var(--line); }
.step b { font: 400 12px var(--sans); letter-spacing: .2em; color: var(--taupe); }
.step span { display: block; margin: 14px 0 12px; font-size: 20px; color: var(--taupe); }
.step h3 { margin: 0 0 8px; font-size: 21px; }
.step p { margin: 0; font: 400 13px/1.85 var(--sans); color: var(--muted); }

.news-list { display: flex; flex-direction: column; }
.news-item {
  position: relative; display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: center;
  padding: 26px 0; border-top: 1px solid var(--line); transition: background .25s;
}
.news-item:last-child { border-bottom: 1px solid var(--line); }
.news-item:hover { background: rgba(255, 255, 255, .5); }
.news-visual { display: grid; place-items: center; aspect-ratio: 16 / 9; background: linear-gradient(140deg, #ded3c4, #f2ece3); }
.news-visual.nv-2 { background: linear-gradient(140deg, #d9cfc6, #ebe2d6); }
.news-visual.nv-3 { background: linear-gradient(140deg, #cfc6bb, #e7ded1); }
.news-visual span { font: 500 22px Georgia, serif; color: rgba(255, 255, 255, .85); }
.post-meta { display: flex; gap: 16px; margin: 0 0 8px; font: 400 11px var(--sans); letter-spacing: .1em; color: #8a8279; }
.news-item h3 { margin: 0; font-size: clamp(18px, 1.7vw, 24px); }
.news-arrow { top: 50%; transform: translateY(-50%); right: 6px; }
.news-item:hover .card-arrow { color: #fff; background: var(--accent); border-color: var(--accent); }

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

.cta-block {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(30px, 5vw, 70px);
  align-items: center; padding: clamp(56px, 7vw, 96px) max(6vw, 24px);
  background: var(--deep); color: #f3ece2;
}
.cta-block h2 { font-size: clamp(28px, 3.5vw, 50px); }
.cta-block p { margin-top: 20px; color: #cdc5b9; line-height: 2.05; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.cta-actions .button { width: 100%; }
.cta-note { margin: 6px 0 0; font: 400 12px var(--sans); color: #a79e92; text-align: center; }

/* ── 內頁 hero ──────────────────────────────── */

.inner-hero {
  position: relative; display: grid; grid-template-columns: 1.1fr .9fr;
  gap: clamp(24px, 4vw, 56px); align-items: end;
  padding: clamp(48px, 6.5vw, 96px) max(6vw, 24px);
  background: var(--cream); border-bottom: 1px solid var(--line);
}
.inner-hero > p { max-width: 460px; margin: 0 0 6px; font-size: 15px; line-height: 2.05; color: #645e56; }
.inner-orbit {
  position: absolute; right: max(5vw, 20px); top: 22%;
  width: 118px; height: 118px; display: grid; place-items: center;
  border: 1px solid #c0b3a4; border-radius: 50%; color: #a8957f; font-size: 26px;
  opacity: .55; pointer-events: none;
}

/* ── 分類 / 療程頁 ──────────────────────────── */

.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.cat-card { padding: 32px 28px; background: #fff; border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; }
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.cat-card h2 { margin: 18px 0 12px; font-size: 28px; }
.cat-card > p { font: 400 13px/1.95 var(--sans); color: var(--muted); }
.cat-list { margin: 20px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 7px; }
.cat-list a { display: block; padding: 7px 13px; border: 1px solid #cec4b8; border-radius: 99px; font: 400 12px var(--sans); transition: .22s; }
.cat-list a:hover { color: #fff; background: var(--accent); border-color: var(--accent); }

.cat-hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 460px; }
.cat-hero-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(44px, 6vw, 84px) max(6vw, 24px); }
.cat-hero-copy .lead { max-width: 480px; margin-top: 22px; font-size: 15px; line-height: 2.1; color: #645e56; }
.cat-hero-visual {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  padding: 40px; color: #fff; text-align: center;
  background: linear-gradient(150deg, #6f6353, #a08d74);
}
.cat-hero-visual.cat-surgery { background: linear-gradient(150deg, #4f5a54, #86928a); }
.cat-hero-visual.cat-injection { background: linear-gradient(150deg, #7a6656, #b39a80); }
.cat-hero-visual.cat-laser { background: linear-gradient(150deg, #5b5566, #9a8ea5); }
.cat-hero-visual.cat-lifting { background: linear-gradient(150deg, #6d5b52, #ab9182); }
.cat-hero-visual.cat-regenerative { background: linear-gradient(150deg, #4d5a5f, #8ba0a5); }
.cat-hero-visual span { font: 500 9px var(--sans); letter-spacing: .28em; opacity: .8; }
.cat-hero-visual b { font: 400 clamp(38px, 4.6vw, 66px)/1 Georgia, serif; letter-spacing: .06em; }
.cat-hero-visual small { font: 400 9px var(--sans); letter-spacing: .2em; opacity: .7; }

.overview, .split { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(30px, 5vw, 72px); align-items: start; }
.overview-copy, .split-copy { font-size: 15px; line-height: 2.1; color: #635d55; }
.points, .value-grid, .process-grid { display: grid; gap: 20px; margin-top: 38px; }
.points { grid-template-columns: repeat(3, 1fr); }
.value-grid, .process-grid { grid-template-columns: repeat(4, 1fr); }
.points article, .value-grid article, .process-grid article { padding: 26px 22px; background: #fff; border: 1px solid var(--line); }
.points b, .value-grid b, .process-grid b { font: 400 11px var(--sans); letter-spacing: .2em; color: var(--taupe); }
.points h3, .value-grid h3, .process-grid h3 { margin: 12px 0 8px; font-size: 19px; }
.points p, .value-grid p, .process-grid p { margin: 0; font: 400 13px/1.85 var(--sans); color: var(--muted); }

.menu-section { background: var(--sand); }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 38px; }
.menu-grid.sm { margin-top: 22px; }
.menu-grid article { padding: 28px 24px; background: #fff; border: 1px solid var(--line); }
.menu-grid small { font: 500 9px var(--sans); letter-spacing: .2em; color: var(--taupe); }
.menu-grid h3 { margin: 12px 0 10px; font-size: 22px; }
.menu-grid p { margin: 0 0 16px; font: 400 13px/1.9 var(--sans); color: var(--muted); }

.fit-section { background: var(--deep); color: #f0e9df; display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.fit-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-light); }
.fit-list > div { display: flex; align-items: baseline; gap: 16px; padding: 26px 22px; background: var(--deep); }
.fit-list.inline { background: var(--line); margin-top: 22px; }
.fit-list.inline > div { background: var(--paper); }
.fit-list b { font: 400 11px var(--sans); letter-spacing: .18em; color: var(--taupe); }
.fit-list p { margin: 0; font-size: 15px; line-height: 1.8; }

/* ── 療程內文 ───────────────────────────────── */

.tx-page { padding: clamp(44px, 6vw, 84px) max(6vw, 24px) 0; }
.tx-head { max-width: 900px; margin: 0 auto clamp(32px, 4vw, 52px); }
.tx-head h1 { margin: 12px 0 20px; }
.tx-deck { max-width: 700px; font-size: clamp(15px, 1.3vw, 18px); line-height: 2.05; color: #5d5750; }

.answer-box {
  max-width: 900px; margin: 0 auto clamp(36px, 4.5vw, 60px); padding: 30px 32px;
  background: var(--cream); border-left: 3px solid var(--accent);
}
.answer-label { margin: 0 0 12px; font: 500 10px var(--sans); letter-spacing: .22em; color: var(--accent-dark); }
.answer-box p:last-child { margin: 0; font-size: 15px; line-height: 2.05; }

.notice-banner {
  max-width: 900px; margin: 0 auto 32px; padding: 22px 26px;
  background: #fdf5e8; border: 1px solid #e0c9a0;
}
.notice-banner strong { display: block; margin-bottom: 8px; font: 500 12px var(--sans); letter-spacing: .12em; color: #92702f; }
.notice-banner p { margin: 0; font: 400 14px/1.95 var(--sans); color: #6d5730; }

.tx-body { max-width: 900px; margin: 0 auto; }
.tx-body.narrow { max-width: 780px; }
.tx-block { margin-bottom: clamp(36px, 4.5vw, 58px); }
.tx-block h2 { margin-bottom: 20px; font-size: clamp(24px, 2.5vw, 34px); }
.tx-block p { font-size: 15px; line-height: 2.1; color: #56514a; }

.risk-block { padding: 30px 32px; background: #faf2f0; border-left: 3px solid #b98a7e; }
.risk-block h2 { color: #8e5d4f; }
.contra-block { padding: 30px 32px; background: var(--sand); border-left: 3px solid var(--taupe); }

.care-list { margin: 0; padding-left: 22px; }
.care-list li { margin-bottom: 12px; font-size: 15px; line-height: 1.95; color: #56514a; }

.faq-list details {
  padding: 20px 4px; border-bottom: 1px solid var(--line);
}
.faq-list summary {
  cursor: pointer; list-style: none; font-size: 17px; font-weight: 500;
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font: 300 24px var(--sans); color: var(--taupe); transition: transform .25s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { margin: 16px 0 0; font-size: 15px; line-height: 2.05; color: #56514a; }

.tx-siblings { padding: 40px 0 clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); max-width: 900px; margin: 0 auto; }
.tx-siblings > div { display: flex; flex-wrap: wrap; gap: 10px; }
.tx-siblings a {
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 20px;
  border: 1px solid #cec4b8; border-radius: 99px; font: 400 14px var(--sans); transition: .22s;
}
.tx-siblings a:hover { color: #fff; background: var(--accent); border-color: var(--accent); }

.doctor-chips { background: var(--cream); }

/* ── 療程示意圖（inline SVG）────────────────── */

.diagram { margin: 0 0 clamp(36px, 4.5vw, 58px); }
.diagram-frame {
  padding: clamp(16px, 2.2vw, 28px);
  background: #fff; border: 1px solid var(--line);
}
.diagram svg { display: block; width: 100%; height: auto; }
.diagram figcaption {
  margin-top: 14px; font: 400 12.5px/1.9 var(--sans); color: var(--muted);
}

/* SVG 共用樣式。inline SVG 會繼承文件的 CSS，所以配色跟著站台主題走。 */
.dg { font-family: var(--sans); fill: var(--ink); }
/* fill 在 SVG 會繼承，用根層級設預設值，任何帶 class 的元素都能覆蓋它。
   若寫成 .dg text {fill:...}（權重 0,1,1）會蓋掉 .dg-s 這類單一 class 規則。 */
/* .dg-c1/c2/c3 同時設 stroke 與 fill，套在 <text> 上會替文字加描邊糊成一團 */
.dg text { stroke: none; paint-order: stroke fill; }
.dg-h { font: 500 16px var(--serif); fill: var(--ink); }
.dg-b { font: 500 13px var(--sans); fill: var(--ink); }
.dg-s { font: 400 11.5px var(--sans); fill: #6a635a; }
.dg-in { font: 500 11px var(--sans); fill: #fff; text-anchor: middle; }
.dg-cap { font-weight: 500; letter-spacing: .1em; fill: var(--taupe); }
.dg-note { font: 400 10.5px var(--sans); fill: #8a8379; }
.dg-mid { text-anchor: middle; }
.dg-right { text-anchor: end; }
.dg-left { text-anchor: start; }
.dg-accent { fill: var(--accent-dark); }

.dg-l1 { fill: #e7dccd; }
.dg-l2 { fill: #f2ead9; }
.dg-l3 { fill: #ded2c0; }
.dg-l4 { fill: #b9a68e; }
.dg-l5 { fill: #cbb9a1; }
.dg-l6 { fill: #a89madd; }
.dg-l6 { fill: #a8968a; }
.dg-implant { fill: var(--accent-dark); opacity: .9; }

.dg-axis { stroke: #cabfb2; stroke-width: 1; }
.dg-thick { stroke-width: 1.5; }
.dg-grid { stroke: #e3dbd0; stroke-width: 1; stroke-dasharray: 3 4; }
.dg-tick { stroke: #cabfb2; stroke-width: 1; }
.dg-arrow { fill: #cabfb2; }
.dg-shape { fill: #f0e8dc; stroke: #c3b3a1; stroke-width: 1.5; }
.dg-core { fill: var(--cream); stroke: #ddd2c4; stroke-width: 1; }
.dg-quad { fill: #f4efe7; }
.dg-quad-hi { fill: #ebe1d2; }
.dg-box { fill: #f7f3ec; stroke: #e2d9cc; stroke-width: 1; }
.dg-box-accent { fill: #f0e7d8; stroke: #d8c9b2; }
.dg-row { fill: transparent; }
.dg-row-alt { fill: #faf7f2; }
.dg-lead { stroke-width: 1; stroke-dasharray: 2 3; }
line.dg-band { fill: none; stroke-width: 5; stroke-linecap: round; }
path.dg-ring { fill: none; stroke-width: 26; stroke-linecap: butt; }
.dg-beam { fill: var(--accent); opacity: .18; }
.dg-flow { fill: none; stroke: #c3b3a1; stroke-width: 1.6; }
.dg-dash { stroke-dasharray: 4 4; }
.dg-spin { fill: none; stroke: var(--accent-dark); stroke-width: 1.6; }
.dg-spin-l { stroke: var(--accent-dark); stroke-width: 1.6; stroke-linecap: round; }
.dg-remove { fill: #f5efe8; stroke: #ddd0be; stroke-width: 1; }
.dg-remove-x { fill: #a8836f; font-size: 17px; }
.dg-keep { fill: #ece3d3; stroke: #d5c6ad; stroke-width: 1; }

.dg-c1 { stroke: #c6b9a6; fill: #c6b9a6; }
.dg-c2 { stroke: var(--taupe); fill: var(--taupe); }
.dg-c3 { stroke: var(--accent-dark); fill: var(--accent-dark); }
.dg-dot { stroke: none; }
.dg-line-1 { fill: none; stroke: var(--accent-dark); stroke-width: 2.5; stroke-linejoin: round; }
.dg-line-2 { fill: none; stroke: var(--taupe); stroke-width: 2.5; stroke-dasharray: 6 4; stroke-linejoin: round; }
.dg-area { fill: var(--accent-dark); opacity: .1; }
.dg-area-2 { fill: var(--taupe); opacity: .12; }

@media (max-width: 640px) {
  /* 手機螢幕窄，放大 SVG 內的字避免看不清 */
  .dg-h { font-size: 21px; }
  .dg-b { font-size: 17px; }
  .dg-s { font-size: 15px; }
  .dg-note { font-size: 13.5px; }
  .dg-in { font-size: 14px; }
}

/* ── 醫師頁 ─────────────────────────────────── */

.team-directory { padding: clamp(40px, 5vw, 70px) max(6vw, 24px); }
.team-toolbar {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  flex-wrap: wrap; padding-bottom: 22px; margin-bottom: 32px; border-bottom: 1px solid var(--line);
}
.team-toolbar p { margin: 0; font: 400 14px var(--sans); }
.team-toolbar p span { font: 500 9px var(--sans); letter-spacing: .22em; color: var(--taupe); margin-right: 10px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn {
  padding: 10px 18px; border: 1px solid #cec4b8; border-radius: 99px;
  font: 400 13px var(--sans); color: var(--accent-dark); transition: .22s;
}
.filter-btn:hover { border-color: var(--accent); }
.filter-btn.is-active { color: #fff; background: var(--accent); border-color: var(--accent); }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.team-card { background: #efebe4; padding: 14px; transition: transform .3s, opacity .3s; }
.team-card:hover { transform: translateY(-5px); }
.team-card[hidden] { display: none; }
.team-portrait {
  position: relative; display: grid; place-items: center; aspect-ratio: 3 / 4;
  overflow: hidden; background: #fff;
}
.team-portrait img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; transition: transform .5s;
}
.team-card:hover .team-portrait img { transform: scale(1.03); }
.team-portrait b { position: absolute; left: 12px; bottom: 10px; text-shadow: 0 1px 6px rgba(0,0,0,.45); font: 400 11px var(--sans); letter-spacing: .16em; color: rgba(255, 255, 255, .9); }
.team-card-copy { padding: 18px 6px 8px; }
.team-card-copy small { font: 500 9px var(--sans); letter-spacing: .17em; color: #8d7968; }
.team-card-copy h2 { margin: 8px 0; font-size: 22px; }
.team-card-copy h2 span { font-size: 14px; color: var(--muted); }
.team-card-copy > p { margin: 0 0 14px; font: 400 12px/1.8 var(--sans); color: #7a746c; }

.team-intro, .team-values { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 70px); align-items: start; }
.team-intro > div:last-child { font-size: 15px; line-height: 2.1; color: #635d55; }
.team-values { background: var(--cream); align-items: center; }

.doctor-hero {
  display: grid; grid-template-columns: 42% 58%;
  height: clamp(520px, 62vw, 660px); overflow: hidden; background: var(--cream);
}
.doctor-main-portrait {
  position: relative; height: 100%; overflow: hidden;
  display: grid; place-items: center; background: #fff;
}
/* contain：完整呈現整張照片，不裁切頭以下的部分 */
.doctor-main-portrait img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
}
.doctor-main-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(40px, 5vw, 76px) max(5vw, 24px); }
.doctor-main-copy h1 { margin: 10px 0 24px; }
.doctor-main-copy h1 small { font-size: .45em; color: var(--muted); margin-left: 10px; }
.doctor-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.tag { padding: 8px 16px; background: #fff; border: 1px solid #d5cabd; border-radius: 99px; font: 400 12px var(--sans); transition: .22s; }
.tag:hover { color: #fff; background: var(--accent); border-color: var(--accent); }
.doctor-main-copy .button { width: max-content; }

.doctor-profile { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 66px); align-items: start; }
.spec-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.spec-list li { padding: 14px 18px; background: var(--cream); font-size: 15px; line-height: 1.8; }
.spec-groups { display: grid; gap: 18px; }
.spec-group { padding: 20px 22px; background: var(--cream); }
.spec-group h3 { margin: 0 0 8px; font-size: 17px; color: var(--accent-dark); }
.spec-group p { margin: 0; font-size: 14px; line-height: 2; color: #5d5750; }

.credentials { background: var(--sand); }
.credential-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 38px; }
.credential-grid h3 { margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 18px; }
.credential-grid ul { margin: 0; padding-left: 18px; }
.credential-grid li { margin-bottom: 9px; font: 400 13.5px/1.85 var(--sans); color: #56514a; }

.rel-docs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 30px; }
.rel-doc { display: block; text-align: center; }
.rel-doc > img { width: 100%; aspect-ratio: 3 / 4; object-fit: contain; background: #fff; }
.rel-portrait {
  position: relative; display: grid; place-items: center;
  aspect-ratio: 3 / 4; overflow: hidden; background: #fff;
}
.rel-portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.rel-doc span { display: block; margin-top: 12px; font: 400 14px var(--sans); }
.rel-doc:hover span { color: var(--accent); }

/* 尚無形象照時的字首佔位，沿用品牌調性 */
.portrait-placeholder {
  display: grid; place-items: center;
  width: 46%; aspect-ratio: 1; border-radius: 50%;
  background: linear-gradient(150deg, #d3c5b6, #efe7dc);
  color: rgba(255, 255, 255, .92); font: 400 clamp(38px, 5vw, 78px)/1 var(--serif);
  border: 1px solid rgba(255, 255, 255, .6);
}
.rel-portrait .portrait-placeholder { width: 58%; font-size: 34px; }
.doctor-main-portrait .portrait-placeholder { width: 30%; max-width: 220px; }

.doctor-quote {
  max-width: 480px; margin: 0 0 26px;
  font-size: clamp(15px, 1.35vw, 18px); line-height: 2; color: #5d5750;
}

/* ── 聯絡頁 ─────────────────────────────────── */

.contact-page { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.detail-list { display: grid; gap: 26px; margin-top: 36px; }
.detail-list > div { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.detail-list small { display: block; margin-bottom: 8px; font: 500 9px var(--sans); letter-spacing: .22em; color: var(--taupe); }
.detail-list p { margin: 0 0 10px; font-size: 17px; }
.detail-list p a { border-bottom: 1px solid transparent; transition: .2s; }
.detail-list p a:hover { border-color: var(--accent); color: var(--accent); }
.detail-list p a + a { margin-left: 16px; }

.line-card { padding: clamp(32px, 4vw, 48px); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.line-card h2 { margin: 0 0 16px; font-size: clamp(24px, 2.6vw, 34px); }
.line-card > p { font-size: 15px; line-height: 2.05; color: #5d5750; }
.line-id {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin: 26px 0; padding: 18px 22px; background: var(--cream);
}
.line-id span { font: 500 9px var(--sans); letter-spacing: .22em; color: var(--taupe); }
.line-id b { font: 400 22px Georgia, serif; letter-spacing: .06em; }
.line-card .button + .button { margin-top: 10px; }
.form-note { margin-top: 22px; font: 400 12px/1.9 var(--sans); color: #8a8379; }

/* ── 聯絡頁：多院所 ─────────────────────────── */

.line-section { padding-bottom: 0; }
.line-section .line-card { max-width: 620px; margin: 0 auto; }

.branches { padding: clamp(48px, 6vw, 88px) max(6vw, 24px) 0; }
.branch { padding-bottom: clamp(48px, 6vw, 80px); }
.branch + .branch { border-top: 1px solid var(--line); padding-top: clamp(48px, 6vw, 80px); }
.branch-head { margin-bottom: clamp(26px, 3vw, 40px); }
.branch-head h2 {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  font-size: clamp(28px, 3.2vw, 44px);
}
.branch-badge {
  padding: 5px 14px; border: 1px solid #cabfb2; border-radius: 99px;
  font: 500 11px var(--sans); letter-spacing: .12em; color: var(--accent-dark);
}
.branch-body {
  display: grid; grid-template-columns: .85fr 1.15fr;
  gap: clamp(28px, 4vw, 56px); align-items: start;
}
.branch-body .detail-list { margin-top: 0; }
.branch-map { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream); }
.branch-map iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  filter: grayscale(.3);
}
.branch-transport {
  margin-top: clamp(28px, 3.5vw, 44px); padding: clamp(24px, 3vw, 36px);
  background: var(--cream);
}
.branch-transport h3 { margin: 0 0 20px; font-size: clamp(19px, 1.8vw, 24px); }
.branch-transport dl {
  display: grid; grid-template-columns: repeat(3, 1fr);
  column-gap: 28px; row-gap: 8px; margin: 0;
}
/* dt 與 dd 交錯排進 grid 會錯位，明確指定列號讓標題一列、內容一列 */
.branch-transport dt { grid-row: 1; }
.branch-transport dd { grid-row: 2; }
.branch-transport dt {
  margin: 0 0 8px; font: 500 11px var(--sans); letter-spacing: .16em; color: var(--taupe);
}
.branch-transport dd { margin: 0; font: 400 13.5px/1.95 var(--sans); color: #56514a; }

/* 頁尾兩院並列 */
.footer-branches { display: grid; gap: 18px; }
.footer-branches .footer-info p { margin: 0 0 6px; }
.branch-tag {
  font: 500 10px var(--sans) !important; letter-spacing: .18em;
  color: var(--taupe); margin-bottom: 4px !important;
}

.map-section { display: grid; grid-template-columns: 1.35fr .65fr; min-height: 440px; }
.map-embed iframe { width: 100%; height: 100%; min-height: 440px; border: 0; display: block; filter: grayscale(.35); }
.map-section aside { padding: clamp(36px, 4.5vw, 64px) max(5vw, 24px); background: var(--deep); color: #eee7dc; }
.map-section aside h2 { margin-bottom: 28px; font-size: clamp(24px, 2.4vw, 32px); }
.map-section dl { margin: 0; }
.map-section dt { margin-top: 22px; font: 500 11px var(--sans); letter-spacing: .16em; color: var(--taupe); }
.map-section dd { margin: 8px 0 0; font-size: 14px; line-height: 1.95; color: #cbc3b7; }

/* ── 保養品 ─────────────────────────────────── */

/* 保養品：左圖右文，一列一項 */
.product-list { padding: 0 max(6vw, 24px) clamp(48px, 6vw, 80px); }
.product-row {
  display: grid; grid-template-columns: 40% 1fr; gap: clamp(28px, 4.5vw, 64px);
  align-items: center; padding: clamp(34px, 4vw, 54px) 0;
  border-top: 1px solid var(--line);
}
.product-row:last-child { border-bottom: 1px solid var(--line); }
.product-media {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  background: #fff; border: 1px solid var(--line);
}
.product-media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; padding: 14px; transition: transform .5s;
}
.product-row:hover .product-media img { transform: scale(1.03); }

.prod-tag { display: flex; align-items: baseline; gap: 12px; margin: 0 0 12px;
  font: 500 10px var(--sans); letter-spacing: .2em; color: var(--taupe); }
.prod-tag span { font: 400 11px Georgia, serif; letter-spacing: .1em; }
.product-copy h2 { margin: 0 0 10px; font-size: clamp(24px, 2.5vw, 34px); }
.prod-tagline { margin: 0 0 16px; font-size: 15px; color: var(--muted); }
.prod-price {
  display: inline-block; margin: 0 0 18px; padding: 7px 16px;
  background: var(--cream); font: 500 14px var(--sans); color: var(--accent-dark);
}
.prod-desc { margin: 0 0 16px; font-size: 15px; line-height: 2.05; color: #56514a; }
.prod-suit, .prod-use { margin: 0 0 10px; font: 400 13.5px/1.9 var(--sans); color: var(--muted); }
.prod-suit b, .prod-use b {
  display: inline-block; min-width: 62px; margin-right: 10px;
  font: 500 10px var(--sans); letter-spacing: .16em; color: var(--taupe);
}
.prod-note { margin: 12px 0 0; font: 400 12px/1.9 var(--sans); color: #8a8379; }

.sub-items { display: grid; gap: 10px; margin: 18px 0; }
.sub-items > div { padding: 14px 18px; background: var(--cream); }
.sub-items b { display: block; margin-bottom: 5px; font-size: 15px; font-weight: 500; }
.sub-items span { font: 400 12.5px/1.85 var(--sans); color: var(--muted); }

.ingredients { margin-top: 16px; border-top: 1px solid var(--line); }
.ingredients summary {
  cursor: pointer; list-style: none; padding: 14px 0;
  font: 500 11px var(--sans); letter-spacing: .18em; color: var(--accent-dark);
  display: flex; align-items: center; justify-content: space-between;
}
.ingredients summary::-webkit-details-marker { display: none; }
.ingredients summary::after { content: "+"; font: 300 20px var(--sans); color: var(--taupe); transition: transform .25s; }
.ingredients[open] summary::after { transform: rotate(45deg); }
.ingredients p { margin: 0 0 16px; font: 400 12.5px/2 var(--sans); color: #6a635a; word-break: break-word; }

/* ── 部落格 ─────────────────────────────────── */

.journal-shell { padding: clamp(40px, 5vw, 70px) max(6vw, 24px); }
.journal-filter { margin-bottom: 40px; }

.featured-post { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(26px, 4vw, 52px); align-items: center; margin-bottom: 56px; padding-bottom: 56px; border-bottom: 1px solid var(--line); }
.feature-visual { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; background: linear-gradient(145deg, #cfc3b3, #efe8dd); }
.feature-visual span { position: absolute; top: 20px; left: 20px; font: 500 9px var(--sans); letter-spacing: .22em; color: rgba(255, 255, 255, .9); }
.feature-visual b { font: 400 70px Georgia, serif; color: rgba(255, 255, 255, .8); }
.featured-post h2 { margin: 12px 0 18px; font-size: clamp(26px, 2.9vw, 40px); }
.featured-post h2 a:hover { color: var(--accent); }
.featured-post > div > p:not(.post-meta) { font-size: 15px; line-height: 2.05; color: #5d5750; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.post-card[hidden] { display: none; }
.post-cover { display: grid; place-items: center; aspect-ratio: 4 / 3; margin-bottom: 18px; background: linear-gradient(145deg, #d6cabb, #efe8dd); }
.post-cover.c1 { background: linear-gradient(145deg, #cfc0bb, #ece2dc); }
.post-cover.c2 { background: linear-gradient(145deg, #c3ccc2, #e3eae0); }
.post-cover.c3 { background: linear-gradient(145deg, #d8cfc0, #f0e9dc); }
.post-cover.c4 { background: linear-gradient(145deg, #c8c4cf, #e6e3ec); }
.post-cover span { font: 400 34px Georgia, serif; color: rgba(255, 255, 255, .85); }
.post-card h3 { margin: 8px 0 12px; font-size: 21px; line-height: 1.55; }
.post-card h3 a:hover { color: var(--accent); }
.post-card > p:not(.post-meta) { margin-bottom: 14px; font: 400 13.5px/1.9 var(--sans); color: var(--muted); }

/* 部落格封面圖。有圖時蓋掉漸層佔位，並用 absolute 鎖死尺寸避免溢出。 */
.feature-visual.has-img, .post-cover.has-img, .news-visual.has-img {
  position: relative; display: block; overflow: hidden; background: var(--cream);
}
.feature-visual.has-img img, .post-cover.has-img img, .news-visual.has-img img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform .55s;
}
.feature-visual.has-img:hover img, .post-card:hover .post-cover.has-img img,
.news-item:hover .news-visual.has-img img { transform: scale(1.04); }
.feature-visual.has-img span {
  z-index: 1; text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
}
.news-visual.has-img { aspect-ratio: 16 / 9; }

.article-cover {
  max-width: 1040px; margin: 0 auto clamp(32px, 4vw, 52px);
  aspect-ratio: 3 / 2; overflow: hidden; position: relative; background: var(--cream);
}
.article-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.article-page { padding: clamp(40px, 5vw, 76px) max(6vw, 24px) 0; }
.article-head { max-width: 860px; margin: 0 auto clamp(32px, 4vw, 52px); }
.article-head h1 { margin: 12px 0 20px; font-size: clamp(30px, 3.8vw, 52px); }
.article-deck { font-size: clamp(15px, 1.3vw, 18px); line-height: 2.05; color: #5d5750; }
.article-info { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); font: 400 12px var(--sans); letter-spacing: .08em; color: #8a8279; }

.article-layout { display: grid; grid-template-columns: 210px 1fr; gap: clamp(28px, 5vw, 68px); max-width: 1040px; margin: 0 auto; }
.article-layout aside { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.article-layout aside p { margin: 0 0 14px; font: 500 10px var(--sans); letter-spacing: .2em; color: var(--taupe); }
.article-layout aside a { display: block; padding: 9px 0 9px 14px; border-left: 1px solid var(--line); font: 400 13px/1.6 var(--sans); color: var(--muted); transition: .2s; }
.article-layout aside a:hover { border-color: var(--accent); color: var(--ink); }

.article-body { max-width: 720px; }
.article-body h2 { margin: 46px 0 18px; font-size: clamp(23px, 2.3vw, 31px); }
.article-body h3 { margin: 32px 0 12px; font-size: 20px; }
.article-body p { font-size: 16px; line-height: 2.1; color: #4f4a44; }
.article-body ul, .article-body ol { padding-left: 22px; }
.article-body li { margin-bottom: 10px; font-size: 16px; line-height: 2; color: #4f4a44; }
.article-body blockquote { margin: 32px 0; padding: 24px 28px; background: var(--cream); border-left: 3px solid var(--accent); font-size: 17px; line-height: 1.95; }
.article-body a { border-bottom: 1px solid var(--accent); transition: .2s; }
.article-body a:hover { color: var(--accent); }
.refs { padding-left: 20px; }
.refs li { font: 400 13px/1.9 var(--sans); color: var(--muted); word-break: break-word; }
.article-notice { margin: 48px 0 0; padding: 24px 26px; background: var(--sand); }
.article-notice p { margin: 0; font: 400 12.5px/1.95 var(--sans); color: #6a635a; }

.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 32px; }
.related-grid a { display: flex; flex-direction: column; gap: 16px; padding: 28px 26px; background: #fff; border: 1px solid var(--line); font-size: 19px; line-height: 1.6; transition: .25s; }
.related-grid a:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.related-grid a span { font: 400 12px var(--sans); letter-spacing: .1em; color: var(--taupe); }

/* ── Footer ─────────────────────────────────── */

.site-footer { background: var(--deep); color: #cfc7bb; }
.footer-top {
  display: grid; grid-template-columns: 1.1fr 1fr 1fr 1fr; gap: clamp(24px, 4vw, 56px);
  padding: clamp(48px, 6vw, 76px) max(6vw, 24px) 44px;
}
.footer-brand img { width: 118px; height: auto; margin-bottom: 14px; }
.footer-brand small { display: block; font: 400 12px var(--sans); color: #a49b8f; }
.footer-info p { margin: 0 0 12px; font: 400 13.5px/1.85 var(--sans); }
.footer-info a:hover { color: #fff; }
.footer-info .muted { color: #8e8579; font-size: 12px; }
.footer-nav, .footer-social { display: flex; flex-direction: column; gap: 11px; }
.footer-nav a, .footer-social a { font: 400 13.5px var(--sans); transition: color .2s; }
.footer-nav a:hover, .footer-social a:hover { color: #fff; }
.footer-legal { padding: 26px max(6vw, 24px) 34px; border-top: 1px solid rgba(255, 255, 255, .12); }
.footer-legal p { margin: 0 0 10px; font: 400 11.5px/1.9 var(--sans); color: #8e8579; }
.copyright { letter-spacing: .06em; }

.floating-actions {
  position: fixed; right: 20px; bottom: 22px; z-index: 90;
  display: flex; flex-direction: column; gap: 10px;
}
.fab {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  width: 64px; height: 64px; border-radius: 50%; color: #fff;
  transition: transform .25s, box-shadow .25s;
}
.fab:hover { transform: translateY(-3px) scale(1.05); }
.fab svg { width: 24px; height: 24px; fill: currentColor; }
.fab-mark { font: 700 13px var(--sans); letter-spacing: .04em; }
.fab-text { font: 400 9px var(--sans); }
.fab-line { background: #06c755; box-shadow: 0 12px 28px -10px rgba(6, 199, 85, .75); }
.fab-tel  { background: var(--accent-dark); box-shadow: 0 12px 28px -10px rgba(107, 89, 73, .8); }
.fab-fb   { background: #1877f2; box-shadow: 0 12px 28px -10px rgba(24, 119, 242, .75); }

/* ── RWD ────────────────────────────────────── */

@media (max-width: 1180px) {
  .treatment-grid.cols-5 { grid-template-columns: repeat(3, 1fr); }
  .doctor-carousel { grid-auto-columns: calc((100% - 54px) / 4); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .value-grid, .process-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .credential-grid { grid-template-columns: 1fr 1fr; }
  .rel-docs { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 980px) {
  :root { --header-h: 84px; }

  /* backdrop-filter 會讓 header 成為 fixed 子元素的定位容器，
     導致展開的選單被限制在 header 的高度內而看不見。
     行動版改用不透明底色，讓 nav 的 position:fixed 對齊視窗。 */
  .site-header {
    grid-template-columns: auto 1fr;
    backdrop-filter: none; -webkit-backdrop-filter: none;
    background: #fff;
  }
  .nav-toggle { display: flex; justify-self: end; order: 3; position: relative; z-index: 2; }
  .site-header nav {
    position: fixed; inset: var(--header-h) 0 0; z-index: 120;
    flex-direction: column; justify-content: flex-start; gap: 0;
    padding: 24px max(6vw, 24px) 60px; background: var(--paper);
    overflow-y: auto; overscroll-behavior: contain;
    transform: translateX(100%); transition: transform .3s;
  }
  .site-header nav.is-open { transform: translateX(0); }
  .site-header nav > a, .has-sub > a {
    width: 100%; padding: 18px 0; font-size: 18px;
    border-bottom: 1px solid var(--line); justify-content: space-between;
  }
  .site-header nav a::after { display: none; }
  .has-sub { width: 100%; }

  /* 展開指示：手機用明顯的 + / ×，取代桌機的小倒三角 */
  .has-sub > a i {
    width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto;
    border: 1px solid #cabfb2; border-radius: 50%;
    font-size: 17px; line-height: 1; opacity: 1; color: var(--accent-dark);
  }
  .has-sub > a i::before { content: "+"; }
  .has-sub.is-open > a i { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); color: #fff; }
  .has-sub:hover > a i, .has-sub:focus-within > a i { transform: none; }
  .has-sub.is-open:hover > a i, .has-sub.is-open:focus-within > a i { transform: rotate(45deg); }

  /* 必須連 :hover / :focus-within 一起覆蓋 —— 那兩條選擇器權重較高，
     手機點擊會觸發 focus-within，否則桌機的 translate(-50%) 會把選單推出畫面外 */
  .has-sub .submenu,
  .has-sub:hover .submenu,
  .has-sub:focus-within .submenu {
    position: static; left: auto; transform: none;
    opacity: 1; visibility: visible;
    min-width: 0; padding: 4px 0 14px; border: 0; box-shadow: none; background: transparent;
    display: none;
  }
  .has-sub.is-open .submenu,
  .has-sub.is-open:hover .submenu,
  .has-sub.is-open:focus-within .submenu { display: block; }
  .submenu a {
    padding: 15px 18px; background: var(--cream); margin-bottom: 5px;
    font-size: 16px; border-radius: 2px;
  }
  .submenu a span { font-size: 10px; }
  .nav-cta { display: none; }
  body.nav-open { overflow: hidden; }

  .hero { min-height: 560px; }
  .hero-content { max-width: 100%; padding-right: max(6vw, 24px); }

  .intro { grid-template-columns: 1fr; }
  .intro-seal { display: none; }
  .intro-copy { padding-top: 0; }

  .treatment-grid, .treatment-grid.cols-5 { grid-template-columns: repeat(2, 1fr); }
  .treatment-card { min-height: 400px; }

  .clinic-intro { grid-template-columns: 1fr; }
  .ci-media { position: static; }
  .space-section, .cat-hero, .doctor-hero, .map-section,
  .contact-page, .overview, .split, .fit-section, .team-intro,
  .team-values, .doctor-profile, .cta-block, .featured-post, .inner-hero {
    grid-template-columns: 1fr;
  }
  .space-image { aspect-ratio: 16 / 10; }
  .branch-body { grid-template-columns: 1fr; }
  .branch-transport dl { grid-template-columns: 1fr; row-gap: 4px; }
  .branch-transport dt { grid-row: auto; margin-top: 14px; }
  .branch-transport dd { grid-row: auto; }
  /* 醫師頁：手機不套 16:10（會只剩頭），改為自動高度完整呈現整張照片 */
  .doctor-hero { height: auto; }
  .doctor-main-portrait { height: auto; padding: 0; }
  .doctor-main-portrait img { position: static; height: auto; max-height: 68vh; }
  .cat-hero-visual { min-height: 280px; }
  .map-embed iframe { min-height: 320px; }
  .inner-orbit { display: none; }
  .inner-hero > p { margin-top: 18px; }

  .doctor-carousel { grid-auto-columns: calc((100% - 36px) / 3); }
  .popular-grid { grid-template-columns: repeat(2, 1fr); }
  .product-row { grid-template-columns: 1fr; gap: 24px; }
  .product-media { aspect-ratio: 16 / 10; }
  .heading-side { align-items: flex-start; }
  .heading-side > p { text-align: left; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .article-layout aside { position: static; display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
  .article-layout aside p { width: 100%; }
  .article-layout aside a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 99px; }

  .footer-top { grid-template-columns: 1fr 1fr; }
  .news-item { grid-template-columns: 120px 1fr; gap: 20px; }
}

@media (max-width: 640px) {
  .section { padding-inline: 20px; }
  .popular-grid { grid-template-columns: 1fr; }
  .treatment-grid, .treatment-grid.cols-5, .team-grid,
  .post-grid, .value-grid, .process-grid, .steps, .points,
  .fit-list, .fit-list.inline, .credential-grid, .related-grid, .footer-top {
    grid-template-columns: 1fr;
  }
  /* 手機一次一張，露出下一張的邊緣提示可以滑 */
  .doctor-carousel { grid-auto-columns: 82%; gap: 14px; }
  .cnav-btn { width: 42px; height: 42px; }
  .rel-docs { grid-template-columns: repeat(2, 1fr); }
  .hero-foot { font-size: 8px; letter-spacing: .18em; }
  .hero-dots button { width: 22px; }
  .news-item { grid-template-columns: 1fr; }
  .news-arrow { position: static; transform: none; margin-top: 14px; }
  .news-visual { max-width: 160px; }
  .answer-box, .risk-block, .contra-block, .notice-banner { padding: 22px 20px; }
  .tx-page, .article-page { padding-inline: 20px; }
  .floating-actions { right: 14px; bottom: 16px; gap: 8px; }
  .fab { width: 54px; height: 54px; }
  .fab svg { width: 21px; height: 21px; }
  .fab-mark { font-size: 11px; }
  .fab-text { font-size: 8px; }
  .cta-actions { width: 100%; }
}

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

@media print {
  .site-header, .floating-actions, .cta-block, .site-footer nav, .hero-actions { display: none; }
  body { background: #fff; }
}
