:root {
    color-scheme: light;
    --ink: #152c31;
    --muted: #48636a;
    --green: #0d645c;
    --purple: #613f75;
    --line: #d7e5e1;
    --paper: #f7faf9;
    --white: #fff;
    font: 16px/1.55 system-ui, "PingFang TC", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: var(--green); text-underline-offset: .2em; }
a:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 2px; }
.shell { width: min(82%, 1420px); margin-inline: auto; }
header { background: var(--white); border-bottom: 1px solid var(--line); }
.mast { display: flex; justify-content: space-between; align-items: center; min-height: 66px; gap: 1rem; }
.mast div { display: flex; align-items: baseline; gap: 1rem; }
.mast b { font-size: 1.25rem; }
.mast span, .period, .method, .stamp, footer { color: var(--muted); }
.mast a { flex: none; }
.hero { padding: clamp(2.2rem, 5.4vw, 5.2rem) 0 1.6rem; }
.period { margin: 0 0 1rem; font-size: .95rem; }
h1 { font-size: clamp(2.45rem, 5vw, 4.25rem); line-height: 1.045; max-width: 21ch; letter-spacing: -.042em; margin: 0; text-wrap: balance; }
html[lang="zh-Hant"] h1 { letter-spacing: -.025em; max-width: 18em; }
.summary { font-size: clamp(1.05rem, 2vw, 1.2rem); max-width: 69ch; margin: 1.3rem 0 0; }
html[lang="zh-Hant"] .summary { max-width: 35em; }
nav { display: flex; gap: .6rem 1.45rem; flex-wrap: wrap; padding: .9rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
nav a { font-weight: 650; }
figure { padding: clamp(1rem, 2.25vw, 2rem); border: 1px solid var(--line); margin: 1.5rem 0 .9rem; background: var(--white); }
figcaption { margin-bottom: 1rem; font-weight: 730; font-size: clamp(1.12rem, 2vw, 1.4rem); }
.markets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.75rem, 2vw, 1.5rem); }
.markets article { min-width: 0; position: relative; padding: .92rem 0 0; border-top: 3px solid var(--line); }
.markets article::before { content: ""; position: absolute; left: 0; top: -3px; width: 2rem; border-top: 3px solid var(--purple); animation: marker-in .42s ease-out both; transform-origin: left; }
@keyframes marker-in { from { transform: scaleX(.1); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
    .markets article::before { animation: none; }
}
.markets h3 { margin: 0 0 .5rem; font-size: 1.05rem; }
.markets a { display: block; padding: .2rem 0; overflow-wrap: anywhere; }
.markets a + a { color: var(--purple); }
.method { font-size: .92rem; margin: 0; }
section { padding-top: clamp(2.6rem, 6vw, 5rem); scroll-margin-top: 1rem; }
h2 { margin: 0; font-size: clamp(1.8rem, 3.6vw, 2.75rem); line-height: 1.14; letter-spacing: -.025em; }
.intro, .watch-guide { max-width: 78ch; margin: .8rem 0 1.25rem; }
html[lang="zh-Hant"] .intro, html[lang="zh-Hant"] .watch-guide { max-width: 40em; }
.pair, .capacity { list-style: none; margin: 0; padding: 0; }
.pair li, .pair-head { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: .8rem; align-items: center; padding: .5rem 0; }
.pair li + li { border-top: 1px solid var(--line); }
.pair-head { color: var(--muted); font-size: .85rem; font-weight: 650; }
.scan, .therapy { padding: .3rem .5rem; background: #e9f4ef; color: var(--green); font-weight: 650; }
.therapy { background: #f0e9f4; color: var(--purple); }
.capacity li { display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: baseline; gap: .65rem; padding: .5rem 0; }
.capacity li + li { border-top: 1px solid var(--line); }
.capacity strong { color: var(--purple); justify-self: end; }
.records { border-top: 2px solid var(--ink); background: var(--white); }
.record { display: grid; grid-template-columns: minmax(7rem, 13%) 1fr; column-gap: 1.2rem; padding: 1.1rem 1rem; border-bottom: 1px solid var(--line); scroll-margin-top: 1rem; }
.record:target { outline: 2px solid var(--purple); outline-offset: -2px; }
.stamp { display: flex; flex-direction: column; font-size: .88rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.record h3 { margin: 0; font-size: 1.12rem; line-height: 1.3; overflow-wrap: anywhere; }
.key { color: var(--purple); margin-top: .2rem; font-weight: 630; }
.record p { max-width: 88ch; margin: .45rem 0; }
.sources { display: flex; gap: .85rem; flex-wrap: wrap; font-size: .9rem; }
footer { padding: 2.75rem 0 3.75rem; }
footer p { margin-bottom: 0; }
@media (max-width: 720px) {
    .shell { width: calc(100% - 2rem); }
    .markets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .record { grid-template-columns: 1fr; padding: 1rem .7rem; }
    .stamp { flex-direction: row; gap: .7rem; margin-bottom: .35rem; }
    .pair li, .pair-head { font-size: .85rem; gap: .35rem; }
    .capacity li { grid-template-columns: .95fr 1.4fr .65fr; font-size: .88rem; }
}

/* 發布版封裝加的兩個小區塊：站內導覽與頁尾聲明（放在 main 裡面，跟內文同寬） */
.dn-pubnav{margin:0;padding:12px 0 0;font-size:13px;line-height:1.6;color:#536964}
.dn-pubnav a{color:#0a7067;text-decoration:none}.dn-pubnav a:hover{text-decoration:underline}
.dn-pubfoot{margin:44px 0 0;padding:18px 0 34px;border-top:1px solid #d7e1da;font-size:13px;line-height:1.8;color:#536964}
.dn-pubfoot a{color:#0a7067}
@media print{.dn-pubnav{display:none}}
