:root {
  color-scheme: dark;
  --bg: #0a141d;
  --panel: #101e2a;
  --ink: #edf2f1;
  --muted: #acbcc8;
  --accent: #f1c582;
  --blue: #9ecae1;
  --line: #334452;
  --content: 1140px;
  font-family: "Source Sans 3", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 76px; }
body { margin: 0; color: var(--ink); background: var(--bg); line-height: 1.75; }
a { color: var(--blue); text-underline-offset: .24em; }
button, select, input { font: inherit; }
button, select { color: var(--ink); background: #192b38; border: 1px solid #465965; border-radius: 6px; padding: 7px 14px; }
button, summary, select, input[type=range] { cursor: pointer; }
button:hover, button[aria-pressed=true] { color: #ffdfa7; border-color: #b99c68; }
:focus-visible { outline: 2px solid #ffd391; outline-offset: 4px; }
input[type=range] { accent-color: var(--accent); max-width: 100%; }
h1,h2,h3,h4,p,figure { margin: 0; }
h1,h2,h3,h4 { line-height: 1.35; }
h2 { font-size: clamp(1.65rem, 3.5vw, 2.6rem); letter-spacing: -.035em; text-wrap: balance; }
h3 { font-size: clamp(1.12rem, 2.2vw, 1.45rem); }
p + p { margin-top: .75em; }
p, li { overflow-wrap: break-word; }
figcaption, .muted, small { font-size: .875rem; color: var(--muted); }
svg { max-width: 100%; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; font-variant-numeric: tabular-nums; }
caption, th, td { text-align: left; }
td, th { padding: 9px 12px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); }
.wrap, .nav-inner, .mast-inner, .mast-foot, .guide-footer {
  width: min(var(--content), calc(100% - 64px)); margin-inline: auto;
}
.topnav { background: #0a141df7; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 12; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 59px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1rem; font-weight: 650; white-space: nowrap; text-decoration: none; color: var(--ink); }
.brand svg { flex: none; color: var(--accent); }
.navlinks { display: flex; align-items: center; gap: clamp(11px, 2.8vw, 32px); white-space: nowrap; overflow: auto; }
.navlinks a { font-size: .84rem; text-decoration: none; color: #b8c9d3; padding: 12px 0; }
.navlinks a:hover, .navlinks a[aria-current] { color: var(--accent); }
.skip-link { position: absolute; top: -5rem; z-index: 25; padding: 8px 16px; background: var(--panel); }
.skip-link:focus { top: 4px; left: 8px; }
.mast { position: relative; overflow: hidden; background: radial-gradient(ellipse at 85% 35%, #243343, #11212d 48%, #0d1923 76%); border-bottom: 1px solid var(--line); }
.mast-inner { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 20px; padding-block: clamp(32px, 5vw, 65px) 32px; }
.mast-copy { position: relative; z-index: 1; }
.mast-copy h1 { font-family: "Noto Serif CJK SC", "Songti SC", "SimSun", serif; font-size: clamp(2.9rem, 5.3vw, 4.9rem); font-weight: 600; letter-spacing: -.06em; line-height: 1.22; }
.mast-copy p { color: #c1ced5; max-width: 29em; padding-top: 22px; line-height: 1.9; }
.mast-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 27px; }
.mast-actions a { text-decoration: none; font-size: .9rem; font-weight: 600; }
.primary-link { padding: 9px 18px; border-radius: 4px; background: #ebc896; color: #13212b; }
.primary-link:hover { background: #ffdbab; }
.mast-map { margin: 0; min-width: 0; }
.mast-map svg { width: 100%; display: block; }
.mast-foot { border-top: 1px solid #afc7d22a; padding: 13px 0; color: #bfccd4; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-size: .81rem; }
.mast-foot a { color: var(--accent); text-decoration: none; }
main.wrap > section { padding-block: clamp(40px, 6.5vw, 77px); border-bottom: 1px solid var(--line); min-width: 0; }
.section-head { display: grid; gap: 12px; margin-bottom: 24px; }
.section-head p, .section-lead { color: #b9c8d2; max-width: 49em; }
.grid2, .grid3, .grid4 { display: grid; gap: 18px; grid-template-columns: repeat(2,minmax(0,1fr)); }
.grid3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.grid4 { grid-template-columns: repeat(4,minmax(0,1fr)); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 9px; padding: clamp(16px, 2.5vw, 26px); min-width: 0; }
.eyebrow, .tag { color: var(--accent); font-size: .78rem; letter-spacing: .13em; font-weight: 650; }
.space { margin-top: 18px; }
.field-reading { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px,4vw,54px); align-items: start; }
.rate-tool { background: #101f2c; border: 1px solid var(--line); border-radius: 9px; padding: 20px; }
.rate-tool svg { display: block; width: min(100%, 460px); margin: auto; }
.rate-tool label { display: flex; justify-content: space-between; }
.rate-tool input { width: 100%; margin: 14px 0; }
.rate-tool output { color: var(--accent); font-variant-numeric: tabular-nums; }
.reading-steps { margin: 0; }
.reading-steps dt { font-size: 1.1rem; font-weight: 650; color: var(--ink); }
.reading-steps dd { margin: 5px 0 16px; color: #bdcad3; }
.event { margin: 13px 0; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); overflow-wrap: anywhere; }
.event summary { font-weight: 650; font-size: clamp(1rem, 2.2vw, 1.3rem); padding: 17px 20px; }
.event summary::marker { color: var(--accent); }
.event[open] summary { border-bottom: 1px solid var(--line); }
.event > div { padding: 20px; }
.event h3, .event table { margin: .7em 0; }
.event details { margin-top: 12px; }
.event p { max-width: 62em; }
.guide-footer { padding-block: 27px 48px; display: flex; flex-wrap: wrap; gap: 10px 25px; justify-content: space-between; font-size: .85rem; color: var(--muted); }
.ref-links { display: flex; gap: 8px 18px; flex-wrap: wrap; }
@media(max-width: 760px) {
  html { scroll-padding-top: 75px; }
  .wrap, .nav-inner, .mast-inner, .mast-foot, .guide-footer { width: calc(100% - 32px); }
  .nav-inner { gap: 10px; min-height: 50px; }
  .brand { gap: 5px; font-size: .85rem; }
  .brand svg { width: 19px; }
  .navlinks { gap: 12px; }
  .navlinks a { font-size: .79rem; }
  .mast-inner, .field-reading { grid-template-columns: 1fr; }
  .mast-inner { gap: 18px; padding-bottom: 4px; }
  .mast-copy p { padding-top: 13px; }
  .mast-actions { margin-top: 16px; }
  .mast-map { width: min(100%, 480px); margin-inline: auto; }
  .stack-mobile, .grid3, .grid4 { grid-template-columns: 1fr; }
  td, th { padding: 7px 5px; }
}
@media(max-width: 430px) {
  .navlinks { gap: 9px; }
  .topnav .brand svg { display: none; }
}
@media(prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::after, *::before { scroll-behavior: auto!important; }
}
