* { margin:0; padding:0; box-sizing:border-box; }
html { font-size:16px; -webkit-text-size-adjust:100%; }
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
  min-height: 100vh;
  color: #1c1416;
  background: linear-gradient(165deg, #fff5f7 0%, #ffe8ee 45%, #f5d0d8 100%);
}
.page { display:none; }
.page.active { display:block; }
.container { max-width:390px; margin:0 auto; padding:0 20px 44px; position:relative; }

/* ===== 首页 ===== */
.intro-page.active {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 120% 80% at 50% -10%, #ffb3c1 0%, transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 100%, #2a181c 0%, transparent 50%),
    linear-gradient(165deg, #fff5f7 0%, #ffe8ee 45%, #f5d0d8 100%);
  position: relative;
}
.intro-page.active::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .35; z-index: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
}
.intro-page .container { padding-top:28px; padding-bottom:40px; z-index:1; }
.brand { font-size:12px; letter-spacing:.22em; color:#9a4a56; text-align:center; margin-top:4px; opacity:.85; font-weight: bold; }
.hero { margin-top:32px; text-align:center; }
.hero h1 { font-size:36px; font-weight:900; line-height:1.25; letter-spacing:.04em; }
.hero h1 span { display:block; font-size:15px; font-weight:500; letter-spacing:.2em; color:#9a4a56; margin-bottom:12px; }
.split { display:grid; grid-template-columns:1fr 1fr; gap:0; margin:36px 0 10px; position:relative; }
.split::after { content:""; position:absolute; left:50%; top:8%; bottom:8%; width:1px; background:linear-gradient(180deg,transparent,#1c1416,transparent); }
.half { padding:20px 10px; text-align:center; }
.half .k { font-size:12px; letter-spacing:.16em; opacity:.55; margin-bottom:6px; }
.half .v { font-size:22px; font-weight:700; }
.half.sin .v { color:#1c1416; }
.half.vir .v { color:#c04558; }
.metas { display:grid; grid-template-columns:1fr 1fr 1fr; gap:8px; margin:24px 0 16px; }
.mcard { background:rgba(255,255,255,.7); padding:14px 6px; text-align:center; border:1px solid rgba(28,20,22,.06); }
.mcard .lab { font-size:11px; color:#9a6a72; letter-spacing:.04em; margin-bottom:5px; }
.mcard .val { font-size:14px; font-weight:700; color:#1c1416; line-height:1.3; }
.copy { font-size:15px; line-height:1.85; color:#5a4048; text-align:justify; background:rgba(255,255,255,.55); padding:16px; border:1px solid rgba(28,20,22,.06); }
.cta-wrap { margin-top:24px; }
.cta {
  display:block; width:100%; padding:18px; border:none; border-radius:2px;
  background:#1c1416; color:#fff5f7; font-size:17px; font-weight:700; letter-spacing:.16em; cursor:pointer;
}
.more { margin-top:20px; text-align:center; }
.more-label { color:#9a4a56; font-size:14px; font-weight:600; letter-spacing:.08em; padding:8px 12px; }
.more-label::after { content:" ∨"; font-size:12px; }
.more-body {
  margin-top:10px; text-align:left; font-size:14px; line-height:1.8; color:#5a4048;
  background:rgba(255,255,255,.55); padding:16px; border:1px solid rgba(28,20,22,.06);
}
.notice { background:rgba(192,69,88,.07); padding:14px 16px; margin-top:20px; font-size:13px; line-height:1.75; color:#8a5a62; }
.notice b { color:#c04558; font-weight:700; }

/* ===== 答题页 ===== */
.quiz-page.active {
  min-height: 100vh; display: flex; flex-direction: column;
  background: linear-gradient(180deg, #fff8fa 0%, #ffeef2 100%);
}
.quiz-page .container { flex:1; padding-top:28px; width:100%; }
.prog { height:3px; background:rgba(28,20,22,.08); margin-bottom:10px; }
.prog i { display:block; height:100%; background:#c04558; transition:width .3s ease; width:0; }
.qmeta { display:flex; justify-content:space-between; font-size:12px; color:#9a6a72; margin-bottom:28px; letter-spacing:.08em; }
.qtext { font-size:21px; font-weight:700; line-height:1.55; margin-bottom:32px; color:#1c1416; }
.scale-wrap { margin:12px 0; }
.scale-row {
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 2px 12px; position:relative;
}
.scale-row::before {
  content:""; position:absolute; left:10%; right:10%; top:50%; height:1px;
  background:linear-gradient(90deg, rgba(28,20,22,.06), rgba(192,69,88,.25), rgba(28,20,22,.06));
  transform:translateY(-50%); z-index:0;
}
.scale-circle {
  position:relative; z-index:1; display:flex; align-items:center; justify-content:center;
  cursor:pointer; border:none; background:transparent; padding:0;
}
.scale-circle .ring {
  border-radius:50%; border:2px solid rgba(28,20,22,.22); background:rgba(255,255,255,.85);
  transition:all .2s ease; box-shadow:0 2px 8px rgba(28,20,22,.04);
}
.scale-circle:nth-child(1) .ring, .scale-circle:nth-child(5) .ring { width:52px; height:52px; }
.scale-circle:nth-child(2) .ring, .scale-circle:nth-child(4) .ring { width:38px; height:38px; }
.scale-circle:nth-child(3) .ring { width:26px; height:26px; }
.scale-circle.on .ring {
  border-color:#c04558; background:#c04558;
  box-shadow:0 0 0 4px rgba(192,69,88,.16), 0 4px 12px rgba(192,69,88,.25);
}
.scale-circle.option-locked { pointer-events:none; }
.scale-ends { display:flex; justify-content:space-between; font-size:12px; color:#9a6a72; padding:0 2px; letter-spacing:.04em; }
.scale-ends span:last-child { color:#c04558; font-weight:600; }
.choice-options { display:flex; flex-direction:column; gap:14px; margin-bottom:8px; }
.choice-btn {
  padding:18px 18px; border:1.5px solid rgba(28,20,22,.1); background:rgba(255,255,255,.75);
  font-size:16px; color:#1c1416; text-align:left; cursor:pointer; line-height:1.55; transition:all .2s;
}
.choice-btn.on { border-color:#c04558; background:rgba(192,69,88,.1); color:#c04558; font-weight:600; }
.choice-btn.option-locked { pointer-events:none; }
.nav { display:flex; gap:10px; margin-top:28px; padding-bottom:28px; }
.nav button { flex:1; padding:15px; border:none; font-size:15px; font-weight:600; cursor:pointer; }
.nav .back { background:transparent; border:1.5px solid rgba(28,20,22,.15)!important; color:#5a4048; }
.nav .next, .nav .submit { background:#1c1416; color:#fff; }
.nav .submit:disabled { opacity:.45; cursor:not-allowed; }

/* ===== 报告页 ===== */
.result-page.active {
  min-height:100vh;
  background:#1c1416; color:#fff5f7;
}
.result-page .container { padding-top:32px; padding-bottom:52px; }
.result-page .brand { color:#e8a0ab; text-align: center; font-size: 14px; font-weight: bold; letter-spacing: .2em; }
.rtitle { font-size:16px; text-align:center; margin:24px 0 10px; letter-spacing:.12em; color:#e8a0ab; }
.rhero { text-align:center; margin-bottom:12px; }
.rhero h2 { font-size:28px; font-weight:900; line-height:1.35; }
.pair { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:24px 0; }
.card { padding:22px 12px; text-align:center; border:1px solid rgba(255,245,247,.18); }
.card .lab { font-size:11px; letter-spacing:.14em; opacity:.55; margin-bottom:8px; }
.card .name { font-size:28px; font-weight:900; }
.card .sc { font-size:14px; margin-top:6px; opacity:.65; }
.card.sin { background:rgba(255,255,255,.04); }
.card.vir { background:rgba(192,69,88,.25); border-color:rgba(232,160,171,.35); }
.card.vir .name { color:#ffb3c1; }
.easter { color:#ffb3c1; font-size:17px; font-weight:800; line-height:1.45; margin:16px auto 0; text-align:center; }
.bal { text-align:center; font-size:13px; letter-spacing:.08em; opacity:.65; margin:20px 0 28px; }
.sec { margin-top:8px; padding-top:22px; border-top:1px solid rgba(255,245,247,.12); }
.sec h3 { font-size:14px; letter-spacing:.14em; margin-bottom:6px; color:#e8a0ab; }
.sec .sub { font-size:13px; opacity:.45; margin-bottom:14px; }
.chart-wrap { width:100%; height:380px; margin:10px 0 8px; }
.chart-wrap canvas { width:100%!important; height:100%!important; }
.dim-group { font-size:15px; font-weight:800; letter-spacing:.08em; padding:14px 16px; margin-top:22px; }
.dim-group.sin { background:rgba(255,255,255,.05); color:#d4cfc8; }
.dim-group.vir { background:rgba(192,69,88,.18); color:#ffb3c1; margin-top:28px; }
.dim-row { padding:18px 0; border-bottom:1px solid rgba(255,245,247,.08); }
.dim-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; }
.dim-name { font-size:17px; font-weight:700; }
.dim-score { font-size:22px; font-weight:800; }
.dim-row.sin .dim-score { color:#d4cfc8; }
.dim-row.vir .dim-score { color:#ffb3c1; }
.dim-bar { height:5px; background:rgba(255,255,255,.08); border-radius:2px; overflow:hidden; margin-bottom:12px; }
.dim-fill { height:100%; border-radius:2px; transition:width .6s ease; }
.dim-row.sin .dim-fill { background:#8a8680; }
.dim-row.vir .dim-fill { background:#c04558; }
.dim-desc { font-size:14px; color:rgba(255,245,247,.55); line-height:1.75; }
.note-text { font-size:14px; color:rgba(255,245,247,.55); line-height:1.85; margin-bottom:14px; }
.rbtns { display:flex; gap:10px; margin-top:28px; }
.rbtns button { flex:1; padding:16px; border:none; font-size:14px; font-weight:700; letter-spacing:.1em; cursor:pointer; background:#c04558; color:#fff; }
.notice-dark {
  background:rgba(192,69,88,.14); padding:14px 16px; margin-top:24px;
  font-size:13px; line-height:1.75; color:rgba(255,183,193,.85);
}
.notice-dark b { color:#ffb3c1; font-weight:700; }

.welcome-footer {
  display:block!important;
  visibility:visible!important;
  width:100%;
  margin-top:20px;
  text-align:center;
}
.report-footer {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:16px;
  margin-top:28px;
  width:100%;
  box-sizing:border-box;
}
.report-footer button {
  width:100%;
  padding:16px;
  border:none;
  font-size:14px;
  font-weight:700;
  letter-spacing:.1em;
  cursor:pointer;
  background:#c04558;
  color:#fff;
  border-radius: 4px;
}
.report-footer .notice-dark {
  width:100%;
  margin-top:0;
  box-sizing:border-box;
}

@media(max-width:360px){
  .hero h1 { font-size:32px; }
  .chart-wrap { height:320px; }
}

/* Current question/report content, within the existing visual design. */
.history-button { width:100%; padding:13px; margin-top:12px; border:1px solid #9a4a56; background:transparent; color:#9a4a56; cursor:pointer; font-size:14px; }
.quiz-hint { font-size:12px; line-height:1.8; color:#9a6a72; margin-top:20px; }
.nav button:disabled { opacity:.45; cursor:not-allowed; }
.scale-circle { flex-direction:column; width:56px; min-height:96px; justify-content:flex-end; }
.scale-label { display:block; margin-top:12px; min-height:32px; font-size:11px; line-height:16px; color:#5a4048; }
.scale-row { align-items:flex-end; }
.scale-row::before { display:none; }
.dimension-tabs { display:flex; gap:10px; margin-top:16px; }
.dimension-tabs button { flex:1; border:1px solid #9a6a72; padding:12px; background:transparent; color:#e8a0ab; cursor:pointer; }
.dimension-tabs button[aria-selected="true"] { background:#c04558; color:white; border-color:#c04558; }
.dim-desc { margin-top:8px; }
.dimension-more summary { color:#e8a0ab; cursor:pointer; font-size:13px; margin-top:12px; }
.sec h4 { color:#e8a0ab; font-size:15px; margin:16px 0 8px; }
.report-emphasis { color:#ffb3c1; font-size:15px; line-height:1.8; margin:12px 0; }
.pair-overview { margin-top:12px; }
.pair-overview summary { cursor:pointer; color:#9a4a56; font-weight:600; }
.pair-overview p { margin-top:6px; }
dialog { width:min(92vw,440px); max-height:80vh; overflow:auto; margin:auto; padding:24px; border:1px solid #c04558; border-radius:8px; background:#fff5f7; color:#1c1416; }
dialog::backdrop { background:rgba(0,0,0,.65); }
dialog h2 { font-size:22px; margin-bottom:12px; }
dialog p { font-size:13px; line-height:1.8; }
.history-record { display:block; width:100%; text-align:left; padding:14px; margin-top:12px; border:1px solid #e8a0ab; background:#fff; color:#5a4048; line-height:1.8; cursor:pointer; }
