:root {
  --radius: 20px;
  --radius-sm: 14px;
  --font-serif: "Songti SC", "STSong", "Noto Serif SC", "PingFang SC", Georgia, serif;
  --font-sans: "PingFang SC", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
}

/* ==================== 正式主题：午夜紫雾 × 月光银紫 ==================== */
body.theme-midnight {
  --bg: #0f101c;
  --bg-card: rgba(25, 24, 42, 0.86);
  --bg-card-deep: rgba(15, 16, 28, 0.94);
  --bg-surface: rgba(255, 255, 255, 0.045);
  --bg-panel: rgba(8, 9, 18, 0.42);
  --bg-featured: linear-gradient(155deg, rgba(48, 40, 78, 0.92) 0%, rgba(22, 22, 38, 0.94) 100%);
  --border: rgba(226, 218, 255, 0.11);
  --border-strong: rgba(226, 218, 255, 0.2);
  --text: #f5f2fa;
  --text-body: #d3cee2;
  --text-muted: #a6a0bc;
  --text-dim: #777192;
  --title-grad: linear-gradient(180deg, #ffffff 0%, #dcd4f5 100%);
  --accent: #bda8ff;
  --accent-strong: #d5c6ff;
  --accent-text: #151126;
  --accent-soft: rgba(189, 168, 255, 0.13);
  --accent-border: rgba(189, 168, 255, 0.38);
  --accent-glow: rgba(184, 164, 248, 0.25);
  --btn-primary-bg: linear-gradient(135deg, #ddd1ff 0%, #a48af2 100%);
  --btn-primary-text: #151126;
  --progress-grad: linear-gradient(90deg, #7e67c9, #d5c6ff);
  --grain-color: rgba(255, 255, 255, 0.8);
  --shadow-card: 0 18px 46px rgba(6, 5, 16, 0.5);
  --divider-bg: #171628;
}

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

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background-color 0.35s ease, color 0.35s ease;
}

.film-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.045;
  background-image: radial-gradient(var(--grain-color) 0.5px, transparent 0.5px);
  background-size: 4px 4px;
}

.ambient-glow {
  position: fixed;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transition: background 0.5s ease;
}

.app-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 20px 18px 40px;
}

.view {
  display: none;
  animation: fadeUp 0.36s cubic-bezier(0.16, 1, 0.3, 1);
}

.view.active {
  display: block;
}

.hidden {
  display: none !important;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==================== 0. 4位校验码解锁门禁页 ==================== */
.gate-wrap {
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 12px 0 20px;
}

.gate-emblem {
  position: relative;
  width: 74px;
  height: 74px;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(189, 168, 255, 0.24) 0%, rgba(72, 56, 128, 0.42) 100%);
  border: 1px solid var(--accent-border);
  box-shadow: 0 14px 34px rgba(132, 104, 224, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #efe9ff;
  margin-bottom: 18px;
}

.gate-emblem-ring {
  position: absolute;
  inset: -6px;
  border-radius: 26px;
  border: 1px dashed rgba(189, 168, 255, 0.28);
  pointer-events: none;
}

.gate-lock-svg {
  width: 32px;
  height: 32px;
}

.gate-title {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 6px;
  background: var(--title-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gate-en {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--accent);
  opacity: 0.85;
  margin: 0 0 26px;
}

.gate-card {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  padding: 22px 18px 18px;
  text-align: center;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(14px);
  margin-bottom: 16px;
}

.gate-card.shake {
  animation: gateShake 0.36s ease;
  border-color: rgba(242, 118, 138, 0.7);
}

@keyframes gateShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(7px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}

.gate-card-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-strong);
  margin-bottom: 16px;
}

.pin-box {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 268px;
  margin: 0 auto 14px;
}

.pin-digit {
  width: 100%;
  height: 58px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: var(--bg-panel);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  outline: none;
  caret-color: var(--accent);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.pin-digit:focus {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px rgba(189, 168, 255, 0.16);
}

.pin-digit.filled {
  border-color: var(--accent-border);
}

.gate-tip {
  margin: 0;
  font-size: 12px;
  color: var(--text-dim);
  min-height: 18px;
}

.gate-tip.error {
  color: #f38ba0;
}

.gate-notice {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 20px;
}

.gate-notice-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.notice-badge {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gate-notice p {
  margin: 0;
  font-size: 12.8px;
  color: var(--text-muted);
  line-height: 1.65;
}

.gate-submit {
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}

.gate-author {
  margin: 0;
  font-size: 12px;
  color: var(--text-dim);
  padding-bottom: 2px;
  border-bottom: 1px dashed rgba(189, 168, 255, 0.28);
}

/* ==================== 首页样式 ==================== */
.top-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 26px;
}

.badge-mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent);
  border: 1px solid var(--accent-border);
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
}

.badge-dot {
  font-size: 12px;
  color: var(--text-muted);
}

.hero-block {
  text-align: center;
  margin-bottom: 26px;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--text-dim);
  margin: 0 0 10px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin: 0 0 10px;
  background: var(--title-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 15px;
  color: var(--text);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.vs-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-text);
  background: var(--accent);
  padding: 1px 7px;
  border-radius: 6px;
}

.hero-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.75;
}

.mode-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.mode-card {
  position: relative;
  width: 100%;
  text-align: left;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  color: var(--text);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  backdrop-filter: blur(12px);
}

.mode-card:active {
  transform: scale(0.985);
}

.mode-card:hover {
  border-color: var(--border-strong);
}

.mode-card-featured {
  border-color: var(--accent-border);
  background: var(--bg-featured);
  box-shadow: var(--shadow-card);
}

.featured-ribbon {
  position: absolute;
  top: -10px;
  right: 16px;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.mode-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.mode-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.tag-gold {
  color: var(--accent);
}

.mode-time {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-dim);
}

.mode-title {
  font-family: var(--font-serif);
  font-size: 20px;
  margin: 0 0 6px;
  font-weight: 600;
  color: var(--text);
}

.mode-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 14px;
  line-height: 1.6;
}

.mode-desc strong {
  color: var(--text);
  font-weight: 600;
}

.mode-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-body);
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}

.cta-gold {
  color: var(--accent);
}

.history-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 18px;
}

.history-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.history-count {
  font-family: var(--font-mono);
  color: var(--accent);
}

.history-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.history-name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
}

.history-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.history-tip {
  font-size: 12px;
  color: var(--text-dim);
  margin: 10px 0 0;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.history-tip strong {
  color: var(--text);
}

.landing-footer {
  text-align: center;
  font-size: 11.5px;
  color: var(--text-dim);
  margin-top: 14px;
}

/* ==================== 答题页样式 ==================== */
.quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text);
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.icon-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.quiz-progress-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.mode-mini {
  font-size: 11px;
  color: var(--text-dim);
}

.counter-mono {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.progress-track {
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 18px;
}

.progress-fill {
  height: 100%;
  width: 4%;
  background: var(--progress-grad);
  border-radius: 999px;
  transition: width 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.milestone-toast {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--text);
  font-size: 12.5px;
  padding: 9px 13px;
  border-radius: 12px;
  margin-bottom: 16px;
  animation: fadeUp 0.3s ease;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 8px var(--accent);
}

.question-stage {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px;
  min-height: 410px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
}

.question-stage.switching {
  animation: cardSwap 0.24s ease;
}

@keyframes cardSwap {
  from { opacity: 0.35; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

.scene-chip {
  display: inline-block;
  align-self: flex-start;
  font-size: 12px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.question-text {
  font-family: var(--font-serif);
  font-size: 19.5px;
  font-weight: 600;
  line-height: 1.5;
  margin: 0 0 18px;
  color: var(--text);
}

.options-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-btn {
  width: 100%;
  text-align: left;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  color: var(--text-body);
  font-size: 13.8px;
  line-height: 1.55;
  cursor: pointer;
  display: flex;
  gap: 11px;
  align-items: flex-start;
  transition: transform 0.14s ease, border-color 0.16s ease, background 0.16s ease;
}

.option-btn:active {
  transform: scale(0.985);
}

.option-btn.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text);
}

.option-key {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.option-btn.selected .option-key {
  background: var(--accent);
  color: var(--accent-text);
}

.swap-row {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.btn-swap-q {
  background: rgba(189, 168, 255, 0.08);
  border: 1px solid rgba(189, 168, 255, 0.3);
  color: var(--text-main);
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-swap-q:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--text-main);
  background: rgba(189, 168, 255, 0.16);
}

.btn-swap-q:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.quiz-hint {
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 14px;
}

/* ==================== 显影过渡页 ==================== */
.analyzing-box {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.scanner-ring {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: spin 1.1s linear infinite;
  margin-bottom: 24px;
}

.scanner-core {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 72%);
  opacity: 0.8;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.analyzing-mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin: 0 0 8px;
}

.analyzing-title {
  font-family: var(--font-serif);
  font-size: 22px;
  margin: 0 0 8px;
}

.analyzing-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

/* ==================== 结果档案页 ==================== */
.result-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.btn-ghost-sm {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 12.5px;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.retest-banner {
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--text);
  font-size: 12.5px;
  padding: 10px 14px;
  border-radius: 12px;
  margin-bottom: 14px;
  line-height: 1.55;
}

.archive-card {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  padding: 22px 18px 24px;
  box-shadow: var(--shadow-card);
  margin-bottom: 18px;
}

.archive-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.archive-no {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

.stamp {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 2px 7px;
  border-radius: 4px;
  opacity: 0.85;
}

.res-eyebrow {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 0 0 4px;
  text-align: center;
}

.res-name {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 4px;
  color: var(--text);
  letter-spacing: 0.06em;
}

.res-en-name {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-align: center;
  color: var(--accent);
  margin: 0 0 14px;
}

.res-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
}

.res-tag {
  font-size: 12px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-body);
}

.contrast-meter {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 14px 12px;
  margin-bottom: 16px;
}

.contrast-meter-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.contrast-label {
  font-size: 12.5px;
  color: var(--text-muted);
}

.contrast-val {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
}

.contrast-bar-track {
  height: 7px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
}

.contrast-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--progress-grad);
  border-radius: 999px;
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.contrast-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

.res-oneliner {
  margin: 0 0 18px;
  padding: 14px 15px;
  border-left: 3px solid var(--accent);
  background: var(--bg-surface);
  border-radius: 0 12px 12px 0;
  font-family: var(--font-serif);
  font-size: 15.5px;
  color: var(--text);
  line-height: 1.65;
}

.dual-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}

.dual-box {
  border-radius: var(--radius-sm);
  padding: 14px 15px;
  border: 1px solid var(--border);
}

.dual-surface {
  background: var(--bg-surface);
}

.dual-truth {
  background: var(--accent-soft);
  border-color: var(--accent-border);
}

.dual-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.dual-box p,
.detail-block p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-body);
  line-height: 1.72;
}

.detail-block {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 15px;
  margin-bottom: 12px;
}

.detail-healing {
  background: var(--bg-panel);
}

.detail-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 6px;
}

.match-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.match-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.match-label {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.match-name {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 4px;
}

.match-desc {
  margin: 0;
  font-size: 12px;
  color: var(--text-body);
  line-height: 1.55;
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 22px 0 16px;
  position: relative;
}

.section-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
}

.section-divider span {
  position: relative;
  background: var(--divider-bg);
  padding: 2px 12px;
  font-size: 11.5px;
  font-family: var(--font-mono);
  color: var(--accent);
  letter-spacing: 0.06em;
}

.radar-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 14px;
  margin-bottom: 16px;
}

.radar-card-end {
  margin-top: 18px;
  margin-bottom: 14px;
}

.result-disclaimer {
  margin: 12px 0 0;
  text-align: center;
  font-size: 11px;
  line-height: 1.6;
  color: var(--text-dim);
  opacity: 0.9;
}

.radar-wrap {
  display: flex;
  justify-content: center;
  margin: 6px 0 12px;
}

.dim-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.dim-stat-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  color: var(--text-body);
}

.dim-stat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dim-stat-val {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent);
}

.dim-stat-bar {
  height: 4px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}

.dim-stat-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
}

.upgrade-banner {
  margin-top: 18px;
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--accent-border);
  background: var(--accent-soft);
  text-align: center;
}

.upgrade-badge {
  font-size: 11.5px;
  color: var(--accent);
  margin-bottom: 6px;
}

.upgrade-banner h3 {
  font-family: var(--font-serif);
  font-size: 16px;
  margin: 0 0 6px;
  color: var(--text);
}

.upgrade-banner p {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 0 0 12px;
}

.btn-gold-block {
  width: 100%;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  padding: 11px 14px;
  border-radius: 12px;
  cursor: pointer;
}

.result-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-primary-lg {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border: none;
  border-radius: 14px;
  padding: 15px 18px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-card);
}

.btn-primary-lg:active {
  transform: scale(0.985);
}

.action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: 13px;
  padding: 12px 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

/* ==================== 海报弹窗 ==================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 5, 8, 0.78);
  backdrop-filter: blur(8px);
}

.modal-sheet {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 390px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--bg-card-deep);
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  padding: 16px;
  color: var(--text);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}

.poster-preview-wrap {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 14px;
  background: var(--bg);
}

.poster-preview-wrap img {
  display: block;
  width: 100%;
  height: auto;
}

.modal-tip {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin: 10px 0 2px;
}

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  background: var(--bg-card-deep);
  border: 1px solid var(--accent-border);
  color: var(--text);
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow-card);
  white-space: nowrap;
}

/* ==================== 升级版新增样式：首页图鉴 + 章节闯关 + 潜伏副人格 ==================== */
.archetype-preview {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 14px 14px;
  margin-bottom: 18px;
  backdrop-filter: blur(12px);
}

.archetype-preview-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
  padding: 0 2px;
}

.archetype-preview-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-strong);
}

.archetype-preview-sub {
  font-size: 11.5px;
  color: var(--text-dim);
}

.archetype-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.archetype-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 10px;
}

.archetype-icon {
  font-size: 17px;
  line-height: 1;
  flex-shrink: 0;
}

.archetype-info {
  min-width: 0;
}

.archetype-name {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.archetype-tag {
  font-size: 11px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quiz-percent {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  min-width: 36px;
  text-align: right;
}

.quiz-chapter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding: 0 2px;
}

.quiz-chapter-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-strong);
}

.quiz-chapter-step {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}

.quiz-footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}

.btn-prev-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-body);
  font-size: 12.5px;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: opacity 0.16s ease, border-color 0.16s ease;
}

.btn-prev-pill:hover:not(:disabled) {
  border-color: var(--accent-border);
  color: var(--text);
}

.btn-prev-pill:disabled {
  opacity: 0.32;
  cursor: not-allowed;
}

.auto-next-tip {
  font-size: 11.5px;
  color: var(--text-dim);
}

.sub-persona-card {
  margin-top: 14px;
  background: linear-gradient(155deg, rgba(189, 168, 255, 0.08) 0%, rgba(15, 16, 28, 0.55) 100%);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-sm);
  padding: 14px 15px;
}

.sub-persona-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.sub-persona-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
}

.sub-persona-pct {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent-strong);
  background: var(--accent-soft);
  padding: 2px 9px;
  border-radius: 999px;
}

.sub-persona-main {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.sub-persona-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.sub-persona-name {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.sub-persona-tag {
  font-size: 11.5px;
  color: var(--text-muted);
}

.sub-persona-desc {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-body);
  line-height: 1.65;
}

/* ==================== 完整双册大厅 & 跨卷联动样式 ==================== */
.hub-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 22px;
}

.hub-card {
  position: relative;
  width: 100%;
  text-align: left;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 20px 18px 16px;
  color: var(--text);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  backdrop-filter: blur(12px);
}

.hub-card:active {
  transform: scale(0.985);
}

.hub-card-vol2 {
  border-color: var(--accent-border);
  background: var(--bg-featured);
  box-shadow: var(--shadow-card);
}

.hub-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.hub-vol-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.hub-status {
  font-size: 11.5px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
}

.hub-status.done {
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-color: var(--accent-border);
}

.hub-card-title {
  font-family: var(--font-serif);
  font-size: 21px;
  margin: 0 0 8px;
  color: var(--text);
}

.hub-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 14px;
  line-height: 1.65;
}

.hub-card-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-body);
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}

.btn-vol2-link {
  width: 100%;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent-strong);
  border-radius: 14px;
  padding: 13px 16px;
  font-size: 13.8px;
  font-weight: 600;
  cursor: pointer;
}

.linkage-card {
  background: linear-gradient(145deg, rgba(189, 168, 255, 0.16) 0%, rgba(45, 36, 78, 0.28) 100%);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-sm);
  padding: 15px 15px;
  margin-bottom: 16px;
}

.linkage-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-strong);
  background: rgba(15, 16, 28, 0.55);
  border: 1px solid var(--accent-border);
  padding: 2px 9px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.linkage-card p {
  margin: 0;
  font-size: 13.3px;
  color: var(--text);
  line-height: 1.72;
}

/* ==================== 下卷专属主题：暖雾暮紫驼 × 奶油蜜桃金（温柔治愈感） ==================== */
body.theme-healing {
  --bg: #352a38;
  --bg-card: rgba(255, 250, 246, 0.095);
  --bg-card-deep: rgba(50, 39, 53, 0.96);
  --bg-surface: rgba(255, 238, 226, 0.085);
  --bg-panel: rgba(28, 19, 31, 0.34);
  --bg-featured: linear-gradient(155deg, rgba(246, 200, 174, 0.22) 0%, rgba(68, 52, 72, 0.84) 100%);
  --border: rgba(255, 226, 208, 0.18);
  --border-strong: rgba(255, 226, 208, 0.32);
  --text: #fff9f5;
  --text-body: #f1e3dc;
  --text-muted: #d1bec2;
  --text-dim: #a6919a;
  --title-grad: linear-gradient(180deg, #ffffff 0%, #fce0cc 100%);
  --accent: #f6c8ae;
  --accent-strong: #ffe3d1;
  --accent-text: #2b1d24;
  --accent-soft: rgba(246, 200, 174, 0.16);
  --accent-border: rgba(246, 200, 174, 0.45);
  --accent-glow: rgba(246, 200, 174, 0.28);
  --btn-primary-bg: linear-gradient(135deg, #ffe5d4 0%, #e5ae90 100%);
  --btn-primary-text: #2b1d24;
  --progress-grad: linear-gradient(90deg, #c78b73, #ffdcc6);
  --grain-color: rgba(255, 242, 234, 0.65);
  --shadow-card: 0 16px 40px rgba(24, 14, 28, 0.3);
  --divider-bg: #3b2f3f;
  background: linear-gradient(165deg, #3e3142 0%, #322736 52%, #3a2b36 100%);
  background-attachment: fixed;
}

/* ==================== 完整双册大厅专属主题：星夜雾紫 × 柔光香槟金 ==================== */
body.theme-bundle {
  --bg: #2d2649;
  --bg-card: rgba(255, 255, 255, 0.095);
  --bg-card-deep: rgba(42, 35, 70, 0.96);
  --bg-surface: rgba(255, 248, 235, 0.08);
  --bg-panel: rgba(24, 18, 46, 0.34);
  --bg-featured: linear-gradient(155deg, rgba(242, 213, 155, 0.22) 0%, rgba(60, 48, 98, 0.84) 100%);
  --border: rgba(248, 228, 188, 0.18);
  --border-strong: rgba(248, 228, 188, 0.32);
  --text: #fffcf6;
  --text-body: #eee6f5;
  --text-muted: #c9bfd9;
  --text-dim: #9e93b8;
  --title-grad: linear-gradient(180deg, #ffffff 0%, #f7e4bc 100%);
  --accent: #f2d59b;
  --accent-strong: #fce8be;
  --accent-text: #261d12;
  --accent-soft: rgba(242, 213, 155, 0.16);
  --accent-border: rgba(242, 213, 155, 0.45);
  --accent-glow: rgba(242, 213, 155, 0.26);
  --btn-primary-bg: linear-gradient(135deg, #fce8be 0%, #e0ba72 100%);
  --btn-primary-text: #261d12;
  --progress-grad: linear-gradient(90deg, #c79e54, #fae5b8);
  --grain-color: rgba(255, 248, 235, 0.65);
  --shadow-card: 0 16px 40px rgba(18, 12, 38, 0.32);
  --divider-bg: #322a52;
  background: linear-gradient(165deg, #352c57 0%, #2a2346 52%, #32274c 100%);
  background-attachment: fixed;
}

body.theme-bundle .hub-card.is-done {
  opacity: 0.78;
  border-style: dashed;
  border-color: rgba(242, 213, 155, 0.35);
  background: rgba(255, 255, 255, 0.055);
}

body.theme-bundle .hub-status.done {
  color: #261d12;
  background: #f2d59b;
  border-color: #f2d59b;
}

body.theme-bundle .hub-card.is-next {
  border: 1.5px solid #f6c8ae;
  background: linear-gradient(155deg, rgba(246, 200, 174, 0.22) 0%, rgba(62, 46, 68, 0.86) 100%);
  box-shadow: 0 0 0 1px rgba(246, 200, 174, 0.26), 0 16px 38px rgba(18, 12, 34, 0.34);
}

body.theme-bundle .hub-card.is-next .featured-ribbon {
  background: linear-gradient(90deg, #ffe5d4, #e5ae90);
  color: #2b1d24;
}

body.theme-bundle .hub-card.is-next .hub-card-cta,
body.theme-bundle .hub-card.is-next .hub-vol-tag {
  color: #ffe3d1;
}

/* 双册大厅：已测过的上卷 vs 推荐下一步的下卷 显眼区分 */
.hub-card.is-done {
  opacity: 0.76;
  border-style: dashed;
  border-color: rgba(122, 220, 200, 0.35);
  background: rgba(18, 22, 34, 0.62);
}

.hub-card.is-done .hub-card-title {
  color: var(--text-muted);
}

.hub-status.done {
  color: #08201c;
  background: #7adcc8;
  border-color: #7adcc8;
  font-weight: 700;
}

.hub-card.is-next {
  border: 1.5px solid #7adcc8;
  background: linear-gradient(155deg, rgba(22, 52, 54, 0.94) 0%, rgba(16, 28, 36, 0.96) 100%);
  box-shadow: 0 0 0 1px rgba(122, 220, 200, 0.2), 0 16px 40px rgba(34, 148, 130, 0.24);
}

.hub-card.is-next .featured-ribbon {
  background: linear-gradient(90deg, #9cf0de, #5ec9b5);
  color: #071c1a;
}

.hub-card.is-next .hub-card-cta,
.hub-card.is-next .hub-vol-tag {
  color: #9cf0de;
}

/* ==================== 临时全站配色试穿条 ==================== */
.theme-switcher {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 10px;
  background: var(--bg-card-deep);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.ts-label {
  font-size: 11px;
  color: var(--text-dim);
  margin-right: 2px;
}

.ts-btn {
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ts-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
}

/* ==================== 方案 1：柔雾珍珠紫 × 薰衣草紫（浅色磨砂高级感） ==================== */
body.theme-pearl {
  --bg: #f1eef9;
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-card-deep: rgba(246, 243, 252, 0.96);
  --bg-surface: rgba(108, 86, 198, 0.055);
  --bg-panel: rgba(108, 86, 198, 0.065);
  --bg-featured: linear-gradient(155deg, #ffffff 0%, #ede7fb 100%);
  --border: rgba(88, 68, 168, 0.13);
  --border-strong: rgba(88, 68, 168, 0.24);
  --text: #221c3a;
  --text-body: #423a5e;
  --text-muted: #6e668a;
  --text-dim: #928bad;
  --title-grad: linear-gradient(180deg, #241b45 0%, #58459e 100%);
  --accent: #6f56d9;
  --accent-strong: #583ec4;
  --accent-text: #ffffff;
  --accent-soft: rgba(111, 86, 217, 0.1);
  --accent-border: rgba(111, 86, 217, 0.34);
  --accent-glow: rgba(139, 114, 242, 0.2);
  --btn-primary-bg: linear-gradient(135deg, #7e65e6 0%, #5e44c9 100%);
  --btn-primary-text: #ffffff;
  --progress-grad: linear-gradient(90deg, #9882f2, #6449d1);
  --grain-color: rgba(68, 52, 130, 0.35);
  --shadow-card: 0 12px 32px rgba(74, 56, 148, 0.09);
  --divider-bg: #faf8ff;
}

body.theme-pearl .gate-emblem {
  background: linear-gradient(145deg, #866ee8 0%, #5f45c7 100%);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(108, 82, 214, 0.28);
}

body.theme-pearl .hub-card.is-done {
  background: rgba(244, 241, 252, 0.78);
  border-color: rgba(111, 86, 217, 0.25);
}

body.theme-pearl .hub-card.is-next {
  border-color: #6f56d9;
  background: linear-gradient(155deg, #ffffff 0%, #ebe4fc 100%);
  box-shadow: 0 12px 30px rgba(111, 86, 217, 0.16);
}

body.theme-pearl .hub-card.is-next .featured-ribbon {
  background: linear-gradient(90deg, #7e65e6, #5e44c9);
  color: #ffffff;
}

body.theme-pearl .hub-card.is-next .hub-card-cta,
body.theme-pearl .hub-card.is-next .hub-vol-tag {
  color: #583ec4;
}

/* ==================== 最终正式主题：清透暮色雾蓝 × 香槟玫瑰金 ==================== */
body.theme-bluehour {
  --bg: #242d4a;
  --bg-card: rgba(255, 255, 255, 0.095);
  --bg-card-deep: rgba(34, 43, 71, 0.96);
  --bg-surface: rgba(255, 245, 248, 0.08);
  --bg-panel: rgba(20, 27, 48, 0.34);
  --bg-featured: linear-gradient(155deg, rgba(243, 196, 207, 0.2) 0%, rgba(49, 59, 94, 0.78) 100%);
  --border: rgba(255, 232, 238, 0.18);
  --border-strong: rgba(255, 232, 238, 0.3);
  --text: #fffafc;
  --text-body: #eee3e8;
  --text-muted: #c9c3d8;
  --text-dim: #9fa0bd;
  --title-grad: linear-gradient(180deg, #ffffff 0%, #fbdce4 100%);
  --accent: #f4c4d0;
  --accent-strong: #ffe0e8;
  --accent-text: #261b30;
  --accent-soft: rgba(244, 196, 208, 0.16);
  --accent-border: rgba(244, 196, 208, 0.44);
  --accent-glow: rgba(244, 196, 208, 0.26);
  --btn-primary-bg: linear-gradient(135deg, #ffe3ea 0%, #e4a3b5 100%);
  --btn-primary-text: #261b30;
  --progress-grad: linear-gradient(90deg, #c2879d, #ffd9e3);
  --grain-color: rgba(255, 245, 248, 0.65);
  --shadow-card: 0 16px 40px rgba(14, 20, 40, 0.28);
  --divider-bg: #2a3454;
  background: linear-gradient(165deg, #2b3556 0%, #222b47 52%, #292d4a 100%);
  background-attachment: fixed;
}

body.theme-bluehour .gate-emblem {
  background: linear-gradient(145deg, rgba(244, 196, 208, 0.34) 0%, rgba(114, 88, 132, 0.48) 100%);
  color: #fff6f8;
  box-shadow: 0 14px 32px rgba(18, 22, 44, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

body.theme-bluehour .hub-card.is-done {
  opacity: 0.78;
  border-style: dashed;
  border-color: rgba(244, 196, 208, 0.34);
  background: rgba(255, 255, 255, 0.055);
}

body.theme-bluehour .hub-card.is-next {
  border: 1.5px solid #f4c4d0;
  background: linear-gradient(155deg, rgba(244, 196, 208, 0.22) 0%, rgba(56, 65, 102, 0.82) 100%);
  box-shadow: 0 0 0 1px rgba(244, 196, 208, 0.24), 0 16px 38px rgba(18, 22, 44, 0.34);
}

body.theme-bluehour .hub-card.is-next .featured-ribbon {
  background: linear-gradient(90deg, #ffe3ea, #e4a3b5);
  color: #261b30;
}

body.theme-bluehour .hub-card.is-next .hub-card-cta,
body.theme-bluehour .hub-card.is-next .hub-vol-tag {
  color: #ffe0e8;
}

body.theme-bluehour .hub-status.done {
  color: #261b30;
  background: #f4c4d0;
  border-color: #f4c4d0;
}

/* ==================== 大五标准 5 点李克特直觉量表 ==================== */
.likert-wrap {
  margin-top: 8px;
}

.likert-scale {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  align-items: center;
}

.likert-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 4px 12px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.likert-btn:active {
  transform: scale(0.95);
}

.likert-dot {
  border-radius: 50%;
  border: 2px solid var(--accent-border);
  background: transparent;
  transition: all 0.18s ease;
}

.likert-btn[data-val="1"] .likert-dot,
.likert-btn[data-val="5"] .likert-dot {
  width: 34px;
  height: 34px;
}

.likert-btn[data-val="2"] .likert-dot,
.likert-btn[data-val="4"] .likert-dot {
  width: 27px;
  height: 27px;
}

.likert-btn[data-val="3"] .likert-dot {
  width: 21px;
  height: 21px;
  border-color: var(--border-strong);
}

.likert-label {
  font-size: 11px;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
}

.likert-btn.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text);
}

.likert-btn.selected .likert-dot {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent-glow);
}

.likert-poles {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 10px;
  padding: 0 4px;
}

/* ==================== 偏好代码条 / 混合画像 / 作答证据卡 / 双极标尺 ==================== */
.pref-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 0 0 14px;
}

.pref-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent-strong);
}

.blend-banner {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px dashed var(--accent-border);
  border-radius: var(--radius-sm);
  padding: 14px 15px;
  margin-bottom: 16px;
}

.blend-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent-strong);
  margin-bottom: 6px;
}

.blend-banner p {
  margin: 0;
  font-size: 12.8px;
  color: var(--text-body);
  line-height: 1.68;
}

.evidence-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 15px 15px 14px;
  margin-bottom: 16px;
}

.evidence-list {
  list-style: none;
  margin: 8px 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.evidence-item {
  font-size: 12.8px;
  color: var(--text-body);
  line-height: 1.55;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
}

.evidence-choice {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-text);
  background: var(--accent);
  padding: 1px 6px;
  border-radius: 5px;
  margin-right: 6px;
}

.evidence-diff {
  font-size: 12.6px;
  color: var(--text);
  line-height: 1.65;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  margin: 0;
}

/* 透明双极偏好标尺 */
.bipolar-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.bipolar-row {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 10px 12px;
}

.bipolar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  margin-bottom: 6px;
}

.bipolar-side {
  color: var(--text-muted);
}

.bipolar-side.active {
  color: var(--accent-strong);
  font-weight: 700;
}

.bipolar-mid-tag {
  font-size: 11px;
  color: var(--text-dim);
}

.bipolar-track {
  position: relative;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.bipolar-center-tick {
  position: absolute;
  left: 50%;
  top: -3px;
  width: 1.5px;
  height: 13px;
  background: rgba(255, 255, 255, 0.28);
  transform: translateX(-50%);
}

.bipolar-fill {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
}

.bipolar-dot {
  position: absolute;
  top: 50%;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--accent-strong);
  border: 2px solid var(--bg);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px var(--accent-glow);
}

/* ==================== 断点续做 / 时间锚点 / 不适用按钮 / 提交前核对页 ==================== */
.resume-card {
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.resume-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.resume-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.resume-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.time-anchor-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.btn-na-skip {
  width: 100%;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px dashed var(--border-strong);
  background: transparent;
  color: var(--text-muted);
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.btn-na-skip:hover,
.btn-na-skip.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text);
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 22px 18px;
  box-shadow: var(--shadow-card);
  margin-bottom: 16px;
}

.review-title {
  font-family: var(--font-serif);
  font-size: 22px;
  margin: 0 0 6px;
  color: var(--text);
}

.review-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 16px;
  line-height: 1.6;
}

.review-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 52vh;
  overflow-y: auto;
  padding-right: 2px;
  margin-bottom: 16px;
}

.review-cell {
  width: 100%;
  text-align: left;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text);
  padding: 10px 12px;
  font-size: 12.5px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.review-cell-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.review-cell-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  flex-shrink: 0;
}

.review-cell-text {
  font-size: 12.5px;
  color: var(--text-body);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.review-cell-val {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  padding: 2px 8px;
  border-radius: 999px;
  flex-shrink: 0;
}

.review-cell.is-na {
  border-style: dashed;
  opacity: 0.72;
}

.review-cell.is-na .review-cell-val {
  color: var(--text-muted);
  background: transparent;
  border-color: var(--border);
}

.evidence-support {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--accent-strong);
}

.btn-return-review {
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent-strong);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

/* ==================== 三态可读性增强与读图说明 ==================== */
.radar-note {
  margin: 4px 0 12px;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(241, 227, 220, 0.72);
}

.pref-pill.is-muted {
  opacity: 0.78;
  border-style: dashed;
}

.bipolar-behavior {
  margin-top: 5px;
  font-size: 11.5px;
  line-height: 1.45;
  color: rgba(241, 227, 220, 0.74);
}

.bipolar-row.is-insufficient .bipolar-track {
  opacity: 0.45;
}

/* ==================== 下卷场景预选页与报告时间说明 ==================== */
.scene-options-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0 20px;
}

.scene-option-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 226, 208, 0.2);
  background: rgba(255, 238, 226, 0.06);
  color: #f1e3dc;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.12s ease;
}

.scene-option-btn.selected {
  border-color: #f6c8ae;
  background: rgba(246, 200, 174, 0.18);
}

.scene-option-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.scene-option-body {
  flex: 1;
}

.scene-option-title {
  font-size: 14.5px;
  font-weight: 600;
  color: #fff9f5;
}

.scene-option-desc {
  margin-top: 2px;
  font-size: 12px;
  color: rgba(241, 227, 220, 0.72);
}

.scene-option-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 226, 208, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: transparent;
  flex-shrink: 0;
}

.scene-option-btn.selected .scene-option-check {
  border-color: #f6c8ae;
  background: #f6c8ae;
  color: #2c1e2e;
  font-weight: 700;
}

.dual-sub {
  margin: -2px 0 8px;
  font-size: 12px;
  color: rgba(241, 227, 220, 0.68);
}
