* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-primary: #0f0f11;
  --bg-secondary: #1a1a1f;
  --bg-tertiary: #242429;
  --accent: #6366f1;
  --text-primary: #e8e8ed;
  --text-secondary: #9898a0;
  --text-muted: #6b6b73;
  --border: #2a2a30;
  --success: #22c55e;
  --error: #ef4444;
}

body {
  font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 12px 16px;
  padding-top: calc(12px + env(safe-area-inset-top, 20px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 15, 17, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-title { font-size: 18px; font-weight: 600; }

.main-content {
  padding: 80px 16px;
  padding-bottom: calc(100px + env(safe-area-inset-bottom, 20px));
}

/* 总数卡片 */
.total-card {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.1));
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.total-icon { font-size: 36px; }
.total-info { flex: 1; }
.total-number {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
}
.total-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* 分类列表 */
.category-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.category-item {
  background: var(--bg-secondary);
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.15s, border-color 0.2s;
}
.category-item:active { transform: scale(0.98); }

.category-top {
  height: 3px;
  width: 100%;
}
.category-top.mode-practice { background: linear-gradient(90deg, #6366f1, #8b5cf6); }
.category-top.mode-basic-word { background: linear-gradient(90deg, #22c55e, #4ade80); }
.category-top.mode-match { background: linear-gradient(90deg, #f59e0b, #ef4444); }
.category-top.mode-dialogue { background: linear-gradient(90deg, #22c55e, #14b8a6); }
.category-top.mode-sentence { background: linear-gradient(90deg, #ec4899, #8b5cf6); }

.category-body {
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.category-info { flex: 1; min-width: 0; }
.category-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}
.category-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.category-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.category-count {
  font-size: 24px;
  font-weight: 700;
  color: var(--error);
  min-width: 30px;
  text-align: center;
}

.review-btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.review-btn:disabled {
  background: var(--bg-tertiary);
  color: var(--text-muted);
  cursor: not-allowed;
}
.review-btn:not(:disabled):active {
  transform: scale(0.95);
}
