/* ============================================================
   爆图匠 · 管理后台统一设计皮肤（深空紫金 · 高端极简）
   所有 /admin/*.html 引用；用 !important 覆盖页面内联样式
   ============================================================ */

:root {
  --bg-primary: #0a0812 !important;
  --bg-secondary: #100d1c !important;
  --bg-tertiary: #191330 !important;
  --accent-color: #d9b26a !important;
  --accent-hover: #f0d9a8 !important;
  --accent-gradient: linear-gradient(115deg, #7C5CE0, #9D6FE0 40%, #E4C278) !important;
  --text-primary: #f5f3ff !important;
  --text-secondary: #b9a9d6 !important;
  --border-color: rgba(217,178,106,0.2) !important;
  --input-bg: rgba(20,16,38,0.7) !important;
  --card-bg: rgba(20,16,38,0.72) !important;
  --glow: 0 0 24px rgba(217,178,106,0.12) !important;
}

/* 全局背景：深空紫金 + 星点 */
html, body {
  background: radial-gradient(1200px 700px at 15% 0%, rgba(109,59,239,0.14), transparent 55%),
              radial-gradient(900px 600px at 92% 100%, rgba(217,178,106,0.06), transparent 55%),
              linear-gradient(160deg, #0a0812, #08070e 70%) !important;
  color: #ece8f5 !important;
}

/* ---------- 侧边栏 ---------- */
.admin-sidebar, .sidebar, aside {
  background: linear-gradient(180deg, #120e20 0%, #0b0914 100%) !important;
  border-right: 1px solid rgba(217,178,106,0.16) !important;
}
.admin-sidebar-header {
  border-bottom: 1px solid rgba(217,178,106,0.14) !important;
}
.admin-sidebar-header h2 {
  color: #f5f0ff !important;
  background: none !important;
  -webkit-text-fill-color: #f5f0ff !important;
}
.admin-sidebar-header .logo-icon {
  background: linear-gradient(135deg, #2A1B5C, #7C5CE0) !important;
  border: 1px solid rgba(228,194,120,0.6) !important;
  color: #f6dfa4 !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 16px rgba(124,92,224,0.35) !important;
}
.admin-sidebar a, .sidebar a {
  color: #b9aed4 !important;
  border-radius: 8px;
  transition: all 0.2s;
}
.admin-sidebar a:hover, .sidebar a:hover {
  background: rgba(124,92,224,0.14) !important;
  color: #f0dcae !important;
}
.admin-sidebar a.active, .sidebar a.active {
  background: linear-gradient(90deg, rgba(124,92,224,0.28), rgba(228,194,120,0.08)) !important;
  color: #f0d9a8 !important;
  border-left: 3px solid #d9b26a !important;
}
/* 侧边栏分组标题 / 分隔线 */
.admin-menu-group-title, .admin-menu-divider {
  color: #8f80b5 !important;
  border-color: rgba(228,194,120,0.14) !important;
  background: transparent !important;
}

/* 主内容区 */
.admin-content, .main-content, .content {
  background: transparent !important;
}

/* ---------- 卡片 / 面板 ---------- */
.stat-card, .chart-card, .detail-card, .card, .panel,
.table-wrap, .card-box, [class*="-card"], .dashboard-card,
.overview-stat-card {
  background: linear-gradient(140deg, rgba(24,19,44,0.78), rgba(16,13,30,0.82)) !important;
  border: 1px solid rgba(217,178,106,0.14) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25), inset 0 1px 0 rgba(217,178,106,0.05) !important;
  backdrop-filter: blur(8px);
}
.dashboard-card:hover, [class*="-card"]:hover {
  border-color: rgba(228,194,120,0.55) !important;
  box-shadow: 0 10px 34px rgba(124,92,224,0.22) !important;
}

/* ---------- 标题 ---------- */
.page-header h1, .dashboard-menu-section h2 {
  background: none !important;
  -webkit-text-fill-color: #e6def5 !important;
  color: #e6def5 !important;
}
.dashboard-content h1, .admin-content h1, #dashboardContent h1, h1 {
  background: linear-gradient(115deg, #A78BFA, #E4C278) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}
h2, h3, h4 { color: #e6def5 !important; }

/* ---------- 统计数字：紫金语义色 ---------- */
.stat-value.blue, .stat-value.purple, .text-blue, .text-purple {
  color: #A78BFA !important;
}
.stat-value.gold, .stat-value.orange { color: #E4C278 !important; }
.stat-value.green { color: #6EE7B7 !important; }
.stat-value.red { color: #F0A0A8 !important; }
.stat-label { color: #8f87a8 !important; }
.card-icon-wrap.blue, .card-icon-wrap.purple {
  background: rgba(124,92,224,0.16) !important;
  color: #B79BFA !important;
}
.card-icon-wrap.orange { background: rgba(228,194,120,0.14) !important; color: #E4C278 !important; }
.card-icon-wrap.green { background: rgba(110,231,183,0.12) !important; color: #6EE7B7 !important; }
.card-icon-wrap.red { background: rgba(240,160,168,0.12) !important; color: #F0A0A8 !important; }

/* ---------- 表格 ---------- */
table { width: 100%; border-collapse: collapse; }
thead th {
  background: rgba(217,178,106,0.08) !important;
  color: #d9b26a !important;
  font-weight: 600 !important;
  border-bottom: 1px solid rgba(217,178,106,0.2) !important;
}
tbody td {
  color: #cfc8e0 !important;
  border-bottom: 1px solid rgba(255,255,255,0.05) !important;
}
tbody tr:hover { background: rgba(217,178,106,0.05) !important; }

/* ---------- 按钮：紫金主按钮 ---------- */
.btn-primary, .btn-primary:not(.danger), button.primary, [class*="btn-primary"] {
  background: linear-gradient(115deg, #7C5CE0, #9D6FE0 40%, #E4C278) !important;
  color: #fff9ec !important;
  border: none !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
}
.btn-primary:hover { box-shadow: 0 8px 24px rgba(124,92,224,0.35) !important; }

/* ---------- 输入框 / 表单 ---------- */
input, select, textarea {
  background: rgba(20,16,38,0.7) !important;
  color: #f0ecf8 !important;
  border: 1px solid rgba(217,178,106,0.18) !important;
  border-radius: 8px !important;
}
input:focus, select:focus, textarea:focus {
  border-color: #d9b26a !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(217,178,106,0.1) !important;
}
input::placeholder, textarea::placeholder { color: #6b6480 !important; }
label { color: #b9a9d6 !important; }

/* 徽章 / 标签 */
.badge, .tag, [class*="badge"] {
  border-radius: 999px !important;
  border: 1px solid rgba(217,178,106,0.25) !important;
}

/* 滚动条 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #0a0812; }
::-webkit-scrollbar-thumb { background: rgba(217,178,106,0.25); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(217,178,106,0.4); }
