:root {
  color-scheme: light;
  --paper: #f6f0e6;
  --card: #fffaf2;
  --ink: #252630;
  --muted: #655b52;
  --clay: #973f29;
  --line: #ded1bf;
  --serif: "Noto Serif SC", "Songti SC", "SimSun", serif;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
:focus-visible { outline: 3px solid #a1472f; outline-offset: 4px; }
[tabindex="-1"]:focus { outline: none; }
.mast, .footer { width: min(1152px, calc(100% - 64px)); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mast { min-height: 74px; border-bottom: 1px solid var(--line); }
.brand { color: var(--ink); text-decoration: none; font-weight: 800; display: inline-flex; align-items: center; gap: 10px; }
.emblem { width: 34px; height: 34px; display: grid; place-items: center; background: var(--ink); color: #f4d2a9; border-radius: 50%; }
.edition, .series, .footer { font-size: 13px; color: var(--muted); font-weight: 500; }
.series { border: 1px solid var(--line); border-radius: 30px; padding: 6px 12px; }
#app { width: min(1152px, calc(100% - 64px)); margin: 0 auto; flex: 1; }
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; padding: clamp(26px, 6vh, 74px) 0 30px; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--clay); font-weight: 750; font-size: 13px; letter-spacing: .16em; }
.eyebrow::before { content: ""; width: 25px; height: 1px; background: currentColor; }
h1, h2, h3, p { margin: 0; }
.hero h1 { font: 800 clamp(38px, 5.35vw, 73px)/1.19 var(--serif); letter-spacing: -.045em; margin: 20px 0; }
.hero h1 span { color: var(--clay); display: block; }
.lead { max-width: 420px; color: var(--muted); line-height: 1.85; font-size: clamp(15px, 1.7vw, 18px); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.button { min-height: 48px; padding: 11px 19px; border: 1px solid transparent; border-radius: 7px; font-weight: 750; line-height: 1.4; }
.primary { color: #fffaf1; background: var(--clay); }
.primary:hover:not(:disabled) { background: #773020; }
.secondary { color: var(--ink); background: transparent; border-color: #bcad99; }
.secondary:hover:not(:disabled) { background: #eee3d4; }
.art { margin: 0; border-radius: 10px; overflow: hidden; background: #242832; color: #f4d2ae; }
.art img { width: 100%; display: block; aspect-ratio: 580/510; }
.art figcaption { display: flex; justify-content: space-between; gap: 12px; padding: 13px 19px; border-top: 1px solid #58504f; font-size: 12px; letter-spacing: .1em; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); padding: 20px 0; margin-bottom: 30px; }
.stat { padding-inline: clamp(10px, 3vw, 38px); display: flex; align-items: baseline; gap: 10px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { font: 500 clamp(23px, 3.5vw, 38px)/1 Georgia, serif; color: var(--clay); white-space: nowrap; }
.stat span { color: var(--muted); font-size: 13px; }
.footer { border-top: 1px solid var(--line); padding: 17px 0; line-height: 1.6; }
.quiz, .report { max-width: 760px; margin: 30px auto 45px; }
.panel { padding: clamp(18px, 5vw, 40px); border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.progress-caption { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13px; margin-bottom: 9px; }
.progress-caption strong { color: var(--clay); font-size: 15px; }
progress { width: 100%; height: 8px; appearance: none; border: 0; border-radius: 99px; overflow: hidden; background: #ece0d2; color: var(--clay); }
progress::-webkit-progress-bar { background: #ece0d2; }
progress::-webkit-progress-value { background: var(--clay); }
progress::-moz-progress-bar { background: var(--clay); }
.question { font: 800 clamp(23px, 4.2vw, 34px)/1.42 var(--serif); margin: 21px 0 18px; }
.options { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 9px; }
.option { display: flex; align-items: center; gap: 12px; position: relative; padding: 10px 13px; min-height: 51px; line-height: 1.55; border: 1px solid var(--line); border-radius: 7px; cursor: pointer; }
.option:hover { background: #f6eee2; }
.option:has(input:checked) { border-color: var(--clay); background: #f4e2d8; }
.option:has(input:focus-visible) { outline: 3px solid var(--clay); outline-offset: 2px; }
.option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.letter { display: grid; place-items: center; flex: 0 0 29px; height: 29px; border-radius: 5px; background: #ede3d6; font: 700 14px Georgia, serif; }
.option:has(input:checked) .letter { color: white; background: var(--clay); }
.quiz-nav { display: flex; gap: 10px; justify-content: space-between; margin-top: 23px; }
.question-map { margin-top: 14px; }
summary { cursor: pointer; padding: 12px 2px; color: var(--muted); font-size: 14px; }
.map { display: grid; grid-template-columns: repeat(auto-fill, minmax(39px, 1fr)); gap: 6px; }
.map button { min-height: 40px; border: 1px solid var(--line); border-radius: 5px; background: var(--card); color: var(--ink); }
.map .filled { background: #efd9ca; }
.map [aria-current="step"] { border: 2px solid var(--clay); }
.banner { background: var(--ink); color: #fff4e4; border-radius: 12px; padding: clamp(22px, 6vw, 44px); margin-bottom: 14px; }
.banner .eyebrow { color: #efb697; }
.banner h1 { font: 800 clamp(36px, 7vw, 60px)/1.2 var(--serif); margin: 12px 0; }
.banner p { line-height: 1.65; color: #f2d4bf; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chips span { border: 1px solid #75605b; color: #f9e5d5; border-radius: 99px; padding: 6px 10px; font-size: 13px; }
.report section + section { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.report h2 { font: 800 22px/1.5 var(--serif); margin-bottom: 7px; }
.report section p, .score-note p { color: var(--muted); line-height: 1.85; }
.score-note { margin-top: 13px; font-size: 14px; }
.report-note { margin-top: 14px; font-size: 13px; line-height: 1.65; color: var(--muted); }
.notice { min-height: 20px; margin-top: 10px; font-size: 13px; color: var(--clay); }
@media (max-width: 730px) {
  .mast, .footer, #app { width: calc(100% - 36px); }
  .mast { min-height: 60px; }
  .hero { grid-template-columns: 1fr; gap: 22px; padding-top: 30px; padding-bottom: 22px; }
  .hero h1 { margin: 14px 0; }
  .art img { aspect-ratio: 1.8; object-fit: cover; object-position: center 53%; }
  .stat { flex-direction: column; gap: 5px; }
}
@media (max-width: 380px) {
  .mast, .footer, #app { width: calc(100% - 24px); }
  .footer { flex-wrap: wrap; }
}
@media print {
  .mast, .footer, .actions, .score-note, .notice { display: none; }
  #app { width: 100%; }
  .report { margin: 0; }
  .banner { background: white; color: black; padding: 0 0 12px; border-bottom: 1px solid #999; border-radius: 0; }
  .banner .eyebrow, .banner p, .chips span { color: black; }
  .report .panel { border: 0; padding: 0; }
  .report section { break-inside: avoid; }
}