/* ========================================
   抖音AI直播助手 - 全局样式 v2.0
   高端大气上档次 · 简洁有序
   ======================================== */

:root {
  /* 主色调 - 深空蓝紫渐变系 */
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #eef2ff;
  --primary-glow: rgba(99, 102, 241, 0.35);
  --accent: #ec4899;
  --accent-light: #fdf2f8;
  --secondary: #06b6d4;
  --secondary-light: #ecfeff;

  /* 边框 */
  --border: #e2e8f0;
  --border-light: #f1f5f9;

  /* 中性色 */
  --dark: #0f172a;
  --dark-2: #1e293b;
  --dark-3: #334155;
  --gray: #64748b;
  --gray-light: #94a3b8;
  --light-gray: #f1f5f9;
  --lighter-gray: #f8fafc;
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --card-bg-hover: #fdfdff;

  /* 语义色 */
  --success: #10b981;
  --success-light: #ecfdf5;
  --warning: #f59e0b;
  --warning-light: #fffbeb;
  --danger: #ef4444;
  --danger-light: #fef2f2;
  --info: #0ea5e9;
  --info-light: #f0f9ff;

  /* 设计令牌 */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 0 20px var(--primary-glow);
  --header-h: 60px;
  --sidebar-w: 260px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--dark);
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: var(--primary); transition: color var(--transition); }
ul { list-style: none; }

/* ========== 通用组件 ========== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 22px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 2px 8px var(--primary-glow);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--primary-glow);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--light-gray);
  color: var(--dark-3);
}
.btn-secondary:hover { background: #e2e8f0; }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--light-gray);
  color: var(--dark-3);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

.btn-ghost {
  background: transparent;
  color: var(--gray);
}
.btn-ghost:hover { background: var(--light-gray); color: var(--dark); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #059669; }

.btn-sm { padding: 5px 14px; font-size: 12px; }
.btn-lg { padding: 13px 36px; font-size: 16px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; }

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  transition: box-shadow var(--transition);
  border: 1px solid rgba(0,0,0,0.03);
}
.card:hover { box-shadow: var(--shadow); }

.input, .select, .textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-sm);
  font-size: 14px;
  outline: none;
  transition: all var(--transition);
  background: #fff;
  color: var(--dark);
}
.input::placeholder, .textarea::placeholder { color: var(--gray-light); }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.textarea { resize: vertical; min-height: 80px; line-height: 1.6; }

.label {
  display: block;
  font-size: 13px;
  color: var(--dark-3);
  margin-bottom: 6px;
  font-weight: 600;
}
.form-group { margin-bottom: 16px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}
.badge-success { background: var(--success-light); color: var(--success); }
.badge-warning { background: var(--warning-light); color: var(--warning); }
.badge-danger { background: var(--danger-light); color: var(--danger); }
.badge-info { background: var(--info-light); color: var(--info); }
.badge-primary { background: var(--primary-light); color: var(--primary); }

/* ========== 登录页 ========== */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.login-page::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  top: -200px; right: -200px;
  border-radius: 50%;
}
.login-page::after {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.15) 0%, transparent 70%);
  bottom: -150px; left: -150px;
  border-radius: 50%;
}
.login-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  padding: 44px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-xl);
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255,255,255,0.3);
}
.login-logo { text-align: center; margin-bottom: 32px; }
.login-logo h1 { font-size: 26px; color: var(--dark); font-weight: 800; }
.login-logo .subtitle { color: var(--gray); font-size: 13px; margin-top: 6px; }
.login-card .form-group { margin-bottom: 20px; }

/* ========== 顶部导航 ========== */
.app-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  padding: 0 24px;
  z-index: 100;
  justify-content: space-between;
}
.app-header .logo {
  font-size: 18px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  gap: 10px;
}
.app-header .logo .dot {
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}
.app-header .nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.app-header .nav a {
  color: var(--gray);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.app-header .nav a:hover { color: var(--dark); background: var(--light-gray); }
.app-header .nav a.active {
  color: var(--primary);
  background: var(--primary-light);
  font-weight: 600;
}
.user-info { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.user-info .avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.logout-btn { color: var(--gray) !important; font-size: 13px; }
.logout-btn:hover { color: var(--danger) !important; }

/* ========== Tab 导航 ========== */
.tab-nav {
  display: flex;
  gap: 4px;
  background: var(--card-bg);
  padding: 5px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.tab-nav::-webkit-scrollbar { display: none; }
.tab-btn {
  flex: 1;
  min-width: max-content;
  padding: 10px 20px;
  border: none;
  background: transparent;
  color: var(--gray);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tab-btn:hover { color: var(--dark); background: var(--light-gray); }
.tab-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 2px 8px var(--primary-glow);
}
.tab-content { display: none; animation: fadeIn 0.3s ease; }
.tab-content.active { display: block; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== 直播间页面 ========== */
.live-page {
  padding-top: var(--header-h);
  min-height: 100vh;
  background:
    radial-gradient(ellipse at top, rgba(99, 102, 241, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at bottom, rgba(236, 72, 153, 0.03) 0%, transparent 50%),
    var(--bg);
}
.live-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px;
}
.live-main { display: flex; flex-direction: column; gap: 20px; }

/* 双栏布局 */
.live-dual {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 20px;
}
.live-dual .live-left { display: flex; flex-direction: column; gap: 20px; }
.live-dual .live-right { display: flex; flex-direction: column; gap: 20px; }

/* 直播预览区 */
.live-preview {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.live-preview::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.3) 100%);
  pointer-events: none;
}
.live-preview .placeholder { text-align: center; color: #64748b; position: relative; z-index: 1; }
.live-preview .placeholder .icon { font-size: 56px; margin-bottom: 12px; }
.live-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: linear-gradient(135deg, var(--danger), #c026d3);
  color: #fff;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
  box-shadow: 0 2px 12px rgba(239, 68, 68, 0.4);
}
.live-badge::before {
  content: '';
  width: 7px; height: 7px;
  background: #fff;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

/* 消息列表 */
.message-list {
  max-height: 460px;
  overflow-y: auto;
  padding: 6px;
}
.message-item {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
  transition: background var(--transition);
}
.message-item:hover { background: var(--lighter-gray); }
.message-item .avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: var(--shadow-xs);
}
.message-item .content { flex: 1; min-width: 0; }
.message-item .content .name { font-size: 13px; color: var(--gray); margin-bottom: 2px; font-weight: 500; }
.message-item .content .text { font-size: 14px; word-break: break-word; }
.message-item .content .reply {
  margin-top: 8px;
  padding: 10px 14px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--primary-dark);
  border-left: 3px solid var(--primary);
}

/* ========== 统计卡片 ========== */
.stat-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all var(--transition);
  border: 1px solid rgba(0,0,0,0.03);
}
.stat-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.stat-card .icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  flex-shrink: 0;
}
.stat-card .info .value { font-size: 22px; font-weight: 800; }
.stat-card .info .label { font-size: 12px; color: var(--gray); margin: 0; }

/* ========== 后台管理 ========== */
.admin-page { padding-top: var(--header-h); min-height: 100vh; display: flex; }
.admin-sidebar {
  width: var(--sidebar-w);
  background: var(--card-bg);
  border-right: 1px solid var(--border);
  position: fixed;
  top: var(--header-h); bottom: 0; left: 0;
  padding: 16px 0;
  overflow-y: auto;
  z-index: 50;
}
.admin-sidebar .menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  color: var(--gray);
  cursor: pointer;
  transition: all var(--transition);
  border-left: 3px solid transparent;
  font-size: 14px;
  font-weight: 500;
}
.admin-sidebar .menu-item:hover { background: var(--light-gray); color: var(--dark); }
.admin-sidebar .menu-item.active {
  background: var(--primary-light);
  color: var(--primary);
  border-left-color: var(--primary);
  font-weight: 600;
}
.admin-content { margin-left: var(--sidebar-w); flex: 1; padding: 24px; min-width: 0; }
.admin-section { display: none; }
.admin-section.active { display: block; animation: fadeIn 0.3s ease; }
.page-title { font-size: 22px; font-weight: 800; margin-bottom: 20px; }

/* 表格 */
.table-wrapper {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.03);
}
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  background: var(--lighter-gray);
  padding: 14px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.data-table td { padding: 14px 16px; border-top: 1px solid var(--border); font-size: 14px; }
.data-table tr:hover td { background: var(--lighter-gray); }
.data-table .actions { display: flex; gap: 8px; }

/* 分页 */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  gap: 12px;
}
.pagination .info { font-size: 13px; color: var(--gray); }
.pagination .btns { display: flex; gap: 8px; }

/* 统计卡片网格 */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-box {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.03);
  transition: all var(--transition);
}
.stat-box:hover { box-shadow: var(--shadow); }
.stat-box .stat-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 12px; color: #fff;
}
.stat-box .stat-value { font-size: 30px; font-weight: 800; }
.stat-box .stat-label { font-size: 13px; color: var(--gray); margin-top: 4px; }

/* 模态框 */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.modal-overlay.show { display: flex; animation: fadeIn 0.2s ease; }
.modal {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: modalIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-title { font-size: 20px; font-weight: 800; margin-bottom: 20px; }
.modal-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; }

/* Toast */
.toast {
  position: fixed;
  top: 76px; left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: var(--dark);
  color: #fff;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  z-index: 2000;
  opacity: 0;
  transition: all var(--transition);
  pointer-events: none;
  box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }

/* 连接控制 */
.connection-control {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.connection-control .input { flex: 1; min-width: 200px; }

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
}
.status-indicator.online { background: var(--success-light); color: var(--success); }
.status-indicator.offline { background: var(--danger-light); color: var(--danger); }
.status-indicator .dot { width: 8px; height: 8px; border-radius: 50%; }
.status-indicator.online .dot { background: var(--success); animation: pulse 1.5s infinite; }
.status-indicator.offline .dot { background: var(--danger); }

/* ========== 充值页面 ========== */
.recharge-page {
  padding-top: var(--header-h);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.recharge-card {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  padding: 40px;
  width: 100%;
  max-width: 500px;
  box-shadow: var(--shadow-xl);
}
.points-display { text-align: center; margin-bottom: 30px; }
.points-display .points { font-size: 52px; font-weight: 800; color: var(--primary); }
.points-display .label { font-size: 14px; color: var(--gray); }

/* ========== 移动端菜单 ========== */
.mobile-menu-btn {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--dark);
}

/* ========== 开关样式 ========== */
.switch {
  position: relative;
  display: inline-block;
  width: 44px; height: 24px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #cbd5e1;
  transition: var(--transition);
  border-radius: 24px;
}
.slider:before {
  position: absolute;
  content: '';
  height: 18px; width: 18px;
  left: 3px; bottom: 3px;
  background: #fff;
  transition: var(--transition);
  border-radius: 50%;
  box-shadow: var(--shadow-xs);
}
input:checked + .slider { background: var(--primary); }
input:checked + .slider:before { transform: translateX(20px); }

/* ========== 空状态 ========== */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--gray);
}
.empty-state .icon { font-size: 48px; margin-bottom: 12px; opacity: 0.6; }

/* ========== 区块标题 ========== */
.section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title .badge { margin-left: auto; }

/* ========== 列表项 ========== */
.list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 8px;
  transition: all var(--transition);
  background: #fff;
}
.list-item:hover { border-color: var(--primary); box-shadow: var(--shadow-xs); }
.list-item .item-info { flex: 1; min-width: 0; }
.list-item .item-info .name { font-size: 14px; font-weight: 600; color: var(--dark); }
.list-item .item-info .desc { font-size: 12px; color: var(--gray); margin-top: 2px; }

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
  .live-dual { grid-template-columns: 1fr; }
  .live-dual .live-right { flex-direction: row; flex-wrap: wrap; }
  .live-dual .live-right > * { flex: 1; min-width: 300px; }
}

@media (max-width: 768px) {
  :root { --header-h: 54px; --sidebar-w: 220px; }
  .app-header { padding: 0 14px; }
  .app-header .nav { display: none; }
  .app-header .nav.show {
    display: flex;
    position: absolute;
    top: var(--header-h); left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 12px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 var(--radius) var(--radius);
  }
  .app-header .nav.show a { width: 100; }
  .mobile-menu-btn { display: block; }
  .live-container { padding: 12px; }
  .live-dual .live-right { flex-direction: column; }
  .live-dual .live-right > * { min-width: 100%; }
  .admin-sidebar { transform: translateX(-100%); transition: transform 0.3s; z-index: 99; }
  .admin-sidebar.show { transform: translateX(0); }
  .admin-content { margin-left: 0; padding: 16px; }
  .login-card, .recharge-card { padding: 28px 20px; }
  .data-table { font-size: 13px; }
  .data-table th, .data-table td { padding: 8px 10px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .modal { padding: 20px; }
  .tab-nav { border-radius: var(--radius-sm); }
  .tab-btn { padding: 8px 14px; font-size: 13px; }
}

@media (max-width: 480px) {
  .stat-grid { grid-template-columns: 1fr; }
  .stat-card { min-width: 100%; }
  .data-table .hide-mobile { display: none; }
  .page-title { font-size: 18px; }
  .tab-btn { padding: 8px 10px; font-size: 12px; }
}

/* 滚动条美化 */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* 渐变背景工具类 */
.gradient-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }
.gradient-accent { background: linear-gradient(135deg, var(--accent), #be185d); }
.gradient-success { background: linear-gradient(135deg, var(--success), #047857); }
.gradient-warning { background: linear-gradient(135deg, var(--warning), #d97706); }
.gradient-info { background: linear-gradient(135deg, var(--info), #0284c7); }
