/* 日安健康 GoodDay — 初稿樣式 */
:root {
  --sage: #5c7f67;
  --sage-deep: #3f5a48;
  --sage-soft: #e1e4de;
  --cream: #f7f5f0;
  --paper: #fffdf9;
  --gold: #b08d57;
  --ink: #2b2f2c;
  --ink-soft: #5d635f;
  --line: #ddd8cc;
  --radius: 14px;
  /* 字型：--serif 思源宋體（大標題、品牌氣質）／--sans 思源黑體（內文、親切易讀）
     兩者皆為 Google 網路字型，Windows、Mac、iPhone、Android、Linux 顯示一致。
     各元素用哪一種，見檔案最後的「字型分工」。 */
  --serif: "Noto Serif TC", "Songti TC", serif;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --wrap: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--sage-deep); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.35; margin: 0 0 .6em; letter-spacing: .02em; }
h1 { font-size: clamp(32px, 5vw, 54px); }
h2 { font-size: clamp(26px, 3.4vw, 38px); }
h3 { font-size: 22px; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.eyebrow { font-size: 14px; letter-spacing: .25em; color: var(--gold); text-transform: uppercase; margin-bottom: 14px; font-weight: 500; }
.lead { font-size: 20px; color: var(--ink-soft); max-width: 40em; }
.muted { color: var(--ink-soft); }
.small { font-size: 15px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,253,249,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { height: 40px; width: auto; }
.brand span { font-family: var(--serif); font-size: 15px; color: var(--ink-soft); border-left: 1px solid var(--line); padding-left: 12px; line-height: 1.3; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { text-decoration: none; color: var(--ink); font-size: 17px; position: relative; padding: 6px 0; }
.nav a[aria-current="page"]::after, .nav a:hover::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--sage); }
.nav .btn { padding: 10px 22px; }
.nav .btn::after { display: none; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font-size: 16px; cursor: pointer; color: var(--ink); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: 999px; text-decoration: none; font-size: 17px; font-weight: 500; border: 1.5px solid var(--sage); transition: .2s; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--sage); color: #fff !important; }
.btn-primary:hover { background: var(--sage-deep); border-color: var(--sage-deep); }
.btn-ghost { background: transparent; color: var(--sage-deep) !important; }
.btn-ghost:hover { background: var(--sage-soft); }
.cta-box .btn-ghost, .bg-dark .btn-ghost { color: #fff !important; border-color: rgba(255,255,255,.75); }
.cta-box .btn-ghost:hover, .bg-dark .btn-ghost:hover { background: rgba(255,255,255,.14); border-color: #fff; }
.btn-light { background: #fff; color: var(--sage-deep) !important; border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* ---------- source banner (電子名片) ---------- */
.src-banner { display: none; background: var(--sage-deep); color: #fff; font-size: 16px; text-align: center; padding: 10px 16px; }
.src-banner.show { display: block; }

/* ---------- sections ---------- */
section { padding: 96px 0; }
.bg-cream { background: var(--cream); }
.bg-sage { background: var(--sage-soft); }
.bg-dark { background: var(--sage-deep); color: #fff; }
.bg-dark .lead, .bg-dark .muted { color: rgba(255,255,255,.82); }
.bg-dark .eyebrow { color: #e3c891; }
.section-head { margin-bottom: 52px; }

/* hero */
.hero { position: relative; padding: 0; min-height: 640px; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,253,249,.97) 0%, rgba(255,253,249,.9) 42%, rgba(255,253,249,.2) 75%, rgba(255,253,249,0) 100%); }
.hero .wrap { position: relative; width: 100%; }
.hero-copy { max-width: 600px; padding: 90px 0; }
.hero h1 { margin-bottom: 22px; }
.hero .tagline { font-family: var(--serif); color: var(--sage-deep); font-size: 20px; margin-bottom: 18px; }

.page-hero { padding: 110px 0 80px; background: var(--cream); }
.page-hero.with-img { display: grid; }
.page-hero .lead { margin-top: 10px; }

/* three entries */
.entries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.entry { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 32px; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: .25s; }
.entry:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(63,90,72,.12); border-color: var(--sage); }
.entry .num { font-family: var(--serif); color: var(--gold); font-size: 15px; letter-spacing: .2em; }
.entry h3 { margin: 10px 0 8px; }
.entry .q { font-family: var(--serif); font-size: 19px; color: var(--sage-deep); margin-bottom: 12px; }
.entry .go { margin-top: auto; padding-top: 16px; color: var(--sage); font-weight: 500; }

/* needs grid */
.needs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.need { background: #fff; border-radius: var(--radius); padding: 30px 28px; border: 1px solid var(--line); text-decoration: none; color: inherit; transition: .25s; display: flex; flex-direction: column; }
.need:hover { border-color: var(--sage); box-shadow: 0 12px 30px rgba(63,90,72,.1); }
.need .voice { font-family: var(--serif); font-size: 19px; line-height: 1.6; color: var(--ink); margin-bottom: 14px; }
.need .voice::before { content: "「"; color: var(--gold); }
.need .voice::after { content: "」"; color: var(--gold); }
.need h3 { font-size: 18px; font-family: var(--sans); font-weight: 600; color: var(--sage-deep); margin: auto 0 0; padding-top: 12px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; }
.tag { display: inline-block; font-size: 13px; padding: 2px 10px; border-radius: 99px; background: var(--sage-soft); color: var(--sage-deep); font-weight: 500; font-family: var(--sans); }
.tag.gold { background: #f3eadb; color: #8a6a3a; }

/* split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.rev > :first-child { order: 2; }
.split img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; border-top: 1px solid var(--line); }
.step { padding: 32px 26px 10px 0; border-right: 1px solid var(--line); margin-right: 26px; }
.step:last-child { border-right: none; margin-right: 0; }
.step::before { counter-increment: s; content: "0" counter(s); font-family: var(--serif); font-size: 34px; color: var(--gold); display: block; margin-bottom: 8px; }
.bg-dark .steps, .bg-dark .step { border-color: rgba(255,255,255,.2); }

/* list */
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding: 12px 0 12px 34px; position: relative; border-bottom: 1px dashed var(--line); }
.checks li::before { content: ""; position: absolute; left: 4px; top: 22px; width: 14px; height: 8px; border-left: 2px solid var(--sage); border-bottom: 2px solid var(--sage); transform: rotate(-45deg); }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; }
.bg-cream .card, .bg-sage .card { border-color: transparent; }
.card h3 { font-size: 20px; }
.card .role { font-size: 15px; color: var(--gold); margin-bottom: 10px; }

/* quote */
.quote { font-family: var(--serif); font-size: clamp(22px, 2.6vw, 30px); line-height: 1.7; max-width: 820px; margin: 0 auto; text-align: center; }
.quote cite { display: block; font-style: normal; font-family: var(--sans); font-size: 16px; margin-top: 22px; color: var(--ink-soft); }
.bg-dark .quote cite { color: rgba(255,255,255,.75); }

/* gallery */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 240px 240px; gap: 14px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.gallery img:first-child { grid-row: span 2; }

/* self-check */
.selfcheck { background: #fff; border-radius: var(--radius); padding: 40px; border: 1px solid var(--line); max-width: 820px; margin: 0 auto; }
.selfcheck label { display: flex; gap: 14px; align-items: flex-start; padding: 14px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.selfcheck input { width: 22px; height: 22px; margin-top: 4px; accent-color: var(--sage); flex: none; }
.selfcheck .result { margin-top: 26px; padding: 22px 24px; background: var(--sage-soft); border-radius: 10px; display: none; }
.selfcheck .result.show { display: block; }

/* faq */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; font-weight: 500; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::after { content: "+"; color: var(--sage); font-size: 26px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 14px; color: var(--ink-soft); }

/* ladder CTA */
.ladder { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rung { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius); padding: 30px 28px; display: flex; flex-direction: column; }
.rung .lv { font-size: 14px; letter-spacing: .15em; color: #e3c891; }
.rung h3 { margin: 8px 0; }
.rung .btn { margin-top: auto; align-self: flex-start; }
.rung p { color: rgba(255,255,255,.8); font-size: 16px; }

.note { font-size: 14px; color: var(--ink-soft); border-left: 3px solid var(--gold); padding: 6px 0 6px 14px; margin-top: 28px; }
.bg-dark .note { color: rgba(255,255,255,.7); }

/* ---------- footer ---------- */
.site-footer { background: #232825; color: rgba(255,255,255,.75); padding: 70px 0 110px; font-size: 16px; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot-grid h4 { color: #fff; font-family: var(--serif); font-weight: 500; font-size: 18px; margin: 0 0 14px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: 6px; }
.foot-legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 48px; padding-top: 22px; font-size: 13px; color: rgba(255,255,255,.5); }

/* mobile sticky cta */
.mobile-cta { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .entries, .needs, .cards, .ladder { grid-template-columns: 1fr 1fr; }
  .cards.four { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2) { border-right: none; margin-right: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1080px) { /* 主選單收合成「選單」按鈕的寬度；選單項目精簡後可調小 */
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: var(--paper); flex-direction: column; align-items: stretch; gap: 0; padding: 10px 24px 24px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; justify-content: center; border-bottom: none; }
  .brand span { display: none; }
}
@media (max-width: 700px) {
  body { font-size: 17px; }
  section { padding: 68px 0; }
  .wrap { padding: 0 18px; }
  .entries, .needs, .cards, .cards.two, .cards.four, .ladder, .split, .steps { grid-template-columns: 1fr; }
  .split { gap: 32px; }
  .split.rev > :first-child { order: 0; }
  .step { border-right: none; margin-right: 0; border-bottom: 1px solid var(--line); padding: 24px 0; }
  .hero { min-height: 0; align-items: flex-end; }
  .hero-bg { position: relative; height: 260px; }
  .hero-bg::after { background: linear-gradient(0deg, var(--paper) 0%, rgba(255,253,249,0) 60%); }
  .hero { flex-direction: column; align-items: stretch; }
  .hero-copy { padding: 10px 0 60px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 140px 140px; }
  .gallery img:first-child { grid-column: span 2; grid-row: span 1; }
  .selfcheck { padding: 26px 20px; }
  .foot-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 70px 0 56px; }
  .mobile-cta { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--paper); border-top: 1px solid var(--line); padding: 10px 12px; gap: 10px; }
  .mobile-cta .btn { justify-content: center; padding: 12px 10px; }
}

/* vertical steps */
.vsteps { counter-reset: v; margin-top: 10px; }
.vstep { position: relative; padding: 18px 0 18px 56px; border-bottom: 1px solid var(--line); }
.vstep:last-child { border-bottom: none; }
.vstep::before { counter-increment: v; content: "0" counter(v); position: absolute; left: 0; top: 16px; font-family: var(--serif); font-size: 24px; color: var(--gold); }
.vstep h3 { font-size: 19px; margin-bottom: 4px; }
.vstep p { margin: 0; }

/* ---------- LINE 詢問（全站統一樣式） ---------- */
:root { --line-green: #06c755; }
.btn-line { background: var(--line-green); border-color: var(--line-green); color: #fff !important; }
.btn-line::before { content: ""; width: 18px; height: 18px; flex: none; background: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath fill=%27%23fff%27 d=%27M12 3C6.5 3 2 6.6 2 11c0 3.9 3.5 7.2 8.3 7.9.3.1.8.2.9.5.1.3.1.7 0 1l-.1.9c0 .3-.2 1 .9.5s5.9-3.5 8.1-6C21.4 14.3 22 12.7 22 11c0-4.4-4.5-8-10-8z%27/%3E%3C/svg%3E") center/contain no-repeat; }
.btn-line:hover { background: #05a948; border-color: #05a948; }
.line-ask { margin-top: 20px; }

/* ---------- 麵包屑 ---------- */
.crumbs { font-size: 14px; color: var(--ink-soft); margin-bottom: 18px; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--sage-deep); text-decoration: underline; }
.crumbs span { margin: 0 8px; color: var(--line); }

/* ---------- 文章頁 ---------- */
.article-hero { padding: 80px 0 40px; background: var(--cream); }
.article-hero h1 { font-size: clamp(30px, 4.2vw, 46px); max-width: 22em; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15px; color: var(--ink-soft); margin-top: 16px; }
.meta b { color: var(--sage-deep); font-weight: 500; }
.article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 56px; align-items: start; padding-top: 48px; padding-bottom: 80px; }
.prose { max-width: 34em; font-size: 19px; line-height: 1.95; }
.prose h2 { font-size: 27px; margin: 2.2em 0 .7em; padding-top: .4em; scroll-margin-top: 90px; }
.prose h3 { font-size: 21px; margin: 1.6em 0 .5em; }
.prose p { margin-bottom: 1.15em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose strong { color: var(--sage-deep); }
.prose img { border-radius: 12px; margin: 1.6em 0 .4em; }
.prose figcaption { font-size: 14px; color: var(--ink-soft); margin-bottom: 1.6em; }
.summary { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--sage); border-radius: 12px; padding: 24px 28px; margin: 0 0 2em; }
.summary h2 { font-size: 18px !important; margin: 0 0 10px !important; padding: 0 !important; font-family: var(--sans); color: var(--sage-deep); letter-spacing: .1em; }
.summary ol { margin: 0; padding-left: 1.2em; }
.summary li { margin-bottom: .35em; }
.callout { border-radius: 12px; padding: 22px 26px; margin: 1.8em 0; background: var(--sage-soft); }
.callout h3, .callout h4 { margin: 0 0 8px; font-size: 18px; font-family: var(--sans); font-weight: 600; color: var(--sage-deep); }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout.warn { background: #fbf3e6; }
.callout.warn h3, .callout.warn h4 { color: #8a6a3a; }
.toc { position: sticky; top: 100px; font-size: 15px; border-left: 2px solid var(--line); padding-left: 18px; }
.toc h2 { font-family: var(--sans); font-size: 13px; letter-spacing: .2em; color: var(--gold); margin-bottom: 12px; }
.toc ol { list-style: none; padding: 0; margin: 0; }
.toc li { margin-bottom: 10px; line-height: 1.5; }
.toc a { color: var(--ink-soft); text-decoration: none; }
.toc a:hover { color: var(--sage-deep); }
.toc-inline { display: none; }
.cta-box { background: var(--sage-deep); color: #fff; border-radius: var(--radius); padding: 34px 36px; margin: 2.6em 0; }
.cta-box h2 { color: #fff; margin: 0 0 10px !important; padding: 0 !important; font-size: 24px !important; }
.cta-box p { color: rgba(255,255,255,.85); }
.disclaimer { font-size: 14px; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 18px; margin-top: 3em; line-height: 1.7; }
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related a { display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; text-decoration: none; color: var(--ink); transition: .2s; }
.related a:hover { border-color: var(--sage); }
.related .tag { margin-bottom: 10px; }
.related h3 { font-size: 18px; margin: 0; line-height: 1.5; }

/* ---------- 專欄列表 ---------- */
.topic-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.topic-filter a { padding: 8px 18px; border-radius: 99px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: 15px; background: #fff; }
.topic-filter a:hover, .topic-filter a[aria-current] { border-color: var(--sage); color: var(--sage-deep); background: var(--sage-soft); }
.topic-group { margin-bottom: 56px; scroll-margin-top: 90px; }
.topic-group > h2 { font-size: 26px; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.topic-group > h2 a { font-family: var(--sans); font-size: 15px; font-weight: 500; text-decoration: none; }

/* ---------- 療法說明頁 ---------- */
.qa-hero .question { font-family: var(--serif); font-size: clamp(22px, 2.8vw, 30px); color: var(--sage-deep); margin-bottom: 16px; }
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.fit > div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.fit h3 { font-size: 20px; }
.fit .no { border-top: 4px solid #c9a46a; }
.fit .yes { border-top: 4px solid var(--sage); }
.evidence { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.evidence > div { background: #fff; border-radius: var(--radius); padding: 26px; }
.evidence .lv { font-size: 13px; letter-spacing: .15em; color: var(--gold); }

@media (max-width: 980px) {
  .article-wrap { grid-template-columns: 1fr; gap: 0; }
  .toc { display: none; }
  .toc-inline { display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; margin-bottom: 2em; }
  .toc-inline summary { cursor: pointer; font-weight: 500; color: var(--sage-deep); }
  .toc-inline ol { margin: 12px 0 0; padding-left: 1.2em; }
  .related, .evidence { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .prose { font-size: 18px; }
  .fit { grid-template-columns: 1fr; }
  .cta-box { padding: 26px 22px; }
  .article-hero { padding: 56px 0 28px; }
}

/* 首頁健康需求 4×2 */
.needs.four { grid-template-columns: repeat(2, 1fr); } /* 首頁健康需求：2 欄 × 4 列，卡片較寬、句子不易斷行 */
.need-all { background: var(--sage-soft); border-color: transparent; }
@media (max-width: 980px) { .needs.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .needs.four { grid-template-columns: 1fr; } }

/* 左右分欄的頁首標題字級稍小，避免長句斷成四行 */
.page-hero .split h1 { font-size: clamp(30px, 3.6vw, 44px); }

.tag { white-space: nowrap; flex: none; }
.need h3 { gap: 10px; align-items: center; }

/* ---------- 整合醫療主題頁 ---------- */
.svc-list { display: grid; gap: 24px; }
.svc-item { display: grid; grid-template-columns: 290px 1fr; gap: 40px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 34px; scroll-margin-top: 90px; }
.svc-item h3 { font-size: 22px; margin-bottom: 8px; }
.svc-item .one { color: var(--ink-soft); font-size: 16px; margin: 0; }
.svc-item dl { display: grid; grid-template-columns: 7.5em 1fr; gap: 10px 18px; margin: 0; font-size: 16px; }
.svc-item dt { font-weight: 600; color: var(--sage-deep); }
.svc-item dd { margin: 0; }
.svc-item .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.svc-item .tags a { text-decoration: none; }
.svc-item .line-ask { margin-top: 18px; }
@media (max-width: 860px) {
  .svc-item { grid-template-columns: 1fr; gap: 16px; padding: 24px 22px; }
  .svc-item dl { grid-template-columns: 1fr; gap: 2px; }
  .svc-item dd { margin-bottom: 10px; }
}

.foot-legal a { color: rgba(255,255,255,.75); text-decoration: underline; }
.prose code { background: var(--sage-soft); padding: 1px 6px; border-radius: 4px; font-size: .9em; }

/* Cookie 告知列 */
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 70; max-width: 720px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.12); padding: 16px 20px; display: flex; gap: 16px; align-items: center; font-size: 15px; }
.cookie-bar p { margin: 0; }
.cookie-bar .btn { padding: 8px 18px; font-size: 15px; flex: none; }
@media (max-width: 700px) { .cookie-bar { bottom: 76px; flex-direction: column; align-items: stretch; } }



/* ---------- 字型分工（2026-10-23 定案）----------
   思源宋體 --serif：大標題 h1／h2／h3、品牌標語、步驟編號、頁尾小標 → 保留質感
   思源黑體 --sans ：以下「客人的話」與引言 → 親切、好讀
     .need .voice       首頁健康需求卡片上的那句話（例：「明明睡了八小時…」）
     .entry .q          首頁三種入口卡片上的問句
     .quote             醫師引言
     .qa-hero .question 療程說明頁開場的客人疑問
   健康需求總覽頁卡片的那句話（.need-row .voice）寫在 needs/index.html 的頁內樣式中，已同步改為黑體。
   想調整時，把下面的 var(--sans) 改回 var(--serif) 即可。 */
.need .voice, .entry .q, .quote, .qa-hero .question { font-family: var(--sans); font-weight: 500; }
.quote { font-weight: 400; }

/* 選單文字不斷行 */
.nav a, .brand span { white-space: nowrap; }

/* 頁尾的 LINE 官方帳號按鈕（與全站 LINE 按鈕同樣式，尺寸較小） */
.foot-line { margin: 10px 0 14px; }
.site-footer .btn-line { padding: 9px 20px; font-size: 15px; color: #fff; }
.site-footer .btn-line:hover { color: #fff; }

/* 中型螢幕：首頁主視覺的文字區加強底色，避免文字壓在照片人物上 */
@media (min-width: 701px) and (max-width: 1080px) {
  .hero-bg::after { background: linear-gradient(90deg, rgba(255,255,255,.97) 0%, rgba(255,253,249,.94) 55%, rgba(255,253,249,.55) 80%, rgba(255,253,249,.15) 100%); }
}

/* 較寬的引言（桌機版不換行，手機仍會自動換行）。用法：<p class="lead wide"> */
.lead.wide { max-width: 48em; }

/* 頁尾：地址不換行，並讓「聯絡」欄稍寬以容納地址 */
.nowrap { white-space: nowrap; }
.foot-grid { grid-template-columns: 1.3fr 1fr 1fr 1.3fr; }
@media (max-width: 980px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .foot-grid { grid-template-columns: 1fr; } }

/* 「全新引進」標籤：強調新設備或新服務。用法：<span class="tag new">全新引進</span> */
.tag.new { background: var(--gold); color: #fff; margin-right: 8px; vertical-align: 2px; letter-spacing: .05em; }

/* LINE 標籤：卡片直接開啟 LINE 詢問時使用，與 LINE 按鈕同色。用法：<span class="tag line">LINE 詢問</span> */
.tag.line { background: #06c755; color: #fff; }

/* ---------- 團隊頁（about-us.html 與 /team/ 個人頁） ---------- */
.team-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.team-nav a { padding: 6px 16px; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; color: var(--sage-deep); background: #fff; font-size: 15px; }
.team-nav a:hover { border-color: var(--sage); }
.team-group { scroll-margin-top: 90px; }
.team-group + .team-group { margin-top: 72px; }
.team-group > h2 { font-size: 26px; margin-bottom: 6px; }
.member { display: grid; grid-template-columns: 260px 1fr; gap: 40px; padding: 36px 0; border-top: 1px solid var(--line); }
.member img { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: top; border-radius: var(--radius); background: var(--sage-soft); }
.member .role { font-size: 15px; color: var(--gold); margin-bottom: 6px; }
.member h3 { font-size: 26px; margin: 0 0 14px; }
.member h3 a { color: inherit; text-decoration: none; }
.member h3 a:hover { color: var(--sage); }
.member .more { display: inline-block; margin-top: 18px; color: var(--sage); font-weight: 500; text-decoration: none; }
.creds { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 36px; margin: 0; }
.creds dt { font-weight: 600; color: var(--sage-deep); margin-top: 12px; font-size: 15px; }
.creds dd { margin: 4px 0 0; color: var(--ink-soft); font-size: 15px; line-height: 1.8; }
.creds > div { min-width: 0; }
@media (max-width: 760px) {
  .member { grid-template-columns: 1fr; gap: 20px; }
  .member img { max-width: 280px; }
  .creds { grid-template-columns: 1fr; }
}

/* 個人頁：封面、現職標籤、時間軸 */
.profile-hero { position: relative; min-height: 420px; display: flex; align-items: flex-end; color: #fff; background: var(--sage-deep) center/cover no-repeat; }
.profile-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(30,40,34,.78), rgba(30,40,34,.15)); }
.profile-hero .wrap { position: relative; padding-top: 140px; padding-bottom: 56px; }
.profile-hero .eyebrow { color: #e9dcc3; }
.profile-hero h1 { color: #fff; margin: 6px 0 10px; }
.profile-hero p { font-size: 20px; max-width: 34em; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chips a, .chips span { padding: 6px 14px; border-radius: 99px; background: var(--sage-soft); color: var(--sage-deep); font-size: 14px; text-decoration: none; }
.chips a:hover { background: var(--sage); color: #fff; }
.timeline { position: relative; margin: 0; padding: 0 0 0 28px; list-style: none; border-left: 2px solid var(--sage-soft); }
.timeline li { position: relative; padding: 0 0 36px 20px; }
.timeline li::before { content: ""; position: absolute; left: -36px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); border: 3px solid var(--paper); }
.timeline .when { font-family: var(--serif); color: var(--gold); font-size: 15px; }
.timeline h3 { font-size: 19px; margin: 4px 0 6px; }
.timeline h3 a { color: inherit; }
.timeline p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.timeline img { width: 100%; max-width: 420px; border-radius: 10px; margin: 10px 0; display: block; }
.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.media-grid a { display: block; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.media-grid a:hover { border-color: var(--sage); }
.media-grid img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.media-grid span { display: block; padding: 14px 16px; font-size: 15px; line-height: 1.6; }
@media (max-width: 760px) { .media-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .media-grid { grid-template-columns: 1fr; } }

/* 首頁主標：每一行不自動換行，字級隨寬度縮小以免超出版面 */
.hero h1.nowrap-lines span { white-space: nowrap; }
.hero h1.nowrap-lines { font-size: clamp(26px, min(4.2vw, 7.6vw), 52px); }
@media (max-width: 1080px) { .hero h1.nowrap-lines { font-size: clamp(26px, 7.2vw, 52px); } }

/* YouTube 精選影片（縮圖點擊後播放）與訂閱卡。用法見 team/dr-kang.html */
.yt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.yt-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.yt-item .frame { position: relative; aspect-ratio: 16/9; background: #111; }
.yt-item .frame iframe, .yt-item .frame button { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; }
.yt-item .frame button { cursor: pointer; background: #111 center/cover no-repeat; }
.yt-item .frame button::after { content: ""; position: absolute; left: 50%; top: 50%; width: 64px; height: 46px; transform: translate(-50%, -50%); border-radius: 12px; background: #ff0033 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center/26px no-repeat; opacity: .92; transition: .2s; }
.yt-item .frame button:hover::after { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
.yt-item h3 { font-size: 16px; line-height: 1.6; margin: 0; padding: 14px 16px; font-family: var(--sans); font-weight: 500; }
.yt-sub { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 28px; padding: 22px 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.yt-sub b { font-family: var(--serif); font-size: 19px; font-weight: 600; }
.yt-sub p { margin: 4px 0 0; color: var(--ink-soft); font-size: 15px; }
.btn-yt { background: #ff0033; color: #fff; border-color: #ff0033; }
.btn-yt:hover { background: #d9002b; color: #fff; }
.yt-playlist { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: #111; }
.yt-playlist iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-link { display: inline-flex; align-items: center; gap: 6px; color: #c4002a; font-weight: 500; text-decoration: none; }
@media (max-width: 860px) { .yt-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .yt-grid { grid-template-columns: 1fr; } }
.tag.yt { background: #ff0033; color: #fff; }

/* ---------- 參考文獻 ---------- */
.refs { font-size: 14px; color: var(--ink-soft); line-height: 1.7; padding-left: 1.4em; margin: 0; }
.refs li { margin: 6px 0; word-break: break-word; }

/* ---------- 需求頁的特色治療入口 ---------- */
.care-spot { border-left: 4px solid var(--gold); margin-top: 32px; }
.care-spot .tag { margin-bottom: 8px; }
.care-spot b { display: block; }
.care-spot > div:first-child { flex: 1 1 420px; }

/* ---------- 狀態選擇（營養點滴：你最近是哪一種累？） ---------- */
.state-pick { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.state-pick button { font: inherit; font-size: 16px; padding: 10px 18px; border-radius: 99px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; transition: .2s; }
.state-pick button:hover { border-color: var(--sage); }
.state-pick button[aria-selected="true"] { background: var(--sage); border-color: var(--sage); color: #fff; }
.state-panel { background: #fff; border-radius: var(--radius); padding: 30px 32px; border-left: 4px solid var(--gold); margin-bottom: 16px; }
.state-panel h3 { margin-top: 0; }
.state-panel dl { display: grid; grid-template-columns: 9em 1fr; gap: 12px 20px; margin: 18px 0 24px; }
.state-panel dt { font-weight: 600; color: var(--sage-deep); }
.state-panel dd { margin: 0; color: var(--ink-soft); }
@media (max-width: 700px) {
  .state-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .state-pick button { font-size: 14px; padding: 10px 12px; border-radius: 12px; line-height: 1.4; text-align: left; }
  .state-panel { padding: 24px 20px; }
  .state-panel dl { grid-template-columns: 1fr; gap: 4px; }
  .state-panel dd { margin-bottom: 10px; }
}

/* 比較表：.compare-wrap 包住 table.compare，手機可左右滑動；.hl 標示重點欄 */
.compare-wrap { max-width: 100%; overflow-x: auto; margin: 1.4em 0 1.8em; -webkit-overflow-scrolling: touch; }
.article-wrap > .prose { min-width: 0; }
.compare { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 16px; line-height: 1.65; background: #fff; }
.compare th, .compare td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare thead th { background: var(--sage-soft); color: var(--sage-deep); font-weight: 600; }
.compare tbody th { width: 22%; color: var(--ink); font-weight: 600; }
.compare .hl { background: #fbf7ec; }
.compare thead .hl { background: var(--gold); color: #fff; }

/* 影片格：.yt-grid.two 兩欄；.yt-grid.gait 為診所自拍步態影片（<video>，9:8 直式並排） */
.yt-grid.two { grid-template-columns: repeat(2, 1fr); }
.yt-grid.gait .frame { aspect-ratio: 9/8; }
.yt-item .frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #111; }
@media (max-width: 860px) { .yt-grid.gait { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .yt-grid.two, .yt-grid.gait { grid-template-columns: 1fr; } }

/* 證據卡內的小清單；狀態面板內的照片與影片（.panel-media，.one 為單欄） */
.mini-checks { list-style: none; padding: 0; margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
.mini-checks li { position: relative; padding: 6px 0 6px 26px; }
.mini-checks li::before { content: ""; position: absolute; left: 3px; top: 13px; width: 11px; height: 6px; border-left: 2px solid var(--sage); border-bottom: 2px solid var(--sage); transform: rotate(-45deg); }
.panel-media { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 0 0 28px; }
.panel-media.one { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.panel-media.one.wide { max-width: none; }
.panel-media img { width: 100%; height: auto; display: block; border-radius: 10px; border: 1px solid var(--line); }
.panel-media figcaption { grid-column: 1 / -1; font-size: 14px; color: var(--ink-soft); }
.vframe { position: relative; aspect-ratio: 16/9; background: #111; border-radius: 10px; overflow: hidden; }
.vframe.gait { aspect-ratio: 9/8; }
.vframe video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 520px) { .panel-media { grid-template-columns: minmax(0, 1fr); } }
/* 桌面版需一行顯示的引言 */
@media (min-width: 1024px) { .lead.one-line { max-width: none; white-space: nowrap; } }
/* 三張體驗照並排：.photo-trio 包 figure（img + figcaption） */
.photo-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 48px 0 0; }
.photo-trio figure { margin: 0; }
.photo-trio img { width: 100%; aspect-ratio: 480/549; object-fit: cover; border-radius: var(--radius); display: block; }
.photo-trio figcaption { font-size: 15px; color: var(--ink-soft); margin-top: 10px; text-align: center; }
@media (max-width: 640px) { .photo-trio { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 68%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 6px; } .photo-trio figure { scroll-snap-align: start; } }

/* 營養點滴：圓形意象、安靜時光橫幅、空間與三大特色 */
.iv-halo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; text-align: center; }
.iv-halo img { width: 168px; height: 168px; object-fit: cover; border-radius: 50%; display: block; margin: 0 auto 22px; padding: 6px; border: 1px solid var(--gold); background: #fff; }
.iv-halo .lv { display: block; font-size: 13px; letter-spacing: .15em; color: var(--gold); margin-bottom: 6px; }
.iv-halo h3 { font-size: 20px; }
.iv-halo p { max-width: 300px; margin: 0 auto; }
.iv-moment { position: relative; min-height: 560px; display: flex; align-items: center; overflow: hidden; color: #fff; background: var(--sage-deep); padding: 0; }
.iv-moment > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.iv-moment::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(43,47,44,.78) 0%, rgba(43,47,44,.5) 38%, rgba(43,47,44,0) 66%); }
.iv-moment .wrap { position: relative; z-index: 1; width: 100%; }
.iv-moment-text { max-width: 430px; padding: 80px 0; }
.iv-moment .eyebrow { color: #e3c891; }
.iv-moment h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 3.6vw, 42px); line-height: 1.45; color: #fff; }
.iv-moment p { color: rgba(255,255,255,.88); }
.iv-moment-line { font-family: var(--serif); font-size: 19px; line-height: 1.8; padding-top: 18px; margin-top: 22px; border-top: 1px solid rgba(227,200,145,.6); color: #fff !important; }
.iv-space { margin: 0; }
.iv-space img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: 55% center; border-radius: var(--radius); display: block; }
.iv-space figcaption { font-size: 14px; color: var(--ink-soft); margin-top: 10px; }
.iv-pillars { margin-top: 28px; }
.iv-pillars > div { padding: 22px 0; border-top: 1px solid var(--line); }
.iv-pillars span { display: block; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.iv-pillars h3 { font-size: 20px; margin-bottom: 6px; }
.iv-pillars p { margin: 0; }
@media (max-width: 760px) {
  .iv-halo { grid-template-columns: minmax(0, 1fr); gap: 28px; text-align: left; }
  .iv-halo > div { display: grid; grid-template-columns: 92px minmax(0, 1fr); column-gap: 18px; align-content: start; }
  .iv-halo img { grid-row: span 3; width: 92px; height: 92px; padding: 4px; margin: 0; }
  .iv-halo p { margin: 0; max-width: none; }
  .iv-moment { flex-direction: column; align-items: stretch; min-height: 0; }
  .iv-moment > img { position: static; height: 300px; object-position: 62% center; }
  .iv-moment::after { display: none; }
  .iv-moment-text { padding: 40px 0 48px; max-width: none; }
  .iv-space img { aspect-ratio: 4/3; }
}

/* 男性健康：三條退化的線、療程設計 */
.men-lines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid rgba(227,200,145,.45); }
.men-lines > div { padding: 32px 28px 8px 0; }
.men-lines > div + div { padding-left: 28px; border-left: 1px solid rgba(255,255,255,.16); }
.men-lines .no { display: block; font-family: var(--serif); font-size: 44px; line-height: 1; color: #e3c891; margin-bottom: 14px; }
.men-lines .lv { display: block; font-size: 13px; letter-spacing: .2em; color: rgba(255,255,255,.7); margin-bottom: 6px; }
.men-lines h3 { color: #fff; font-size: 24px; margin-bottom: 10px; }
.men-lines p { color: rgba(255,255,255,.82); font-size: 16px; }
.men-mods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.men-mod { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--sage-deep); border-radius: var(--radius); padding: 28px 26px; }
.men-mod h3 { font-size: 21px; margin: 12px 0 8px; }
.men-mod p { margin: 0; }
.men-mod-care { border-top-color: var(--gold); }
.men-mod-note { background: var(--cream); border-color: transparent; border-top-color: var(--gold); }
.men-mod-note h3 { margin-top: 0; }
.men-mod-note .checks li { font-size: 15px; }
@media (max-width: 960px) { .men-mods { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .men-lines { grid-template-columns: minmax(0, 1fr); }
  .men-lines > div, .men-lines > div + div { padding: 26px 0 4px; border-left: none; border-top: 1px solid rgba(255,255,255,.16); }
  .men-lines > div:first-child { border-top: none; }
  .men-mods { grid-template-columns: minmax(0, 1fr); }
}

/* 治療前後影像說明（醫療廣告：個別案例、療程、風險與效果因人而異） */
.ba-note { font-size: 14px; line-height: 1.75; color: var(--ink-soft); background: var(--cream); border-radius: 10px; padding: 12px 16px; margin: -12px 0 24px; }
.ba-note b { display: block; color: var(--sage-deep); font-weight: 500; margin-bottom: 2px; }
.bg-cream .ba-note { background: #fff; }
