:root {
  --card: rgba(255, 250, 240, .86);
  --ink: #20231f;
  --muted: #69645b;
  --line: rgba(47, 38, 26, .14);
  --red: #a8322d;
  --jade: #23685c;
  --gold: #b9852c;
  --blue: #29486f;
  --shadow: 0 16px 36px rgba(52, 34, 17, .12);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  background:
    radial-gradient(circle at 8% 10%, rgba(184, 133, 44, .18), transparent 26rem),
    radial-gradient(circle at 92% 16%, rgba(35, 104, 92, .14), transparent 24rem),
    linear-gradient(150deg, #fbf7ef 0%, #f1e0c4 52%, #eaf0ec 100%);
}
a, button { font: inherit; }
a { color: inherit; }
.tool-shell { width: min(1080px, calc(100% - 28px)); margin: 0 auto; padding: 18px 0 44px; }
.tool-header { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 16px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 900; }
.brand span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; background: #fffaf0; border: 1px solid rgba(168, 50, 45, .24); color: var(--red); }
nav, .action-row { display: flex; gap: 8px; flex-wrap: wrap; }
nav a, .ghost-link, .primary-link, button { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border-radius: 8px; text-decoration: none; font-weight: 800; }
nav a, .ghost-link, .ghost { border: 1px solid var(--line); background: rgba(255, 250, 240, .72); color: var(--ink); }
.primary-link { border: 1px solid var(--red); background: var(--red); color: white; }
button { cursor: pointer; }
.hero { padding: clamp(24px, 5vw, 46px); border-radius: 8px; border: 1px solid var(--line); background: linear-gradient(90deg, rgba(32,35,31,.86), rgba(32,35,31,.48)), repeating-linear-gradient(45deg, rgba(255,250,240,.06) 0 11px, transparent 11px 22px), linear-gradient(135deg, #5d241f, #1f5b51 58%, #263f61); color: #fffaf0; box-shadow: var(--shadow); }
.eyebrow { margin: 0 0 10px; color: #d9af66; font-size: 14px; font-weight: 900; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 760px; margin-bottom: 14px; font-size: clamp(34px, 6vw, 60px); line-height: 1.1; }
.hero p:last-child, .note, .empty { max-width: 780px; color: rgba(255,250,240,.86); font-size: 19px; line-height: 1.75; }
.note, .empty { color: var(--muted); }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-top: 16px; }
.stat-card, .panel { border-radius: 8px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); }
.stat-card { padding: 18px; }
.stat-card span { display: block; color: var(--muted); font-weight: 800; margin-bottom: 8px; }
.stat-card strong { color: var(--red); font-size: clamp(30px, 5vw, 46px); line-height: 1; }
.panel { margin-top: 16px; padding: clamp(18px, 4vw, 28px); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 14px; margin-bottom: 14px; }
.topic-list { display: flex; flex-wrap: wrap; gap: 10px; }
.topic-chip { padding: 10px 12px; border-radius: 999px; background: rgba(35,104,92,.1); color: var(--jade); font-weight: 900; }
.wrong-list { display: grid; gap: 12px; }
.wrong-item { padding: 16px; border-radius: 8px; border: 1px solid var(--line); background: #fffaf0; }
.wrong-item p { color: var(--muted); line-height: 1.75; }
.wrong-item strong { color: var(--jade); }
.knowledge-box { display: grid; gap: 6px; margin-bottom: 12px; padding: 12px; border-radius: 8px; border: 1px solid rgba(35,104,92,.16); background: rgba(35,104,92,.07); }
.knowledge-box p { margin: 0; color: var(--muted); line-height: 1.6; }
.knowledge-box span { display: inline-flex; align-items: center; min-height: 24px; margin-right: 8px; padding: 0 8px; border-radius: 999px; background: #fffaf0; color: var(--jade); font-size: 13px; font-weight: 900; }
@media (max-width: 780px) {
  .tool-header, .section-head { flex-direction: column; align-items: stretch; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero p:last-child { font-size: 17px; }
  .action-row > *, .primary-link { width: 100%; }
}
@media (max-width: 460px) {
  .stats-grid { grid-template-columns: 1fr; }
}
