:root {
  --pink: #ff7b9c;
  --pink-deep: #f2547d;
  --pink-soft: #fff0f4;
  --pink-line: #ffe1e9;
  --blue: #448aff;
  --ink: #2f2a2d;
  --sub: #6f666b;
  --muted: #9a9095;
  --line: #f1e9ec;
  --surface: #fbf7f8;
  --white: #ffffff;
  --green: #2f9e6f;
  --lime: #5aa93f;
  --orange: #e5942f;
  --coral: #ef6a45;
  --berry: #e0457b;
  --card-border: 1px solid rgba(255,255,255,.9);
  --card-radius: 20px;
  --card-shadow: 0 10px 30px rgba(190,120,140,.10);
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  background:
    radial-gradient(circle at 8% 3%, rgba(255,123,156,.16), transparent 31%),
    radial-gradient(circle at 94% 20%, rgba(68,138,255,.11), transparent 29%),
    var(--surface);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
[hidden] { display: none !important; }
.screen { width: min(100%, 760px); margin: 0 auto; padding: 22px 20px calc(32px + env(safe-area-inset-bottom)); }
.cover-screen { max-width: 520px; }
.brand-row, .quiz-top, .result-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; color: var(--ink); font-size: 12px; line-height: 1.05; font-weight: 900; letter-spacing: 1.8px; }
.brand small { color: var(--sub); font-size: 9px; font-weight: 600; letter-spacing: 1px; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: var(--white); background: var(--ink); font-size: 17px; font-style: italic; box-shadow: 4px 4px 0 var(--pink-line); }
.brand.compact { border: 0; padding: 0; background: none; cursor: pointer; }
.brand.compact .brand-mark { width: 30px; height: 30px; border-radius: 10px; font-size: 15px; }
.edition { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: 1.6px; }

.night-panel {
  position: relative;
  min-height: 360px;
  margin-top: 24px;
  padding: 20px;
  overflow: hidden;
  border-radius: 30px 30px 72px 30px;
  color: var(--white);
  background:
    radial-gradient(circle at 88% 12%, rgba(68,138,255,.45), transparent 34%),
    radial-gradient(circle at 12% 90%, rgba(242,84,125,.38), transparent 38%),
    linear-gradient(145deg, var(--ink), var(--sub));
  box-shadow: 0 24px 48px rgba(47,42,45,.22);
  isolation: isolate;
}
.night-panel::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .15; background-image: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(255,255,255,.12) 4px); }
.night-status { display: flex; justify-content: space-between; color: rgba(255,255,255,.7); font-size: 10px; letter-spacing: .5px; }
.night-status i { display: inline-block; width: 6px; height: 6px; margin-right: 4px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 12px var(--pink); }
.chat-name { margin: 19px 0 20px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 17px; font-weight: 800; }
.chat-name span { margin-left: 8px; color: rgba(255,255,255,.55); font-size: 9px; font-weight: 400; }
.bubble { width: fit-content; max-width: 72%; margin: 8px 0; padding: 10px 13px; border-radius: 5px 16px 16px 16px; background: rgba(255,255,255,.13); font-size: 12px; line-height: 1.5; }
.bubble-right { margin-left: auto; border-radius: 16px 5px 16px 16px; background: var(--pink-deep); box-shadow: 0 8px 18px rgba(242,84,125,.24); }
.bubble.short { max-width: 62%; }
.typing { display: flex; align-items: center; gap: 4px; margin-top: 12px; color: rgba(255,255,255,.55); font-size: 9px; }
.typing i { width: 4px; height: 4px; border-radius: 50%; background: var(--pink); animation: typing 1.4s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
.typing span { margin-left: 5px; }
.wave { position: absolute; right: 20px; bottom: 34px; left: 20px; display: flex; align-items: center; gap: 5px; height: 40px; opacity: .45; }
.wave i { flex: 1; height: 8px; border-radius: 4px; background: var(--pink); animation: wave 2.2s ease-in-out infinite; }
.wave i:nth-child(3n) { height: 28px; animation-delay: -.4s; }
.wave i:nth-child(4n) { height: 18px; animation-delay: -.8s; }
.wave i:nth-child(5n) { height: 36px; animation-delay: -1.2s; }
.signal-note { position: absolute; right: 18px; bottom: 64px; width: 178px; padding: 16px 17px 14px; transform: rotate(-4deg); color: var(--ink); background: var(--pink-soft); box-shadow: 0 14px 24px rgba(47,42,45,.25); }
.signal-note::before { content: ""; position: absolute; top: -7px; left: 55px; width: 66px; height: 16px; transform: rotate(2deg); background: rgba(255,255,255,.55); }
.signal-note small, .signal-note span { display: block; color: var(--pink-deep); font-size: 9px; font-weight: 800; letter-spacing: 1px; }
.signal-note strong { display: block; margin: 7px 0 11px; font-size: 17px; line-height: 1.45; }
.signal-note span { color: var(--muted); text-align: right; }

.cover-copy { padding: 28px 4px 0; animation: rise .55s ease-out both; }
.eyebrow, .page-kicker { margin: 0 0 12px; color: var(--pink-deep); font-size: 11px; font-weight: 900; letter-spacing: 2.2px; }
.cover-copy h1 { margin: 0; font-size: clamp(52px, 15vw, 72px); line-height: 1.06; letter-spacing: -3px; }
.cover-copy h1 span { position: relative; z-index: 0; color: var(--pink-deep); }
.cover-copy h1 span::after { content: ""; position: absolute; right: -4px; bottom: 4px; left: -4px; z-index: -1; height: 17px; transform: rotate(-1.5deg); background: var(--pink-line); }
.cover-lead { margin: 20px 0 16px; color: var(--sub); font-size: 15px; line-height: 1.8; }
.cover-lead strong { color: var(--ink); }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.meta-row span { padding: 6px 10px; border: 1px solid var(--pink-line); border-radius: 99px; color: var(--sub); background: rgba(255,255,255,.7); font-size: 10px; font-weight: 700; }
.btn { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 50px; padding: 14px; border: 0; border-radius: 13px; font-size: 15px; font-weight: 700; cursor: pointer; transition: transform .18s, box-shadow .18s, opacity .18s; }
.btn b { font-size: 20px; line-height: 1; }
.btn-primary { color: var(--white); background: linear-gradient(135deg,#ff8aa8,#ff6f94); box-shadow: 0 8px 18px rgba(255,111,148,.28); }
.btn-ghost { margin-top: 10px; border: 1px solid var(--pink-line); color: var(--pink-deep); background: var(--white); }
.btn-text { width: auto; min-width: 98px; color: var(--sub); background: transparent; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .38; cursor: not-allowed; box-shadow: none; }
.privacy { margin: 13px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; text-align: center; }
.cover-foot { margin: 26px 10px 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; line-height: 1.7; text-align: center; }

.question-screen { max-width: 560px; min-height: 100svh; display: flex; flex-direction: column; }
.quiz-top > span { color: var(--muted); font-size: 10px; }
.progress-meta { display: flex; justify-content: space-between; align-items: end; margin-top: 36px; color: var(--sub); font-size: 11px; }
.progress-meta strong { color: var(--ink); font-size: 22px; font-variant-numeric: tabular-nums; }
.progress-track { height: 5px; margin: 10px 0 24px; overflow: hidden; border-radius: 99px; background: var(--pink-line); }
.progress-track i { display: block; width: 4.16%; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--pink),var(--pink-deep)); transition: width .25s ease; }
.question-card { flex: 1; padding: 24px 20px; border: var(--card-border); border-radius: var(--card-radius); background: rgba(255,255,255,.92); box-shadow: var(--card-shadow); animation: rise .28s ease-out both; }
.question-scene { display: flex; align-items: center; gap: 10px; color: var(--pink-deep); font-size: 10px; font-weight: 900; letter-spacing: 1px; }
.question-scene i { flex: 1; height: 1px; background: var(--pink-line); }
.question-scene small { color: var(--muted); font-size: 9px; }
.question-card h2 { margin: 23px 0 12px; font-size: clamp(22px,6.2vw,29px); line-height: 1.5; letter-spacing: -.5px; }
.question-card > p { margin: 0 0 24px; color: var(--sub); font-size: 12px; line-height: 1.7; }
.options { display: grid; gap: 10px; }
.option { position: relative; display: grid; grid-template-columns: 32px 1fr 20px; align-items: center; gap: 10px; min-height: 66px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: var(--white); text-align: left; cursor: pointer; transition: border .16s, background .16s, transform .16s; }
.option:hover { border-color: var(--pink); }
.option:active { transform: scale(.99); }
.option-index { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; color: var(--muted); background: var(--surface); font-size: 10px; font-weight: 800; }
.option-copy strong { display: block; font-size: 14px; line-height: 1.4; }
.option-copy small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.option-check { display: grid; place-items: center; width: 18px; height: 18px; border: 1px solid var(--pink-line); border-radius: 50%; color: transparent; font-size: 11px; }
.option.selected { border-color: var(--pink-deep); background: var(--pink-soft); box-shadow: 0 6px 15px rgba(242,84,125,.08); }
.option.selected .option-index { color: var(--white); background: var(--pink-deep); }
.option.selected .option-check { border-color: var(--pink-deep); color: var(--white); background: var(--pink-deep); }
.quiz-actions { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; margin-top: 18px; }
.quiz-honesty { margin: 15px 0 0; color: var(--muted); font-size: 10px; text-align: center; }

.result-screen { position: relative; }
.result-top { margin-bottom: 18px; }
.text-button { min-height: 44px; padding: 0 4px; border: 0; color: var(--pink-deep); background: none; font-size: 12px; font-weight: 700; cursor: pointer; }
.report-nav { position: sticky; top: 10px; z-index: 10; display: grid; grid-template-columns: repeat(6,1fr); gap: 4px; width: min(100%,296px); margin: 0 auto 18px; padding: 5px; border: 1px solid rgba(255,255,255,.9); border-radius: 99px; background: rgba(255,255,255,.9); box-shadow: var(--card-shadow); backdrop-filter: blur(12px); }
.report-nav a { display: grid; place-items: center; min-height: 44px; border-radius: 99px; color: var(--sub); font-size: 10px; font-weight: 800; }
.report-nav a:first-child { color: var(--white); background: var(--pink-deep); }
#report-pages { display: grid; gap: 18px; }
.report-page { scroll-margin-top: 64px; padding: 28px 24px 20px; overflow: hidden; border: var(--card-border); border-radius: var(--card-radius); background: rgba(255,255,255,.96); box-shadow: var(--card-shadow); animation: rise .45s ease-out both; }
.report-page h2 { margin: 0 0 22px; font-size: clamp(25px,6.8vw,34px); line-height: 1.35; letter-spacing: -1px; }
.report-page h2 span { color: var(--pink-deep); }
.page-foot { margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; line-height: 1.6; text-align: center; }
.overview-page { position: relative; background: radial-gradient(circle at 100% 0,rgba(255,225,233,.8),transparent 42%),var(--white); }
.overview-grid { display: grid; grid-template-columns: 154px 1fr; align-items: center; gap: 18px; }
.score-wrap { position: relative; width: 154px; height: 154px; }
.score-wrap canvas { width: 154px; height: 154px; }
.score-number { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; }
.score-number strong { font-size: 48px; line-height: 1; letter-spacing: -3px; }
.score-number span { margin-top: 5px; color: var(--muted); font-size: 10px; }
.type-chip { display: inline-block; padding: 7px 10px; transform: rotate(-2deg); color: var(--white); background: var(--pink-deep); font-size: 12px; font-weight: 900; box-shadow: 4px 4px 0 var(--pink-line); }
.type-copy h1 { margin: 15px 0 0; font-size: clamp(21px,5.5vw,29px); line-height: 1.35; }
.lead-copy { margin: 24px 0 12px; font-size: 15px; line-height: 1.9; }
.context-line { margin: 0; padding: 12px 14px; border-left: 3px solid var(--blue); color: var(--sub); background: var(--surface); font-size: 11px; line-height: 1.7; }
.signal-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.signal-duo > div { padding: 16px; border: 1px solid var(--pink-line); border-radius: 14px; background: var(--pink-soft); }
.signal-duo > div:last-child { border-color: var(--line); background: var(--surface); }
.signal-duo small, .signal-duo span { display: block; color: var(--sub); font-size: 10px; }
.signal-duo strong { display: block; margin: 7px 0 4px; font-size: 19px; }
.report-next { margin-top: 18px; }
.chart-wrap { margin: 0 -10px; }
.chart-wrap canvas { display: block; width: 100%; height: auto; }
.dimension-list { display: grid; gap: 10px; }
.dimension-item { padding: 14px; border-radius: 13px; background: var(--surface); }
.dimension-item header { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.dimension-item header strong { font-size: 19px; }
.dimension-item p { margin: 6px 0 0; color: var(--sub); font-size: 11px; line-height: 1.65; }
.dimension-item i { display: block; height: 4px; margin-top: 10px; overflow: hidden; border-radius: 9px; background: var(--pink-line); }
.dimension-item i span { display: block; height: 100%; border-radius: inherit; background: var(--pink-deep); }
.section-note { margin: 18px 0 0; color: var(--sub); font-size: 11px; line-height: 1.8; }
.ledger-section { margin-top: 20px; }
.ledger-section h3, .relationship-state h3 { margin: 0 0 10px; font-size: 15px; }
.ledger-section h3 span { display: inline-block; margin-right: 5px; padding: 4px 7px; border-radius: 6px; color: var(--pink-deep); background: var(--pink-soft); font-size: 10px; }
.evidence-list { display: grid; gap: 9px; }
.evidence-item { position: relative; padding: 15px 15px 15px 43px; border: 1px solid var(--line); border-radius: 13px; background: var(--white); }
.evidence-item::before { content: attr(data-order); position: absolute; top: 15px; left: 13px; display: grid; place-items: center; width: 21px; height: 21px; border-radius: 7px; color: var(--white); background: var(--pink-deep); font-size: 9px; font-weight: 800; }
.caution .evidence-item::before { background: var(--orange); }
.watch .evidence-item::before { background: var(--blue); }
.evidence-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-bottom: 6px; }
.evidence-meta strong { font-size: 12px; }
.evidence-meta span { padding: 3px 6px; border-radius: 5px; color: var(--sub); background: var(--surface); font-size: 9px; }
.evidence-item p { margin: 0; color: var(--sub); font-size: 12px; line-height: 1.75; }
.mixed-grid { display: grid; gap: 12px; }
.mixed-card { padding: 18px; border-radius: 15px; background: var(--pink-soft); }
.mixed-card.risk { background: var(--surface); }
.mixed-card small { color: var(--pink-deep); font-size: 10px; font-weight: 800; }
.mixed-card strong { display: block; margin: 9px 0 6px; font-size: 18px; }
.mixed-card p { margin: 0; color: var(--sub); font-size: 12px; line-height: 1.75; }
.report-page blockquote { position: relative; margin: 18px 0; padding: 18px 18px 18px 24px; border-left: 3px solid var(--pink-deep); color: var(--ink); background: var(--white); font-size: 13px; line-height: 1.85; box-shadow: var(--card-shadow); }
.relationship-state { margin-top: 20px; }
#background-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.background-item { padding: 12px; border: 1px dashed var(--pink-line); border-radius: 11px; }
.background-item small { display: block; color: var(--muted); font-size: 9px; }
.background-item strong { display: block; margin-top: 5px; font-size: 12px; }
#type-suggestion { margin: 15px 0 0; color: var(--sub); font-size: 12px; line-height: 1.8; }
.action-card { position: relative; padding: 6px 18px 18px; border: 1px solid var(--pink-line); border-radius: 18px; background: var(--pink-soft); }
.action-card::before { content: "7 DAY SIGNAL PLAN"; position: absolute; top: -12px; right: 16px; padding: 6px 9px; transform: rotate(2deg); color: var(--white); background: var(--pink-deep); font-size: 9px; font-weight: 900; letter-spacing: 1px; }
.action-row { display: grid; grid-template-columns: 55px 1fr; gap: 12px; padding: 18px 0; border-bottom: 1px dashed var(--pink-line); }
.action-row > span { color: var(--pink-deep); font-size: 10px; font-weight: 900; }
.action-row small, .condition-grid small { color: var(--ink); font-size: 12px; font-weight: 900; }
.action-row p, .condition-grid p { margin: 6px 0 0; color: var(--sub); font-size: 12px; line-height: 1.75; }
.action-row.stop { border-bottom: 0; }
.condition-grid { display: grid; gap: 8px; }
.condition-grid > div { padding: 13px; border-radius: 11px; background: var(--white); }
.condition-grid > div:last-child { background: var(--ink); }
.condition-grid > div:last-child small { color: var(--pink-soft); }
.condition-grid > div:last-child p { color: rgba(255,255,255,.72); }

.share-preview { position: relative; width: 100%; margin: 8px auto 18px; overflow: hidden; border-radius: 15px; box-shadow: 0 20px 38px rgba(190,120,140,.18); }
.share-card { position: absolute; top: 0; left: 0; display: flex; flex-direction: column; width: 600px; height: 800px; padding: 30px 34px 24px; overflow: hidden; transform-origin: top left; color: var(--ink); background: radial-gradient(circle at 100% 0,var(--pink-line),transparent 35%),radial-gradient(circle at 0 100%,rgba(68,138,255,.11),transparent 30%),var(--pink-soft); }
.card-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 17px; border-bottom: 2px solid var(--ink); }
.card-head span { font-size: 15px; font-weight: 900; letter-spacing: 1px; }
.card-head small { color: var(--sub); font-size: 12px; }
.share-eyebrow { margin: 22px 0 0; color: var(--pink-deep); font-size: 15px; font-weight: 800; letter-spacing: 1px; }
.share-score-row { display: flex; align-items: center; justify-content: space-between; height: 145px; }
.share-score { display: flex; align-items: baseline; }
.share-score strong { font-size: 116px; line-height: 1; letter-spacing: -8px; }
.share-score span { margin-left: 14px; color: var(--muted); font-size: 18px; }
.share-score-row canvas { width: 130px; height: 130px; }
.share-card h3 { margin: 0; font-size: 40px; line-height: 1.2; letter-spacing: -1px; }
.share-label { margin: 8px 0 16px; color: var(--pink-deep); font-size: 18px; font-weight: 800; }
.share-dimensions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.share-dimension { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 10px 12px; border: 1px solid var(--pink-line); border-radius: 10px; background: rgba(255,255,255,.78); }
.share-dimension span { font-size: 16px; }
.share-dimension strong { font-size: 20px; }
.share-dimension small { grid-column: 1/-1; margin-top: 5px; color: var(--sub); font-size: 15px; line-height: 1.5; }
.share-evidence { margin-top: 15px; padding: 13px 15px; border-left: 4px solid var(--pink-deep); background: var(--white); }
.share-evidence small { color: var(--pink-deep); font-size: 12px; font-weight: 800; }
.share-evidence p { margin: 5px 0 0; font-size: 16px; line-height: 1.55; }
.share-advice { flex: 1; margin: 13px 2px 8px; color: var(--sub); font-size: 16px; line-height: 1.6; }
.r-foot { display: flex; align-items: end; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--pink-line); }
.r-foot span { font-size: 12px; font-weight: 800; }
.r-foot small { color: var(--muted); font-size: 10px; }

@keyframes typing { 0%,60%,100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-2px); } }
@keyframes wave { 0%,100% { transform: scaleY(.55); } 50% { transform: scaleY(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@media (min-width: 700px) {
  .screen { padding-top: 30px; }
  .report-page { padding: 34px 36px 24px; }
  .overview-grid { grid-template-columns: 180px 1fr; }
  .score-wrap, .score-wrap canvas { width: 180px; height: 180px; }
  .mixed-grid { grid-template-columns: 1fr 1fr; }
  .condition-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 380px) {
  .screen { padding-right: 15px; padding-left: 15px; }
  .night-panel { min-height: 342px; padding: 17px; }
  .signal-note { right: 14px; width: 166px; }
  .report-page { padding-right: 18px; padding-left: 18px; }
  .overview-grid { grid-template-columns: 132px 1fr; gap: 12px; }
  .score-wrap, .score-wrap canvas { width: 132px; height: 132px; }
  .score-number strong { font-size: 42px; }
  .type-copy h1 { font-size: 20px; }
  .action-row { grid-template-columns: 49px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
