/* 张衡的学术名片 · 样式。黑漆朱绘：底色是汉代漆器的黑，线条用朱、金、铜绿。 */
:root {
	--ink: #0e0c0b; --ink2: #15110f; --ink3: #1d1814; --ink4: #2a221c;
	--paper: #efe6d6; --paper2: #d8ccb8; --mute: #a3978a; --mute2: #7d7266;
	--zhu: #d4583c; --zhu2: #a93d27; --jin: #d9b46a; --jin2: #a8863f; --qing: #7fb3a6; --qing2: #4f8579; --water: #3f8790; --night: #0b1017;
	--line: rgba(239, 230, 214, .13); --line2: rgba(239, 230, 214, .24);
	--serif: 'HW Work', 'Noto Serif SC', 'Songti SC', 'STSong', serif;
	--num: 'Space Grotesk', 'HW Work', system-ui, sans-serif;
	--bar-h: 52px; --gut: clamp(16px, 4vw, 56px); --maxw: 1200px;
	color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ink); color: var(--paper); font: 400 17px/1.85 var(--serif); overflow-x: hidden; }
html[lang="en"] body { font-size: 16.5px; line-height: 1.7; font-family: Georgia, 'Times New Roman', 'HW Work', serif; }
html[lang="en"] .qt__z, html[lang="en"] [lang^="zh"] { font-family: var(--serif); }
a { color: inherit; }
img, svg, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
.num { font-family: var(--num); font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--paper); color: var(--ink); padding: 6px 12px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--jin); outline-offset: 2px; }
.nojs { padding: 40px var(--gut); }

/* ------------------------------------------------ 顶栏 */
.bar { position: sticky; top: 0; z-index: 30; height: var(--bar-h); display: flex; align-items: center; gap: 14px; padding: 0 var(--gut);
	background: rgba(14, 12, 11, .86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar__logo { width: 26px; height: 26px; color: var(--zhu); flex: none; }
.bar__logo svg { width: 26px; height: 26px; }
.bar__t { margin: 0; display: flex; align-items: baseline; gap: 10px; white-space: nowrap; font-size: 15px; }
.bar__t a { text-decoration: none; font-weight: 700; letter-spacing: .08em; }
.bar__t span { color: var(--mute); letter-spacing: .1em; }
.bar__nav { margin-left: auto; display: flex; gap: clamp(10px, 1.6vw, 22px); font-size: 14px; white-space: nowrap; min-width: 0; overflow: hidden; }
.bar__nav a { text-decoration: none; color: var(--paper2); }
.bar__nav a:hover { color: var(--jin); }
.bar__prog { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: linear-gradient(90deg, var(--zhu), var(--jin)); transform-origin: 0 0; transform: scaleX(0); }
@media (max-width: 900px) { .bar__nav .hide-s { display: none; } }
@media (max-width: 420px) { .bar__t span { display: none; } }

/* ------------------------------------------------ 右侧目录 */
.toc { position: fixed; right: 14px; top: 50%; transform: translateY(-50%); z-index: 20; display: none; }
.toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.toc a { display: flex; align-items: center; justify-content: flex-end; gap: 8px; text-decoration: none; color: var(--mute); font-size: 13px; line-height: 1.2; }
.toc a b { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--line2); border-radius: 50%; font-weight: 400; font-size: 12px; background: var(--ink); }
.toc a span { opacity: 0; transform: translateX(6px); transition: .2s; background: var(--ink2); padding: 3px 8px; border-radius: 3px; pointer-events: none; }
.toc a:hover span, .toc a:focus-visible span { opacity: 1; transform: none; }
.toc a.is-on { color: var(--jin); }
.toc a.is-on b { border-color: var(--jin); color: var(--ink); background: var(--jin); }
@media (min-width: 1360px) { .toc { display: block; } }

/* ------------------------------------------------ 按钮 */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 18px; border: 1px solid var(--line2); background: transparent; color: var(--paper);
	text-decoration: none; font-size: 15px; letter-spacing: .04em; cursor: pointer; border-radius: 2px; transition: background .15s, border-color .15s, color .15s; }
.btn:hover { border-color: var(--jin); color: var(--jin); }
.btn--go { background: var(--zhu); border-color: var(--zhu); color: #fff8ef; }
.btn--go:hover { background: var(--zhu2); border-color: var(--zhu2); color: #fff8ef; }
.btn--sm { min-height: 34px; padding: 4px 12px; font-size: 14px; }
.btn[aria-pressed="true"] { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.seg { display: inline-flex; border: 1px solid var(--line2); border-radius: 999px; padding: 2px; gap: 2px; background: rgba(14, 12, 11, .6); }
.seg button { border: 0; background: none; padding: 4px 12px; border-radius: 999px; cursor: pointer; font-size: 13.5px; color: var(--paper2); white-space: nowrap; min-height: 30px; }
.seg button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
@media (max-width: 760px) {
	.seg { flex-wrap: wrap; border-radius: 16px; max-width: 100%; }
	.seg button { white-space: normal; text-align: center; line-height: 1.3; flex: 1 1 auto; }
	.wf__ctl .seg, .mf__ctl .seg { width: 100%; }
}

/* ------------------------------------------------ 首屏 */
.hero { position: relative; display: grid; grid-template-columns: minmax(300px, 400px) 1fr; gap: clamp(20px, 3vw, 48px); padding: 26px var(--gut) 34px; max-width: 1560px; margin: 0 auto; }
.hero__id { align-self: start; position: relative; z-index: 2; }
.hero__era { margin: 6px 0 0; display: flex; gap: 14px; color: var(--mute); font-size: 15px; letter-spacing: .2em; }
.hero__era .num { letter-spacing: .06em; color: var(--paper2); }
.hero__name { margin: 4px 0 0; font-size: clamp(76px, 9vw, 132px); line-height: 1.02; font-weight: 800; letter-spacing: .06em; color: var(--paper);
	background: linear-gradient(180deg, #fff6e6 0%, #e7d6b8 60%, #c9a868 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
html[lang="en"] .hero__name { font-size: clamp(54px, 6.4vw, 88px); letter-spacing: 0; line-height: 1.04; }
.hero__alt { margin: 6px 0 0; font-family: var(--num); font-size: 22px; color: var(--jin); letter-spacing: .04em; }
html[lang^="zh"] .hero__alt { font-style: italic; }
html[lang="en"] .hero__alt { font-family: var(--serif); font-size: 19px; }
.hero__who { margin: 14px 0 0; font-size: 19px; font-weight: 700; line-height: 1.5; }
.hero__zi { margin: 2px 0 0; color: var(--mute); font-size: 15px; }
.hero__lead { margin: 14px 0 0; color: var(--paper2); font-size: 15.5px; line-height: 1.85; max-width: 34em; }
.hero__qs { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--line); }
.hero__qs li { border-bottom: 1px solid var(--line); }
.hero__qs a { display: grid; grid-template-columns: 28px 1fr auto; align-items: baseline; gap: 10px; padding: 6px 2px; text-decoration: none; font-size: 15px; line-height: 1.45; }
.hero__qs a b { color: var(--zhu); font-weight: 400; }
.hero__qs a small { color: var(--mute2); font-size: 12.5px; text-align: right; }
.hero__qs a:hover span { color: var(--jin); }
.hero__go { margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }

/* 舞台 */
.stage { margin: 0; position: relative; min-width: 0; display: grid; grid-template-rows: auto auto auto auto; align-self: start; }
.stage__view { position: relative; height: min(calc(100vh - var(--bar-h) - 210px), 760px); min-height: 380px; border-radius: 4px; overflow: hidden;
	background: radial-gradient(ellipse at 50% 46%, #1a1f2b 0%, #0d1018 46%, #08090c 100%); border: 1px solid var(--line); touch-action: none; }
.stage__cv { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; }
.stage__cv:active { cursor: grabbing; }
.stage__labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.lb { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); white-space: nowrap; font-size: 12.5px; line-height: 1; color: var(--paper2); text-shadow: 0 0 4px #000, 0 0 2px #000; will-change: transform; }
.lb--xiu { font-size: 13px; color: var(--paper); }
.lb--xiu i { font-style: normal; font-size: 10px; color: var(--mute); margin-left: 2px; font-family: var(--num); }
.lb--q { color: #9fd3c3; } .lb--z { color: #ff9a80; } .lb--h { color: #e9e3d6; } .lb--x { color: #a9b8e8; }
.lb--pole { color: var(--jin); font-size: 13px; }
.lb--chen { color: var(--jin); font-size: 14px; font-weight: 700; }
.lb--ring { color: var(--mute); font-size: 11.5px; }
.lb--equ { color: var(--jin); } .lb--ecl { color: #ff8d70; }
.lb--sun { color: #ffd9a0; font-weight: 700; font-size: 14px; }
.lb--gui { color: #9fd3c3; font-size: 11.5px; }
.lb[hidden] { display: none; }
.stage__chips { position: absolute; left: 12px; top: 12px; right: 12px; display: flex; flex-wrap: wrap; gap: 8px; pointer-events: none; }
.stage__chips > * { pointer-events: auto; }
.stage__hint { position: absolute; right: 14px; bottom: 10px; margin: 0; font-size: 12.5px; color: var(--mute); pointer-events: none; transition: opacity .6s; }
.stage__nogl { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 30px; margin: 0; color: var(--paper2); }
.stage__bare { display: none; }
.stage__ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 2px 6px; }
.ctl-play { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line2); background: var(--ink2); cursor: pointer; display: grid; place-items: center; flex: none; }
.ctl-play svg { width: 16px; height: 16px; fill: var(--paper); }
.ctl-play:hover { border-color: var(--jin); }
.rng { display: grid; grid-template-columns: auto minmax(80px, 1fr) auto; align-items: center; gap: 8px; flex: 1 1 250px; min-width: 230px; font-size: 13.5px; color: var(--mute); }
.rng output { color: var(--paper); font-size: 14px; width: 6.4em; text-align: right; white-space: nowrap; }
html[lang="en"] .rng output { width: 10em; }
.stage__ctl .rng output { overflow: hidden; text-overflow: ellipsis; }
.stage__ctl .rng { flex: 1 1 340px; }
.rng > span { white-space: nowrap; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; margin: 0; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 3px; background: linear-gradient(90deg, var(--zhu) var(--p, 0%), var(--line2) var(--p, 0%)); border-radius: 2px; }
input[type="range"]::-moz-range-track { height: 3px; background: var(--line2); border-radius: 2px; }
input[type="range"]::-moz-range-progress { height: 3px; background: var(--zhu); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7.5px; border-radius: 50%; background: var(--paper); border: 3px solid var(--zhu); }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 3px solid var(--zhu); }
.layers { position: relative; }
.layers__pop { position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 10; background: var(--ink2); border: 1px solid var(--line2); border-radius: 4px; padding: 10px 14px; display: grid; gap: 4px; min-width: 210px; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .7); }
.layers__pop[hidden] { display: none; }
.layers__pop label { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; white-space: nowrap; }
.layers__pop input { accent-color: var(--zhu); width: 16px; height: 16px; }
.stage__read { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rd { padding: 8px 12px 8px 0; min-width: 0; }
.rd + .rd { padding-left: 12px; border-left: 1px solid var(--line); }
.rd small { display: block; color: var(--mute); font-size: 12px; letter-spacing: .06em; }
.rd b { display: block; font-weight: 600; font-size: 16px; line-height: 1.4; }
.rd span { display: block; font-size: 12.5px; color: var(--mute); line-height: 1.4; }
.rd .say { color: var(--jin); }
.stage__say { grid-column: 1 / -1; padding: 8px 0 10px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--paper2); line-height: 1.7; }
.stage__say cite { font-style: normal; font-size: 12.5px; color: var(--mute); margin-left: 6px; }
.stage__say[hidden] { display: none; }
.stage__cap { margin: 8px 0 0; font-size: 13px; color: var(--mute); line-height: 1.7; }

/* ------------------------------------------------ 生平带 */
.band { background: var(--ink2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band__in { max-width: var(--maxw); margin: 0 auto; padding: 40px var(--gut); }
.band__life { margin: 0 0 26px; font-size: 16px; line-height: 1.95; color: var(--paper2); max-width: 62em; }
.band__g { display: grid; grid-template-columns: 1.25fr 1.25fr .8fr; gap: 34px; }
.mk { margin: 0 0 8px; font-size: 13px; letter-spacing: .24em; color: var(--zhu); }
html[lang="en"] .mk { letter-spacing: .1em; text-transform: uppercase; font-family: var(--num); font-size: 12px; }
.band ol, .band ul { margin: 0; padding: 0; list-style: none; }
.band li { padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 15px; line-height: 1.65; }
.band li small { display: block; color: var(--mute); font-size: 13px; }
.band__links a { color: var(--paper2); }
.band__links a:hover { color: var(--jin); }

/* ------------------------------------------------ 节 */
.sec { position: relative; border-bottom: 1px solid var(--line); }
.sec__in { max-width: var(--maxw); margin: 0 auto; padding: clamp(56px, 8vw, 104px) var(--gut); }
.sec__hd { display: grid; grid-template-columns: auto 1fr; gap: 0 22px; align-items: end; margin-bottom: 30px; }
.sec__no { grid-row: span 2; font-size: clamp(64px, 8vw, 104px); line-height: .9; color: var(--zhu); font-weight: 800; opacity: .9; }
.sec__k { margin: 0; font-size: 14px; color: var(--mute); letter-spacing: .16em; }
html[lang="en"] .sec__k { letter-spacing: .06em; font-family: var(--num); font-size: 13px; }
.sec__h { margin: 2px 0 0; font-size: clamp(30px, 4vw, 46px); line-height: 1.25; font-weight: 800; letter-spacing: .04em; }
html[lang="en"] .sec__h { letter-spacing: 0; }
.sec__q { margin: 2px 0 0; font-size: 15px; color: var(--jin); }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.prose p { margin: 0 0 1em; }
.prose p:last-child { margin-bottom: 0; }
.src { display: block; margin-top: 6px; font-size: 13px; color: var(--mute); font-style: normal; }
.note { font-size: 13.5px; color: var(--mute); line-height: 1.75; }
.ill { display: inline-block; font-size: 11.5px; letter-spacing: .1em; padding: 1px 6px; border: 1px solid var(--jin2); color: var(--jin); border-radius: 2px; vertical-align: 2px; }

/* 引文：原文 + 今译 */
.qt { position: relative; margin: 0 0 26px; padding: 18px 22px 16px 26px; background: linear-gradient(90deg, rgba(212, 88, 60, .09), rgba(212, 88, 60, 0) 70%); border-left: 3px solid var(--zhu); }
.qt__z { margin: 0; font-size: 19px; line-height: 1.9; letter-spacing: .03em; color: var(--paper); }
.qt__t { margin: 8px 0 0; font-size: 14.5px; line-height: 1.75; color: var(--paper2); }
html[lang="en"] .qt__z { font-size: 17px; letter-spacing: .02em; }
html[lang="en"] .qt__t { font-size: 15.5px; color: var(--paper); }
.qt cite { display: block; margin-top: 8px; font-style: normal; font-size: 12.5px; color: var(--mute); }
.qt--sm .qt__z { font-size: 16.5px; }
.qt--big .qt__z { font-size: clamp(20px, 2.2vw, 24px); }

/* 第一问 */
.nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 34px 0 0; border-top: 1px solid var(--line2); }
.nu { padding: 18px 18px 18px 0; border-bottom: 1px solid var(--line); }
.nu + .nu { padding-left: 18px; border-left: 1px solid var(--line); }
.nu__n { font-family: var(--num); font-size: clamp(40px, 4.4vw, 58px); line-height: 1; color: var(--jin); font-weight: 500; }
.nu__n small { font-family: var(--serif); font-size: 16px; color: var(--mute); margin-left: 4px; }
.nu__t { margin: 6px 0 8px; font-weight: 700; font-size: 16px; }
.nu__q { margin: 0 0 8px; font-size: 14px; color: var(--paper2); line-height: 1.75; }
.nu__x { margin: 0; font-size: 13.5px; color: var(--mute); line-height: 1.75; }
.acts { margin: 34px 0 0; padding: 18px 20px; border: 1px solid var(--line); background: var(--ink2); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.acts h3 { margin: 0 8px 0 0; font-size: 15px; color: var(--jin); font-weight: 600; }
.acts p { flex-basis: 100%; margin: 4px 0 0; font-size: 13px; color: var(--mute); }
.debs { margin: 40px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.debs h3, .xiu h3 { margin: 0 0 8px; font-size: 18px; }
.deb { padding: 20px 22px; border: 1px solid var(--line); border-top: 2px solid var(--qing2); }
.deb p { margin: 0; font-size: 15px; line-height: 1.85; color: var(--paper2); }
.xiu { margin: 44px 0 0; }
.xiu__lead { margin: 0 0 14px; font-size: 14.5px; color: var(--paper2); max-width: 60em; }
.xiu__wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); }
.xiu table { border-collapse: collapse; font-size: 13.5px; min-width: 880px; width: 100%; }
.xiu th, .xiu td { padding: 6px 4px; text-align: center; border-left: 1px solid var(--line); font-family: var(--num); white-space: nowrap; }
.xiu th:first-child, .xiu td:first-child { position: sticky; left: 0; background: var(--ink2); z-index: 1; font-family: var(--serif); padding: 6px 10px; text-align: left; border-left: 0; }
.xiu thead th { font-family: var(--serif); font-size: 15px; font-weight: 700; border-bottom: 1px solid var(--line); }
.xiu thead th.q { color: #9fd3c3; } .xiu thead th.x { color: #a9b8e8; } .xiu thead th.h { color: #e9e3d6; } .xiu thead th.z { color: #ff9a80; }
.xiu td.d { color: var(--mute); font-size: 12px; }
.xiu td.d.big { color: var(--zhu); }
.xiu__note { margin: 10px 0 0; }

/* 第二问：水运浑象 */
.wf { margin: 30px 0 0; border: 1px solid var(--line); background: var(--ink2); }
.wf svg { width: 100%; height: auto; }
.wf__ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 16px; border-top: 1px solid var(--line); }
.wf__ctl .rng { flex: 1 1 260px; }
.wf.is-narrow svg text, .mf.is-narrow svg text { font-size: 26px; letter-spacing: 0; }
.wf.is-narrow svg text.wt { font-size: 24px; }
.wf__hint { margin: 0; padding: 0 16px 14px; font-size: 13px; color: var(--mute); }
.wsub { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 30px; }
.wsub h3 { margin: 0 0 10px; font-size: 18px; color: var(--jin); }
.caveat { margin: 22px 0 0; padding: 12px 16px; border: 1px dashed var(--jin2); font-size: 14px; color: var(--paper2); }

/* 第三问：灵宪 */
.lx { margin-top: 10px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 3.4vw, 48px); align-items: start; }
.lx__stage { position: relative; aspect-ratio: 1 / 1; border: 1px solid var(--line); background: #07080a; overflow: hidden; }
.lx__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.lx__tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-top: 0; }
.lx__tabs button { border: 0; border-left: 1px solid var(--line); background: var(--ink2); padding: 10px 6px; cursor: pointer; text-align: center; line-height: 1.3; min-height: 54px; }
.lx__tabs button:first-child { border-left: 0; }
.lx__tabs button b { display: block; font-size: 17px; }
.lx__tabs button small { display: block; font-size: 12px; color: var(--mute); }
.lx__tabs button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.lx__tabs button[aria-pressed="true"] small { color: var(--ink4); }
.lx__auto { margin-top: 10px; }
.lx__q .qt { margin-bottom: 14px; }
.lx__x { margin: 0 0 18px; font-size: 15px; color: var(--paper2); }

/* 第四问：月 */
.mf { margin-top: 30px; border: 1px solid var(--line); background: #08090d; }
.mf svg { width: 100%; height: auto; touch-action: none; }
.mf__ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 16px; border-top: 1px solid var(--line); }
.mf__ctl .rng { flex: 1 1 220px; }
.mf__hint { margin: 0; padding: 0 16px 14px; font-size: 13px; color: var(--mute); }

/* 第五问：星数 */
.sf { margin-top: 30px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 0; border: 1px solid var(--line); background: #07080b; }
.sf__cv { position: relative; aspect-ratio: 1 / 1; }
.sf__cv canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.sf__list { border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.sf__list button { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 10px; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: none; padding: 11px 14px; cursor: pointer; font-size: 14.5px; line-height: 1.35; }
.sf__list button b { font-family: var(--num); font-size: 18px; color: var(--jin); font-weight: 500; }
.sf__list button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.sf__list button[aria-pressed="true"] b { color: var(--zhu2); }
.sf__list .grp { padding: 8px 14px 4px; font-size: 12px; color: var(--mute); letter-spacing: .1em; }
.sf__src { margin: 0; padding: 10px 14px; font-size: 12.5px; color: var(--mute); margin-top: auto; }
.sf__big { position: absolute; left: 16px; top: 12px; font-family: var(--num); font-size: clamp(30px, 4vw, 46px); color: var(--paper); pointer-events: none; line-height: 1.1; }
.sf__big small { display: block; font-family: var(--serif); font-size: 14px; color: var(--mute); }

/* 第六问：地动仪 */
.dd { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(26px, 4vw, 56px); align-items: center; }
.dd__facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line2); margin: 26px 0 0; }
.dd__facts div { padding: 14px 10px 0 0; }
.dd__facts b { display: block; font-family: var(--num); font-size: clamp(34px, 4vw, 50px); color: var(--jin); font-weight: 500; line-height: 1; }
.dd__facts span { font-size: 13.5px; color: var(--mute); }
.dd__card { display: block; position: relative; text-decoration: none; border: 1px solid var(--line2); padding: 26px; background: radial-gradient(circle at 70% 30%, #2a2219, #120f0c 70%); transition: border-color .2s; }
.dd__card:hover { border-color: var(--jin); }
.dd__card svg { width: 100%; height: auto; max-height: 260px; }
.dd__card p { margin: 14px 0 0; font-size: 18px; font-weight: 700; color: var(--jin); }

/* 第七问：算学 */
.pf { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); }
.pf > div { padding: 18px 20px; }
.pf > div + div { border-left: 1px solid var(--line); }
.pf h3 { margin: 0 0 12px; font-size: 15px; color: var(--mute); font-weight: 400; }
.pbar { display: grid; grid-template-columns: 84px 1fr 112px; align-items: center; gap: 10px; margin: 8px 0; font-size: 14px; }
html[lang="en"] .pbar { grid-template-columns: 104px 1fr 112px; }
.pbar b { white-space: nowrap; }
.pbar i { display: block; height: 14px; background: var(--line2); position: relative; }
.pbar i::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); background: var(--c, var(--jin)); transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.pbar b { font-family: var(--num); font-weight: 500; text-align: right; }
.pf svg { width: 100%; max-width: 240px; margin: 4px auto 0; }

/* 第八问：仕履 */
.tl { list-style: none; margin: 30px 0 0; padding: 0; position: relative; }
.tl::before { content: ''; position: absolute; left: 92px; top: 6px; bottom: 6px; width: 1px; background: linear-gradient(var(--zhu), var(--jin2) 60%, var(--line)); }
.tl li { display: grid; grid-template-columns: 76px 32px 1fr; gap: 0; padding: 0 0 22px; }
.tl__y { text-align: right; font-family: var(--num); color: var(--jin); font-size: 15px; padding-top: 2px; line-height: 1.4; }
html[lang^="zh"] .tl__y { font-family: var(--serif); }
.tl__dot { position: relative; }
.tl__dot::before { content: ''; position: absolute; left: 11px; top: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); border: 2px solid var(--zhu); }
.tl li.is-key .tl__dot::before { background: var(--zhu); width: 11px; height: 11px; left: 10px; top: 8px; }
.tl h3 { margin: 0; font-size: 18px; line-height: 1.5; }
.tl p { margin: 4px 0 0; font-size: 14.5px; color: var(--paper2); line-height: 1.8; max-width: 52em; }
.tl p.tl__q { color: var(--paper); }
.tl p.tl__t { color: var(--mute); font-size: 13.5px; }
.tl p.tl__n { color: var(--mute); font-size: 13.5px; }

/* 第九问 */
.lt { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 30px; border-top: 1px solid var(--line2); border-left: 1px solid var(--line); }
.lt article { padding: 20px 22px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lt h3 { margin: 0 0 10px; font-size: 19px; }
.lt p { margin: 0 0 10px; font-size: 14.5px; color: var(--paper2); line-height: 1.8; }
.lt .qt { margin: 0 0 12px; padding: 10px 12px 10px 16px; }
.lt .qt__z { font-size: 16px; }
.lt .qt__t { font-size: 13.5px; }
.lg { margin-top: 44px; }
.lg h3 { margin: 0 0 6px; font-size: 20px; }
.lg > p { margin: 0 0 16px; color: var(--mute); font-size: 14px; }
.lg ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.lg li { padding: 16px 18px; border: 1px dashed var(--line2); }
.lg li b { display: block; font-size: 17px; margin-bottom: 6px; }
.lg li p { margin: 0; font-size: 14px; color: var(--paper2); line-height: 1.8; }
.lg li a { display: inline-block; margin-top: 8px; font-size: 14px; color: var(--jin); }

/* 身后 */
.sec--end { background: radial-gradient(ellipse at 80% 0%, #1b2030 0%, var(--ink) 60%); }
.af { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 26px; }
.af article { padding: 0 0 18px; border-bottom: 1px solid var(--line); }
.af svg { width: 100%; height: 150px; margin-bottom: 12px; }
.af h3 { margin: 0 0 6px; font-size: 19px; }
.af p { margin: 0; font-size: 14.5px; color: var(--paper2); line-height: 1.8; }
.af small { display: block; margin-top: 6px; color: var(--mute); font-size: 12.5px; }
.end__go { margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.end__fine { margin: 34px 0 0; font-size: 13px; color: var(--mute); line-height: 1.85; max-width: 64em; }

.foot { padding: 26px var(--gut) 90px; text-align: center; }
.foot a { color: var(--mute); font-size: 14px; }
.deeplink { display: inline-block; margin-top: 18px; font-size: 14px; color: var(--jin); }

/* 云气纹分隔 */
.yun { display: block; width: 180px; height: 22px; color: var(--zhu); opacity: .55; margin: 0 0 18px; }

/* ------------------------------------------------ 窄屏 */
@media (max-width: 1180px) {
	.band__g { grid-template-columns: 1fr 1fr; }
	.band__g > div:last-child { grid-column: 1 / -1; }
	.nums { grid-template-columns: 1fr 1fr; }
	.nu:nth-child(3) { padding-left: 0; border-left: 0; }
	.lt { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1023px) {
	.hero { display: flex; flex-direction: column; gap: 0; padding-top: 18px; }
	.hero__id { display: contents; }
	.hero__era, .hero__name, .hero__alt, .hero__who, .hero__zi { order: 1; }
	.stage { order: 2; margin-top: 18px; }
	.hero__lead { order: 3; margin-top: 22px; }
	.hero__qs { order: 4; }
	.hero__go { order: 5; }
	.stage__view { height: min(68vh, 640px); }
	.cols, .lx, .dd { grid-template-columns: 1fr; }
	.sf { grid-template-columns: 1fr; }
	.sf__list { border-left: 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; }
	.sf__list .grp, .sf__src { grid-column: 1 / -1; }
	.sf__list button:nth-of-type(odd) { border-right: 1px solid var(--line); }
}
@media (max-width: 760px) {
	body { font-size: 16px; }
	.hero__name { font-size: 76px; }
	html[lang="en"] .hero__name { font-size: 50px; }
	.stage__view { height: 62vh; min-height: 330px; }
	.stage__read { grid-template-columns: 1fr 1fr; }
	.rd:nth-child(3) { padding-left: 0; border-left: 0; }
	.rd:nth-child(n+3) { border-top: 1px solid var(--line); }
	.band__g, .debs, .wsub, .pf, .lt, .lg ul, .af { grid-template-columns: 1fr; }
	.pf > div + div { border-left: 0; border-top: 1px solid var(--line); }
	.nums { grid-template-columns: 1fr; }
	.nu + .nu { padding-left: 0; border-left: 0; }
	.sec__hd { grid-template-columns: auto 1fr; gap: 0 14px; }
	.sec__no { font-size: 56px; }
	.qt { padding: 14px 14px 12px 16px; }
	.qt__z { font-size: 17px; }
	.tl::before { left: 66px; }
	.tl li { grid-template-columns: 54px 26px 1fr; }
	.tl__y { font-size: 13px; }
	.tl__dot::before { left: 8px; }
	.tl li.is-key .tl__dot::before { left: 7px; }
	.dd__facts b { font-size: 30px; }
	.stage__hint { display: none; }
	.hero__qs a small { display: none; }
	.hero__qs a { grid-template-columns: 26px 1fr; }
}

/* ------------------------------------------------ 海报模式 ?bare */
html.bare, html.bare body { background: #07080b; overflow: hidden; height: 100%; }
html.bare .bar, html.bare .toc, html.bare .hero__id, html.bare .stage__ctl, html.bare .stage__read, html.bare .stage__cap, html.bare .stage__chips, html.bare .stage__hint,
html.bare main > section:not(.hero), html.bare .foot, html.bare .skip { display: none !important; }
html.bare .hero { display: block; padding: 0; max-width: none; height: 100vh; }
html.bare .stage, html.bare .stage__view { height: 100vh; min-height: 0; border: 0; border-radius: 0; }
html.bare .stage__view { background: radial-gradient(ellipse at 50% 50%, #1c2130 0%, #0b0d13 55%, #050608 100%); }
html.bare .wk-pill { display: none !important; }
html.bare .stage__bare { display: block; position: absolute; left: 5.5%; bottom: 7%; margin: 0; pointer-events: none; }
html.bare .stage__bare b { display: block; font-size: clamp(48px, 9vh, 96px); line-height: 1; letter-spacing: .08em; color: #f3e6cf; font-weight: 800; }
html.bare .stage__bare span { display: block; margin-top: 10px; font-size: clamp(16px, 2.6vh, 24px); color: var(--jin); letter-spacing: .2em; }
html.bare[lang="en"] .stage__bare b { letter-spacing: 0; }
html.bare[lang="en"] .stage__bare span { letter-spacing: .04em; }

@media print { .bar, .toc, .stage__ctl { display: none; } }
