:root {
  --bg: #efe6d4;
  --paper: #fbf7ef;
  --ink: #1b1712;
  --muted: #6d6458;
  --line: #e3d8c6;
  --seal: #8e2c28;
  --good: #1c6b45;
  --warn: #8a5610;
  --bad: #8e2c28;
  --bar: #243044;
  --shadow: 0 18px 50px rgba(60, 40, 16, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 400px at 10% -10%, rgba(255, 255, 255, 0.7), transparent 50%),
    var(--bg);
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a { color: var(--seal); text-underline-offset: 0.18em; }

a:hover { color: #6d1d1a; }

.wrap {
  width: min(760px, calc(100% - 28px));
  margin: 0 auto;
  padding: 22px 0 56px;
}

.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.seal {
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--seal);
  color: var(--seal);
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
  font-size: 1rem;
  line-height: 1;
}

.paper {
  background: var(--paper);
  border: 1px solid rgba(80, 55, 25, 0.08);
  box-shadow: var(--shadow);
  padding: 28px 26px 32px;
}

h1, h2, h3 {
  font-family: "Songti SC", "Noto Serif SC", "STSong", "PMingLiU", serif;
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

h1 { font-size: clamp(1.9rem, 5vw, 2.7rem); margin: 0.2rem 0 0.6rem; }

h2 { font-size: 1.25rem; margin: 1.8rem 0 0.7rem; }

.kicker {
  margin: 0;
  color: var(--seal);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: none;
}

.lede { font-size: 1.05rem; margin-top: 0; }

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.92rem;
}

.meta li {
  border: 1px solid var(--line);
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.45);
}

.scorehead {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px 20px;
  align-items: end;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--ink);
}

.overall {
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
  font-size: 4.2rem;
  line-height: 0.85;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.overall small {
  font-size: 1rem;
  letter-spacing: 0;
  color: var(--muted);
  margin-left: 4px;
}

.meter { display: flex; gap: 5px; margin-top: 10px; }

.meter span {
  width: 28px;
  height: 8px;
  background: #e7dfd2;
}

.meter span.on { background: var(--bar); }

.stamp {
  justify-self: end;
  align-self: center;
  border: 2px solid currentColor;
  padding: 6px 12px;
  font-weight: 750;
  letter-spacing: 0.18em;
  font-size: 0.95rem;
}

.stamp.ok { color: var(--good); }
.stamp.mid { color: var(--warn); }
.stamp.bad { color: var(--bad); }

.banner {
  margin: 0 0 16px;
  padding: 10px 12px;
  background: #fff6e8;
  border-left: 3px solid var(--warn);
  color: #5c3d0c;
  font-size: 0.95rem;
}

.banner.mock {
  background: #f8ece8;
  border-left-color: var(--seal);
  color: #6a2a24;
}

.summary { font-size: 1.05rem; }

.scorecard { margin-top: 8px; }

.row {
  display: grid;
  grid-template-columns: 9.2em 5.2em 1fr;
  gap: 6px 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.row.head {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  padding-bottom: 6px;
}

.dim { font-weight: 650; }

.pts { font-variant-numeric: tabular-nums; white-space: nowrap; }

.dots { color: #c8bfb2; letter-spacing: 0.08em; margin-left: 4px; }

.dots i {
  font-style: normal;
  color: var(--bar);
}

.why { color: #3c362e; }

.chart {
  margin-top: 8px;
  display: grid;
  gap: 8px;
}

.barline {
  display: grid;
  grid-template-columns: 4.5em 1fr 2em;
  gap: 8px;
  align-items: center;
  font-size: 0.92rem;
}

.metric-label { font-size: 0.95rem; }
.metric-label strong { font-variant-numeric: tabular-nums; }
.track { height: 10px; background: #ebe3d6; }

.track b {
  display: block;
  height: 100%;
  background: var(--bar);
}

.note, .quiet { color: var(--muted); }

ol, ul { padding-left: 1.2rem; }

li + li { margin-top: 0.35rem; }

.block + .block { margin-top: 1.1rem; }

.unknown { color: var(--muted); font-size: 0.92rem; }

.source {
  font-size: 0.92rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}

.method {
  margin-top: 28px;
  padding-top: 12px;
  border-top: 1px solid var(--ink);
  color: var(--muted);
  font-size: 0.88rem;
}

.steps { list-style: none; padding: 0; counter-reset: step; }

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  margin: 0 0 14px;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: "Songti SC", "Noto Serif SC", serif;
  color: var(--seal);
}

code, .cmd {
  font-family: "SFMono-Regular", "Source Han Mono", "Noto Sans Mono", ui-monospace, monospace;
  font-size: 0.92em;
}

.cmd {
  display: block;
  background: #241f1a;
  color: #f6efe4;
  padding: 10px 12px;
  margin: 6px 0;
  overflow-x: auto;
}

.site-foot {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 640px) {
  .paper { padding: 22px 16px 26px; }
  .scorehead { grid-template-columns: 1fr; }
  .stamp { justify-self: start; }
  .overall { font-size: 3.4rem; }
  .row { grid-template-columns: 1fr auto; }
  .row.head { display: none; }
  .why { grid-column: 1 / -1; }
  .barline { grid-template-columns: 3.4em 1fr 1.6em; }
}

.follow {
  display: flex; align-items: center; gap: 20px;
  margin: 28px 0 8px; padding: 20px 22px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow);
}
.follow img { flex: none; width: 160px; height: 160px; border-radius: 8px; background: #fff; }
.follow p { margin: 0; color: var(--muted); font-size: 15px; }
.follow .follow-title { color: var(--ink); font-weight: 600; font-size: 17px; margin-bottom: 6px; }
@media (max-width: 640px) {
  .follow { flex-direction: column; text-align: center; }
}

@media print {
  body { background: white; }
  .paper { box-shadow: none; border: 0; }
  a { color: inherit; }
}
