/* ========================================================
   戒了么 后台管理系统 - 样式表 (Premium Edition)
   设计风格: 极光深色、高级玻璃拟态、微交互动画
   ======================================================== */

/* ==================== CSS变量系统 ==================== */
:root {
  /* 核心色板 - 更加深邃高级 */
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-glow: rgba(99, 102, 241, 0.4);
  
  --secondary: #ec4899;
  --secondary-glow: rgba(236, 72, 153, 0.4);
  
  --accent: #06b6d4;
  --accent-glow: rgba(6, 182, 212, 0.4);

  /* 背景色系 */
  --bg-body: #030014; /* 极深蓝黑 */
  --bg-sidebar: rgba(15, 23, 42, 0.6);
  --bg-card: rgba(30, 41, 59, 0.4);
  --bg-card-hover: rgba(30, 41, 59, 0.6);
  --bg-input: rgba(15, 23, 42, 0.5);
  
  /* 文本色系 */
  --text-main: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* 功能色 */
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;

  /* 边框与光效 */
  --border-color: rgba(148, 163, 184, 0.1);
  --border-highlight: rgba(148, 163, 184, 0.2);
  --glass-border: 1px solid rgba(255, 255, 255, 0.05);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.36);
  
  /* 尺寸 */
  --sidebar-width: 260px;
  --header-height: 70px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  
  /* 动画 */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-elastic: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ==================== 全局重置与排版 ==================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--bg-body);
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.08), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(236, 72, 153, 0.08), transparent 25%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  font-size: 15px;
  overflow-x: hidden;
}

/* 自定义滚动条 */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { 
  background: rgba(148, 163, 184, 0.2); 
  border-radius: 10px; 
}
::-webkit-scrollbar-thumb:hover { background: rgba(148, 163, 184, 0.4); }

a { text-decoration: none; color: inherit; transition: color 0.2s; }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; }

/* ==================== 登录页 (极光风格) ==================== */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.login-bg {
  position: absolute;
  inset: -50%;
  background: 
    radial-gradient(circle at 50% 50%, rgba(76, 29, 149, 0.1), transparent 60%),
    conic-gradient(from 0deg at 50% 50%, rgba(99, 102, 241, 0.05) 0deg, transparent 60deg, rgba(236, 72, 153, 0.05) 120deg, transparent 180deg);
  animation: spin 20s linear infinite;
  z-index: 0;
}

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

.login-card {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 440px;
  padding: 48px;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  transform: translateY(0);
  animation: floatUp 0.8s var(--ease-out);
}

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

.login-logo { text-align: center; margin-bottom: 40px; }
.login-logo .logo-icon { 
  margin-bottom: 16px; 
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(236, 72, 153, 0.15));
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  filter: drop-shadow(0 0 20px var(--primary-glow));
  animation: pulse 3s infinite ease-in-out;
}
.login-logo .logo-icon svg {
  width: 42px;
  height: 42px;
  stroke: var(--primary);
  stroke-width: 1.8;
}
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }

.login-logo h1 {
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}
.login-logo p { color: var(--text-secondary); font-size: 14px; margin-top: 8px; font-weight: 500; }

.input-group { position: relative; margin-bottom: 24px; }
.input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  transition: color 0.3s;
  display: flex;
  align-items: center;
}
.input-icon svg {
  width: 18px;
  height: 18px;
}

.input-group input {
  width: 100%;
  padding: 16px 16px 16px 48px;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 15px;
  transition: all 0.3s;
}

.input-group input:focus {
  background: rgba(15, 23, 42, 0.8);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
  outline: none;
}
.input-group input:focus ~ .input-icon { color: var(--primary); }

.btn-login {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 20px var(--primary-glow);
  position: relative;
  overflow: hidden;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--primary-glow);
}
.btn-login:active { transform: translateY(0); }

.login-footer {
  text-align: center;
  margin-top: 32px;
  color: var(--text-muted);
  font-size: 12px;
  opacity: 0.7;
}

/* ==================== 布局框架 ==================== */
.main-app { display: flex; min-height: 100vh; }

/* 侧边栏 */
.sidebar {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: var(--glass-border);
  display: flex;
  flex-direction: column;
  z-index: 50;
  transition: transform 0.4s var(--ease-out);
}

.sidebar-header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  padding: 0 24px;
  border-bottom: var(--glass-border);
}

.sidebar-logo { margin-right: 12px; display: flex; align-items: center; }
.sidebar-logo svg { width: 28px; height: 28px; stroke: var(--primary); stroke-width: 2; }
.sidebar-title h2 { font-size: 18px; font-weight: 700; color: var(--text-main); }
.sidebar-title span { font-size: 12px; color: var(--text-muted); display: block; margin-top: -2px; }
.sidebar-close { display: none; margin-left: auto; background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 4px; }
.sidebar-close svg { width: 20px; height: 20px; }

.sidebar-nav { flex: 1; padding: 24px 16px; overflow-y: auto; }

.nav-item {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  margin-bottom: 8px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 500;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.nav-item .nav-icon { margin-right: 12px; width: 24px; display: flex; align-items: center; justify-content: center; transition: transform 0.2s; }
.nav-item .nav-icon svg { width: 20px; height: 20px; }
.nav-item:hover { color: var(--text-main); background: rgba(255, 255, 255, 0.03); }
.nav-item:hover .nav-icon { transform: scale(1.1); }

.nav-item.active {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
}
.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 10%; bottom: 10%;
  width: 3px;
  background: var(--primary);
  border-radius: 0 4px 4px 0;
  box-shadow: 0 0 10px var(--primary);
}

.sidebar-footer {
  padding: 20px;
  border-top: var(--glass-border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.admin-info { flex: 1; overflow: hidden; }
.admin-name { font-weight: 600; font-size: 14px; color: var(--text-main); }
.btn-logout {
  padding: 8px 12px;
  font-size: 12px;
  border-radius: 6px;
  border: 1px solid rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
}
.btn-logout svg { width: 14px; height: 14px; margin-right: 4px; }
.btn-logout:hover { background: rgba(239, 68, 68, 0.2); }

/* 主内容区 */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left 0.4s var(--ease-out);
}

.topbar {
  height: var(--header-height);
  padding: 0 32px;
  display: flex;
  align-items: center;
  background: rgba(3, 0, 20, 0.7);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: var(--glass-border);
}

.menu-toggle { display: none; background: none; border: none; color: var(--text-main); margin-right: 16px; cursor: pointer; padding: 4px; }
.menu-toggle svg { width: 24px; height: 24px; }
.page-title { font-size: 20px; font-weight: 700; letter-spacing: -0.5px; }
.topbar-actions { margin-left: auto; }
.current-time { font-family: 'JetBrains Mono', monospace; color: var(--text-secondary); font-size: 13px; background: rgba(255,255,255,0.05); padding: 6px 12px; border-radius: 20px; }

.page-container { padding: 32px; flex: 1; max-width: 1600px; margin: 0 auto; width: 100%; }

/* ==================== 组件样式 ==================== */

/* 卡片 */
.card {
  background: var(--bg-card);
  border: var(--glass-border);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
  border-color: var(--border-highlight);
}

.card-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  display: flex; justify-content: space-between; align-items: center;
}
.card-header h3 { font-size: 16px; font-weight: 600; color: var(--text-main); display: flex; align-items: center; gap: 8px; }
.icon-inline { display: inline-flex; vertical-align: middle; width: 18px; height: 18px; stroke: var(--primary); }
.card-body { padding: 24px; }

/* 统计卡片 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg-card);
  border: var(--glass-border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 4px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
  opacity: 0.5;
}

.stat-card:hover { transform: translateY(-4px); background: var(--bg-card-hover); }

.stat-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.05);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
}
.stat-icon svg { width: 28px; height: 28px; stroke-width: 1.8; }

.stat-info { flex: 1; }
.stat-value { font-size: 28px; font-weight: 800; line-height: 1.2; letter-spacing: -1px; }
.stat-label { font-size: 13px; color: var(--text-secondary); margin-top: 4px; font-weight: 500; }

/* 统计卡片特有色 */
.gradient-blue { color: #818cf8; } .gradient-blue .stat-icon { background: rgba(129, 140, 248, 0.1); color: #818cf8; }
.gradient-green { color: #34d399; } .gradient-green .stat-icon { background: rgba(52, 211, 153, 0.1); color: #34d399; }
.gradient-orange { color: #fbbf24; } .gradient-orange .stat-icon { background: rgba(251, 191, 36, 0.1); color: #fbbf24; }
.gradient-purple { color: #c084fc; } .gradient-purple .stat-icon { background: rgba(192, 132, 252, 0.1); color: #c084fc; }
.gradient-pink { color: #f472b6; } .gradient-pink .stat-icon { background: rgba(244, 114, 182, 0.1); color: #f472b6; }
.gradient-teal { color: #2dd4bf; } .gradient-teal .stat-icon { background: rgba(45, 212, 191, 0.1); color: #2dd4bf; }

/* 按钮 */
.btn {
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 6px; justify-content: center;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }

.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--text-main);
  border-color: rgba(255,255,255,0.1);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); }

.btn-sm { padding: 6px 12px; font-size: 12px; }

/* 表格 */
.table-responsive { overflow-x: auto; border-radius: var(--radius-sm); }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th {
  text-align: left;
  padding: 16px 20px;
  color: var(--text-secondary);
  font-weight: 600;
  background: rgba(15, 23, 42, 0.4);
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}
.data-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(255,255,255,0.02); }

/* 标签 */
.tag { padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; display: inline-block; }
.tag-user { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.tag-admin { background: rgba(99, 102, 241, 0.15); color: #818cf8; }
.tag-superadmin { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.tag-active, .tag-completed { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.tag-inactive, .tag-failed { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.tag-scheduled { background: rgba(99, 102, 241, 0.15); color: #818cf8; }
.tag-missed { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.tag-manual { background: rgba(6, 182, 212, 0.15); color: #22d3ee; }
.tag-ai_initiated { background: rgba(192, 132, 252, 0.15); color: #c084fc; }

/* 表单元素 */
.form-group { margin-bottom: 24px; }
.form-group label { display: block; margin-bottom: 8px; font-size: 13px; color: var(--text-secondary); font-weight: 500; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  transition: all 0.2s;
  font-size: 14px;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--primary);
  background: rgba(15, 23, 42, 0.8);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
  outline: none;
}

/* 开关 Toggle */
.switch-label { display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.switch {
  width: 48px; height: 26px;
  background: rgba(255,255,255,0.1);
  border-radius: 13px;
  position: relative;
  transition: 0.3s;
}
.switch::after {
  content: ''; position: absolute; left: 3px; top: 3px;
  width: 20px; height: 20px; background: white; border-radius: 50%;
  transition: 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
input:checked + .switch { background: var(--primary); }
input:checked + .switch::after { transform: translateX(22px); }

/* Range Slider */
input[type=range] {
  -webkit-appearance: none; width: 100%; background: transparent;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 18px; width: 18px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  margin-top: -7px;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}
input[type=range]::-webkit-slider-runnable-track {
  width: 100%; height: 4px; cursor: pointer;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
}

/* 模态框 */
.modal {
  display: none; position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 100;
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal.active { display: flex; animation: fadeIn 0.2s ease-out; }
.modal-content {
  background: #1e293b;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  width: 100%; max-width: 500px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  transform: scale(0.95);
  animation: scaleIn 0.3s var(--ease-elastic) forwards;
}
@keyframes scaleIn { to { transform: scale(1); } }

.modal-header { padding: 20px 24px; border-bottom: 1px solid rgba(255,255,255,0.05); display: flex; justify-content: space-between; align-items: center; }
.modal-header h3 { font-size: 18px; font-weight: 600; }
.modal-close { background: none; border: none; color: var(--text-muted); cursor: pointer; transition: 0.2s; padding: 4px; display: flex; align-items: center; }
.modal-close svg { width: 20px; height: 20px; }
.modal-close:hover { color: white; }
.modal-body { padding: 24px; max-height: 70vh; overflow-y: auto; }
.modal-footer { padding: 16px 24px; border-top: 1px solid rgba(255,255,255,0.05); display: flex; justify-content: flex-end; gap: 12px; }

/* 移动端底部导航 */
.mobile-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  height: 64px;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255,255,255,0.05);
  z-index: 90;
  justify-content: space-around;
  align-items: center;
  padding-bottom: env(safe-area-inset-bottom);
}
.mobile-nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--text-muted); font-size: 10px; padding: 8px;
}
.mobile-nav-item.active { color: var(--primary); }
.mobile-nav-item .mn-icon { display: flex; align-items: center; justify-content: center; margin-bottom: 2px; }
.mobile-nav-item .mn-icon svg { width: 20px; height: 20px; }

/* 响应式适配 */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); width: 280px; }
  .sidebar.open { transform: translateX(0); box-shadow: 50px 0 100px rgba(0,0,0,0.5); }
  .sidebar-close { display: block; }
  
  .main-content { margin-left: 0; }
  .topbar { padding: 0 20px; }
  .menu-toggle { display: block; }
  .page-container { padding: 20px; padding-bottom: 80px; }
  
  .mobile-nav { display: flex; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-card { padding: 16px; flex-direction: column; align-items: flex-start; gap: 12px; }
  .stat-icon { width: 40px; height: 40px; border-radius: 10px; }
  .stat-icon svg { width: 20px; height: 20px; }
  .stat-value { font-size: 24px; }
  
  .config-grid { grid-template-columns: 1fr; }
  
  .login-card { padding: 32px 24px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat-card { flex-direction: row; align-items: center; }
}

/* Toast 通知 */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: rgba(30, 41, 59, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  animation: slideInRight 0.35s var(--ease-out);
  transition: opacity 0.3s, transform 0.3s;
  max-width: 400px;
}
.toast-icon { display: flex; align-items: center; flex-shrink: 0; }
.toast-text { flex: 1; line-height: 1.4; }
.toast-success { border-left: 3px solid var(--success); }
.toast-success .toast-icon { color: var(--success); }
.toast-error { border-left: 3px solid var(--danger); }
.toast-error .toast-icon { color: var(--danger); }
.toast-warning { border-left: 3px solid var(--warning); }
.toast-warning .toast-icon { color: var(--warning); }
.toast-info { border-left: 3px solid var(--info); }
.toast-info .toast-icon { color: var(--info); }
@keyframes slideInRight { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }

/* 动画类 */
.fade-in { animation: fadeIn 0.4s var(--ease-out); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.page { display: none; }
.page.active { display: block; animation: fadeIn 0.4s var(--ease-out); }

/* 表格空状态 */
.empty {
  text-align: center;
  color: var(--text-muted);
  padding: 48px 20px !important;
  font-size: 14px;
}

/* 分页 */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 16px 20px;
}
.pagination button {
  min-width: 36px;
  height: 36px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.pagination button:hover:not(:disabled) {
  background: rgba(99, 102, 241, 0.1);
  border-color: var(--primary);
  color: var(--primary);
}
.pagination button.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}
.pagination button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* 登录错误提示 */
.login-error {
  color: var(--danger);
  font-size: 13px;
  text-align: center;
  margin-top: 16px;
  min-height: 20px;
}

/* Range 滑块组 */
.range-group {
  display: flex;
  align-items: center;
  gap: 12px;
}
.range-group span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  min-width: 36px;
}

/* 隐藏 checkbox */
.switch-label input[type="checkbox"] {
  display: none;
}

/* 配置双栏网格 */
.config-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* 表单提示文字 */
.form-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.5;
}

/* 参数标签 */
.form-tag {
  display: inline-block;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  background: rgba(99, 102, 241, 0.12);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 6px;
  font-weight: 500;
}

/* 工具栏 */
.toolbar { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; align-items: center; }
.filter-group { display: flex; gap: 12px; flex-wrap: wrap; }
.search-box { display: flex; gap: 8px; flex: 1; min-width: 200px; }
.search-box input {
  flex: 1;
  padding: 10px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 14px;
  transition: all 0.2s;
}
.search-box input:focus {
  border-color: var(--primary);
  background: rgba(15, 23, 42, 0.8);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
  outline: none;
}
.filter-group select {
  padding: 10px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 14px;
  transition: all 0.2s;
  cursor: pointer;
}
.filter-group select:focus {
  border-color: var(--primary);
  outline: none;
}

/* 图表容器 */
.chart-container { height: 240px; margin-top: 16px; display: flex; align-items: flex-end; gap: 12px; padding-bottom: 10px; }
.chart-bar-group { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.chart-bar { 
  width: 100%;
  max-width: 40px;
  background: linear-gradient(to top, rgba(99, 102, 241, 0.2), rgba(99, 102, 241, 0.8)); 
  border-radius: 4px 4px 0 0; 
  transition: height 1s var(--ease-elastic);
  position: relative;
  min-height: 4px;
}
.chart-bar:hover { background: linear-gradient(to top, rgba(99, 102, 241, 0.4), #6366f1); }
.chart-bar-value { font-size: 12px; font-weight: 600; color: var(--primary); margin-bottom: 4px; }
.chart-bar-label { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
