:root {
  --navy: #0b2545; --navy2: #13315c; --page: #f6f7f9; --surface: #ffffff; --ink: #0b1a2b; --ink2: #4a5868; --muted: #8a94a0;
  --line: #e3e7ec; --s1: #2a78d6; --s2: #eb6834; --band: rgba(42, 120, 214, .18); --prior: rgba(138, 148, 160, .22);
  --c-low: #cfe0f5; --c-mid: #6da7ec; --c-high: #184f95; --accent-bg: #eef5fd;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font: 16px/1.7 "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", system-ui, sans-serif; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
nav.top { position: sticky; top: 0; z-index: 10; background: rgba(11, 37, 69, .97); }
nav.top .wrap { display: flex; align-items: center; gap: 6px; overflow-x: auto; }
nav.top b { color: #fff; margin-right: auto; padding: 14px 0; white-space: nowrap; font-size: 15px; letter-spacing: .02em; }
nav.top a { color: #c9d6e6; text-decoration: none; padding: 14px 12px; font-size: 14px; white-space: nowrap; }
nav.top a:hover { color: #fff; }
.hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy2) 70%, #1b4a85 100%); color: #fff; padding: 72px 0 64px; }
.hero .kicker { color: #9fc3f0; font-size: 14px; letter-spacing: .12em; margin: 0 0 14px; }
.hero h1 { font-size: 44px; line-height: 1.25; margin: 0 0 18px; font-weight: 700; max-width: 880px; }
.hero p.lead { font-size: 19px; color: #d6e2f1; max-width: 780px; margin: 0 0 36px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.kpi { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; padding: 18px 20px; }
.kpi b { display: block; font-size: 34px; line-height: 1.15; font-weight: 700; }
.kpi span { color: #c9d6e6; font-size: 14px; }
section.block { padding: 64px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { color: var(--s1); font-size: 13px; font-weight: 700; letter-spacing: .14em; margin: 0 0 8px; }
h2 { font-size: 30px; line-height: 1.3; margin: 0 0 12px; }
.sub { color: var(--ink2); font-size: 17px; max-width: 800px; margin: 0 0 32px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; box-shadow: 0 1px 2px rgba(11, 26, 43, .04); }
section.alt .card { background: var(--page); box-shadow: none; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--ink2); font-size: 15px; }
.card .big { font-size: 32px; font-weight: 700; color: var(--navy); line-height: 1.2; margin: 6px 0; }
.num { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; background: var(--s1); color: #fff; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; margin-bottom: 10px; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .hero h1 { font-size: 32px; } h2 { font-size: 25px; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
label.f { display: block; font-size: 13px; color: var(--ink2); margin: 0 0 12px; }
label.f select, label.f input { display: block; width: 100%; margin-top: 4px; }
select, input[type=number] { font: inherit; padding: 8px 10px; border: 1px solid #cfd6de; border-radius: 8px; background: #fff; color: var(--ink); }
button.btn { font: inherit; font-size: 14px; padding: 8px 14px; border-radius: 8px; border: 1px solid #cfd6de; background: #fff; color: var(--ink); cursor: pointer; }
button.btn:hover { border-color: var(--s1); color: var(--s1); }
button.btn.primary { background: var(--s1); border-color: var(--s1); color: #fff; }
button.btn.primary:hover { background: #1c5cab; color: #fff; }
.btnrow { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 14px; }
table.meas { width: 100%; border-collapse: collapse; font-size: 14px; }
table.meas th { text-align: left; color: var(--ink2); font-weight: 600; padding: 4px 6px 6px 0; font-size: 12px; }
table.meas td { padding: 3px 6px 3px 0; }
table.meas input, table.meas select { width: 100%; padding: 6px 8px; }
table.meas button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 18px; line-height: 1; }
.hint { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.result { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.result .box { border-radius: 12px; padding: 16px 18px; background: var(--page); border: 1px solid var(--line); }
.result .box.after { background: var(--accent-bg); border-color: #bcd6f5; }
.result .box small { display: block; color: var(--ink2); font-size: 13px; }
.result .box b { font-size: 30px; line-height: 1.2; color: var(--navy); }
.result .box em { font-style: normal; display: block; color: var(--ink2); font-size: 14px; }
.chart svg { display: block; width: 100%; height: auto; }
.chart text { fill: var(--muted); font-size: 11px; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13px; color: var(--ink2); margin: 2px 0 6px; }
.legend i { display: inline-block; width: 16px; height: 4px; vertical-align: middle; margin-right: 6px; border-radius: 2px; }
.legend i.box { height: 11px; } .legend i.dot { width: 10px; height: 10px; border-radius: 50%; }
.scroll { overflow-x: auto; }
table.t { border-collapse: collapse; width: 100%; font-size: 15px; }
table.t th, table.t td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
table.t th:first-child, table.t td:first-child { text-align: left; }
table.t th { color: var(--ink2); font-weight: 600; font-size: 13px; }
table.t td .r { color: var(--muted); font-size: 13px; }
.months { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; }
.months div { text-align: center; font-size: 12px; padding: 6px 0; border-radius: 4px; }
.months .低 { background: var(--c-low); color: #33485f; } .months .中 { background: var(--c-mid); color: #fff; } .months .高 { background: var(--c-high); color: #fff; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; counter-reset: s; }
.callout { background: var(--navy); color: #fff; border-radius: 16px; padding: 32px 34px; }
.callout h3 { margin: 0 0 8px; font-size: 22px; }
.callout p { margin: 0; color: #d6e2f1; }
.note { border-left: 4px solid #eda100; background: #fff8e6; padding: 12px 16px; border-radius: 6px; font-size: 15px; color: #5b4a12; }
ul.clean { margin: 0; padding-left: 20px; color: var(--ink2); font-size: 15px; }
ul.clean li { margin: 4px 0; }
footer { padding: 28px 0 48px; color: var(--muted); font-size: 13px; }
footer a, .card a { color: var(--s1); }
#tip { position: fixed; pointer-events: none; background: var(--navy); color: #fff; padding: 7px 10px; border-radius: 8px; font-size: 12px; line-height: 1.5; z-index: 30; display: none; max-width: 280px; }
@media print {
  nav.top, .btnrow, #tip { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .hero { background: #0b2545 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; padding: 36px 0; }
  section.block { padding: 28px 0; break-inside: avoid; }
  .card, .panel { break-inside: avoid; }
}

section.block { scroll-margin-top: 52px; }

.hero { padding: 48px 0 44px; }
.hero h1 { font-size: 36px; margin-bottom: 12px; }
.hero p.lead { font-size: 17px; margin-bottom: 26px; }
.ctl { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: end; }
.ctl label.f { margin: 0; min-width: 150px; }
.st { display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.7; }
.st.ok { background: #e3f4e3; color: #0b6b0b; }
.st.warn { background: #fdefc8; color: #7a5200; }
.st.alert { background: #f9dcdc; color: #a11f1f; }
.st.ok::before { content: "● "; } .st.warn::before { content: "▲ "; } .st.alert::before { content: "■ "; }
.result .box.s-warn { background: #fff8e6; border-color: #f0d48a; }
.result .box.s-alert { background: #fdeeee; border-color: #efb4b4; }
.result .box.s-ok { background: #f1f9f1; border-color: #bfe0bf; }
table.t td div { line-height: 1.35; }
.viz { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1000px) { .viz { grid-template-columns: 1fr; } }
.slider { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.slider input[type=range] { flex: 1; min-width: 0; }
.slider output { font-size: 13px; color: var(--ink2); white-space: nowrap; }

.wrap.wide { max-width: 1440px; }
.ctlbar { margin-bottom: 16px; padding: 16px 20px; }
.md { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 9fr); gap: 16px; align-items: start; }
@media (max-width: 1100px) { .md { grid-template-columns: 1fr; } }
#detail { display: grid; gap: 14px; }
.ph { margin: 0 0 8px; font-size: 16px; }
.dhead { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(110px, 150px) minmax(0, 2fr); gap: 16px; align-items: center; padding: 14px 20px; }
.dhead label.f { margin: 0; }
@media (max-width: 700px) { .dhead { grid-template-columns: 1fr; } }
.result { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 0; }
@media (max-width: 700px) { .result { grid-template-columns: 1fr; } }
.result .box b { font-size: 26px; }
table.compact th, table.compact td { padding: 7px 6px; font-size: 14px; }
table.compact td:first-child { white-space: normal; min-width: 130px; }
table.compact tbody tr { cursor: pointer; }
table.compact tbody tr:hover { background: var(--page); }
table.compact tbody tr.sel { background: var(--accent-bg); box-shadow: inset 3px 0 0 var(--s1); }
.cell { display: inline-block; min-width: 46px; padding: 3px 6px; border-radius: 6px; font-weight: 700; font-size: 13px; text-align: center; white-space: nowrap; }
.cell.ok { background: #e3f4e3; color: #0b6b0b; } .cell.warn { background: #fdefc8; color: #7a5200; } .cell.alert { background: #f9dcdc; color: #a11f1f; }
details.panel summary { cursor: pointer; font-weight: 600; }
.viz { grid-template-columns: 250px minmax(0, 1fr); gap: 14px; }

.md { grid-template-columns: minmax(0, 470px) minmax(0, 1fr); }
table.compact th, table.compact td { padding: 7px 3px; }
table.compact td:first-child { min-width: 118px; padding-left: 8px; }
.cell { min-width: 42px; padding: 3px 4px; }
.slider { flex-wrap: wrap; }
.slider .btn { white-space: nowrap; padding: 6px 10px; }
.slider output { flex-basis: 100%; }

.months .op { background: #0b2545; color: #fff; font-size: 11px; padding: 3px 0; }
.months .noop { background: #eef0f3; padding: 3px 0; min-height: 22px; }

.why { border-left: 5px solid #2e9d4d; }
.why .ph { font-size: 19px; margin-bottom: 14px; }
.whygrid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px; align-items: center; }
@media (max-width: 900px) { .whygrid { grid-template-columns: 1fr; } }
.wbar { display: grid; grid-template-columns: 74px 1fr 46px; gap: 10px; align-items: center; margin: 5px 0; font-size: 14px; }
.wbar i { display: block; background: #eef0f3; border-radius: 5px; height: 18px; overflow: hidden; }
.wbar u { display: block; height: 100%; border-radius: 5px; text-decoration: none; }
.wbar b { text-align: right; }
.whycards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.whycards .box { border-radius: 12px; padding: 14px 16px; border: 1px solid var(--line); }
.whycards .box small { display: block; color: var(--ink2); font-size: 13px; font-weight: 700; }
.whycards .box b { display: block; font-size: 18px; line-height: 1.35; color: var(--navy); margin: 4px 0 6px; }
.whycards .box em { font-style: normal; color: var(--ink2); font-size: 14px; display: block; }
.whycards .box.s-ok { background: #f1f9f1; border-color: #bfe0bf; } .whycards .box.s-alert { background: #fdeeee; border-color: #efb4b4; }
