:root {
  --ink: #202623;
  --muted: #646f67;
  --paper: #f4ede3;
  --paper-deep: #e7dbce;
  --coral: #b95340;
  --teal: #28746f;
  --green-soft: #e1e9de;
  --line: rgba(32, 38, 35, .15);
  --sans: 'Microsoft YaHei', 'PingFang SC', system-ui, sans-serif;
  --ease-out: cubic-bezier(.22, .8, .24, 1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; background: var(--paper); overflow-x: hidden; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); }
button, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { letter-spacing: -.025em; }
h2 { font-size: 24px; line-height: 1.5; }
h3 { font-size: 15px; line-height: 1.6; margin-bottom: 10px; }
p { line-height: 1.85; }
.app { overflow: hidden; min-height: 100svh; }
.view { display: none; min-height: 100svh; padding: 24px 20px max(36px, env(safe-area-inset-bottom)); }
.view.is-active { display: block; }
.page-width { max-width: 640px; margin: auto; }
.topbar, .quiz-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 11px; color: var(--muted); }
.topbar { min-height: 30px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.wordmark { letter-spacing: .12em; color: var(--ink); }
.eyebrow, .section-index { font-size: 10px; font-weight: 700; letter-spacing: .14em; color: var(--coral); }
.welcome-hero { position: relative; padding: 34px 0 25px; }
.welcome-hero h1 { position: relative; font-size: clamp(36px, 10vw, 62px); line-height: 1.3; margin: 13px 0 20px; }
.welcome-hero em { font-style: normal; color: var(--teal); }
.hero-copy { position: relative; font-size: 14px; color: var(--muted); margin-bottom: 0; }
.orbit { position: absolute; width: 170px; height: 170px; right: -45px; top: 30px; border: 1px solid rgba(40,116,111,.2); border-radius: 50%; pointer-events: none; }
.orbit::before, .orbit::after { content: ''; position: absolute; inset: 24px; border: 1px solid rgba(40,116,111,.2); border-radius: 50%; }
.orbit::after { inset: 52px; }
.orbit span { position: absolute; top: 24px; left: 24px; width: 9px; height: 9px; border-radius: 50%; background: var(--coral); }
.test-facts { display: flex; justify-content: space-between; gap: 8px; padding: 16px 0; border-block: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.test-facts b { color: var(--ink); font-size: 19px; font-weight: 500; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 48px; padding: 14px 18px; border: 0; border-radius: 16px; cursor: pointer; text-align: center; text-decoration: none; font-size: 14px; font-weight: 600; transition: background 180ms, transform 180ms; }
.button:active { transform: scale(.985); }
.button-primary { color: #fff; background: var(--teal); box-shadow: 0 8px 20px rgba(40,116,111,.12); }
.button-quiet { color: var(--teal); border: 1px solid rgba(40,116,111,.32); background: transparent; }
.button-wide { width: 100%; margin-top: 16px; }
.text-button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 8px 5px; border: 0; border-radius: 10px; background: transparent; color: var(--teal); cursor: pointer; font-size: 13px; }
.save-note, .gesture-note { font-size: 11px; color: var(--muted); text-align: center; margin: 12px 0; }
.report-preview { margin-top: 36px; padding: 25px 0 18px; border-top: 1px solid var(--line); }
.report-preview h2 { font-size: 22px; margin-bottom: 22px; }
.preview-items { display: grid; gap: 17px; }
.preview-items p { display: grid; grid-template-columns: 32px 1fr; margin: 0; font-size: 12px; color: var(--muted); }
.preview-items span { grid-row: span 2; font-size: 18px; color: var(--coral); }
.preview-items strong { color: var(--ink); font-size: 14px; }
.method-note { border-block: 1px solid var(--line); margin: 20px 0; }
.method-note summary { padding: 15px 0; cursor: pointer; font-size: 13px; }
.method-note p { font-size: 12px; color: var(--muted); }
.legal-note { color: var(--muted); text-align: center; font-size: 11px; line-height: 1.8; margin: 24px 0 0; }
.quiz-header { margin-bottom: 18px; }
.progress-line { height: 4px; background: var(--paper-deep); border-radius: 3px; overflow: hidden; margin-bottom: 32px; }
.progress-line span { display: block; width: 0; height: 100%; background: var(--teal); transition: width 350ms var(--ease-out); }
.question-stage { position: relative; overflow: hidden; touch-action: pan-y; }
.question-wrap { width: 100%; padding: 4px 4px 10px; }
.question-wrap.is-entering { position: absolute; top: 0; left: 0; }
.question-number { font-family: Georgia, serif; font-size: 56px; color: var(--coral); line-height: 1; }
.question-title { font-size: clamp(25px, 7vw, 38px); line-height: 1.5; margin: 16px 0 12px; outline: none; }
.question-tip { color: var(--muted); font-size: 12px; margin-bottom: 23px; }
.answer-list { display: grid; gap: 12px; }
.answer { display: flex; align-items: center; gap: 12px; width: 100%; padding: 16px; min-height: 62px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.5); color: var(--ink); text-align: left; cursor: pointer; transition: background 150ms, border-color 150ms, color 150ms; }
.answer.is-selected { color: white; background: var(--teal); border-color: var(--teal); }
.answer-mark { display: grid; flex: 0 0 27px; height: 27px; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: 11px; }
.answer-copy { font-size: 14px; line-height: 1.7; }
.gesture-note { margin-top: 23px; }
.result-hero { position: relative; padding: 34px 0 0; }
.result-intro { color: var(--muted); font-size: 13px; margin: 26px 0 6px; }
.result-hero h1 { color: var(--teal); font-size: clamp(32px, 9vw, 56px); line-height: 1.35; margin-bottom: 16px; outline: none; }
.result-subtitle { color: var(--muted); font-size: 15px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.tag { padding: 7px 12px; border-radius: 24px; background: var(--green-soft); color: var(--teal); font-size: 12px; }
blockquote { border-left: 3px solid var(--coral); padding: 9px 0 9px 18px; margin: 24px 0 10px; font-size: 20px; line-height: 1.7; }
.original-note { font-size: 10px; color: var(--muted); padding-left: 21px; }
.result-shortcuts { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 36px; }
.result-shortcuts .button { flex: 1 1 140px; }
.report-body { scroll-margin-top: 20px; }
.copy-section { border-top: 1px solid var(--line); padding: 28px 0; }
.copy-section h2 { margin-bottom: 18px; }
.copy-section > p:not(.section-index), .insight-box p { color: #4c5b52; font-size: 15px; line-height: 1.95; }
.copy-section .section-index { margin-bottom: 12px; }
.dimension-overview { display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: center; padding: 20px 0 10px; }
.donut-chart { --chart: conic-gradient(var(--teal) 0deg 90deg, var(--paper-deep) 90deg 360deg); position: relative; display: grid; width: 148px; height: 148px; place-items: center; border-radius: 50%; background: var(--chart); transform: rotate(-90deg); }
.donut-chart::after { content: ''; position: absolute; inset: 17px; border-radius: 50%; background: var(--paper); }
.donut-center { position: relative; z-index: 1; display: grid; place-items: center; transform: rotate(90deg); }
.donut-center strong { color: var(--teal); font: 500 30px Georgia, serif; }
.donut-center span { color: var(--muted); font-size: 10px; }
.dimension-legend { display: grid; gap: 12px; }
.legend-button { display: grid; grid-template-columns: 10px 1fr auto; gap: 8px; align-items: center; width: 100%; padding: 0; border: 0; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.legend-button i { width: 10px; height: 10px; border-radius: 50%; background: var(--legend-color); }
.legend-button b { font-size: 12px; font-weight: 600; }
.legend-button span { color: var(--muted); font-size: 12px; }
.legend-button.is-active b, .legend-button.is-active span { color: var(--teal); }
.chart-hint { margin: 0; color: var(--muted); font-size: 11px; }
.score-strip { display: grid; gap: 13px; margin: 22px 0 15px; padding: 18px; border-radius: 18px; background: rgba(255,255,255,.5); }
.score-item { display: grid; grid-template-columns: 52px 1fr 44px; gap: 10px; align-items: center; text-align: left; }
.score-value { order: 3; color: var(--teal); font: 500 18px Georgia, serif; text-align: right; }
.score-label { color: var(--ink); font-size: 12px; }
.score-meter { position: relative; height: 8px; overflow: hidden; border-radius: 10px; background: var(--paper-deep); }
.score-meter span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--meter-color); transition: width 700ms var(--ease-out); }
.pattern-map { display: flex; align-items: center; gap: 7px; padding: 14px 0; }
.pattern-node { display: grid; flex: 1; gap: 5px; padding: 12px 8px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.42); text-align: center; }
.pattern-node span { color: var(--muted); font-size: 10px; }
.pattern-node strong { color: var(--teal); font-size: 12px; }
.pattern-plus, .pattern-arrow { color: var(--coral); font-size: 18px; }
.pattern-result { background: var(--green-soft); border-color: transparent; }
.copy-section .small-copy, .small-copy { font-size: 12px; line-height: 1.8; color: var(--muted); }
.copy-section h3 { margin-top: 22px; }
.insight-box, .evidence-item { background: rgba(255,255,255,.48); padding: 20px; border: 1px solid rgba(32,38,35,.08); border-radius: 18px; margin-top: 15px; }
.insight-box h3 { margin-top: 0; color: var(--teal); }
.insight-box p, .evidence-item p { margin-bottom: 0; }
.evidence-item p { font-size: 14px; }
.evidence-item .evidence-label { color: var(--coral); font-size: 11px; margin-bottom: 9px; }
.evidence-item .evidence-answer { margin-top: 9px; color: var(--teal); }
.result-actions { padding: 26px 22px; background: var(--green-soft); border-radius: 22px; margin-top: 10px; }
.result-actions h2 { margin-bottom: 12px; }
.result-actions > p:not(.eyebrow) { font-size: 13px; color: var(--muted); }
.result-actions .text-button { display: flex; width: 100%; margin-top: 14px; }
dialog { color: var(--ink); background: #fbf8f2; width: min(94vw, 580px); max-height: 90dvh; border: 1px solid var(--line); border-radius: 22px; padding: 20px; overscroll-behavior: contain; }
dialog::backdrop { background: rgba(23,35,29,.6); }
body:has(dialog[open]) { overflow: hidden; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dialog-heading h2 { font-size: 19px; margin-bottom: 0; }
#share-status { font-size: 12px; color: var(--muted); }
#share-image { display: block; width: 100%; border-radius: 12px; }
.share-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.share-actions .button { flex: 1 1 120px; }
textarea { width: 100%; padding: 12px; line-height: 1.8; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 16px; }
.toast { position: fixed; bottom: max(22px, env(safe-area-inset-bottom)); left: 20px; right: 20px; z-index: 5; padding: 12px 15px; border-radius: 14px; background: var(--ink); color: #fff; margin: auto; max-width: 440px; text-align: center; font-size: 13px; opacity: 0; visibility: hidden; transform: translateY(12px); transition: transform 200ms, opacity 200ms; }
.toast.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (hover: hover) { .button-primary:hover { background: #1e5a56; } .answer:hover { border-color: var(--teal); } }
@media (min-width: 700px) { .view { padding-top: 36px; } .welcome-hero { padding-top: 48px; } .preview-items { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
