:root {
  --paper: #fff9f2;
  --paper-deep: #f7eee4;
  --surface: rgba(255, 253, 249, 0.92);
  --ink: #172033;
  --ink-soft: #5e6674;
  --accent: #f15a34;
  --accent-deep: #d84725;
  --accent-soft: #fbe7d7;
  --mint: #ddf3e8;
  --line: #e8ded4;
  --white: #fffefa;
  --shadow: 0 26px 70px rgba(117, 74, 44, 0.13);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--paper); }

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--ink);
  background:
    linear-gradient(rgba(255,255,255,.54) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.54) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px;
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
button { color: inherit; }

.ambient {
  position: fixed;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(2px);
  opacity: .72;
  z-index: -1;
}

.ambient-one {
  width: 34vw;
  height: 34vw;
  min-width: 360px;
  min-height: 360px;
  right: -12vw;
  top: 8vh;
  background: radial-gradient(circle, rgba(244, 184, 129, .3), rgba(244, 184, 129, 0) 70%);
}

.ambient-two {
  width: 30vw;
  height: 30vw;
  min-width: 320px;
  min-height: 320px;
  left: -14vw;
  bottom: -10vh;
  background: radial-gradient(circle, rgba(151, 199, 169, .2), rgba(151, 199, 169, 0) 70%);
}

.site-header {
  width: min(1180px, calc(100% - 40px));
  height: 80px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(232, 222, 212, .85);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 760;
  letter-spacing: -.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  color: var(--accent);
  background: var(--accent-soft);
}

.brand-mark svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.header-note { color: var(--ink-soft); font-size: 14px; }

.app-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 72px;
}

.screen { animation: screen-in .45s var(--ease) both; }
.screen[hidden] { display: none; }

@keyframes screen-in {
  from { opacity: 0; transform: translate3d(24px, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

.start-layout {
  min-height: calc(100dvh - 208px);
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(420px, .94fr);
  align-items: center;
  gap: clamp(52px, 8vw, 112px);
}

.start-copy { padding: 16px 0 34px; }
.eyebrow, .section-label {
  margin: 0 0 20px;
  color: var(--accent-deep);
  font-size: 14px;
  font-weight: 750;
  letter-spacing: .05em;
}

.start-copy h1 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(44px, 5.1vw, 72px);
  line-height: 1.08;
  letter-spacing: -.065em;
  text-wrap: balance;
}

.start-copy h1 span { color: var(--accent); }
.lead {
  max-width: 620px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.8;
  text-wrap: pretty;
}

.start-actions { margin-top: 36px; display: flex; align-items: center; gap: 22px; }
.button {
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  font-weight: 750;
  cursor: pointer;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), background-color .22s ease, color .22s ease, opacity .22s ease;
}

.button svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.button:hover:not(:disabled) { transform: translateY(-2px); }
.button:active:not(:disabled) { transform: translateY(1px) scale(.985); }
.button:focus-visible, .answer-option:has(input:focus-visible) { outline: 3px solid rgba(241, 90, 52, .28); outline-offset: 3px; }
.button-primary { color: var(--white); background: var(--accent); box-shadow: 0 14px 30px rgba(241, 90, 52, .24); }
.button-primary:hover:not(:disabled) { background: var(--accent-deep); box-shadow: 0 17px 34px rgba(216, 71, 37, .25); }
.button:disabled { cursor: not-allowed; opacity: .42; box-shadow: none; }
.button-quiet { color: var(--ink-soft); background: transparent; border: 1px solid var(--line); }
.button-light { color: var(--accent-deep); background: var(--white); }

.time-note { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 14px; }
.time-note svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.install-entry {
  margin-top: 18px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  color: var(--accent-deep);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.install-entry svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.install-entry:hover { text-decoration: underline; text-underline-offset: 4px; }
.trust-list { margin: 34px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 24px; list-style: none; color: var(--ink-soft); font-size: 13px; }
.trust-list li { display: flex; align-items: center; gap: 8px; }
.trust-list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.direction-board {
  position: relative;
  padding: clamp(26px, 3vw, 42px);
  border: 1px solid rgba(232, 222, 212, .9);
  border-radius: 28px 8px 28px 8px;
  background: var(--surface);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.9);
  transform: rotate(-1.2deg);
}

.direction-board::before {
  content: "";
  position: absolute;
  width: 84px;
  height: 28px;
  top: -13px;
  right: 16%;
  background: rgba(244, 191, 134, .4);
  transform: rotate(3deg);
}

.board-heading { display: flex; flex-direction: column; gap: 5px; margin-bottom: 24px; }
.board-heading span { color: var(--ink-soft); font-family: KaiTi, STKaiti, serif; font-size: 17px; }
.board-heading strong { font-size: clamp(24px, 2.3vw, 32px); letter-spacing: -.04em; }
.direction-list { display: grid; gap: 9px; }
.direction-item { min-height: 68px; display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 13px; padding: 11px 15px; border-top: 1px solid var(--line); }
.direction-item:first-child { border-top: 0; }
.direction-featured { border-radius: 15px; border-top: 0; background: var(--accent-soft); }
.direction-index { color: var(--accent); font-size: 12px; font-weight: 850; letter-spacing: .08em; }
.direction-item div { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.direction-item strong { font-size: 16px; }
.direction-item small { color: var(--ink-soft); font-size: 12px; }
.board-footnote { margin: 22px 0 0; color: var(--ink-soft); font-size: 12px; line-height: 1.6; }

.quiz-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; align-items: start; gap: 28px; }
.quiz-main, .quiz-aside { border: 1px solid rgba(232, 222, 212, .92); background: var(--surface); box-shadow: 0 18px 55px rgba(117, 74, 44, .09); }
.quiz-main { border-radius: 26px; padding: clamp(24px, 4vw, 52px); }
.quiz-aside { position: sticky; top: 20px; border-radius: 22px 6px 22px 6px; padding: 28px; }
.progress-row { display: flex; justify-content: space-between; color: var(--ink-soft); font-size: 14px; }
.progress-row strong { color: var(--accent); font-size: 20px; }
.progress-track { height: 6px; margin-top: 13px; overflow: hidden; border-radius: 99px; background: #eee8e1; }
.progress-track span { display: block; width: 10%; height: 100%; border-radius: inherit; background: var(--accent); }
.progress-track span { transition: width .35s var(--ease); }
fieldset { margin: 42px 0 0; padding: 0; border: 0; }
legend { max-width: 800px; padding: 0; font-size: clamp(25px, 3vw, 38px); font-weight: 800; line-height: 1.35; letter-spacing: -.035em; text-wrap: pretty; }
.question-helper { margin: 12px 0 26px; color: var(--ink-soft); font-size: 14px; }
.question-error { margin: 15px 0 0; color: var(--accent-deep); font-size: 14px; font-weight: 700; }
.has-error .option-list { border-radius: 18px; outline: 2px solid rgba(216, 71, 37, .28); outline-offset: 5px; }
.option-list { display: grid; gap: 11px; }
.answer-option { position: relative; min-height: 66px; padding: 12px 50px 12px 12px; display: grid; grid-template-columns: 40px 1fr; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.58); cursor: pointer; transition: transform .2s var(--ease), border-color .2s ease, background-color .2s ease; }
.answer-option:hover { transform: translateX(3px); border-color: #e3a48d; }
.answer-option:has(input:checked) { border-color: var(--accent); background: #fff4ec; }
.answer-option input { position: absolute; opacity: 0; pointer-events: none; }
.option-letter { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; color: var(--ink); background: #f1eee9; font-weight: 850; }
.answer-option:has(input:checked) .option-letter { color: var(--white); background: var(--accent); }
.option-copy { font-size: 15px; line-height: 1.6; }
.option-check { position: absolute; right: 20px; width: 16px; height: 16px; border: 1.5px solid #cbc4bc; border-radius: 50%; }
.answer-option:has(input:checked) .option-check { border: 5px solid var(--accent); }
.quiz-actions { margin-top: 30px; display: flex; justify-content: space-between; gap: 16px; }
.aside-number { margin: 0; color: var(--accent); font-size: 70px; font-weight: 850; line-height: 1; letter-spacing: -.08em; }
.quiz-aside h2 { margin: 12px 0; font-size: 23px; letter-spacing: -.04em; }
.quiz-aside > p:not(.aside-number) { color: var(--ink-soft); line-height: 1.8; font-size: 14px; }
.aside-rule { height: 1px; margin: 24px 0; background: var(--line); }
.quiz-aside .aside-emphasis { color: var(--ink); font-weight: 700; }

.result-layout { display: grid; grid-template-columns: minmax(300px, .78fr) minmax(0, 1.22fr); min-height: 650px; overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: var(--surface); box-shadow: var(--shadow); }
.result-hero { position: relative; padding: clamp(34px, 5vw, 70px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; color: var(--white); background: var(--accent); overflow: hidden; }
.result-hero::after { content: ""; position: absolute; width: 280px; height: 280px; right: -140px; bottom: -120px; border: 52px solid rgba(255,255,255,.1); border-radius: 50%; }
.result-kicker { margin-bottom: 18px; color: rgba(255,255,255,.82); font-size: 14px; font-weight: 700; letter-spacing: .06em; }
.result-hero h1 { margin: 0; font-size: clamp(42px, 5.2vw, 68px); line-height: 1.05; letter-spacing: -.07em; }
.result-hero p { margin: 20px 0 34px; color: rgba(255,255,255,.86); line-height: 1.8; }
.result-content { padding: clamp(34px, 5vw, 68px); }
.result-section h2 { margin: 0; font-size: clamp(25px, 2.7vw, 36px); line-height: 1.4; letter-spacing: -.04em; text-wrap: pretty; }
.reason-section > p:last-child { margin: 20px 0 0; color: var(--ink-soft); line-height: 1.85; font-size: 16px; }
.reason-section > #result-reason { margin: 20px 0 0; color: var(--ink-soft); line-height: 1.85; font-size: 16px; }
.evidence-list { margin: 24px 0 0; padding: 0; display: grid; gap: 9px; list-style: none; }
.evidence-list li { display: grid; grid-template-columns: 72px 1fr; align-items: baseline; gap: 13px; padding-top: 11px; border-top: 1px solid var(--line); }
.evidence-list span { color: var(--accent-deep); font-size: 12px; font-weight: 800; }
.evidence-list p { margin: 0; color: var(--ink); font-size: 14px; line-height: 1.55; }
.result-divider { height: 1px; margin: 36px 0; background: var(--line); }
.result-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--line); }
.result-fact { min-height: 98px; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; gap: 13px; background: rgba(255,255,255,.74); }
.result-fact span { color: var(--ink-soft); font-size: 12px; }
.result-fact strong { font-size: 15px; line-height: 1.45; }
.secondary-result { margin-top: 18px; padding: 20px 22px; border-radius: 16px; background: var(--paper-deep); }
.secondary-result span { display: block; color: var(--ink-soft); font-size: 12px; }
.secondary-result strong { display: block; margin-top: 7px; color: var(--accent-deep); font-size: 18px; }
.secondary-result p { margin: 6px 0 0; color: var(--ink-soft); font-size: 13px; line-height: 1.6; }
.content-example { margin: 16px 0 0; padding: 14px 17px; color: var(--accent-deep); border-left: 3px solid var(--accent); background: #fff4ec; font-size: 14px; line-height: 1.65; }
.action-steps { margin-top: 24px; display: grid; gap: 12px; }
.action-steps div { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 14px; }
.action-steps span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--accent-deep); background: var(--accent-soft); font-size: 13px; font-weight: 850; }
.action-steps p { margin: 0; color: var(--ink-soft); line-height: 1.55; }
.gentle-note { margin-top: 36px; padding: 22px 24px; border-radius: 4px 18px 4px 18px; background: var(--mint); }
.gentle-note p { margin: 0; color: #275d49; font-family: KaiTi, STKaiti, serif; font-size: 18px; line-height: 1.65; }
.note-line { display: block; width: 64px; height: 2px; margin-bottom: 12px; background: #5b9b81; transform: rotate(-2deg); }
.prototype-note { margin: 28px 0 0; color: #8e857d; font-size: 12px; line-height: 1.7; }

noscript { display: block; padding: 20px; text-align: center; color: var(--accent-deep); }

.install-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(23, 32, 51, .38);
  backdrop-filter: blur(5px);
}
.install-sheet {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 21;
  width: min(520px, calc(100% - 28px));
  padding: 34px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 26px 8px 26px 8px;
  background: var(--white);
  box-shadow: 0 28px 90px rgba(23, 32, 51, .24), inset 0 1px 0 rgba(255,255,255,.9);
  transform: translateX(-50%);
  animation: sheet-in .32s var(--ease) both;
}
.install-sheet[hidden], .install-backdrop[hidden] { display: none; }
.sheet-handle { display: none; }
.sheet-close {
  position: absolute;
  top: 17px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-soft);
  background: var(--paper);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.install-sheet h2 { margin: 0; max-width: 410px; font-size: 25px; line-height: 1.4; letter-spacing: -.035em; }
.install-instructions { margin-top: 24px; display: grid; gap: 12px; }
.install-step { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; }
.install-step span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: var(--accent-deep); background: var(--accent-soft); font-size: 12px; font-weight: 850; }
.install-step p { margin: 4px 0 0; color: var(--ink-soft); font-size: 14px; line-height: 1.65; }
.install-note { margin: 22px 0 0; padding-top: 17px; border-top: 1px solid var(--line); color: #8e857d; font-size: 12px; line-height: 1.6; }
@keyframes sheet-in {
  from { opacity: 0; transform: translate3d(-50%, 24px, 0); }
  to { opacity: 1; transform: translate3d(-50%, 0, 0); }
}

@media (max-width: 840px) {
  .site-header { width: calc(100% - 32px); height: 68px; }
  .header-note { display: none; }
  .app-shell { width: calc(100% - 32px); padding: 30px 0 48px; }
  .start-layout, .quiz-layout, .result-layout { grid-template-columns: 1fr; }
  .start-layout { gap: 34px; }
  .start-copy { padding: 8px 0 0; }
  .start-copy h1 { font-size: clamp(39px, 11.6vw, 58px); }
  .start-actions { align-items: flex-start; flex-direction: column; gap: 17px; }
  .button-primary { width: 100%; }
  .trust-list { display: grid; gap: 10px; }
  .direction-board { padding: 24px 20px; transform: rotate(0); }
  .direction-item div { display: block; }
  .direction-item small { display: block; margin-top: 4px; }
  .quiz-aside { position: static; grid-row: 1; padding: 22px; display: grid; grid-template-columns: 62px 1fr; column-gap: 16px; }
  .aside-number { grid-row: 1 / 4; font-size: 54px; }
  .quiz-aside h2 { margin: 0 0 6px; }
  .quiz-aside > p:not(.aside-number) { margin: 0; line-height: 1.6; }
  .quiz-aside .aside-rule, .quiz-aside .aside-emphasis { display: none; }
  .quiz-main { padding: 22px 18px; }
  fieldset { margin-top: 30px; }
  .answer-option { grid-template-columns: 38px 1fr; padding-right: 18px; }
  .option-check { display: none; }
  .quiz-actions { display: grid; grid-template-columns: 92px 1fr; }
  .quiz-actions .button-primary { width: auto; padding-inline: 17px; }
  .result-layout { border-radius: 22px; }
  .result-hero { min-height: 370px; padding: 38px 28px; }
  .result-content { padding: 34px 24px 38px; }
  .result-facts { grid-template-columns: 1fr; }
  .result-fact { min-height: 0; flex-direction: row; align-items: center; }
  .install-sheet { bottom: 0; width: 100%; padding: 30px 22px calc(24px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; }
  .sheet-handle { display: block; width: 42px; height: 4px; margin: -16px auto 22px; border-radius: 99px; background: var(--line); }
}

@media (max-width: 420px) {
  .app-shell, .site-header { width: calc(100% - 24px); }
  .brand-mark { width: 32px; height: 32px; }
  .start-copy h1 { letter-spacing: -.075em; }
  .lead { line-height: 1.72; }
  .direction-board { border-radius: 22px 6px 22px 6px; }
  .quiz-main { border-radius: 20px; }
  .option-copy { font-size: 14px; }
  .quiz-actions { grid-template-columns: 76px 1fr; gap: 10px; }
  .button { padding-inline: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
