:root {
  --paper: #fcfcfb; --ink: #141414; --body: #3a3a3a; --muted: #808080; --rule: #e2e2e0; --rule-strong: #141414;
  --accent: #141414; --mark: #ffe14a; --mark-ink: #141414; --button-bg: #141414; --button-ink: #fcfcfb; --contour: 1;
  --serif: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #141414; --ink: #f2f2f0; --body: #c9c9c6; --muted: #8a8a88; --rule: #2e2e2e; --rule-strong: #f2f2f0;
    --accent: #f2f2f0; --mark: #e8c93a; --mark-ink: #141414; --button-bg: #f2f2f0; --button-ink: #141414; --contour: .6; --contour-filter: invert(1);
  }
}
:root[data-theme="dark"] {
  --paper: #141414; --ink: #f2f2f0; --body: #c9c9c6; --muted: #8a8a88; --rule: #2e2e2e; --rule-strong: #f2f2f0;
  --accent: #f2f2f0; --mark: #e8c93a; --mark-ink: #141414; --button-bg: #f2f2f0; --button-ink: #141414; --contour: .6; --contour-filter: invert(1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--body); font: 16px/1.9 var(--sans); letter-spacing: .02em;
  -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); font-weight: 700; margin: 0; letter-spacing: .04em; }
p { margin: 0 0 1em; }

.masthead, main, .colophon { max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* ── 頁首 ── */
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand span { font-family: var(--serif); font-weight: 700; font-size: 20px; color: var(--ink); line-height: 1.1; letter-spacing: .08em; }
.brand small { display: block; font-family: var(--sans); font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: .18em; }
.masthead nav { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.masthead nav a { text-decoration: none; color: var(--body); }
.masthead nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; }
.masthead .nav-contact { color: var(--mark-ink); font-weight: 700; background: var(--mark); padding: 4px 10px; }
.masthead .nav-contact:hover { text-decoration: none; }

/* ── 開場：置中大標＋等高線背景 ── */
.hero { position: relative; text-align: center; padding: 120px 0 128px; }
.hero::before { content: ""; position: absolute; inset: 0 calc(50% - 50vw); background: url(contour.svg) center / cover no-repeat;
  opacity: var(--contour); filter: var(--contour-filter, none); z-index: -1; pointer-events: none; }
body { position: relative; z-index: 0; overflow-x: hidden; }
.tag { margin: 0 0 28px; font-size: 13px; font-weight: 700; letter-spacing: .12em; }
mark { background: var(--mark); color: var(--mark-ink); padding: 3px 8px; }
.hero h1 { font-size: clamp(40px, 7vw, 84px); line-height: 1.3; font-weight: 900; letter-spacing: .06em; }
.hero h1 span { display: inline-block; }
.hero h1 span + span { display: block; }
.hero-sub { margin: 32px auto 0; font-size: 16px; font-weight: 500; color: var(--ink); max-width: 36em; text-wrap: balance; }
h1, h2, .intro, .report p { text-wrap: pretty; }
.hero-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px; margin: 48px 0 0; }

/* 健診報告 */
.report-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: start; }
.report figure { margin: 0; }
.report img { border: 1px solid var(--rule); }
.report figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; }
.report h2 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.5; margin-bottom: 24px; }
.report p { font-size: 16px; }

.button { display: inline-block; background: var(--button-bg); color: var(--button-ink); text-decoration: none; font-weight: 700;
  padding: 14px 28px; border-radius: 2px; letter-spacing: .06em; transition: background .15s; }
.button:hover { background: var(--mark); color: var(--mark-ink); }
.textlink { color: var(--ink); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--rule-strong); padding-bottom: 2px; }
.textlink:hover { background: var(--mark); color: var(--mark-ink); border-color: var(--mark-ink); }

/* ── 章節：左側標籤欄＋右側內容 ── */
.sec { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 48px; padding: 72px 0; border-top: 1px solid var(--rule-strong); }
.sec-label { font-family: var(--serif); font-size: 18px; font-weight: 700; color: var(--ink); letter-spacing: .1em; }
.sec-label span { display: block; font-family: var(--sans); font-size: 12px; font-weight: 500; color: var(--accent); letter-spacing: .2em; margin-bottom: 6px; }
.intro { font-size: 17px; max-width: 40em; margin-bottom: 40px; }
.note { font-size: 15px; color: var(--muted); max-width: 44em; margin-top: 32px; }

/* 服務與收費 */
.services { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.services li { display: grid; grid-template-columns: 220px minmax(0, 1fr) 150px; gap: 32px; padding: 32px 0; border-bottom: 1px solid var(--rule); }
.svc-name h2 { font-size: 22px; line-height: 1.4; }
.svc-days { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; }
.svc-desc { margin: 0; font-size: 15px; }
.svc-price { margin: 0; text-align: right; font-size: 14px; color: var(--muted); white-space: nowrap; }
.svc-price span { font-family: var(--serif); font-size: 28px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: .02em; }

/* 合作方式 */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 56px 200px minmax(0, 1fr); gap: 24px; padding: 24px 0;
  border-bottom: 1px solid var(--rule); }
.steps li:first-child { border-top: 1px solid var(--rule); }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--serif); font-size: 20px; color: var(--accent); line-height: 1.5; }
.steps h3 { font-size: 18px; line-height: 1.6; }
.steps p { margin: 0; font-size: 15px; }

/* 示範 */
.work { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.work a { display: grid; grid-template-columns: 220px minmax(0, 1fr) 24px; gap: 32px; align-items: baseline; padding: 24px 0;
  border-bottom: 1px solid var(--rule); text-decoration: none; }
.work a::after { content: "→"; color: var(--muted); transition: transform .15s, color .15s; }
.work a:hover::after { transform: translateX(4px); color: var(--ink); }
.work a:hover b { background: var(--mark); color: var(--mark-ink); }
.work b { font-family: var(--serif); font-size: 20px; color: var(--ink); }
.work span { font-size: 15px; }

/* 常見問題 */
.faq { margin: 0; border-top: 1px solid var(--rule); }
.faq dt { font-family: var(--serif); font-size: 18px; font-weight: 700; color: var(--ink); padding-top: 26px; }
.faq dd { margin: 8px 0 0; padding-bottom: 26px; border-bottom: 1px solid var(--rule); font-size: 15px; max-width: 44em; }

/* 聯絡 */
.contact { border-top: 1px solid var(--rule-strong); padding: 88px 0 96px; text-align: left; display: grid; grid-template-columns: 200px minmax(0, 1fr); column-gap: 48px; }
.contact > * { grid-column: 2; }
.contact h2 { font-size: clamp(24px, 3vw, 34px); line-height: 1.5; margin-bottom: 14px; }
.contact p { font-size: 17px; margin-bottom: 32px; }
.contact .button { justify-self: start; }

.colophon { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; padding-bottom: 40px;
  border-top: 1px solid var(--rule); font-size: 13px; color: var(--muted); }

/* ── 窄螢幕 ── */
@media (max-width: 960px) {
  .hero { padding: 80px 0 88px; }
  .report-body { grid-template-columns: 1fr; gap: 32px; }
  .report figure { max-width: 420px; }
  .sec, .contact { grid-template-columns: 1fr; gap: 28px; }
  .contact > * { grid-column: 1; }
  .services li { grid-template-columns: minmax(0, 1fr) auto; gap: 12px 24px; }
  .svc-desc { grid-column: 1 / -1; grid-row: 2; }
  .svc-price { grid-column: 2; grid-row: 1; }
}
@media (max-width: 720px) {
  .masthead, main, .colophon { padding-left: 16px; padding-right: 16px; }
  .masthead nav a:not(.nav-contact) { display: none; }
  .sec { padding: 56px 0; }
  .steps li { grid-template-columns: 40px minmax(0, 1fr); gap: 4px 12px; }
  .steps li p { grid-column: 2; }
  .work a { grid-template-columns: minmax(0, 1fr) 20px; gap: 4px 12px; }
  .work span { grid-column: 1; grid-row: 2; }
  .work a::after { grid-column: 2; grid-row: 1; }
  .svc-price span { font-size: 24px; }
  .contact { padding: 64px 0 72px; }
}
