/* ============================================================
   style.css — 反诈先锋 · 暗色沉浸式主题
   移动端优先，max-width 480px，PC两侧暗色背景
   ============================================================ */

/* ── CSS变量 ─────────────────────────────────────────────── */
:root {
  --bg-deep:       #0a0e1a;
  --bg-card:       rgba(255,255,255,0.05);
  --bg-card-hover: rgba(255,255,255,0.09);
  --border-orange: #e8a838;
  --border-subtle: rgba(232,168,56,0.3);
  --color-orange:  #e8a838;
  --color-green:   #4ade80;
  --color-red:     #ef4444;
  --color-yellow:  #facc15;
  --text-main:     #f0f0f0;
  --text-sub:      #8b8fa3;
  --text-dark:     #1a1a2e;
  --shadow-glow:   0 0 24px rgba(232,168,56,0.15);
  --radius-md:     12px;
  --radius-lg:     18px;
  --transition:    0.25s ease;
}

/* ── 全局重置 ───────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.6;
  /* PC端两侧暗色背景 */
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(232,168,56,0.04) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(74,222,128,0.03) 0%, transparent 50%);
}

/* ── 根容器：移动端居中 ─────────────────────────────────── */
#app {
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
  background: var(--bg-deep);
  box-shadow: 0 0 60px rgba(0,0,0,0.6);
}

/* ── 页面进入动画 ───────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.page-enter {
  animation: fadeInUp 0.3s ease both;
}

/* ── 通用滚动条 ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-subtle); border-radius: 2px; }

/* ── 按钮基础 ───────────────────────────────────────────── */
button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 15px;
  transition: all var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.btn-primary {
  background: var(--color-orange);
  color: var(--text-dark);
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-primary:hover  { background: #f0be55; transform: translateY(-1px); }
.btn-primary:active { background: #d4932a; transform: translateY(0); }

.btn-primary.btn-large {
  width: 100%;
  justify-content: center;
  font-size: 17px;
  padding: 15px 24px;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(232,168,56,0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--color-orange);
  border: 1px solid var(--color-orange);
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-md);
}
.btn-secondary:hover { background: rgba(232,168,56,0.1); }

.btn-ghost {
  background: transparent;
  color: var(--text-sub);
  padding: 12px 24px;
  border-radius: var(--radius-md);
}
.btn-ghost:hover { color: var(--text-main); }

.btn-back {
  background: transparent;
  color: var(--text-sub);
  font-size: 14px;
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 4px;
}
.btn-back:hover { color: var(--text-main); }

.btn-back-small {
  background: rgba(255,255,255,0.08);
  color: var(--text-sub);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.btn-back-small:hover { background: rgba(255,255,255,0.15); color: var(--text-main); }

.btn-arrow { font-size: 18px; }

/* ── 通用页面Header ─────────────────────────────────────── */
.page-header {
  padding: 16px 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-bottom: 1px solid var(--border-subtle);
}
.page-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-orange);
}
.page-subtitle {
  font-size: 13px;
  color: var(--text-sub);
}

/* ── 难度星标 ────────────────────────────────────────────── */
.star { font-size: 16px; }
.star-on  { color: var(--color-orange); }
.star-off { color: rgba(255,255,255,0.15); }

/* ================================================================
   首页（图鉴式）
   ================================================================ */
.home-page-new {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-deep);
  padding-bottom: 0;
}

/* 顶部标题栏 */
.home-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 12px;
  flex-shrink: 0;
}
.home-logo {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #f0be55, #e8a838);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.home-progress-chip {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 4px 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.home-progress-dot {
  width: 6px;
  height: 6px;
  background: var(--color-green);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* 图鉴网格 */
.home-gallery-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0 12px;
  align-content: start;
}
.home-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: #111;
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.3s ease;
}
.home-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: filter 0.4s ease;
}
/* 未解锁：模糊+暗 */
.home-card-locked .home-card-img {
  filter: blur(6px) brightness(0.25) saturate(0.3);
  transform: scale(1.05); /* 避免blur边缘白边 */
}
/* 已解锁：正常显示+微妙边框 */
.home-card-unlocked {
  border-color: rgba(232,168,56,0.4);
  box-shadow: 0 0 12px rgba(232,168,56,0.1);
}
.home-card-unlocked .home-card-img {
  filter: none;
}

/* 卡片覆盖层 */
.home-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 10px;
}
.home-card-locked .home-card-overlay {
  align-items: center;
  padding-bottom: 0;
}
.home-card-lock {
  font-size: 22px;
  opacity: 0.6;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}
.home-card-name {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.8);
  background: rgba(0,0,0,0.5);
  padding: 3px 10px;
  border-radius: 8px;
  backdrop-filter: blur(4px);
}

/* 底部操作区 */
.home-action-area {
  flex-shrink: 0;
  padding: 20px 18px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: linear-gradient(0deg, var(--bg-deep) 60%, transparent 100%);
}

/* 主按钮 - 带发光动画 */
.home-main-btn {
  position: relative;
  width: 100%;
  max-width: 320px;
  padding: 16px 24px;
  background: linear-gradient(135deg, #e8a838 0%, #d4932a 100%);
  border: none;
  border-radius: 14px;
  cursor: pointer;
  overflow: hidden;
}
.home-main-btn-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(255,255,255,0.15), transparent, transparent);
  animation: btnGlow 3s linear infinite;
}
@keyframes btnGlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.home-main-btn-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.home-main-btn-icon {
  font-size: 22px;
}
.home-main-btn-text {
  font-size: 17px;
  font-weight: 800;
  color: #1a1a2e;
  letter-spacing: 1px;
}
.home-main-btn:active {
  transform: scale(0.97);
}

/* 次要按钮 */
.home-sub-btn {
  background: none;
  border: none;
  color: var(--text-sub);
  font-size: 13px;
  padding: 8px 16px;
  cursor: pointer;
  transition: color 0.2s;
}
.home-sub-btn:hover {
  color: var(--color-orange);
}

/* ================================================================
   案例选择页
   ================================================================ */
.select-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.scenario-list {
  padding: 16px 16px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

.scenario-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.scenario-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--color-orange);
  border-radius: 3px 0 0 3px;
}
.scenario-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-orange);
  box-shadow: var(--shadow-glow);
  transform: translateX(2px);
}
.scenario-card:active {
  transform: translateX(0) scale(0.99);
}

.scenario-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.scenario-emoji {
  font-size: 28px;
  line-height: 1;
}
.scenario-card-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.scenario-category {
  font-size: 11px;
  color: var(--text-sub);
}
.scenario-type-tag {
  display: inline-block;
  background: rgba(232,168,56,0.15);
  color: var(--color-orange);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  align-self: flex-start;
}
.scenario-difficulty {
  display: flex;
  gap: 2px;
}
.scenario-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}
.scenario-desc {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.scenario-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}
.scenario-npc-info {
  font-size: 12px;
  color: var(--text-sub);
}
.scenario-arrow {
  font-size: 13px;
  color: var(--color-orange);
  font-weight: 600;
}

/* ================================================================
   场景介绍页
   ================================================================ */
.intro-page {
  min-height: 100vh;
  padding: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.intro-npc-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 20px 20px;
  background: linear-gradient(180deg, rgba(232,168,56,0.06) 0%, transparent 100%);
  gap: 6px;
}
.intro-npc-emoji {
  font-size: 56px;
  line-height: 1;
  filter: drop-shadow(0 0 16px rgba(232,168,56,0.3));
}
.intro-npc-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
}
.intro-npc-identity {
  font-size: 13px;
  color: var(--text-sub);
}

.difficulty-row {
  display: flex;
  gap: 3px;
}

.intro-section {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-subtle);
}
.intro-section-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-orange);
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.intro-text {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.7;
}
.intro-warning {
  color: #fbbf24;
}

.intro-mission {
  margin: 16px 20px;
  background: rgba(232,168,56,0.08);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.intro-mission-icon { font-size: 24px; }
.intro-mission-text {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.7;
}
.intro-mission-text strong { color: var(--color-orange); }

.intro-page .btn-large {
  margin: 4px 20px 0;
  width: calc(100% - 40px);
}

/* ================================================================
   对话页
   ================================================================ */
.play-page {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-deep);
}

/* ── 视觉小说模式 (VN) ──────────────────────────────────── */
.play-vn {
  position: relative;
  overflow: hidden;
}

/* 全屏场景图 */
.vn-scene {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
}
.vn-scene-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: opacity 0.3s ease;
}
/* 顶部渐变遮罩 */
.vn-overlay-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 100px;
  background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, transparent 100%);
  pointer-events: none;
}
/* 底部渐变遮罩 */
.vn-overlay-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
  pointer-events: none;
}

/* 悬浮顶部状态栏 */
.vn-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  padding: 14px 16px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.vn-header .vn-btn-back {
  width: 30px; height: 30px;
  background: rgba(0,0,0,0.45);
  border: none;
  border-radius: 50%;
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  backdrop-filter: blur(4px);
}
.vn-status {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.vn-round {
  font-size: 11px;
  color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.45);
  padding: 3px 10px;
  border-radius: 12px;
  backdrop-filter: blur(4px);
  font-weight: 600;
}
.play-vn .play-emotion-badge {
  display: none;
}
.vn-conviction {
  position: absolute;
  top: 50px; left: 16px; right: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.vn-conviction-label {
  font-size: 10px;
  color: rgba(255,255,255,0.6);
  white-space: nowrap;
}
.vn-conviction .conviction-bar-bg {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.12);
  border-radius: 2px;
  overflow: hidden;
}

/* 底部对话区域（悬浮） */
.vn-dialog-area {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* NPC对话框 - 参考狄公案的半透明暗色对话框 */
.vn-dialog-box {
  margin: 0 12px;
  padding: 14px 18px;
  background: rgba(10, 12, 20, 0.82);
  border: 1px solid rgba(232, 168, 56, 0.4);
  border-radius: 4px;
  backdrop-filter: blur(8px);
  min-height: 100px;
}
.vn-dialog-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-orange);
  margin-bottom: 8px;
  padding: 2px 10px;
  background: rgba(232, 168, 56, 0.15);
  border-left: 3px solid var(--color-orange);
  display: inline-block;
}
.vn-dialog-text {
  font-size: 15px;
  color: #f0f0f0;
  line-height: 1.7;
  min-height: 40px;
}

/* VN loading动画 */
.vn-loading-dots span {
  animation: dotBounce 1.2s infinite ease-in-out;
  font-size: 24px;
  color: var(--color-orange);
}
.vn-loading-dots span:nth-child(1) { animation-delay: 0s; }
.vn-loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.vn-loading-dots span:nth-child(3) { animation-delay: 0.4s; }

/* VN输入区 */
.vn-input-area {
  padding: 10px 12px 16px;
  background: rgba(10, 12, 20, 0.92);
  border-top: 1px solid rgba(232, 168, 56, 0.2);
}
.vn-input-area .input-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}
.vn-input-area .player-textarea {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(232,168,56,0.3);
  border-radius: 8px;
  color: #f0f0f0;
  font-size: 14px;
  padding: 10px 14px;
  resize: none;
  line-height: 1.5;
  font-family: inherit;
}
.vn-input-area .player-textarea:focus {
  outline: none;
  border-color: var(--color-orange);
  background: rgba(255,255,255,0.08);
}
.vn-input-area .player-textarea::placeholder { color: rgba(255,255,255,0.4); }
.vn-input-area .player-textarea:disabled { opacity: 0.5; cursor: not-allowed; }
.play-header {
  flex-shrink: 0;
  padding: 12px 16px 10px;
  background: linear-gradient(180deg, rgba(10,14,26,0.98) 0%, rgba(10,14,26,0.85) 100%);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
}
.play-header-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.play-npc-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}
.play-npc-emoji { font-size: 22px; line-height: 1; }
.play-npc-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}
.play-emotion-badge {
  font-size: 11px;
  padding: 2px 8px;
  border: 1px solid currentColor;
  border-radius: 10px;
  transition: all 0.4s ease;
  color: var(--text-sub);
}
.play-round {
  font-size: 12px;
  color: var(--text-sub);
  font-weight: 600;
  flex-shrink: 0;
}

/* 信服度进度条 */
.conviction-bar-wrap { display: flex; flex-direction: column; gap: 5px; }
.conviction-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-sub);
}
.conviction-bar-bg {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
}
.conviction-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s cubic-bezier(0.4,0,0.2,1);
  /* 从红→黄→绿渐变（通过JS动态宽度触发背景色变化） */
  background: linear-gradient(
    90deg,
    #ef4444 0%,
    #facc15 50%,
    #4ade80 100%
  );
  background-size: 500% 100%;
  /* 利用filter来近似颜色插值 */
}

/* 动态颜色：通过CSS自定义实现红黄绿 */
/* 使用宽度对应颜色段：0~33%红，33~66%黄，66~100%绿 */

/* 对话消息列表 */
.chat-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* 消息行 */
.msg-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  animation: fadeInUp 0.25s ease both;
}
.msg-npc   { justify-content: flex-start; }
.msg-player{ justify-content: flex-end; }

.msg-avatar {
  font-size: 26px;
  line-height: 1;
  flex-shrink: 0;
  filter: drop-shadow(0 0 4px rgba(232,168,56,0.2));
}
.player-avatar {
  filter: drop-shadow(0 0 4px rgba(96,165,250,0.3));
}

/* NPC气泡 */
.msg-bubble-npc {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(232,168,56,0.4);
  border-left: 3px solid var(--color-orange);
  border-radius: 4px 12px 12px 4px;
  padding: 10px 14px;
  max-width: 280px;
}

/* 玩家气泡 */
.msg-bubble-player {
  background: rgba(96,165,250,0.15);
  border: 1px solid rgba(96,165,250,0.35);
  border-radius: 12px 4px 4px 12px;
  padding: 10px 14px;
  max-width: 280px;
  text-align: right;
}

.msg-name {
  font-size: 11px;
  color: var(--text-sub);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.msg-player .msg-name {
  justify-content: flex-end;
}
.msg-emotion {
  font-size: 11px;
  font-weight: 600;
}
.msg-text {
  font-size: 14px;
  color: var(--text-main);
  line-height: 1.65;
  word-break: break-all;
}

/* loading跳动气泡 */
.loading-bubble {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
  min-width: 64px;
}
.dot-bounce {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--color-orange);
  border-radius: 50%;
  animation: dotBounce 1.2s infinite ease-in-out;
}
.dot-bounce:nth-child(1) { animation-delay: 0s; }
.dot-bounce:nth-child(2) { animation-delay: 0.2s; }
.dot-bounce:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
  40%           { transform: scale(1);   opacity: 1; }
}

/* 底部输入区 */
.chat-input-area {
  flex-shrink: 0;
  padding: 10px 14px 16px;
  background: rgba(10,14,26,0.96);
  border-top: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
}
.input-hint {
  font-size: 11px;
  color: var(--text-sub);
  margin-bottom: 6px;
  text-align: center;
}
.input-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}
.player-textarea {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: inherit;
  font-size: 14px;
  padding: 10px 14px;
  resize: none;
  line-height: 1.5;
  transition: border-color var(--transition);
}
.player-textarea:focus {
  outline: none;
  border-color: var(--color-orange);
  background: rgba(255,255,255,0.08);
}
.player-textarea::placeholder { color: var(--text-sub); }
.player-textarea:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-send {
  background: var(--color-orange);
  color: var(--text-dark);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  white-space: nowrap;
  align-self: stretch;
  display: flex;
  align-items: center;
}
.btn-send:hover  { background: #f0be55; }
.btn-send:active { background: #d4932a; }
.btn-send:disabled {
  background: rgba(232,168,56,0.3);
  color: rgba(26,26,46,0.5);
  cursor: not-allowed;
}

/* 输入框抖动动画（空内容提示） */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-6px); }
  40%       { transform: translateX(6px); }
  60%       { transform: translateX(-4px); }
  80%       { transform: translateX(4px); }
}
.input-shake { animation: shake 0.4s ease; }

/* ================================================================
   结局页
   ================================================================ */
.result-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0 0 40px;
}

.result-success { background: linear-gradient(180deg, rgba(74,222,128,0.07) 0%, var(--bg-deep) 40%); }
.result-failure { background: linear-gradient(180deg, rgba(239,68,68,0.07) 0%, var(--bg-deep) 40%); }

.result-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 24px 24px;
  gap: 12px;
}
.result-icon { font-size: 56px; animation: popIn 0.4s cubic-bezier(0.34,1.56,0.64,1) both; }

@keyframes popIn {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.result-title {
  font-size: 24px;
  font-weight: 900;
  text-align: center;
}
.result-success .result-title { color: var(--color-green); }
.result-failure .result-title { color: var(--color-red); }

.result-conviction-row {
  font-size: 14px;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: 8px;
}
.result-conviction-row strong { color: var(--text-main); font-size: 20px; }

.result-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 10px;
}
.result-badge-success { background: rgba(74,222,128,0.15); color: var(--color-green); }
.result-badge-fail    { background: rgba(239,68,68,0.15);  color: var(--color-red); }

.result-ending-card {
  margin: 0 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
}
.result-ending-npc {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-orange);
}
.result-ending-text {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.8;
  font-style: italic;
}

.result-tips {
  margin: 16px 20px 0;
}
.result-tips-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-orange);
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.tips-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tip-item {
  font-size: 13px;
  color: var(--text-sub);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  border-left: 3px solid var(--color-orange);
  line-height: 1.6;
}

.result-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 24px 20px 0;
}
.result-actions .btn-primary,
.result-actions .btn-secondary,
.result-actions .btn-ghost {
  width: 100%;
  justify-content: center;
  text-align: center;
  padding: 13px 24px;
  border-radius: var(--radius-md);
}

/* ================================================================
   错误Toast
   ================================================================ */
.error-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(239,68,68,0.9);
  color: #fff;
  font-size: 13px;
  padding: 10px 20px;
  border-radius: 20px;
  max-width: 320px;
  text-align: center;
  z-index: 9999;
  animation: fadeInUp 0.25s ease;
  backdrop-filter: blur(8px);
}
.toast-hide {
  animation: fadeOut 0.3s ease both;
}
@keyframes fadeOut {
  to { opacity: 0; transform: translateX(-50%) translateY(10px); }
}

/* ================================================================
   图鉴页（大图网格）
   ================================================================ */
.gallery-page {
  min-height: 100vh;
  padding: 0 0 40px;
}
.gallery-progress-bar {
  height: 4px;
  background: rgba(255,255,255,0.08);
  margin: 0 16px 20px;
  border-radius: 2px;
  overflow: hidden;
}
.gallery-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-orange), var(--color-green));
  border-radius: 2px;
  transition: width 0.5s ease;
}
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 16px;
}
.gallery-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition);
}
.gallery-unlocked { border-color: rgba(232,168,56,0.5); }
.gallery-locked { opacity: 0.7; }
.gallery-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
}
.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.gallery-img-locked {
  filter: brightness(0) saturate(0);
}
.gallery-lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.5);
}
.gallery-lock-overlay span { font-size: 32px; }
.gallery-card-footer {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
}
.gallery-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}
.gallery-identity {
  font-size: 11px;
  color: var(--text-sub);
}
.gallery-badge-done {
  font-size: 10px;
  color: var(--color-green);
  background: rgba(74,222,128,0.1);
  border: 1px solid rgba(74,222,128,0.3);
  padding: 2px 8px;
  border-radius: 8px;
  font-weight: 600;
  margin-top: 4px;
}

/* 首页底部按钮组 */
.home-bottom-btns {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  width: 100%;
}
.home-bottom-btns .btn-secondary,
.home-bottom-btns .btn-ghost {
  flex: 1;
  padding: 12px;
  font-size: 14px;
  text-align: center;
}

/* ================================================================
   抽卡动画页
   ================================================================ */
.draw-page {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  background: var(--bg-deep);
}
.draw-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-orange);
}
.draw-card-container {
  perspective: 800px;
  width: 220px;
  height: 320px;
}
.draw-card {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
}
.draw-card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.draw-card-back {
  background: linear-gradient(135deg, #1a1a3e 0%, #0a0e1a 50%, #1a2a1a 100%);
  border: 2px solid var(--color-orange);
  box-shadow: var(--shadow-glow);
}
.draw-card-mystery {
  font-size: 72px;
  font-weight: 900;
  color: var(--color-orange);
  text-shadow: 0 0 20px rgba(232,168,56,0.4);
}
.draw-card-subtitle {
  font-size: 14px;
  color: var(--text-sub);
  margin-top: 8px;
}
.draw-card-front {
  transform: rotateY(180deg);
  background: var(--bg-deep);
  border: 2px solid var(--color-orange);
}
.draw-card-npc-img {
  width: 100%;
  flex: 1;
  overflow: hidden;
}
.draw-card-npc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.draw-card-info {
  padding: 12px;
  text-align: center;
  background: rgba(0,0,0,0.8);
  width: 100%;
}
.draw-card-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}
.draw-card-type {
  font-size: 12px;
  color: var(--color-orange);
  margin-top: 4px;
}
.draw-hint {
  font-size: 14px;
  color: var(--text-sub);
}

/* 洗牌抖动动画 */
@keyframes cardShuffle {
  0%, 100% { transform: rotateY(0deg) translateX(0); }
  25% { transform: rotateY(-15deg) translateX(-8px); }
  50% { transform: rotateY(10deg) translateX(6px); }
  75% { transform: rotateY(-8deg) translateX(-4px); }
}
.draw-shuffling {
  animation: cardShuffle 0.3s ease infinite;
}
/* 翻转 */
.draw-flipping {
  transform: rotateY(180deg);
}

/* ================================================================
   场景介绍页（新版带大图）
   ================================================================ */
.intro-page {
  min-height: 100vh;
  background: var(--bg-deep);
}
.intro-hero {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
}
.intro-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.intro-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--bg-deep) 0%, transparent 50%, rgba(0,0,0,0.3) 100%);
}
.intro-back-btn {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
}
.intro-hero-info {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 2;
}
.intro-hero-info .intro-npc-name {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.intro-hero-info .intro-npc-identity {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  margin-top: 2px;
}
.intro-hero-info .intro-difficulty {
  margin-top: 6px;
}
.intro-body {
  padding: 20px 16px 40px;
}
.intro-type-tag {
  display: inline-block;
  font-size: 12px;
  color: var(--color-orange);
  background: rgba(232,168,56,0.1);
  border: 1px solid rgba(232,168,56,0.3);
  padding: 3px 12px;
  border-radius: 12px;
  margin-bottom: 16px;
}
.intro-section {
  margin-bottom: 16px;
}
.intro-section-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-sub);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.intro-text {
  font-size: 14px;
  color: var(--text-main);
  line-height: 1.7;
}
.intro-warning {
  color: var(--color-orange);
  background: rgba(232,168,56,0.05);
  border-left: 3px solid var(--color-orange);
  padding: 10px 14px;
  border-radius: 0 8px 8px 0;
}
.intro-mission {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 20px;
  text-align: center;
}
.intro-mission-text {
  font-size: 13px;
  color: var(--text-sub);
}

/* ================================================================
   响应式：PC端两侧留暗色渐变背景
   ================================================================ */
@media (min-width: 481px) {
  body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
      radial-gradient(ellipse at 15% 50%, rgba(232,168,56,0.04) 0%, transparent 50%),
      radial-gradient(ellipse at 85% 50%, rgba(74,222,128,0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
  }
  #app {
    margin: 0 auto;
    border-left:  1px solid rgba(232,168,56,0.08);
    border-right: 1px solid rgba(232,168,56,0.08);
  }
}

/* ================================================================
   语音输入按钮与状态
   ================================================================ */
.btn-voice {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(232,168,56,0.12);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
  transition: all var(--transition);
}
.btn-voice:hover {
  background: rgba(232,168,56,0.25);
  border-color: var(--color-orange);
}
.btn-voice:active {
  transform: scale(0.92);
}

/* 录音中：红色脉动 */
.btn-voice-active {
  background: rgba(239,68,68,0.2) !important;
  border-color: var(--color-red) !important;
  animation: voicePulseBtn 1s infinite;
}
@keyframes voicePulseBtn {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(239,68,68,0); }
}

/* 识别中：橙色旋转 */
.btn-voice-processing {
  background: rgba(232,168,56,0.2) !important;
  border-color: var(--color-orange) !important;
  animation: voiceSpin 1s linear infinite;
}
@keyframes voiceSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 语音状态栏 */
.voice-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: 8px;
  margin-top: 6px;
}
.voice-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-red);
  animation: voiceDot 1s infinite;
}
@keyframes voiceDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}
.voice-status-text {
  font-size: 12px;
  color: var(--color-red);
}

/* ── 动态漫画开场 ─────────────────────────────────── */
.comic-container {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
  background: #000;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  flex-direction: column;
}

/* 顶部进度点 */
.comic-progress {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}
.progress-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  transition: all 0.3s;
}
.progress-dot.active {
  background: var(--color-orange);
  box-shadow: 0 0 6px rgba(232,168,56,0.6);
}

/* 漫画页面容器 */
.comic-pages-wrap {
  flex: 1;
  position: relative;
  overflow: hidden;
}

/* 单页（堆叠的格子） */
.comic-page-stack {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 50px 8px 130px;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}
.comic-page-stack::-webkit-scrollbar {
  display: none;
}
.comic-page-stack.active {
  opacity: 1;
  pointer-events: auto;
}

/* 单格 */
.comic-panel-slot {
  width: 100%;
  margin-bottom: 6px;
  border: 2px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px) scale(0.94);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0,0,0,0.6);
}
.comic-panel-slot.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.comic-panel-slot img {
  width: 100%;
  display: block;
}

/* 字幕 */
.comic-caption {
  position: absolute;
  bottom: 60px;
  left: 16px;
  right: 16px;
  padding: 12px 16px;
  background: rgba(0,0,0,0.85);
  color: #fff;
  font-size: 15px;
  line-height: 1.6;
  border-radius: 8px;
  border-left: 3px solid var(--color-orange);
  text-align: left;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.5s ease;
  z-index: 5;
  pointer-events: none;
}
.comic-caption.show {
  opacity: 1;
  transform: translateY(0);
}

/* 点击提示 */
.comic-tap-hint {
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 100%;
  text-align: center;
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  animation: comicBlink 2s ease-in-out infinite;
  z-index: 5;
  pointer-events: none;
}
@keyframes comicBlink {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* 跳过按钮 */
.comic-skip-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 14px;
  background: rgba(0,0,0,0.6);
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 16px;
  cursor: pointer;
  z-index: 10;
}

/* 过渡页 */
.comic-transition {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 0;
  left: 0;
  background: var(--bg-deep);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  z-index: 20;
}
.comic-transition.active {
  opacity: 1;
  pointer-events: auto;
}
.comic-transition h2 {
  color: var(--color-orange);
  font-size: 18px;
  margin-bottom: 12px;
  text-align: center;
  padding: 0 20px;
}
.comic-transition p {
  color: var(--text-sub);
  font-size: 14px;
  margin-bottom: 30px;
}
.comic-start-btn {
  padding: 14px 48px;
  background: linear-gradient(135deg, #e8a838, #f0c060);
  color: #1a1a2e;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(232,168,56,0.4);
}

/* ════════════════════════════════════════════════════════════════ */
/* v2 9 段结局页样式（仅天天案例启用）                                */
/* ════════════════════════════════════════════════════════════════ */

.result-grand .result-icon {
  font-size: 80px;
  filter: drop-shadow(0 4px 16px rgba(255,255,255,0.3));
}

.result-mild { opacity: 0.95; }

.result-level-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 14px;
  border: 1px solid;
  border-radius: 12px;
  margin-bottom: 12px;
  letter-spacing: 1.5px;
}

.result-dual-values {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 12px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
}

.result-dual-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.result-dual-label {
  font-size: 11px;
  letter-spacing: 0.5px;
}

.result-dual-num {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

.result-dual-divider {
  font-size: 18px;
  color: rgba(255,255,255,0.25);
  font-weight: 200;
}

.result-story-card {
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  padding: 16px;
  margin: 16px 16px 12px;
  border-left: 3px solid rgba(139,143,163,0.6);
}

.result-story-title {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  margin-bottom: 8px;
}

.result-story-text {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255,255,255,0.85);
  margin: 0;
}

.result-edu-text {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255,255,255,0.92);
  margin: 0;
  padding: 4px 0;
  font-weight: 500;
}

/* 综合外显数值「劝服度」展示块 */
.result-persuasion-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 18px 0 12px;
  gap: 4px;
}

.result-persuasion-label {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 3px;
  font-weight: 500;
}

.result-persuasion-num {
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -2px;
  text-shadow: 0 2px 16px currentColor;
  filter: drop-shadow(0 0 8px currentColor);
  margin: 4px 0;
  font-variant-numeric: tabular-nums;
}

.result-persuasion-rank {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-top: 2px;
}

.result-persuasion-comment {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.3px;
  margin-top: 2px;
}

/* ════════════════════════════════════════════════════════════════ */
/* v2 天平指针：替代质疑度进度条，显示 NPC 在「信骗子↔识破」轴上的摇摆  */
/* ════════════════════════════════════════════════════════════════ */

.vn-balance {
  position: absolute;
  top: 46px;
  left: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  pointer-events: none;
}

.vn-balance-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.5px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.vn-balance-label-left {
  color: rgba(239, 68, 68, 0.85);
  font-weight: 600;
}

.vn-balance-label-mid {
  color: rgba(255, 255, 255, 0.55);
  font-size: 9px;
}

.vn-balance-label-right {
  color: rgba(74, 222, 128, 0.9);
  font-weight: 600;
}

/* 天平轨道：三色梯度区 + 中线 + 指针 */
.vn-balance-track {
  position: relative;
  height: 8px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  overflow: visible;
  backdrop-filter: blur(4px);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* 三段区域：左红中黄右绿，软渐变填充 */
.vn-balance-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  width: calc(100% / 3 + 1px);
  opacity: 0.55;
}
.vn-balance-zone-bad {
  left: 0;
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.85) 0%, rgba(249, 115, 22, 0.4) 100%);
  border-radius: 4px 0 0 4px;
}
.vn-balance-zone-mid {
  left: calc(100% / 3);
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.35) 0%, rgba(251, 191, 36, 0.4) 50%, rgba(132, 204, 22, 0.35) 100%);
}
.vn-balance-zone-good {
  left: calc(200% / 3);
  background: linear-gradient(90deg, rgba(132, 204, 22, 0.4) 0%, rgba(34, 197, 94, 0.85) 100%);
  border-radius: 0 4px 4px 0;
}

/* 中线刻度（中性 0 位） */
.vn-balance-center {
  position: absolute;
  left: 50%;
  top: -3px;
  bottom: -3px;
  width: 2px;
  background: rgba(255, 255, 255, 0.7);
  transform: translateX(-50%);
  border-radius: 1px;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.5);
  z-index: 2;
}

/* 指针：圆形，跟随 indicator 滑动 */
.vn-balance-pointer {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fbbf24;
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 0 8px currentColor,
    0 2px 6px rgba(0, 0, 0, 0.6);
  transform: translate(-50%, -50%);
  transition: left 0.7s cubic-bezier(0.34, 1.2, 0.64, 1), background 0.5s ease, box-shadow 0.5s ease;
  z-index: 3;
  pointer-events: none;
}

/* 指针在两端时的强调脉冲 */
@keyframes balancePulse {
  0%, 100% {
    box-shadow: 0 0 8px currentColor, 0 2px 6px rgba(0, 0, 0, 0.6);
  }
  50% {
    box-shadow: 0 0 16px currentColor, 0 0 24px currentColor, 0 2px 6px rgba(0, 0, 0, 0.6);
  }
}
.vn-balance-pointer.extreme {
  animation: balancePulse 1.4s ease-in-out infinite;
}

