:root {
  color-scheme: light;
  --ink: #182441;
  --muted: #496078;
  --accent: #3748aa;
  --accent-hover: #2a388c;
  --line: #d4dcef;
  --tint: #edf0ff;
  --paper: #fff;
  --surface: #eef2fb;
  font: 16px/1.65 "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--surface);
}
* { box-sizing: border-box; }
body { margin: 0; }
h1, h2, p, blockquote { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
h1 { font-size: clamp(1.7rem, 5.8vw, 2.5rem); line-height: 1.2; letter-spacing: -0.045em; }
h2 { font-size: 1.15rem; line-height: 1.42; }
.page-head { background: var(--paper); border-bottom: 1px solid var(--line); }
.head-inner {
  min-height: 60px; width: min(100% - 32px, 900px); margin: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.course { font-weight: 800; letter-spacing: 0.02em; }
.course span { margin-inline-start: 0.6rem; color: var(--muted); font-weight: 650; font-size: 0.875rem; }
.pilot { padding: 3px 11px; border-radius: 100px; background: var(--tint); color: #253683; font-size: 0.875rem; }
#app { width: min(100% - 32px, 690px); margin: clamp(24px, 6vw, 54px) auto 0; }
.page-foot { padding: 24px 16px max(24px, env(safe-area-inset-bottom)); text-align: center; color: var(--muted); font-size: 0.875rem; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 12px 34px #192b600b; overflow: hidden; }
.body { padding: clamp(18px, 5vw, 36px); display: grid; gap: 20px; }
.intro {
  border-top: 5px solid var(--accent); padding: clamp(23px, 6vw, 45px) clamp(18px, 5vw, 36px) 24px;
  display: grid; gap: 12px; background: linear-gradient(118deg, #f8f9ff 4%, #e9ecff 96%);
}
.intro h1 { max-width: 18ch; }
.intro p { max-width: 38rem; color: #3e5270; }
.info { display: grid; gap: 9px; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.progress-label { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--muted); font-size: 0.875rem; font-weight: 650; }
progress { display: block; width: 100%; height: 7px; margin: 8px 0 14px; border: 0; border-radius: 1rem; background: #dce3f5; }
progress::-webkit-progress-bar { background: #dce3f5; border-radius: 1rem; }
progress::-webkit-progress-value { background: var(--accent); border-radius: 1rem; }
progress::-moz-progress-bar { background: var(--accent); border-radius: 1rem; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button {
  min-height: 46px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: var(--paper);
  padding: 9px 18px; font-weight: 700;
}
.button:hover { background: #f2f4ff; }
.primary { background: var(--accent); border-color: var(--accent); color: white; }
.primary:hover { background: var(--accent-hover); }
.primary:disabled { opacity: 0.65; cursor: wait; }
.action-wide { width: 100%; }
.exit-row { text-align: center; margin-top: 10px; }
.exit { min-height: 44px; background: transparent; border: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.form { display: grid; gap: 18px; }
fieldset { padding: 0; margin: 0; border: 0; min-width: 0; }
legend { font-weight: 680; line-height: 1.5; padding: 0; margin-bottom: 10px; }
.choice {
  display: block; position: relative; cursor: pointer; min-width: 0;
}
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; inset: 0; }
.choice span {
  display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 8px 11px;
  border: 1px solid var(--line); border-radius: 10px; font-size: 0.9375rem;
}
.choice span::before { content: ""; flex: 0 0 14px; width: 14px; height: 14px; border: 1px solid #7183a2; border-radius: 50%; }
.choice:hover span { border-color: var(--accent); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.choice input:checked + span { border-color: var(--accent); color: #24348b; background: var(--tint); font-weight: 700; }
.choice input:checked + span::before { border: 4px solid var(--accent); }
.choices { display: grid; gap: 8px; }
.scale { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.scale .choice span { justify-content: center; padding-inline: 0; font-weight: 650; }
.scale .choice span::before { display: none; }
.item { padding-top: 12px; border-top: 1px solid var(--line); }
.scale-label { background: #f1f4fe; color: #445775; border-radius: 10px; padding: 9px 11px; }
.scenario { display: grid; gap: 12px; }
.product { border: 1px solid var(--line); background: #f5f7ff; border-radius: 14px; padding: 15px; display: grid; gap: 9px; }
.product-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; column-gap: 12px; }
.price { font-size: 1.2rem; color: #293b98; font-weight: 800; white-space: nowrap; }
.product blockquote { border-top: 1px solid var(--line); padding-top: 9px; }
.error { margin-top: 4px; color: #972739; padding: 10px; border: 1px solid #e6b6be; border-radius: 10px; background: #fff6f6; }
.no-js { margin: 1rem auto; width: min(100% - 32px, 690px); }
@media (max-width: 440px) {
  .actions .button { width: 100%; }
  .scale { gap: 4px; }
  .product-head h2 { font-size: 1.02rem; }
}
