/* ===== 复习页面 - Apple Design 风格 ===== */
/* 核心原则：大留白、圆角、柔和阴影、玻璃拟态、精致动效 */

html, body {
  background: #f5f5f7;
  color: #1d1d1f;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Noto Sans SC', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.dark-mode {
  background: #0a0a0a;
  color: #ffffff;
}

#app, .app, main, .main-content, .page-container {
  background: transparent !important;
}

/* ===== 粒子画布背景 ===== */
.particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ===== 柔和动态背景 ===== */
.neural-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(0, 122, 255, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(175, 82, 222, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse 50% 50% at 50% 100%, rgba(48, 209, 88, 0.02) 0%, transparent 40%);
}

/* ===== 页面布局 ===== */
.review-shell {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 40px 80px;
}

/* ===== Hero 区域 ===== */
.review-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 32px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  position: relative;
}

.hero-content {
  max-width: 640px;
}

.eyebrow-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #007aff;
}

.eyebrow-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.08), transparent);
}

.review-hero h1 {
  margin: 0 0 16px;
  color: #1d1d1f;
  font-size: 40px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* 文字逐词浮现动画 */
.word-reveal {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: wordReveal 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.word-reveal:nth-child(1) { animation-delay: 0.1s; }
.word-reveal:nth-child(2) { animation-delay: 0.25s; }

@keyframes wordReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-copy {
  margin: 0;
  color: #86868b;
  line-height: 1.6;
  font-size: 17px;
  font-weight: 400;
  opacity: 0;
  animation: fadeInUp 0.6s 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

.hero-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  opacity: 0;
  animation: fadeInUp 0.6s 0.55s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ===== 统计条 ===== */
.stats-bar {
  margin-bottom: 48px;
  overflow: hidden;
}

.stats-track {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.stat-pill {
  padding: 10px 20px;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  font-size: 13px;
  color: #86868b;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.stat-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.8);
}

.stat-num {
  color: #007aff;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ===== 按钮系统 - Apple 风格 + 磁吸效果 ===== */
.review-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 980px;
  border: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  font-family: inherit;
  letter-spacing: -0.01em;
}

/* 磁吸按钮光效 */
.magnetic-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.25) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.magnetic-btn:hover::before {
  opacity: 1;
}

.review-btn:active {
  transform: scale(0.96);
}

.review-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.review-btn.primary {
  background: #007aff;
  color: #fff;
}

.review-btn.primary:hover {
  background: #0051d5;
  box-shadow: 0 4px 16px rgba(0, 122, 255, 0.3);
  transform: translateY(-1px);
}

.review-btn.secondary {
  background: rgba(0, 0, 0, 0.05);
  color: #1d1d1f;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.review-btn.secondary:hover {
  background: rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.review-btn.ghost {
  background: transparent;
  color: #007aff;
  border: 1px solid rgba(0, 122, 255, 0.2);
}

.review-btn.ghost:hover {
  background: rgba(0, 122, 255, 0.06);
}

.review-btn.unfamiliar {
  background: #ff3b30;
  color: #fff;
}

.review-btn.unfamiliar:hover {
  background: #d32f2f;
  box-shadow: 0 4px 16px rgba(255, 59, 48, 0.3);
  transform: translateY(-1px);
}

.btn-icon {
  font-size: 14px;
  transition: transform 0.25s;
  display: inline-flex;
}

.review-btn:hover .btn-icon {
  transform: scale(1.1);
}

.refresh-icon svg {
  animation: spin 1s linear infinite;
  animation-play-state: paused;
}

.review-btn:disabled .refresh-icon svg {
  animation-play-state: running;
}

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

/* ===== 浮动操作按钮 ===== */
.fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 122, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 122, 255, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  pointer-events: none;
}

.fab.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.fab:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 122, 255, 0.4);
}

.fab:active {
  transform: scale(0.95);
}

/* ===== 主网格布局 ===== */
.review-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
}

/* ===== 玻璃拟态面板 ===== */
.panel {
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 28px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.02),
    0 4px 8px rgba(0, 0, 0, 0.02),
    0 8px 16px rgba(0, 0, 0, 0.02);
}

.panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}

.panel:hover {
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.02),
    0 4px 12px rgba(0, 0, 0, 0.04),
    0 12px 24px rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.panel-heading h2 {
  margin: 0;
  font-size: 17px;
  color: #1d1d1f;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.panel-heading span {
  font-size: 12px;
  color: #86868b;
  font-weight: 500;
}

/* ===== 统计面板 ===== */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stat-card {
  padding: 20px 16px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.03);
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
}

.stat-card:hover {
  background: rgba(0, 0, 0, 0.05);
  transform: scale(1.03);
}

.stat-card .label {
  display: block;
  font-size: 11px;
  color: #86868b;
  margin-bottom: 8px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.stat-card .value {
  display: block;
  font-size: 28px;
  font-weight: 600;
  color: #1d1d1f;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  transition: all 0.3s;
  letter-spacing: -0.02em;
}

.stat-card:hover .value {
  color: #007aff;
  transform: scale(1.05);
}

.count-up {
  animation: countPulse 0.5s ease-out;
}

@keyframes countPulse {
  0% { transform: scale(1.2); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ===== 提示面板 ===== */
.tip-list {
  margin: 0;
  padding: 0;
  color: #86868b;
  font-size: 13px;
  line-height: 1.8;
  list-style: none;
}

.tip-list li {
  margin-bottom: 12px;
  padding-left: 20px;
  position: relative;
}

.tip-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #007aff;
}

.next-window {
  margin-top: 24px;
  padding: 16px 20px;
  border-radius: 14px;
  background: rgba(0, 122, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #007aff;
  font-weight: 500;
  transition: all 0.3s;
}

.next-window:hover {
  background: rgba(0, 122, 255, 0.1);
}

.next-icon {
  color: #007aff;
}

/* ===== 卡片面板 ===== */
.card-panel {
  min-height: 400px;
  display: flex;
  align-items: stretch;
}

/* ===== 复习卡片 ===== */
.review-card-shell {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  width: 100%;
}

.review-card-main {
  padding: 32px;
  border-radius: 20px;
  background: #fff;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.02),
    0 4px 8px rgba(0, 0, 0, 0.02),
    0 8px 16px rgba(0, 0, 0, 0.02);
}

.review-card-main:hover {
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.02),
    0 4px 12px rgba(0, 0, 0, 0.04),
    0 16px 32px rgba(0, 0, 0, 0.04);
}

/* 卡片进入/退出动画 */
.card-enter {
  animation: cardEnter 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-exit {
  animation: cardExit 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes cardEnter {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes cardExit {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-40px);
  }
}

/* 标签芯片 */
.term-chip {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 980px;
  background: rgba(0, 122, 255, 0.08);
  color: #007aff;
  font-size: 12px;
  font-weight: 600;
  margin-right: 8px;
  margin-bottom: 8px;
}

.state-chip {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 980px;
  background: rgba(0, 0, 0, 0.04);
  color: #86868b;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}

/* 问题区域 */
.question-block {
  margin: 24px 0 16px;
  padding: 28px;
  border-radius: 16px;
  background: #f5f5f7;
  position: relative;
}

.question-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #007aff;
  margin-bottom: 12px;
}

.question-text {
  margin: 0;
  font-size: 21px;
  color: #1d1d1f;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* 打字机光标 */
.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background: #007aff;
  margin-left: 2px;
  animation: blink 0.8s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* 提示芯片 */
.hint-chip {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.04);
  color: #86868b;
  font-size: 12px;
  transition: all 0.2s;
  font-weight: 500;
}

.hint-chip:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #1d1d1f;
}

/* 答案区域 */
.answer-box {
  margin-top: 20px;
  padding: 20px;
  border-radius: 14px;
  background: rgba(0, 122, 255, 0.04);
  animation: answerReveal 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes answerReveal {
  0% {
    opacity: 0;
    transform: translateY(-8px);
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    max-height: 500px;
  }
}

.answer-box.hidden {
  display: none;
}

.answer-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #007aff;
  margin-bottom: 10px;
}

/* 卡片操作按钮 */
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

/* 侧边详情卡片 */
.review-card-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-card {
  padding: 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.02),
    0 2px 4px rgba(0, 0, 0, 0.02);
}

.detail-card:hover {
  background: rgba(255, 255, 255, 0.8);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.02),
    0 4px 8px rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
}

.detail-title {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #86868b;
  margin-bottom: 14px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  font-size: 13px;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-row span {
  color: #86868b;
}

.detail-row strong {
  color: #1d1d1f;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.detail-card p {
  margin: 0;
  font-size: 13px;
  color: #86868b;
  line-height: 1.7;
}

/* ===== 空卡片状态 ===== */
.empty-card {
  text-align: center;
  padding: 60px 40px;
}

.empty-card h3 {
  margin: 16px 0 10px;
  color: #1d1d1f;
  font-size: 21px;
  font-weight: 600;
}

.empty-card p {
  margin: 0 0 24px;
  color: #86868b;
  font-size: 15px;
  line-height: 1.6;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== 加载状态 ===== */
.loading-card {
  text-align: center;
  padding: 60px 40px;
}

.loading-bar {
  height: 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.05);
  margin: 0 auto 16px;
  width: 50%;
  position: relative;
  overflow: hidden;
}

.loading-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0, 122, 255, 0.3), transparent);
  animation: loadingShimmer 1.5s ease-in-out infinite;
}

@keyframes loadingShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.loading-card p {
  color: #86868b;
  font-size: 15px;
}

/* ===== 知识点库列表 ===== */
.library-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.library-item {
  padding: 20px 24px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.02);
}

.library-item:hover {
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.02),
    0 4px 12px rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
}

.library-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.library-item-header h3 {
  margin: 0;
  font-size: 15px;
  color: #1d1d1f;
  font-weight: 600;
}

.library-item > p {
  margin: 0 0 10px;
  font-size: 13px;
  color: #86868b;
  line-height: 1.6;
}

.library-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.04);
  color: #86868b;
  font-size: 11px;
  font-weight: 500;
}

.meta-pill.due {
  background: rgba(0, 122, 255, 0.08);
  color: #007aff;
}

/* ===== 空库状态 ===== */
.empty-library {
  text-align: center;
  padding: 48px 32px;
}

.empty-library h3 {
  margin: 0 0 10px;
  color: #1d1d1f;
  font-size: 21px;
  font-weight: 600;
}

.empty-library p {
  margin: 0 0 20px;
  color: #86868b;
  font-size: 15px;
  line-height: 1.6;
}

/* ===== Toast 通知 ===== */
.toast-root {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  padding: 14px 22px;
  border-radius: 14px;
  background: rgba(29, 29, 31, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  animation: toastIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
  max-width: 360px;
}

@keyframes toastIn {
  0% { transform: translateY(20px) scale(0.95); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* ===== 滚动触发动画 ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* 滚动进度条 */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: #007aff;
  z-index: 10000;
  transition: width 0.1s linear;
  width: 0%;
}

/* ===== 响应式 ===== */
@media (max-width: 1100px) {
  .review-grid {
    grid-template-columns: 1fr;
  }

  .review-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .review-card-shell {
    grid-template-columns: 1fr;
  }

  .review-card-side {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .detail-card {
    flex: 1;
    min-width: 200px;
  }
}

@media (max-width: 720px) {
  .review-shell {
    padding: 80px 20px 48px;
  }

  .review-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .review-hero h1 {
    font-size: 28px;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
  }

  .review-btn {
    width: 100%;
  }

  .review-sidebar {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .question-text {
    font-size: 18px;
  }

  .card-actions {
    flex-direction: column;
  }

  .card-actions .review-btn {
    width: 100%;
  }

  .review-card-main {
    padding: 24px;
  }

  .detail-card {
    min-width: auto;
  }

  .stats-track {
    justify-content: center;
  }
}

/* ===== 滚动条美化 ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.25);
}

/* ===== Dark Mode 适配 ===== */
body.dark-mode .neural-bg {
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(0, 122, 255, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(175, 82, 222, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse 50% 50% at 50% 100%, rgba(48, 209, 88, 0.03) 0%, transparent 40%);
}

body.dark-mode .review-hero h1 {
  color: #ffffff;
}

body.dark-mode .hero-copy {
  color: #a3a3a3;
}

body.dark-mode .eyebrow-line {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), transparent);
}

body.dark-mode .stat-pill {
  background: rgba(30, 30, 32, 0.6);
  border-color: rgba(255, 255, 255, 0.06);
  color: #a3a3a3;
}

body.dark-mode .stat-pill:hover {
  background: rgba(30, 30, 32, 0.8);
}

body.dark-mode .review-btn.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .review-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

body.dark-mode .panel {
  background: rgba(30, 30, 32, 0.72);
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.1),
    0 4px 8px rgba(0, 0, 0, 0.1),
    0 8px 16px rgba(0, 0, 0, 0.1);
}

body.dark-mode .panel:hover {
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.1),
    0 4px 12px rgba(0, 0, 0, 0.15),
    0 12px 24px rgba(0, 0, 0, 0.15);
}

body.dark-mode .panel-heading h2 {
  color: #ffffff;
}

body.dark-mode .stat-card {
  background: rgba(255, 255, 255, 0.05);
}

body.dark-mode .stat-card:hover {
  background: rgba(255, 255, 255, 0.08);
}

body.dark-mode .stat-card .value {
  color: #ffffff;
}

body.dark-mode .tip-list {
  color: #a3a3a3;
}

body.dark-mode .review-card-main {
  background: #1c1c1e;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.2),
    0 4px 8px rgba(0, 0, 0, 0.2),
    0 8px 16px rgba(0, 0, 0, 0.2);
}

body.dark-mode .question-block {
  background: #2c2c2e;
}

body.dark-mode .question-text {
  color: #ffffff;
}

body.dark-mode .hint-chip {
  background: rgba(255, 255, 255, 0.06);
  color: #a3a3a3;
}

body.dark-mode .hint-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

body.dark-mode .answer-box {
  background: rgba(0, 122, 255, 0.08);
}

body.dark-mode .detail-card {
  background: rgba(30, 30, 32, 0.6);
  border-color: rgba(255, 255, 255, 0.06);
}

body.dark-mode .detail-card:hover {
  background: rgba(30, 30, 32, 0.8);
}

body.dark-mode .detail-row {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

body.dark-mode .detail-row strong {
  color: #ffffff;
}

body.dark-mode .empty-card h3,
body.dark-mode .empty-library h3 {
  color: #ffffff;
}

body.dark-mode .empty-card p,
body.dark-mode .empty-library p {
  color: #a3a3a3;
}

body.dark-mode .library-item {
  background: rgba(30, 30, 32, 0.6);
  border-color: rgba(255, 255, 255, 0.06);
}

body.dark-mode .library-item:hover {
  background: rgba(30, 30, 32, 0.9);
}

body.dark-mode .library-item-header h3 {
  color: #ffffff;
}

body.dark-mode .library-item > p {
  color: #a3a3a3;
}

body.dark-mode .meta-pill {
  background: rgba(255, 255, 255, 0.06);
  color: #a3a3a3;
}

body.dark-mode .loading-bar {
  background: rgba(255, 255, 255, 0.08);
}

body.dark-mode .loading-card p {
  color: #a3a3a3;
}

body.dark-mode ::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
}

body.dark-mode ::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}
