:root {
  color-scheme: light;
  --paper: #f7f6ef;
  --ink: #162e27;
  --muted: #53645a;
  --green: #1a5043;
  --green-dark: #134033;
  --accent: #b94d35;
  --line: #dadfd4;
  --white: #fffefa;
  --serif: "Noto Serif SC", "Songti SC", SimSun, serif;
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 3px solid #ab5039; outline-offset: 4px; }
h1, h2, h3, p, figure { margin: 0; }
.shell { width: min(1152px, calc(100% - 80px)); margin-inline: auto; }
.top { display: flex; justify-content: space-between; align-items: center; min-height: 80px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 750; text-decoration: none; }
.brand-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #ffd694; background: var(--green); font-size: 20px; }
.edition { color: var(--muted); font-size: .9rem; }
.hero { display: grid; grid-template-columns: .91fr 1.09fr; min-height: 610px; }
.intro { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: clamp(35px, 5.4vw, 74px); background: #eeefe3; border-radius: 25px 0 0 25px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--green); font-size: .875rem; font-weight: 700; letter-spacing: .09em; }
.eyebrow span { width: 19px; height: 2px; background: var(--accent); }
.hero h1 { margin: 23px 0 20px; font: 800 clamp(1.95rem, 4.3vw, 3.75rem)/1.16 var(--serif); letter-spacing: -.07em; }
.hero h1 span { color: var(--accent); }
.lede { color: var(--muted); max-width: 27em; line-height: 1.85; margin-bottom: 29px; }
.primary, .secondary { display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; min-height: 48px; padding: 11px 20px; font-weight: 700; }
.primary { background: var(--green); color: #fffdf6; border: 1px solid var(--green); }
.primary:hover { background: var(--green-dark); }
.secondary { border: 1px solid var(--line); color: var(--green); background: var(--white); }
.secondary:hover { border-color: var(--green); }
.stats { display: flex; margin: 0; padding-top: 21px; border-top: 1px solid #cbd2c3; }
.stats > div { flex: 1; }
.stats > div + div { border-left: 1px solid #cbd2c3; padding-left: 15px; }
.stats dt { color: var(--muted); font-size: .82rem; }
.stats dd { margin: 6px 0 0; font: 700 1.8rem/1 var(--serif); }
.stats small { font: 500 .78rem/1 system-ui, sans-serif; }
.cover { position: relative; overflow: hidden; isolation: isolate; border-radius: 0 25px 25px 0; background: var(--green); }
.cover img { position: absolute; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 55% center; }
.cover::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, #101f1cd9); pointer-events: none; }
.cover figcaption { z-index: 1; position: absolute; left: 28px; right: 28px; bottom: 24px; display: flex; align-items: end; justify-content: space-between; gap: 12px; color: #fffefa; font-size: .83rem; }
.cover figcaption span { font: 700 1.15rem/1.2 var(--serif); }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-block: 25px; color: var(--muted); font-size: .84rem; }

.panel { width: min(660px, 100%); margin: 24px auto 44px; background: var(--white); padding: clamp(20px, 5vw, 45px); border: 1px solid var(--line); border-radius: 23px; }
.panel h1, .results h1 { font: 750 clamp(1.75rem, 4vw, 2.75rem)/1.28 var(--serif); margin: 14px 0 13px; }
.panel p:not(.eyebrow), .result-copy { color: var(--muted); line-height: 1.75; }
.quiz-status { display: flex; justify-content: space-between; font-size: .9rem; font-weight: 700; color: var(--green); }
progress { display: block; height: 8px; width: 100%; margin: 11px 0 28px; appearance: none; border: 0; border-radius: 80px; background: #e4eadf; }
progress::-webkit-progress-bar { background: #e4eadf; border-radius: 80px; }
progress::-webkit-progress-value { background: var(--green); border-radius: 80px; transition: width .23s ease; }
progress::-moz-progress-bar { background: var(--green); border-radius: 80px; }
.options { display: grid; gap: 10px; margin-top: 22px; }
.option { display: flex; align-items: center; text-align: left; min-height: 52px; padding: 9px 15px; gap: 13px; color: var(--ink); border: 1px solid var(--line); background: var(--white); border-radius: 10px; }
.option:hover, .option[aria-pressed="true"] { background: #edf3ea; border-color: #387261; }
.option span { display: inline-grid; place-items: center; flex: 0 0 29px; height: 29px; background: #e9ede1; color: var(--green); border-radius: 7px; font-size: .85rem; font-weight: 750; }
.actions { margin-top: 25px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.actions select { min-height: 48px; padding: 9px; max-width: 100%; background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.results { width: min(900px, 100%); margin: 25px auto 45px; }
.best { background: var(--green-dark); color: #fffefa; padding: clamp(23px, 5vw, 52px); border-radius: 24px; }
.best .eyebrow { color: #f9d9a7; }
.best h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
.best p { line-height: 1.75; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag { padding: 5px 10px; border-radius: 30px; font-size: .85rem; background: #ecf0e6; color: var(--green-dark); }
.best .tag { background: #2c584b; color: #f8f8e9; }
.result-copy { margin: 19px 0 24px; }
.result-copy p + p { margin-top: 7px; }
.alternatives { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 13px; }
.alt { padding: 20px; background: var(--white); border-radius: 14px; border: 1px solid var(--line); }
.alt h3 { margin: 4px 0 8px; font: 750 1.35rem/1.35 var(--serif); }
.alt p { color: var(--muted); line-height: 1.65; }
.alt .location { font-size: .85rem; }
@media (max-width: 820px) {
  .shell { width: calc(100% - 40px); }
  .intro { padding: 36px; }
  .hero { min-height: 510px; }
}
@media (max-width: 620px) {
  .shell { width: calc(100% - 28px); }
  .top { min-height: 65px; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .intro { padding: 29px 24px 24px; border-radius: 20px 20px 0 0; gap: 28px; }
  .hero h1 { margin: 17px 0; }
  .cover { min-height: 255px; border-radius: 0 0 20px 20px; }
  .cover figcaption { left: 18px; right: 18px; bottom: 16px; }
  .alternatives { grid-template-columns: 1fr; }
  .panel, .results { margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) { progress::-webkit-progress-value { transition: none; } }
