:root {
  --blue: #165dff;
  --blue-dark: #0b3ea8;
  --ink: #172033;
  --muted: #667085;
  --line: #dfe7f5;
  --soft: #f4f7fc;
  --green: #0b9b6f;
  --red: #c53a3a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(22,93,255,.13), transparent 34rem),
    linear-gradient(180deg, #f8fbff 0%, #eef3fb 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.shell { width: min(760px, calc(100% - 28px)); margin: 0 auto; padding: 42px 0 36px; }
.hero { margin-bottom: 20px; }
.brand { display: inline-flex; padding: 7px 11px; color: white; background: var(--blue-dark); border-radius: 9px; font-weight: 700; }
.eyebrow { margin: 24px 0 8px; color: var(--blue); font-weight: 800; letter-spacing: .08em; }
h1 { margin: 0; font-size: clamp(32px, 8vw, 56px); line-height: 1.08; letter-spacing: -.04em; }
.lead { max-width: 620px; margin: 16px 0 24px; color: var(--muted); font-size: 18px; line-height: 1.75; }
.progress { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 14px; }
.progressTrack { flex: 1; height: 8px; overflow: hidden; background: #d9e3f4; border-radius: 999px; }
#progressBar { display: block; width: 20%; height: 100%; background: var(--blue); transition: width .24s ease; }

.card {
  padding: clamp(22px, 5vw, 40px);
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(22,93,255,.12);
  border-radius: 22px;
  box-shadow: 0 18px 60px rgba(21,52,99,.10);
}
.questionMeta { color: var(--blue); font-weight: 700; }
h2 { margin: 10px 0 24px; font-size: clamp(23px, 5vw, 32px); line-height: 1.45; }
.answers { display: grid; gap: 12px; }
.answer {
  width: 100%;
  padding: 16px 18px;
  color: var(--ink);
  text-align: left;
  font: inherit;
  line-height: 1.55;
  background: var(--soft);
  border: 2px solid transparent;
  border-radius: 13px;
  cursor: pointer;
}
.answer:hover, .answer:focus-visible { border-color: #9bbaff; outline: none; }
.answer.selected { color: var(--blue-dark); background: #edf3ff; border-color: var(--blue); }
.answer.correct { color: #087455; background: #e8f8f1; border-color: var(--green); }
.answer.wrong { color: #a72828; background: #fff0f0; border-color: var(--red); }
.feedback { margin: 18px 0 0; padding: 14px 16px; line-height: 1.65; border-radius: 12px; background: #f1f5fb; }

button.primary, button.secondary {
  width: 100%;
  margin-top: 22px;
  padding: 15px 18px;
  border: 0;
  border-radius: 13px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
button.primary { color: white; background: var(--blue); }
button.primary:disabled { cursor: not-allowed; background: #b5c4df; }
button.secondary { color: var(--blue-dark); background: #eaf1ff; }
.resultSummary { color: var(--muted); font-size: 18px; line-height: 1.75; }
.advice { display: grid; gap: 10px; margin: 22px 0; }
.advice p { margin: 0; padding: 14px 16px; background: var(--soft); border-left: 4px solid var(--blue); border-radius: 8px; line-height: 1.65; }
.wechatCta { display: grid; grid-template-columns: 1fr 150px; gap: 18px; align-items: center; margin-top: 28px; padding: 20px; background: #edf7f2; border-radius: 16px; }
.wechatCta h3 { margin: 0 0 8px; font-size: 21px; }
.wechatCta p { margin: 0; color: #385448; line-height: 1.7; }
.wechatCta img { display: block; width: 150px; height: 150px; padding: 4px; background: white; border-radius: 10px; }
.qrHint { color: var(--muted); font-size: 14px; }
footer { padding: 26px 8px 0; color: var(--muted); font-size: 13px; line-height: 1.7; text-align: center; }

@media (max-width: 560px) {
  .shell { padding-top: 24px; }
  .wechatCta { grid-template-columns: 1fr; }
  .wechatCta img { width: 180px; height: 180px; margin: 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
