/* 由 tools/建立內頁.py 從 設計稿/療程-一般治療.html 產生，不要直接改這個檔 */

/* ---- 療程頁專用 ---- */
.head-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.head-photo { height: auto; aspect-ratio: 4 / 3; border-radius: 12px; }

/* 頁內導覽：取代左側目錄，貼在頁首下方，內容可以用滿整個寬度 */
.subnav { position: sticky; top: 76px; z-index: 15; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; align-items: center; gap: 8px; min-height: 64px; overflow-x: auto; }
.subnav a { text-decoration: none; color: var(--ink); padding: 8px 16px; border-radius: 999px; white-space: nowrap; font-size: 16px; }
.subnav a:hover { background: var(--mist); color: var(--teal-deep); }
.subnav .btn { margin-left: auto; min-height: 44px; color: #fff; }
.subnav .btn:hover { background: #b81d5c; color: #fff; }

.tsec { padding-block: clamp(72px, 10vw, 128px); scroll-margin-top: 140px; }
.tsec h2 { font-size: clamp(32px, 4.2vw, 50px); }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 7vw, 112px); align-items: start; }
.split-head .eyebrow { margin-bottom: 14px; }
.split .lead { font-size: 19px; }
.split:has(> .lead) { align-items: end; }
.prose { font-size: 19px; line-height: 1.95; }
.prose p + p { margin-top: 18px; }

/* 植牙的三個部分 */
.parts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 48px; border-top: 1px solid var(--line); }
.parts div { padding: 28px 24px 0 0; }
.parts div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.parts b { display: block; font: 400 26px/1.3 var(--f-display); color: var(--teal-deep); margin-bottom: 8px; }
.parts p { font-size: 16px; color: var(--ink-soft); }

.fit { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 48px; }
.fit div { background: var(--paper); border-radius: var(--r-lg); padding: 32px 28px; min-height: 200px; display: flex; flex-direction: column; gap: 12px; }
.fit h3 { font-size: 24px; }
.fit p { font-size: 16px; color: var(--ink-soft); }
.fit-not { margin-top: 28px; font-size: 16px; color: var(--ink-soft); max-width: 52em; }

/* 流程：真的有先後順序，所以用編號；電腦版橫向一條線串起來 */
.steps { list-style: none; margin: 56px 0 0; padding: 0; counter-reset: s; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.steps li { counter-increment: s; position: relative; }
.steps li::before { content: counter(s); width: 56px; height: 56px; border-radius: 50%; background: var(--paper); border: 2px solid var(--teal); color: var(--teal-deep); display: grid; place-items: center; font: 700 20px var(--f-num); position: relative; z-index: 1; margin-bottom: 22px; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 56px; right: -24px; top: 27px; height: 2px; background: var(--line); }
.steps h3 { font-size: 22px; margin-bottom: 8px; }
.steps p { color: var(--ink-soft); font-size: 16px; }
.steps .num { display: block; font-weight: 500; font-size: 15px; color: var(--teal-text); margin-top: 6px; }

.faq summary { font-size: 21px; padding-block: 24px; }
.faq details p { font-size: 17px; }

.cta-band { background: var(--teal-deep); color: #fff; padding-block: clamp(64px, 9vw, 112px); }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(30px, 4vw, 46px); margin-bottom: 10px; }
.cta-band p { color: #cfe7e7; font-size: 18px; }
.cta-band .acts { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band .tel { color: #fff; border: 1.5px solid rgba(255,255,255,.5); }

.others { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.others a { display: flex; align-items: center; gap: 12px; background: var(--paper); border-radius: var(--r-md); padding: 20px 18px; text-decoration: none; font: 400 20px var(--f-display); color: var(--teal-deep); }
.others .ic { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--mist); display: grid; place-items: center; }
.others .ic .ico { margin: 0; width: 24px; height: 24px; }
.others a:hover { box-shadow: 0 12px 24px -18px rgba(11,92,94,.5); }
.others a::after { content: "→"; margin-left: auto; font-family: var(--f-num); }

@media (max-width: 960px) {
  .head-grid, .split { grid-template-columns: 1fr; }
  .fit { grid-template-columns: 1fr 1fr; }
  .others { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { display: grid; grid-template-columns: 72px 1fr; padding-bottom: 32px; }
  .steps li::before { margin-bottom: 0; }
  .steps li:not(:last-child)::after { left: 27px; right: auto; top: 56px; bottom: 0; width: 2px; height: auto; }
}
@media (max-width: 767px) {
  .subnav { top: 64px; }
  .subnav .btn { display: none; }
  .fit, .parts { grid-template-columns: 1fr; }
  .fit div { min-height: 0; padding: 24px; }
  .parts div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 22px; }
  .head-photo { aspect-ratio: 16 / 10; }
  .prose, .split .lead { font-size: 17px; }
}

/* 原本寫在 style 屬性的樣式（區塊不能存 style） */
.zb-s1 { --bg:url(/zb-design/img/g-sterile.jpg) }