/* ============================================================
 * 星芒天赋测评 · 样式表
 * 视觉语言：紫色渐变 + 白色卡片 + 柔和留白
 * ============================================================ */

:root {
  --purple: #6B4FE0;
  --purple-deep: #5A3FD0;
  --purple-light: #A78BFA;
  --purple-pale: #F1EDFF;
  --purple-mid: #D9CBFF;
  --ink: #2B2B3A;
  --ink-2: #5A5A6E;
  --ink-3: #8A8A9E;
  --line: #EFEDF5;
  --bg: #F7F6FB;
  --white: #FFFFFF;
  --green: #3FAE8C;
  --orange: #E0953E;
  --pink: #E06B8C;
  --gray: #A8A8B8;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(107, 79, 224, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

body { max-width: 520px; margin: 0 auto; background: var(--white); min-height: 100vh; }

.hidden { display: none !important; }
.page { display: none; animation: fadeIn .35s ease; }
.page.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- 顶栏 ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 52px; padding: 0 14px; }
.topbar-title { font-size: 16px; font-weight: 600; color: var(--ink); }
.icon-btn { width: 36px; height: 36px; border: none; background: transparent; font-size: 28px; color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.more-btn { font-size: 22px; letter-spacing: 2px; }

/* ---------- 按钮 ---------- */
.btn-primary {
  background: linear-gradient(135deg, #8B6BF0, #6B4FE0);
  color: #fff; border: none; border-radius: 999px;
  padding: 14px 32px; font-size: 16px; font-weight: 600;
  cursor: pointer; box-shadow: 0 6px 18px rgba(107,79,224,.28);
  transition: transform .15s, box-shadow .15s;
}
.btn-primary:active { transform: scale(.97); }
.btn-primary:disabled { background: #D6CCF5; box-shadow: none; cursor: default; }
.btn-primary span { margin-left: 6px; }

/* ============================================================
 * 落地页
 * ============================================================ */
.hero {
  position: relative; overflow: hidden; min-height: 560px;
  background: linear-gradient(160deg, #8E6BF0 0%, #6B4FE0 48%, #5A3FD0 100%);
  color: #fff; padding: 70px 28px 46px;
}
.hero-stars { position: absolute; inset: 0; pointer-events: none; }
.hero-stars i { position: absolute; width: 4px; height: 4px; background: rgba(255,255,255,.7); border-radius: 50%; animation: twinkle 3s infinite ease-in-out; }
@keyframes twinkle { 0%,100% { opacity:.2; transform:scale(.8);} 50% { opacity:1; transform:scale(1.3);} }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .18; }
.orb-1 { width: 220px; height: 220px; background: #C9B8FF; top: -70px; right: -80px; }
.orb-2 { width: 160px; height: 160px; background: #FFB8E0; bottom: 40px; left: -90px; }
.hero-content { position: relative; z-index: 2; text-align: center; }
.hero-badge { display: inline-block; font-size: 13px; padding: 6px 16px; border-radius: 999px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.25); margin-bottom: 26px; letter-spacing: 1px; }
.hero-title { font-size: 30px; line-height: 1.4; font-weight: 700; letter-spacing: 1px; text-shadow: 0 4px 20px rgba(0,0,0,.1); }
.hero-sub { margin-top: 18px; font-size: 14px; opacity: .92; }
.hero-sub2 { margin-top: 6px; font-size: 13px; opacity: .72; }
.hero-btn { margin-top: 34px; min-width: 200px; background: #fff; color: var(--purple-deep); box-shadow: 0 10px 28px rgba(40,20,100,.3); }
.hero-btn:active { transform: scale(.97); }
.hero-trust { margin-top: 20px; font-size: 11px; opacity: .7; display: flex; gap: 8px; justify-content: center; }

.home-body { padding: 28px 20px 40px; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feature-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 16px; box-shadow: var(--shadow); }
.feature-icon { font-size: 28px; margin-bottom: 10px; }
.feature-title { font-size: 15px; font-weight: 600; color: var(--ink); }
.feature-desc { font-size: 12px; color: var(--ink-3); margin-top: 4px; }

.section-label { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 14px; padding-left: 2px; }
.dims-preview { margin-top: 32px; }
.dims-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.dim-mini { text-align: center; padding: 14px 4px; background: var(--white); border-radius: 12px; border: 1px solid var(--line); }
.dim-mini-icon { font-size: 22px; }
.dim-mini-name { font-size: 11px; color: var(--ink-2); margin-top: 6px; }

.cta-block { margin-top: 34px; text-align: center; background: linear-gradient(135deg, #F3EEFF, #EDE7FF); border-radius: 20px; padding: 30px 20px; }
.cta-title { font-size: 19px; font-weight: 700; color: var(--purple-deep); }
.cta-desc { font-size: 13px; color: var(--ink-2); margin: 8px 0 22px; }
.footer-note { text-align: center; font-size: 11px; color: var(--ink-3); line-height: 1.8; margin-top: 34px; }

/* ============================================================
 * 答题页
 * ============================================================ */
.quiz-wrap { min-height: 100vh; display: flex; flex-direction: column; background: var(--white); }
.quiz-progress-area { padding: 20px 20px 12px; border-bottom: 1px solid var(--line); }
.quiz-header { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--ink-2); }
.quiz-qnum b { color: var(--purple); font-size: 17px; }
.quiz-count { color: var(--purple); font-weight: 600; }
.progress-track { height: 5px; background: var(--purple-pale); border-radius: 99px; margin-top: 12px; overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--purple-light), var(--purple)); border-radius: 99px; transition: width .4s ease; }
.autosave { text-align: right; font-size: 11px; color: var(--green); margin-top: 8px; }
.quiz-body { flex: 1; padding: 24px 20px 30px; }
.q-type-tag { display: inline-block; font-size: 11px; color: var(--purple); background: var(--purple-pale); padding: 3px 10px; border-radius: 99px; margin-bottom: 12px; }
.q-title { font-size: 21px; font-weight: 700; line-height: 1.45; color: var(--ink); }
.q-context { margin-top: 16px; background: #F6F3FF; border-radius: 12px; padding: 16px; font-size: 14px; color: var(--ink-2); line-height: 1.75; white-space: pre-line; }
.q-prompt { margin-top: 18px; font-size: 15px; color: var(--ink); font-weight: 500; }
.q-options { margin-top: 18px; display: grid; gap: 12px; }
.q-opt {
  display: flex; align-items: flex-start; gap: 12px; padding: 15px 16px;
  border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer;
  transition: all .18s; background: var(--white);
}
.q-opt:active { transform: scale(.99); }
.q-opt.selected { border-color: var(--purple); background: #F7F4FF; box-shadow: 0 4px 14px rgba(107,79,224,.1); }
.opt-key { flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--purple-pale); color: var(--purple); font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.q-opt.selected .opt-key { background: var(--purple); color: #fff; }
.opt-text { flex: 1; font-size: 14px; color: var(--ink-2); line-height: 1.6; padding-top: 2px; }
.opt-radio { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #D5D0E5; margin-top: 3px; }
.q-opt.selected .opt-radio { border: 6px solid var(--purple); }
.quiz-footer { padding: 14px 20px 24px; display: flex; gap: 12px; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: var(--white); }
.btn-prev { flex: 0 0 100px; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.btn-next { flex: 1; }

/* ============================================================
 * 加载页
 * ============================================================ */
.loading-wrap { min-height: 100vh; background: linear-gradient(160deg, #8E6BF0, #6B4FE0 55%, #4E35BE); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 30px; text-align: center; }
.planet { position: relative; width: 260px; height: 260px; margin-bottom: 40px; }
.planet-rings { position: absolute; inset: 20px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; box-shadow: inset 0 0 0 30px rgba(255,255,255,.04), inset 0 0 0 60px rgba(255,255,255,.03); animation: spin 30s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.planet-core { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-size: 46px; text-shadow: 0 0 30px #fff, 0 0 60px #FFD9FF; animation: pulse 2s infinite ease-in-out; }
@keyframes pulse { 0%,100% { opacity:.85; transform: translate(-50%,-50%) scale(1);} 50% { opacity:1; transform: translate(-50%,-50%) scale(1.12);} }
.planet-dot { position: absolute; width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 14px currentColor; animation: float 4s infinite ease-in-out; }
.d1 { top: 8%; left: 48%; color:#FF9AD5; background:#FF9AD5; }
.d2 { top: 26%; right: 8%; color:#FFD36E; background:#FFD36E; animation-delay:.4s; }
.d3 { bottom: 18%; right: 14%; color:#7BE0FF; background:#7BE0FF; animation-delay:.8s; }
.d4 { bottom: 6%; left: 40%; color:#B9A0FF; background:#B9A0FF; animation-delay:1.2s; }
.d5 { top: 45%; left: 4%; color:#FFB27A; background:#FFB27A; animation-delay:1.6s; }
.d6 { top: 20%; left: 16%; color:#8BFFC7; background:#8BFFC7; animation-delay:2s; }
@keyframes float { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-10px);} }
.loading-title { font-size: 24px; font-weight: 700; }
.loading-sub { margin-top: 12px; font-size: 14px; opacity: .85; }
.loading-track { width: 100%; max-width: 300px; height: 5px; background: rgba(255,255,255,.25); border-radius: 99px; margin-top: 24px; overflow: hidden; }
.loading-fill { height: 100%; width: 0; background: linear-gradient(90deg, #FFD9F0, #fff); border-radius: 99px; transition: width .2s; }
.loading-tip { margin-top: 20px; font-size: 12px; opacity: .6; }

/* ============================================================
 * 报告页
 * ============================================================ */
.report-wrap { padding-bottom: 60px; background: var(--bg); min-height: 100vh; }

/* 报告头 */
.report-hero { background: linear-gradient(160deg, #8E6BF0, #6B4FE0 55%, #5A3FD0); padding: 40px 20px 70px; color: #fff; text-align: center; position: relative; overflow: hidden; }
.report-hero::after { content:''; position:absolute; inset:0; background: radial-gradient(circle at 70% 10%, rgba(255,255,255,.12), transparent 40%); }
.report-hero-inner { position: relative; z-index: 2; }
.report-hero-badge { display: inline-block; font-size: 12px; padding: 5px 14px; border-radius: 99px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.3); margin-bottom: 14px; }
.report-hero-title { font-size: 24px; font-weight: 700; }
.report-hero-sub { font-size: 13px; opacity: .8; margin-top: 8px; }

/* 概览卡（悬浮） */
.overview-card { margin: -48px 16px 0; position: relative; z-index: 3; background: var(--white); border-radius: 20px; padding: 30px 20px 26px; box-shadow: 0 12px 32px rgba(90,63,208,.15); text-align: center; }
.score-ring { width: 150px; height: 150px; margin: 0 auto; position: relative; }
.score-ring svg { transform: rotate(-90deg); }
.score-ring-bg { fill: none; stroke: #EFEAFF; stroke-width: 12; }
.score-ring-fg { fill: none; stroke: url(#ringGrad); stroke-width: 12; stroke-linecap: round; }
.score-ring-num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 38px; font-weight: 800; color: var(--purple); }
.score-ring-num small { font-size: 16px; }
.score-caption { color: var(--ink-3); font-size: 12px; margin-top: 14px; }
.type-chip { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 9px 20px; background: var(--purple-pale); border-radius: 99px; color: var(--purple-deep); font-weight: 700; font-size: 15px; }
.type-chip .mini-icon { font-size: 18px; }

/* 综合超越百分比（概览卡核心钩子） */
.pct-hero { margin-top: 22px; padding: 16px 12px 12px; background: linear-gradient(135deg,#F5F0FF,#FCEFF4); border-radius: 16px; }
.pct-hero-num { font-size: 46px; font-weight: 800; line-height: 1; background: linear-gradient(135deg,#7B5CE8,#E06B8C); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.pct-hero-num small { font-size: 20px; }
.pct-hero-label { font-size: 13px; color: var(--ink); font-weight: 600; margin-top: 8px; }
.pct-hero-rare { font-size: 12px; color: var(--ink-2); margin-top: 6px; }
.pct-hero-rare b { color: #E06B8C; }
.position-chart { margin-top: 14px; padding: 6px 2px 0; }
.top3-strip { margin-top: 16px; padding: 8px 0 4px; }
.overview-text { margin-top: 12px; font-size: 14px; color: var(--ink-2); line-height: 1.85; text-align: left; }

/* 通用报告板块 */
.report-section { margin: 16px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.sec-head { display: flex; align-items: center; gap: 10px; padding: 18px 18px 16px; border-bottom: 1px solid var(--line); }
.sec-icon { width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 17px; background: var(--purple-pale); }
.sec-title { font-size: 16px; font-weight: 700; color: var(--ink); flex: 1; }
.sec-aside { font-size: 11px; color: var(--ink-3); }
.sec-body { padding: 18px; }

/* 雷达图 */
.radar-wrap { text-align: center; padding: 10px 0; }
.radar-wrap svg { max-width: 100%; height: auto; }
.radar-label { font-size: 11px; fill: var(--purple); font-weight: 600; }
.radar-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center; margin-top: 12px; font-size: 11px; color: var(--ink-2); }
.legend-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; }
.legend-green { background: var(--green); }.legend-pink { background: var(--pink); }
.legend-orange { background: var(--orange); }.legend-gray { background: var(--gray); }

/* 维度详情条 */
.dim-row { padding: 16px 0; border-bottom: 1px solid var(--line); }
.dim-row:last-child { border-bottom: none; padding-bottom: 0; }
.dim-row:first-child { padding-top: 0; }
.dim-top { display: flex; align-items: center; gap: 10px; }
.dim-letter { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--pink); color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.dim-name { font-weight: 700; font-size: 15px; color: var(--ink); }
.dim-bar-bg { flex: 1; height: 7px; background: #EFEDF5; border-radius: 99px; overflow: hidden; margin-left: 4px; }
.dim-bar-fill { height: 100%; background: linear-gradient(90deg, var(--purple-light), var(--purple)); border-radius: 99px; }
.dim-score { font-size: 15px; font-weight: 800; color: var(--pink); }
.band-tag { font-size: 11px; padding: 3px 9px; border-radius: 99px; font-weight: 600; white-space: nowrap; }
.band-green { background: #E4F6F0; color: var(--green); }
.band-pink  { background: #FDEBF0; color: var(--pink); }
.band-orange{ background: #FDF1E2; color: var(--orange); }
.band-gray  { background: #F0F0F4; color: var(--gray); }
.dim-chart { margin-top: 10px; }
.dim-desc { margin-top: 10px; font-size: 13px; color: var(--ink-2); line-height: 1.75; }
.dim-desc b { color: var(--ink); }
.pct-line { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.pct-line-label { font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.pct-line-label b { color: #E06B8C; font-size: 14px; }
.pct-line-tag { font-size: 11px; color: var(--purple); font-weight: 600; white-space: nowrap; }

/* 天赋类型解读卡 */
.type-card { text-align: center; padding: 4px 0 2px; }
.type-badge { margin: 0 auto 8px; }
.type-name { font-size: 22px; font-weight: 800; color: var(--ink); }
.type-tags { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.type-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--purple-deep); background: var(--purple-pale); padding: 5px 12px; border-radius: 99px; }
.type-rare { display: inline-block; margin-top: 12px; font-size: 12px; font-weight: 700; color: #fff; background: linear-gradient(135deg,#8B6BF0,#E06B8C); padding: 6px 16px; border-radius: 99px; }
.type-text { margin-top: 16px; font-size: 14px; color: var(--ink-2); line-height: 1.85; text-align: left; }
.highlight-box { margin-top: 16px; padding: 14px 16px; border-radius: 12px; text-align: left; }
.highlight-strength { background: #F5F1FF; }
.highlight-challenge { background: #FDF4E8; margin-top: 10px; }
.highlight-label { font-weight: 700; font-size: 14px; color: var(--ink); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.highlight-box p { font-size: 13px; color: var(--ink-2); line-height: 1.75; }

/* 优势深度解读 / 协同 */
.chart-caption { font-size: 12px; color: var(--ink-3); text-align: center; margin-bottom: 6px; }
.mini-radar { margin-bottom: 14px; }
.deep-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.deep-item:last-child { border-bottom: none; padding-bottom: 0; }
.deep-item:first-child { padding-top: 0; }
.deep-with-gauge { display: flex; align-items: center; gap: 14px; }
.deep-info { flex: 1; }
.deep-name { font-weight: 700; font-size: 14px; color: var(--purple-deep); margin-bottom: 6px; }
.deep-pct { margin-bottom: 6px; }
.deep-text { font-size: 13px; color: var(--ink-2); line-height: 1.8; }
.syn-item { padding: 13px 0; border-bottom: 1px solid var(--line); }
.syn-item:last-child { border-bottom: none; }
.syn-chart { margin-bottom: 8px; }
.syn-text { font-size: 13px; color: var(--ink-2); line-height: 1.75; display: block; }

/* 相似的人 */
.figure-item { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.figure-item:last-child { border-bottom: none; }
.figure-avatar { flex: none; width: 42px; height: 42px; border-radius: 12px; background: #EFF3FF; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.figure-name { font-weight: 700; font-size: 14px; color: var(--ink); }
.figure-desc { font-size: 12px; color: var(--ink-3); margin-top: 2px; }

/* 成长空间 */
.growth-card { padding: 14px 16px; background: #F6FAF8; border-radius: 12px; margin-bottom: 12px; }
.growth-card:last-child { margin-bottom: 0; }
.growth-head { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 14px; color: var(--ink); }
.growth-head-text { flex: 1; }
.growth-title { font-size: 15px; font-weight: 700; color: var(--ink); }
.growth-pct { font-size: 11px; font-weight: 700; color: #fff; background: linear-gradient(135deg,#7B5CE8,#E06B8C); padding: 2px 9px; border-radius: 99px; margin-left: 4px; white-space: nowrap; }
.growth-sub { font-size: 12px; color: var(--ink-3); font-weight: 500; margin-top: 2px; }
.growth-arrow { margin: 10px 0 4px; padding: 6px 4px 0; background: #fff; border-radius: 10px; }
.growth-why { font-size: 13px; color: var(--ink-2); line-height: 1.75; margin-top: 10px; }
.growth-tip { font-size: 13px; color: var(--green); line-height: 1.75; margin-top: 8px; }

/* 职业方向 */
.career-note { font-size: 13px; color: var(--ink-2); line-height: 1.75; margin-bottom: 14px; }
.career-label { font-weight: 700; font-size: 14px; color: var(--ink); margin: 14px 0 10px; display: flex; align-items: center; gap: 6px; }
.career-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.career-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 5px 12px 5px 5px; border-radius: 10px; background: #EDF7F2; color: #2F8C6E; }
.career-tag.caution { background: #FDF4E8; color: var(--orange); }

/* 行动计划 */
.action-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; margin-bottom: 10px; }
.action-card:last-child { margin-bottom: 0; }
.action-short { background: #F5F1FF; }.action-mid { background: #EEF5FF; }.action-long { background: #EDF8F2; }
.action-text { font-size: 13px; color: var(--ink-2); line-height: 1.75; }
.action-text b { color: var(--ink); font-size: 13px; }

/* 闪光时刻：正向肯定 + 分享 */
.shiny-section { margin: 16px; padding: 24px 20px; border-radius: 20px; background: linear-gradient(160deg,#8E6BF0,#6B4FE0 55%,#5A3FD0); color: #fff; position: relative; overflow: hidden; text-align: center; }
.shiny-section::before { content:''; position:absolute; width:180px; height:180px; border-radius:50%; background:rgba(255,255,255,.08); top:-70px; right:-60px; }
.shiny-section::after { content:''; position:absolute; width:120px; height:120px; border-radius:50%; background:rgba(255,184,224,.12); bottom:-50px; left:-40px; }
.shiny-head { font-size: 18px; font-weight: 700; position: relative; z-index: 1; }
.shiny-quote { position: relative; z-index: 1; font-size: 13px; line-height: 1.85; margin-top: 14px; opacity: .95; text-align: left; }
.shiny-stat { position: relative; z-index: 1; margin: 20px 0 6px; padding: 16px; background: rgba(255,255,255,.14); border-radius: 14px; }
.shiny-stat-num { font-size: 40px; font-weight: 800; line-height: 1; }
.shiny-stat-text { font-size: 12px; opacity: .9; margin-top: 8px; line-height: 1.7; }
.shiny-share { position: relative; z-index: 1; width: 100%; margin-top: 14px; padding: 13px; border: none; border-radius: 999px; background: #fff; color: var(--purple-deep); font-size: 15px; font-weight: 700; cursor: pointer; }

/* 免责声明 */
.disclaimer { margin: 16px; padding: 16px; background: #F0EFF4; border-radius: 12px; font-size: 11px; color: var(--ink-3); line-height: 1.8; }
.report-foot { text-align: center; font-size: 11px; color: var(--ink-3); padding: 10px 0 30px; }
.report-date { margin-top: 12px; font-size: 11px; color: var(--ink-3); }
.report-actions { display: flex; gap: 12px; margin: 20px 16px 0; }
.report-actions button { flex: 1; padding: 13px; border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer; }
.btn-outline { border: 1.5px solid var(--purple); background: #fff; color: var(--purple); }
.btn-ghost { border: 1.5px solid var(--line); background: #fff; color: var(--ink-2); }

/* ============================================================
 * 弹窗 / 提示
 * ============================================================ */
.modal-mask { position: fixed; inset: 0; background: rgba(30,20,60,.5); z-index: 100; display: none; align-items: center; justify-content: center; padding: 24px; backdrop-filter: blur(3px); }
.modal-mask.show { display: flex; }
.modal-card { position: relative; width: 100%; max-width: 380px; background: #fff; border-radius: 22px; padding: 34px 24px 26px; text-align: center; animation: popIn .28s ease; }
@keyframes popIn { from { opacity:0; transform: scale(.9) translateY(20px);} to { opacity:1; transform:none;} }
.modal-close { position: absolute; top: 16px; right: 18px; border: none; background: transparent; font-size: 24px; color: var(--ink-3); cursor: pointer; }
.modal-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--purple-pale); display: flex; align-items: center; justify-content: center; font-size: 26px; margin: 0 auto 16px; }
.modal-title { font-size: 20px; font-weight: 700; color: var(--ink); }
.modal-sub { font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.code-input-wrap { position: relative; margin-top: 22px; }
.code-input-wrap input { width: 100%; padding: 14px 60px 14px 18px; border: 1.5px solid #E3DEF2; border-radius: 12px; font-size: 17px; letter-spacing: 3px; text-transform: uppercase; color: var(--ink); outline: none; transition: border .2s; }
.code-input-wrap input:focus { border-color: var(--purple); }
.code-len { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--ink-3); }
.code-hint { text-align: left; font-size: 12px; margin-top: 8px; min-height: 18px; }
.code-hint.ok { color: var(--green); }.code-hint.err { color: #D9534F; }
.notice-box { text-align: left; background: #F7F4FF; border-radius: 12px; padding: 14px 16px; margin-top: 16px; font-size: 12px; color: var(--ink-2); line-height: 1.9; }
.notice-title { color: var(--purple); font-weight: 600; }
.modal-actions { display: flex; gap: 12px; margin-top: 22px; }
.modal-actions button { flex: 1; padding: 12px; border-radius: 999px; font-size: 15px; font-weight: 600; cursor: pointer; }
.btn-cancel { border: 1.5px solid #F0C9CE; background: #fff; color: #D9534F; }

.toast { position: fixed; left: 50%; bottom: 40px; transform: translate(-50%, 20px); background: rgba(40,30,70,.92); color: #fff; padding: 11px 22px; border-radius: 99px; font-size: 13px; opacity: 0; pointer-events: none; transition: all .25s; z-index: 200; max-width: 85%; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 521px) {
  body { box-shadow: 0 0 40px rgba(0,0,0,.06); }
}
