/**
 * 智能错题本 - 样式表
 * 设计风格：学生学习氛围（清新、简洁、专注）
 */

/* ========== 变量定义 ========== */
:root {
  /* 主色调 - 蓝色系（专注、理智） */
  --primary-color: #4A90D9;
  --primary-light: #5BA3E8;
  --primary-dark: #3A7BC8;
  --primary-gradient: linear-gradient(135deg, #4A90D9, #5BA3E8);
  
  /* 辅助色 */
  --success-color: #52C41A;
  --success-light: #73D13D;
  --warning-color: #FAAD14;
  --warning-light: #FFC53D;
  --error-color: #F5222D;
  --error-light: #FF4D4F;
  
  /* 中性色 */
  --text-primary: #333333;
  --text-secondary: #666666;
  --text-hint: #999999;
  --text-light: #FFFFFF;
  --border-color: #E8E8E8;
  --background: #F5F7FA;
  --card-background: #FFFFFF;
  --overlay-bg: rgba(0, 0, 0, 0.5);
  
  /* 间距 */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-xxl: 48px;
  
  /* 圆角 */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-xxl: 24px;
  
  /* 阴影 */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.15);
}

/* ========== 基础样式 ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background-color: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

#app {
  min-height: 100vh;
  padding-bottom: 60px;
}

.page-container {
  max-width: 600px;
  margin: 0 auto;
  padding: var(--spacing-md);
}

/* ========== 头部 ========== */
.header {
  background: var(--primary-gradient);
  color: white;
  padding: var(--spacing-lg) var(--spacing-md);
  text-align: center;
}

.header-content {
  max-width: 600px;
  margin: 0 auto;
}

.header-simple {
  padding: var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-simple .logo {
  font-size: 18px;
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.status-indicator {
  font-size: 14px;
  cursor: pointer;
  transition: opacity 0.3s;
}

.status-indicator:hover {
  opacity: 0.8;
}

.back-btn {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: var(--spacing-sm);
}

.logo {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

.slogan {
  font-size: 14px;
  opacity: 0.9;
}

.page-title {
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  padding: var(--spacing-md);
  color: var(--text-primary);
}

/* ========== 表单元素 ========== */
.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-sm);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--spacing-md);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: var(--card-background);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.1);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-hint {
  font-size: 12px;
  color: var(--text-hint);
  margin-top: var(--spacing-xs);
}

.form-error {
  font-size: 12px;
  color: var(--error-color);
  margin-top: var(--spacing-xs);
}

/* ========== 按钮 ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-lg);
  border: none;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

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

.btn-primary {
  background: var(--primary-gradient);
  color: white;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--card-background);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--background);
}

.btn-success {
  background: linear-gradient(135deg, var(--success-color), var(--success-light));
  color: white;
}

.btn-warning {
  background: linear-gradient(135deg, var(--warning-color), var(--warning-light));
  color: white;
}

.btn-danger {
  background: linear-gradient(135deg, var(--error-color), var(--error-light));
  color: white;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-lg {
  padding: var(--spacing-lg) var(--spacing-xl);
  font-size: 18px;
}

.btn-sm {
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: 14px;
}

.btn-icon {
  padding: var(--spacing-sm);
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

/* ========== 卡片样式 ========== */
.card {
  background: var(--card-background);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  box-shadow: var(--shadow-sm);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--border-color);
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.card-body {
  color: var(--text-secondary);
}

.welcome-card {
  text-align: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.welcome-card h2 {
  font-size: 20px;
  margin-bottom: var(--spacing-sm);
}

.welcome-card p {
  opacity: 0.9;
  margin-bottom: var(--spacing-md);
}

/* ========== 功能卡片 ========== */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.feature-card {
  background: var(--card-background);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  font-size: 36px;
  margin-bottom: var(--spacing-sm);
}

.feature-card h3 {
  font-size: 16px;
  margin-bottom: var(--spacing-xs);
  color: var(--text-primary);
}

.feature-card p {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ========== 列表项 ========== */
.list-item {
  display: flex;
  align-items: center;
  padding: var(--spacing-md);
  border-bottom: 1px solid var(--border-color);
  transition: background 0.2s ease;
}

.list-item:last-child {
  border-bottom: none;
}

.list-item:hover {
  background: var(--background);
}

.list-item-icon {
  font-size: 24px;
  margin-right: var(--spacing-md);
}

.list-item-content {
  flex: 1;
  min-width: 0;
}

.list-item-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
}

.list-item-desc {
  font-size: 13px;
  color: var(--text-secondary);
}

.list-item-meta {
  font-size: 12px;
  color: var(--text-hint);
}

.list-item-action {
  margin-left: var(--spacing-md);
}

/* ========== 错题卡片 ========== */
.question-card {
  background: var(--card-background);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.question-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.question-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-sm);
}

.subject-tag {
  display: inline-block;
  padding: var(--spacing-xs) var(--spacing-sm);
  background: var(--primary-light);
  color: white;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
}

.subject-tag.math { background: #4A90D9; }
.subject-tag.chinese { background: #E74C3C; }
.subject-tag.english { background: #3498DB; }
.subject-tag.physics { background: #9B59B6; }
.subject-tag.chemistry { background: #2ECC71; }
.subject-tag.biology { background: #1ABC9C; }
.subject-tag.history { background: #E67E22; }
.subject-tag.geography { background: #16A085; }

.difficulty-tag {
  display: inline-block;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  font-size: 12px;
}

.difficulty-easy {
  background: rgba(82, 196, 26, 0.1);
  color: var(--success-color);
}

.difficulty-medium {
  background: rgba(250, 173, 20, 0.1);
  color: var(--warning-color);
}

.difficulty-hard {
  background: rgba(245, 34, 45, 0.1);
  color: var(--error-color);
}

.question-content {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-sm);
  line-height: 1.5;
}

.question-image {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-sm);
}

.question-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-hint);
}

/* ========== 空状态 ========== */
.empty-state {
  padding: var(--spacing-xxl) var(--spacing-md);
  text-align: center;
  color: var(--text-hint);
}

.empty-state-icon {
  font-size: 64px;
  margin-bottom: var(--spacing-md);
  opacity: 0.5;
}

.empty-state p {
  font-size: 16px;
  margin-bottom: var(--spacing-sm);
}

.empty-state .hint {
  font-size: 12px;
}

/* ========== 底部导航 ========== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--card-background);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-around;
  padding: var(--spacing-sm) 0;
  z-index: 1000;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-secondary);
  padding: var(--spacing-xs) var(--spacing-sm);
  transition: color 0.2s ease;
}

.nav-item.active {
  color: var(--primary-color);
}

.nav-icon {
  font-size: 22px;
  margin-bottom: 2px;
}

.nav-label {
  font-size: 11px;
}

/* ========== 聊天界面 ========== */
.chat-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 120px);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--spacing-md);
}

.chat-message {
  display: flex;
  margin-bottom: var(--spacing-md);
}

.chat-message.user {
  flex-direction: row-reverse;
}

.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.chat-message.user .chat-avatar {
  background: linear-gradient(135deg, #667eea, #764ba2);
  margin-left: var(--spacing-sm);
}

.chat-message.ai .chat-avatar {
  margin-right: var(--spacing-sm);
}

.chat-bubble {
  max-width: 70%;
  padding: var(--spacing-md);
  border-radius: var(--radius-lg);
  font-size: 14px;
  line-height: 1.5;
}

.chat-message.user .chat-bubble {
  background: var(--primary-gradient);
  color: white;
  border-top-right-radius: var(--radius-sm);
}

.chat-message.ai .chat-bubble {
  background: var(--card-background);
  color: var(--text-primary);
  border-top-left-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.chat-input-container {
  display: flex;
  align-items: center;
  padding: var(--spacing-md);
  background: var(--card-background);
  border-top: 1px solid var(--border-color);
  gap: var(--spacing-sm);
}

.chat-input {
  flex: 1;
  padding: var(--spacing-md);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  font-size: 14px;
  resize: none;
}

.chat-input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.chat-send-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-gradient);
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========== 图片上传 ========== */
.upload-area {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  background: var(--card-background);
}

.upload-area:hover {
  border-color: var(--primary-color);
  background: rgba(74, 144, 217, 0.05);
}

.upload-area.has-image {
  border-style: solid;
  border-color: var(--success-color);
}

.upload-icon {
  font-size: 48px;
  margin-bottom: var(--spacing-md);
  opacity: 0.5;
}

.upload-text {
  font-size: 14px;
  color: var(--text-secondary);
}

.upload-hint {
  font-size: 12px;
  color: var(--text-hint);
  margin-top: var(--spacing-sm);
}

.image-preview {
  position: relative;
  margin-bottom: var(--spacing-md);
}

.image-preview img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.image-preview-remove {
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-sm);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-preview-edit {
  position: absolute;
  top: var(--spacing-sm);
  left: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  background: rgba(74, 144, 217, 0.9);
  color: white;
  border: none;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.image-preview-edit:hover {
  background: rgba(74, 144, 217, 1);
}

/* ========== 统计图表 ========== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.stat-card {
  background: var(--card-background);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat-value {
  font-size: 32px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: var(--spacing-xs);
}

.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
}

.progress-bar {
  height: 8px;
  background: var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-top: var(--spacing-sm);
}

.progress-fill {
  height: 100%;
  background: var(--primary-gradient);
  border-radius: var(--radius-sm);
  transition: width 0.3s ease;
}

/* ========== 复习计划 ========== */
.review-task {
  background: var(--card-background);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.review-task-icon {
  font-size: 32px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(74, 144, 217, 0.1);
  border-radius: var(--radius-md);
}

.review-task-content {
  flex: 1;
}

.review-task-title {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: var(--spacing-xs);
}

.review-task-desc {
  font-size: 13px;
  color: var(--text-secondary);
}

.review-task-action {
  flex-shrink: 0;
}

/* ========== VIP 页面 ========== */
.vip-banner {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  text-align: center;
  color: white;
  margin-bottom: var(--spacing-lg);
}

.vip-banner h2 {
  font-size: 24px;
  margin-bottom: var(--spacing-sm);
}

.vip-banner p {
  opacity: 0.9;
  margin-bottom: var(--spacing-md);
}

.vip-features {
  margin-bottom: var(--spacing-lg);
}

.vip-feature-item {
  display: flex;
  align-items: center;
  padding: var(--spacing-md);
  background: var(--card-background);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-sm);
  box-shadow: var(--shadow-sm);
}

.vip-feature-icon {
  font-size: 24px;
  margin-right: var(--spacing-md);
  color: #FFD700;
}

.vip-feature-text {
  flex: 1;
  font-size: 14px;
  color: var(--text-primary);
}

.price-card {
  background: var(--card-background);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
  border: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.price-card.popular {
  border-color: var(--primary-color);
}

.price-card-label {
  display: inline-block;
  padding: var(--spacing-xs) var(--spacing-md);
  background: var(--primary-color);
  color: white;
  border-radius: var(--radius-sm);
  font-size: 12px;
  margin-bottom: var(--spacing-md);
}

.price-amount {
  font-size: 36px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: var(--spacing-xs);
}

.price-period {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
}

/* ========== 用户信息 ========== */
.profile-header {
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-md);
  background: var(--primary-gradient);
  color: white;
  margin-bottom: var(--spacing-lg);
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto var(--spacing-md);
  box-shadow: var(--shadow-md);
}

.profile-name {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

.profile-vip-badge {
  display: inline-block;
  padding: var(--spacing-xs) var(--spacing-md);
  background: #FFD700;
  color: #333;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
  background: var(--card-background);
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
}

.profile-stat-item {
  text-align: center;
}

.profile-stat-value {
  font-size: 24px;
  font-weight: 600;
  color: var(--primary-color);
}

.profile-stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: var(--spacing-xs);
}

/* ========== 模态框 ========== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--overlay-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--card-background);
  border-radius: var(--radius-xl);
  padding: var(--spacing-lg);
  width: 90%;
  max-width: 400px;
  max-height: 80vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform 0.2s ease;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-lg);
}

.modal-title {
  font-size: 18px;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-hint);
  cursor: pointer;
  padding: var(--spacing-sm);
}

/* ========== 筛选栏 ========== */
.filter-bar {
  display: flex;
  gap: var(--spacing-sm);
  padding: var(--spacing-md);
  background: var(--card-background);
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-md);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.filter-chip {
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--background);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-chip.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* ========== 加载状态 ========== */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xl);
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border-color);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* ========== 消息提示 ========== */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: var(--text-primary);
  color: white;
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius-md);
  font-size: 14px;
  z-index: 3000;
  transition: transform 0.3s ease;
  box-shadow: var(--shadow-lg);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

.toast.success {
  background: var(--success-color);
}

.toast.error {
  background: var(--error-color);
}

.toast.warning {
  background: var(--warning-color);
}

/* ========== 搜索框 ========== */
.search-box {
  display: flex;
  align-items: center;
  background: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--spacing-sm) var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.search-box input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  padding: var(--spacing-sm);
}

.search-box .search-icon {
  color: var(--text-hint);
  font-size: 18px;
}

/* ========== 表格样式 ========== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-background);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.data-table th,
.data-table td {
  padding: var(--spacing-md);
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.data-table th {
  background: var(--background);
  font-weight: 500;
  font-size: 13px;
  color: var(--text-secondary);
}

.data-table td {
  font-size: 14px;
}

.data-table tr:last-child td {
  border-bottom: none;
}

/* ========== 响应式 ========== */
@media (max-width: 375px) {
  .logo {
    font-size: 20px;
  }
  
  .features {
    grid-template-columns: 1fr;
  }
  
  .stats-grid,
  .profile-stats {
    grid-template-columns: 1fr;
  }
  
  .chat-bubble {
    max-width: 80%;
  }
}

/* ========== 工具类 ========== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary { color: var(--primary-color); }
.text-success { color: var(--success-color); }
.text-warning { color: var(--warning-color); }
.text-error { color: var(--error-color); }
.text-hint { color: var(--text-hint); }

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }

.flex { display: flex; }
.flex-between { justify-content: space-between; }
.flex-center { align-items: center; justify-content: center; }
.flex-1 { flex: 1; }
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }

.hidden { display: none !important; }
