:root {
  color-scheme: light;
  --paper: #f7f5ee;
  --ink: #243f34;
  --muted: #4a6257;
  --line: #c8cfc1;
  --accent: #285846;
  --serif: 'Songti SC', 'SimSun', 'Noto Serif CJK SC', serif;
  font-family: 'Microsoft YaHei', 'PingFang SC', system-ui, sans-serif;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
h1,h2,p,figure,ol,ul { margin: 0; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 3px solid #97542a; outline-offset: 4px; }
.skip { position: absolute; top: .75rem; left: .75rem; transform: translateY(-160%); z-index: 4; background: white; padding: .5rem; }
.skip:focus { transform: none; }
.wrap { width: min(1120px, calc(100% - 72px)); margin-inline: auto; }
.top { border-bottom: 1px solid var(--line); }
.top-inner { min-height: 67px; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 750; text-decoration: none; letter-spacing: .067em; }
.brand svg { width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.series { color: var(--muted); font-size: .8rem; letter-spacing: .12em; }
.series span { font: 700 .7rem ui-monospace, monospace; }
.hero { display: grid; grid-template-columns: .86fr 1.14fr; min-height: 343px; align-items: stretch; margin-top: 27px; background: #e6ede3; border: 1px solid #becdbd; }
.hero-text { padding: clamp(28px, 5vw, 62px); align-self: center; }
.eyebrow { color: #395f50; font-weight: 700; font-size: .78rem; letter-spacing: .23em; display: flex; align-items: center; gap: .65rem; }
.eyebrow span { width: 22px; height: 1px; background: #567765; }
.hero h1 { font-family: var(--serif); font-size: clamp(3rem, 7vw, 5.1rem); line-height: 1.12; letter-spacing: .055em; margin: 10px 0 14px; }
.intro { line-height: 1.8; color: #355547; }
.jump { display: inline-flex; align-items: center; gap: 1.25rem; margin-top: 19px; padding: .64rem .95rem; background: #285846; color: white; font-weight: 700; text-decoration: none; font-size: .88rem; }
.jump:hover { background: #194533; }
.plate { padding: 0 22px 17px 0; position: relative; display: grid; align-items: center; }
.plate img { display: block; width: 100%; height: auto; max-height: 340px; }
.plate figcaption { align-self: end; position: absolute; right: 28px; bottom: 16px; color: #3b5b4e; font-size: .74rem; letter-spacing: .08em; display: flex; gap: .55rem; align-items: center; }
.plate figcaption span { width: 17px; height: 1px; background: #6c8478; }
.notebook { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); align-items: start; gap: 24px; }
.key, .path-panel, .card-panel { border: 1px solid var(--line); background: #fbfaf5; }
.progress { padding: 0; list-style: none; display: flex; border-bottom: 1px solid var(--line); }
.progress li { flex: 1; min-width: 0; padding: .78rem .6rem; color: var(--muted); text-align: center; font-size: .83rem; white-space: nowrap; border-bottom: 2px solid transparent; }
.progress li + li { border-left: 1px solid var(--line); }
.progress span { font: 700 .74rem ui-monospace, monospace; padding-right: .3rem; }
.progress [aria-current] { color: #224d3c; border-bottom-color: #326b55; background: #e8eee5; font-weight: bold; }
.question-panel { padding: 23px 25px 25px; }
.question-panel h2 { font: 700 clamp(1.4rem, 3vw, 1.8rem)/1.3 var(--serif); scroll-margin-top: 16px; }
.prompt { margin-top: 8px; margin-bottom: 16px; font-size: .89rem; color: var(--muted); }
.options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.option { display: grid; grid-template-columns: 58px minmax(0,1fr) auto; align-items: center; gap: 8px; text-align: left; min-height: 74px; padding: 9px; border: 1px solid #bac6b8; background: #f7f7ef; color: var(--ink); }
.option:hover { background: #e7eee3; border-color: #6f8a78; }
.option[data-choice='unknown'] { border-style: dashed; background: #f5f2e9; }
.option svg { width: 100%; max-height: 49px; fill: none; stroke: #416552; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.choice-label,.choice-hint { display: block; }
.choice-label { font-size: .95rem; font-weight: bold; }
.choice-hint { margin-top: 3px; color: var(--muted); font-size: .76rem; }
.arrow { color: #426c58; font-size: 1.1rem; }
.actions { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 9px; }
.actions button { border: 1px solid #aab9aa; background: transparent; color: var(--accent); padding: .5rem .7rem; font-size: .82rem; }
.actions button:hover { background: #e8eee5; }
.summary { padding: 16px; background: #e8eee5; border-left: 3px solid #527461; }
.summary h3 { margin: 0 0 5px; font-size: 1.04rem; }
.summary ul { margin-top: 6px; padding-left: 1.3rem; color: var(--muted); font-size: .87rem; }
.path-panel,.card-panel { padding: 17px 18px; }
.path-panel h2,.card-panel h2 { font: 700 1.16rem/1.3 var(--serif); }
.trail { margin-top: 10px; padding: 0; list-style: none; font-size: .84rem; }
.trail li { display: flex; align-items: baseline; gap: 9px; padding: .29rem 0; }
.trail li span:first-child { font: 700 .7rem ui-monospace, monospace; color: #456f5d; }
.trail li span:last-child { margin-left: auto; text-align: right; color: var(--muted); }
.field-note { border-top: 1px solid var(--line); margin-top: 9px; padding-top: 9px; color: var(--muted); font-size: .77rem; }
.card-panel { margin-top: 12px; background: #f2eee1; }
.card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.price { font: 700 .9rem ui-monospace, monospace; }
.card-panel p { margin-top: 7px; color: var(--muted); font-size: .81rem; }
.card-panel button { margin-top: 11px; background: var(--accent); color: white; border: 1px solid var(--accent); padding: .54rem .7rem; width: 100%; font-weight: bold; font-size: .84rem; }
.card-panel button:hover:not(:disabled) { background: #194533; }
.card-panel button:disabled { background: #e4e6dc; border-color: #c4cdbf; color: #4a6257; cursor: default; }
.card-panel .status,.card-panel .error { font-size: .75rem; }
.card-panel .error { color: #872a20; font-weight: 600; }
.card-panel .error:empty { margin: 0; }
footer { text-align: center; margin: 22px 0; font-size: .79rem; color: var(--muted); }
@media (max-width: 820px) {
  .wrap { width: calc(100% - 36px); }
  .hero { min-height: 0; }
  .notebook { grid-template-columns: 1fr; gap: 16px; }
  aside { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .card-panel { margin: 0; }
}
@media (max-width: 540px) {
  .wrap { width: calc(100% - 28px); }
  .top-inner { min-height: 54px; }
  .series { font-size: .69rem; letter-spacing: .06em; }
  .series span { display: none; }
  .hero { margin-top: 16px; grid-template-columns: 1fr; }
  .hero-text { padding: 22px 20px 10px; }
  .hero h1 { font-size: 3rem; }
  .intro br { display: none; }
  .jump { margin-top: 11px; }
  .plate { padding: 0 0 10px; }
  .plate figcaption { bottom: 7px; right: 11px; font-size: .65rem; }
  .notebook { margin-top: 16px; }
  .question-panel { padding: 15px 12px; }
  .progress li { padding: .66rem .2rem; font-size: .75rem; }
  .progress span { padding-right: .16rem; }
  .options { grid-template-columns: 1fr; gap: 8px; }
  .option { min-height: 59px; }
  aside { grid-template-columns: 1fr; gap: 11px; }
}
