:root {
  --navy: #07105d;
  --navy-2: #182476;
  --red: #ef1024;
  --ink: #182033;
  --muted: #687086;
  --line: #dde2ef;
  --soft: #f5f7fc;
  --ok: #087a49;
  --ok-bg: #eaf8f1;
  --warn: #a45a00;
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 100% 0%, rgba(239,16,36,.10), transparent 32rem),
    linear-gradient(160deg, #eef1fb 0%, #ffffff 58%, #f7f8fd 100%);
}
button, input { font: inherit; }
button { touch-action: manipulation; }
.shell { width: min(100% - 28px, 760px); margin: 0 auto; padding: 28px 0 36px; }
.brand-card { display: flex; align-items: center; gap: 12px; margin: 0 4px 22px; }
.brand-mark {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  color: white; font-weight: 800; letter-spacing: -.04em;
  background: linear-gradient(145deg, var(--navy-2), var(--navy));
  box-shadow: 0 10px 24px rgba(7,16,93,.22);
}
.brand-cn, .brand-en { margin: 0; }
.brand-cn { color: var(--navy); font-weight: 800; letter-spacing: .08em; }
.brand-en { margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .13em; }
.panel {
  position: relative; overflow: hidden; padding: 30px;
  background: rgba(255,255,255,.97); border: 1px solid rgba(221,226,239,.9); border-radius: 24px;
  box-shadow: 0 22px 60px rgba(28,39,93,.14);
}
.panel::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, var(--red) 0 27%, var(--navy) 27% 100%); }
.eyebrow { margin: 2px 0 9px; color: var(--red); font-size: 13px; font-weight: 800; letter-spacing: .08em; }
h1 { margin: 0; color: var(--navy); font-size: clamp(27px, 6.8vw, 39px); line-height: 1.13; }
h1 span { font-size: .7em; font-weight: 750; }
.lead { margin: 14px 0 22px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.notice { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 12px 14px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--soft); color: #424b62; font-size: 14px; }
.notice.success { border-color: #b7e6d0; background: var(--ok-bg); color: var(--ok); }
.notice.error { border-color: #f5c5ca; background: #fff1f2; color: #a21322; }
.notice.warning { border-color: #efd6af; background: #fff8e9; color: var(--warn); }
.notice-dot { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 999px; background: #9aa3b8; }
.success .notice-dot { background: var(--ok); }
.error .notice-dot { background: var(--red); }
.warning .notice-dot { background: #d28116; }
.primary, .secondary, .danger-outline { min-height: 50px; border-radius: 13px; cursor: pointer; font-weight: 800; }
.primary { width: 100%; border: 0; color: #fff; background: linear-gradient(135deg, var(--navy-2), var(--navy)); box-shadow: 0 12px 24px rgba(7,16,93,.2); }
.primary:hover { filter: brightness(1.08); }
button:disabled { cursor: wait; opacity: .55; }
.secondary { border: 1px solid #cdd3e4; color: var(--navy); background: #fff; }
.danger-outline { width: 100%; margin-top: 12px; border: 1px solid #f1b7be; color: #a21322; background: #fff7f8; }
.text-button { border: 0; color: var(--navy); background: transparent; cursor: pointer; font-size: 12px; font-weight: 750; }
.identity-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 2px 0 18px; padding: 13px 15px; border: 1px solid #c9e8d8; border-radius: 14px; background: #f3fbf7; }
.identity-row strong, .identity-row small, .identity-label { display: block; }
.identity-row strong { color: #075f3b; }
.identity-row small { margin-top: 2px; color: #4f7e69; overflow-wrap: anywhere; }
.identity-label { margin-bottom: 3px; color: #5c7268; font-size: 11px; }
.intro-card { padding: 20px; border: 1px solid var(--line); border-radius: 17px; background: #fff; }
.intro-card h2 { margin: 0 0 15px; color: var(--navy); font-size: 20px; }
.rule-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rule-grid div { padding: 14px; border-radius: 12px; background: var(--soft); }
.rule-grid strong, .rule-grid span { display: block; }
.rule-grid strong { color: var(--navy); font-size: 18px; }
.rule-grid span { margin-top: 4px; color: var(--muted); font-size: 11px; }
.rules { margin: 17px 0; padding-left: 19px; color: #535d71; font-size: 13px; line-height: 1.75; }
.exam-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.question-counter, .answer-counter { display: block; }
.question-counter { color: var(--navy); font-weight: 850; }
.answer-counter { margin-top: 3px; color: var(--muted); font-size: 12px; }
.timer { min-width: 88px; padding: 9px 12px; border-radius: 12px; color: var(--navy); background: #eef0fb; text-align: center; font-variant-numeric: tabular-nums; font-size: 20px; font-weight: 900; }
.timer.warning { color: #9b4c00; background: #fff3db; }
.timer.danger { color: #ae1020; background: #ffe8eb; }
.progress { height: 6px; margin: 13px 0 18px; overflow: hidden; border-radius: 999px; background: #e7eaf3; }
.progress span { display: block; height: 100%; width: 4%; background: linear-gradient(90deg, var(--red), var(--navy)); transition: width .2s ease; }
.question-card { padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 10px 26px rgba(28,39,93,.07); }
.question-meta { display: flex; flex-wrap: wrap; gap: 7px; }
.question-meta span { padding: 5px 8px; border-radius: 999px; color: #4f5970; background: #f0f2f8; font-size: 11px; font-weight: 700; }
.question-card h2 { margin: 15px 0 17px; color: #18214a; font-size: clamp(18px, 4.8vw, 22px); line-height: 1.55; }
.multi-hint { margin: -8px 0 14px; color: #8d4e00; font-size: 12px; }
.options { display: grid; gap: 10px; }
.option { display: grid; grid-template-columns: 28px 1fr; gap: 11px; align-items: start; padding: 13px; border: 1px solid #d9deeb; border-radius: 13px; cursor: pointer; background: #fff; transition: border .15s ease, background .15s ease; }
.option:hover { border-color: #9ba6d2; }
.option.selected { border-color: var(--navy-2); background: #f0f2ff; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option-key { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid #bdc5dc; border-radius: 8px; color: var(--navy); font-weight: 850; }
.selected .option-key { border-color: var(--navy); color: #fff; background: var(--navy); }
.option-text { padding-top: 3px; color: #313a50; font-size: 14px; line-height: 1.55; }
.save-status { margin: 13px 0 0; color: var(--muted); font-size: 11px; text-align: right; }
.save-status.saved { color: var(--ok); }
.exam-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 13px; }
.result-card { padding: 21px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.result-card.pass { border-color: #a9dfc4; background: linear-gradient(180deg, #effaf4, #fff); }
.result-card.fail { border-color: #f1c5ca; background: linear-gradient(180deg, #fff5f6, #fff); }
.result-card h2 { margin: 0; color: var(--navy); }
.score { margin: 12px 0 4px; color: var(--navy); font-size: 43px; font-weight: 900; }
.score small { font-size: 16px; }
.score-breakdown { margin: 0 0 15px; color: var(--muted); font-size: 12px; }
.result-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.result-facts div { padding: 12px; border-radius: 11px; background: rgba(239,241,248,.75); }
.result-facts strong, .result-facts span { display: block; }
.result-facts span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.weak-list { margin: 16px 0 0; padding: 14px; border-radius: 12px; background: #fff8e9; color: #6d4a13; font-size: 13px; }
.sandbox-retest { margin-top: 18px; padding: 15px; border: 1px dashed #9ca7d4; border-radius: 13px; background: #f5f6ff; }
.sandbox-retest strong, .sandbox-retest span { display: block; }
.sandbox-retest strong { color: var(--navy); }
.sandbox-retest span { margin: 5px 0 12px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.test-button { width: 100%; }
.formal-sync { margin-top: 16px; padding: 13px; border-radius: 12px; font-size: 12px; line-height: 1.6; }
.formal-sync.ok { border: 1px solid #b7e6d0; color: var(--ok); background: var(--ok-bg); }
.formal-sync.fail { border: 1px solid #f5c5ca; color: #a21322; background: #fff1f2; }
.review { margin-top: 18px; }
.review details { margin-bottom: 9px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.review summary { cursor: pointer; color: var(--navy); font-weight: 750; }
.review p { margin: 9px 0 0; color: #596174; font-size: 13px; line-height: 1.6; }
.muted { color: var(--muted); line-height: 1.65; }
.footer { margin: 18px 0 0; text-align: center; color: #7c8395; font-size: 11px; letter-spacing: .02em; }
.hidden { display: none !important; }
@media (max-width: 540px) {
  .shell { width: min(100% - 18px, 760px); padding-top: 17px; }
  .panel { padding: 23px 17px; border-radius: 19px; }
  .brand-card { margin-bottom: 15px; }
  .identity-row { align-items: flex-start; }
  .intro-card, .question-card, .result-card { padding: 16px; }
  .option { padding: 12px 11px; }
}