/* ============================================================
   铨策测评站 · 统一 UI 样式 v2
   设计语言：清新治愈 · 浅绿主色（参考小红书性格测试小程序）
   改动要点：主色紫→绿、加大留白、卡片精致化、价格醒目、统一按钮
   ============================================================ */
:root {
  --green: #2fae83;
  --green-deep: #1f8f68;
  --green-soft: #e5f6ee;
  --bg: #f4faf7;
  --card: #ffffff;
  --ink: #1f2d27;
  --ink-2: #5c7067;
  --ink-3: #8fa29a;
  --line: #e2efe9;
  --cta: #ff6b4a;
  --cta-dark: #f05a38;
  --radius-lg: 22px;
  --radius-md: 16px;
  --shadow: 0 12px 34px rgba(43, 138, 104, 0.10);
  --shadow-sm: 0 4px 14px rgba(43, 138, 104, 0.07);

  /* applyTheme 默认值（首页清新绿） */
  --primary: #2fae83;
  --primary-dark: #1f8f68;
  --primary-light: #e5f6ee;
  --accent: #ff6b4a;
  --grad: linear-gradient(135deg, #2fae83, #67cfa4);
}

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

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

.hidden { display: none !important; }

/* ---------- 顶部栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 239, 233, 0.9);
}
.topbar-inner {
  max-width: 720px; margin: 0 auto; padding: 10px 18px;
  display: flex; align-items: center; justify-content: space-between;
}
.btn-home {
  border: none; background: transparent; color: var(--ink-2);
  font-size: 14px; padding: 7px 10px; cursor: pointer; border-radius: 10px;
  font-weight: 500;
}
.btn-home:active { background: var(--green-soft); }
.brand { display: flex; align-items: center; gap: 9px; }
.brand-logo {
  width: 30px; height: 30px; border-radius: 10px;
  background: linear-gradient(135deg, var(--green), #5cc9a0);
  color: #fff; font-weight: 800; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(47, 174, 131, 0.28);
}
.brand-name { font-weight: 800; font-size: 16px; letter-spacing: 0.3px; }
.brand-slogan { font-size: 11.5px; color: var(--ink-3); }
.topbar-space { width: 52px; }

/* ---------- 容器 ---------- */
.container { max-width: 720px; margin: 0 auto; padding: 18px 16px 52px; }

/* ---------- 首页 Hero ---------- */
.hero {
  background: linear-gradient(150deg, #eefaf4 0%, #dff4ea 55%, #d2eedf 100%);
  border-radius: 26px;
  padding: 34px 24px 26px;
  text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; top: -46px; right: -46px;
  width: 150px; height: 150px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
}
.hero::after {
  content: ""; position: absolute; bottom: -56px; left: -40px;
  width: 130px; height: 130px; border-radius: 50%;
  background: rgba(95, 201, 160, 0.18);
}
.hero-chip {
  display: inline-block; font-size: 12px; font-weight: 700;
  color: var(--green-deep); background: rgba(255, 255, 255, 0.85);
  padding: 6px 16px; border-radius: 99px; letter-spacing: 1px;
  box-shadow: 0 3px 10px rgba(47, 174, 131, 0.12);
  margin-bottom: 16px;
  position: relative; z-index: 1;
}
.hero h1 {
  font-size: 26px; font-weight: 800; letter-spacing: 0.5px;
  color: var(--ink); position: relative; z-index: 1;
  line-height: 1.4;
}
.hero p {
  color: var(--ink-2); margin: 10px auto 0; font-size: 14px;
  max-width: 300px; position: relative; z-index: 1;
}
.hero-art { margin-top: 18px; position: relative; z-index: 1; line-height: 0; }
.hero-art svg { display: inline-block; }

/* ---------- 首页 hero 十六型大合照 ---------- */
.hero-art { margin-top: 20px; }
.mbti-group {
  display: inline-flex; flex-direction: column; gap: 10px; align-items: center;
  background: linear-gradient(165deg, rgba(255,255,255,0.9), rgba(255,255,255,0.55));
  border: 1px solid rgba(47, 174, 131, 0.16);
  border-radius: 22px; padding: 16px 18px 14px;
  box-shadow: 0 10px 30px rgba(47, 174, 131, 0.10), inset 0 1px 0 rgba(255,255,255,0.9);
}
.mbti-row { display: flex; gap: 10px; }
.mbti-row.shift { transform: translateX(-19px); }
.mbti-avatar {
  position: relative; width: 62px; height: 62px;
  animation: mbtiFloat 5s ease-in-out infinite;
}
.mbti-avatar:nth-child(2n) { animation-delay: 0.55s; }
.mbti-avatar:nth-child(3n) { animation-delay: 1.1s; }
.mbti-avatar img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
  border: 3px solid #fff; background: #eef8f2;
  box-shadow: 0 3px 8px rgba(20, 90, 66, 0.14);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
  display: block;
}
.mbti-avatar:hover img { transform: scale(1.12); box-shadow: 0 6px 16px rgba(47, 174, 131, 0.30); }
.mbti-tag {
  position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%);
  background: var(--green-deep, #1f8f6a); color: #fff; font-size: 10px; font-weight: 800;
  letter-spacing: 0.5px; padding: 2px 6px; border-radius: 6px; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease, bottom 0.2s ease;
}
.mbti-avatar:hover .mbti-tag { opacity: 1; bottom: -4px; }
.mbti-caption {
  margin-top: 10px; font-size: 11px; font-weight: 700; letter-spacing: 3px;
  color: var(--green-mid, #3fae83); opacity: 0.85;
}
@keyframes mbtiFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@media (max-width: 480px) {
  .mbti-avatar { width: 54px; height: 54px; }
  .mbti-row { gap: 8px; }
  .mbti-group { gap: 8px; padding: 12px 12px 10px; }
  .mbti-row.shift { transform: translateX(-14px); }
}
@media (prefers-reduced-motion: reduce) {
  .mbti-avatar { animation: none; }
}


/* ---------- 首页测试卡片 ---------- */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px; margin-top: 24px;
}
.test-card {
  background: var(--card); border-radius: 20px;
  box-shadow: var(--shadow-sm);
  padding: 22px;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  border: 1px solid rgba(226, 239, 233, 0.8);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.test-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
}
.test-card:active { transform: scale(0.985); }
.tc-head { display: flex; align-items: center; gap: 14px; }
.tc-icon {
  width: 54px; height: 54px; border-radius: 16px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 14px rgba(31, 45, 39, 0.12);
}
.tc-icon svg { display: block; filter: drop-shadow(0 2px 4px rgba(31, 45, 39, 0.16)); }
.tc-title { font-size: 18px; font-weight: 800; line-height: 1.35; }
.tc-meta { font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.tc-brief {
  font-size: 13.5px; color: var(--ink-2); margin: 16px 0 6px;
  min-height: 44px; line-height: 1.7;
}
.tc-foot {
  margin-top: auto; padding-top: 16px;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px dashed var(--line);
}
.tc-foot .btn { padding: 10px 15px; white-space: nowrap; font-size: 13.5px; flex-shrink: 0; }
.tc-price { font-size: 12.5px; color: var(--ink-3); }
.tc-price b {
  color: var(--cta); font-size: 20px; font-weight: 800;
  letter-spacing: 0.3px;
}
.foot-note { text-align: center; color: var(--ink-3); font-size: 12px; margin-top: 28px; }

/* ---------- 按钮 ---------- */
.btn {
  border: none; cursor: pointer; border-radius: 12px;
  font-size: 14px; font-weight: 700; padding: 11px 20px;
  transition: opacity 0.15s, transform 0.1s;
  font-family: inherit;
}
.btn:active { opacity: 0.85; transform: scale(0.98); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 6px 16px rgba(31, 45, 39, 0.18);
}
.btn-lg { padding: 15px 26px; font-size: 15px; width: 100%; border-radius: 14px; }
.btn-ghost {
  background: #fff; color: var(--ink-2);
  border: 1.5px solid var(--line);
}

/* ---------- 答题页 ---------- */
.test-head { padding: 8px 2px 18px; }
.test-title-row { display: flex; align-items: baseline; justify-content: space-between; }
.test-title-row h2 { font-size: 20px; font-weight: 800; }
.test-price { font-size: 13px; color: var(--cta); font-weight: 800; }
.progress-row { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.progress-track {
  flex: 1; height: 9px; background: #e7f1ec; border-radius: 99px; overflow: hidden;
}
.progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--primary), #7cd6b2);
  border-radius: 99px; transition: width 0.3s ease;
}
.progress-text { font-size: 12px; color: var(--ink-3); white-space: nowrap; font-weight: 600; }

.question-card {
  background: var(--card); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  padding: 28px 22px;
}
.q-label {
  font-size: 12px; color: var(--primary); font-weight: 800;
  letter-spacing: 1.5px;
}
.q-text { font-size: 17px; font-weight: 700; margin: 12px 0 24px; line-height: 1.7; }
.q-options { display: flex; flex-direction: column; gap: 13px; }
.q-opt {
  display: flex; align-items: center; gap: 13px;
  border: 1.5px solid var(--line); border-radius: 15px;
  padding: 16px 17px; cursor: pointer; background: #fff;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  text-align: left; font-size: 15px; color: var(--ink);
  line-height: 1.55; width: 100%;
}
.q-opt .q-opt-key {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--primary-light); color: var(--primary);
  font-weight: 800; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.q-opt:active { background: var(--primary-light); border-color: var(--primary); }

/* 选项选中态（回看上一题时高亮） */
.q-opt.on { background: var(--primary-light); border-color: var(--primary); }
.q-opt.on .q-opt-key { background: var(--primary); color: #fff; }

/* 上一题 */
.q-prev {
  display: block; margin: 20px auto 0; padding: 10px 26px;
  border: 1.5px solid var(--line); border-radius: 99px;
  background: #fff; color: var(--ink-2); font-size: 14px;
  cursor: pointer; transition: border-color 0.15s, color 0.15s;
}
.q-prev:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- 结果页 ---------- */
.result-hero {
  text-align: center; background: var(--card);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  border: 1px solid var(--line); padding: 30px 20px 26px; margin-bottom: 18px;
}
.result-badge {
  display: inline-block; font-size: 12px; font-weight: 800;
  color: var(--primary); background: var(--primary-light);
  padding: 5px 14px; border-radius: 99px; letter-spacing: 1px;
}
.result-type { font-size: 32px; font-weight: 800; margin: 12px 0 4px; letter-spacing: 1px; }
.result-sub { color: var(--ink-2); font-size: 15px; }

.score-ring-wrap { display: flex; justify-content: center; margin: 20px 0 8px; }

.panel {
  background: var(--card); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  padding: 24px; margin-bottom: 18px;
}
.panel-title {
  font-size: 16px; font-weight: 800; margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.panel-title::before { content: ""; width: 5px; height: 17px; border-radius: 4px; background: var(--primary); }
.panel-title.gold::before { background: #f5a623; }

/* 条形图 */
.bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; }
.bar-label { width: 76px; font-size: 13px; color: var(--ink-2); flex-shrink: 0; text-align: right; }
.bar-track { flex: 1; height: 13px; background: #eef4f1; border-radius: 99px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 99px; width: 0%; transition: width 0.8s ease; }
.bar-val { width: 52px; font-size: 13px; font-weight: 800; color: var(--ink); flex-shrink: 0; }

/* 文字段落 */
.para { font-size: 14.5px; color: var(--ink-2); margin-bottom: 12px; }
.para b { color: var(--ink); }
.section-h { font-size: 15px; font-weight: 800; margin: 18px 0 8px; }
.section-h:first-child { margin-top: 0; }
.taglist { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.tag {
  background: var(--primary-light); color: var(--primary);
  font-size: 12.5px; font-weight: 600; padding: 5px 12px; border-radius: 99px;
}

/* 付费解锁区 */
.unlock-box {
  background: linear-gradient(135deg, #fff3e8, #fff);
  border: 1.5px solid #ffd9bd; border-radius: var(--radius-lg);
  padding: 26px 22px; text-align: center; margin-bottom: 18px;
}
.unlock-box .unlock-icon { font-size: 34px; }
.unlock-box h3 { font-size: 18px; font-weight: 800; margin: 8px 0 6px; }
.unlock-box p { color: var(--ink-2); font-size: 13.5px; margin-bottom: 6px; }
.unlock-price { color: var(--cta); font-size: 24px; font-weight: 800; margin: 8px 0 16px; }
.unlock-features { text-align: left; margin: 12px auto 18px; max-width: 300px; }
.unlock-features li { font-size: 13.5px; color: var(--ink-2); margin-bottom: 7px; list-style: none; }
.unlock-features li::before { content: "✓ "; color: var(--primary); font-weight: 800; }
.demo-tag { font-size: 11px; color: var(--ink-3); margin-top: 12px; }

/* ---------- 支付弹层 ---------- */
.pay-mask {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(17, 34, 28, 0.5);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  backdrop-filter: blur(4px);
}
.pay-panel {
  width: 100%; max-width: 340px; background: #fff; border-radius: 26px;
  padding: 30px 26px; text-align: center;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  animation: popIn 0.25s ease both;
}
.pay-title { font-size: 18px; font-weight: 800; margin-top: 8px; }
.pay-sub { font-size: 13px; color: var(--ink-2); margin-top: 5px; }
.pay-price { font-size: 16px; color: var(--ink); margin: 16px 0 4px; }
.pay-price b { font-size: 36px; color: var(--cta); font-weight: 800; }
.pay-note { font-size: 11px; color: var(--ink-3); margin: 8px 0 20px; }
.pay-panel .btn { margin-top: 10px; }
.pay-ok {
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, #e6f9f0, #c9f2df); color: var(--green-deep);
  font-size: 32px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; margin: 0 auto;
}
.spinner {
  width: 40px; height: 40px; margin: 0 auto 14px;
  border: 4px solid var(--line); border-top-color: var(--primary);
  border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 动画 */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.fade-up { animation: fadeUp 0.4s ease both; }
@keyframes popIn { from { opacity: 0; transform: scale(0.92) translateY(10px); } to { opacity: 1; transform: none; } }

/* ============================================================
   主题差异化：每个测试一套专属配色（卡片顶部色带 + 图标底）
   ============================================================ */
.theme-mbti::before { background: linear-gradient(90deg, #5c7cfa, #845ef7); }
.theme-mbti .tc-icon { background: linear-gradient(135deg, #5c7cfa, #845ef7); }
.theme-enneagram::before { background: linear-gradient(90deg, #e64980, #f76707); }
.theme-enneagram .tc-icon { background: linear-gradient(135deg, #e64980, #f76707); }
.theme-holland::before { background: linear-gradient(90deg, #12b886, #38d9a9); }
.theme-holland .tc-icon { background: linear-gradient(135deg, #12b886, #0ca678); }
.theme-finance::before { background: linear-gradient(90deg, #f59f00, #e8590c); }
.theme-finance .tc-icon { background: linear-gradient(135deg, #f59f00, #e8590c); }

/* ---------- MBTI 版本选择页 ---------- */
.hero-sm { padding: 26px 20px 22px; }
.hero-sm h1 { font-size: 22px; }
.hero-sm p { font-size: 13.5px; max-width: 320px; }
.ver-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 24px; align-items: stretch; }
@media (max-width: 700px) { .ver-grid { grid-template-columns: 1fr; } }
.ver-card {
  position: relative; background: var(--card); border-radius: 22px;
  box-shadow: var(--shadow-sm); border: 1.5px solid var(--line);
  padding: 26px 22px; display: flex; flex-direction: column; align-items: center;
  text-align: center; overflow: hidden;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ver-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--grad); }
.ver-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(47, 174, 131, 0.14); border-color: var(--primary); }
.ver-card:active { transform: translateY(0); }
.ver-pro {
  border-color: rgba(132, 94, 247, 0.5);
  box-shadow: 0 14px 36px rgba(132, 94, 247, 0.14);
}
.ver-pro::before { background: linear-gradient(90deg, #845ef7, #5c7cfa); }
.ver-check {
  position: absolute; top: 14px; left: 14px;
  width: 27px; height: 27px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 2px solid var(--line); color: #fff;
  transition: all .2s ease;
}
.ver-check svg { opacity: 0; transition: opacity .2s ease; }
.ver-card:hover .ver-check { background: var(--primary); border-color: var(--primary); }
.ver-card:hover .ver-check svg { opacity: 1; }
.ver-flag {
  position: absolute; top: 14px; right: 14px;
  background: linear-gradient(135deg, #845ef7, #5c7cfa); color: #fff;
  font-size: 11px; font-weight: 800; padding: 4px 11px; border-radius: 99px;
}
.ver-flag-ghost { background: #fff; color: var(--primary); border: 1px solid var(--primary-light); }
.ver-name { font-size: 21px; font-weight: 800; margin-top: 10px; }
.ver-note { font-size: 13px; color: var(--ink-3); margin-top: 3px; }
.ver-tag {
  display: inline-block; margin: 14px 0 4px;
  background: var(--primary-light); color: var(--primary);
  font-size: 12.5px; font-weight: 800; padding: 5px 13px; border-radius: 99px;
}
.ver-desc { font-size: 14px; color: var(--ink-2); margin: 12px 0; max-width: 320px; line-height: 1.7; }
.ver-feat {
  font-size: 12.5px; color: var(--ink-2); background: #fafbfd;
  border: 1px dashed var(--line); border-radius: 12px; padding: 10px 14px; margin-bottom: 16px;
  text-align: left; line-height: 1.8;
}
.ver-price { font-size: 14px; color: var(--ink-2); margin-bottom: 16px; }
.ver-price b { color: var(--cta); font-size: 24px; font-weight: 800; }
.ver-card .btn { width: 100%; max-width: 280px; }
.ver-go { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.ver-go svg { flex-shrink: 0; }

/* ---------- DISC / 大五 专属 ---------- */
.disc-fig, .bf-radar, .bf-radar-lg { display: flex; justify-content: center; margin-bottom: 6px; }
.bf-radar svg, .bf-radar-lg svg { max-width: 240px; height: auto; }
[data-theme="bigfive"] .q-options { flex-wrap: wrap; gap: 8px; }
[data-theme="bigfive"] .q-opt { min-width: 46%; }
.dim-card-track { height: 8px; border-radius: 99px; background: #f1f3f5; overflow: hidden; margin: 10px 0 12px; }
.dim-card-track i { display: block; height: 100%; border-radius: 99px; }

/* ---------- 结果页 · 测试专属视觉元素 ---------- */
.mbti-fig { line-height: 0; display: inline-block; }
.mbti-fig svg { filter: drop-shadow(0 8px 16px rgba(91, 124, 250, 0.22)); }
.result-hero .mbti-fig { margin-top: 14px; }

.mbti-strength { display: flex; align-items: center; gap: 18px; }
.mbti-fig-lg { flex-shrink: 0; }
.mbti-strength-info { flex: 1; }
.mbti-strength-t { font-size: 22px; font-weight: 800; color: var(--primary); }
.mbti-strength-s { font-size: 13px; color: var(--ink-2); margin: 4px 0 8px; }
.mbti-strength-s b { font-size: 18px; color: var(--cta); }
.mbti-strength-bar { height: 12px; background: #eef4f1; border-radius: 99px; overflow: hidden; }
.mbti-strength-bar i { display: block; height: 100%; background: var(--grad); border-radius: 99px; }
.mbti-strength-d { font-size: 12.5px; color: var(--ink-2); margin-top: 8px; }

.dim-detail { margin-bottom: 16px; }
.dim-detail-h { font-size: 13.5px; color: var(--ink); margin-bottom: 8px; font-weight: 700; }
.dim-gap { color: var(--ink-3); font-weight: 400; font-size: 12px; }
.dim-detail-row { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; font-size: 12px; color: var(--ink-2); }
.dim-detail-row span { width: 120px; flex-shrink: 0; }
.dim-detail-track { flex: 1; height: 10px; background: #eef4f1; border-radius: 99px; overflow: hidden; }
.dim-detail-track i { display: block; height: 100%; background: var(--primary); border-radius: 99px; }
.dim-detail-track.alt i { background: var(--cta); }

.enneagram-symbol, .holland-hex, .finance-symbol { margin-top: 14px; line-height: 0; }
.finance-symbol svg { filter: drop-shadow(0 8px 16px rgba(245, 159, 0, 0.26)); }

/* 窄屏适配 */
@media (max-width: 420px) {
  .mbti-strength { flex-direction: column; text-align: center; }
  .dim-detail-row span { width: 96px; }
  .bar-label { width: 64px; }
  .hero { padding: 30px 18px 22px; }
}

/* =========================================================
   专业报告 · 增强样式
   ========================================================= */
/* MBTI 真实形象图 */
.mbti-fig img { border-radius: 18px; object-fit: cover; display: block; box-shadow: 0 12px 28px rgba(23, 145, 106, 0.18); border: 3px solid #fff; }
.mbti-fig-ring { display: inline-flex; border-radius: 50%; overflow: hidden; border: 4px solid #fff; box-shadow: 0 14px 34px rgba(23, 145, 106, 0.28); background: #eafaf2; margin-top: 16px; }
.mbti-fig-ring img { border: none; border-radius: 50%; box-shadow: none; }
.r-hero-mbti { background: linear-gradient(165deg, #eafaf2 0%, #f4fbf8 62%, #fff 100%); }
.result-nick { font-size: 15px; font-weight: 700; color: var(--primary); margin-top: 2px; letter-spacing: 3px; }

/* 答题 · 维度提示条 */
.q-dim { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; padding: 9px 14px; background: #f0faf5; border: 1px dashed #bfe8d5; border-radius: 12px; font-size: 12.5px; }
.q-dim-tag { background: var(--primary); color: #fff; font-weight: 700; font-size: 11px; padding: 3px 9px; border-radius: 99px; letter-spacing: .5px; }
.q-dim-name { font-weight: 700; color: var(--ink); }
.q-dim-desc { color: var(--ink-3); }

/* 四维能量分布（免费区） */
.dim-bars { display: flex; flex-direction: column; gap: 17px; }
.dim-bar-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.dim-bar-label { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.dim-bar-win { font-size: 13px; color: var(--ink); font-weight: 600; }
.dim-bar-win b { font-size: 15px; }
.dim-bar-track { position: relative; height: 14px; background: #eef4f1; border-radius: 99px; }
.dim-bar-track i { display: block; height: 100%; border-radius: 99px; min-width: 6px; }
.dim-bar-tip { position: absolute; top: -25px; right: 2px; font-size: 11px; font-weight: 700; color: var(--ink-2); }
.dim-bar-f { display: flex; justify-content: flex-end; margin-top: 4px; font-size: 11.5px; color: var(--ink-3); }

/* 四维深度解析卡 */
.dim-card { border: 1px solid #e9f2ee; border-radius: 16px; padding: 15px 16px; margin-bottom: 12px; background: #fbfefc; border-left: 4px solid var(--dc); }
.dim-card-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 9px; }
.dim-card-tag { font-size: 11px; font-weight: 800; color: #fff; background: var(--dc); padding: 3px 8px; border-radius: 6px; letter-spacing: 1px; }
.dim-card-name { font-size: 14px; font-weight: 800; color: var(--ink); }
.dim-card-name b { color: var(--dc); font-size: 15px; }
.dim-card-track { height: 8px; background: #eef4f1; border-radius: 99px; overflow: hidden; margin-bottom: 10px; }
.dim-card-track i { display: block; height: 100%; border-radius: 99px; }
.dim-card-d { font-size: 13px; color: var(--ink-2); line-height: 1.75; }
.dim-card-d b { color: var(--ink); }

/* 核心特质 chips */
.trait-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.trait-chip { font-size: 12.5px; font-weight: 600; color: #0c7a58; background: #e8f8f0; border: 1px solid #c8eedb; padding: 7px 13px; border-radius: 99px; }

/* 优势与短板 */
.sw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sw-col { border-radius: 14px; padding: 15px; }
.sw-strong { background: #f0faf5; border: 1px solid #cdeedd; }
.sw-warn { background: #fff8ef; border: 1px solid #f5e0c0; }
.sw-h { font-size: 13.5px; font-weight: 800; color: var(--ink); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.sw-ico { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; font-size: 11px; font-weight: 900; }
.sw-strong .sw-ico { background: #2fae83; color: #fff; }
.sw-warn .sw-ico { background: #f5a623; color: #fff; }
.sw-item { font-size: 12.8px; color: var(--ink-2); line-height: 1.6; padding: 5px 0 5px 14px; position: relative; }
.sw-item::before { content: ""; position: absolute; left: 2px; top: 13px; width: 5px; height: 5px; border-radius: 50%; }
.sw-strong .sw-item::before { background: #2fae83; }
.sw-warn .sw-item::before { background: #f5a623; }

/* 职业方向 */
.career-tags { display: flex; flex-wrap: wrap; gap: 9px; }
.career-tag { font-size: 12.8px; font-weight: 600; color: #fff; background: var(--grad); padding: 8px 14px; border-radius: 10px; box-shadow: 0 4px 10px rgba(23, 145, 106, 0.18); }

/* 成长发展建议 */
.growth-item { display: flex; gap: 11px; align-items: flex-start; margin-bottom: 11px; }
.growth-n { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: #f5a623; color: #fff; font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.growth-item span:last-child { font-size: 13px; color: var(--ink-2); line-height: 1.65; padding-top: 2px; }

/* 窄屏适配：报告模块 */
@media (max-width: 520px) {
  .sw-grid { grid-template-columns: 1fr; }
  .dim-bar-tip { display: none; }
}

/* ---------- 心理量表分类徽标 ---------- */
.tc-cat {
  flex-shrink: 0; font-size: 11px; font-weight: 800;
  padding: 4px 10px; border-radius: 99px; letter-spacing: 0.5px;
  border: 1.5px solid var(--line); color: var(--ink-3);
  background: #fff; white-space: nowrap;
}
.tc-cat.cat-psych { color: #0b7285; border-color: #99e9f2; background: #e3fafc; }
.tc-cat.cat-person { color: #5f3dc4; border-color: #d0bfff; background: #f3f0ff; }
.tc-cat.cat-career { color: #0ca678; border-color: #96f2d7; background: #e6fcf5; }

/* ---------- 心测结果 ---------- */
.r-hero-psych { position: relative; overflow: hidden; }
.scale-score { font-size: 62px; font-weight: 800; line-height: 1; margin: 8px 0 2px; letter-spacing: 1px; }
.scale-score-label { font-size: 13px; color: var(--ink-3); margin-bottom: 10px; }

.disclaimer {
  background: #fff9e6; border: 1.5px solid #ffe08a;
  color: #7a5b00; border-radius: 14px; padding: 14px 16px;
  font-size: 13px; line-height: 1.75; margin-bottom: 18px;
}
.disclaimer b { color: #9a6b00; }

.scale-band { display: flex; gap: 8px; margin-bottom: 16px; }
.scale-seg {
  flex: 1; text-align: center; font-size: 12px; font-weight: 700;
  color: var(--ink-2); padding: 9px 4px; border-radius: 12px;
  background: #f1f5f3; border: 1.5px solid transparent;
}
.scale-seg.scale-on { color: #fff; }
.scale-seg-name { display: block; }

.tip-list { list-style: none; padding: 0; margin: 0; }
.tip-list li {
  position: relative; padding: 11px 0 11px 28px;
  font-size: 14px; color: var(--ink-2); line-height: 1.7;
  border-bottom: 1px dashed var(--line);
}
.tip-list li:last-child { border-bottom: none; }
.tip-list li::before {
  content: ""; position: absolute; left: 2px; top: 18px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--primary); box-shadow: 0 0 0 4px var(--primary-light);
}
.para.small { font-size: 12.5px; color: var(--ink-3); line-height: 1.8; }

/* 心测主题首页卡片图标配色 */
.theme-sds .tc-icon { background: linear-gradient(135deg,#15aabf 0%,#22b8cf 100%); }
.theme-sas .tc-icon { background: linear-gradient(135deg,#f76707 0%,#ff922b 100%); }
.theme-pss .tc-icon { background: linear-gradient(135deg,#2f9e44 0%,#40c057 100%); }


/* ===== 15 套新增测评：首页卡片图标配色 ===== */
.theme-ecr .tc-icon { background: linear-gradient(135deg,#b197fc 0%,#e64980 100%); }
.theme-psqi .tc-icon { background: linear-gradient(135deg,#364fc7 0%,#5c7cfa 100%); }
.theme-scl90 .tc-icon { background: linear-gradient(135deg,#495057 0%,#15aabf 100%); }
.theme-lsas .tc-icon { background: linear-gradient(135deg,#ff6b6b 0%,#f76707 100%); }
.theme-ses .tc-icon { background: linear-gradient(135deg,#4dabf7 0%,#12b886 100%); }
.theme-mbi .tc-icon { background: linear-gradient(135deg,#9c36b5 0%,#e64980 100%); }
.theme-leadership .tc-icon { background: linear-gradient(135deg,#1971c2 0%,#f59f00 100%); }
.theme-teamcomm .tc-icon { background: linear-gradient(135deg,#82c91e 0%,#1c7ed6 100%); }
.theme-entrepreneur .tc-icon { background: linear-gradient(135deg,#e8590c 0%,#e03131 100%); }
.theme-learnmot .tc-icon { background: linear-gradient(135deg,#0ca678 0%,#f76707 100%); }
.theme-testanx .tc-icon { background: linear-gradient(135deg,#e67700 0%,#e64980 100%); }
.theme-resilience .tc-icon { background: linear-gradient(135deg,#40c057 0%,#4dabf7 100%); }
.theme-archetype .tc-icon { background: linear-gradient(135deg,#845ef7 0%,#f59f00 100%); }
.theme-emotionreg .tc-icon { background: linear-gradient(135deg,#f06595 0%,#12b886 100%); }
.theme-impulsivity .tc-icon { background: linear-gradient(135deg,#fa5252 0%,#7048e8 100%); }

/* ===== 维度条形（LSAS 恐惧/回避 等 extraHtml 共用） ===== */
.dim-row { display: flex; align-items: center; gap: 12px; }
.dim-row + .dim-row { margin-top: 12px; }
.dim-lbl { width: 118px; flex: none; font-size: 13px; font-weight: 600; color: var(--ink); }
.dim-track { flex: 1; height: 12px; background: var(--primary-light); border-radius: 999px; overflow: hidden; }
.dim-track .bar-fill { height: 100%; border-radius: 999px; }
.dim-val { width: 76px; flex: none; text-align: right; font-size: 13px; font-weight: 700; color: var(--ink); }

/* ===== PSQI 七成分明细 ===== */
.psqi-comps { display: flex; flex-direction: column; gap: 10px; }
.psqi-comp { display: flex; align-items: center; gap: 12px; }
.psqi-cname { width: 108px; flex: none; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.psqi-cbar { flex: 1; height: 10px; background: var(--primary-light); border-radius: 999px; overflow: hidden; }
.psqi-cbar i { display: block; height: 100%; border-radius: 999px; transition: width .8s ease; }
.psqi-cval { width: 24px; flex: none; text-align: right; font-size: 13px; font-weight: 700; color: var(--ink); }

/* ===== LSAS 双维作答 ===== */
.lsas-grid { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.lsas-row { display: flex; align-items: center; gap: 10px; }
.lsas-side { flex: none; width: 46px; font-size: 14px; font-weight: 700; color: var(--primary); }
.lsas-btn { flex: 1; padding: 11px 6px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink-2); font-size: 13px; font-weight: 600; cursor: pointer; transition: all .18s ease; text-align: center; }
.lsas-btn:hover { border-color: var(--primary); color: var(--primary); }
.lsas-btn.on { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 4px 14px var(--primary-light); }
.lsas-next { width: 100%; margin-top: 4px; }

/* ===== PSQI 填空作答 ===== */
.q-input-wrap { display: flex; gap: 12px; margin-top: 8px; align-items: center; }
.q-input { flex: 1; padding: 13px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font-size: 15px; outline: none; transition: border-color .2s ease; }
.q-input:focus { border-color: var(--primary); }
.q-opt-ok { flex: none; padding: 13px 26px; }

/* ===== 无总分型结果 hero（荣格原型等主导类型展示） ===== */
.r-hero-person { background: linear-gradient(165deg, var(--primary-light) 0%, var(--card) 70%, #fff 100%); }

/* ============================================================
   v27 升级：铨策官网入口 · 首页双板块 · 动态星星 · 铨策模态框
   ============================================================ */

/* ---------- 铨策官网入口（顶栏右上角 · 常驻） ---------- */
.btn-quance {
  flex: none; display: inline-flex; align-items: center; gap: 7px;
  margin-left: 12px; padding: 9px 16px; border: none; border-radius: 999px;
  background: linear-gradient(135deg, #2b3a67 0%, #3f5aa8 100%);
  color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .5px;
  cursor: pointer; box-shadow: 0 4px 14px rgba(36, 49, 92, .26);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.btn-quance:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(36, 49, 92, .36); filter: brightness(1.06); }
.btn-quance:active { transform: translateY(0); }
.btn-quance .bq-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #7ce7b0; box-shadow: 0 0 0 0 rgba(124, 231, 176, .6);
  animation: bqPulse 2.2s infinite;
}
@keyframes bqPulse {
  0% { box-shadow: 0 0 0 0 rgba(124, 231, 176, .55); }
  70% { box-shadow: 0 0 0 7px rgba(124, 231, 176, 0); }
  100% { box-shadow: 0 0 0 0 rgba(124, 231, 176, 0); }
}

/* ---------- 首页双板块（心理测试 / 职业能力测试） ---------- */
.home-sec { margin-top: 34px; }
.home-sec + .home-sec { margin-top: 44px; }
.sec-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sec-badge {
  padding: 6px 15px; border-radius: 999px; font-size: 12.5px; font-weight: 800;
  letter-spacing: 2px; color: #fff; flex: none;
}
.sb-person { background: linear-gradient(135deg, #5c7cfa, #845ef7); box-shadow: 0 4px 14px rgba(92, 124, 250, .32); }
.sb-career { background: linear-gradient(135deg, #f59f00, #e8590c); box-shadow: 0 4px 14px rgba(245, 159, 0, .32); }
.sec-title { margin: 0; font-size: 25px; font-weight: 800; letter-spacing: .5px; color: var(--ink); line-height: 1.3; }
.sec-tagline { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.sec-sub {
  margin: 12px 0 18px; padding: 11px 15px; border-radius: 14px;
  font-size: 13px; color: var(--ink-2);
  background: var(--primary-light); border: 1px solid var(--line);
}
#sec-career .sec-sub { background: #fff7e6; border-color: #ffefcf; }
.home-sec .card-grid { gap: 16px; }

/* ---------- 内容层级（保证文字在星星之上） ---------- */
.container { position: relative; z-index: 1; }

/* ---------- 动态星星背景（答题 / 结果视图显示） ---------- */
.starfield {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
}
.star {
  position: absolute; border-radius: 50%; background: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, .85);
  animation: twinkle ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: .12; transform: translateY(8px) scale(.82); }
  50% { opacity: .68; transform: translateY(-8px) scale(1.14); }
}
body[data-theme="mbti"] .star { background: #dfe8ff; box-shadow: 0 0 8px rgba(133, 148, 255, .5); }
body[data-theme="finance"] .star,
body[data-theme="caikuai"] .star { background: #fff3d6; box-shadow: 0 0 8px rgba(255, 200, 90, .5); }
body[data-theme="holland"] .star { background: #d9fbee; box-shadow: 0 0 8px rgba(72, 199, 153, .45); }

/* ---------- 铨策官网模态框 ---------- */
.quance-overlay {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 22px; background: rgba(16, 22, 38, .62);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden;
  transition: opacity .22s ease, visibility .22s ease;
}
.quance-overlay.show { opacity: 1; visibility: visible; }
.quance-modal {
  width: min(920px, 94vw); height: 84vh;
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border-radius: 18px;
  box-shadow: 0 26px 70px rgba(10, 15, 32, .4);
  transform: translateY(10px) scale(.98);
  transition: transform .22s ease;
}
.quance-overlay.show .quance-modal { transform: translateY(0) scale(1); }
.quance-head {
  flex: none; display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; gap: 10px;
  background: linear-gradient(135deg, #2b3a67, #3f5aa8);
  color: #fff;
}
.quance-title { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 800; letter-spacing: .5px; }
.quance-logo {
  width: 26px; height: 26px; border-radius: 8px;
  background: rgba(255, 255, 255, .95); color: #2b3a67; font-weight: 800; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.quance-actions { display: flex; gap: 8px; }
.quance-btn {
  border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .12);
  color: #fff; font-size: 12.5px; font-weight: 700;
  padding: 7px 13px; border-radius: 999px; cursor: pointer;
  transition: background .16s ease, border-color .16s ease;
}
.quance-btn:hover { background: rgba(255, 255, 255, .24); border-color: rgba(255, 255, 255, .6); }
.quance-btn.qb-close { background: rgba(255, 255, 255, .05); }
.quance-frame { flex: 1; min-height: 0; background: #fff; }
.quance-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- 首页板块入口 Tab（心理测试 / 职业能力测试） ---------- */
.sec-tabs {
  position: relative; margin: 22px auto 26px; max-width: 540px;
  display: flex;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--line);
  border-radius: 18px; padding: 5px;
  box-shadow: var(--shadow-sm);
}
.sec-tabs-slider {
  position: absolute; top: 5px; left: 5px; z-index: 0;
  width: calc(50% - 5px); height: calc(100% - 10px);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), #54c39b);
  box-shadow: 0 6px 18px rgba(47, 174, 131, 0.30);
  transition: transform .32s cubic-bezier(.4, 0, .2, 1);
}
.sec-tab {
  position: relative; z-index: 1; flex: 1;
  border: none; background: transparent; cursor: pointer;
  padding: 13px 8px 12px; border-radius: 14px;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  -webkit-tap-highlight-color: transparent;
}
.sec-tab .st-name {
  font-size: 15.5px; font-weight: 700; letter-spacing: .5px;
  color: var(--ink-2); transition: color .25s ease;
}
.sec-tab .st-count {
  font-size: 11.5px; font-weight: 500; letter-spacing: .3px;
  color: var(--ink-3); transition: color .25s ease;
}
.sec-tab.active .st-name { color: #fff; }
.sec-tab.active .st-count { color: rgba(255, 255, 255, .92); }
.sec-tab:active { transform: scale(.985); }

/* ============ 你眼中的TA · 朋友人格深度测评（新增） ============ */
.theme-friend::before { background: linear-gradient(90deg, #6366f1, #c026d3); }
.theme-friend .tc-icon { background: linear-gradient(135deg, #6366f1, #c026d3); }

.friend-wrap { max-width: 780px; margin: 0 auto; padding-bottom: 40px; }
.fr-progress-row { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.fr-progress-track { flex: 1; height: 8px; border-radius: 99px; background: rgba(99, 102, 241, .14); overflow: hidden; }
.fr-progress-fill { height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #6366f1, #c026d3); transition: width .35s ease; }
.fr-progress-text { font-size: 12px; font-weight: 700; color: var(--ink-3); white-space: nowrap; }

.friend-quiz { margin-top: 22px; }
.fr-options { display: flex; flex-direction: column; gap: 12px; }
.fr-opt {
  display: block; width: 100%; text-align: center;
  border: 1.5px solid var(--line); border-radius: 14px;
  padding: 14px 16px; background: #fff; font-size: 15px; font-weight: 500;
  color: var(--ink); cursor: pointer; user-select: none;
  transition: all .16s ease;
}
.fr-opt:hover { border-color: var(--primary); background: var(--primary-light); transform: translateY(-1px); }
.fr-opt:active { transform: scale(.985); }
.fr-opt.on { color: #fff; border-color: transparent; }
.fr-quiz-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; }

.friend-result { margin-top: 22px; }
.fr-result-card {
  border-radius: 22px; padding: 26px 24px;
  background: linear-gradient(135deg, #eef2ff 0%, #fdf4ff 100%);
  box-shadow: 0 12px 30px rgba(31, 41, 55, .10);
}
.fr-r-head { text-align: center; padding-bottom: 6px; }
.fr-r-emoji { font-size: 54px; line-height: 1; }
.fr-r-type { font-size: 23px; font-weight: 800; margin-top: 8px; letter-spacing: .5px; }
.fr-r-code { font-size: 13.5px; font-weight: 700; letter-spacing: 3px; margin-top: 6px; opacity: .8; }
.fr-r-sub { font-size: 14.5px; margin-top: 6px; color: var(--ink-2); }
.fr-r-tags { justify-content: center; margin-top: 10px; }
.fr-relation {
  display: inline-block; color: #fff; font-size: 13px; font-weight: 600;
  padding: 7px 16px; border-radius: 99px; margin-top: 12px;
}
.fr-dims { margin-top: 18px; }
.fr-dim { margin-top: 13px; }
.fr-dim-label { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-2); margin-bottom: 5px; font-weight: 600; }
.fr-dim-row { height: 9px; background: rgba(15, 23, 42, .07); border-radius: 99px; overflow: hidden; }
.fr-dim-fill { height: 100%; width: 0; border-radius: 99px; transition: width .8s cubic-bezier(.22, .8, .36, 1); }
.fr-dim-note { font-size: 12px; color: var(--ink-3); margin-top: 10px; text-align: center; }
.friend-sections { margin-top: 18px; display: flex; flex-direction: column; gap: 14px; }
.fr-para { font-size: 14.5px; line-height: 1.85; color: var(--ink-2); margin-top: 6px; white-space: pre-line; }
.fr-r-actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; justify-content: center; }

/* ---------- 全局轻提示 Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 60px; transform: translateX(-50%) translateY(16px);
  background: rgba(31, 41, 55, .92); color: #fff; font-size: 13.5px;
  padding: 10px 20px; border-radius: 99px; opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease; z-index: 300;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============ 付费解锁（Pay · 新增） ============ */
/* 付费栅栏：未解锁展示的锁定引导块 */
.pay-fence {
  margin: 26px auto 8px; max-width: 560px; text-align: center;
  padding: 30px 24px; border-radius: 20px;
  background: linear-gradient(160deg, #f8fafc, #eef2ff);
  border: 1.5px dashed rgba(47, 174, 131, .45);
  box-shadow: var(--shadow-sm);
  animation: payFenceIn .32s ease;
}
@keyframes payFenceIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.pay-fence-ic { font-size: 40px; line-height: 1; }
.pay-fence-t { font-size: 18px; font-weight: 800; margin-top: 12px; color: var(--ink); }
.pay-fence-d { font-size: 13.5px; color: var(--ink-3); margin-top: 8px; line-height: 1.7; }
.pay-fence-price {
  display: inline-block; margin: 16px 0 14px; font-size: 22px; font-weight: 900;
  color: var(--primary); letter-spacing: .5px;
}
.pay-fence-price::before { content: '解锁价 '; font-size: 13px; font-weight: 600; color: var(--ink-3); letter-spacing: 0; }
.pay-fence-btn { padding: 12px 30px; font-size: 15px; border-radius: 999px; }

/* 朋友测评付费区隐藏（未解锁） */
#frResult.pay-locked .fr-dims.pay-hidden,
#frResult.pay-locked .friend-sections.pay-hidden { display: none !important; }

/* 支付面板 */
.pay-overlay {
  position: fixed; inset: 0; z-index: 10001;
  background: rgba(15, 23, 42, .55);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity .22s ease;
}
.pay-overlay.show { opacity: 1; pointer-events: auto; }
.pay-modal {
  width: 100%; max-width: 360px; background: #fff; border-radius: 20px;
  padding: 26px 24px 22px; text-align: center; position: relative;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .28);
  transform: translateY(12px) scale(.98); transition: transform .22s ease;
}
.pay-overlay.show .pay-modal { transform: translateY(0) scale(1); }
.pay-close {
  position: absolute; top: 12px; right: 14px; border: none; background: transparent;
  font-size: 16px; color: var(--ink-3); cursor: pointer; padding: 6px;
}
.pay-brand { font-size: 13px; color: var(--ink-3); letter-spacing: 1px; }
.pay-brand-logo {
  display: inline-block; width: 26px; height: 26px; line-height: 26px; border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), #54c39b); color: #fff;
  font-weight: 900; margin-right: 6px; font-size: 15px;
}
.pay-title { font-size: 20px; font-weight: 800; margin-top: 12px; color: var(--ink); }
.pay-product { font-size: 14px; color: var(--ink-2); margin-top: 6px; }
.pay-price { margin-top: 14px; color: var(--accent); font-weight: 800; }
.pay-price .pay-cur { font-size: 18px; font-weight: 900; vertical-align: top; margin-right: 2px; }
.pay-price .pay-num { font-size: 40px; font-weight: 900; line-height: 1; }
.pay-tip { font-size: 12px; color: var(--ink-3); margin-top: 14px; line-height: 1.6; }
.pay-confirm { width: 100%; margin-top: 16px; padding: 13px; font-size: 16px; border-radius: 14px; }
.pay-confirm:disabled { opacity: .6; cursor: not-allowed; }
.pay-cancel { margin-top: 12px; border: none; background: transparent; color: var(--ink-3); font-size: 13.5px; cursor: pointer; }

/* 财会能力页：三线雷达图容器，整体居中且不被裁剪 */
.ck-radar { display: flex; justify-content: center; align-items: center; margin: 14px auto 8px; }
.ck-radar svg { display: block; max-width: 100%; height: auto; }

/* ============================================================
   v29 追加样式：账号体系 / 我的中心 / 扫码支付 / 六模块深度解读
   ============================================================ */

/* ---------- 顶栏右侧（账号 + 官网按钮） ---------- */
.topbar-right { display: inline-flex; align-items: center; flex: none; }
.btn-account {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; border: 1.5px solid rgba(47, 63, 120, .22); border-radius: 999px;
  background: rgba(255, 255, 255, .85); color: #2b3a67;
  font-size: 13px; font-weight: 700; letter-spacing: .3px;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.btn-account:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(36, 49, 92, .16); border-color: rgba(47, 63, 120, .45); }
.btn-account .acc-ic { font-size: 14px; }
@media (max-width: 560px) {
  .btn-account { padding: 7px 10px; font-size: 12px; }
  .topbar-right { gap: 6px; }
  .topbar-right .btn-quance { margin-left: 0; padding: 7px 10px; font-size: 12px; }
  .btn-account .acc-ic { display: none; }
}

/* ---------- 结果页：登录保存提示横幅 ---------- */
.save-hint {
  margin: 0 0 16px; padding: 12px 16px; border-radius: 14px;
  background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
  border: 1px dashed #a5b4fc; color: #3730a3;
  font-size: 13.5px; line-height: 1.7;
}
.save-hint b { color: #4338ca; }
.save-hint-btn {
  margin-left: 6px; padding: 5px 14px; border: none; border-radius: 999px;
  background: #4f46e5; color: #fff; font-size: 13px; font-weight: 700;
  cursor: pointer; white-space: nowrap;
}
.save-hint-btn:hover { background: #4338ca; }

/* ---------- 支付面板：二维码区 ---------- */
.pay-qr-box { margin-top: 14px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pay-qr-img {
  width: 208px; height: 208px; padding: 10px; border-radius: 16px;
  background: #fff; border: 1.5px solid #e9ecef; box-shadow: 0 6px 18px rgba(15, 23, 42, .08);
  display: flex; align-items: center; justify-content: center;
}
.pay-qr-img svg { width: 100%; height: 100%; display: block; }
.pay-qr-link { font-size: 13.5px; color: #4f46e5; font-weight: 700; word-break: break-all; }
.pay-qr-status { font-size: 13.5px; color: #495057; font-weight: 600; }
.pay-qr-status.warn { color: #e8590c; }
.pay-qr-order { font-size: 11.5px; color: #adb5bd; letter-spacing: .5px; }

/* ---------- 登录 / 注册弹窗 ---------- */
.auth-modal { text-align: left; }
.auth-reason {
  margin: 12px 0 4px; padding: 10px 12px; border-radius: 12px;
  background: #f5f3ff; border: 1px solid #ddd6fe; color: #5b21b6;
  font-size: 13px; line-height: 1.6;
}
.auth-form { margin-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-field span { font-size: 13px; font-weight: 700; color: var(--ink-2, #495057); }
.auth-field input {
  padding: 12px 14px; border: 1.5px solid #e9ecef; border-radius: 12px;
  font-size: 15px; outline: none; transition: border-color .18s ease;
  background: #f8f9fa;
}
.auth-field input:focus { border-color: #4f46e5; background: #fff; }
.auth-error {
  padding: 9px 12px; border-radius: 10px; background: #fff5f5;
  border: 1px solid #ffc9c9; color: #c92a2a; font-size: 13px;
}
.auth-switch {
  border: none; background: transparent; color: var(--ink-3, #868e96);
  font-size: 13px; cursor: pointer; text-align: center; padding: 2px;
}
.auth-switch b { color: #4f46e5; }
.auth-privacy { font-size: 11.5px; color: #adb5bd; text-align: center; line-height: 1.6; margin: 2px 0 0; }

/* ---------- 「我的」视图 ---------- */
.me-user {
  display: flex; align-items: center; gap: 14px;
  padding: 18px; border-radius: 18px; background: #fff;
  box-shadow: 0 6px 22px rgba(15, 23, 42, .06); margin-bottom: 16px;
}
.me-avatar {
  flex: none; width: 52px; height: 52px; border-radius: 50%;
  background: var(--grad, linear-gradient(135deg, #5c7cfa, #845ef7));
  color: #fff; font-size: 22px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.me-uinfo { flex: 1; min-width: 0; }
.me-uname { font-size: 17px; font-weight: 800; color: var(--ink-1, #212529); }
.me-uphone { font-size: 12.5px; color: var(--ink-3, #868e96); margin-top: 3px; }
.me-ustat { font-size: 12.5px; color: var(--ink-2, #495057); margin-top: 5px; }
.me-ustat b { color: #4f46e5; }
.me-logout { flex: none; padding: 8px 14px; font-size: 12.5px; border-radius: 999px; }
.me-tabs { margin-bottom: 16px; }
.me-list { display: flex; flex-direction: column; gap: 12px; }
.me-card {
  display: flex; align-items: center; gap: 12px; padding: 16px;
  border-radius: 16px; background: #fff; box-shadow: 0 4px 16px rgba(15, 23, 42, .05);
}
.me-card-body { flex: 1; min-width: 0; }
.me-card-title { font-size: 15.5px; font-weight: 800; color: var(--ink-1, #212529); }
.me-card-meta { font-size: 12px; color: var(--ink-3, #868e96); margin-top: 4px; }
.me-card-sum { font-size: 12.5px; color: var(--ink-2, #495057); margin-top: 6px; line-height: 1.6; }
.me-card-ops { flex: none; display: flex; flex-direction: column; gap: 8px; }
.me-op-btn { padding: 8px 16px; font-size: 13px; border-radius: 10px; }
.me-op-del { padding: 6px 14px; font-size: 12px; border-radius: 10px; color: #c92a2a; }
.me-empty {
  padding: 44px 20px; text-align: center; border-radius: 16px;
  background: #fff; color: var(--ink-3, #868e96); font-size: 13.5px; line-height: 1.8;
  box-shadow: 0 4px 16px rgba(15, 23, 42, .04);
}
.me-ord-table { border-radius: 16px; background: #fff; box-shadow: 0 4px 16px rgba(15, 23, 42, .05); overflow: hidden; }
.me-ord-row {
  display: grid; grid-template-columns: 1.4fr 1fr .7fr .8fr 1fr .6fr; gap: 6px;
  padding: 12px 16px; font-size: 12.5px; align-items: center;
  border-bottom: 1px solid #f1f3f5; color: var(--ink-2, #495057);
}
.me-ord-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 10px; padding: 10px 14px; background: #FFF7ED; border: 1px solid #FED7AA; border-radius: 12px; }
.me-ord-tip { font-size: 12.5px; color: #9A3412; font-weight: 600; flex: 1; }
.me-ord-clear { padding: 6px 12px; font-size: 12.5px; }
.me-ord-del { background: none; border: 1px solid #E5E7EB; color: #DC2626; font-size: 12px; padding: 4px 10px; border-radius: 8px; cursor: pointer; font-family: inherit; }
.me-ord-del:hover { background: #FEF2F2; border-color: #FCA5A5; }
.ord-dash { color: #CBD5E1; }
.me-ord-row:last-child { border-bottom: none; }
.me-ord-head { background: #f8f9fa; font-weight: 700; color: var(--ink-3, #868e96); font-size: 12px; }
.ord-no { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11.5px; color: #868e96; word-break: break-all; }
.ord-time { color: #adb5bd; font-size: 11.5px; }
.ord-ok { color: #2f9e44; font-weight: 700; }
.ord-pend { color: #e8590c; font-weight: 700; }
.ord-close { color: #adb5bd; }
@media (max-width: 640px) {
  .me-ord-row { grid-template-columns: 1.2fr .7fr .7fr .6fr; }
  .me-ord-row span:nth-child(2), .me-ord-row span:nth-child(5) { display: none; }
  .me-card { flex-direction: column; align-items: stretch; }
  .me-card-ops { flex-direction: row; }
}

/* ---------- 财会报告：人格画像六模块可展开卡片 ---------- */
.ck-deep {
  border: 1.5px solid #f1f3f5; border-radius: 14px; margin-bottom: 10px;
  background: #fff; overflow: hidden; transition: border-color .18s ease;
}
.ck-deep[open] { border-color: #ffd43b; }
.ck-deep summary {
  list-style: none; cursor: pointer; padding: 13px 16px;
  display: flex; align-items: center; gap: 10px;
  font-size: 14.5px; font-weight: 700; color: var(--ink-1, #212529);
  user-select: none;
}
.ck-deep summary::-webkit-details-marker { display: none; }
.ck-deep-ic { font-size: 17px; }
.ck-deep-arrow { margin-left: auto; color: #adb5bd; font-size: 13px; transition: transform .2s ease; }
.ck-deep[open] .ck-deep-arrow { transform: rotate(180deg); }
.ck-deep-body { padding: 2px 16px 14px; }
.ck-deep-p { font-size: 13.5px; line-height: 1.9; color: var(--ink-2, #495057); margin: 8px 0; }

/* ---------- v13 追加：管理后台 / 忘记密码 ---------- */
.auth-forgot {
  border: none; background: transparent; color: #868e96; font-size: 12.5px;
  cursor: pointer; text-align: center; padding: 0;
}
.auth-forgot:hover { color: #4f46e5; }

.me-admin-entry { margin: -8px 0 16px; text-align: right; }
.me-admin-btn { padding: 8px 18px; font-size: 13px; border-radius: 999px; }

.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-bottom: 16px; }
.admin-stat-card {
  background: #fff; border-radius: 16px; padding: 16px 14px; text-align: center;
  box-shadow: 0 4px 16px rgba(15, 23, 42, .05);
}
.asc-val { font-size: 24px; font-weight: 800; color: #4f46e5; }
.asc-label { font-size: 12.5px; color: #868e96; margin-top: 4px; }
.asc-sub { font-size: 11px; color: #adb5bd; margin-top: 2px; }

.admin-usr-table .me-ord-row, .admin-ord-table .me-ord-row {
  grid-template-columns: 1.3fr 1.2fr .5fr .5fr 1fr; align-items: center;
}
.admin-ord-table .me-ord-row { grid-template-columns: 1.3fr 1fr 1fr .6fr .8fr 1.2fr; }
.admin-mini-btn {
  padding: 6px 12px; border: 1.5px solid #ddd6fe; border-radius: 999px;
  background: #f5f3ff; color: #5b21b6; font-size: 12px; font-weight: 700;
  cursor: pointer; white-space: nowrap;
}
.admin-mini-btn:hover { background: #ede9fe; border-color: #c4b5fd; }
@media (max-width: 640px) {
  .admin-usr-table .me-ord-row { grid-template-columns: 1.4fr 1fr 1fr; }
  .admin-usr-table .me-ord-row span:nth-child(3), .admin-usr-table .me-ord-row span:nth-child(5) { display: none; }
  .admin-ord-table .me-ord-row { grid-template-columns: 1fr .6fr .8fr 1fr; }
  .admin-ord-table .me-ord-row span:nth-child(2), .admin-ord-table .me-ord-row span:nth-child(3) { display: none; }
}

/* ---------- 答题鼓励动画弹层 ---------- */
.cheer-pop {
  position: fixed; z-index: 9999; left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(.3);
  width: 240px; height: 240px; border-radius: 24px;
  pointer-events: none; overflow: hidden;
  box-shadow: 0 20px 60px rgba(15, 23, 42, .35);
  animation: cheerIn .45s cubic-bezier(.2, 1.4, .4, 1) forwards;
}
.cheer-pop img { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes cheerIn {
  0% { transform: translate(-50%, -50%) scale(.3); opacity: 0; }
  60% { transform: translate(-50%, -50%) scale(1.06); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}
.cheer-pop.cheer-out { animation: cheerOut .4s ease forwards; }
@keyframes cheerOut {
  to { transform: translate(-50%, -50%) scale(.5); opacity: 0; }
}
@media (max-width: 560px) {
  .cheer-pop { width: 200px; height: 200px; border-radius: 20px; }
}

/* ---------- 后台危险操作按钮(退款/删除) ---------- */
.admin-mini-btn.danger { border-color: #ffc9c9; background: #fff5f5; color: #c92a2a; }
.admin-mini-btn.danger:hover { background: #ffe3e3; border-color: #ffa8a8; }
/* ===== 专项闯关入口：母题闯关 ===== */
.muti-banner{
  display:flex;align-items:center;gap:14px;
  margin:18px auto 6px;max-width:980px;padding:16px 18px;
  background:linear-gradient(135deg,#ffffff,#f2fbf7);
  border:1px solid #cfe9dd;border-radius:18px;text-decoration:none;color:inherit;
  box-shadow:0 8px 22px rgba(43,138,104,.08);transition:.2s;
}
.muti-banner:active{transform:scale(.995)}
.mb-ico{
  flex:0 0 auto;width:46px;height:46px;border-radius:14px;
  background:linear-gradient(135deg,#2fae83,#67cfa4);color:#fff;
  display:flex;align-items:center;justify-content:center;font-size:20px;font-weight:900;
}
.mb-txt{flex:1;min-width:0}
.mb-top{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.mb-top h2{font-size:15.5px;font-weight:900;color:#1f2d27;margin:0;line-height:1.4}
.mb-chip{
  font-size:10.5px;font-weight:800;color:#fff;background:#ff6b4a;
  border-radius:999px;padding:2px 8px;white-space:nowrap;
}
.mb-txt p{font-size:12.5px;color:#5c7067;margin:4px 0 0;line-height:1.6}
.mb-go{flex:0 0 auto;font-size:12.5px;font-weight:800;color:#1f8f68;white-space:nowrap}
@media (max-width:520px){
  .muti-banner{padding:14px;gap:10px}
  .mb-ico{width:40px;height:40px;font-size:17px;border-radius:12px}
  .mb-txt p{font-size:11.5px}
  .mb-go{display:none}
}

/* —— ICP 备案号 footer（合规公示） —— */
.quiz-beian{margin-top:30px;padding:20px 16px 30px;text-align:center;font-size:12.5px;color:#8a8f99;line-height:1.8;border-top:1px solid rgba(0,0,0,.05)}
.quiz-beian a{color:#8a8f99;text-decoration:none}
.quiz-beian a:hover{color:#0c7a58;text-decoration:underline}
