/* ==========================================================================
 *  样式：白色打底 + 粉蓝双色（小红书风格）
 *  浅色主题，移动端优先，为截图传播优化
 * ========================================================================== */
:root {
  /* 主色 */
  --pink: #ff6fa5;
  --pink-d: #ee3f79;
  --pink-l: #ffe4ee;
  --blue: #5aa9f0;
  --blue-d: #2f7fd6;
  --blue-l: #e3f0fd;
  --cream: #fffaf3;

  /* 文字与线 */
  --ink: #3a3442;
  --ink-2: #6b6474;
  --ink-3: #9c96a4;
  --line: #f0e8ef;

  /* 布局 */
  --max: 560px;
  --radius: 18px;
  --shadow: 0 4px 20px rgba(255, 111, 165, .08);
  --shadow-lg: 0 8px 32px rgba(255, 111, 165, .14);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--cream);
  color: var(--ink);
  font: 15px/1.78 "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
  padding-bottom: 84px;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(520px 380px at 10% 8%, rgba(255, 224, 238, .9), transparent 70%),
    radial-gradient(520px 420px at 92% 22%, rgba(224, 240, 255, .9), transparent 70%),
    radial-gradient(600px 400px at 50% 100%, rgba(255, 245, 235, .95), transparent 70%);
}
.wrap { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; padding: 0 14px; }
.screen { display: none; }
.screen.is-active { display: block; animation: fade .34s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.is-hidden { display: none !important; }

/* ---------------- 状态栏 ---------------- */
.statusbar {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--ink-3); padding: 8px 4px 2px;
  font-variant-numeric: tabular-nums;
}

/* ---------------- HERO ---------------- */
.hero {
  position: relative; margin: 6px 0 14px; padding: 24px 18px 26px;
  border-radius: 22px; overflow: hidden;
  background: linear-gradient(135deg, #fff0f6 0%, #ffffff 46%, #eef7ff 100%);
  border: 1px solid #ffe3ef;
  box-shadow: var(--shadow);
}
.hero::after {
  content: ''; position: absolute; left: 50%; top: 12px; bottom: 12px; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 111, 165, .35), transparent);
}
.hero-top { display: flex; align-items: center; justify-content: center; gap: 10px; position: relative; z-index: 2; }
.hero-a, .hero-b { font-size: 26px; font-weight: 800; letter-spacing: .04em; }
.hero-a { color: var(--pink-d); }
.hero-b { color: var(--blue-d); }
.hero-x { font-size: 20px; color: var(--ink-3); }
.hero-ask { text-align: center; margin-top: 12px; font-size: 15px; color: var(--ink-2); }
.hero-badge {
  display: table; margin: 14px auto 0; padding: 4px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: var(--pink-d);
  border: 1px solid #ffd0e2; background: #fff;
}
.hero-main { text-align: center; margin-top: 12px; font-size: 24px; font-weight: 800; color: var(--ink); }
.hero-sub { text-align: center; font-size: 13px; color: var(--ink-3); margin-top: 6px; }

/* ---------------- 卡片 ---------------- */
.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px; margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.card-h { font-size: 15px; font-weight: 700; margin-bottom: 10px; color: var(--ink); }
.muted { color: var(--ink-2); font-size: 13.5px; }
.hl-pink { color: var(--pink-d); font-weight: 600; }
.hl-blue { color: var(--blue-d); font-weight: 600; }

/* ---------------- 授权码门禁 ---------------- */
.gate {
  background: linear-gradient(150deg, #fff2f7, #ffffff 55%, #f0f8ff);
  border: 1.5px solid #ffdcea; border-radius: var(--radius);
  padding: 18px 16px; margin-bottom: 12px; box-shadow: var(--shadow-lg);
}
.gate-h { font-size: 16px; font-weight: 800; color: var(--ink); }
.gate-d { margin: 8px 0 14px; font-size: 13px; color: var(--ink-2); }
.gate-row { display: flex; gap: 8px; }
.gate-row input {
  flex: 1; min-width: 0; padding: 14px 14px; border-radius: 14px;
  font: 600 16px/1 ui-monospace, "SF Mono", Consolas, monospace;
  letter-spacing: .18em; text-transform: uppercase;
  background: #fff; border: 1.5px solid var(--line); color: var(--ink);
}
.gate-row input::placeholder { letter-spacing: .1em; font-weight: 500; color: #c9c2cf; }
.gate-row input:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255,111,165,.14); }
.gate-row button {
  flex: none; padding: 0 20px; border-radius: 14px; border: 0; cursor: pointer;
  background: linear-gradient(135deg, #ff8fb8, #ff5f9c); color: #fff;
  font: 700 15px/1 inherit; box-shadow: 0 6px 16px rgba(255,95,156,.3);
}
.gate-row button:disabled, .gate-row input:disabled { opacity: .6; cursor: default; box-shadow: none; }
.gate-tip { margin-top: 10px; font-size: 12.5px; }
.gate-tip.is-bad { color: var(--pink-d); }
.gate-ok { margin-top: 12px; display: flex; flex-direction: column; gap: 3px; }
.gate-ok-t { font-size: 13.5px; font-weight: 700; color: #2f9e6b; }
.gate-ok-s { font-size: 12px; color: var(--ink-3); font-family: ui-monospace, Consolas, monospace; letter-spacing: .06em; }
.gate-foot { margin-top: 12px; font-size: 12px; color: var(--ink-3); }
.gate.is-done { border-color: #b6e6cf; background: linear-gradient(150deg, #eefaf3, #fff); }
.gate.is-hint { animation: pulse 1.6s ease-in-out 2; }
.cta:disabled {
  background: #efe9f0; color: #b3abb9; box-shadow: none; cursor: default;
}

/* ---------------- 换关过渡 ---------------- */
.round-wrap { text-align: center; padding: 54px 8px 40px; }
.round-badge {
  display: table; margin: 0 auto 18px; padding: 5px 16px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--pink-d);
  background: var(--pink-l); border: 1px solid #ffd0e2;
}
.round-name { font-size: 26px; font-weight: 800; color: var(--ink); }
.round-stat { margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.round-note {
  margin: 20px auto 26px; padding: 14px 16px; max-width: 20em;
  font-size: 13.5px; color: var(--ink-2); line-height: 1.8;
  background: #fff; border: 1px dashed #ffc2da; border-radius: 14px;
}
.round-wrap .cta { max-width: 320px; margin: 0 auto; }

/* ---------------- 题面 ---------------- */
.qhead { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; color: var(--ink-3); }
.qhead span:first-child { color: var(--pink-d); font-weight: 700; }
.bar { height: 5px; background: #f2ecf1; border-radius: 5px; overflow: hidden; margin: 9px 0 10px; }
.bar > i { display: block; height: 100%; width: 0; border-radius: 5px; transition: width .35s ease;
  background: linear-gradient(90deg, var(--pink), var(--blue)); }
.qhint { font-size: 12.5px; color: var(--ink-3); margin-bottom: 16px; }
.qcard { background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 20px 16px 16px; box-shadow: var(--shadow); }
.qcard.anim-in { animation: cardIn .34s cubic-bezier(.22,.9,.3,1); }
.radar-svg.anim-draw path { will-change: stroke-dashoffset; }
@keyframes cardIn { from { opacity: 0; transform: translateY(10px) scale(.99); } to { opacity: 1; transform: none; } }
.qtext { font-size: 20px; font-weight: 700; line-height: 1.5; margin: 0 0 18px; color: var(--ink); }
.opts { display: flex; flex-direction: column; gap: 10px; }
.opt {
  display: flex; align-items: flex-start; gap: 11px; width: 100%; text-align: left;
  padding: 15px; border-radius: 16px; cursor: pointer;
  background: #fff; border: 1.5px solid var(--line);
  color: var(--ink); font: inherit; font-size: 15px; line-height: 1.6;
  box-shadow: 0 2px 10px rgba(58, 52, 66, .03);
  transition: transform .14s ease, border-color .14s, background .14s, box-shadow .14s;
}
.opt:active { transform: scale(.985); }
.opt.is-picked {
  border-color: var(--pink);
  background: linear-gradient(135deg, #fff0f6, #eef7ff);
  box-shadow: var(--shadow-lg);
  animation: pickPop .28s cubic-bezier(.22,1.4,.4,1);
}
@keyframes pickPop { 0% { transform: scale(1); } 45% { transform: scale(1.025); } 100% { transform: scale(1); } }
.opt-dot {
  flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%;
  border: 2px solid #e6dde6; position: relative; transition: border-color .14s;
}
.opt.is-picked .opt-dot { border-color: var(--pink); }
.opt.is-picked .opt-dot::after {
  content: ''; position: absolute; inset: 3px; border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--blue));
}
.qnext { margin-top: 14px; padding: 14px; font-size: 15px; }
.nav-row { display: flex; gap: 10px; margin-top: 18px; }
.ghost {
  flex: 1; padding: 12px; border-radius: 14px; cursor: pointer;
  background: #fff; border: 1.5px solid var(--line); color: var(--ink-2); font: inherit; font-size: 14px;
}
.ghost:disabled { opacity: .4; cursor: default; }

/* ---------------- 结果 ---------------- */
.result-head { text-align: center; padding: 12px 0 4px; }
.r-k { font-size: 12px; color: var(--pink-d); letter-spacing: .24em; font-weight: 600; }
.r-name { font-size: 32px; font-weight: 800; margin: 8px 0 6px; color: var(--ink); }
.r-combo { font-size: 13.5px; color: var(--ink-2); }
.r-one { margin: 14px auto 0; font-size: 15px; color: var(--ink-2); max-width: 24em; }
.r-score-row { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin-top: 16px; }
.r-score { font-size: 42px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, var(--pink-d), var(--blue-d));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.r-score-l { font-size: 12px; color: var(--ink-3); }

.radar-holder { display: flex; justify-content: center; padding: 4px 0 0; }
.radar-svg { width: 100%; max-width: 420px; height: auto; display: block; }
.radar-label { font-weight: 600; }
.radar-label.is-a { fill: #d94c80; }
.radar-label.is-l { fill: #2f7fd6; }
.radar-value { font-weight: 800; }
.radar-value.is-a { fill: #a8305c; }
.radar-value.is-l { fill: #1f5fa0; }

.legend { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.legend-col { border-radius: 14px; padding: 12px; }
.legend-col.is-a { background: var(--pink-l); border: 1px solid #ffd6e6; }
.legend-col.is-l { background: var(--blue-l); border: 1px solid #cfe6fb; }
.legend-h { font-size: 11.5px; margin-bottom: 8px; font-weight: 600; }
.legend-col.is-a .legend-h { color: var(--pink-d); }
.legend-col.is-l .legend-h { color: var(--blue-d); }
.legend-row { display: flex; justify-content: space-between; font-size: 13px; padding: 2.5px 0; color: var(--ink-2); }
.legend-l { min-width: 0; }
.legend-v { color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 700; }

.free-hook {
  text-align: center; font-size: 13.5px; color: var(--pink-d); font-weight: 600;
  background: #fff; border: 1.5px dashed #ffc2da;
  border-radius: 14px; padding: 12px; margin-top: 12px;
}

/* ---------------- 付费墙 ---------------- */
.paywall { margin-top: 14px; padding: 18px 16px 20px; border-radius: var(--radius);
  background: linear-gradient(150deg, #fff2f7, #ffffff 45%, #f0f8ff);
  border: 1.5px solid #ffdcea; box-shadow: var(--shadow-lg); }
.pw-lock { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--ink); }
.pw-lock i { font-style: normal; }
.pw-desc { margin: 10px 0 14px; font-size: 13.5px; color: var(--ink-2); }
.pw-list { margin: 0 0 16px; padding: 0; list-style: none; }
.pw-list li { position: relative; padding-left: 23px; font-size: 13.5px; color: var(--ink-2); margin-bottom: 8px; }
.pw-list li::before {
  content: '✓'; position: absolute; left: 0; top: 4px;
  color: #fff; font-size: 10px; font-weight: 700; line-height: 15px; text-align: center;
  width: 15px; height: 15px; border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--blue));
}
.price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; }
.price-now { font-size: 34px; font-weight: 800; color: var(--pink-d); }
.price-now small { font-size: 16px; font-weight: 700; }
.price-origin { font-size: 13px; color: var(--ink-3); text-decoration: line-through; }
.price-tag { font-size: 11.5px; color: #fff; background: var(--pink); border-radius: 999px; padding: 3px 9px; font-weight: 600; }
.cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 16px; border: 0; border-radius: 999px; cursor: pointer;
  font: 700 17px/1 inherit; color: #fff; letter-spacing: .02em;
  background: linear-gradient(135deg, #ff8fb8, #ff6fa5 45%, #6fb2f5);
  box-shadow: 0 6px 20px rgba(255, 111, 165, .32);
}
.cta:active { transform: scale(.99); }
.cta-note { text-align: center; font-size: 12px; color: var(--ink-3); margin-top: 10px; }
.verify { margin-top: 14px; padding-top: 14px; border-top: 1px dashed #ffd6e6; }
.verify-h { font-size: 13px; color: var(--ink-2); margin-bottom: 9px; }
.verify-row { display: flex; gap: 8px; }
.verify input {
  flex: 1; min-width: 0; padding: 12px; border-radius: 12px; font: inherit; font-size: 14px;
  background: #fff; border: 1.5px solid var(--line); color: var(--ink);
}
.verify input:focus { outline: none; border-color: var(--pink); }
.verify button {
  padding: 12px 20px; border-radius: 12px; border: 0; cursor: pointer;
  background: var(--pink-d); color: #fff; font: 700 14px/1 inherit;
}
.link-btn { display: block; width: 100%; margin-top: 10px; padding: 10px; cursor: pointer;
  background: none; border: 0; color: var(--ink-3); font: inherit; font-size: 12.5px; text-decoration: underline; }

/* 客服信息（付费墙内） */
.contact-box {
  margin-top: 14px; padding: 14px; border-radius: 14px; text-align: center;
  background: #fff; border: 1.5px dashed #ffc2da;
}
.cb-wx {
  font-size: 16px; font-weight: 800; color: var(--pink-d);
  letter-spacing: .02em; user-select: all;
}
.cb-qr { display: block; width: 140px; height: 140px; margin: 12px auto 0; border-radius: 10px; object-fit: cover; }
.cb-note { font-size: 12.5px; color: var(--ink-3); margin-top: 8px; }

/* ---------------- 完整报告 ---------------- */
.report-block { padding: 16px; border-radius: var(--radius); margin-bottom: 12px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.report-block.is-warn { border-color: #ffd9c9; background: linear-gradient(150deg, #fff6f1, #fff); }
.report-block.is-advice { border-color: #d6e9fb; background: linear-gradient(150deg, #f2f9ff, #fff); }
.rb-k { font-size: 11.5px; letter-spacing: .16em; color: var(--pink-d); font-weight: 700; margin-bottom: 6px; }
.report-block.is-warn .rb-k { color: #e07a4f; }
.report-block.is-advice .rb-k { color: var(--blue-d); }
.rb-t { font-size: 18px; font-weight: 800; margin-bottom: 10px; color: var(--ink); }
.report-block p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.cue-list { list-style: none; margin: 4px 0 0; padding: 0; }
.cue-list li { display: flex; gap: 10px; padding: 10px 0; border-top: 1px dashed var(--line); font-size: 14px; color: var(--ink-2); }
.cue-list li:first-child { border-top: 0; }
.cue-list b { flex: none; width: 21px; height: 21px; border-radius: 50%; display: grid; place-items: center;
  font-size: 11px; color: #fff; background: linear-gradient(135deg, var(--pink), var(--blue)); margin-top: 3px; }

/* 完整维度表 */
.dim-table { display: flex; flex-direction: column; gap: 8px; }
.dim-row { display: flex; align-items: center; gap: 9px; font-size: 12.5px; }
.dim-l { flex: none; width: 3.4em; color: var(--ink-2); }
.dim-bar { flex: 1; height: 7px; border-radius: 7px; background: #f4eef3; overflow: hidden; }
.dim-bar > i { display: block; height: 100%; border-radius: 7px; width: 0;
  transition: width .8s cubic-bezier(.22,.9,.3,1); }
.dim-row.is-a .dim-bar > i { background: linear-gradient(90deg, #ffb3ce, var(--pink)); }
.dim-row.is-l .dim-bar > i { background: linear-gradient(90deg, #a9d4fb, var(--blue)); }
.dim-v { flex: none; width: 2em; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }
.report-actions { display: flex; gap: 10px; margin: 4px 0 16px; }
.report-actions .cta { font-size: 15px; padding: 15px; }
.report-actions .ghost { flex: none; width: 104px; border-radius: 999px; }

/* ---------------- 商品条 / 底部栏 ---------------- */
.shopbar {
  display: flex; align-items: center; gap: 10px; padding: 13px 14px; border-radius: 16px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); margin-bottom: 12px;
}
.shopbar .p { font-size: 23px; font-weight: 800; color: var(--pink-d); line-height: 1.1; }
.shopbar .p small { font-size: 12px; color: var(--ink-3); font-weight: 500; }
.shopbar .info { flex: 1; min-width: 0; }
.shopbar .t { font-size: 14px; font-weight: 700; color: var(--ink); }
.shopbar .s { font-size: 11.5px; color: var(--ink-3); }
.shopbar .badge {
  font-size: 10.5px; color: var(--pink-d); font-weight: 600;
  background: var(--pink-l); border-radius: 8px; padding: 4px 8px; white-space: nowrap;
}

.notice { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--ink-3); padding: 10px 4px; }
.notice b { color: var(--ink-2); font-weight: 500; }

.buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  max-width: var(--max); margin: 0 auto; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); backdrop-filter: blur(14px);
}
.buybar .side { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; color: var(--ink-3); }
.buybar .side i { font-size: 19px; font-style: normal; }
.buybar .add {
  flex: 1; padding: 13px; border-radius: 999px; text-align: center; font-size: 15px; font-weight: 600;
  background: var(--pink-l); color: var(--pink-d); border: 0; cursor: pointer;
}
.buybar .buy {
  flex: 1.1; padding: 13px; border-radius: 999px; text-align: center; font-size: 15px; font-weight: 800;
  background: linear-gradient(135deg, #ff8fb8, #ff5f9c); color: #fff; border: 0; cursor: pointer;
  box-shadow: 0 6px 18px rgba(255, 95, 156, .34);
}
body[data-screen="start"] .buybar { display: none; }
.cta.is-pulse { animation: pulse 1.6s ease-in-out 2; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(255, 111, 165, .32); }
  50% { box-shadow: 0 6px 30px rgba(255, 111, 165, .7); }
}

.faq { margin-bottom: 16px; }
.faq-toggle { width: 100%; padding: 14px; border-radius: 16px; cursor: pointer;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
  color: var(--ink-2); font: inherit; font-size: 13.5px; }
.faq-list { display: none; margin-top: 10px; background: #fff; border: 1px solid var(--line);
  border-radius: 16px; padding: 4px 16px 16px; box-shadow: var(--shadow); }
.faq-list.is-open { display: block; }
.faq-list dt { font-size: 13.5px; font-weight: 700; margin-top: 14px; color: var(--ink); }
.faq-list dd { margin: 4px 0 0; font-size: 13px; color: var(--ink-2); }
.disclaimer { font-size: 11.5px; color: var(--ink-3); text-align: center; padding: 8px 4px 20px; line-height: 1.8; }

/* ---------------- 海报弹层 / toast ---------------- */
.modal { position: fixed; inset: 0; z-index: 60; display: none; align-items: center; justify-content: center;
  background: rgba(58, 52, 66, .55); padding: 16px; backdrop-filter: blur(3px); }
.modal.is-on { display: flex; }
.modal-inner { max-width: 420px; width: 100%; text-align: center; }
.modal-inner img { width: 100%; max-height: 76vh; object-fit: contain; border-radius: 16px; box-shadow: var(--shadow-lg); }
.modal-tip { font-size: 13px; color: #fff; margin: 12px 0; }
.toast {
  position: fixed; left: 50%; bottom: 108px; transform: translate(-50%, 14px); z-index: 80;
  max-width: 84vw; padding: 12px 20px; border-radius: 999px; font-size: 13.5px;
  background: rgba(58, 52, 66, .94); color: #fff;
  opacity: 0; pointer-events: none; transition: opacity .24s, transform .24s;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 380px) {
  .hero-a, .hero-b { font-size: 22px; }
  .r-name { font-size: 28px; }
  .legend { grid-template-columns: 1fr; }
}
