/* ============================================================
   style.css — 浙江省考人岗匹配测评 H5
   移动端优先，375px 设计基准；主题：宣纸 + 浓墨 + 朱砂 + 黛蓝（2026-10-21 换装）
   变量名沿用旧名：navy*=黛蓝系、gold*=朱砂/赭金系（改名会动百处引用，故保留）
   ============================================================ */

:root {
  --navy-deep: #2f4356;   /* 黛青深 */
  --navy: #3f5e7c;        /* 黛蓝 */
  --navy-mid: #4d6d8c;    /* 黛蓝亮一档（按钮/徽章底） */
  --gold: #b08d4a;        /* 赭金 */
  --gold-deep: #a8342a;   /* 朱砂 */
  --gold-light: #f6e3de;  /* 朱砂浅底 */
  --bg: #f8f4ea;          /* 宣纸 */
  --card: #fffdf7;
  --text: #2d2a26;        /* 浓墨 */
  --muted: #8f8880;
  --line: #ddd3c0;
  --warn: #8c2f28;
  --warn-bg: #f9ece5;
  --ok: #1f9d61;
  --radius: 16px;
  --shadow: 0 4px 16px rgba(45, 42, 38, 0.10);
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
}

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

html, body {
  height: 100%;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* ---------------- 屏切换 ---------------- */
.screen {
  display: none;
  min-height: 100vh;
  min-height: 100dvh;
  flex-direction: column;
  animation: screenIn 0.28s ease;
}
.screen.active { display: flex; }
@keyframes screenIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }

button { font-family: inherit; border: none; cursor: pointer; }
img { max-width: 100%; display: block; }

/* ---------------- 通用按钮 ---------------- */
.btn {
  display: inline-block; border-radius: 999px; padding: 12px 28px;
  font-size: 16px; font-weight: 600; line-height: 1.3;
  transition: transform 0.12s ease, opacity 0.12s ease;
}
.btn:active { transform: scale(0.96); }
.btn-lg { padding: 15px 32px; font-size: 17px; }
.btn-block { display: block; width: 100%; }
.btn-primary { background: linear-gradient(135deg, var(--navy-mid), var(--navy)); color: #fff; box-shadow: 0 6px 16px rgba(63, 94, 124, 0.35); }
.btn-gold { background: linear-gradient(135deg, #c05545, var(--gold-deep)); color: #fff; box-shadow: 0 6px 16px rgba(168, 52, 42, 0.30); }
.btn-ghost { background: var(--card); color: var(--navy); border: 1.5px solid #cbbfa4; }
.btn-link { background: none; color: var(--muted); font-size: 14px; text-decoration: underline; padding: 8px; }

/* ---------------- 封面 / 结果 hero（宣纸区，浓墨+朱砂）---------------- */
.cover-hero, .result-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #f8f4ea 0%, #efe8d8 70%, #e9dfc8 100%);
  color: var(--text); text-align: center;
  /* hero 纵向收紧保证 390×844 首屏内 CTA 可见（result-hero 自有覆盖不受影响）*/
  padding: calc(36px + env(safe-area-inset-top)) 24px 24px;
}
.result-hero { padding-top: calc(36px + env(safe-area-inset-top)); padding-bottom: 64px; }

/* 纸韵点（原星空星点 → 宣纸上的淡墨点纹理，DOM 不变） */
.stars { position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, rgba(45,42,38,.10) 50%, transparent 51%),
    radial-gradient(1px 1px at 32% 64%, rgba(45,42,38,.07) 50%, transparent 51%),
    radial-gradient(2px 2px at 55% 15%, rgba(168,52,42,.12) 50%, transparent 51%),
    radial-gradient(1px 1px at 71% 48%, rgba(45,42,38,.08) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 84% 28%, rgba(45,42,38,.10) 50%, transparent 51%),
    radial-gradient(1px 1px at 44% 84%, rgba(45,42,38,.06) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 92% 78%, rgba(168,52,42,.10) 50%, transparent 51%),
    radial-gradient(1px 1px at 20% 88%, rgba(45,42,38,.07) 50%, transparent 51%);
}

.brand-logo { width: 58px; height: 58px; margin: 0 auto 8px; border-radius: 14px; }
.brand-name { font-size: 15px; font-weight: 500; letter-spacing: 2px; color: var(--muted); margin-bottom: 14px; font-family: var(--serif); }
.cover-title { font-size: 34px; font-weight: 800; line-height: 1.35; letter-spacing: 2px;
  font-family: var(--serif); color: var(--text); }
.cover-sub { margin-top: 12px; font-size: 14px; color: #55504a; }
.cover-chips { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip { font-size: 12px; padding: 5px 12px; border-radius: 999px; background: rgba(45,42,38,.06); color: #55504a; border: 1px solid rgba(45,42,38,.14); }
.chip.gold { background: rgba(168, 52, 42, .08); color: var(--gold-deep); border-color: rgba(168, 52, 42, .30); }

/* 封面人格墙已移除（2026-10-06 测前去剧透：结果页起才揭示 8 型） */

.cover-body { padding: 18px 22px 16px; text-align: center; }
.cover-desc { font-size: 14.5px; line-height: 1.85; color: #55504a; text-align: left;
  background: var(--card); border-radius: var(--radius); padding: 16px 16px; box-shadow: var(--shadow); }
.cover-desc b { color: var(--navy-deep); }
#btnStart { margin: 16px auto 10px; min-width: 72%; }
.cover-free { font-size: 12.5px; color: var(--muted); }

/* ---------------- 页脚免责 ---------------- */
.footer { padding: 18px 22px calc(18px + env(safe-area-inset-bottom)); font-size: 11px; line-height: 1.7; color: #b0a894; text-align: center; }

/* ---------------- 答题 ---------------- */
.quiz-header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 10px;
  padding: calc(10px + env(safe-area-inset-top)) 14px 10px; background: rgba(248, 244, 234, 0.96); backdrop-filter: blur(6px); }
.btn-back { background: none; color: var(--navy); font-size: 15px; font-weight: 600; padding: 4px 6px; min-width: 72px; text-align: left; }
.progress { flex: 1; height: 8px; background: #e7dfc9; border-radius: 999px; overflow: hidden; }
.progress-bar { height: 100%; width: 0%; border-radius: 999px; background: linear-gradient(90deg, var(--gold), var(--gold-deep)); transition: width 0.25s ease; }
.progress-num { font-size: 13px; font-weight: 600; color: var(--muted); min-width: 100px; text-align: right; white-space: nowrap; }
.progress-num b { color: var(--gold-deep); font-weight: 800; }

.quiz-banner { margin: 12px 18px 0; padding: 12px 16px; border-radius: 12px; text-align: center; font-size: 14px; font-weight: 700; color: var(--navy-deep);
  background: linear-gradient(135deg, #f6efdc, #f0e6cc); border: 1px dashed #cbb98d; line-height: 1.6; }
.quiz-banner small { font-weight: 400; color: var(--muted); }

.question-card { flex: 1; padding: 18px 18px 32px; }
.q-emoji { font-size: 36px; line-height: 1.2; margin-bottom: 8px; }
.question-tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--gold-deep);
  background: var(--gold-light); border-radius: 6px; padding: 3px 10px; margin-bottom: 12px; }
.question-title { font-size: 20px; font-weight: 700; line-height: 1.6; margin-bottom: 22px; white-space: pre-line; font-family: var(--serif); }

.options { display: flex; flex-direction: column; gap: 12px; }
.option {
  display: flex; gap: 12px; align-items: flex-start; text-align: left;
  background: var(--card); border: 2px solid var(--line); border-radius: 14px;
  padding: 15px 16px; font-size: 15px; line-height: 1.65; color: var(--text);
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.option:active { transform: scale(0.985); }
.option .badge { flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px; background: #f1ecdd;
  color: var(--navy); font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.option.selected { border-color: var(--gold-deep); background: var(--gold-light); }
.option.selected .badge { background: var(--gold-deep); color: #fff; }

/* 选后反馈句（echo）：选中后展开"行动+结果"，读完再进下一题 */
.option-echo {
  padding: 11px 14px;
  border-left: 3px solid var(--gold-deep);
  border-radius: 10px; background: #f9efec;
  font-size: 13.5px; line-height: 1.75; color: #7a4038;
  animation: echoIn 0.25s ease;
}
@keyframes echoIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* 开场指导语（quiz 屏第 1 题，赭金系与信息转场 banner 区分） */
.intro-banner { background: linear-gradient(135deg, #faf3e2, #f2ead2); border: 1px dashed var(--gold); }
.intro-banner b { color: #7d5f27; }
.intro-banner small { display: block; margin-top: 4px; }

/* ---------------- 生成中（黛青深底，节奏对比） ---------------- */
#screen-loading { align-items: center; justify-content: center; background: linear-gradient(160deg, #2f4356, #3f5e7c); color: #fff; }
.loading-box { text-align: center; }
.loading-star { font-size: 52px; color: #d9c08a; animation: spinStar 1.6s linear infinite; display: inline-block; }
@keyframes spinStar { to { transform: rotate(360deg); } }
.loading-text { margin-top: 18px; font-size: 17px; font-weight: 600; letter-spacing: 1px; }
.loading-sub { margin-top: 8px; font-size: 12.5px; color: #c9d5df; }

/* ---------------- 结果页 ---------------- */
.result-body { padding: 0 16px 8px; margin-top: -36px; position: relative; }
.result-label { font-size: 13px; color: var(--muted); letter-spacing: 3px; }
.persona-emoji { font-size: 60px; margin: 12px 0 4px; }
.persona-name { font-size: 40px; font-weight: 800; letter-spacing: 4px; color: var(--gold-deep); font-family: var(--serif); }
.persona-full { margin-top: 6px; font-size: 16px; color: var(--navy); font-weight: 600; }
.persona-tagline { margin-top: 8px; font-size: 13.5px; color: var(--muted); }
/* 人格图鉴编号徽章（8 型收集钩子，hero 内） */
.persona-codex { margin-top: 12px; display: inline-block; font-size: 11.5px; letter-spacing: 2px; color: var(--gold-deep);
  background: rgba(168, 52, 42, 0.08); border: 1px solid rgba(168, 52, 42, 0.32); border-radius: 999px; padding: 4px 14px; }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-bottom: 14px; }

.main-rec-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.rank-badge { font-size: 12px; font-weight: 700; color: #fff; background: var(--navy); border-radius: 6px; padding: 3px 10px; }
.pct { font-size: 22px; font-weight: 800; color: var(--gold-deep); }
.pct small { font-size: 12px; font-weight: 600; }
.main-rec h3 { font-size: 20px; font-weight: 800; color: var(--navy-deep); font-family: var(--serif); }
.main-rec-reason { margin-top: 8px; font-size: 13.5px; line-height: 1.8; color: #55504a; }

.pos-stat { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: #f1ecdd; display: flex; align-items: baseline; gap: 8px; }
.pos-stat b { font-size: 26px; color: var(--navy); font-weight: 800; }
.pos-stat span { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
/* 真实报录比均值钩子（简版页岗位卡内一行，均值免费露） */
.ratio-hook { display: block; margin-top: 6px; padding-top: 6px; border-top: 1px dashed #d8cdb4; font-style: normal;
  font-size: 12.5px; color: var(--warn); }
.ratio-hook b { font-weight: 800; font-size: 14.5px; }

/* 锁定卡 */
.locked-card { position: relative; overflow: hidden; }
.locked-head { font-size: 15.5px; font-weight: 800; margin-bottom: 10px; }
.locked-head small { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); margin-top: 3px; line-height: 1.6; }
.locked-list { list-style: none; font-size: 13.5px; color: #55504a; line-height: 1.6; }
.locked-list li { padding: 7px 0 7px 22px; position: relative; }
.locked-list li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-deep); font-weight: 800; }
.gift-bar { background: #f8f1e0; border: 1px dashed var(--gold-deep); border-radius: 10px; padding: 10px 10px 6px; margin: 12px 0; }
.gift-head { font-weight: 800; font-size: 13.5px; color: #8c4a3f; margin: 0 2px 8px; }
/* 大礼包：卡片网格「资料节选墙」——一行 2 张，每卡=朱砂标题条（醒目标注页面名）+ 1:1 页面截图；
   截图 emoji 占位打底、真图（gift-{序号}-1.jpg）加载成功后覆盖 */
.gift-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.g-card { border: 1px solid #e3d5b3; border-radius: 10px; overflow: hidden; background: #fffdf6;
  box-shadow: 0 1px 4px rgba(90, 60, 20, 0.06); }
.g-card-head { display: flex; align-items: center; justify-content: center; gap: 4px;
  background: var(--gold-deep); color: #fff8ec; font-size: 12.5px; font-weight: 700;
  padding: 6px 4px; white-space: nowrap; overflow: hidden; }
.g-card-head i { font-style: normal; font-size: 13px; flex: none; }
.g-card-img { position: relative; aspect-ratio: 1/1;
  background: linear-gradient(150deg, #f4ead2, #eaddba); display: flex; align-items: center; justify-content: center; }
.g-card-img i { font-style: normal; font-size: 22px; opacity: 0.9; }
.g-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gift-tail { text-align: center; font-size: 11.5px; color: #a08c5c; margin-top: 2px; }
.locked-blur { margin-top: 14px; height: 84px; border-radius: 10px;
  background: linear-gradient(180deg, rgba(168,52,42,0.10), var(--card));
  filter: blur(5px); -webkit-filter: blur(5px);
  background-image: repeating-linear-gradient(180deg, #f0ece1 0 12px, #fffdf7 12px 24px); }
#btnUnlock { margin-top: 16px; }
#btnUnlock:disabled { opacity: 0.55; pointer-events: none; }
.paid-unlock-box { margin-top: 16px; text-align: center; }
.paid-unlock-code {
  display: block; width: 100%; box-sizing: border-box;
  padding: 14px 12px; border-radius: 12px; border: 1.5px dashed var(--gold-deep);
  background: #fff8ec; color: #8c4a3f; font-size: 18px; font-weight: 800;
  letter-spacing: 0.06em; cursor: pointer; font-family: inherit;
}
.paid-unlock-code:active { background: #f3e6d0; }
.paid-unlock-hint { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
#paidZhejiangLink { margin-top: 12px; }
.deduct-note { margin-top: 10px; text-align: center; font-size: 12px; color: var(--warn); }
.deduct-note.center { text-align: center; }

/* 免费路径 */
.free-head { font-weight: 800; font-size: 15px; margin-bottom: 4px; }
.free-desc { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.gzh-card { background: linear-gradient(135deg, #3f5e7c, #51708e) !important; }
.gzh-card h3 { color: #cfd9e6; }

.row-actions { text-align: center; padding: 6px 0 2px; }

/* ---------------- 解锁页 ---------------- */
.sub-header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 8px;
  padding: calc(10px + env(safe-area-inset-top)) 14px 10px; background: rgba(248, 244, 234, 0.96); backdrop-filter: blur(6px);
  font-weight: 700; font-size: 16px; color: var(--text); }
.sub-header span { flex: 1; text-align: center; margin-right: 72px; }
.gold-header { background: linear-gradient(135deg, #2f4356, #3f5e7c); color: #fff; }

.unlock-body { padding: 22px 18px 8px; display: flex; flex-direction: column; }
.price-tag { align-self: center; font-size: 40px; font-weight: 800; color: var(--gold-deep); }
.price-tag::before { content: "¥"; font-size: 22px; }
.gift-banner { align-self: center; font-size: 13px; font-weight: 700; color: var(--gold-deep);
  background: rgba(168, 52, 42, 0.07); border: 1px solid rgba(168, 52, 42, 0.35);
  border-radius: 999px; padding: 5px 14px; margin: 6px 0 4px; }
.unlock-sub { text-align: center; font-size: 13px; color: var(--muted); margin: 4px 0 18px; }
/* wxpay 模式下「支付遇到问题？走人工通道」小链接（manual 模式保持隐藏） */
.manual-link { text-align: center; margin: 0 0 8px; }
.manual-link .btn-link { font-size: 12px; padding: 4px; }

.steps { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.step { display: flex; gap: 12px; align-items: center; background: var(--card); border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow); }
.step i { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; font-style: normal; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.step p { font-size: 14px; font-weight: 600; line-height: 1.5; }
.step small { font-weight: 400; color: var(--muted); }

.qr-row { display: flex; gap: 14px; margin-bottom: 18px; }
.qr-item { flex: 1; background: var(--card); border-radius: 14px; box-shadow: var(--shadow); padding: 14px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.qr-item img { width: 132px; height: 132px; border-radius: 8px; border: 1px solid var(--line); }
.qr-item span { font-size: 12.5px; color: var(--muted); }

.code-input-row { display: flex; gap: 10px; }
.code-input-row input { flex: 1; border: 2px solid var(--line); border-radius: 12px; padding: 12px 16px;
  font-size: 18px; letter-spacing: 4px; font-weight: 700; text-align: center; outline: none; background: var(--card); }
.code-input-row input:focus { border-color: var(--gold-deep); }
.code-msg { min-height: 22px; margin-top: 10px; text-align: center; font-size: 13px; color: var(--warn); }
.code-msg.ok { color: var(--ok); }
.shake { animation: shake 0.4s; }
@keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-7px); } 75% { transform: translateX(7px); } }

/* ---------------- 完整报告 ---------------- */
.full-body { padding: 16px 14px 8px; }
.profile-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 16px; overflow: hidden; }
.pc-head { position: relative; padding: 16px 18px 14px; color: #fff;
  background: linear-gradient(135deg, var(--navy-mid), var(--navy-deep)); }
.pc-head.top1 { background: linear-gradient(135deg, var(--gold-deep), #822420); }
.pc-head .pc-rank { position: absolute; top: 0; right: 0; font-size: 11px; font-weight: 700; background: rgba(255,255,255,.2); padding: 4px 12px; border-radius: 0 0 0 12px; }
.pc-head-row { display: flex; align-items: center; gap: 12px; }
.pc-emoji { font-size: 40px; }
.pc-name { font-size: 20px; font-weight: 800; font-family: var(--serif); }
.pc-persona { font-size: 12.5px; opacity: 0.85; margin-top: 2px; }
.pc-pct { margin-left: auto; font-size: 26px; font-weight: 800; color: #eed9a6; }
.pc-tagline { margin-top: 8px; font-size: 12.5px; opacity: 0.9; }
.pc-body { padding: 16px 18px 18px; }

.sec-title { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 800; color: var(--navy-deep); margin: 16px 0 10px; font-family: var(--serif); }
.sec-title:first-child { margin-top: 0; }
.sec-title::before { content: ""; width: 4px; height: 14px; border-radius: 2px; background: var(--gold-deep); }
.sec-title .cat { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--muted); background: #f1ecdd; padding: 2px 8px; border-radius: 6px; }

.reason-list { font-size: 13.5px; color: #4a463f; line-height: 1.85; }
.reason-list li { list-style: none; padding-left: 18px; position: relative; }
.reason-list li::before { content: "·"; position: absolute; left: 4px; font-weight: 900; color: var(--gold-deep); }

.day-list { border-left: 2px dashed #d8cdb4; margin-left: 6px; padding-left: 16px; font-size: 13.5px; color: #4a463f; line-height: 1.7; }
.day-list li { list-style: none; position: relative; padding: 6px 0; }
.day-list li::before { content: ""; position: absolute; left: -21px; top: 13px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-deep); }

.warn-box { background: var(--warn-bg); border-radius: 12px; padding: 12px 14px; font-size: 13px; color: var(--warn); line-height: 1.8; }
.warn-box b { display: block; margin-bottom: 4px; font-size: 13.5px; }

.kv { font-size: 13px; line-height: 1.9; color: #4a463f; }
.kv b { color: var(--navy-deep); }

.exam-list { font-size: 13px; color: #55504a; line-height: 1.8; background: #f5f1e6; border-radius: 10px; padding: 10px 14px; }
.exam-list li { list-style: none; }

.tip-list { font-size: 13px; color: #4a463f; line-height: 1.85; }
.tip-list li { list-style: none; padding-left: 20px; position: relative; }
.tip-list li::before { content: "→"; position: absolute; left: 0; color: var(--navy); font-weight: 700; }

.pos-example { border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; margin-bottom: 9px; font-size: 13px; line-height: 1.65; }
.pos-example .pe-head { display: flex; justify-content: space-between; gap: 8px; font-weight: 700; color: var(--navy-deep); }
.pos-example .pe-region { flex-shrink: 0; font-size: 11px; color: var(--gold-deep); background: var(--gold-light); border-radius: 5px; padding: 1px 7px; align-self: center; }
.pos-example .pe-brief { color: var(--muted); font-size: 12px; margin-top: 3px; }
.pos-example .pe-comp { margin-top: 5px; }

/* 简版页人格深度解读（MBTI 式情绪价值回馈） */
.reading-card .rc-head, .dim-card .rc-head { font-size: 13px; font-weight: 800; color: var(--navy-deep); margin-bottom: 10px; letter-spacing: 0.5px; }
/* 简版页人格深度解读（文章式自然段，无小标题） */
.reading-card p { font-size: 14px; line-height: 1.9; color: #4a463f; margin: 0 0 12px; line-break: strict; text-align: justify; }
.reading-card p:last-child { margin-bottom: 0; }

/* 七维能力雷达图（简版页，MBTI 式可视化）：朱砂面=你的分，黛蓝虚线=Top1 方向理想值 */
.dim-radar { margin: -2px auto 0; }
.dim-radar svg { display: block; width: 100%; max-width: 340px; margin: 0 auto; }
.dim-radar text { font-size: 11px; fill: #55504a; }
.radar-mine { fill: url(#dimGold); stroke: var(--gold-deep); stroke-width: 2; stroke-linejoin: round; }
.radar-ideal { fill: none; stroke: var(--navy); stroke-width: 1.5; stroke-dasharray: 5 4; stroke-linejoin: round;
  opacity: 0; animation: radarFade 0.4s ease 0.3s forwards; }
.radar-dot { fill: var(--card); stroke: var(--gold-deep); stroke-width: 2; }
.radar-mine, .radar-dot { transform-box: view-box; transform-origin: center; animation: radarIn 0.55s ease-out backwards; }
@keyframes radarIn { from { transform: scale(0.2); opacity: 0; } }
@keyframes radarFade { to { opacity: 1; } }
.dim-legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 16px; font-size: 11.5px; color: var(--muted); margin: 4px 0 12px; }
.dim-legend i { display: inline-block; width: 14px; height: 9px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.dim-legend .lg-mine { background: linear-gradient(90deg, var(--gold), var(--gold-deep)); }
.dim-legend .lg-ideal { background: none; border: 1.5px dashed var(--navy); height: 8px; }
.dim-nums { display: flex; flex-wrap: wrap; gap: 7px 12px; padding-top: 11px; border-top: 1px dashed var(--line); }
.dim-num { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.dim-num b { font-size: 13.5px; font-weight: 800; color: var(--navy); }
.dim-num i { font-style: normal; font-size: 10.5px; color: #b3aa96; }

/* 竞争标记：真实报录比按数值分档配色，估算等级灰（数据语义色，保留） */
.comp-tag { display: inline-block; font-size: 11px; font-weight: 700; border-radius: 5px; padding: 1px 7px; flex-shrink: 0; }
.comp-low { color: #1f9d61; background: #e3f5ec; }
.comp-mid { color: #b07a00; background: #fdf3d7; }
.comp-high { color: #c0392b; background: #fbe7e4; }
.comp-est { color: var(--muted); background: #f1ecdd; font-weight: 600; }

/* 低竞争推荐一节 */
.lowcomp .lowcomp-list { margin: 0; }
.lowcomp .lc-item { border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; margin-bottom: 9px; font-size: 13px; line-height: 1.65; }
.lowcomp .lc-head { display: flex; justify-content: space-between; gap: 8px; font-weight: 700; color: var(--navy-deep); align-items: center; }
.lowcomp .lc-brief { color: var(--muted); font-size: 12px; margin-top: 3px; }
.interview-rule, .second-chance { margin-top: 4px; font-size: 12px; color: var(--muted); background: #f1ecdd; border-radius: 10px; padding: 10px 12px; line-height: 1.7; }

/* 报考路线（完整报告）：主攻 / 保底 / 留意 三步，低竞争榜之后、咨询卡之前 */
.career-route .cr-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.career-route .cr-item:last-child { border-bottom: none; padding-bottom: 0; }
.career-route .cr-item:first-of-type { padding-top: 0; }
.career-route .cr-item i { font-style: normal; font-size: 20px; line-height: 1.3; }
.career-route .cr-item b { font-size: 14px; font-weight: 800; color: var(--navy-deep); }
.career-route .cr-item p { font-size: 12.5px; color: #55504a; line-height: 1.75; margin-top: 4px; }
.career-route .cr-pos { margin-top: 6px; font-size: 12.5px; font-weight: 600; color: #4a463f; }
.career-route .cr-pos .comp-tag { margin-left: 6px; }

.action-list { font-size: 13.5px; color: #4a463f; line-height: 1.9; }
.action-list li { list-style: none; padding-left: 24px; position: relative; }
.action-list li::before { content: "☐"; position: absolute; left: 0; color: var(--navy); }

/* 第二赛道：事业编统考卡（完整报告，报考路线之后） */
.sydw-lead { font-size: 13px; color: #55504a; line-height: 1.75; margin-bottom: 10px; }

/* 1v1 咨询卡 */
.consult-card { background: linear-gradient(135deg, #5a4034, #6d4c3f); color: #f4e9dc; border-radius: var(--radius); padding: 18px; margin: 4px 0 14px; }.consult-card h3 { font-size: 17px; margin-bottom: 8px; color: #eed9a6; font-family: var(--serif); }
.consult-card p { font-size: 12.5px; line-height: 1.8; opacity: 0.92; }
.consult-card .btn { margin-top: 14px; background: linear-gradient(135deg, #c05545, var(--gold-deep)); color: #fff; }

/* ---------------- 分享页 ---------------- */
.share-body { padding: 20px 22px 8px; display: flex; flex-direction: column; align-items: center; }
/* 必须是原生 img，并允许系统长按呼出「保存图片」（微信内） */
#posterImg {
  width: 100%; max-width: 340px; border-radius: 14px;
  box-shadow: 0 8px 30px rgba(45, 42, 38, 0.22);
  -webkit-touch-callout: default;
  -webkit-user-select: none; user-select: none;
  pointer-events: auto;
}
.share-tip { margin: 12px 0 12px; font-size: 13.5px; color: var(--muted); text-align: center; }
#btnShareBack2 { margin-bottom: 8px; }

/* ---------------- 弹层 ---------------- */
.modal-mask { position: fixed; inset: 0; z-index: 100; background: rgba(45, 42, 38, 0.5);
  display: flex; align-items: center; justify-content: center; padding: 28px; }
.modal { background: var(--card); border-radius: 18px; padding:  24px 20px; width: 100%; max-width: 330px; text-align: center; }
.modal h3 { font-size: 17px; margin-bottom: 10px; }
.modal p { font-size: 13.5px; color: var(--muted); line-height: 1.7; margin-bottom: 16px; }
.modal-btns { display: flex; gap: 10px; }
.modal-btns .btn { flex: 1; }
.qr-modal img { width: 200px; height: 200px; margin: 6px auto; border: 1px solid var(--line); border-radius: 10px; }
.paid-unlock-modal .paid-modal-label {
  margin: 4px 0 6px; font-size: 13px; color: var(--muted); letter-spacing: 0.04em;
}
.paid-unlock-modal .paid-modal-code {
  display: block; width: 100%; box-sizing: border-box;
  margin: 0 0 10px; padding: 14px 12px; border-radius: 12px;
  border: 1.5px dashed var(--gold-deep); background: #fff8ec;
  color: #8c4a3f; font: inherit; font-size: 22px; font-weight: 800; letter-spacing: 0.12em;
  word-break: break-all; text-align: center; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.paid-unlock-modal .paid-modal-code:active { background: #f3e6d0; }
.paid-unlock-modal .paid-modal-hint {
  margin: 0 0 16px; font-size: 12.5px; color: var(--muted); line-height: 1.6;
}
.paid-unlock-modal #paidModalZhejiangBtn { margin-top: 0; }
.paid-unlock-modal .paid-modal-close { margin-top: 14px; }
.paid-unlock-modal .paid-phone-label {
  display: block; margin: 0 0 6px; font-size: 13px; color: var(--muted);
}
.paid-unlock-modal .paid-phone-input {
  display: block; width: 100%; box-sizing: border-box;
  margin: 0 0 12px; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; font: inherit; font-size: 16px;
  color: var(--ink); letter-spacing: 0.04em;
}
.paid-unlock-modal .paid-sms-row {
  display: flex; gap: 8px; align-items: stretch; margin-bottom: 12px;
}
.paid-unlock-modal .paid-sms-input { flex: 1; margin-bottom: 0; }
.paid-unlock-modal .paid-sms-send {
  flex: 0 0 auto; min-width: 7.5em; padding: 0 12px; white-space: nowrap;
  font-size: 13px;
}
.paid-unlock-modal .paid-sms-send:disabled {
  opacity: 0.55; cursor: not-allowed;
}
.paid-unlock-modal .paid-modal-error {
  margin: 0 0 12px; font-size: 12.5px; color: #b54a3c; line-height: 1.5;
}

.toast { position: fixed; left: 50%; bottom: 18%; transform: translateX(-50%); z-index: 200;
  background: rgba(45, 42, 38, 0.92); color: #fff; font-size: 14px; padding: 10px 22px; border-radius: 999px;
  animation: toastIn 0.25s ease; max-width: 80%; text-align: center; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------------- 解锁页信任条（回码预期 + 社会证明） ---------------- */
.trust-note { margin: 14px 4px 0; padding: 11px 13px; border-radius: 12px;
  background: #f1ecdd; border: 1px solid #e3d9c2; font-size: 12.5px; color: #55504a; line-height: 1.75; }
.trust-note b { color: var(--navy-deep); }
.trust-note .tn-count { display: block; margin-top: 4px; font-weight: 700; color: var(--gold-deep); }

/* ---------------- 简版页：故事版对照条 ---------------- */
.story-echo-card { padding: 13px 15px; background: linear-gradient(150deg, #f8f1e0, #f2e8d2);
  border: 1px dashed var(--gold); }
.story-echo-card .se-row { display: flex; align-items: center; justify-content: center; gap: 8px;
  flex-wrap: wrap; font-size: 14px; font-weight: 700; color: var(--navy-deep); }
.story-echo-card .se-row em { font-style: normal; color: var(--gold-deep); }
.story-echo-card .se-note { margin-top: 5px; text-align: center; font-size: 12px; color: #7d5f27; }

/* ---------------- 完整报告：8 型全景匹配条 ---------------- */
.pan-card .pan-list { margin-top: 4px; }
.pan-card .pan-row { display: flex; align-items: center; gap: 10px; padding: 5.5px 0; }
.pan-card .pan-emoji { flex-shrink: 0; width: 26px; font-size: 17px; text-align: center; }
.pan-card .pan-name { flex-shrink: 0; width: 118px; font-size: 12.5px; color: #55504a; line-height: 1.4; }
.pan-card .pan-name b { display: block; font-size: 13px; color: var(--text); }
.pan-card .pan-bar { flex: 1; height: 10px; border-radius: 999px; background: #efe9da; overflow: hidden; }
.pan-card .pan-bar i { display: block; height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, #c4bda9, #a89a7c); transition: width 0.7s ease; }
.pan-card .pan-pct { flex-shrink: 0; width: 40px; text-align: right; font-size: 12.5px;
  font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.pan-card .pan-row.top .pan-name, .pan-card .pan-row.top .pan-pct { color: var(--gold-deep); }
.pan-card .pan-row.top .pan-bar i { background: linear-gradient(90deg, var(--gold), var(--gold-deep)); }
.pan-card .pan-foot { margin-top: 10px; padding-top: 9px; border-top: 1px dashed #e0d6bd;
  font-size: 11.5px; color: var(--muted); line-height: 1.6; }

/* ---------------- 封面：入口卡（2026-10-06 起单入口主推 16 题测评，盲盒版入口下线）---------------- */
.entry-cards { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 18px; }
.entry-card { display: flex; flex-direction: column; align-items: center; gap: 6px;
  justify-self: stretch; width: 100%; height: 100%;   /* button 在 grid 里默认不撑满，显式拉伸保证两卡等宽等高 */
  padding: 18px 10px 14px; border-radius: var(--radius); text-align: center;
  text-decoration: none; font-family: inherit; cursor: pointer;
  -webkit-tap-highlight-color: transparent; }
.entry-card .ec-tag { font-size: 11px; font-weight: 700; letter-spacing: 1px;
  padding: 3px 10px; border-radius: 999px; }
.entry-card .ec-name { font-size: 15px; font-weight: 800; line-height: 1.35; }
.entry-card .ec-sub { font-size: 11.5px; line-height: 1.65; color: #d3dde8; }
.entry-card .ec-go { font-size: 12.5px; font-weight: 700; margin-top: 4px; }
.ec-quiz { background: linear-gradient(135deg, var(--navy-mid), var(--navy)); border: 1.5px solid transparent; }
.ec-quiz .ec-tag { background: rgba(255, 255, 255, 0.14); color: #d6e0ea; }
.ec-quiz .ec-name { color: #ffffff; }
.ec-quiz .ec-go { color: #d6e0ea; }
.entry-card:active { transform: scale(0.97); }

/* ---------------- 完整报告：浙里省情交付卡（2026-10-21 礼包收敛为省情网页）---------------- */
.sq-card { background: linear-gradient(160deg, #f8f4ea, #efe8d8); border: 1.5px solid var(--gold-deep);
  border-radius: var(--radius); padding: 18px 16px; margin: 4px 0 14px; text-align: center; }
.sq-head { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 4px; }
.sq-seal { flex-shrink: 0; width: 34px; height: 34px; border-radius: 8px; background: var(--gold-deep); color: #fff;
  font-family: var(--serif); font-size: 20px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.sq-title { font-size: 18px; font-weight: 800; color: var(--text); font-family: var(--serif); }
.sq-sub { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.sq-shots { display: flex; gap: 6px; margin-bottom: 12px; }
.sq-shots img { flex: 1; min-width: 0; aspect-ratio: 3/4; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.sq-feats { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 12px; }
.sq-feats span { font-size: 11.5px; color: var(--navy-deep); background: rgba(63, 94, 124, 0.08);
  border: 1px solid rgba(63, 94, 124, 0.18); border-radius: 999px; padding: 3px 10px; }
.sq-code { background: var(--card); border: 1.5px dashed var(--gold-deep); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; }
.sq-code small { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 2px; }
.sq-code b { font-size: 22px; font-weight: 800; letter-spacing: 4px; color: var(--gold-deep); font-family: var(--serif); }
.sq-note { font-size: 11px; color: var(--muted); line-height: 1.7; margin-top: 8px; }

[hidden] { display: none !important; }
