/* SubKvps 管理后台 - Linear 风格设计（增强版）*/

/* ==================== 字体导入（必须在最前面） ==================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ==================== 导入通用组件样式（必须在其他规则之前） ==================== */
@import './components/logo.css';
@import './components/buttons.css';
@import './components/inputs.css';
@import './components/datetime-picker.css';
@import './components/modal.css';
@import './components/toast.css';
@import './components/badge.css';
@import './components/table.css';
@import './components/pagination.css';
@import './components/tabs.css';
@import './components/card.css';
@import './components/stat-card.css';
@import './components/search.css';
@import './components/filters.css';
@import './components/select.css';
@import './components/tooltip.css';
@import './components/navbar.css';
@import './components/sidebar.css';
@import './components/breadcrumb.css';
@import './components/quick-actions.css';

/* ==================== CSS 变量定义 ==================== */

:root {
  /* 颜色系统 */
  --bg-primary: #0a0a0f;
  --bg-secondary: #111111;
  --bg-tertiary: #1a1a1a;
  
  /* 发光色 - 更鲜艳的紫色调 */
  --glow-purple: #7877c6;
  --glow-blue: #5b5a9e;
  --glow-pink: #ec4899;
  
  /* 边框 */
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-strong: rgba(255, 255, 255, 0.1);
  
  /* 文字 */
  --text-primary: #ffffff;
  --text-secondary: #a3a3a3;
  --text-tertiary: #737373;
  
  /* 状态色 */
  --success: #34d399;
  --warning: #f59e0b;
  --error: #f87171;
  --info: #60a5fa;
}

/* ==================== 全局重置 ==================== */

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

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* 背景网格效果 - 增强版 */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(120, 119, 198, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 119, 198, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

/* 背景光晕效果 - 增强可见度，覆盖整个页面 */
body::after {
  content: '';
  position: fixed;
  top: -100vh; /* 向上扩展整个视口高度，防止橡皮筋滚动露出空白 */
  left: -10%; /* 左右也扩展，确保完全覆盖 */
  right: -10%;
  height: 200vh; /* 高度扩展为视口的2倍 */
  background: radial-gradient(ellipse 100% 70% at 50% 50vh, rgba(120, 119, 198, 0.25), rgba(120, 119, 198, 0.12) 35%, transparent 65%);
  pointer-events: none;
  z-index: 1;
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { 
    transform: scale(1); 
    opacity: 1;
  }
  50% { 
    transform: scale(1.1); 
    opacity: 0.85;
  }
}

/* 移除侧边栏收起时的辉光位置调整，现在辉光覆盖整个页面 */

/* 加载屏幕 */
.loading-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--bg-primary);
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.loader {
  width: 60px;
  height: 60px;
  border: 3px solid transparent;
  border-top-color: var(--glow-purple);
  border-right-color: var(--glow-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  filter: drop-shadow(0 0 20px var(--glow-purple));
}

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

/* 登录页 */
.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--bg-primary);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

/* 登录背景光球 - 增强版 */
.login-container::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(120, 119, 198, 0.5) 0%,
    rgba(91, 90, 158, 0.3) 30%,
    transparent 70%
  );
  border-radius: 50%;
  filter: blur(100px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { 
    transform: translate(-50%, -50%) scale(1); 
    opacity: 0.7; 
  }
  50% { 
    transform: translate(-50%, -50%) scale(1.15); 
    opacity: 0.9; 
  }
}

.login-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3rem;
  border-radius: 16px;
  width: 420px;
  max-width: 90%;
  position: relative;
  z-index: 2;
  transition: width 0.3s ease;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 20px 40px rgba(0, 0, 0, 0.5),
    0 0 100px rgba(120, 119, 198, 0.3);
}

/* 登录面板现在使用通用logo组件 (logo.css) */

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.login-input {
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 15px;
  transition: all 0.3s ease;
}

.login-input:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.07);
}

.login-input:focus {
  outline: none;
  border-color: rgba(120, 119, 198, 0.5);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 
    0 0 0 4px rgba(120, 119, 198, 0.1),
    0 0 20px rgba(120, 119, 198, 0.3);
}

.login-input::placeholder {
  color: var(--text-tertiary);
}

.login-btn {
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, var(--glow-purple) 0%, var(--glow-blue) 100%);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
  position: relative;
  overflow: hidden;
}

.login-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.2) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 10px 30px rgba(139, 92, 246, 0.5),
    0 0 50px rgba(139, 92, 246, 0.3);
}

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

.login-btn:active {
  transform: translateY(0);
}

/* 主界面 */
.main-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

/* ==================== 主应用导航栏特殊样式 ==================== */
/* 采用透明背景的完整导航布局 */

#mainNavbar {
  background: transparent;
  backdrop-filter: none;
  border-bottom: none;
}

/* 隐藏顶部导航栏的logo（logo在侧边栏） */
#mainNavbar .navbar__brand {
  display: none;
}

/* 用户卡片透明样式 */
#mainNavbar .navbar__user {
  background: transparent;
  border: none;
}

#mainNavbar .navbar__user:hover {
  background: rgba(255, 255, 255, 0.05);
  border: none;
}

/* navbar actions 左对齐自动 */
#mainNavbar .navbar__actions {
  margin-left: auto;
}

/* ==================== 头部导航栏 ==================== */

.header {
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  height: 64px; /* 与侧边栏头部高度一致 */
  padding: 0 2rem; /* 移除垂直padding，使用height控制 */
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center; /* 垂直居中内容 */
}

.header-content {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

/* Logo 区域 - 使用通用Logo组件 */
/* Logo样式已提取到 components/logo.css */
/* logo组件现在已经内置了flex-shrink: 0和flex-grow: 0，无需额外设置 */

/* 操作区域 */
.header-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-shrink: 0;
}

.header-user {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0 0.5rem;
  display: flex;
  align-items: center;
}

/* 头部按钮 */
.header-btn {
  padding: 0.625rem 1rem;
  background: rgba(26, 26, 26, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.header-btn__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.header-btn__text {
  flex-shrink: 0;
}

.header-btn:hover {
  background: rgba(26, 26, 26, 0.9);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: translateY(-1px);
}

.header-btn--secondary:hover {
  border-color: rgba(120, 119, 198, 0.5);
  background: rgba(120, 119, 198, 0.1);
}

.header-btn--danger {
  color: #f87171;
}

.header-btn--danger:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: #ef4444;
  color: #ef4444;
}

/* 兼容旧样式 */
.header-title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, #737373 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.settings-btn, .logout-btn {
  padding: 0.625rem 1rem;
  background: rgba(26, 26, 26, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.settings-btn:hover, .logout-btn:hover {
  background: rgba(26, 26, 26, 0.9);
  border-color: var(--border-strong);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.logout-btn {
  color: var(--error);
}

.logout-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: var(--error);
}

/* 导航标签 */
.nav-tabs {
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.75rem 2rem 0 2rem; /* 增加顶部内边距（12px）为徽章预留空间 */
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  overflow-y: clip; /* 使用 clip 避免裁剪徽章 */
  scrollbar-width: none;
}

.nav-tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  position: relative;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

.tab-btn::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--glow-purple), var(--glow-blue));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.02);
}

.tab-btn-active {
  color: var(--text-primary);
}

.tab-btn-active::before {
  opacity: 1;
}

.tab-badge {
  position: absolute;
  top: 0.875rem;
  right: 0.75rem;
  padding: 0.25rem 0.5rem;
  background: var(--error);
  color: white;
  font-size: 11px;
  font-weight: 700;
  border-radius: 12px;
  line-height: 1;
  box-shadow: 0 0 10px var(--error);
}

/* 主内容区域 */
.main-content {
  margin-left: 220px; /* 为侧边栏留出空间 */
  transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 100vh;
  position: relative;
  z-index: 2;
  padding: 0.75rem 0;  /* 只保留上下间距，左右由page-container控制 */
}

/* 导航栏整体布局调整（为面包屑留出空间） */
.navbar {
  padding-left: 220px;  /* 侧边栏宽度 */
  transition: padding-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 导航栏容器调整padding */
.navbar .navbar__container {
  padding-left: 2rem;  /* 与主内容左侧间距对齐 (32px) */
}

/* 侧边栏收起时调整导航栏左边距 */
.navbar--sidebar-collapsed {
  padding-left: 72px;
}

/* 导航栏中的面包屑导航 */
.navbar__breadcrumb {
  flex: 1;
  margin-left: 0;  /* 对齐由navbar和container的padding控制 */
  margin-right: 2rem;
  overflow: hidden;  /* 防止面包屑过长溢出 */
}

/* 桌面端：隐藏导航栏 Logo，显示侧边栏 Logo */
@media (min-width: 769px) {
  .navbar__brand {
    display: none;
  }
}

/* 移动端：显示导航栏 Logo，隐藏面包屑 */
@media (max-width: 768px) {
  .navbar {
    padding-left: 0;
  }
  
  .navbar__breadcrumb {
    display: none;
  }
  
  .navbar__brand {
    display: flex;
  }
}

/* 侧边栏收起时的主内容区域宽度 */
.sidebar--collapsed ~ .main-content {
  margin-left: 72px;
}

/* 内容区域 */
.content {
  flex: 1;
  padding: 2.5rem;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

/* ========================================
   统计卡片样式已迁移到通用组件
   admin/css/components/stat-card.css
   
   使用方法:
   - 基础: .stat-card
   - 图标: .stat-icon .stat-icon--purple/green/blue/red/yellow
   - 布局: .stat-grid .stat-grid--2/3/4
   
   详见: admin/COMPONENTS_STYLE_ANALYSIS.md
======================================== */

/* 表格 */
table {
  width: 100%;
  border-collapse: collapse;
}

thead tr {
  border-bottom: 1px solid var(--border-subtle);
}

th {
  text-align: left;
  padding: 1.25rem 1rem;
  color: var(--text-tertiary);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

tbody tr {
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.15s ease;
}

tbody tr:last-child {
  border-bottom: none;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

td {
  padding: 1.25rem 1rem;
  font-size: 14px;
}

/* 模态框 */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1.5rem;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: rgba(17, 17, 17, 0.95);
  backdrop-filter: blur(40px);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 2.5rem;
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 30px 60px rgba(0, 0, 0, 0.6),
    0 0 100px rgba(139, 92, 246, 0.2);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, #ffffff 0%, #a3a3a3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.modal-input, .input-field, select, input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="number"], input[type="date"], textarea {
  padding: 0.875rem 1.125rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 14px;
  transition: all 0.3s ease;
  font-family: inherit;
}

.modal-input:hover, .input-field:hover, select:hover, input:hover, textarea:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.07);
}

.modal-input:focus, .input-field:focus, select:focus, input:focus, textarea:focus {
  outline: none;
  border-color: rgba(120, 119, 198, 0.5);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 
    0 0 0 3px rgba(120, 119, 198, 0.1),
    0 0 20px rgba(120, 119, 198, 0.3);
}

/* 自定义 select 下拉箭头样式 */
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2.5rem;
  background-image: url('data:image/svg+xml;charset=UTF-8,<svg width="12" height="8" viewBox="0 0 12 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1.5L6 6.5L11 1.5" stroke="%23a3a3a3" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>');
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px 8px;
  cursor: pointer;
}

select:focus {
  background-image: url('data:image/svg+xml;charset=UTF-8,<svg width="12" height="8" viewBox="0 0 12 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1.5L6 6.5L11 1.5" stroke="%237877c6" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>');
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px 8px;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.modal-btn-cancel, .modal-btn-submit {
  flex: 1;
  padding: 0.875rem 1.25rem;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-btn-cancel {
  background: rgba(26, 26, 26, 0.8);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.modal-btn-cancel:hover {
  background: rgba(26, 26, 26, 1);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.modal-btn-submit {
  background: linear-gradient(135deg, var(--glow-purple) 0%, var(--glow-blue) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.modal-btn-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.2) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

.modal-btn-submit:hover::before {
  opacity: 1;
}

.settings-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.settings-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.settings-label {
  font-size: 12px;
  color: var(--text-tertiary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* 按钮 */
.btn-primary {
  background: linear-gradient(135deg, var(--glow-purple) 0%, var(--glow-blue) 100%);
  padding: 0.875rem 1.5rem;
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.2) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.5);
}

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

.btn-primary:active {
  transform: translateY(0);
}

/* Badge - 增强版 */
.badge {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  display: inline-block;
  transition: all 0.2s ease;
}

.badge-success {
  background: rgba(52, 211, 153, 0.1);
  color: var(--success);
  border: 1px solid rgba(52, 211, 153, 0.2);
}

.badge-error, .badge-danger {
  background: rgba(248, 113, 113, 0.1);
  color: var(--error);
  border: 1px solid rgba(248, 113, 113, 0.2);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-info {
  background: rgba(96, 165, 250, 0.1);
  color: var(--info);
  border: 1px solid rgba(96, 165, 250, 0.2);
}

/* 文本链接按钮 */
button[class*="text-"] {
  background: none;
  border: none;
  padding: 0.375rem 0.75rem;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.15s ease;
  border-radius: 6px;
}

button[class*="text-"]:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Tailwind辅助类 */
.text-white { color: var(--text-primary); }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: var(--text-secondary); }
.text-gray-500 { color: var(--text-tertiary); }

.text-green-400 { color: var(--success); }
.text-yellow-400 { color: var(--warning); }
.text-red-400 { color: var(--error); }
.text-blue-400 { color: #60a5fa; }
.text-purple-400 { color: #c084fc; }
.text-orange-400 { color: #fb923c; }
.text-pink-400 { color: #f472b6; }
.text-indigo-400 { color: #818cf8; }

/* Hover 文字颜色 */
.hover\:text-blue-300:hover { color: #93c5fd; }
.hover\:text-yellow-300:hover { color: #fcd34d; }
.hover\:text-red-300:hover { color: #fca5a5; }

/* 文字对齐 */
.text-right { text-align: right; }

/* ==================== 响应式设计 ==================== */

/* 平板及以下 */
@media (max-width: 1024px) {
  .header {
    height: 60px; /* 平板上略小 */
    padding: 0 1.5rem;
  }

  .header-btn {
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
  }
}

/* 手机横屏及以下 */
@media (max-width: 768px) {
  .main-content {
    margin-left: 0; /* 移动端不留侧边栏空间 */
  }

  .header {
    height: 56px; /* 手机上更小 */
    padding: 0 1rem;
  }

  .header-content {
    gap: 0.75rem;
  }

  /* 按钮简化 */
  .header-user {
    display: none; /* 隐藏用户名 */
  }

  .header-btn__text {
    display: none; /* 隐藏按钮文字 */
  }

  .header-btn {
    padding: 0.625rem;
    min-width: 40px;
    justify-content: center;
  }

  .header-btn__icon {
    margin: 0;
  }

  .content {
    padding: 1.5rem;
  }
}

/* 小手机 */
@media (max-width: 480px) {
  .header {
    height: 52px; /* 小手机上最小 */
    padding: 0 0.75rem;
  }

  .header-actions {
    gap: 0.5rem;
  }

  .header-btn {
    padding: 0.5rem;
    min-width: 36px;
  }

  .header-btn__icon {
    width: 16px;
    height: 16px;
  }
  
  .login-card {
    padding: 2rem 1.5rem;
  }
  
  .nav-tabs {
    padding: 0 1.5rem;
  }
}

/* 自定义滚动条 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.3);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 92, 246, 0.5);
}

/* 选择文本 */
::selection {
  background: rgba(120, 119, 198, 0.4);
  color: white;
}

/* Placeholder */
::placeholder {
  color: var(--text-tertiary);
  opacity: 0.6;
}

/* 响应式 - 额外优化 */
@media (max-width: 640px) {
  /* 统计卡片响应式样式已迁移到 admin/css/components/stat-card.css */
  
  table {
    font-size: 13px;
  }
  
  th, td {
    padding: 0.75rem 0.5rem;
  }
}

/* 平滑滚动 */
html {
  scroll-behavior: smooth;
}

/* Flex 辅助类 */
.w-full { width: 100%; }
.w-8 { width: 2rem; }
.w-5 { width: 1.25rem; }
.w-7 { width: 1.75rem; }
.h-8 { height: 2rem; }
.h-5 { height: 1.25rem; }
.h-7 { height: 1.75rem; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mr-3 { margin-right: 0.75rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.text-center { text-align: center; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }
.uppercase { text-transform: uppercase; }
.block { display: block; }
.overflow-hidden { overflow: hidden; }

/* Grid 布局辅助类 */
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }

/* 间距辅助类 */
.space-y-4 > * + * { margin-top: 1rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.mt-1 { margin-top: 0.25rem; }
.mb-1 { margin-bottom: 0.25rem; }
.pb-2 { padding-bottom: 0.5rem; }

/* 边框辅助类 */
.border { border-width: 1px; border-style: solid; }
.border-gray-700 { border-color: rgba(255, 255, 255, 0.1); }

/* Flex 辅助类 */
.justify-end { justify-content: flex-end; }
.items-end { align-items: flex-end; }

/* 文字样式辅助类 */
.text-lg { font-size: 1.125rem; }
.font-semibold { font-weight: 600; }
.font-mono { font-family: 'Monaco', 'Menlo', monospace; }

/* 其他辅助类 */
.resize-none { resize: none; }
.cursor-pointer { cursor: pointer; }
.rounded { border-radius: 0.25rem; }
.opacity-50 { opacity: 0.5; }
.cursor-not-allowed { cursor: not-allowed; }

/* ==================== 订阅管理组件样式 ==================== */

/* 订阅管理容器 */
.subscription-urls-container {
  padding: 1.5rem;
}

/* 标签切换 */
.tabs-container {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn:hover {
  border-color: var(--glow-purple);
  color: var(--text-primary);
}

.tab-btn.active {
  background: rgba(120, 119, 198, 0.1);
  border-color: var(--glow-purple);
  color: var(--glow-purple);
}

.tab-btn .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.375rem;
  background: var(--glow-purple);
  color: white;
  font-size: 0.75rem;
  border-radius: 0.625rem;
}

/* 工具栏 */
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.toolbar-left,
.toolbar-right {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.filter-select {
  padding: 0.5rem 0.75rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 0.375rem;
  color: var(--text-primary);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-select:hover,
.filter-select:focus {
  border-color: var(--glow-purple);
  outline: none;
}

/* 统计卡片已迁移到 admin/css/components/stat-card.css */

/* URL表格容器 */
.urls-table-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 0.75rem;
  overflow: hidden;
  margin-bottom: 1rem;
}

.urls-table {
  width: 100%;
  border-collapse: collapse;
}

.urls-table thead {
  background: rgba(120, 119, 198, 0.05);
}

.urls-table th {
  padding: 1rem;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

.urls-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.875rem;
}

.urls-table tbody tr:hover {
  background: rgba(120, 119, 198, 0.03);
}

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

/* URL文本 */
.url-text {
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 0.813rem;
  color: var(--glow-purple);
  background: rgba(120, 119, 198, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}

/* 按钮图标 */
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 0.375rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  margin-left: 0.5rem;
}

.btn-icon:hover:not(:disabled) {
  border-color: var(--glow-purple);
  color: var(--glow-purple);
  background: rgba(120, 119, 198, 0.1);
}

.btn-icon.text-danger:hover:not(:disabled) {
  border-color: var(--error);
  color: var(--error);
  background: rgba(248, 113, 113, 0.1);
}

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

/* 徽章 */
.badge {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 0.375rem;
  white-space: nowrap;
}

.badge-success {
  background: rgba(52, 211, 153, 0.1);
  color: var(--success);
  border: 1px solid rgba(52, 211, 153, 0.2);
}

.badge-primary {
  background: rgba(120, 119, 198, 0.1);
  color: var(--glow-purple);
  border: 1px solid rgba(120, 119, 198, 0.2);
}

.badge-danger {
  background: rgba(248, 113, 113, 0.1);
  color: var(--error);
  border: 1px solid rgba(248, 113, 113, 0.2);
}

.badge-secondary {
  background: rgba(163, 163, 163, 0.1);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

/* 文本颜色 */
.text-success {
  color: var(--success);
}

.text-danger {
  color: var(--error);
}

.text-muted {
  color: var(--text-tertiary);
}

/* 分页 */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
}

.page-info {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* 模态框 */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-strong);
  border-radius: 1rem;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-content.modal-large {
  max-width: 800px;
}

.modal-content.modal-sm {
  max-width: 400px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.btn-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-close:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  padding: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

/* 表单 */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* 在 form-row 内部的 form-group 使用 grid gap，不需要额外的 margin-bottom */
.form-row > .form-group {
  margin-bottom: 0;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: 0.5rem;
  color: var(--text-primary);
  font-size: 0.875rem;
  transition: all 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--glow-purple);
  box-shadow: 0 0 0 3px rgba(120, 119, 198, 0.1);
}

.form-control::placeholder {
  color: var(--text-tertiary);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-row:last-child {
  margin-bottom: 0;
}

/* 表单行布局变体 */
.form-row--2 {
  grid-template-columns: repeat(2, 1fr);
}

.form-row--3 {
  grid-template-columns: repeat(3, 1fr);
}

.form-row--4 {
  grid-template-columns: repeat(4, 1fr);
}

/* 表单分节（用于详情弹窗） */
.form-section {
  margin-bottom: 1.5rem;
}

.form-section:last-child {
  margin-bottom: 0;
}

.form-section-title {
  font-size: 0.938rem;
  font-weight: 600;
  color: var(--text-primary, #ffffff);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* 导入说明 */
.import-instructions {
  background: rgba(120, 119, 198, 0.05);
  border: 1px solid rgba(120, 119, 198, 0.2);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1rem;
}

.import-instructions p {
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.import-instructions code {
  display: block;
  background: var(--bg-tertiary);
  padding: 0.75rem;
  border-radius: 0.375rem;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 0.813rem;
  color: var(--glow-purple);
  margin-top: 0.5rem;
  line-height: 1.6;
}

/* 加载和空状态 */
.loading-state,
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-secondary);
}

.loading-state i,
.empty-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--text-tertiary);
}

/* Font Awesome 图标支持 */
.fa, .fas, .far {
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  line-height: 1;
}

/* 批量操作栏 */
.batch-actions-bar {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.batch-info {
  color: var(--text-primary);
  font-size: 0.938rem;
}

.batch-info strong {
  color: var(--glow-purple);
  font-weight: 600;
  font-size: 1.125rem;
}

.batch-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.batch-buttons .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.batch-buttons .btn i {
  font-size: 0.875rem;
}

/* 选中行高亮 */
tr.bg-purple-900\/10 {
  background-color: rgba(139, 92, 246, 0.1) !important;
}

/* 复选框样式 */
input[type="checkbox"] {
  cursor: pointer;
  accent-color: var(--glow-purple);
}

/* 响应式批量操作栏 */
@media (max-width: 768px) {
  .batch-actions-bar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .batch-info {
    text-align: center;
  }
  
  .batch-buttons {
    justify-content: center;
  }
}

/* ==================== Dashboard 样式 ==================== */

.dashboard-container {
  padding: 0;
}

.quick-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quick-action-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(120, 119, 198, 0.5);
  transform: translateY(-2px);
}

.dashboard-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  overflow: hidden;
}

.dashboard-card__title {
  padding: 1.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-card__content {
  padding: 1.5rem;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.activity-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.activity-item__icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  font-size: 1.25rem;
}

.activity-item__icon--success {
  background: rgba(16, 185, 129, 0.1);
}

.activity-item__icon--primary {
  background: rgba(120, 119, 198, 0.1);
}

.activity-item__icon--info {
  background: rgba(59, 130, 246, 0.1);
}

.activity-item__icon--warning {
  background: rgba(245, 158, 11, 0.1);
}

.activity-item__content {
  flex: 1;
}

.activity-item__text {
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.activity-item__time {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
}

.system-info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.system-info-item__label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

.system-info-item__value {
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 500;
}

.system-info-item__value--success {
  color: #10b981;
}

.system-info-item__value--warning {
  color: #f59e0b;
}

.system-info-item__value--error {
  color: #ef4444;
}

/* ==================== 布局工具类 ==================== */

/* 网格布局 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* 中等屏幕优化 */
@media (min-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

/* 大屏幕优化 */
@media (min-width: 1600px) {
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

/* 超宽屏时，限制最大列数为6 */
@media (min-width: 1920px) {
  .stats-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.form-grid--2col {
  grid-template-columns: repeat(2, 1fr);
}

/* 登录页面特殊样式 */
.login-card__header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-card__footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-tertiary);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* 注册模式样式 */
.login-card--register {
  width: 720px;
  max-width: 95%;
  padding: 2rem 2.5rem;
  max-height: 95vh;
  overflow-y: auto;
}

.login-card--register .login-card__header {
  margin-bottom: 1.25rem;
}

.login-card--register .logo--large .logo__icon {
  width: 3.5rem;
  height: 3.5rem;
}

.login-card--register .logo--large .logo__title {
  font-size: 1.5rem;
}

.login-card--register .logo--large .logo__subtitle {
  font-size: 0.875rem;
}

.login-card--register .login-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1.5rem;
}

.login-card--register .login-form .form-group {
  margin-bottom: 0;
  gap: 0.375rem;
}

.login-card--register .login-form .form-label {
  font-size: 0.875rem;
  margin-bottom: 0;
}

.login-card--register .login-form .login-input {
  padding: 0.625rem 1rem;
  font-size: 0.9375rem;
}

.login-card--register .text-xs {
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

.login-card--register .login-form .form-group:first-child {
  grid-column: 1 / -1; /* 邀请码占满整行 */
}

.login-card--register .login-form button[type="submit"] {
  grid-column: 1 / -1; /* 提交按钮占满整行 */
  margin-top: 0.75rem;
  padding: 0.75rem;
}

.login-card--register .login-card__footer {
  margin-top: 1rem;
}

/* 小屏幕优化 */
@media (max-width: 900px) {
  .login-card--register {
    width: 600px;
    padding: 1.75rem 2rem;
  }
}

/* 移动端响应式 */
@media (max-width: 768px) {
  .login-card--register {
    width: 90%;
    padding: 1.5rem;
    max-height: 90vh;
  }
  
  .login-card--register .login-form {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .login-card--register .login-form .form-group:first-child,
  .login-card--register .login-form button[type="submit"] {
    grid-column: 1;
  }
  
  .login-card--register .logo--large .logo__icon {
    width: 3rem;
    height: 3rem;
  }
  
  .login-card--register .logo--large .logo__title {
    font-size: 1.25rem;
  }
}

/* 超小屏幕 */
@media (max-height: 700px) {
  .login-card--register {
    padding: 1.25rem 1.5rem;
    max-height: 98vh;
  }
  
  .login-card--register .login-card__header {
    margin-bottom: 1rem;
  }
  
  .login-card--register .login-form {
    gap: 0.5rem 1.5rem;
  }
  
  .login-card--register .logo--large .logo__icon {
    width: 2.75rem;
    height: 2.75rem;
  }
  
  .login-card--register .logo--large .logo__title {
    font-size: 1.25rem;
  }
  
  .login-card--register .login-form .login-input {
    padding: 0.5rem 0.875rem;
  }
  
  .login-card--register .login-form button[type="submit"] {
    padding: 0.625rem;
    margin-top: 0.5rem;
  }
  
  .login-card--register .login-card__footer {
    margin-top: 0.75rem;
  }
}

/* 登录表单特殊布局 */
.login-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.login-form .form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* 页面布局样式 */
.page-container {
  padding: 0.75rem 2rem 2rem 2rem;  /* 顶部16px，左右下32px */
  max-width: 1600px;
  margin: 0 auto;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.page-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.page-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

.page-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.content-section {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.content-section__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.content-section__description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* 快速操作按钮网格 - 每行最多4个 */
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.quick-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quick-action-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(120, 119, 198, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(120, 119, 198, 0.2);
}

.quick-action-btn svg {
  width: 20px;
  height: 20px;
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 2rem;
  color: var(--text-secondary);
}

/* 活动列表 */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* 系统信息列表 */
.system-info-list {
  display: flex;
  flex-direction: column;
}

/* 自定义选择框 */

.custom-select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .page-actions {
    width: 100%;
  }

  .quick-actions-grid {
    grid-template-columns: repeat(2, 1fr); /* 移动端2列 */
  }
}

@media (max-width: 480px) {
  .quick-actions-grid {
    grid-template-columns: 1fr; /* 小屏幕1列 */
  }
}

/* ==================== SVG图标尺寸限制 ==================== */
/* 限制表格中内联渲染的SVG图标尺寸 */
.table td svg,
.table th svg {
  max-width: 2rem;
  max-height: 2rem;
  width: auto;
  height: auto;
  display: inline-block;
  vertical-align: middle;
}

/* 特定场景：支付方式配置的SVG图标 */
.table td[style*="font-size: 2rem"] svg {
  width: 2rem !important;
  height: 2rem !important;
}
