/* 主题变量可在这里微调 */
:root {
  --bg: #FBF6F0;
  --surface: #FFFFFF;
  --surface-2: #EEF3EE;
  --text: #2B2B2B;
  --muted: #6E6A66;
  --muted-2: #8E8680;
  --border: rgba(43, 43, 43, 0.08);
  --accent: #E9B39A;
  --accent-2: #DFA387;
  --accent-weak: rgba(233, 179, 154, 0.22);
  --shadow: 0 10px 26px rgba(43, 43, 43, 0.06);
  --radius: 16px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --max-width: 520px;
  --h1-size: 32px;
  --body-size: 15px;
  --small-size: 13px;
  font-family: "Helvetica Neue", "PingFang SC", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  display: flex;
  justify-content: center;
}

.layout {
  width: min(var(--max-width), 100%);
  padding: 20px 18px 48px;
}

@media (max-width: 480px) {
  :root {
    --h1-size: 30px;
    --body-size: 14.5px;
  }
  .layout { padding: 16px 12px 36px; }
  .title { margin: 12px 0 8px; }
  .lead { margin-bottom: 14px; }
  .info-block { padding: 14px 14px; gap: 10px; }
  .info-title { font-size: 17px; }
  .info-desc { font-size: 14px; }
  .note-card { padding: 14px 14px; }
  .pill { font-size: 13.5px; }
  .btn { height: 52px; font-size: 16px; }
  .question { font-size: 17px; line-height: 1.7; }
  .progress-text { font-size: 12.5px; margin-bottom: 12px; }
  .option { padding: 12px; gap: 8px; }
  .option-key { width: 24px; height: 24px; font-size: 12px; }
  .option-text { font-size: 14.5px; line-height: 1.65; }
  .quiz-card { margin-top: 32px; }
  .stage-labels { font-size: 11px; }
  .result-heading { font-size: 20px; }
  .stage-name { font-size: 19px; }
  .result-circle { width: 148px; height: 148px; }
  .score-text strong { font-size: 32px; }
  .score-text { font-size: 16px; gap: 4px; }
  .position-text { margin-top: 30px; font-size: 14.5px; }
  .card { padding: 14px; }
}

h1, h2, h3, p { margin: 0; }

.capsule {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  background: var(--accent-weak);
  color: var(--muted);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.title {
  font-size: var(--h1-size);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin: 14px 0 10px;
}

.lead {
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 18px;
}

.hero {
  text-align: center;
}

.hero .capsule {
  margin: 0 auto;
}

.section {
  margin-top: 20px;
  margin-bottom: 18px;
}

.section + .section {
  margin-top: 22px;
}

.info-list {
  display: grid;
  gap: 12px;
}

.info-block {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 16px 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: flex-start;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 5px;
  flex-shrink: 0;
}

.info-title {
  font-size: 18px;
  font-weight: 750;
  color: var(--text);
}

.info-desc {
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
}

.small-note {
  font-size: var(--small-size);
  color: var(--muted-2);
  line-height: 1.6;
}

.notes {
  display: grid;
  gap: 6px;
  margin: 10px 0;
}

.note-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 16px 18px;
  box-shadow: var(--shadow);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: transparent;
  color: var(--accent-2);
  font-weight: 600;
  border: none;
  font-size: 14px;
}

.cta {
  margin-top: 18px;
  margin-bottom: 24px;
}

.btn {
  width: 100%;
  border: none;
  outline: none;
  border-radius: 20px;
  height: 54px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.btn-primary {
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-primary:hover { filter: brightness(0.98); }
.btn-primary:active { transform: translateY(1px); box-shadow: 0 6px 18px rgba(43,43,43,0.05); }
.btn-primary:focus-visible { outline: 3px solid var(--accent-weak); outline-offset: 2px; }

.btn-ghost {
  background: var(--surface);
  color: var(--accent-2);
  border: 1px solid var(--accent-weak);
}

.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 16px;
  margin: 0 auto;
}

.quiz-card {
  margin-top: 48px;
  margin-bottom: 12px;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 12px 0;
}

.muted { color: var(--muted); }
.muted-2 { color: var(--muted-2); }
.secondary-text {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
}

.progress-text {
  font-size: 13px;
  color: var(--muted-2);
  line-height: 1.6;
  margin-bottom: 10px;
}

.question {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 16px;
}

.options {
  display: grid;
  gap: 10px;
}

.option {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--surface);
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}


.option-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-weak);
  color: var(--accent-2);
  font-weight: 700;
  margin-top: 2px;
  font-size: 13px;
  flex-shrink: 0;
}

.option-text {
  font-size: 15px;
  color: var(--text);
  line-height: 1.6;
}

.nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted-2);
}

.stage-rail {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 12px 0 8px;
}

.stage-block {
  height: 10px;
  border-radius: 8px;
  background: var(--surface-2);
  opacity: 0.7;
}

.stage-block.past { background: var(--accent-weak); opacity: 0.9; }
.stage-block.current { background: var(--accent); opacity: 1; }

.stage-labels {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  font-size: 12px;
  color: var(--muted-2);
  gap: 8px;
  text-align: center;
}

.result-circle {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 10px auto;
}

.result-circle svg { transform: rotate(-90deg); }

.score-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 18px;
  color: var(--muted);
}

.score-text strong {
  display: inline-block;
  font-size: 34px;
  line-height: 1;
  color: var(--text);
}

.result-grid {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.result-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 0 10px;
}

.result-heading {
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
}

.stage-name {
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  color: var(--accent-2);
  margin: 0;
}

.stage-card {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--accent-2);
  border-radius: var(--radius-lg);
  padding: 8px 12px;
  margin: 0 auto 16px;
  box-shadow: var(--shadow);
  width: fit-content;
  max-width: 80%;
}

.position-text {
  margin-top: 36px;
  font-size: 15px;
  line-height: 1.7;
}

.card h3 {
  color: var(--accent-2);
  margin-top: 0;
}

.card p {
  text-indent: 0;
}
