/**
 * 陪玩管理系统 - 奢华殿堂主题 V2.0
 * 设计理念：融合东方雅致与现代奢华，打造尊贵品质感
 */

/* ============ CSS变量 - 奢华配色 ============ */
:root {
  /* 主色调 - 皇室紫金 */
  --primary-color: #8b5cf6;
  --primary-dark: #7c3aed;
  --primary-light: #a78bfa;
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #8b5cf6 100%);
  
  /* 金色点缀 - 尊贵象征 */
  --gold-color: #d4af37;
  --gold-light: #f4e4bc;
  --gold-gradient: linear-gradient(135deg, #bf953f 0%, #fcf6ba 25%, #d4af37 50%, #fcf6ba 75%, #bf953f 100%);
  
  /* 辅助色彩 */
  --secondary-color: #ec4899;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --info-color: #06b6d4;
  
  /* 日间模式背景 - 象牙白调 */
  --bg-primary: #ffffff;
  --bg-secondary: #faf9f7;
  --bg-tertiary: #f5f3ef;
  --bg-glass: rgba(255, 255, 255, 0.85);
  
  /* 文字色彩 */
  --text-primary: #1a1523;
  --text-secondary: #57534e;
  --text-tertiary: #a8a29e;
  --text-gold: #b8860b;
  
  /* 边框与阴影 */
  --border-color: rgba(0, 0, 0, 0.06);
  --border-gold: rgba(212, 175, 55, 0.3);
  
  /* 奢华阴影层次 */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.16), 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.15);
  --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.25);
  
  /* 动画曲线 */
  --ease-luxury: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  /* 圆角 */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  
  /* 侧边栏 */
  --sidebar-bg: linear-gradient(180deg, #1a1523 0%, #2d2438 50%, #1a1523 100%);
  --card-bg: var(--bg-primary);
}

/* ============ 夜间模式 - 深邃宫殿 ============ */
[data-theme="dark"] {
  --bg-primary: #0c0a10;
  --bg-secondary: #161221;
  --bg-tertiary: #1e1a2e;
  --bg-glass: rgba(22, 18, 33, 0.9);
  
  --text-primary: #f5f3ff;
  --text-secondary: #c4b5fd;
  --text-tertiary: #7c3aed;
  
  --border-color: rgba(139, 92, 246, 0.15);
  --border-gold: rgba(212, 175, 55, 0.4);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 60px rgba(139, 92, 246, 0.3);
  
  --sidebar-bg: linear-gradient(180deg, #0c0a10 0%, #161221 50%, #0c0a10 100%);
  --card-bg: linear-gradient(145deg, rgba(30, 26, 46, 0.9) 0%, rgba(22, 18, 33, 0.95) 100%);
}

/* ============ 基础重置 ============ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-secondary);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.5s var(--ease-luxury), color 0.5s var(--ease-luxury);
  min-height: 100vh;
}

/* 背景装饰 */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 20% 20%, rgba(139, 92, 246, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(212, 175, 55, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

[data-theme="dark"] body::before {
  background: 
    radial-gradient(ellipse at 20% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
}

/* ============ 容器布局 ============ */
.app-container {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* ============ 侧边栏 - 宫殿廊柱 ============ */
.sidebar {
  width: 280px;
  background: var(--sidebar-bg);
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 1000;
  box-shadow: 4px 0 30px rgba(0, 0, 0, 0.15);
  border-right: 1px solid rgba(212, 175, 55, 0.1);
}

/* 侧边栏装饰边框 */
.sidebar::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, 
    transparent 0%, 
    rgba(212, 175, 55, 0.5) 20%, 
    rgba(212, 175, 55, 0.8) 50%, 
    rgba(212, 175, 55, 0.5) 80%, 
    transparent 100%);
}

/* 滚动条美化 */
.sidebar::-webkit-scrollbar {
  width: 4px;
}
.sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.3);
  border-radius: 2px;
}

.sidebar-logo {
  padding: 32px 24px;
  text-align: center;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  position: relative;
}

.sidebar-logo::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: var(--gold-gradient);
}

.sidebar-logo h1 {
  font-size: 22px;
  font-weight: 700;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
  text-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

.sidebar-logo h1 i {
  margin-right: 10px;
  -webkit-text-fill-color: #d4af37;
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.5));
}

.sidebar-menu {
  list-style: none;
  padding: 24px 0;
}

.sidebar-menu li {
  margin: 4px 12px;
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  border-radius: var(--radius-md);
  transition: all 0.4s var(--ease-luxury);
  position: relative;
  overflow: hidden;
}

.sidebar-menu a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.2) 0%, transparent 100%);
  transition: width 0.4s var(--ease-luxury);
}

.sidebar-menu a:hover {
  color: var(--gold-color);
  background: rgba(212, 175, 55, 0.08);
  transform: translateX(6px);
}

.sidebar-menu a:hover::before {
  width: 100%;
}

.sidebar-menu a.active {
  color: var(--gold-color);
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.15) 0%, transparent 100%);
  border-left: 3px solid var(--gold-color);
  box-shadow: inset 0 0 20px rgba(212, 175, 55, 0.1);
}

.sidebar-menu i {
  margin-right: 14px;
  font-size: 18px;
  width: 24px;
  text-align: center;
  opacity: 0.9;
}

/* ============ 主内容区 ============ */
.main-content {
  flex: 1;
  margin-left: 280px;
  min-height: 100vh;
  position: relative;
}

/* ============ 顶部栏 - 殿堂穹顶 ============ */
.topbar {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: var(--shadow-md);
}

.topbar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
}

.topbar-left h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 1px;
  position: relative;
  display: inline-block;
}

.topbar-left h2::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--gold-gradient);
  border-radius: 2px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* 主题切换按钮 */
.theme-toggle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 2px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
  transition: all 0.4s var(--ease-luxury);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.theme-toggle::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: var(--gold-gradient);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.4s var(--ease-luxury);
  z-index: -1;
}

.theme-toggle:hover {
  color: var(--gold-color);
  transform: rotate(15deg) scale(1.1);
  border-color: var(--gold-color);
}

.theme-toggle:hover::before {
  opacity: 0.15;
}

/* 用户信息 */
.user-info {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 20px 10px 14px;
  background: var(--bg-tertiary);
  border-radius: 50px;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.4s var(--ease-luxury);
}

.user-info:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
  border-color: var(--primary-color);
  color: white;
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-color);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
  transition: all 0.3s var(--ease-luxury);
}

.user-info:hover .user-avatar {
  border-color: white;
  transform: scale(1.1);
}

.user-info span {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
}

/* ============ 内容区域 ============ */
.content-area {
  padding: 36px;
  max-width: 1600px;
}

/* ============ 卡片组件 - 玉石质感 ============ */
.card {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-md);
  margin-bottom: 28px;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  transition: all 0.5s var(--ease-luxury);
}

/* 卡片顶部装饰线 */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold-gradient);
  opacity: 0;
  transition: opacity 0.4s var(--ease-luxury);
}

.card:hover {
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.2);
}

.card:hover::before {
  opacity: 1;
}

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

.card-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 80px;
  height: 2px;
  background: var(--gold-gradient);
  border-radius: 1px;
}

.card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.5px;
}

.card-title i {
  color: var(--gold-color);
  font-size: 24px;
  filter: drop-shadow(0 2px 4px rgba(212, 175, 55, 0.3));
}

.card-tools {
  display: flex;
  gap: 12px;
}

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

/* ============ 按钮组件 - 宝石质感 ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.4s var(--ease-luxury);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s var(--ease-luxury);
}

.btn:hover::before {
  left: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.btn-primary {
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
}

.btn-secondary {
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
}

.btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.btn-warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.btn-info {
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
}

.btn-gold {
  background: var(--gold-gradient);
  color: #1a1523;
  box-shadow: var(--shadow-gold);
  font-weight: 700;
}

.btn-gold:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.5);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover:not(:disabled) {
  background: var(--primary-color);
  color: white;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 16px;
  border-radius: var(--radius-lg);
}

.btn-group {
  display: flex;
  gap: 8px;
}

/* ============ 表单组件 - 精雕细琢 ============ */
.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 14px;
  letter-spacing: 0.3px;
}

.form-group label .required {
  color: var(--danger-color);
  margin-left: 4px;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  font-size: 15px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  color: var(--text-primary);
  transition: all 0.3s var(--ease-luxury);
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1), var(--shadow-md);
  background: var(--bg-primary);
}

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

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

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.input-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.input-addon {
  color: var(--text-tertiary);
  font-size: 13px;
  white-space: nowrap;
}

.form-text {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 6px;
}

/* ============ 表格组件 - 皇家典册 ============ */
.table-responsive {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-primary);
}

.table thead {
  background: linear-gradient(135deg, #1a1523 0%, #2d2438 100%);
}

[data-theme="dark"] .table thead {
  background: linear-gradient(135deg, #0c0a10 0%, #1e1a2e 100%);
}

.table th {
  padding: 18px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  color: var(--gold-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid rgba(212, 175, 55, 0.3);
}

.table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 14px;
  transition: all 0.3s var(--ease-luxury);
}

.table tbody tr {
  transition: all 0.3s var(--ease-luxury);
}

.table tbody tr:hover {
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.05) 0%, rgba(212, 175, 55, 0.05) 100%);
}

.table tbody tr:hover td {
  color: var(--text-primary);
}

.table-hover tbody tr:hover {
  transform: scale(1.005);
  box-shadow: var(--shadow-sm);
}

/* ============ 徽章组件 - 勋章设计 ============ */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 50px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}

.badge-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
}

.badge-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.badge-warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
}

.badge-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
}

.badge-info {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  color: white;
}

.badge-secondary {
  background: linear-gradient(135deg, #6b7280, #4b5563);
  color: white;
}

.badge-gradient {
  background: var(--gold-gradient);
  color: #1a1523;
  font-weight: 700;
}

/* ============ 统计卡片 - 宝库展示 ============ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-bottom: 36px;
}

.stat-card {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all 0.5s var(--ease-luxury);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gold-gradient);
}

.stat-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl), var(--shadow-gold);
  border-color: rgba(212, 175, 55, 0.3);
}

.stat-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.35);
  position: relative;
  z-index: 1;
}

.stat-value {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -1px;
  background: linear-gradient(135deg, var(--text-primary), var(--gold-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* ============ 模态框 - 圣殿弹窗 ============ */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 8, 16, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: var(--bg-primary);
  border-radius: var(--radius-2xl);
  max-width: 640px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl), 0 0 80px rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(212, 175, 55, 0.2);
  animation: modalEnter 0.5s var(--ease-luxury);
  position: relative;
}

.modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gold-gradient);
}

@keyframes modalEnter {
  from {
    opacity: 0;
    transform: translateY(-40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

.modal-header h4 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-header h4 i {
  color: var(--gold-color);
}

.modal-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.3s var(--ease-luxury);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: var(--danger-color);
  color: white;
  transform: rotate(90deg);
}

.modal-body {
  padding: 32px;
}

.modal-footer {
  padding: 24px 32px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  background: var(--bg-secondary);
  border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
}

/* ============ 分页组件 ============ */
.pagination-wrap {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.pagination {
  display: flex;
  gap: 8px;
}

.page-link {
  min-width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s var(--ease-luxury);
}

.page-link:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.page-link.active {
  background: var(--primary-gradient);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

/* ============ 头像样式 ============ */
.avatar-sm {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-color);
}

.avatar-lg {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold-color);
  box-shadow: var(--shadow-gold);
}

/* ============ 空状态 ============ */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-tertiary);
}

.empty-state i {
  font-size: 64px;
  margin-bottom: 20px;
  opacity: 0.3;
  display: block;
}

.empty-state p {
  font-size: 16px;
  margin-bottom: 20px;
}

/* ============ 筛选组 ============ */
.filter-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ============ 信息网格 ============ */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.info-item {
  background: var(--bg-secondary);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.info-item label {
  display: block;
  font-size: 12px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.info-item span {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

/* ============ 用户审核详情 ============ */
.user-review-detail {
  max-width: 800px;
}

.user-profile-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
}

.user-avatar-large img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--gold-color);
  box-shadow: var(--shadow-gold);
}

.user-basic-info h3 {
  font-size: 24px;
  margin-bottom: 4px;
}

.info-section {
  margin: 24px 0;
  padding: 20px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
}

.info-section h4 {
  margin-bottom: 12px;
  color: var(--text-primary);
}

.review-actions {
  margin-top: 32px;
  padding: 24px;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--border-color);
}

.review-actions h4 {
  margin-bottom: 20px;
  color: var(--gold-color);
}

/* ============ 工具类 ============ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary { color: var(--primary-color) !important; }
.text-success { color: var(--success-color) !important; }
.text-danger { color: var(--danger-color) !important; }
.text-warning { color: var(--warning-color) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-gold { color: var(--gold-color) !important; }

.font-bold { font-weight: 700; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

.d-flex { display: flex; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.gap-2 { gap: 16px; }

/* ============ 响应式设计 ============ */
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
  }
  
  .sidebar.show {
    transform: translateX(0);
  }
  
  .main-content {
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .content-area {
    padding: 20px;
  }
  
  .topbar {
    padding: 12px 20px;
  }
  
  .topbar-left h2 {
    font-size: 18px;
  }
  
  .card {
    padding: 20px;
  }
}

/* ============ 加载动画 ============ */
.loading {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--gold-color);
  animation: spin 0.8s linear infinite;
}

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

/* ============ 动画效果 ============ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

.fade-in {
  animation: fadeIn 0.5s var(--ease-luxury);
}

.slide-up {
  animation: slideUp 0.5s var(--ease-luxury);
}
