:root {
  --ink: #13251e;
  --muted: #748078;
  --paper: #f4f1e9;
  --white: #fffefa;
  --green: #0f6545;
  --line: rgba(19, 37, 30, .12);
  --danger: #9a3e35;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(circle at 80% 0, rgba(207, 221, 207, .7), transparent 31rem), var(--paper);
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, a, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.training-header, main, body > footer { width: min(1180px, calc(100% - 44px)); margin: 0 auto; }
.training-header { height: 78px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; letter-spacing: .16em; font-size: 12px; }
.brand i { width: 30px; height: 30px; display: grid; place-items: center; color: #fff; background: var(--green); border-radius: 50%; font: italic 17px Georgia, serif; }
.back-link { color: var(--ink); text-decoration: none; font-size: 12px; }
.back-link span { margin-left: 6px; color: var(--green); }

.hero { min-height: 430px; padding: 92px 0 68px; border-bottom: 1px solid var(--line); }
.hero > p:first-child, .section-head span { margin: 0; color: var(--green); letter-spacing: .18em; font-size: 10px; font-weight: 800; }
.hero h1 { max-width: 840px; margin: 17px 0 20px; font: 400 clamp(54px, 8vw, 102px)/.96 Georgia, "Songti SC", serif; letter-spacing: -.055em; }
.hero h1 em { color: var(--green); font-weight: 400; }
.hero-copy { max-width: 620px; margin: 0; color: #637068; font: 18px/1.75 Georgia, "Songti SC", serif; }
.hero-actions { margin-top: 32px; display: flex; align-items: center; gap: 20px; }
.hero-actions button, .review-actions a { min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; color: #fff; background: var(--green); text-decoration: none; cursor: pointer; }
.hero-actions button span, .review-actions a span { margin-left: 10px; }
.hero-actions a { color: var(--ink); font-size: 12px; text-decoration: none; border-bottom: 1px solid var(--ink); }

.release-board { margin: 68px 0 96px; display: grid; grid-template-columns: 280px 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: rgba(255, 254, 250, .72); box-shadow: 0 30px 70px rgba(25, 44, 35, .07); }
.score-block { min-height: 300px; padding: 38px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; background: var(--ink); }
.score-block span { color: rgba(255,255,255,.58); font-size: 11px; }
.score-block strong { margin: 12px 0 2px; font: 400 92px/1 Georgia, serif; }
.score-block small { color: #b8d8c7; font-size: 11px; }
.release-copy { padding: 42px 48px; }
.release-title { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.release-title span { color: var(--green); letter-spacing: .12em; font-size: 9px; font-weight: 800; }
.release-title h2 { margin: 0; font: 400 27px Georgia, "Songti SC", serif; }
.release-copy > p { max-width: 680px; margin: 24px 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.progress { height: 3px; overflow: hidden; background: #dce3dc; }
.progress i { width: 0; height: 100%; display: block; background: var(--green); transition: width .5s ease; }
.release-metrics { margin-top: 30px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.release-metrics span { display: grid; gap: 5px; }
.release-metrics b { font: 400 27px Georgia, serif; }
.release-metrics small { color: var(--muted); font-size: 9px; }

.section { margin: 0 0 104px; }
.section-head { margin-bottom: 28px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section-head h2 { margin: 9px 0 0; font: 400 34px Georgia, "Songti SC", serif; }
.section-head > small { max-width: 400px; color: var(--muted); font-size: 10px; line-height: 1.6; text-align: right; }
.family-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.family-card { min-height: 156px; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 254, 250, .62); }
.family-card span { color: var(--muted); font-size: 9px; letter-spacing: .1em; }
.family-card strong { max-width: 160px; font: 400 20px/1.35 Georgia, "Songti SC", serif; }
.family-card footer { display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; }
.family-card footer b { color: var(--green); }

.case-section { padding: 42px; border-radius: 24px; color: #fff; background: var(--ink); }
.case-section .section-head span { color: #93c0a8; }
.case-section .section-head h2 { color: #fff; }
.quiet-button { padding: 9px 13px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: #fff; background: transparent; font-size: 9px; cursor: pointer; }
.case-toolbar { margin-bottom: 16px; display: flex; gap: 7px; }
.case-toolbar button { padding: 8px 13px; border: 0; border-radius: 999px; color: rgba(255,255,255,.56); background: rgba(255,255,255,.06); font-size: 9px; cursor: pointer; }
.case-toolbar button.active { color: var(--ink); background: #d8eadf; }
.case-list { display: grid; gap: 7px; }
.case-row { min-height: 56px; padding: 12px 15px; display: grid; grid-template-columns: 88px 1fr 120px 72px; align-items: center; gap: 12px; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; background: rgba(255,255,255,.035); }
.case-row > span { color: rgba(255,255,255,.44); font-size: 8px; }
.case-row strong { font-size: 10px; font-weight: 650; }
.case-row small { color: rgba(255,255,255,.48); font-size: 8px; text-align: right; }
.case-row b { color: #8bd1aa; font-size: 9px; text-align: right; }
.case-row.failed { border-color: rgba(255, 127, 112, .35); }
.case-row.failed b { color: #ff9f91; }

.candidate-summary { margin-bottom: 18px; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 16px; background: rgba(255,254,250,.62); }
.candidate-summary span { padding: 20px 22px; display: grid; gap: 5px; border-right: 1px solid var(--line); }
.candidate-summary span:last-child { border-right: 0; }
.candidate-summary b { font: 400 26px Georgia, serif; }
.candidate-summary small { color: var(--muted); font-size: 9px; }
.candidate-tools { margin-bottom: 12px; padding: 13px 15px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 12px; background: rgba(229,240,232,.58); }
.candidate-tools > div { margin-right: auto; display: grid; gap: 3px; }
.candidate-tools strong { font-size: 9px; }
.candidate-tools small { color: var(--muted); font-size: 8px; }
.candidate-tools label, .candidate-tools button { min-height: 33px; padding: 0 12px; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: rgba(255,255,255,.65); font-size: 8px; cursor: pointer; }
.candidate-tools label { color: #fff; border-color: var(--green); background: var(--green); }
.candidate-tools button:disabled { opacity: .45; cursor: not-allowed; }
.candidate-list { display: grid; gap: 8px; }
.candidate-item { border: 1px solid var(--line); border-radius: 13px; background: rgba(255,254,250,.68); }
.candidate-item > summary { min-height: 58px; padding: 0 16px; display: grid; grid-template-columns: 86px 1fr auto; align-items: center; gap: 12px; list-style: none; cursor: pointer; }
.candidate-item > summary::-webkit-details-marker { display: none; }
.candidate-item > summary span { color: var(--muted); font-size: 8px; }
.candidate-item > summary strong { font-size: 10px; }
.candidate-item > summary b { color: #9b7b45; font-size: 8px; }
.candidate-item > summary b.accepted { color: var(--green); }
.candidate-item > summary b.needs_fix { color: var(--danger); }
.candidate-body { padding: 17px 18px 18px; display: grid; gap: 12px; border-top: 1px solid var(--line); }
.candidate-evidence { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.candidate-evidence span { padding: 11px 13px; display: grid; gap: 4px; border-radius: 8px; background: rgba(229,240,232,.72); }
.candidate-evidence small { color: var(--muted); font-size: 8px; }
.candidate-evidence b { font-size: 9px; }
.candidate-expected { margin: 0; color: #59685f; font-size: 9px; line-height: 1.65; }
.candidate-body textarea { width: 100%; min-height: 70px; padding: 12px; resize: vertical; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: rgba(255,255,255,.75); font-size: 10px; outline: none; }
.candidate-body textarea:focus { border-color: var(--green); }
.candidate-actions { display: flex; align-items: center; gap: 8px; }
.candidate-actions button { min-height: 34px; padding: 0 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: transparent; font-size: 9px; cursor: pointer; }
.candidate-actions button[data-candidate-verdict="accepted"] { color: #fff; border-color: var(--green); background: var(--green); }
.candidate-actions small { margin-left: auto; color: var(--muted); font-size: 8px; }

.review-layout { display: grid; grid-template-columns: 420px 1fr; gap: 18px; }
.review-intro, .review-list { min-height: 260px; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,254,250,.62); }
.review-intro strong { font: 400 24px Georgia, "Songti SC", serif; }
.review-intro p { color: var(--muted); font-size: 11px; line-height: 1.8; }
.review-actions { margin: 24px 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.review-actions a, .review-actions label, .review-actions button { min-height: 36px; padding: 0 13px; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: transparent; font-size: 9px; text-decoration: none; cursor: pointer; }
.review-actions a { color: #fff; border-color: var(--green); background: var(--green); }
.review-intro > small { color: var(--muted); font-size: 9px; }
.review-list { display: grid; align-content: start; gap: 8px; }
.review-empty { min-height: 200px; display: grid; place-items: center; color: var(--muted); font-size: 10px; line-height: 1.8; text-align: center; }
.review-row { padding: 13px 0; display: grid; grid-template-columns: 1fr auto; gap: 6px 18px; border-bottom: 1px solid var(--line); }
.review-row:last-child { border-bottom: 0; }
.review-row strong { font-size: 10px; }
.review-row b { color: var(--green); font-size: 9px; }
.review-row b.needs-fix { color: var(--danger); }
.review-row small { grid-column: 1 / 3; color: var(--muted); font-size: 8px; line-height: 1.5; }

body > footer { min-height: 90px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }

@media (max-width: 900px) {
  .release-board, .review-layout { grid-template-columns: 1fr; }
  .score-block { min-height: 210px; }
  .family-grid { grid-template-columns: repeat(2, 1fr); }
  .case-row { grid-template-columns: 78px 1fr 64px; }
  .case-row small { display: none; }
}
@media (max-width: 600px) {
  .training-header, main, body > footer { width: min(100% - 28px, 1180px); }
  .back-link { font-size: 10px; }
  .hero { min-height: 380px; padding-top: 70px; }
  .hero-copy { font-size: 15px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .release-board { margin-top: 42px; }
  .release-copy, .case-section { padding: 28px 20px; }
  .release-title, .section-head { align-items: flex-start; flex-direction: column; }
  .release-metrics { grid-template-columns: repeat(2, 1fr); }
  .candidate-summary { grid-template-columns: repeat(2, 1fr); }
  .candidate-summary span:nth-child(2) { border-right: 0; }
  .candidate-summary span:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .family-grid { grid-template-columns: 1fr; }
  .section-head > small { text-align: left; }
  .case-row { grid-template-columns: 1fr auto; }
  .case-row > span { grid-column: 1 / 3; }
  .candidate-item > summary { grid-template-columns: 1fr auto; }
  .candidate-item > summary span { grid-column: 1 / 3; }
  .candidate-evidence { grid-template-columns: 1fr; }
  .candidate-tools { align-items: stretch; flex-direction: column; }
  .candidate-tools > div { margin: 0 0 4px; }
  .candidate-tools label, .candidate-tools button { justify-content: center; }
  body > footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 5px; }
}
