:root {
  --bg: #f4f7fb;
  --card: #ffffff;
  --ink: #16202b;
  --muted: #66717e;
  --line: rgba(22, 32, 43, 0.1);
  --brand: #0b60b0;
  --brand-soft: #e8f1fa;
  --ok: #0f8a52;
  --mid: #c1760b;
  --low: #ce3f2b;
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 20px 18px 56px;
}

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.brand-logo {
  display: block;
  height: 26px;
  width: auto;
}

.head-meta { font-size: 13px; color: var(--muted); }

.site-foot {
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.site-foot p { margin: 0 0 6px; }
.site-foot p:last-child { margin-bottom: 0; }

.foot-admin {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted rgba(0, 0, 0, 0.25);
  padding-bottom: 1px;
}
.foot-admin:hover { color: #0a5499; border-bottom-color: #0a5499; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 14px;
}

h1 {
  font-size: 22px;
  line-height: 1.35;
  font-weight: 600;
  margin: 0 0 10px;
}

h2 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 12px;
}

p { margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }

.lede { color: var(--muted); font-size: 15px; }

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 18px;
}

.chip {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 500;
}

.btn {
  display: block;
  width: 100%;
  padding: 15px 18px;
  border: 0;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.15s ease;
}

.btn:hover { opacity: 0.9; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

.btn-ghost {
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  padding: 10px;
}

.field { margin-bottom: 16px; }

.field > label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
}

.field input[type="text"],
.field input[type="date"],
.field input[type="tel"] {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  appearance: none;
}

.field input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(11, 96, 176, 0.12);
}

.check-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--muted);
}

.check-line input { margin-top: 4px; }

.err {
  color: var(--low);
  font-size: 13px;
  margin: 6px 0 0;
}

.hint {
  color: var(--muted);
  font-size: 13px;
  margin: 6px 0 0;
}

.progress {
  height: 6px;
  background: rgba(22, 32, 43, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress > span {
  display: block;
  height: 100%;
  background: var(--brand);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
}

.q-stem {
  font-size: 19px;
  line-height: 1.5;
  font-weight: 500;
  margin: 0 0 8px;
}

.q-help {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 18px;
}

.opt {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 10px;
  cursor: pointer;
  background: #fff;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.opt input {
  margin: 4px 0 0;
  accent-color: var(--brand);
  flex: 0 0 auto;
}

.opt .opt-text { font-size: 15px; line-height: 1.5; }

.opt.sel,
.opt:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.audio-box {
  border: 1px dashed rgba(11, 96, 176, 0.35);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 18px;
  text-align: center;
  background: #fff;
}

.play-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid var(--brand);
  background: #fff;
  color: var(--brand);
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
}

.play-btn[disabled] {
  border-color: var(--line);
  color: var(--muted);
  cursor: not-allowed;
}

.play-note {
  font-size: 12px;
  color: var(--muted);
  margin: 10px 0 0;
}

.nav-row { margin-top: 18px; }

.score-hero {
  text-align: center;
  padding: 26px 20px;
}

.score-num {
  font-size: 52px;
  font-weight: 600;
  line-height: 1;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}

.score-sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}

.level-badge {
  display: inline-block;
  margin-top: 14px;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
}

/* 四档语义色：待发展红 / 中等橙 / 良好绿 / 优势（品牌蓝） */
.level-low { background: #fdebe9; color: #b93a2b; border: 1px solid #f2c9c2; }
.level-mid { background: #fdf2e4; color: #b3640c; border: 1px solid #efd2ab; }
.level-high { background: #e8f7ef; color: #0f7f4f; border: 1px solid #b8ddc9; }
.level-top { background: #e0edfa; color: #08497f; border: 1px solid #b3d0ea; }

.dim {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.dim:last-child { border-bottom: 0; }

.dim-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 15px;
  margin-bottom: 8px;
}

.dim-name { font-weight: 500; }
.dim-score { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

.bar {
  height: 7px;
  background: rgba(22, 32, 43, 0.07);
  border-radius: 999px;
  overflow: hidden;
}

.bar > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--brand);
}

/* 进度条颜色跟着分档走，和徽章同色系 */
.bar > span.is-low { background: #cf3b2c; }
.bar > span.is-mid { background: #d9761c; }
.bar > span.is-high { background: #0f8f58; }
.bar > span.is-top { background: #0b60b0; }

.dim-advice {
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0 0;
}

.dim-headline {
  font-size: 14px;
  font-weight: 500;
  margin: 10px 0 4px;
  color: var(--ink);
}

.radar-wrap { margin: 8px 0 0; }
.radar-wrap svg { display: block; width: 100%; height: auto; max-width: 100%; }

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.tag {
  font-size: 13px;
  padding: 5px 12px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: #14528c;
  border: 1px solid #d5e5f4;
}

@media print {
  .site-head { margin-bottom: 10px; }
  .brand-logo { height: 20px; }
  .head-meta, .site-foot, .btn, .btn-ghost { display: none !important; }
  body { background: #fff; }
  .card { border-color: #dbe3ec; break-inside: avoid; }
  .wrap { padding: 0; max-width: none; }
}

/* 科目选择：放在首页卡片里「开始测评」按钮上方，刻意做成脚注观感
   （小字 + 虚线下划线），不像表单控件那么抢眼 */
.start-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.subject-pick {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 0;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--muted);
}
.subject-pick label { cursor: pointer; }
.subject-pick select {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-bottom: 1px dotted rgba(0, 0, 0, 0.25);
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 0 1px 1px;
  cursor: pointer;
}
.subject-pick select:hover { color: #0a5499; border-bottom-color: #0a5499; }
.subject-pick select:focus-visible { outline: 1px dotted var(--brand); outline-offset: 2px; }
@media print { .subject-pick { display: none !important; } }
