:root {
  --bg: #f7fbfb;
  --surface: #ffffff;
  --ink: #1f3339;
  --muted: #5b7178;
  --accent: #2f97a6;
  --accent-ink: #ffffff;
  --soft: #e3f1f3;
  --warn: #c8663a;
  --warn-soft: #fbece4;
  --line: #d8e7ea;
  --radius: 18px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1a1d; --surface: #16252a; --ink: #e4eff1; --muted: #9db3b9;
    --accent: #4fb9c8; --accent-ink: #0f1a1d; --soft: #1c3237; --warn: #f0a07a; --warn-soft: #33241d; --line: #25393f;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1a1d; --surface: #16252a; --ink: #e4eff1; --muted: #9db3b9;
  --accent: #4fb9c8; --accent-ink: #0f1a1d; --soft: #1c3237; --warn: #f0a07a; --warn-soft: #33241d; --line: #25393f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Noto Sans TC", "PingFang TC", system-ui, sans-serif; line-height: 1.75; font-size: 17px;
}
a { color: var(--accent); }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; }
h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 900; }
h4 { margin-top: 1.2em; font-size: 16px; color: var(--accent); }

.topbar {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px clamp(16px, 4vw, 48px); background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.brand { font-weight: 900; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.brand .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--soft); }
nav { display: flex; gap: 18px; overflow-x: auto; }
nav a { color: var(--muted); text-decoration: none; font-size: 15px; white-space: nowrap; }
nav a:hover { color: var(--accent); }

.section { max-width: 1120px; margin: 0 auto; padding: 72px clamp(16px, 4vw, 48px); }
.sub { color: var(--muted); margin-top: -4px; }
.eyebrow { color: var(--accent); font-weight: 700; letter-spacing: .08em; font-size: 14px; margin: 0 0 8px; }

.hero {
  max-width: 1180px; margin: 0 auto; padding: 64px clamp(16px, 4vw, 48px) 32px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center;
}
.hero h1 { font-size: clamp(34px, 5.4vw, 58px); font-weight: 900; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: 19px; color: var(--muted); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px; border: 2px solid var(--accent);
  color: var(--accent); font-weight: 700; text-decoration: none;
}
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.art { width: 100%; height: auto; display: block; border-radius: var(--radius); }
.hero-art .art { box-shadow: 0 30px 60px -30px rgba(20, 70, 80, .35); }

.video-wrap { border-radius: var(--radius); overflow: hidden; background: #000; aspect-ratio: 16/9; box-shadow: 0 30px 60px -30px rgba(20, 70, 80, .45); }
.video-wrap video { width: 100%; height: 100%; display: block; }

.two { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { font-size: 19px; }
.card p { margin: 0; color: var(--muted); }
.card.warn { background: var(--warn-soft); border-color: transparent; }
.card.warn h3 { color: var(--warn); }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 24px; }
.cond {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 12px 16px;
  color: var(--ink); text-decoration: none; transition: transform .2s, box-shadow .2s;
}
.cond:hover { transform: translateY(-4px); box-shadow: 0 18px 30px -20px rgba(20, 70, 80, .4); }
.cond h3 { font-size: 18px; margin: 12px 4px 4px; }
.cond h3 small { color: var(--muted); font-weight: 400; font-size: 13px; }
.cond p { margin: 0 4px; color: var(--muted); font-size: 14px; line-height: 1.5; }

.detail { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: start; border-top: 1px solid var(--line); }
.detail.flip .detail-art { order: 2; }
.detail-art { position: sticky; top: 90px; }
.detail .tag { font-size: 19px; font-weight: 700; color: var(--muted); margin-top: -6px; }
.detail ul { padding-left: 1.2em; margin: 0; }
.caution { background: var(--warn-soft); color: var(--ink); border-radius: 12px; padding: 12px 16px; margin-top: 20px; }
.back { display: inline-block; margin-top: 12px; font-size: 14px; text-decoration: none; }

.timeline { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: s; }
.timeline li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; counter-increment: s; }
.timeline li::before {
  content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font-weight: 900; margin-bottom: 10px;
}
.timeline b { display: block; font-size: 18px; }
.timeline span { color: var(--muted); font-size: 15px; line-height: 1.6; }

.two-col { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.checks { list-style: none; padding: 0; }
.checks li { padding: 10px 0 10px 36px; position: relative; border-bottom: 1px dashed var(--line); }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 9px; width: 24px; height: 24px; border-radius: 50%; background: var(--soft); color: var(--accent); display: grid; place-items: center; font-weight: 900; font-size: 14px; }

details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 700; padding: 12px 0; }
details p { margin: 0 0 14px; color: var(--muted); }

.visit-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; max-width: 640px; }
.visit-card p { margin: 6px 0; display: flex; gap: 16px; }
.visit-card span { color: var(--muted); min-width: 3em; }
.clinic-name { font-size: 22px; font-weight: 900; }

.foot { text-align: center; color: var(--muted); font-size: 14px; padding: 40px 16px 60px; border-top: 1px solid var(--line); }
.foot p { max-width: 760px; margin: 6px auto; }

@media (max-width: 900px) {
  .hero, .detail, .two-col { grid-template-columns: 1fr; gap: 24px; }
  .detail.flip .detail-art { order: 0; }
  .detail-art { position: static; max-width: 460px; }
  .two { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .timeline { grid-template-columns: 1fr; }
  .topbar nav { display: none; }
  .section { padding: 48px 16px; }
}

/* 診所資訊：連結與按鈕（2026-11-11） */
.home-link { margin-left: auto; padding-left: 14px; color: var(--accent); font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.home-link:hover { text-decoration: underline; }
.visit-card a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.visit-card b { min-width: 0; overflow-wrap: anywhere; }
.visit-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.visit-actions .va { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 700; text-decoration: none; }
.visit-actions .va.line { background: #06c755; border-color: #06c755; color: #fff; }
@media (max-width: 420px) { .visit-actions .va { flex: 1 1 100%; } }
@media (max-width: 340px) { .brand { font-size: 15px; } .home-link { font-size: 14px; padding-left: 8px; } }
