/* 高一入校测评 · 样式
   移动优先，桌面端只是把同一张卡片居中放宽。 */

:root {
  --bg: #f3f5fa;
  --surface: #ffffff;
  --ink: #131a2a;
  --ink2: #4c566b;
  --ink3: #949db1;
  --line: #e5e9f2;
  --brand: #2b4edb;
  --brand-2: #6d8bff;
  --brand-soft: #ecf0ff;
  --accent: #ff7a45;

  --ok: #0ca678;
  --warn: #ef8c00;
  --low: #e8590c;

  --c-state: #2b4edb;
  --c-find: #0ca678;
  --c-solve: #ef8c00;
  --c-cons: #9c36b5;

  --c-r: #e8703a;
  --c-i: #2f6fed;
  --c-a: #b45bc9;
  --c-s: #0ca678;
  --c-e: #e8a020;
  --c-c: #5a6b8c;

  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --shadow: 0 1px 2px rgba(19, 26, 42, 0.04), 0 8px 24px rgba(19, 26, 42, 0.06);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body { min-height: 100dvh; }

.app {
  max-width: 560px;
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) 16px calc(28px + env(safe-area-inset-bottom));
}

/* ------------------------------------------------------------- 通用 */

.card {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 22px 20px;
}

.btn {
  display: block;
  width: 100%;
  border: 0;
  border-radius: var(--r-md);
  background: var(--brand);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  font-family: inherit;
  padding: 15px;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.12s ease;
}
.btn:active { transform: scale(0.985); }
.btn:disabled { opacity: 0.35; cursor: not-allowed; }
.btn.ghost {
  background: transparent;
  color: var(--ink2);
  font-weight: 500;
  font-size: 15px;
  padding: 12px;
}

.muted { color: var(--ink3); font-size: 14px; }

/* 家长查询：一个手机号对应多个孩子 */
.pick-title { font-size: 21px; margin: 0 0 6px; }
.child-list { display: flex; flex-direction: column; gap: 10px; }
.child-item {
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto;
  column-gap: 12px; row-gap: 2px; width: 100%; text-align: left;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: var(--r-md); padding: 14px 16px; font: inherit; cursor: pointer;
}
.child-item:active { transform: scale(.995); }
.child-name { font-size: 16px; font-weight: 600; }
.child-meta { font-size: 12.5px; color: var(--ink3); }
.child-go { grid-row: 1 / 3; grid-column: 2; align-self: center; color: var(--brand); font-weight: 600; font-size: 14px; }
.tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--brand-soft);
  color: var(--brand);
}

/* ------------------------------------------------------------- 进度条 */

.progress {
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(var(--bg) 72%, rgba(243, 245, 250, 0));
  padding: 8px 0 14px;
}
.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  color: var(--ink3);
  margin-bottom: 8px;
}
.progress-meta b { color: var(--brand); font-weight: 600; }
.progress-track {
  height: 6px;
  background: #e2e6f0;
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--brand), #5b7bf0);
  border-radius: 999px;
  transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ------------------------------------------------------------- 题目 */

.q-index {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}
.q-text {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.5;
  margin: 0 0 20px;
}
.q-hint { font-size: 13px; color: var(--ink3); margin: -14px 0 16px; }
.q-note { font-size: 12.5px; color: var(--ink2); margin: -10px 0 14px; line-height: 1.6; }
.field-error { min-height: 18px; font-size: 12px; color: #b8470c; margin-top: 6px; }
.school-context {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand);
  border-radius: 14px; padding: 11px 14px; margin-bottom: 12px; box-shadow: var(--shadow);
}
.school-context .sc-check {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: 14px; font-weight: 800;
  color: var(--brand); background: var(--brand-soft);
}
.school-context b { display: block; font-size: 13.5px; color: var(--ink); line-height: 1.4; }
.school-context div > span { display: block; font-size: 11.5px; color: var(--ink3); margin-top: 1px; }
/* 多选提示：做成醒目的标签，避免学生没注意到是多选 */
.q-type { color: var(--brand); font-weight: 700; white-space: nowrap; }
.q-optional { font-size: 13px; font-weight: 500; color: var(--ink3); white-space: nowrap; }
.q-hint.multi-hint {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--brand);
  background: var(--brand-soft); border-radius: 999px;
  padding: 6px 13px; margin: -8px 0 16px;
}
.q-hint.multi-hint .hint-icon { font-size: 14px; line-height: 1; }

.opts { display: flex; flex-direction: column; gap: 10px; }

.opt {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  text-align: left;
  border: 1.5px solid var(--line);
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 14px 16px;
  font-size: 16px;
  line-height: 1.5;
  font-family: inherit;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}
.opt:active { transform: scale(0.99); }
.opt .key {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f0f2f8;
  color: var(--ink3);
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-top: 1px;
  transition: all 0.15s ease;
}
.opt.on { border-color: var(--brand); background: var(--brand-soft); }
.opt.on .key { background: var(--brand); color: #fff; }

/* 多选题选满之后，没选中的选项压暗，表示再点也不会被选上 */
.opt.dim { opacity: 0.4; cursor: default; }
.opt.dim:active { transform: none; }

.field {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 16px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  background: var(--surface);
  outline: none;
  transition: border-color 0.15s ease;
}
.field:focus { border-color: var(--brand); }
.field::placeholder { color: var(--ink3); }

.nav { display: flex; gap: 14px; margin-top: 18px; }
.nav .btn { flex: 1; }

/* ------------------------------------------------------------- 封面 */

.hero { text-align: center; padding: 44px 22px 34px; }
.hero-mark {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  border-radius: 18px;
  background: linear-gradient(140deg, var(--brand), #6d8bff);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(43, 78, 219, 0.28);
}
.hero h1 { font-size: 25px; margin: 0 0 10px; letter-spacing: -0.01em; }
.hero p { color: var(--ink2); font-size: 15px; margin: 0 0 26px; }

/* 封面：成果导向，避免三个模块看起来像三个独立测评 */
.hero-mark.wide {
  width: fit-content; min-width: 0; height: 40px; padding: 0 16px;
  border-radius: 12px; font-size: 14px; font-weight: 700;
  letter-spacing: .10em; white-space: nowrap;
}
.hero-sub { margin-bottom: 20px !important; }
.outcome-box {
  text-align: left; border: 1px solid var(--line); background: rgba(0, 0, 0, .025);
  border-radius: 14px; padding: 13px 15px; margin: 0 0 18px;
}
.outcome-head { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.outcome-head b { font-size: 14px; color: var(--ink); }
.outcome-head span { font-size: 11.5px; color: var(--ink3); }
.outcome-list { display: flex; flex-direction: column; }
.outcome { display: flex; align-items: center; gap: 11px; padding: 10px 0; border-top: 1px solid var(--line); }
.outcome-icon { flex: none; width: 34px; height: 34px; display: grid; place-items: center; color: var(--brand); background: var(--brand-soft); border-radius: 10px; }
.outcome-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.outcome-tx { display: flex; flex-direction: column; min-width: 0; }
.outcome-tx b { font-size: 14px; color: var(--ink); line-height: 1.4; }
.outcome-tx small { font-size: 11.5px; color: var(--ink3); line-height: 1.5; }
.outcome-note { font-size: 11.5px; color: var(--ink3); margin: 8px 0 0; line-height: 1.6; }
.hero-actions { display: flex; flex-direction: column; gap: 18px; margin-top: 18px; }

/* A×C 封面：酒红星空 + 大标题 + 双向词柱 + 印章 */
.cover-ac { position: relative; overflow: hidden; }
.hero-stars, .hero-spotlight { position: absolute; pointer-events: none; }
.hero-stars { inset: 0; }
.hero-stars i {
  position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; opacity: .3;
  animation: coverStar 5s ease-in-out infinite;
}
.hero-stars i:nth-child(1){left:8%;top:12%;animation-delay:.2s}
.hero-stars i:nth-child(2){right:12%;top:9%;animation-delay:1.2s}
.hero-stars i:nth-child(3){left:5%;top:44%;animation-delay:2.4s}
.hero-stars i:nth-child(4){right:7%;top:58%;animation-delay:.7s}
.hero-stars i:nth-child(5){left:30%;top:6%;animation-delay:3.1s}
.hero-stars i:nth-child(6){right:28%;top:34%;animation-delay:1.9s}
.hero-stars i:nth-child(7){left:16%;top:78%;animation-delay:2.7s}
@keyframes coverStar { 50% { opacity: .95; transform: scale(1.8); } }
.hero-spotlight {
  left: 50%; top: -170px; width: 420px; height: 420px; transform: translateX(-50%);
  background: conic-gradient(from 180deg at 50% 50%, transparent 41%, rgba(255,201,107,.10) 47%, rgba(255,255,255,.18) 50%, rgba(255,201,107,.10) 53%, transparent 59%);
  border-radius: 50%; filter: blur(3px);
  animation: coverSweep 8s ease-in-out infinite;
}
@keyframes coverSweep { 0%,100% { transform: translateX(-50%) rotate(-9deg); } 50% { transform: translateX(-50%) rotate(9deg); } }
.hero-rule { width: 44px; height: 2px; background: var(--accent); margin: -2px auto 12px; }
.cover-bands { margin: 12px 0 0; position: relative; z-index: 1; }
.cover-band {
  overflow: hidden; white-space: nowrap; padding: 4px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.cover-track { display: inline-flex; gap: 8px; animation: coverMarquee 22s linear infinite; }
.cover-band.reverse .cover-track { animation-direction: reverse; animation-duration: 26s; }
@keyframes coverMarquee { to { transform: translateX(-50%); } }
.cover-word {
  display: inline-block; font-size: 11px; color: var(--ink2);
  border: 1px solid var(--line); background: rgba(255,255,255,.55);
  border-radius: 999px; padding: 5px 11px; animation: coverBlink 5s ease-in-out infinite;
}
@keyframes coverBlink { 0%,100% { opacity: .35; } 42% { opacity: 1; } }
.cover-seal {
  width: 112px; height: 112px; margin: 10px auto 0; border-radius: 50%;
  border: 1px solid var(--accent); display: grid; place-content: center; text-align: center;
  color: var(--ink); position: relative; background: rgba(255,255,255,.35); z-index: 1;
}
.cover-seal::before {
  content: ""; position: absolute; inset: 7px; border-radius: 50%;
  border: 1px dashed var(--accent); animation: coverSpin 26s linear infinite; opacity: .7;
}
@keyframes coverSpin { to { transform: rotate(360deg); } }
.cover-seal b { font-family: "Songti SC", "STSong", "SimSun", serif; font-size: 19px; line-height: 1.2; white-space: nowrap; }
.cover-seal span { font-size: 10px; color: var(--ink3); letter-spacing: .1em; margin-top: 4px; }
.cover-seal-note { font-size: 10.5px; letter-spacing: .12em; color: var(--ink3); margin: 8px 0 10px; position: relative; z-index: 1; }

[data-theme="d"] .cover-ac h1 { font-family: "Songti SC", "STSong", "SimSun", serif; font-size: 35px; letter-spacing: .03em; }
[data-theme="d"] .hero-rule { background: #d4a24e; }
[data-theme="d"] .cover-word { color: rgba(255,255,255,.9); border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.07); }
[data-theme="d"] .cover-band:first-child .cover-word { color: #ffe2ac; border-color: rgba(212,162,78,.5); background: rgba(212,162,78,.10); }
[data-theme="d"] .cover-seal { color: #ffe3ad; border-color: rgba(212,162,78,.55); background: rgba(255,255,255,.05); }
[data-theme="d"] .cover-seal span { color: rgba(255,255,255,.58); }
[data-theme="d"] .cover-seal-note { color: rgba(255,255,255,.5); }
[data-theme="d"] .card.hero .hero-actions .btn { background: linear-gradient(120deg, #e7bd6c, #c99a3f 55%, #a87423); color: #3d071b; box-shadow: 0 12px 30px rgba(0,0,0,.28); }
[data-theme="d"] .card.hero .hero-actions .btn.ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.45); box-shadow: none; }
[data-theme="a"] .cover-word, [data-theme="f"] .cover-word { color: rgba(255,255,255,.9); border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.08); }
[data-theme="a"] .cover-seal, [data-theme="f"] .cover-seal { color: #fff; background: rgba(255,255,255,.08); }
[data-theme="a"] .cover-seal span, [data-theme="a"] .cover-seal-note, [data-theme="f"] .cover-seal span, [data-theme="f"] .cover-seal-note { color: rgba(255,255,255,.6); }

.cover-outcomes { margin: 12px 0 2px; position: relative; z-index: 1; }
.co-head { font-size: 11px; color: var(--ink3); margin: 0 0 8px; letter-spacing: .06em; }
.co-list { display: flex; gap: 7px; justify-content: center; flex-wrap: wrap; }
.co-item {
  display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px;
  border: 1px solid var(--line); background: rgba(255,255,255,.55); border-radius: 8px;
  font-size: 11px; color: var(--ink2);
}
.co-item i { display: grid; place-items: center; width: 15px; height: 15px; color: var(--brand); }
.co-item svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.co-item b { font-weight: 600; color: var(--ink); }
[data-theme="d"] .co-head { color: rgba(255,255,255,.55); }
[data-theme="d"] .co-item { border-color: rgba(255,255,255,.16); background: rgba(0,0,0,.14); color: rgba(255,255,255,.75); }
[data-theme="d"] .co-item b { color: #fff; }
[data-theme="d"] .co-item i { color: #ffe3ad; }
[data-theme="a"] .co-head, [data-theme="f"] .co-head { color: rgba(255,255,255,.6); }
[data-theme="a"] .co-item, [data-theme="f"] .co-item { border-color: rgba(255,255,255,.18); background: rgba(0,0,0,.12); color: rgba(255,255,255,.78); }
[data-theme="a"] .co-item b, [data-theme="f"] .co-item b { color: #fff; }
[data-theme="a"] .co-item i, [data-theme="f"] .co-item i { color: #fff; }
@media (prefers-reduced-motion: reduce) {
  .hero-stars i, .hero-spotlight, .cover-track, .cover-word, .cover-seal::before { animation: none !important; }
}
.hero-actions .btn { margin-top: 0; }

.steps { text-align: left; margin: 0 0 26px; padding: 0; list-style: none; }
.steps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink2);
}
.steps li:last-child { border-bottom: 0; }
.steps li b { color: var(--ink); font-weight: 600; }
.steps .n {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-top: 2px;
}

/* ------------------------------------------------------------- 家长指引 */

.parent-guide {
  background: var(--brand-soft);
  border-left: 4px solid var(--brand);
  border-radius: var(--r-md);
  padding: 14px 16px;
  margin-bottom: 14px;
}
.parent-guide b { display: block; font-size: 15px; color: var(--ink); margin-bottom: 4px; }
.parent-guide .pg-title { font-size: 18px; letter-spacing: .02em; }
.parent-guide p { margin: 0; font-size: 13.5px; color: var(--ink2); line-height: 1.65; }
.parent-guide .pg-phone { font-size: 17px; font-weight: 800; color: var(--brand); letter-spacing: .04em; }
.parent-guide .pg-note { font-size: 12px; color: var(--ink3); margin-top: 4px; }
.parent-guide .pg-qr { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.parent-guide .pg-qr img {
  flex: none; width: 88px; height: 88px; object-fit: contain; background: #fff;
  border-radius: 8px; padding: 4px; border: 1px solid var(--line);
}
.parent-guide .pg-qr-empty {
  flex: none; width: 88px; height: 88px; display: grid; place-items: center; text-align: center;
  font-size: 10.5px; color: var(--ink3); background: #fff; border: 1px dashed var(--line);
  border-radius: 8px; padding: 8px;
}
.parent-guide .pg-qr-tx span { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink); }
.parent-guide .pg-qr-tx p { font-size: 11.5px; color: var(--ink3); margin: 4px 0 0; line-height: 1.5; }
.parent-guide .pg-shot {
  display: flex; align-items: center; gap: 11px; margin-top: 12px;
  padding: 14px 15px; border: 1.5px dashed var(--accent); border-radius: 12px;
  background: rgba(212, 162, 78, .18);
}
.parent-guide .pg-shot-icon {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; color: var(--brand);
  background: rgba(255, 255, 255, .65);
}
.parent-guide .pg-shot-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.parent-guide .pg-shot b { font-size: 18px; color: var(--ink); margin: 0; line-height: 1.35; }
.parent-guide .pg-shot span:not(.pg-shot-icon) { display: block; font-size: 12.5px; color: var(--ink2); margin-top: 2px; }

/* ------------------------------------------------------------- 报告 */

.report-head {
  text-align: center;
  padding: 30px 20px 26px;
}
.report-head h1 { font-size: 22px; margin: 0 0 6px; }
.report-head .who { color: var(--ink2); font-size: 15px; }
.report-cover {
  background:
    radial-gradient(circle at 84% 12%, rgba(255, 255, 255, .16), transparent 40%),
    linear-gradient(150deg, var(--brand), var(--brand-2));
  color: #fff; padding: 34px 22px 28px; position: relative; overflow: hidden;
  border: 0;
}
.report-cover::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 10% 90%, rgba(0, 0, 0, .18), transparent 45%);
  pointer-events: none;
}
.report-cover > * { position: relative; z-index: 1; }
.rc-brand { font-size: 11px; letter-spacing: .24em; color: rgba(255, 255, 255, .72); }
.rc-kicker { margin-top: 18px; font-size: 12px; letter-spacing: .18em; color: var(--accent); }
.report-cover h1 { color: #fff; font-size: 30px; letter-spacing: .10em; margin: 8px 0 0; }
.rc-rule { width: 56px; height: 2px; background: var(--accent); margin: 14px auto 16px; }
.report-cover .who { color: #fff; font-size: 16px; }
.rc-meta { font-size: 11.5px; color: rgba(255, 255, 255, .62); margin-top: 6px; }
.rc-note { font-size: 12px; color: rgba(255, 255, 255, .76); margin: 12px 0 0; }
.report-tools { margin-top: 14px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.report-tools button {
  border: 1.5px solid var(--brand); background: transparent; color: var(--brand);
  border-radius: 999px; padding: 8px 18px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.report-tools span { font-size: 11px; color: var(--ink3); }

.section { margin-top: 16px; }
.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 14px;
}
.section-title::before {
  content: "";
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: var(--brand);
}

.score-hero { display: flex; align-items: center; gap: 20px; }
.donut { flex: none; position: relative; width: 116px; height: 116px; }
.donut svg { transform: rotate(-90deg); }
.donut .val {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}
.donut .val b { display: block; font-size: 30px; line-height: 1.1; }
.donut .val span { font-size: 12px; color: var(--ink3); }
.score-hero .txt { font-size: 15px; color: var(--ink2); }
.score-hero .txt b { color: var(--ink); }

.bars { display: flex; flex-direction: column; gap: 16px; margin-top: 20px; }
.bar-row .top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 15px;
  margin-bottom: 7px;
}
.bar-row .top .name { font-weight: 600; }
.bar-row .top .val { color: var(--ink2); font-size: 14px; }
.bar-row .top .val b { font-size: 17px; color: var(--ink); }
.bar-track { height: 8px; background: #eceff6; border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; width: 0; transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.bar-row .note { font-size: 14px; color: var(--ink2); margin-top: 9px; line-height: 1.65; }

.pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.pill.high, .pill.l5 { background: #e6f8f1; color: #0b7a58; }
.pill.mid, .pill.l3 { background: #fff4e0; color: #a35c00; }
.pill.low, .pill.l1 { background: #fdece2; color: #b8470c; }
.pill.l4 { background: #e6f4fb; color: #0b6b8a; }
.pill.l2 { background: #fdeee0; color: #b8530c; }

.combo {
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 15px 16px;
  margin-bottom: 10px;
}
.combo.best { border-color: var(--brand); background: var(--brand-soft); }
.combo .hd { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.combo .nm { font-size: 19px; font-weight: 700; letter-spacing: 0.02em; }
.combo .why { font-size: 12px; color: var(--ink3); }
.combo p { margin: 8px 0 0; font-size: 14px; color: var(--ink2); line-height: 1.7; }

.holland-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.hol {
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 13px 14px;
  position: relative;
  overflow: hidden;
}
.hol .code { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; color: var(--ink3); }
.hol .nm { font-size: 15px; font-weight: 600; margin: 2px 0 10px; }
.hol .num { font-size: 22px; font-weight: 700; line-height: 1; }
.hol .num small { font-size: 12px; font-weight: 500; color: var(--ink3); }
.hol .strip { height: 4px; border-radius: 999px; background: #eceff6; margin-top: 9px; overflow: hidden; }
.hol .strip i { display: block; height: 100%; border-radius: 999px; }
.hol.top { border-color: currentColor; }
.hol.top .badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: currentColor;
  color: #fff;
}

.sub-title { font-size: 14px; font-weight: 700; color: var(--ink); margin: 20px 0 10px; }
.hol-readings { display: flex; flex-direction: column; gap: 8px; }
.hol-reading {
  border: 1px solid var(--line); border-radius: 10px; background: #fbfcfd; overflow: hidden;
}
.hol-reading.is-top { border-color: var(--brand-soft); background: #fff; }
.hol-reading summary {
  display: flex; align-items: center; gap: 8px; padding: 11px 13px;
  cursor: pointer; list-style: none; font-size: 13.5px;
}
.hol-reading summary::-webkit-details-marker { display: none; }
.hol-reading summary::after {
  content: "＋"; margin-left: auto; color: var(--ink3); font-weight: 600;
}
.hol-reading[open] summary::after { content: "－"; }
.hol-reading .hr-code { font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.hol-reading .hr-name { font-weight: 600; color: var(--ink); }
.hol-reading .hr-score { margin-left: auto; font-size: 11.5px; color: var(--ink3); font-variant-numeric: tabular-nums; padding-right: 4px; }
.hol-reading .note { margin: 0 13px 12px; font-size: 13px; color: var(--ink2); line-height: 1.7; }

.notice {
  background: #fff8ec;
  border: 1px solid #ffe1b3;
  color: #8a5300;
  border-radius: var(--r-md);
  padding: 13px 15px;
  font-size: 14px;
  line-height: 1.65;
  margin-top: 14px;
}

.tbd {
  color: #b0b7c6;
  font-style: normal;
}

@media (min-width: 620px) {
  .app { padding-top: 40px; padding-bottom: 60px; }
  .hero { padding: 60px 34px 44px; }
  .card { padding: 28px 26px; }
}

/* ============================================================
   管理后台
   以下只新增 .admin-* 类，不改动上面学生端用到的任何选择器。
   ============================================================ */

.admin {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 16px 60px;
}

.admin-top {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.admin-top h1 { font-size: 19px; margin: 0; letter-spacing: -0.01em; }
.admin-top .spacer { flex: 1; }

.admin-tabs {
  display: flex;
  gap: 4px;
  background: #e9ecf5;
  border-radius: 12px;
  padding: 4px;
}
.admin-tab {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink2);
  padding: 8px 16px;
  border-radius: 9px;
  cursor: pointer;
}
.admin-tab.on { background: var(--surface); color: var(--brand); box-shadow: 0 1px 3px rgba(19, 26, 42, 0.1); }

.admin-panel {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 16px;
}
.admin-panel h2 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.admin-panel h2 .muted { font-weight: 400; }

.admin-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.admin-row .field { flex: 1; min-width: 180px; }
.admin-row .btn { width: auto; padding: 11px 20px; font-size: 15px; }
.btn.sm { width: auto; padding: 8px 14px; font-size: 13px; border-radius: 9px; }
.btn.danger { background: #e8590c; }
.btn.plain { background: #eef0f7; color: var(--ink2); }

.admin-table-wrap { overflow-x: auto; margin: 0 -20px; padding: 0 20px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink3);
  padding: 8px 10px;
  border-bottom: 1.5px solid var(--line);
  white-space: nowrap;
}
.admin-table td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.admin-table tr:hover td { background: #fafbfe; }
.admin-table .num { font-variant-numeric: tabular-nums; }
.admin-table .link { color: var(--brand); font-weight: 600; cursor: pointer; background: none; border: 0; font: inherit; padding: 0; }
.admin-table .link:hover { text-decoration: underline; }
.admin-empty { text-align: center; color: var(--ink3); padding: 36px 0; font-size: 14px; }

.admin-pager { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 16px; font-size: 14px; color: var(--ink2); }

/* 分值预算指示器：管理员改分值时的实时防呆 */
.admin-budget { display: flex; gap: 8px; flex-wrap: wrap; }
.bud {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  background: #eef1f8;
  color: var(--ink2);
}
.bud b { font-variant-numeric: tabular-nums; color: var(--ink); }
.bud.ok { background: #e6f8f1; color: #0b7a58; }
.bud.ok b { color: #0b7a58; }
.bud.bad { background: #fdece2; color: #b8470c; }
.bud.bad b { color: #b8470c; }

/* 题目编辑 */
.qedit {
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px;
  margin-bottom: 12px;
}
.qedit.off { opacity: 0.55; background: #fafbfc; }
.qedit-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.qedit-head .idx { font-size: 12px; font-weight: 700; color: var(--ink3); font-variant-numeric: tabular-nums; }
.qedit-head .spacer { flex: 1; }

.opt-edit {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.opt-edit .key {
  flex: none;
  width: 28px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #eef1f8;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink3);
}
.opt-edit .field { padding: 8px 10px; font-size: 14px; }
.opt-edit .field.score { flex: none; width: 68px; text-align: center; }
.opt-edit .field.dim { flex: none; width: 118px; }

.admin-note {
  font-size: 13px;
  color: var(--ink2);
  background: #f5f7fc;
  border-radius: var(--r-sm);
  padding: 10px 12px;
  margin-bottom: 14px;
  line-height: 1.6;
}

.admin-err {
  background: #fdece2;
  border: 1px solid #ffd0b0;
  color: #a13b06;
  border-radius: var(--r-md);
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 1.6;
}
.admin-err ul { margin: 6px 0 0; padding-left: 20px; }

.admin-ok {
  background: #e6f8f1;
  border: 1px solid #b7e8d6;
  color: #0b7a58;
  border-radius: var(--r-md);
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 14px;
}

.admin-login { max-width: 380px; margin: 12vh auto 0; }

/* 逐题明细 */
.pick {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.pick:last-child { border-bottom: 0; }
.pick .q { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.pick .meta { font-size: 12px; color: var(--ink3); margin-bottom: 8px; }
.pick .ans {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: 8px;
  padding: 6px 11px;
  font-size: 14px;
  margin: 3px 6px 3px 0;
}
.pick .ans.none { background: #f1f3f8; color: var(--ink3); }
.pick .ans .sc { font-size: 12px; font-weight: 700; opacity: 0.85; }
.pick .got { font-size: 13px; color: var(--ink2); margin-top: 6px; }
.pick .got b { color: var(--ink); }

.admin-textarea {
  width: 100%;
  min-height: 72px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 11px 13px;
  font: inherit;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  resize: vertical;
  outline: none;
}
.admin-textarea:focus { border-color: var(--brand); }

.text-group { margin-bottom: 20px; }
.text-group h3 { font-size: 14px; margin: 0 0 10px; color: var(--ink2); }
.text-item { margin-bottom: 12px; }
.text-item label { display: block; font-size: 13px; color: var(--ink3); margin-bottom: 5px; }

@media (max-width: 620px) {
  .admin-row .field { min-width: 100%; }
  .admin { padding: 14px 12px 48px; }
  .admin-panel { padding: 16px; }
  .opt-edit { flex-wrap: wrap; }
  .opt-edit .field.dim { width: 100%; }
}

/* ------------------------------------------------------------- 打印报告 */
@media print {
  html, body { background: #fff !important; }
  body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .app { max-width: none; padding: 0; }
  .testbar, .report-tools, .parent-guide, .preview-banner { display: none !important; }
  .card {
    box-shadow: none !important; border: 0 !important; border-radius: 0 !important;
    padding: 0 0 10mm !important; margin: 0 !important;
  }
  .report-head { padding-top: 0 !important; break-after: avoid; }
  .report-cover { padding: 10mm 8mm !important; }
  .section { break-inside: avoid; page-break-inside: avoid; }
  .donut svg, .hol, .combo { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .section-title { break-after: avoid; }
  @page { margin: 12mm; }
}
