/* 天佑復健診所 — 網站樣式 */
/* 字型：Noto Sans TC 子集（內文）＋ Noto Serif TC 子集（標題）。tools/subset_fonts.py 依網站用字產生 */
@font-face { font-family: "TY Sans"; src: url("../fonts/noto-sans-tc.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "TY Serif"; src: url("../fonts/noto-serif-tc-display.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
/* 色彩：取自 Logo（綠 #63c0a8、黃 #f9c056、字 #43403f）的色相，降低彩度成莫蘭迪色調；文字與按鈕用加深色確保 WCAG AA */
:root {
  --logo-green: #63c0a8;   /* Logo 原色（僅作小面積點綴） */
  --logo-yellow: #f9c056;
  --sage-50: #f4f8f7; --sage-100: #eaf1ef; --sage-200: #d4e2df; --sage-300: #b5cfc8; --sage-400: #8db9ad; --sage-500: #6ea697;
  --sage-600: #507c70; --sage-700: #42675d; --sage-800: #355048; --sage-900: #283935;
  --ochre-50: #f9f4eb; --ochre-100: #f4ead7; --ochre-300: #e6c994; --ochre-700: #7e5f25;
  --brand: var(--sage-700);        /* 按鈕、連結（白底 6.3:1） */
  --brand-dark: var(--sage-800);   /* 懸停、深色標題 */
  --brand-soft: var(--sage-100);
  --brand-logo: var(--sage-400);   /* 裝飾線、圖示底 */
  --accent: var(--ochre-300);
  --accent-soft: var(--ochre-50);
  --ink: #43403f;          /* Logo 字色 */
  --muted: #625d5b;
  --line: #e4dfd7;
  --bg: #f7f5f1;           /* 暖灰白 */
  --bg-alt: #efebe4;       /* 灰米色區塊 */
  --card: #ffffff;
  --radius: 16px; --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(67, 64, 63, .05), 0 2px 8px rgba(67, 64, 63, .04);
  --shadow: 0 2px 6px rgba(67, 64, 63, .04), 0 12px 32px rgba(67, 64, 63, .07);
  --shadow-lg: 0 4px 12px rgba(67, 64, 63, .06), 0 24px 48px rgba(67, 64, 63, .10);
  --max: 1200px;
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem; --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem;
  --font: "PingFang TC", "Noto Sans CJK TC", "TY Sans", "Microsoft JhengHei", "Heiti TC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "TY Serif", "Noto Serif CJK TC", "Songti TC", "PMingLiU", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.75; font-size: 1.0625rem; letter-spacing: .02em; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.35; letter-spacing: .04em; color: var(--ink); }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem); margin: 0 0 .5em; }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.3vw, 2rem); margin: 0 0 .6em; }
h3 { font-size: 1.2rem; margin: 0 0 .4em; }
p { margin: 0 0 1em; }
.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 預覽與公告 */
.preview-bar { background: #5b3a8c; color: #fff; text-align: center; font-size: .875rem; padding: .35rem 1rem; }
.announce { background: var(--accent-soft); border-bottom: 1px solid #f1dfb2; font-size: .95rem; }
.announce .container { display: flex; gap: .6rem; align-items: center; padding: .55rem 0; }
.announce svg { flex: none; color: #a8740f; }
.tbc { background: #fde2e2; color: #9b1c1c; border: 1px dashed #d46060; border-radius: 6px; padding: 0 .35em; font-size: .8em; font-weight: 700; white-space: nowrap; }
.tbc-box { border: 2px dashed #d46060; background: #fff6f6; border-radius: var(--radius); padding: .8rem 1rem; color: #7a1d1d; font-size: .95rem; margin: 1rem 0; }

/* 頁首 */
.site-header { background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(1.2) blur(6px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand img { width: 170px; height: auto; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: .45rem .6rem; color: var(--ink); cursor: pointer; font: inherit; font-size: .95rem; align-items: center; gap: .35rem; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .15rem; align-items: center; }
.site-nav a { display: block; padding: .5rem .7rem; border-radius: 10px; text-decoration: none; color: var(--ink); font-size: .98rem; }
.site-nav a:hover { background: var(--brand-soft); color: var(--brand-dark); }
.site-nav a[aria-current="page"] { color: var(--brand); font-weight: 700; box-shadow: inset 0 -3px 0 var(--brand-logo); border-radius: 0; }
.site-nav .nav-cta a { background: var(--brand); color: #fff; font-weight: 700; margin-left: .4rem; border-radius: 999px; padding: .5rem 1rem; }
.site-nav .nav-cta a:hover { background: var(--brand-dark); color: #fff; }
@media (max-width: 1240px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: .5rem 1.25rem 1rem; }
  .site-nav a { padding: .75rem .5rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--brand-logo); padding-left: .9rem; }
  .site-nav .nav-cta a { margin: .75rem 0 0; text-align: center; border: 0; border-radius: 999px; }
  .brand img { width: 140px; }
}

/* 按鈕 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 1.35rem; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; font-size: 1.02rem; line-height: 1.2; min-height: 48px; transition: background .15s, color .15s, border-color .15s; }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-line { background: #047a34; color: #fff; }
.btn-line:hover { background: #03652b; color: #fff; }
.btn-outline { border-color: var(--brand); color: var(--brand); background: #fff; }
.btn-outline:hover { background: var(--brand-soft); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* 首頁主視覺 */
.hero { position: relative; background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 2.5rem; align-items: center; padding: 3.5rem 0 3rem; }
.hero-eyebrow { display: inline-block; background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; font-size: .9rem; padding: .25rem .8rem; border-radius: 999px; margin-bottom: 1rem; }
.hero h1 span { color: var(--brand); }
.hero-lead { font-size: 1.1rem; color: var(--muted); max-width: 34em; }
.hero-photo { position: relative; }
.hero-photo img { border-radius: 22px; box-shadow: var(--shadow); aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.hero-photo::before { content: ""; position: absolute; inset: auto -18px -18px auto; width: 55%; height: 55%; background: var(--accent-soft); border-radius: 22px; z-index: -1; }
.hero-facts { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1.5rem; color: var(--muted); font-size: .95rem; padding: 0; list-style: none; }
.hero-facts li { display: flex; align-items: center; gap: .4rem; }
.hero-facts svg { color: var(--brand); width: 1.1em; height: 1.1em; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; padding: 2rem 0; gap: 1.5rem; } .hero-photo { order: -1; } .hero-photo::before { display: none; } }

/* 快速資訊卡 */
.quick { margin-top: -.5rem; }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.quick-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.35rem; box-shadow: var(--shadow); }
.quick-card h2 { font-size: 1.1rem; display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.quick-card h2 svg { color: var(--brand); width: 1.3em; height: 1.3em; }
.quick-card p, .quick-card ul { margin: 0 0 .5rem; color: var(--muted); font-size: .98rem; }
.quick-card ul { padding-left: 0; list-style: none; }
@media (max-width: 860px) { .quick-grid { grid-template-columns: 1fr; } }

/* 區塊 */
.section { padding: 4rem 0; }
.section-alt { background: #fff; border-block: 1px solid var(--line); }
.section-head { max-width: 46em; margin-bottom: 2rem; }
.section-head .kicker { color: var(--brand); font-weight: 700; letter-spacing: .12em; font-size: .9rem; margin-bottom: .3rem; }
.section-head p { color: var(--muted); }
.page-hero { background: linear-gradient(135deg, var(--brand-soft), #fff 70%); border-bottom: 1px solid var(--line); padding: 2.75rem 0 2.25rem; }
.page-hero p { color: var(--muted); max-width: 44em; margin: 0; }
.breadcrumb { font-size: .9rem; margin-bottom: .6rem; color: var(--muted); }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.breadcrumb li + li::before { content: "›"; margin-right: .35rem; color: #aaa; }

/* 卡片格線 */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card-body { padding: 1.25rem 1.35rem 1.4rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.card-body p { color: var(--muted); margin: 0; font-size: .98rem; }
.card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.card .more { margin-top: auto; padding-top: .6rem; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: .3rem; }
.card .more::after { content: "→"; transition: transform .15s; }
.card a.more:hover::after { transform: translateX(3px); }
.card-link { text-decoration: none; color: inherit; }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; padding: .1rem .55rem; border-radius: 999px; background: var(--accent-soft); color: #8a5d05; vertical-align: middle; margin-left: .3rem; }

/* 關於／價值 */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.value { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; border-top: 4px solid var(--brand-logo); }
.value h3 { color: var(--brand-dark); }
.value p { margin: 0; color: var(--muted); font-size: .97rem; }
@media (max-width: 960px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .values { grid-template-columns: 1fr; } }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.split img { border-radius: 18px; box-shadow: var(--shadow); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* 清單 */
.checklist { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .45rem; }
.checklist li { padding-left: 1.7rem; position: relative; }
.checklist li::before { content: ""; position: absolute; left: .2rem; top: .6em; width: .75rem; height: .45rem; border-left: 3px solid var(--brand); border-bottom: 3px solid var(--brand); transform: rotate(-45deg); }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li { background: var(--brand-soft); color: var(--brand-dark); border-radius: 999px; padding: .3rem .85rem; font-size: .95rem; }
.cond-group { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.35rem; }
.cond-group h3 { font-size: 1.08rem; color: var(--brand-dark); margin-bottom: .75rem; }
.note { background: var(--brand-soft); border-left: 4px solid var(--brand); border-radius: 0 var(--radius) var(--radius) 0; padding: .9rem 1.1rem; color: var(--ink); font-size: .96rem; margin: 1.5rem 0; }

/* 醫師 */
.doctor { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 1.75rem; box-shadow: var(--shadow); scroll-margin-top: 90px; }
.doctor + .doctor { margin-top: 1.5rem; }
.doctor-photo img, .avatar { border-radius: 16px; width: 100%; aspect-ratio: 37/36; object-fit: cover; background: var(--brand-soft); }
.avatar { display: grid; place-items: center; color: var(--brand); border: 2px dashed #b9d9cf; }
.avatar svg { width: 45%; height: 45%; opacity: .6; }
.doctor h2 { margin-bottom: .2rem; }
.doctor h2 small { font-size: .65em; color: var(--muted); font-weight: 500; margin-left: .3rem; }
.doctor h3 { font-size: 1.02rem; color: var(--brand-dark); margin: 1.2rem 0 .4rem; }
.doctor ul.bio { margin: 0; padding-left: 1.2rem; color: var(--ink); }
.doctor ul.bio li { margin: .15rem 0; }
.doctor blockquote { margin: 1.2rem 0 0; padding: 1rem 1.2rem; background: var(--accent-soft); border-radius: 12px; color: #5a4a2a; }
@media (max-width: 760px) { .doctor { grid-template-columns: 1fr; padding: 1.25rem; } .doctor-photo { max-width: 240px; } }
.team-card .card-body { align-items: flex-start; }
.team-card img, .team-card .avatar { aspect-ratio: 37/36; }

/* 儀器 */
.equip img { aspect-ratio: 1; object-fit: cover; background: #f3f1ee; }
.equip .chips li { font-size: .82rem; padding: .15rem .6rem; background: #f3f1ee; color: var(--muted); }

/* 相簿 */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; list-style: none; padding: 0; margin: 0; }
.gallery figure { margin: 0; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.gallery img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.gallery figcaption { padding: .55rem .9rem; font-size: .92rem; color: var(--muted); }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }

/* 時間表 */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
table.hours { border-collapse: collapse; width: 100%; min-width: 560px; text-align: center; }
table.hours caption { text-align: left; padding: .9rem 1rem; font-weight: 700; font-size: 1.05rem; }
table.hours th, table.hours td { padding: .7rem .5rem; border-top: 1px solid var(--line); }
table.hours thead th { background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; }
table.hours tbody th { text-align: left; padding-left: 1rem; white-space: nowrap; font-weight: 700; }
table.hours tbody th small { display: block; font-weight: 400; color: var(--muted); font-size: .82rem; }
table.hours .today { background: #fff8e6; }
.rehab-list { list-style: none; padding: 0; margin: 0; }
.rehab-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed var(--line); }
.rehab-list li span:last-child { font-weight: 700; font-variant-numeric: tabular-nums; }

/* 地圖與聯絡 */
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #eee; aspect-ratio: 4/3; }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.contact-list { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: .8rem; }
.contact-list li { display: flex; gap: .75rem; align-items: flex-start; }
.contact-list svg { color: var(--brand); flex: none; width: 1.35rem; height: 1.35rem; margin-top: .25rem; }
.transport { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.transport li { display: flex; gap: .9rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; }
.transport .ticon { flex: none; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.transport .ticon svg { width: 1.35rem; height: 1.35rem; }
.transport strong { display: block; }

/* CTA 區塊 */
.cta-band { background: var(--brand); color: #fff; border-radius: 22px; padding: 2rem 2.25rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; }
.cta-band h2 { color: #fff; margin: 0 0 .2rem; }
.cta-band p { margin: 0; }
.cta-band .btn-outline { border-color: #fff; color: var(--brand-dark); }
.cta-band .btn-primary { background: #fff; color: var(--brand-dark); }
.cta-band .btn-primary:hover { background: var(--accent-soft); }

/* 頁尾 */
.site-footer { background: #2b2927; color: #d9d4cf; margin-top: 4rem; padding: 3rem 0 6rem; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; }
.footer-grid h2 { color: #fff; font-size: 1.05rem; margin-bottom: .75rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.footer-logo { background: #fff; border-radius: 10px; padding: .5rem .7rem; display: inline-block; margin-bottom: 1rem; }
.footer-logo img { width: 150px; }
.social { display: flex; gap: .6rem; margin-top: 1rem; }
.social a { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; }
.social a:hover { background: rgba(255,255,255,.2); }
.social svg { width: 20px; height: 20px; fill: currentColor; color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2rem; padding-top: 1.25rem; font-size: .85rem; color: #aaa39d; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }

/* 手機底部固定按鈕 */
.mobile-actions { display: none; }
@media (max-width: 760px) {
  .mobile-actions { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0,0,0,.06); padding-bottom: env(safe-area-inset-bottom); }
  .mobile-actions a { display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .5rem 0 .55rem; text-decoration: none; font-size: .82rem; font-weight: 700; color: var(--ink); min-height: 56px; justify-content: center; }
  .mobile-actions a svg { width: 22px; height: 22px; }
  .mobile-actions .ma-call svg { color: var(--brand); }
  .mobile-actions .ma-line svg { color: #047a34; }
  .mobile-actions .ma-book { background: var(--brand); color: #fff; }
  body { padding-bottom: 56px; }
}
.prose { max-width: 46em; }
.prose p { color: var(--ink); }
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.aside-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem; box-shadow: var(--shadow); position: sticky; top: 96px; }
.aside-card h2 { font-size: 1.1rem; }
.mini-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-top: 1.5rem; }
.mini-gallery img { border-radius: 12px; aspect-ratio: 16/10; object-fit: cover; }
@media print { .site-header, .mobile-actions, .announce, .preview-bar, .site-footer { display: none; } body { background: #fff; } }
/* 避免格線內容撐破版面 */
.two-col > *, .split > *, .hero-grid > *, .grid > *, .quick-grid > *, .footer-grid > * { min-width: 0; }
body { overflow-wrap: break-word; }
.announce p { min-width: 0; }
/* 螢幕閱讀器專用文字不可撐開版面 */
a, th, .table-wrap { position: relative; }
.skip-link { position: absolute; }
html, body { overflow-x: clip; }
svg { width: 1.2em; height: 1.2em; }
.announce svg { width: 1.3rem; height: 1.3rem; }
@media (max-width: 620px) {
  table.hours { min-width: 0; font-size: .9rem; }
  table.hours th, table.hours td { padding: .55rem .15rem; }
  table.hours tbody th { padding-left: .6rem; white-space: normal; min-width: 5.2em; }
}
@media (max-width: 620px) { table.hours { table-layout: fixed; } table.hours thead th:first-child, table.hours tbody th { width: 30%; } }
.card-soft .card-body { justify-content: center; background: var(--brand-soft); } .card-soft a { color: var(--brand-dark); }

/* 門診表：醫師代表色 */
.doc-dot { display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--c); color: #fff; font-weight: 700; font-size: 1rem; line-height: 1; box-shadow: 0 1px 3px rgba(0,0,0,.15); flex: none; }
table.hours td.cell-doc { vertical-align: middle; }
table.hours td.cell-doc .doc-dot { display: grid; margin: 0 auto .25rem; }
table.hours .doc-name { display: block; font-size: .88rem; white-space: nowrap; }
table.hours .cell-time { display: block; font-size: .78rem; color: var(--ink); font-weight: 700; white-space: nowrap; }
table.hours .cell-none { color: #6b6460; }
table.hours .cell-sun { background: #f3f1ee; font-weight: 700; color: var(--ink); letter-spacing: .3em; writing-mode: vertical-rl; text-orientation: upright; }
.doc-legend { list-style: none; padding: 0; margin: .9rem 0 .4rem; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; }
.doc-legend li { display: flex; align-items: center; gap: .45rem; font-size: .95rem; }
.doc-legend .doc-dot { width: 1.6rem; height: 1.6rem; font-size: .8rem; }
.hours-notes { margin: .4rem 0 .6rem; padding-left: 1.2rem; font-weight: 700; color: var(--ink); }
.quick-sessions { list-style: none; padding: 0; margin: 0 0 .5rem; }
.quick-sessions li { display: flex; gap: .6rem; }
.quick-sessions strong { color: var(--brand-dark); flex: none; }
.doc-sessions { font-size: .9rem !important; color: var(--brand-dark) !important; }
.session-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.session-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px dashed var(--line); }
.session-list li span:last-child { font-weight: 700; font-variant-numeric: tabular-nums; }
.rehab-list li { align-items: flex-start; }
.rl-val { display: flex; flex-direction: column; align-items: flex-end; gap: .2rem; text-align: right; }
.rl-slot strong { display: block; font-variant-numeric: tabular-nums; }
.rl-slot small { display: block; color: #9b2c2c; font-size: .85rem; }
.two-col > .doctor { grid-template-columns: 220px 1fr; }
@media (max-width: 760px) { .two-col > .doctor { grid-template-columns: 1fr; } }
@media (max-width: 620px) {
  table.hours .doc-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.hours td.cell-doc .doc-dot { width: 1.9rem; height: 1.9rem; font-size: .9rem; margin-bottom: .1rem; }
  table.hours .cell-time { font-size: .62rem; white-space: normal; line-height: 1.2; }
}
.role-badge { display: inline-block; background: var(--brand-dark); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .08em; padding: .15rem .5rem; border-radius: 999px; margin-right: .45rem; vertical-align: .15em; line-height: 1.4; }
.doc-legend .role-badge { margin: 0 0 0 .2rem; }
.team-card { position: relative; }
.role-badge.on-photo { position: absolute; top: .8rem; left: .8rem; font-size: .9rem; padding: .3rem .8rem; margin: 0; box-shadow: 0 2px 6px rgba(0,0,0,.2); }

/* =========================================================
   2026 精緻化（莫蘭迪綠）— 覆寫上方基礎樣式
   ========================================================= */
body { font-size: clamp(1rem, .97rem + .15vw, 1.0625rem); line-height: 1.85; letter-spacing: .03em; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
/* 中文斷行：標題只在標點、空白與 <wbr>（詞組邊界）斷行；段落避免孤字 */
p, li, dd, figcaption, blockquote, td, .note, .tbc-box, .card-body, .quick-card { text-wrap: pretty; line-break: strict; }
h1, h2, h3, h4, .eyebrow, .kicker, .btn, .site-nav a, .breadcrumb li, .tag, .chips li, .role-badge, .hero-eyebrow {
  word-break: keep-all; overflow-wrap: anywhere; line-break: strict; }
h1, h2, h3, h4 { text-wrap: balance; }
.nowrap { white-space: nowrap; }
h1, h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: .08em; line-height: 1.42; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 1.35rem + 2.3vw, 3rem); }
h2 { font-size: clamp(1.5rem, 1.22rem + 1.2vw, 2.15rem); }
h3 { font-size: clamp(1.08rem, 1.03rem + .25vw, 1.2rem); font-weight: 700; letter-spacing: .05em; line-height: 1.55; }
.quick-card h2, .aside-card h2, .footer-grid h2, .doctor h3, .cond-group h3 { font-family: var(--font); font-weight: 700; letter-spacing: .06em; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid var(--ochre-300); outline-offset: 3px; }
.container { width: min(100% - 2.5rem, var(--max)); }
@media (max-width: 400px) { .container { width: min(100% - 2rem, var(--max)); } }

/* 預覽列（上線後移除） */
.preview-bar { background: #5d4e75; letter-spacing: .1em; }

/* 頂部資訊列（桌機） */
.topbar { background: var(--bg-alt); color: var(--muted); font-size: .84rem; letter-spacing: .06em; }
.topbar-inner { display: flex; justify-content: flex-end; gap: 1.75rem; padding: .45rem 0; }
.topbar span { display: inline-flex; align-items: center; gap: .4rem; }
.topbar svg { width: 1rem; height: 1rem; color: var(--sage-600); }
.topbar a { color: var(--ink); text-decoration: none; font-weight: 700; }
.topbar a:hover { color: var(--brand); text-decoration: underline; }
@media (max-width: 1240px) { .topbar { display: none; } }

/* 頁首與選單 */
.site-header { background: rgba(255, 255, 255, .92); border-bottom: 1px solid rgba(67, 64, 63, .07); box-shadow: 0 1px 0 rgba(255,255,255,.6), 0 6px 20px rgba(67, 64, 63, .04); }
.header-inner { min-height: 78px; }
.site-nav a { font-size: .95rem; letter-spacing: .12em; padding: .5rem .75rem; white-space: nowrap; color: var(--ink); }
.site-nav a:hover { background: var(--sage-50); color: var(--brand-dark); }
.site-nav a[aria-current="page"] { color: var(--brand-dark); box-shadow: inset 0 -2px 0 var(--sage-400); }
.site-nav .nav-cta a { background: var(--brand); letter-spacing: .1em; padding: .55rem 1.2rem; box-shadow: 0 6px 16px rgba(66, 103, 93, .22); }
.site-nav .nav-cta a:hover { background: var(--brand-dark); }
@media (max-width: 1240px) {
  .site-nav a { letter-spacing: .1em; }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--sage-400); }
  .nav-toggle { border-color: var(--line); letter-spacing: .1em; }
}

/* 按鈕 */
.btn { letter-spacing: .08em; font-weight: 700; padding: .82rem 1.5rem; transition: background .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s; white-space: nowrap; }
.btn-primary { background: var(--brand); box-shadow: 0 8px 20px rgba(66, 103, 93, .22); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(66, 103, 93, .28); }
.btn-outline { border: 1.5px solid var(--sage-600); color: var(--brand-dark); background: rgba(255,255,255,.85); }
.btn-outline:hover { background: var(--sage-50); border-color: var(--brand-dark); color: var(--brand-dark); }
.btn-line { background: #06793a; }
.btn-line:hover { background: #05652f; }
@media (max-width: 400px) { .btn { padding: .78rem 1.1rem; letter-spacing: .04em; } }

/* 小標：英文＋中文、Logo 雙色圓點 */
.eyebrow, .kicker { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .7rem; margin: 0 0 .7rem; color: var(--brand); font-weight: 700; font-size: .9rem; letter-spacing: .16em; }
.eyebrow .en { text-transform: uppercase; font-size: .74rem; letter-spacing: .26em; font-weight: 700; color: var(--brand); display: inline-flex; align-items: center; gap: .7rem; }
.eyebrow .en:not(:last-child)::after { content: ""; width: 1.5rem; height: 1px; background: var(--sage-400); }
.section-head .kicker { color: var(--brand); letter-spacing: .16em; font-size: .9rem; }
.logo-dots { display: flex; gap: .4rem; margin: .1rem 0 1.1rem; }
.logo-dots i { width: .5rem; height: .5rem; border-radius: 50%; background: var(--sage-400); }
.logo-dots i + i { background: var(--ochre-300); }
.section-head { margin-bottom: clamp(1.75rem, 1.2rem + 1.5vw, 2.75rem); }
.section-head h2 { margin-bottom: .45rem; }
.section-head.center { text-align: center; margin-inline: auto; max-width: 42em; }
.section-head.center .eyebrow, .section-head.center .logo-dots { justify-content: center; }
.section-head p { color: var(--muted); margin: 0; }

/* 區塊節奏 */
.section { padding: clamp(3.5rem, 2.4rem + 4.5vw, 6.5rem) 0; }
.section-alt { background: var(--bg-alt); border: 0; }
.section-tint { background: radial-gradient(1200px 400px at 85% 0%, var(--sage-100), transparent 70%), var(--sage-50); }
.cta-section { padding-top: clamp(3rem, 2rem + 3vw, 5rem); }

/* 首頁主視覺：滿版照片＋暖灰漸層 */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--bg); min-height: clamp(540px, 74vh, 720px); display: grid; align-items: center; }
.hero-media { position: absolute; inset: 0 0 0 36%; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; box-shadow: none; aspect-ratio: auto; filter: saturate(.85); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, var(--bg) 0%, var(--bg) 34%, rgba(247, 245, 241, .88) 44%, rgba(247, 245, 241, .35) 62%, rgba(247, 245, 241, 0) 78%); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; z-index: -1; background: linear-gradient(0deg, var(--bg), rgba(247, 245, 241, 0)); }
.hero-inner { padding: clamp(3rem, 2rem + 4vw, 5rem) 0 clamp(5.5rem, 4rem + 4vw, 7.5rem); }
.hero-copy { max-width: 35rem; }
.hero-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .8rem; background: none; padding: 0; margin: 0 0 1.1rem; color: var(--brand); font-size: .92rem; font-weight: 700; letter-spacing: .16em; border-radius: 0; }
.hero-eyebrow .en { text-transform: uppercase; font-size: .72rem; letter-spacing: .28em; display: inline-flex; align-items: center; gap: .8rem; }
.hero-eyebrow .en::after { content: ""; width: 1.5rem; height: 1px; background: var(--sage-400); }
.hero h1 { margin-bottom: .7em; }
.hero h1 .h1-name { display: block; font-size: .5em; letter-spacing: .32em; color: var(--brand); margin-bottom: .45em; }
.hero h1 .h1-tag { display: block; color: var(--ink); letter-spacing: .12em; }
.hero-lead { font-size: clamp(1rem, .96rem + .25vw, 1.1rem); color: var(--muted); max-width: 30em; margin-bottom: 1.75rem; }
@media (max-width: 860px) {
  .hero { display: block; min-height: 0; }
  .hero-media { position: relative; inset: auto; height: min(62vw, 420px); }
  .hero::before { display: none; }
  .hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(247,245,241,0) 55%, var(--bg) 100%); }
  .hero::after { display: none; }
  .hero-inner { padding: 0 0 3.5rem; margin-top: -2.5rem; position: relative; }
  .hero h1 .h1-name { letter-spacing: .24em; }
}

/* 快速資訊卡（疊在主視覺下緣） */
.quick { margin-top: clamp(-5rem, -3rem - 2vw, -3.5rem); position: relative; z-index: 2; }
.quick-grid { gap: clamp(1rem, .6rem + 1vw, 1.5rem); }
.quick-card { border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 1.6rem 1.6rem 1.4rem; display: flex; flex-direction: column; }
.quick-card h2 { font-size: 1.12rem; gap: .7rem; margin-bottom: .8rem; }
.quick-card .qi { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--sage-100); display: grid; place-items: center; flex: none; }
.quick-card .qi svg { width: 1.2rem; height: 1.2rem; color: var(--brand); }
.quick-card .more { margin-top: auto; padding-top: .4rem; font-weight: 700; text-decoration: none; letter-spacing: .08em; }
.quick-card .more::after, .card .more::after { content: "→"; margin-left: .35rem; display: inline-block; transition: transform .2s; }
.quick-card .more:hover::after { transform: translateX(3px); }
.quick-sessions li { display: grid; grid-template-columns: 3em 1fr; gap: .5rem; padding: .15rem 0; }
@media (max-width: 860px) { .quick { margin-top: 0; } }

/* 圖片框：錯位色塊 */
.split { gap: clamp(2rem, 1rem + 4vw, 4.5rem); }
.framed { position: relative; }
.framed::before { content: ""; position: absolute; inset: 1.4rem -1.4rem -1.4rem 1.4rem; border-radius: var(--radius-lg); background: var(--sage-100); z-index: -1; }
.framed img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.split > .framed { isolation: isolate; }
@media (max-width: 860px) { .framed::before { inset: .9rem -.6rem -.9rem .9rem; } }

/* 卡片 */
.grid { gap: clamp(1rem, .6rem + 1.2vw, 1.75rem); }
.card { border: 1px solid rgba(67, 64, 63, .06); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-media { position: relative; overflow: hidden; }
.card-media img { transition: transform .6s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-num { position: absolute; left: 1rem; top: 1rem; font-family: var(--font-display); font-weight: 600; font-size: .95rem; letter-spacing: .12em; color: #fff; background: rgba(40, 57, 53, .72); padding: .2rem .7rem; border-radius: 999px; backdrop-filter: blur(4px); }
.card-body { padding: 1.35rem 1.5rem 1.5rem; gap: .5rem; }
.card-body h3 { margin: 0; }
.card-body p { color: var(--muted); font-size: .97rem; }
.card .more { color: var(--brand); letter-spacing: .08em; font-size: .95rem; }
.card .more::after { content: "→"; }
.tag { background: var(--ochre-100); color: var(--ochre-700); letter-spacing: .08em; }
.card-soft { background: var(--sage-100); border: 0; box-shadow: none; }
.card-soft .card-body { background: transparent; }
.card-soft a { color: var(--brand-dark); }
@media (prefers-reduced-motion: reduce) { .card:hover, .card:hover .card-media img, .btn-primary:hover { transform: none; } }

/* 醫師卡片 */
.team-card .card-body { align-items: center; text-align: center; }
.team-card img, .team-card .avatar { background: var(--sage-50); }
.team-card h3 { font-size: 1.15rem; letter-spacing: .08em; }
.team-card .doc-sessions { color: var(--muted) !important; font-size: .88rem !important; }
.role-badge { background: var(--ochre-300); color: var(--ink); letter-spacing: .14em; font-weight: 700; }
.role-badge.on-photo { top: 1rem; left: 1rem; padding: .3rem .9rem; box-shadow: 0 4px 12px rgba(67, 64, 63, .18); }

/* 看診流程 */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 3.35rem; left: 12.5%; right: 12.5%; height: 1px; background: repeating-linear-gradient(90deg, var(--sage-300) 0 6px, transparent 6px 12px); }
.step { text-align: center; position: relative; }
.step-no { display: block; font-family: var(--font-display); font-weight: 600; color: var(--ochre-700); letter-spacing: .16em; font-size: .9rem; margin-bottom: .4rem; }
.step-icon { width: 4.25rem; height: 4.25rem; margin: 0 auto 1rem; border-radius: 50%; background: #fff; border: 1px solid var(--sage-200); box-shadow: var(--shadow-sm); display: grid; place-items: center; position: relative; }
.step-icon svg { width: 1.6rem; height: 1.6rem; color: var(--brand); }
.step h3 { margin-bottom: .35rem; }
.step p { color: var(--muted); font-size: .95rem; margin: 0 auto; max-width: 16em; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, 1fr); row-gap: 2.25rem; } .steps::before { display: none; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* 內頁標題區 */
.page-hero { position: relative; isolation: isolate; text-align: center; border: 0; padding: clamp(2.75rem, 2rem + 3.5vw, 5rem) 0 clamp(2.5rem, 1.8rem + 3vw, 4.25rem);
  background: radial-gradient(800px 260px at 15% 0%, rgba(181, 207, 200, .45), transparent 70%), radial-gradient(700px 240px at 90% 100%, rgba(244, 234, 215, .7), transparent 70%), var(--sage-50);
  border-radius: 0 0 50% 50% / 0 0 2.25rem 2.25rem; }
.page-hero .breadcrumb ol { justify-content: center; }
.page-hero .eyebrow { justify-content: center; margin-bottom: .5rem; }
.page-hero h1 { margin: 0 auto .35em; max-width: 22em; }
.page-hero p { margin: 0 auto; max-width: 40em; color: var(--muted); }
.breadcrumb { font-size: .85rem; letter-spacing: .08em; margin-bottom: 1.1rem; }
.breadcrumb li { white-space: nowrap; }
.breadcrumb li + li::before { color: var(--sage-400); }

/* 其他元件換色 */
.chips li { background: var(--sage-100); color: var(--sage-800); letter-spacing: .05em; }
.note { background: var(--sage-50); border-left-color: var(--sage-400); }
.value { border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border-top: 3px solid var(--sage-400); }
.value h3 { color: var(--brand-dark); }
.cond-group { border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.cond-group h3 { color: var(--brand-dark); }
.doctor { border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.doctor h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem); display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .5rem; }
.doctor h2 small { margin-left: 0; font-family: var(--font); }
.doctor h2 .role-badge { font-family: var(--font); font-size: .8rem; margin: 0; }
.doctor h3 { color: var(--brand-dark); }
.doctor blockquote { background: var(--ochre-50); color: #5c4a2c; border-radius: var(--radius); }
.aside-card { border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.transport li, .gallery figure, .map-embed { border-color: rgba(67, 64, 63, .08); border-radius: var(--radius-lg); }
.transport .ticon { background: var(--sage-100); color: var(--brand); }
.contact-list svg { color: var(--sage-600); }
.checklist li::before { border-color: var(--sage-600); }
.table-wrap { border-radius: var(--radius-lg); border-color: rgba(67, 64, 63, .08); box-shadow: var(--shadow-sm); }
table.hours thead th { background: var(--sage-100); color: var(--sage-800); letter-spacing: .1em; }
table.hours .today { background: var(--ochre-50); }
table.hours caption { font-family: var(--font-display); font-weight: 600; letter-spacing: .08em; }
.rl-slot small { color: #8a3b33; }
.mini-gallery img, .split img { border-radius: var(--radius-lg); }

/* 預約區 */
.cta-band { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius-lg); padding: clamp(2rem, 1.4rem + 2.5vw, 3.25rem) clamp(1.5rem, 1rem + 3vw, 3.5rem);
  background: radial-gradient(500px 220px at 100% 0%, rgba(141, 185, 173, .45), transparent 70%), radial-gradient(420px 200px at 0% 100%, rgba(230, 201, 148, .25), transparent 70%), var(--sage-700); }
.cta-band .eyebrow { color: var(--sage-100); margin-bottom: .3rem; }
.cta-band .eyebrow .en { color: var(--sage-100); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #eef3f1; }
.cta-band .btn-primary { background: #fff; color: var(--sage-800); box-shadow: none; }
.cta-band .btn-primary:hover { background: var(--ochre-50); color: var(--sage-900); }
.cta-band .btn-outline { background: transparent; border-color: rgba(255,255,255,.85); color: #fff; }
.cta-band .btn-outline:hover { background: rgba(255,255,255,.12); color: #fff; }

/* 頁尾：Logo 字色炭灰 */
.site-footer { background: var(--ink); color: #e9e5e0; margin-top: clamp(3rem, 2rem + 3vw, 5rem); }
.footer-grid h2 { color: #fff; letter-spacing: .12em; }
.footer-bottom { color: #c9c3bd; border-top-color: rgba(255,255,255,.14); }
.social a { background: rgba(255,255,255,.1); }

/* 手機底部按鈕 */
@media (max-width: 760px) {
  .mobile-actions { box-shadow: 0 -6px 20px rgba(67, 64, 63, .08); }
  .mobile-actions .ma-call svg { color: var(--brand); }
  .mobile-actions .ma-line svg { color: #06793a; }
  .mobile-actions .ma-book { background: var(--brand); }
}
.hero-copy { max-width: 40rem; }
.hero-copy .hero-lead { max-width: 30em; }
.hero .btn-row { gap: .65rem; }

/* 最新消息 */
.news-card { position: relative; }
.news-card h2, .news-card h3 { font-family: var(--font); font-size: clamp(1.08rem, 1.03rem + .25vw, 1.2rem); font-weight: 700; letter-spacing: .05em; line-height: 1.55; margin: 0; }
.news-card a.stretched { color: var(--ink); text-decoration: none; }
.news-card a.stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.news-card a.stretched:hover { color: var(--brand-dark); }
.news-card a.stretched:focus-visible { outline: none; }
.news-card:focus-within { outline: 3px solid var(--ochre-300); outline-offset: 3px; }
.news-card .more { margin-top: auto; padding-top: .4rem; }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; margin: 0 0 .2rem; font-size: .85rem; color: var(--muted); letter-spacing: .08em; }
.news-meta time { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--sage-700); }
.news-meta.center { justify-content: center; margin-top: .3rem; }
.news-cat, .news-pin { display: inline-block; font-size: .76rem; font-weight: 700; letter-spacing: .1em; padding: .1rem .6rem; border-radius: 999px; line-height: 1.6; }
.cat-clinic { background: var(--sage-100); color: var(--sage-800); }
.cat-notice { background: var(--ochre-100); color: var(--ochre-700); }
.cat-edu { background: #e6ecf2; color: #3c566f; }
.news-pin { background: var(--sage-700); color: #fff; }
.section-news { background: var(--bg); }
.center-link { text-align: center; margin: clamp(1.75rem, 1.2rem + 1.5vw, 2.5rem) 0 0; }
.empty-state { text-align: center; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 3rem 1.5rem; color: var(--muted); }
.container.narrow { max-width: 780px; }
.news-article { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: clamp(1.5rem, 1rem + 2.5vw, 3rem); }
.news-article .prose { max-width: none; }
.news-article .prose h2 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); margin: 1.6em 0 .6em; }
.news-article .prose ul { padding-left: 1.3rem; margin: 0 0 1em; }
.news-article .prose li { margin: .25rem 0; }
.news-figure { margin: 0 0 1.5rem; }
.news-figure img { border-radius: var(--radius); width: 100%; }
.news-more { margin-top: 2rem; }
.news-more h2 { font-family: var(--font); font-size: 1.1rem; font-weight: 700; letter-spacing: .08em; }
.news-more ul { list-style: none; padding: 0; margin: 0; }
.news-more li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px dashed var(--line); }
.news-more time { color: var(--muted); font-size: .88rem; white-space: nowrap; }
.news-back { margin-top: 2rem; }
.news-hero h1 { max-width: 20em; }
.brand { flex: none; }

/* 消息少於 3 則時置中 */
.news-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 360px)); justify-content: center; }
/* 沒有實景照片的服務：圖示底圖（不使用生成圖片） */
.media-icon { aspect-ratio: 16/10; display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, var(--sage-100), var(--sage-200)); color: var(--sage-700); }
.media-icon svg { width: 22%; height: auto; aspect-ratio: 1; opacity: .85; }
.media-icon-lg { border-radius: 18px; margin-bottom: 1.5rem; aspect-ratio: 16/7; }
.media-icon-lg svg { width: 14%; }
.type-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 0 0 1.5rem; }
.type-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.2rem 1.3rem; border-top: 3px solid var(--sage-400); }
.type-card + .type-card { border-top-color: var(--ochre-300); }
.type-card h3 { margin: 0 0 .4rem; color: var(--brand-dark); }
.type-card p { margin: 0; color: var(--muted); font-size: .97rem; }
@media (max-width: 620px) { .type-grid { grid-template-columns: 1fr; } }

/* ===== 頁首重整（2026-09）：三欄置中＋向量 Logo ===== */
html { scrollbar-gutter: stable; }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.25rem; min-height: 84px; }
.brand { justify-self: start; }
.brand img { width: auto; max-width: none; height: 48px; display: block; }
.site-nav { justify-self: center; }
.site-nav ul { gap: 0; }
.site-nav a { letter-spacing: .06em; padding: .5rem .56rem; }
.header-cta { justify-self: end; }
.header-cta-btn { display: inline-flex; align-items: center; gap: .45rem; background: var(--brand); color: #fff; font-weight: 700; letter-spacing: .1em; text-decoration: none; border-radius: 999px; padding: .6rem 1.25rem; white-space: nowrap; box-shadow: 0 6px 16px rgba(66, 103, 93, .22); transition: background .2s; }
.header-cta-btn svg { width: 1.05rem; height: 1.05rem; }
.header-cta-btn:hover { background: var(--brand-dark); color: #fff; }
@media (min-width: 1241px) {
  .site-nav .nav-cta { display: none; }
}
@media (min-width: 1241px) and (max-width: 1300px) {
  .brand img { height: 46px; }
  .site-nav a { letter-spacing: .05em; padding: .5rem .5rem; }
}
@media (max-width: 1240px) {
  .header-inner { display: flex; justify-content: space-between; min-height: 68px; }
  .header-cta { display: none; }
  .brand img { width: auto; height: 42px; }
}
@media (max-width: 400px) { .brand img { height: 38px; } }
/* 頂部資訊列：與內容同寬的容器，三項左右分散 */
.topbar-inner { justify-content: space-between; }
/* 頁尾反白 Logo（不再需要白底框） */
.footer-logo { background: none; padding: 0; border-radius: 0; }
.footer-logo img { width: auto; height: 48px; display: block; }

/* ===== 跑馬燈（最新公告） ===== */
.ticker { background: var(--sage-800); color: #fff; font-size: .9rem; letter-spacing: .06em; }
.ticker-inner { display: flex; align-items: center; gap: .9rem; min-height: 40px; }
.ticker-label { flex: none; display: inline-flex; align-items: center; gap: .35rem; background: var(--ochre-300); color: var(--sage-900); font-weight: 700; font-size: .82rem; padding: .2rem .7rem; border-radius: 999px; text-decoration: none; }
.ticker-label svg { width: .95rem; height: .95rem; }
.ticker-label:hover { background: #fff; color: var(--sage-900); }
.ticker-viewport { flex: 1; min-width: 0; overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 2rem, #000 calc(100% - 2rem), transparent); mask-image: linear-gradient(90deg, transparent, #000 2rem, #000 calc(100% - 2rem), transparent); }
.ticker-track { display: flex; width: max-content; }
.ticker-group { display: flex; list-style: none; margin: 0; padding: 0 0 0 2rem; }
.ticker-group li { white-space: nowrap; padding-right: 3.5rem; position: relative; }
.ticker-group li::after { content: ""; position: absolute; right: 1.6rem; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: var(--ochre-300); transform: translateY(-50%); }
.ticker-group a, .ticker-group li > span, .ticker-group .tk-plain { color: #fff; text-decoration: none; display: inline-flex; gap: .6rem; align-items: baseline; padding: .45rem 0; }
.ticker-group a:hover span { text-decoration: underline; text-underline-offset: 3px; }
.tk-prefix { color: var(--ochre-300); font-weight: 700; }
.ticker-group time { color: var(--sage-200); font-size: .82rem; font-variant-numeric: tabular-nums; }
.ticker.is-animated .ticker-track { animation: ticker-scroll var(--ticker-dur, 40s) linear infinite; }
.ticker.is-animated .ticker-viewport:hover .ticker-track,
.ticker.is-animated .ticker-viewport:focus-within .ticker-track,
.ticker.is-paused .ticker-track { animation-play-state: paused; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(calc(-1 * var(--ticker-shift, 50%))); } }
.ticker-toggle { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255,255,255,.45); background: transparent; color: #fff; cursor: pointer; padding: 0; }
.ticker-toggle:hover { background: rgba(255,255,255,.14); }
.ticker-toggle svg { width: 14px; height: 14px; display: block; }
.ticker-ico-play { display: none; }
.ticker.is-paused .ticker-ico-play { display: block; }
.ticker.is-paused .ticker-ico-pause { display: none; }
.ticker :focus-visible { outline-color: var(--ochre-300); }
@media (max-width: 620px) {
  .ticker { font-size: .85rem; }
  .ticker-inner { gap: .6rem; min-height: 38px; }
  .ticker-label { padding: .15rem .55rem; }
  .ticker-group time { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker .ticker-track { animation: none !important; }
  .ticker-group li:not(:first-child) { display: none; }
  .ticker.is-rotating .ticker-group li { display: none; }
  .ticker.is-rotating .ticker-group li.is-current { display: block; }
  .ticker-group li { overflow: hidden; text-overflow: ellipsis; padding-right: 0; }
  .ticker-group li::after { display: none; }
  .ticker-group { padding-left: 0; }
}
@media print { .ticker { display: none; } }
/* 服務頁圖片（附來源說明） */
.svc-figure { margin: 0 0 1.5rem; }
.svc-figure img { background: #fff; box-shadow: var(--shadow-sm); }
.svc-figure figcaption { margin-top: .5rem; font-size: .82rem; color: var(--muted); text-align: right; letter-spacing: .04em; }
/* 治療師團隊（有資料時才出現） */
.ther-group + .ther-group { margin-top: 2.5rem; }
.ther-group > h3 { font-family: var(--font); font-size: 1.1rem; letter-spacing: .1em; color: var(--brand-dark); border-left: 3px solid var(--sage-400); padding-left: .7rem; margin-bottom: 1rem; }
.team-card h4 { font-size: 1.1rem; letter-spacing: .08em; margin: 0 0 .4rem; }
.role-sub { display: block; font-size: .82rem; color: var(--muted); font-weight: 500; letter-spacing: .08em; margin-top: .15rem; }

/* 常見問題（details/summary 手風琴） */
.faq { display: grid; gap: .85rem; margin-bottom: 2rem; }
.faq-item { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--line); overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.faq-item[open] { border-color: var(--sage-300); box-shadow: 0 10px 26px rgba(67, 64, 63, .07); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.05rem 1.25rem; font-weight: 700; letter-spacing: .06em; color: var(--ink); font-size: 1.05rem; line-height: 1.5; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "Q"; flex: none; display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--sage-100); color: var(--sage-700); font-size: .9rem; font-family: var(--font); letter-spacing: 0; }
.faq-q { flex: 1; }
.faq-item summary:hover { background: var(--sage-50); }
.faq-item summary:focus-visible { outline-offset: -3px; }
.faq-icon { flex: none; width: 1.5rem; height: 1.5rem; border-radius: 50%; border: 1.5px solid var(--sage-400); position: relative; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: .6rem; height: 1.5px; background: var(--sage-600); transform: translate(-50%, -50%); transition: transform .2s; }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-a { padding: 0 1.25rem 1.15rem 4.15rem; color: var(--ink); }
.faq-a p { margin: 0 0 .6rem; }
.faq-list { margin: 0 0 .7rem; padding-left: 1.1rem; }
.faq-list li { margin: .2rem 0; }
.faq-links { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-top: .4rem !important; }
.faq-links a { font-weight: 700; font-size: .95rem; }
.faq-links a::after { content: " →"; }
@media (max-width: 620px) {
  .faq-item summary { padding: .95rem 1rem; font-size: 1rem; gap: .7rem; }
  .faq-item summary::before { width: 1.6rem; height: 1.6rem; font-size: .8rem; }
  .faq-a { padding: 0 1rem 1rem 1rem; }
}
@media (prefers-reduced-motion: reduce) { .faq-icon::before, .faq-icon::after { transition: none; } }
.faq-teaser { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .6rem; }
.faq-teaser a { display: flex; align-items: center; gap: .8rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1.2rem; text-decoration: none; color: var(--ink); font-weight: 700; letter-spacing: .05em; }
.faq-teaser a::before { content: "Q"; flex: none; display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--sage-100); color: var(--sage-700); font-size: .85rem; }
.faq-teaser a:hover { border-color: var(--sage-300); color: var(--brand-dark); }
@media print { .faq-item .faq-a { display: block; } }
.faq-item { scroll-margin-top: 100px; }

/* =====================================================================
   創意版（creative 分支）：編輯風格大標、拱形主視覺、人體部位導覽、即時看診狀態
   動態原則：緩慢、位移小、只用淡入／平移／描線；尊重 prefers-reduced-motion
   ===================================================================== */
:root { --ease-soft: cubic-bezier(.22, .61, .36, 1); --ease-out-long: cubic-bezier(.16, 1, .3, 1); }

/* 編輯風格標題 */
.section-head h2 { font-size: clamp(1.75rem, 1.2rem + 1.9vw, 2.6rem); font-weight: 500; letter-spacing: .1em; line-height: 1.4; }
.page-hero h1 { font-weight: 500; letter-spacing: .1em; }

/* 主視覺：左文右拱形照片 */
.hero.hero-ed { display: block; min-height: 0; background: linear-gradient(180deg, #fbfaf7 0%, var(--bg) 100%); }
.hero.hero-ed::before, .hero.hero-ed::after { display: none; }
.hero-ed-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; padding: clamp(3rem, 2rem + 3vw, 5rem) 0 clamp(6.5rem, 5rem + 4vw, 8.5rem); }
.hero-ed .hero-copy { max-width: 36rem; }
.hero-ed h1 { font-weight: 500; margin: 0 0 1.4rem; }
.hero-ed h1 .h1-name { font-size: clamp(1rem, .9rem + .4vw, 1.2rem); letter-spacing: .36em; color: var(--brand); margin-bottom: 1.1rem; font-weight: 600; }
.hero-ed h1 .h1-tag { font-size: clamp(2.6rem, 1.5rem + 3.6vw, 4.3rem); line-height: 1.28; letter-spacing: .1em; color: var(--ink); }
.hero-ed .hero-lead { font-size: clamp(1.02rem, .98rem + .25vw, 1.14rem); line-height: 1.95; max-width: 31em; }
.hero-visual { position: relative; justify-self: end; width: min(100%, 470px); }
.hero-arch { position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px 28px 28px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(40, 57, 53, .35); will-change: transform; }
.hero-arch img { width: 100%; height: 108%; object-fit: cover; object-position: 38% 50%; border-radius: 0; box-shadow: none; aspect-ratio: auto; filter: saturate(.88); }
.hero-arc { position: absolute; left: -16%; top: -7%; width: 90%; height: auto; overflow: visible; pointer-events: none; }
.hero-arc path { fill: none; stroke: var(--sage-400); stroke-width: 1.1; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.hero-dot { position: absolute; width: 22px; height: 22px; border-radius: 50%; background: var(--logo-yellow); top: 3%; right: 10%; box-shadow: 0 0 0 8px rgba(249, 192, 86, .16); }
@media (max-width: 860px) {
  .hero-ed-grid { grid-template-columns: 1fr; padding: 1.5rem 0 5.5rem; gap: 2rem; }
  .hero-visual { order: -1; justify-self: center; width: min(78%, 340px); }
  .hero-arch { aspect-ratio: 5 / 5.2; }
  .hero-arc { left: -12%; top: -6%; }
}

/* 動態：淡入＋小位移（僅在 JS 啟用且未要求減少動態時） */
.motion-ok .reveal { opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity 1.1s var(--ease-out-long), transform 1.1s var(--ease-out-long); transition-delay: var(--reveal-delay, 0ms); }
.motion-ok .reveal.is-in { opacity: 1; transform: none; }
.motion-ok .hero-arc path { stroke-dashoffset: 1; animation: ty-draw 2.8s .4s var(--ease-soft) forwards; }
.motion-ok .hero-arch { animation: ty-fade 1.4s .1s var(--ease-out-long) both; }
.motion-ok .hero-dot { animation: ty-fade 1.2s 1.6s var(--ease-soft) both; }
@keyframes ty-draw { to { stroke-dashoffset: 0; } }
@keyframes ty-fade { from { opacity: 0; } to { opacity: 1; } }

/* 卡片：柔和浮起 */
.card, .quick-card, .faq-teaser a { transition: transform .6s var(--ease-out-long), box-shadow .6s var(--ease-out-long), border-color .3s; }
@media (hover: hover) {
  .card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -24px rgba(40, 57, 53, .28); }
  .card:hover img { transform: scale(1.025); }
}
.card img { transition: transform 1.2s var(--ease-out-long); }
.btn { transition: background .35s, color .35s, border-color .35s, box-shadow .5s var(--ease-out-long), transform .5s var(--ease-out-long); }
@media (hover: hover) { .btn:hover { transform: translateY(-1px); } }

/* 即時看診狀態 */
.live-status { display: flex; flex-direction: column; gap: .55rem; margin-bottom: .6rem; }
.ls-clock { display: flex; align-items: center; gap: .5rem; margin: 0; font-size: .88rem; color: var(--muted); letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.ls-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--line); flex: none; }
.live-status.is-open .ls-pulse { background: var(--sage-500); box-shadow: 0 0 0 4px var(--sage-100); }
.ls-row { display: grid; grid-template-columns: 4.6em 1fr; gap: .2rem .7rem; align-items: baseline; padding: .55rem 0; border-top: 1px dashed var(--line); }
.ls-row:first-child { border-top: 0; }
.ls-k { margin: 0 !important; font-size: .88rem; font-weight: 700; color: var(--brand-dark) !important; letter-spacing: .08em; }
.ls-v { margin: 0 !important; color: var(--ink) !important; font-size: .98rem; line-height: 1.7; }
.ls-badge { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .06em; padding: .08rem .55rem; border-radius: 999px; background: var(--bg-alt); color: var(--muted); margin-right: .45rem; vertical-align: .08em; }
.ls-badge.is-open { background: var(--sage-100); color: var(--sage-800); }
.ls-today .ls-v { font-size: .92rem; color: var(--muted) !important; }
.ls-note { font-size: .8rem !important; color: var(--muted) !important; margin: .2rem 0 0 !important; line-height: 1.6; }
.hours-live { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 1.4rem 1.6rem; margin-bottom: 2rem; max-width: 760px; }
.hours-live-title { display: flex; align-items: center; gap: .6rem; font-family: var(--font); font-size: 1.12rem; font-weight: 700; letter-spacing: .08em; margin: 0 0 .6rem; }
.hours-live-title svg { width: 1.2rem; height: 1.2rem; color: var(--brand); }

/* 人體部位導覽 */
.bodymap-section { background: linear-gradient(180deg, var(--bg) 0%, #fbfaf7 100%); }
.bodymap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: start; }
.bm-figures { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; background: #fff; border-radius: 28px; padding: 1.6rem 1rem 1rem; box-shadow: var(--shadow-sm); position: sticky; top: 110px; }
.bm-fig { margin: 0; text-align: center; }
.bm-fig figcaption { font-size: .85rem; color: var(--muted); letter-spacing: .3em; margin-top: .4rem; }
.bm-svg { width: 100%; height: auto; max-height: 460px; overflow: visible; }
.bm-line { stroke: var(--sage-600); }
.bm-line .bm-detail { stroke: var(--sage-300); }
.motion-ok .bm-figures.reveal .bm-line > * { stroke-dasharray: 1600; stroke-dashoffset: 1600; }
.motion-ok .bm-figures.reveal.is-in .bm-line > * { animation: ty-line 3.2s .2s var(--ease-soft) forwards; }
@keyframes ty-line { to { stroke-dashoffset: 0; } }
.bm-hot { cursor: pointer; }
.bm-hit { fill: transparent; stroke: none; }
.bm-ring { fill: rgba(141, 185, 173, .0); stroke: var(--sage-400); stroke-width: 1; opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.6); transition: opacity .5s var(--ease-soft), transform .6s var(--ease-out-long), fill .5s; }
.bm-dot { fill: var(--sage-500); stroke: #fff; stroke-width: 1.5; transition: fill .4s, r .4s; }
.bm-hot.is-hover .bm-ring, .bm-hot:hover .bm-ring { opacity: 1; transform: scale(1); }
.bm-hot.is-active .bm-ring { opacity: 1; transform: scale(1.15); fill: rgba(249, 192, 86, .22); stroke: var(--ochre-300); }
.bm-hot.is-active .bm-dot { fill: var(--ochre-700); }
.bm-regions { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.2rem; }
.bm-btn { font: inherit; font-size: 1rem; letter-spacing: .08em; padding: .6rem 1.1rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; transition: background .35s, border-color .35s, color .35s; min-height: 44px; }
.bm-btn:hover { border-color: var(--sage-400); background: var(--sage-50); }
.bm-btn[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.bm-result { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 1.5rem 1.6rem; min-height: 12rem; }
.bm-empty { color: var(--muted); margin: 0; }
.bodymap:not(.is-ready) .bm-empty { display: none; }
.bodymap:not(.is-ready) .bm-panel + .bm-panel { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px dashed var(--line); }
.bm-title { font-family: var(--font); font-size: 1.35rem; font-weight: 700; letter-spacing: .12em; margin: 0 0 .9rem; color: var(--ink); }
.motion-ok .bm-panel:not([hidden]) { animation: ty-panel .7s var(--ease-out-long); }
@keyframes ty-panel { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.bm-label { font-size: .85rem; font-weight: 700; color: var(--brand-dark); letter-spacing: .12em; margin: 0 0 .5rem; }
.bm-chips { margin-bottom: 1.1rem; }
.bm-links { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .4rem; }
.bm-links a { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; text-decoration: none; }
.bm-links a::after { content: "→"; transition: transform .5s var(--ease-out-long); }
.bm-links a:hover::after { transform: translateX(3px); }
.bm-more { font-size: .92rem; color: var(--muted); margin: 0; }
.bm-more a { margin-left: .3rem; }
.bm-disclaimer { display: flex; gap: .6rem; align-items: flex-start; margin: 1rem 0 0; padding: .9rem 1.1rem; border-radius: var(--radius); background: var(--ochre-50); border: 1px solid var(--ochre-100); color: var(--ochre-700); font-size: 1rem; }
.bm-disclaimer svg { width: 1.2rem; height: 1.2rem; flex: none; margin-top: .2rem; }
@media (max-width: 860px) {
  .bodymap { grid-template-columns: 1fr; }
  .bm-figures { position: static; padding: 1.2rem .6rem .8rem; }
  .bm-svg { max-height: 360px; }
}

/* 治療旅程：數字之間以細線串起，進入畫面時線條緩慢延伸 */
.journey { position: relative; }
@media (min-width: 861px) {
  .journey::before { content: ""; position: absolute; left: 6%; right: 6%; top: 2.1rem; height: 1px; background: var(--sage-300); transform-origin: left center; z-index: 0; }
  .motion-ok .journey.reveal::before { transform: scaleX(0); transition: transform 2.4s .3s var(--ease-soft); }
  .motion-ok .journey.reveal.is-in::before { transform: scaleX(1); }
  .journey > li { position: relative; z-index: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .card, .quick-card, .btn, .card img, .bm-ring, .bm-btn { transition: none !important; }
  .card:hover, .btn:hover { transform: none !important; }
  .hero-arch { will-change: auto; }
}
.live-status .nw { white-space: nowrap; }
.hero-visual { isolation: isolate; }
.hero-arch { z-index: 1; }
.hero-arc { z-index: 0; }
.hero-dot { z-index: 2; }
@media (max-width: 860px) {
  .hero-visual { width: min(66%, 300px); }
  .hero-arch { aspect-ratio: 1 / 1.08; }
  .hero-ed h1 .h1-tag { font-size: clamp(2.3rem, 1.6rem + 3.4vw, 3rem); }
}

/* 照片：<picture> 不產生額外方塊，版面與原本 <img> 相同 */
picture { display: contents; }
/* 主視覺拱形照片：顯示尺寸不超過原圖（700×762）的 1 倍寬（桌機 420px） */
.hero-visual { width: min(100%, 420px); }
.hero-arch { aspect-ratio: 700 / 762; }
.hero-arch img { height: 106%; object-position: 50% 50%; }
.svc-figure.is-small { display: flex; flex-direction: column; align-items: center; background: #fff; border-radius: 18px; box-shadow: var(--shadow-sm); padding: 1rem; }
.svc-figure.is-small img { box-shadow: none; }
.svc-figure.is-small figcaption { align-self: stretch; }
@media (max-width: 860px) { .hero-visual { width: min(66%, 300px); } }

/* ===== 我們的理念／關於天佑：標題＋內文兩欄對齊，下方照片跑馬燈（2026-09-25） ===== */
.philosophy { overflow: hidden; }
.ph-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.25rem, .5rem + 3vw, 4rem); align-items: start; }
.ph-title .section-head, .ph-title h2 { margin-bottom: 0; }
.ph-title h2 { margin-top: .35rem; }
.ph-title .logo-dots { margin-top: 1rem; }
.ph-body { max-width: 38rem; padding-top: .35rem; }
.ph-body p { margin: 0 0 1rem; }
.ph-body p:last-of-type { margin-bottom: 1.4rem; }
.ph-body p:last-child { margin-bottom: 0; }
@media (max-width: 860px) { .ph-head { grid-template-columns: 1fr; } .ph-body { padding-top: 0; } }

.photo-marquee { --pm-h: clamp(220px, 26vw, 360px); --pm-gap: 14px; margin-top: clamp(2rem, 1.2rem + 2.5vw, 3.25rem); }
.pm-viewport { overflow: hidden; outline-offset: 4px; }
.pm-viewport:focus-visible { outline: 2px solid var(--brand); }
.pm-track { display: flex; width: max-content; }
.pm-group { display: flex; gap: var(--pm-gap); list-style: none; margin: 0; padding: 0 var(--pm-gap) 0 0; }
.pm-group li { flex: none; height: var(--pm-h); aspect-ratio: var(--ar); border-radius: 14px; overflow: hidden; background: var(--bg-alt); }
.pm-group img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; box-shadow: none; }
.photo-marquee.is-animated .pm-track { animation: pm-scroll var(--pm-dur, 90s) linear infinite; }
.photo-marquee.is-animated .pm-viewport:hover .pm-track,
.photo-marquee.is-animated .pm-viewport:focus-within .pm-track,
.photo-marquee.is-paused .pm-track,
.photo-marquee.is-offscreen .pm-track { animation-play-state: paused; }
@keyframes pm-scroll { from { transform: translateX(0); } to { transform: translateX(calc(-1 * var(--pm-shift, 50%))); } }
.pm-controls { display: flex; justify-content: flex-end; margin-top: .75rem; }
.pm-toggle { display: inline-flex; align-items: center; gap: .45rem; background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: .3rem .8rem .3rem .55rem; font: inherit; font-size: .82rem; letter-spacing: .08em; cursor: pointer; }
.pm-toggle:hover { color: var(--ink); border-color: var(--sage-300); }
.pm-toggle svg { width: 12px; height: 12px; display: block; }
.pm-ico-play { display: none; }
.photo-marquee.is-paused .pm-ico-play { display: block; }
.photo-marquee.is-paused .pm-ico-pause { display: none; }
@media (max-width: 846px) { .photo-marquee { --pm-gap: 10px; } .pm-group li { border-radius: 12px; } }
/* 減少動態效果（或 JS 未執行）：不自動捲動，改成可左右滑動的一列 */
.photo-marquee:not(.is-animated) .pm-viewport { overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; padding-bottom: .5rem; }
.photo-marquee:not(.is-animated) .pm-group { padding-left: max(1.25rem, calc((100vw - var(--max)) / 2)); }
.photo-marquee:not(.is-animated) .pm-group li { scroll-snap-align: start; scroll-margin-left: 1.25rem; }
@media print { .photo-marquee { display: none; } }

/* ===== 頁首「看診中／休診中」燈號 ===== */
.open-status { display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; color: var(--ink); font-size: .84rem; letter-spacing: .06em; white-space: nowrap; line-height: 1.2; padding: .3rem .1rem; }
.open-status:hover .os-label { text-decoration: underline; text-underline-offset: 3px; }
.os-ico { display: inline-flex; }
.os-ico svg { width: 1rem; height: 1rem; color: var(--sage-600); }
.open-status.is-live .os-ico { display: none; }
.os-dot { display: none; flex: none; width: 9px; height: 9px; border-radius: 50%; }
.os-label { font-weight: 400; }
.open-status.is-live .os-label { font-weight: 700; }
.topbar .open-status { font-size: inherit; padding: 0; color: var(--muted); font-weight: 400; }
.os-detail { color: var(--muted); }
.os-detail:empty { display: none; }
.open-status.is-live .os-dot { display: block; }
.open-status.is-open .os-dot { background: #3d8f68; box-shadow: 0 0 0 0 rgba(61, 143, 104, .45); animation: os-breathe 3s ease-in-out infinite; }
.open-status.is-open .os-label { color: #2f6e50; }
.open-status.is-closed .os-dot { background: #b8574a; }
.open-status.is-closed .os-label { color: #9b4238; }
@keyframes os-breathe { 0%, 100% { box-shadow: 0 0 0 0 rgba(61, 143, 104, .40); } 50% { box-shadow: 0 0 0 5px rgba(61, 143, 104, 0); opacity: .85; } }
.open-status-mobile { display: none; }
@media (max-width: 1240px) {
  .open-status-mobile { display: inline-flex; margin-left: auto; margin-right: .75rem; }
  .open-status-desktop { display: none; }
}
@media (max-width: 560px) { .open-status-mobile .os-detail { display: none; } .open-status-mobile { margin-right: .5rem; } }
@media (prefers-reduced-motion: reduce) { .open-status.is-open .os-dot { animation: none; } }
.open-status:not(.is-live) .os-dot { display: none; }
.os-detail { margin-left: -.3rem; }
.pm-toggle[hidden], .photo-marquee:not(.is-animated) .pm-controls { display: none; }
