:root {
  color-scheme: light;
  --ink: #122c3b;
  --ink-soft: #48606c;
  --paper: #f7fafb;
  --surface: #ffffff;
  --line: #d8e2e6;
  --teal: #0f6f72;
  --teal-deep: #0a5559;
  --teal-soft: #dceeee;
  --blue-soft: #e9f0f4;
  --amber: #c9893e;
  --shadow: 0 18px 50px rgba(18, 44, 59, 0.08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 15px;
  font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  font-size: 16px;
  background: #e9f0f2;
  color: var(--ink);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: #e9f0f2; }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 20% 8%, rgba(69, 151, 153, 0.14), transparent 31rem),
    linear-gradient(180deg, #edf4f5 0%, #e5ecef 100%);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.7;
}

button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.app-shell { min-height: 100vh; }
.phone-shell {
  width: min(100%, 480px);
  min-height: 100vh;
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 18px max(34px, env(safe-area-inset-bottom));
}

.wordmark, .question-header, .result-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  margin-bottom: 18px;
  color: var(--ink);
  font-weight: 700;
}
.wordmark-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 12px;
  background: var(--ink);
  color: white;
  font-size: 0.88rem;
}
.version { margin-left: auto; color: var(--ink-soft); font-size: 0.78rem; font-weight: 600; }

.hero-card, .intro-card, .instructions, .question-card, .report-card, .result-hero {
  overflow: hidden;
  border: 1px solid rgba(210, 224, 228, 0.95);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}
.hero-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: center; }
.hero-copy { padding: 25px 23px 27px; }
.hero-copy .primary-button { margin-top: 24px; }
.eyebrow, .section-kicker, .question-number {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
h1, h2, p { margin-top: 0; }
h1, h2 { line-height: 1.3; letter-spacing: -0.02em; }
.hero-copy h1 { margin-bottom: 16px; font-size: clamp(2.15rem, 9vw, 3rem); font-weight: 800; letter-spacing: -0.055em; }
.lead { margin: 0; color: var(--ink-soft); font-size: 1.06rem; line-height: 1.75; }
.intro-card { margin-top: 16px; padding: 25px 23px 23px; }
.intro-card > p:not(.section-kicker) { color: #354f5b; }
.outcome-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 24px 0; }
.outcome-grid div { min-height: 94px; padding: 16px; border-radius: var(--radius-md); background: var(--blue-soft); }
.outcome-grid strong, .outcome-grid span { display: block; }
.outcome-grid strong { margin-bottom: 3px; font-size: 0.98rem; }
.outcome-grid span { color: var(--ink-soft); font-size: 0.82rem; line-height: 1.5; }

.primary-button, .secondary-button, .icon-button, .text-button { border: 0; cursor: pointer; }
.primary-button, .secondary-button { min-height: 54px; border-radius: 16px; font-weight: 800; }
.primary-button { width: 100%; padding: 0 22px; background: var(--teal); color: white; box-shadow: 0 10px 26px rgba(15, 111, 114, 0.2); }
.primary-button:hover { background: var(--teal-deep); }
.primary-button:focus-visible, .secondary-button:focus-visible, .icon-button:focus-visible, .text-button:focus-visible,
.answer-option:has(input:focus-visible), .instructions summary:focus-visible, .axis-details summary:focus-visible, .source-link:focus-visible {
  outline: 3px solid rgba(201, 137, 62, 0.7);
  outline-offset: 3px;
}
.primary-button:disabled, .secondary-button:disabled { cursor: not-allowed; opacity: 0.4; box-shadow: none; }
.secondary-button { padding: 0 19px; border: 1px solid var(--line); background: white; color: var(--ink); }
.instructions { margin-top: 16px; padding: 2px 22px; box-shadow: none; }
.access-card { margin-top: 16px; padding: 25px 23px 23px; border: 1px solid rgba(210, 224, 228, 0.95); border-radius: var(--radius-xl); background: rgba(255, 255, 255, 0.96); box-shadow: var(--shadow); }
.access-card h2 { margin-bottom: 10px; font-size: 1.36rem; }
.access-card > p:not(.section-kicker) { color: var(--ink-soft); font-size: 0.93rem; }
.access-form { display: grid; gap: 10px; margin-top: 20px; }
.access-form label { color: var(--ink); font-size: 0.85rem; font-weight: 800; }
.access-form input { width: 100%; min-height: 52px; padding: 0 14px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcfd; color: var(--ink); letter-spacing: 0.04em; outline: none; }
.access-form input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15, 111, 114, 0.12); }
.access-notice { min-height: 1.55rem; margin: 1px 0 0; color: var(--ink-soft); font-size: 0.82rem; }
.access-state { margin: 16px 5px 0; color: var(--teal-deep); font-size: 0.84rem; font-weight: 750; text-align: center; }
.instructions summary, .axis-details summary { cursor: pointer; color: var(--ink); font-weight: 750; }
.instructions summary { padding: 18px 0; }
.instructions[open] summary { border-bottom: 1px solid var(--line); }
.instructions p { color: var(--ink-soft); }
.instructions p:first-of-type { margin-top: 18px; }

.question-header { display: grid; grid-template-columns: 44px 1fr 44px; margin-bottom: 10px; }
.icon-button { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.8); color: var(--ink); font-size: 1.6rem; line-height: 1; }
.progress-copy { display: flex; justify-content: center; gap: 9px; font-size: 0.88rem; }
.progress-copy span { color: var(--teal); }
.progress-percent { color: var(--ink-soft); font-size: 0.82rem; text-align: right; }
.progress-track { height: 6px; margin-bottom: 20px; overflow: hidden; border-radius: 999px; background: rgba(18, 44, 59, 0.1); }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), #4a9e9b); transition: width 180ms ease; }
.question-card { min-height: 610px; padding: 25px 20px 22px; }
.question-card h1 { margin-bottom: 24px; font-size: clamp(1.38rem, 6vw, 1.75rem); font-weight: 800; }
.answers { display: grid; gap: 12px; }
.answer-option {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr 22px;
  gap: 12px;
  align-items: center;
  min-height: 86px;
  padding: 14px 14px 14px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfcfd;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}
.answer-option:hover { border-color: #92b7b8; }
.answer-option:active { transform: scale(0.992); }
.answer-option.selected { border-color: var(--teal); background: var(--teal-soft); box-shadow: inset 0 0 0 1px var(--teal); }
.answer-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.answer-letter { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 13px; background: var(--blue-soft); color: var(--teal-deep); font-weight: 850; }
.selected .answer-letter { background: var(--teal); color: white; }
.answer-text { color: #243f4c; font-size: 1rem; line-height: 1.6; }
.answer-check { color: var(--teal); font-weight: 900; opacity: 0; }
.selected .answer-check { opacity: 1; }
.question-nav, .result-actions { display: grid; grid-template-columns: minmax(104px, 0.7fr) minmax(160px, 1.3fr); gap: 12px; margin-top: 16px; }
.question-nav.single { grid-template-columns: 1fr; }
.primary-button.compact { min-width: 0; }
.question-note { margin: 14px 0 0; color: var(--ink-soft); font-size: 0.82rem; text-align: center; }

.result-topbar { justify-content: space-between; }
.text-button { padding: 8px 0; background: transparent; color: var(--teal); font-size: 0.88rem; font-weight: 800; }
.result-hero { position: relative; isolation: isolate; min-height: 228px; padding: 38px 27px 35px; background: var(--ink); color: white; box-shadow: 0 20px 50px rgba(18, 44, 59, 0.2); }
.result-hero-art { position: absolute; inset: 0 0 0 auto; z-index: 0; width: 60%; height: 100%; object-fit: cover; object-position: 62% center; opacity: 0.9; }
.result-hero::before { position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg, var(--ink) 0%, var(--ink) 33%, rgba(18, 44, 59, 0.8) 56%, rgba(18, 44, 59, 0.18) 100%); content: ""; }
.result-hero::after { position: absolute; z-index: 1; top: -48px; right: -34px; width: 150px; height: 150px; border: 28px solid rgba(95, 175, 172, 0.13); border-radius: 50%; content: ""; }
.result-hero .eyebrow { position: relative; z-index: 2; color: #8ed0cc; }
.result-hero h1 { position: relative; z-index: 2; margin: 0 0 14px; font-size: 2.4rem; }
.stage-note { position: relative; z-index: 2; margin-bottom: 0; color: #dce7eb; }
.boundary-pill { display: inline-block; margin: 18px 0 0; padding: 7px 11px; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; color: #f3d3aa; font-size: 0.78rem; }
.report-card { margin-top: 16px; padding: 26px 22px; }
.report-card h2 { margin-bottom: 14px; font-size: 1.45rem; }
.report-card > p:not(.section-kicker):not(.muted):not(.chart-note):not(.city-reason) { color: #354f5b; }
.report-card > p:last-child { margin-bottom: 0; }
.section-kicker { font-size: 0.78rem; }
.muted, .chart-note, .city-reason { color: var(--ink-soft); font-size: 0.88rem; }
.analysis-card { border-top: 5px solid var(--amber); }
.analysis-lead { color: var(--ink) !important; font-size: 1.03rem; font-weight: 650; }
.analysis-card > p { line-height: 1.82; }
.city-depth { margin-top: 22px; padding: 18px; border-radius: 16px; background: var(--blue-soft); }
.city-depth h3 { margin: 0 0 9px; color: var(--ink); font-size: 1rem; }
.city-depth p, .nearby-note p { margin: 0; color: #354f5b; }
.nearby-note { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.nearby-note .nearby-label { margin-bottom: 7px; color: var(--teal); font-size: 0.86rem; font-weight: 800; }
.chart-intro { margin-bottom: 4px; color: var(--ink-soft); font-size: 0.9rem; }
.radar-wrap { display: grid; margin: 8px -8px 0; place-items: center; }
.radar-chart { width: 100%; max-width: 350px; overflow: visible; }
.radar-grid { fill: rgba(15, 111, 114, 0.025); stroke: #d5e1e4; stroke-width: 1; }
.radar-grid.outer { stroke: #b9ccd1; }
.radar-spoke { stroke: #d5e1e4; stroke-width: 1; }
.radar-shape { fill: rgba(15, 111, 114, 0.22); stroke: var(--teal); stroke-linejoin: round; stroke-width: 2.5; }
.radar-dot { fill: var(--teal); stroke: white; stroke-width: 2; }
.radar-label { fill: var(--ink); font-size: 11px; font-weight: 750; }
.axis-insights { display: grid; gap: 12px; margin-top: 5px; }
.axis-insight { padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: #fbfcfd; }
.axis-insight-head, .axis-scale { display: flex; justify-content: space-between; gap: 12px; }
.axis-insight-head small { margin-left: 4px; color: var(--teal); font-size: 0.72rem; letter-spacing: 0.08em; }
.score-pips { display: grid; grid-template-columns: repeat(3, 6px); gap: 4px; align-content: center; width: 26px; margin-top: 2px; }
.score-pip { width: 6px; height: 6px; border-radius: 50%; background: #d7e2e4; }
.score-pip.is-active { background: var(--teal); box-shadow: 0 0 0 1px rgba(15, 111, 114, 0.08); }
.axis-insight p { margin: 8px 0 10px; color: #354f5b; font-size: 0.91rem; line-height: 1.68; }
.axis-scale { color: var(--ink-soft); font-size: 0.73rem; }
.result-conclusion { margin-top: 16px; padding: 24px 22px; border-radius: var(--radius-lg); background: var(--teal-deep); color: white; box-shadow: var(--shadow); }
.result-conclusion .section-kicker { color: #9dd4d1; }
.result-conclusion > p:last-child { margin: 0; font-size: 1.12rem; font-weight: 700; line-height: 1.75; }
.result-footnote { margin: 20px 5px 0; color: var(--ink-soft); font-size: 0.78rem; line-height: 1.65; }
.reminder-box, .boundary-box { margin-top: 20px; padding: 16px; border-left: 4px solid var(--amber); border-radius: 0 13px 13px 0; background: #fff6e9; color: #5e472d; }
.reminder-box strong, .reminder-box span { display: block; }
.reminder-box strong { margin-bottom: 4px; color: #7d5525; font-size: 0.85rem; }

.axes { display: grid; gap: 24px; margin-top: 26px; }
.axis-title { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.axis-title span { color: var(--teal); font-weight: 800; }
.axis-track { height: 12px; overflow: hidden; border-radius: 999px; background: #e3ebee; }
.axis-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #6eb2ae, var(--teal)); }
.axis-ends { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; margin-top: 7px; color: var(--ink-soft); font-size: 0.76rem; }
.axis-ends span:nth-child(2) { color: var(--amber); font-weight: 700; text-align: center; }
.axis-ends span:last-child { text-align: right; }
.axis-details { margin-top: 8px; font-size: 0.84rem; }
.axis-details summary { color: var(--teal); font-size: 0.82rem; }
.axis-details ul { display: grid; gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; }
.axis-details li { padding: 11px 12px; border-radius: 11px; background: var(--paper); }
.axis-details li strong, .axis-details li span { display: block; }
.axis-details li strong { margin-bottom: 2px; color: var(--teal); }
.axis-details li span { color: var(--ink-soft); }
.chart-note { margin: 24px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }

.evidence-list { display: grid; gap: 12px; }
.evidence-item { padding: 18px; border-radius: var(--radius-md); background: var(--paper); }
.evidence-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 10px; }
.evidence-meta span { padding: 3px 8px; border-radius: 999px; background: var(--teal-soft); color: var(--teal-deep); font-size: 0.75rem; font-weight: 750; }
.evidence-item blockquote { margin: 0 0 10px; color: var(--ink); font-weight: 700; }
.evidence-item p { margin: 0; color: var(--ink-soft); font-size: 0.9rem; }
.supplement-card { border-top: 5px solid var(--teal); }
.city-card { border-top: 5px solid var(--amber); }
.city-reason { padding: 13px 14px; border-radius: 12px; background: var(--blue-soft); }
.clue-table { display: grid; gap: 10px; margin: 20px 0; }
.clue-row { display: grid; gap: 10px; padding: 15px; border: 1px solid var(--line); border-radius: 14px; }
.clue-row div { color: #354f5b; }
.clue-row span { display: block; margin-bottom: 2px; color: var(--teal); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; }
.source-link { display: inline-block; color: var(--teal); font-size: 0.86rem; font-weight: 750; text-underline-offset: 4px; }
.reality-card { background: #f9fbfc; }
.result-actions { margin-bottom: 18px; }

@media (min-width: 720px) {
  .phone-shell { padding-top: 34px; padding-bottom: 60px; }
  .question-card { min-height: 640px; }
}
@media (max-width: 360px) {
  .phone-shell { padding-left: 12px; padding-right: 12px; }
  .hero-copy, .intro-card, .report-card { padding-left: 18px; padding-right: 18px; }
  .question-card { padding-left: 15px; padding-right: 15px; }
  .answer-option { grid-template-columns: 38px 1fr 18px; gap: 9px; }
  .answer-letter { width: 38px; height: 38px; }
  .outcome-grid { grid-template-columns: 1fr; }
  .question-nav, .result-actions { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
