:root {
  --ink: #172033;
  --ink-soft: #344056;
  --paper: #f7f3ea;
  --paper-deep: #ece5d7;
  --coral: #ff6b5e;
  --coral-deep: #d94e49;
  --mint: #3bc7a6;
  --yellow: #f0c66d;
  --white: #fffdf8;
  --line: rgba(23, 32, 51, 0.16);
  --shadow: 0 18px 50px rgba(18, 25, 40, 0.22);
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--ink);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--ink); }
body { margin: 0; min-width: 320px; background: var(--ink); }
button { font: inherit; }
button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.app-shell { min-height: 100svh; overflow: hidden; }
.screen { min-height: 100svh; padding: 22px max(20px, calc((100vw - 960px) / 2)); display: flex; flex-direction: column; }
.screen-dark { color: var(--paper); background: var(--ink); }
.screen-paper { color: var(--ink); background: var(--paper); }
.topline { display: flex; align-items: center; justify-content: space-between; gap: 14px; max-width: 960px; width: 100%; margin: 0 auto; }
.brand { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: .72; }
.eyebrow { color: var(--coral); font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.small-button { border: 1px solid currentColor; border-radius: 999px; padding: 9px 13px; background: transparent; color: inherit; cursor: pointer; font-size: 12px; }
.hero { width: 100%; max-width: 960px; margin: auto; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(270px, .9fr); align-items: center; gap: clamp(28px, 6vw, 86px); }
.hero-copy h1 { max-width: 620px; margin: 14px 0 20px; font-family: Georgia, "Songti SC", serif; font-size: clamp(42px, 7vw, 78px); line-height: .98; letter-spacing: -0.03em; font-weight: 700; }
.hero-copy h1 em { color: var(--coral); font-style: normal; }
.hero-copy p { max-width: 500px; margin: 0; color: rgba(247,243,234,.72); font-size: 17px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.primary-button, .secondary-button { min-height: 48px; border-radius: 5px; padding: 13px 20px; cursor: pointer; font-weight: 800; letter-spacing: .01em; }
.primary-button { border: 1px solid var(--coral); background: var(--coral); color: var(--ink); box-shadow: 6px 6px 0 rgba(255,255,255,.12); }
.primary-button:hover { background: #ff8476; transform: translate(-1px, -1px); }
.secondary-button { border: 1px solid rgba(247,243,234,.35); background: transparent; color: var(--paper); }
.secondary-button:hover { border-color: var(--paper); }
.hero-note { display: block; margin-top: 16px; color: rgba(247,243,234,.5); font-size: 12px; }

.hero-cover { position: relative; margin: 0; overflow: hidden; border: 1px solid rgba(247,243,234,.26); border-radius: 26px; background: #0e2c4b; box-shadow: var(--shadow); transform: rotate(1deg); }
.hero-cover::after { content: ""; position: absolute; inset: 0; border: 10px solid rgba(247,243,234,.06); border-radius: inherit; pointer-events: none; }
.hero-cover picture { display: block; }
.hero-cover img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.hero-cover figcaption { position: absolute; left: 18px; bottom: 16px; border: 1px solid rgba(247,243,234,.45); border-radius: 999px; background: rgba(23,32,51,.82); color: var(--paper); padding: 8px 12px; font-size: 11px; font-weight: 800; letter-spacing: .03em; backdrop-filter: blur(8px); }

.weather-panel { position: relative; min-height: 420px; overflow: hidden; border: 1px solid rgba(247,243,234,.24); background: #202c45; box-shadow: var(--shadow); }
.weather-panel::before { content: ""; position: absolute; inset: 0; opacity: .26; background: repeating-linear-gradient(0deg, transparent 0 30px, rgba(247,243,234,.14) 31px, transparent 32px), repeating-linear-gradient(90deg, transparent 0 30px, rgba(247,243,234,.14) 31px, transparent 32px); }
.weather-panel::after { content: ""; position: absolute; width: 210px; height: 210px; right: -48px; top: -45px; border-radius: 50%; border: 1px solid rgba(240,198,109,.35); box-shadow: 0 0 0 18px rgba(240,198,109,.05), 0 0 0 42px rgba(240,198,109,.04); }
.panel-label { position: absolute; left: 20px; top: 18px; z-index: 1; color: rgba(247,243,234,.6); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.weather-figure { position: absolute; inset: 0; display: grid; place-items: center; }
.figure-person { position: relative; width: 132px; height: 230px; border-radius: 60px 60px 22px 22px; background: var(--coral); box-shadow: 17px 18px 0 rgba(0,0,0,.18); transform: rotate(-4deg); }
.figure-person::before { content: ""; position: absolute; width: 86px; height: 86px; left: 23px; top: -50px; border-radius: 50%; background: var(--paper); border: 7px solid var(--mint); }
.figure-person::after { content: ""; position: absolute; left: 33px; right: 24px; top: 120px; height: 4px; background: var(--ink); box-shadow: 0 17px 0 var(--ink), 0 34px 0 var(--ink); opacity: .7; }
.figure-phone { position: absolute; z-index: 2; left: 84px; top: 78px; width: 54px; height: 94px; border: 5px solid var(--paper); border-radius: 9px; background: var(--ink); transform: rotate(11deg); }
.figure-phone::before { content: ""; position: absolute; left: 10px; right: 10px; top: 17px; height: 5px; background: var(--coral); box-shadow: 0 16px 0 var(--mint), 0 32px 0 var(--yellow); }
.weather-readout { position: absolute; left: 18px; bottom: 18px; z-index: 2; display: flex; justify-content: space-between; width: calc(100% - 36px); color: rgba(247,243,234,.72); font-size: 12px; }
.weather-readout strong { color: var(--yellow); font-size: 24px; }

.context-wrap, .question-wrap, .result-wrap { width: 100%; max-width: 760px; margin: auto; }
.context-wrap h2, .question-wrap h2 { max-width: 680px; margin: 14px 0 22px; font-family: Georgia, "Songti SC", serif; font-size: clamp(32px, 6vw, 56px); line-height: 1.05; }
.context-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice-button { min-height: 58px; border: 1px solid var(--line); border-radius: 4px; background: rgba(255,255,255,.48); color: var(--ink); cursor: pointer; padding: 14px 16px; text-align: left; font-weight: 700; }
.choice-button:hover, .choice-button.selected { border-color: var(--coral); background: var(--white); box-shadow: 4px 4px 0 rgba(255,107,94,.3); }
.context-skip { margin-top: 20px; color: var(--ink-soft); font-size: 13px; }
.text-button { border: 0; padding: 0; background: none; color: inherit; text-decoration: underline; cursor: pointer; }

.question-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--ink-soft); font-size: 13px; }
.progress { width: min(240px, 46vw); height: 6px; overflow: hidden; background: var(--paper-deep); }
.progress span { display: block; height: 100%; background: var(--coral); transition: width .25s ease; }
.scene-stamp { display: inline-block; margin-top: 44px; padding: 8px 10px; border-left: 4px solid var(--mint); background: rgba(59,199,166,.12); color: var(--ink-soft); font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.question-wrap h2 { font-size: clamp(30px, 5vw, 48px); }
.question-options { display: grid; gap: 11px; }
.question-option { position: relative; display: grid; grid-template-columns: 1fr; align-items: center; min-height: 66px; border: 1px solid var(--line); border-radius: 4px; background: var(--white); color: var(--ink); cursor: pointer; padding: 10px 16px; text-align: left; font-size: 15px; line-height: 1.45; }
.question-option:hover { border-color: var(--coral); transform: translateX(3px); }
.question-footer { display: flex; justify-content: space-between; gap: 14px; margin-top: 24px; }
.ghost-dark { border: 0; background: none; color: var(--ink-soft); cursor: pointer; text-decoration: underline; }

.result-screen { background: radial-gradient(circle at 12% 14%, color-mix(in srgb, var(--result-accent, var(--mint)) 14%, transparent), transparent 28%), var(--paper); }
.result-wrap { max-width: 960px; }
.result-grid { display: grid; grid-template-columns: minmax(0, 1.14fr) minmax(290px, .64fr); gap: 30px; align-items: start; }
.result-card { position: relative; display: grid; grid-template-columns: minmax(0, .92fr) minmax(230px, 1.08fr); min-height: 610px; overflow: hidden; border: 2px solid var(--ink); border-radius: 28px; background: var(--white); color: var(--ink); box-shadow: 12px 14px 0 color-mix(in srgb, var(--result-accent, var(--mint)) 42%, var(--ink)); }
.result-card::before { content: ""; position: absolute; width: 430px; height: 430px; right: -80px; top: -92px; border-radius: 46% 54% 62% 38%; background: color-mix(in srgb, var(--result-accent, var(--mint)) 24%, var(--paper)); transform: rotate(-12deg); pointer-events: none; }
.result-card > * { position: relative; }
.result-copy { z-index: 2; align-self: end; padding: clamp(28px, 5vw, 52px) 0 clamp(32px, 5vw, 52px) clamp(28px, 5vw, 52px); }
.result-card h1 { max-width: 420px; margin: 9px 0 16px; font-family: Georgia, "Songti SC", serif; font-size: clamp(48px, 6.3vw, 74px); line-height: .92; letter-spacing: -.055em; }
.mascot-name { display: inline-flex; margin-top: 18px; border: 1px solid var(--ink); border-radius: 999px; padding: 7px 11px; background: var(--paper); font-size: 12px; font-weight: 900; }
.result-kicker { color: color-mix(in srgb, var(--result-accent, var(--coral)) 72%, var(--ink)); font-weight: 900; line-height: 1.45; }
.result-intro { max-width: 440px; color: var(--ink-soft); font-size: 15px; line-height: 1.72; }
.result-portrait { z-index: 1; align-self: center; margin: 0; padding: 24px 20px 24px 0; transform: rotate(1.5deg); }
.result-portrait picture { display: block; }
.result-portrait img { display: block; width: 100%; max-height: 520px; object-fit: contain; filter: drop-shadow(0 18px 18px rgba(23,32,51,.14)); }
.result-portrait figcaption { width: fit-content; margin: -8px auto 0; border-bottom: 2px solid var(--ink); font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.metric-row { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 30px; }
.metric strong { display: block; color: var(--coral); font-size: 44px; line-height: 1; }
.metric span { display: block; margin-top: 6px; color: var(--ink-soft); font-size: 11px; font-weight: 800; }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.result-actions .secondary-button { color: var(--paper); }
.detail-stack { display: grid; gap: 12px; }
.detail-block { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,253,248,.78); padding: 18px 18px 20px; }
.detail-block::after { content: ""; position: absolute; width: 72px; height: 72px; right: -34px; bottom: -38px; border-radius: 50%; background: color-mix(in srgb, var(--result-accent, var(--mint)) 22%, transparent); }
.detail-index { display: block; margin-bottom: 22px; color: var(--coral-deep); font: 900 11px/1 Georgia, serif; }
.detail-block h3 { margin: 0 0 8px; font-size: 13px; letter-spacing: .04em; }
.detail-block p { margin: 0; color: var(--ink-soft); line-height: 1.7; }
.detail-context { border-color: color-mix(in srgb, var(--result-accent, var(--mint)) 55%, var(--line)); background: color-mix(in srgb, var(--result-accent, var(--mint)) 9%, var(--white)); }
.detail-context .detail-index { display: none; }
.dimension-panel { margin-top: 6px; border: 1px solid var(--ink); border-radius: 16px; background: var(--ink); color: var(--paper); padding: 20px; }
.dimension-panel h2 { margin: 0 0 16px; font-family: Georgia, "Songti SC", serif; font-size: 25px; }
.dimension { display: grid; grid-template-columns: 52px 1fr 38px; align-items: center; gap: 12px; margin: 12px 0; font-size: 12px; }
.dimension-name { font-weight: 900; }
.dimension-bar { height: 10px; overflow: hidden; border-radius: 999px; background: rgba(247,243,234,.16); }
.dimension-bar span { display: block; height: 100%; border-radius: inherit; background: var(--result-accent, var(--mint)); }
.dimension-value { text-align: right; font-weight: 900; }
.disclaimer { margin-top: 26px; color: var(--ink-soft); font-size: 12px; line-height: 1.6; }

.lens-block { margin-top: 30px; border: 1px solid var(--line); border-radius: 16px; background: color-mix(in srgb, var(--result-accent, var(--mint)) 9%, var(--white)); padding: 18px; }
.lens-tag { display: inline-block; margin-bottom: 8px; color: var(--coral-deep); font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.lens-block p { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.7; }

.metric-explain { display: grid; gap: 10px; margin-top: 18px; border-top: 1px solid var(--line); padding-top: 16px; }
.explain-row { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: baseline; font-size: 13px; line-height: 1.6; }
.explain-row strong { color: var(--ink); font-size: 12px; font-weight: 900; }
.explain-row span { color: var(--ink-soft); }
.explain-reading strong { color: var(--coral-deep); }
.explain-reading span { color: var(--ink); font-weight: 600; }

.share-block { margin-top: 26px; border: 2px solid var(--ink); border-radius: 22px; background: var(--white); padding: 22px; box-shadow: 7px 7px 0 color-mix(in srgb, var(--result-accent, var(--mint)) 34%, transparent); }
.share-block h2 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: 26px; }
.share-lede { margin: 7px 0 18px; color: var(--ink-soft); font-size: 13px; }
.card-preview-wrap { display: flex; justify-content: center; }
.card-preview { width: min(240px, 62vw); height: auto; aspect-ratio: 3 / 4; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--ink); }
.share-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 10px; }
.share-tab { min-height: 40px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.5); color: var(--ink-soft); cursor: pointer; padding: 8px 16px; font-weight: 700; font-size: 13px; }
.share-tab:hover { border-color: var(--coral); }
.share-tab.active { border-color: var(--coral); background: var(--coral); color: var(--ink); }
.share-note { margin: 0 0 14px; color: var(--ink-soft); font-size: 12px; }

.dimension-legend { margin: -6px 0 14px; color: rgba(247,243,234,.64); font-size: 12px; line-height: 1.6; }
.dimension { grid-template-columns: 52px 1fr 30px 60px; }
.dimension-tone { text-align: right; font-size: 11px; font-weight: 900; letter-spacing: .02em; }
.tone-high, .tone-low { color: var(--yellow); }
.tone-mid { color: rgba(247,243,234,.6); }
.tone-good { color: var(--mint); }

.interlude { display: grid; place-items: center; text-align: center; }
.interlude-mark { width: 62px; height: 62px; margin: 0 auto 22px; border: 5px solid var(--coral); border-top-color: transparent; border-radius: 50%; animation: spin 1.2s linear infinite; }
.interlude h2 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: 40px; }
.interlude p { color: var(--ink-soft); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; transition-duration: .001ms !important; } }
@media (max-width: 720px) {
  .screen { padding: 18px 18px 30px; }
  .hero, .result-grid { grid-template-columns: 1fr; }
  .hero { margin-top: 50px; }
  .hero-copy h1 { font-size: clamp(42px, 14vw, 66px); }
  .weather-panel { min-height: 300px; }
  .hero-cover { border-radius: 20px; transform: none; }
  .hero-cover img { aspect-ratio: 4 / 3; object-position: 52% center; }
  .context-grid { grid-template-columns: 1fr; }
  .result-card { grid-template-columns: 1fr; min-height: auto; }
  .result-copy { order: 2; padding: 0 24px 30px; }
  .result-portrait { order: 1; width: min(88%, 420px); margin: 0 auto; padding: 20px 12px 0; }
  .result-portrait img { max-height: 390px; }
  .result-card h1 { font-size: clamp(44px, 14vw, 68px); }
}

.gap-spotlight { margin-top: 26px; border: 2px solid var(--ink); border-radius: 18px; background: color-mix(in srgb, var(--result-accent, var(--mint)) 13%, var(--white)); padding: 16px 18px; box-shadow: 5px 5px 0 color-mix(in srgb, var(--result-accent, var(--mint)) 35%, transparent); }
.gap-spotlight span { display: block; color: var(--coral-deep); font-size: 11px; font-weight: 900; letter-spacing: .06em; }
.gap-spotlight strong { display: block; margin-top: 8px; color: var(--ink); font-family: Georgia, "Songti SC", serif; font-size: clamp(34px, 5vw, 54px); line-height: 1; }
.gap-spotlight p { margin: 10px 0 0; color: var(--ink-soft); font-size: 13px; line-height: 1.6; }
.invite-block { margin-top: 24px; overflow: hidden; border: 2px solid var(--ink); border-radius: 22px; background: var(--ink); color: var(--paper); padding: 24px; box-shadow: 8px 8px 0 color-mix(in srgb, var(--result-accent, var(--mint)) 55%, transparent); }
.invite-kicker { color: var(--yellow); font-size: 11px; font-weight: 900; letter-spacing: .1em; }
.invite-block h2 { margin: 9px 0 10px; font-family: Georgia, "Songti SC", serif; font-size: clamp(27px, 4vw, 38px); line-height: 1.08; }
.invite-block > p:not(.invite-status) { margin: 0 0 18px; color: rgba(247,243,234,.72); font-size: 13px; line-height: 1.7; }
.invite-status { min-height: 1.5em; margin: 12px 0 0; color: var(--mint); font-size: 12px; line-height: 1.5; }
@media (max-width: 720px) {
  .gap-spotlight { margin-top: 22px; }
  .invite-block { padding: 21px; }
}