/* 導入規劃頁：以四個階段的大型編號為視覺主軸，其他段落安靜排列 */
.pl-hero, .pl-section { max-width: 1160px; margin: 0 auto; padding-left: 28px; padding-right: 28px; }
/* 開場：照片靠右滿版，左緣淡入紙色，文字壓在左側留白 */
.pl-top { position: relative; overflow: hidden; display: flex; align-items: center; min-height: min(620px, calc(100vh - var(--head-h))); }
.pl-top-bg { position: absolute; top: 0; bottom: 0; right: 0; left: 40%; }
.pl-top-bg img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: 72% 30%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%); mask-image: linear-gradient(90deg, transparent 0, #000 22%);
  animation: pl-bg 1.6s var(--ease) both;
}
@keyframes pl-bg { from { opacity: 0; transform: scale(1.05); } to { opacity: 1; transform: none; } }
.pl-top::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 96px; background: linear-gradient(transparent, var(--paper)); pointer-events: none; }
.pl-top .pl-hero { position: relative; z-index: 1; width: 100%; }
.pl-hero { padding-top: 72px; padding-bottom: 72px; }
.pl-hero > * { max-width: 480px; }
.pl-hero h1 { max-width: 540px; margin: 0 0 22px; font-size: clamp(32px, 3vw, 46px); font-weight: 500; line-height: 1.25; letter-spacing: -.01em; animation: rise .7s var(--ease) both; }
.pl-lead { margin: 0 0 32px; font-size: 16px; line-height: 1.9; color: var(--ink-2); animation: rise .7s .08s var(--ease) both; }
.pl-hero .cta-row { animation: rise .7s .16s var(--ease) both; }
.pl-section { padding-top: 128px; }
.pl-h2 { margin: 0 0 40px; font-size: clamp(26px, 2.4vw, 34px); font-weight: 500; }
.enter > * { animation: rise .4s var(--ease) both; }
.enter > *:nth-child(2) { animation-delay: .05s; }
.enter > *:nth-child(3) { animation-delay: .1s; }

/* ---------- 健康臺灣深耕計畫 ---------- */
.pl-policy-link {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; padding: 10px 16px 10px 12px; border-radius: 99px;
  font-size: 14px; font-weight: 500; color: var(--brand-deep); text-decoration: none; background: var(--wash);
  animation: rise .7s .24s var(--ease) both; transition: background .2s;
}
.pl-policy-link:hover { background: #DCE7F7; }
.seal { width: 18px; height: 18px; border-radius: 50%; background: var(--brand-deep); position: relative; flex: none; }
.seal::after { content: ""; position: absolute; left: 6px; top: 3.5px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.policy-head { display: grid; grid-template-columns: 6fr 5fr; gap: 64px; align-items: end; }
.policy .pl-h2 { margin-bottom: 18px; }
.policy-lead { margin: 0; font-size: 15.5px; line-height: 1.9; color: var(--ink-2); }
.policy-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; margin: 0; }
.policy-stats div { border-top: 1px solid var(--line); padding-top: 14px; }
.policy-stats dt { font-size: 13px; color: var(--muted); }
.policy-stats dd { margin: 6px 0 0; display: flex; align-items: baseline; gap: 4px; }
.policy-stats b { font: 300 36px/1.1 var(--en); letter-spacing: -.02em; color: var(--brand-deep); white-space: nowrap; }
.policy-stats small { font-size: 14px; color: var(--ink-2); }
.policy-stats-note { margin-top: 24px; max-width: none; }
.policy-sub { margin: 64px 0 18px; font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: .02em; }
.pillars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.pillar { padding: 26px 26px 24px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); }
.pillar h3 { margin: 12px 0 16px; font-size: 19px; font-weight: 500; color: var(--ink); }
.pillar dl { margin: 0; display: grid; grid-template-columns: 6.5em 1fr; gap: 10px 16px; font-size: 14px; line-height: 1.75; }
.pillar dt { color: var(--muted); font-size: 12.5px; padding-top: .15em; }
.pillar dd { margin: 0; }
.pillar .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pillar .chips span { font-size: 12.5px; padding: 2px 9px; border-radius: 6px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.pill-tag { display: inline-block; font-size: 12px; font-weight: 500; padding: 3px 9px; border-radius: 6px; background: var(--paper); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.pillar.is-match { background: var(--brand-deep); box-shadow: 0 12px 30px rgba(25,98,163,.2); color: #D6E3F3; }
.pillar.is-match h3 { color: #fff; }
.pillar.is-match dt { color: #9DC0D4; }
.pillar.is-match .pill-tag { background: rgba(255,255,255,.16); color: #fff; box-shadow: none; }
.pillar.is-match .chips span { background: rgba(255,255,255,.1); box-shadow: none; color: #fff; }
.pillar.is-service .pill-tag { color: var(--brand-deep); background: #E8EFF9; box-shadow: none; }
.policy-foot { display: grid; grid-template-columns: 6fr 5fr; gap: 64px; align-items: end; }
.policy-foot .policy-help { margin-bottom: 0; }
.policy-links .source { margin-top: 16px; }

/* ---------- 階段 ---------- */
.phases { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.phase-line { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--line); border-radius: 2px; }
.phase-line i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--p) * 75% + 4px); background: var(--brand-deep); border-radius: 2px; transition: width .5s var(--ease); }
.phases button { position: relative; text-align: left; padding: 26px 8px 18px 0; display: flex; flex-direction: column; gap: 4px; color: var(--muted); transition: color .3s; }
.phases button::before {
  content: ""; position: absolute; top: -5px; left: 0; width: 12px; height: 12px; border-radius: 50%;
  background: var(--paper); box-shadow: inset 0 0 0 2px #C3CED6; transition: background .3s, box-shadow .3s, transform .3s var(--ease);
}
.phases button.reached::before { box-shadow: inset 0 0 0 2px var(--brand-deep); }
.phases button[aria-selected="true"]::before { background: var(--brand-deep); transform: scale(1.25); box-shadow: 0 0 0 5px var(--wash); }
.ph-num { font: 300 54px/1 var(--en); letter-spacing: -.03em; color: #B6C2CB; transition: color .3s; }
.phases b { font-size: 17px; font-weight: 500; color: var(--ink-2); margin-top: 8px; }
.phases small { font: 400 13px var(--en); }
.phases button:hover .ph-num { color: var(--ink-2); }
.phases button[aria-selected="true"] .ph-num { color: var(--brand-deep); }
.phases button[aria-selected="true"] b { color: var(--ink); }
.phase-detail {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-top: 20px;
  padding: 32px 36px; border-radius: 18px; background: var(--surface); box-shadow: 0 1px 2px rgba(20,36,48,.04);
}
.phase-detail h3 { margin: 0 0 12px; font-size: 13px; font-weight: 500; color: var(--muted); }
.phase-detail ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.phase-detail li { position: relative; padding-left: 16px; font-size: 14.5px; line-height: 1.75; }
.phase-detail li::before { content: ""; position: absolute; left: 0; top: .75em; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-deep); }
.phase-detail p { margin: 0; font-size: 14.5px; line-height: 1.8; }

/* ---------- 從哪裡開始 ---------- */
.starter { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.starter-q { display: flex; flex-direction: column; gap: 6px; }
.starter-q button {
  display: flex; align-items: center; gap: 14px; text-align: left; padding: 16px 18px; border-radius: 14px;
  font-size: 15px; color: var(--ink-2); transition: background .25s var(--ease), color .25s;
}
.starter-q button:hover { background: var(--surface); color: var(--ink); }
.starter-q button[aria-checked="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(20,36,48,.05); }
.radio { width: 18px; height: 18px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1.5px #B8C4CC; display: grid; place-items: center; transition: box-shadow .25s; }
.radio::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); transform: scale(0); transition: transform .3s var(--ease); }
[aria-checked="true"] .radio { box-shadow: inset 0 0 0 1.5px var(--c); }
[aria-checked="true"] .radio::after { transform: scale(1); }
.starter-a { position: sticky; top: calc(var(--head-h) + 24px); padding: 30px 32px; border-radius: 18px; background: var(--surface); box-shadow: inset 4px 0 0 var(--c), 0 1px 2px rgba(20,36,48,.04); }
.starter-a .who { display: flex; align-items: baseline; gap: 8px; margin: 0 0 12px; font: 500 15px var(--en); color: color-mix(in srgb, var(--c) 85%, black); }
.starter-a .who i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); align-self: center; }
.starter-a .who span { font-size: 13px; font-weight: 400; color: var(--muted); }
.answer { margin: 0 0 22px; font-size: 16px; line-height: 1.85; }
.sc-mini { display: flex; gap: 16px; align-items: center; padding: 16px 0; margin-bottom: 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sc-mini b { font: 300 32px/1 var(--en); color: var(--c); }
.sc-mini span { display: flex; flex-direction: column; }
.sc-mini strong { font-size: 15px; font-weight: 500; }
.sc-mini small { font-size: 13px; color: var(--muted); }

/* ---------- 工時試算 ---------- */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 40px; border-radius: 20px; background: var(--surface); }
.calc-in { display: flex; flex-direction: column; gap: 28px; }
.field { display: block; }
.field-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; font-size: 14px; color: var(--ink-2); }
.field output { font: 400 18px var(--en); color: var(--ink); }
.field input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 2px; outline-offset: 6px;
  background: linear-gradient(var(--brand-deep), var(--brand-deep)) 0 / var(--fill, 50%) 100% no-repeat, var(--line);
}
.field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; cursor: grab;
  box-shadow: 0 0 0 2px var(--brand-deep), 0 2px 6px rgba(20,36,48,.2); transition: transform .2s var(--ease);
}
.field input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); cursor: grabbing; }
.field input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--brand-deep); }
.calc-out { display: flex; flex-direction: column; gap: 22px; padding-left: 48px; border-left: 1px solid var(--line); }
.out span { font-size: 13px; color: var(--muted); }
.out p { margin: 2px 0 0; display: flex; align-items: baseline; gap: 8px; }
.out b { font: 300 40px/1.1 var(--en); letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.out-hours b { font-size: 56px; color: var(--brand-deep); }
.out small { font-size: 14px; color: var(--ink-2); }

/* ---------- 院方準備 ---------- */
.ready-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.ready { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ready-card {
  height: 100%; display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: 14px;
  background: var(--surface); box-shadow: 0 1px 2px rgba(20,36,48,.04);
}
/* 左上角固定綠色打勾：這些項目都由我們統籌（純說明，不可點選） */
.check { width: 22px; height: 22px; border-radius: 7px; flex: none; display: grid; place-items: center; background: var(--ok); color: #fff; }
.check svg { width: 16px; height: 16px; }
.ready-text { display: flex; flex-direction: column; gap: 4px; }
.ready-text b { font-size: 15px; font-weight: 500; }
.ready-text small { font-size: 13px; line-height: 1.7; color: var(--ink-2); }

/* ---------- 常見問題 ---------- */
.faq { max-width: 860px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0; font-size: 16px; font-weight: 500; transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--brand-deep); }
.faq summary i { position: relative; width: 14px; height: 14px; flex: none; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; border-radius: 1px; background: currentColor; transition: transform .3s var(--ease); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq-a p { margin: 0 0 24px; font-size: 15px; line-height: 1.9; color: var(--ink-2); max-width: 44em; }
.faq details[open] .faq-a { animation: rise .35s var(--ease); }

.page-plan .final { margin-top: 128px; }

@media (max-width: 900px) {
  .pl-top { display: block; min-height: 0; }
  .pl-top-bg { position: relative; left: auto; display: block; height: min(62vw, 460px); }
  .pl-top-bg img { object-position: 60% 30%; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
  .pl-top::after { display: none; }
  .pl-hero { padding-top: 8px; padding-bottom: 8px; }
}
@media (max-width: 1024px) {
  .phases { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .phase-line { display: none; }
  .phase-detail, .starter, .calc, .policy-head, .policy-foot { grid-template-columns: 1fr; gap: 36px; }
  .starter-a { position: static; }
  .calc-out { padding-left: 0; border-left: 0; padding-top: 28px; border-top: 1px solid var(--line); }
  .ready { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .pl-hero, .pl-section { padding-left: 16px; padding-right: 16px; }
  .pl-section { padding-top: 96px; }
  .phase-detail, .calc { padding: 24px 20px; }
  .ready, .pillars { grid-template-columns: 1fr; }
  .pillar dl { grid-template-columns: 1fr; gap: 2px; }
  .pillar dd { margin-bottom: 10px; }
  .ph-num { font-size: 42px; }
}

/* ---------- 可點擊元素區隔 ---------- */
.starter-q button { box-shadow: inset 0 0 0 1px var(--hit-line); }
.starter-q button:hover { box-shadow: inset 0 0 0 1px var(--hit-hover); }
.starter-q button[aria-checked="true"] { box-shadow: inset 0 0 0 1.5px var(--brand), 0 1px 2px rgba(20,36,48,.05); }
.pl-policy-link { box-shadow: inset 0 0 0 1px #BCD0EA; }
.phases button { border-radius: 10px; transition: background .2s, color .3s; }
.phases button:hover { background: color-mix(in srgb, var(--brand) 5%, transparent); }

/* 從首頁連到 #calc、#faq 時，標題不被固定頁首蓋住 */
.pl-section[id] { scroll-margin-top: calc(var(--head-h) + 16px); }

/* 手機版：政策數字區，標籤換行時數字仍對齊底部 */
@media (max-width: 640px) {
  .policy-stats { gap: 24px 20px; }
  .policy-stats div { display: flex; flex-direction: column; }
  .policy-stats dd { margin-top: auto; padding-top: 6px; }
  .policy-stats b { font-size: 32px; }
}

/* 按鈕統一為圓角矩形 */
.pl-policy-link, .phases button { border-radius: var(--btn-r); }
