/**
 * 管理后台共享样式
 * 配色方案：主色 #1B4D8E，强调色 #3B82F6，背景 #F0F4FF
 */

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

:root {
  --primary: #1B4D8E;
  --primary-dark: #153a6b;
  --primary-light: #2563EB;
  --accent: #3B82F6;
  --accent-light: #60A5FA;
  --bg: #F0F4FF;
  --text: #1A1A1A;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;
  --border: #E5E7EB;
  --border-light: #F0F0F0;
  --success: #10B981;
  --danger: #EF4444;
  --warning: #F59E0B;
  --shadow: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.08);
  --radius: 14px;
  --radius-sm: 8px;
  --header-height: 56px;
  --sidebar-width: 200px;
}

body {
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--text);
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.5;
}

/* ===== 登录页 ===== */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1B4D8E 0%, #2563EB 50%, #3B82F6 100%);
  position: relative;
  overflow: hidden;
}

.login-page::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 70%, rgba(255,255,255,0.05) 0%, transparent 50%),
              radial-gradient(circle at 70% 30%, rgba(255,255,255,0.03) 0%, transparent 50%);
  animation: bgFloat 20s linear infinite;
}

@keyframes bgFloat {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-5%, -5%); }
}

.login-card {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 48px 40px;
  width: 400px;
  max-width: 90vw;
  box-shadow: 0 24px 60px rgba(0,0,0,0.2);
  position: relative;
  z-index: 1;
  animation: cardIn 0.5s;
}

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

.login-logo { text-align: center; margin-bottom: 32px; }

.login-logo-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, #1B4D8E, #3B82F6);
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 16px;
  box-shadow: 0 8px 20px rgba(59,130,246,0.3);
}

.login-logo h1 { font-size: 22px; color: var(--primary); font-weight: 700; margin-bottom: 4px; }
.login-logo p { font-size: 13px; color: var(--text-muted); }

.login-form .form-group { margin-bottom: 20px; }
.login-form label { display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; }

.login-form input {
  width: 100%; height: 46px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 16px;
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
  background: #FAFAFA;
}

.login-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
  background: #fff;
}

.login-btn {
  width: 100%; height: 48px;
  background: linear-gradient(135deg, #1B4D8E, #2563EB);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(37,99,235,0.3);
  margin-top: 8px;
}

.login-btn:hover {
  background: linear-gradient(135deg, #2563EB, #3B82F6);
  box-shadow: 0 6px 20px rgba(59,130,246,0.4);
  transform: translateY(-1px);
}

.login-btn:active { transform: translateY(0); }
.login-btn:disabled { opacity: 0.7; cursor: not-allowed; }

.login-error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #DC2626;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 16px;
  display: none;
}

/* ===== 顶部导航 ===== */
.admin-header {
  background: #fff;
  height: var(--header-height);
  display: flex;
  align-items: center;
  padding: 0 20px;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border-bottom: 1px solid var(--border-light);
}

.admin-logo {
  color: var(--primary);
  font-size: 15px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 32px;
  white-space: nowrap;
}

.admin-logo-icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, #1B4D8E, #3B82F6);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #fff;
}

.admin-nav { display: flex; gap: 2px; }

.admin-nav-item {
  color: var(--text-secondary);
  font-size: 13px;
  padding: 8px 14px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
  position: relative;
  white-space: nowrap;
  user-select: none;
  font-weight: 500;
}

.admin-nav-item:hover { color: var(--primary); background: rgba(59,130,246,0.06); }
.admin-nav-item.active { color: var(--primary); background: rgba(59,130,246,0.1); }
.admin-nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 50%;
  transform: translateX(-50%);
  width: 16px; height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.admin-header-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.admin-notify {
  width: 36px; height: 36px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.admin-notify:hover { border-color: var(--accent); color: var(--accent); }
.admin-notify-dot {
  position: absolute;
  top: 5px; right: 5px;
  width: 8px; height: 8px;
  background: #EF4444;
  border-radius: 50%;
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 8px;
  transition: background 0.2s;
}

.admin-user:hover { background: var(--bg); }

.admin-avatar {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, #1B4D8E, #3B82F6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #fff;
}

.admin-name { color: var(--text); font-size: 13px; font-weight: 500; }
.admin-role { font-size: 10px; color: var(--accent); background: rgba(59,130,246,0.1); padding: 1px 6px; border-radius: 4px; }

/* ===== 主体布局 ===== */
.admin-body { display: flex; margin-top: var(--header-height); min-height: calc(100vh - var(--header-height)); }

.admin-sidebar {
  width: var(--sidebar-width);
  background: #fff;
  border-right: 1px solid var(--border-light);
  position: fixed;
  top: var(--header-height);
  bottom: 0;
  overflow-y: auto;
  box-shadow: 2px 0 8px rgba(0,0,0,0.03);
}

.sidebar-section { padding: 12px 0; border-bottom: 1px solid var(--border-light); }
.sidebar-section:last-child { border-bottom: none; }

.sidebar-section-title {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 16px 8px;
  font-weight: 600;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
  border-left: 3px solid transparent;
  user-select: none;
}

.sidebar-item:hover { background: var(--bg); color: var(--primary); }
.sidebar-item.active {
  background: rgba(59,130,246,0.08);
  color: var(--primary);
  font-weight: 600;
  border-left-color: var(--accent);
}

.sidebar-item .icon { font-size: 16px; width: 20px; text-align: center; flex-shrink: 0; }

.sidebar-badge {
  margin-left: auto;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 10px;
  font-weight: bold;
}

.sidebar-badge.blue { background: var(--accent); }
.sidebar-badge.green { background: var(--success); }

.admin-main { flex: 1; margin-left: var(--sidebar-width); padding: 20px 24px; }

/* ===== 统计卡片 ===== */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }

.stat-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: var(--radius) var(--radius) 0 0; }
.stat-card.blue::before { background: linear-gradient(90deg, #3B82F6, #60A5FA); }
.stat-card.green::before { background: linear-gradient(90deg, #10B981, #34D399); }
.stat-card.red::before { background: linear-gradient(90deg, #EF4444, #F87171); }
.stat-card.purple::before { background: linear-gradient(90deg, #8B5CF6, #A78BFA); }
.stat-card.orange::before { background: linear-gradient(90deg, #F59E0B, #FBBF24); }

.stat-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }

.stat-card-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.stat-card.blue .stat-card-icon { background: #EFF6FF; }
.stat-card.green .stat-card-icon { background: #ECFDF5; }
.stat-card.red .stat-card-icon { background: #FEF2F2; }
.stat-card.purple .stat-card-icon { background: #F3E8FF; }
.stat-card.orange .stat-card-icon { background: #FEF3C7; }

.stat-card-trend {
  font-size: 11px;
  color: var(--success);
  font-weight: 500;
  padding: 2px 8px;
  background: #ECFDF5;
  border-radius: 12px;
}

.stat-card-trend.down { color: var(--danger); background: #FEF2F2; }
.stat-card-value { font-size: 28px; font-weight: bold; color: var(--text); margin-bottom: 4px; letter-spacing: -0.5px; }
.stat-card-label { font-size: 12px; color: var(--text-muted); }

/* ===== 内容卡片 ===== */
.content-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  margin-bottom: 16px;
  overflow: hidden;
}

.content-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #FAFAFA;
}

.content-title { font-size: 15px; font-weight: bold; display: flex; align-items: center; gap: 10px; }

.content-title-icon {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, #1B4D8E, #3B82F6);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #fff;
}

.content-actions { display: flex; gap: 8px; }

/* ===== 按钮 ===== */
.btn {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  cursor: pointer;
  border: 1px solid;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
}

.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(135deg, #1B4D8E, #2563EB);
  color: #fff;
  border-color: #1B4D8E;
  box-shadow: 0 2px 6px rgba(59,130,246,0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2563EB, #3B82F6);
  box-shadow: 0 4px 12px rgba(59,130,246,0.3);
  color: #fff;
}

.btn-outline { background: #fff; color: var(--text-secondary); border-color: var(--border); }
.btn-outline:hover { background: var(--bg); border-color: #D1D5DB; color: var(--text-secondary); }

.btn-success {
  background: linear-gradient(135deg, #10B981, #34D399);
  color: #fff;
  border-color: #10B981;
  box-shadow: 0 2px 6px rgba(16,185,129,0.2);
}

.btn-success:hover { box-shadow: 0 4px 12px rgba(16,185,129,0.3); color: #fff; }

.btn-danger {
  background: linear-gradient(135deg, #EF4444, #F87171);
  color: #fff;
  border-color: #EF4444;
  box-shadow: 0 2px 6px rgba(239,68,68,0.2);
}

.btn-danger:hover { box-shadow: 0 4px 12px rgba(239,68,68,0.3); color: #fff; }

.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-xs { padding: 3px 8px; font-size: 11px; }

/* ===== 筛选栏 ===== */
.filter-bar {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  background: #fff;
}

.filter-group { display: flex; align-items: center; gap: 6px; }
.filter-label { font-size: 12px; color: var(--text-secondary); font-weight: 500; }

.filter-input {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 12px;
  outline: none;
  width: 150px;
  transition: all 0.2s;
  background: #fff;
}

.filter-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59,130,246,0.1); }

.filter-select {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 12px;
  outline: none;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-select:focus { border-color: var(--accent); }

.filter-date {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 12px;
  outline: none;
  background: #fff;
}

.filter-tag {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  background: #F3F4F6;
  color: var(--text-secondary);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s;
  font-weight: 500;
  white-space: nowrap;
}

.filter-tag:hover { background: rgba(59,130,246,0.08); color: var(--primary); }
.filter-tag.active { background: var(--primary); color: #fff; }

.filter-divider { width: 1px; height: 24px; background: var(--border); }

.batch-indicator {
  background: linear-gradient(135deg, #8B5CF6, #A78BFA);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  display: none;
  align-items: center;
  gap: 6px;
  animation: fadeIn 0.2s;
}

.batch-indicator.show { display: flex; }
@keyframes fadeIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }

/* ===== 表格 ===== */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }

thead th {
  padding: 12px 16px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  text-align: left;
  background: #FAFBFC;
  border-bottom: 1px solid var(--border-light);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
}

thead th:hover { background: #F3F4F6; }
thead th .sort-icon { margin-left: 4px; opacity: 0.4; }
thead th.sorted .sort-icon { opacity: 1; color: var(--accent); }

tbody td {
  padding: 14px 16px;
  font-size: 13px;
  color: #374151;
  border-bottom: 1px solid #F5F5F5;
  vertical-align: middle;
}

tbody tr { transition: all 0.15s; }
tbody tr:hover { background: #FAFBFC; }
tbody tr:last-child td { border-bottom: none; }
tbody tr.selected { background: rgba(59,130,246,0.04); }

.table-footer {
  padding: 14px 16px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #FAFBFC;
}

.table-info { font-size: 12px; color: var(--text-muted); }
.table-info span { color: var(--primary); font-weight: 600; }

/* ===== 分页 ===== */
.pagination { display: flex; gap: 4px; flex-wrap: wrap; }

.page-btn {
  min-width: 32px; height: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  padding: 0 6px;
}

.page-btn:hover:not(.disabled) { border-color: var(--accent); color: var(--accent); }
.page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-btn.disabled { opacity: 0.4; cursor: not-allowed; }

/* ===== 单元格样式 ===== */
.user-cell { display: flex; align-items: center; gap: 10px; }
.user-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.user-name { font-weight: 500; }
.user-id { font-size: 11px; color: var(--text-muted); }
.task-cell { display: flex; align-items: center; gap: 10px; }
.task-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.img-preview {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: #F3F4F6;
  border: 2px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.2s;
  overflow: hidden;
}

.img-preview img { width: 100%; height: 100%; object-fit: cover; }
.img-preview:hover { transform: scale(1.1); border-color: var(--accent); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }

.row-actions { display: flex; gap: 6px; opacity: 0; transition: opacity 0.2s; }
tbody tr:hover .row-actions { opacity: 1; }

.action-btn {
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.15s;
}

.action-btn.approve { background: #ECFDF5; color: #059669; }
.action-btn.reject { background: #FEF2F2; color: #DC2626; }
.action-btn.view { background: #EFF6FF; color: #3B82F6; }

/* ===== 状态标签 ===== */
.status-tag {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.status-pending { background: #FEF3C7; color: #B45309; }
.status-approved, .status-published { background: #ECFDF5; color: #059669; }
.status-rejected, .status-offline { background: #FEF2F2; color: #DC2626; }
.status-checking { background: #EFF6FF; color: #1D4ED8; }
.status-draft { background: #F3F4F6; color: #6B7280; }
.status-active { background: #ECFDF5; color: #059669; }
.status-banned { background: #FEF2F2; color: #DC2626; }
.status-frozen { background: #FEF3C7; color: #B45309; }
.status-paid { background: #DBEAFE; color: #1D4ED8; }
.status-pending-action { background: #FEF3C7; color: #B45309; }

.status-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.status-pending .status-dot { background: #F59E0B; }
.status-approved .status-dot, .status-published .status-dot, .status-active .status-dot { background: #10B981; }
.status-rejected .status-dot, .status-offline .status-dot, .status-banned .status-dot { background: #EF4444; }
.status-checking .status-dot { background: #3B82F6; animation: dotBlink 1.5s infinite; }
.status-draft .status-dot { background: #9CA3AF; }
.status-frozen .status-dot { background: #F59E0B; }
.status-paid .status-dot { background: #3B82F6; }
.status-pending-action .status-dot { background: #F59E0B; animation: dotBlink 1.5s infinite; }

@keyframes dotBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ===== 弹窗 ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.modal-overlay.show { display: flex; animation: modalIn 0.3s; }
@keyframes modalIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: #fff;
  border-radius: 16px;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,0.2);
  animation: modalSlide 0.3s;
  position: relative;
}

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

.modal-w700 { width: 700px; max-width: 90vw; }
.modal-w600 { width: 600px; max-width: 90vw; }
.modal-w500 { width: 500px; max-width: 90vw; }
.modal-w800 { width: 800px; max-width: 90vw; }

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
  border-radius: 16px 16px 0 0;
}

.modal-title { font-size: 16px; font-weight: bold; display: flex; align-items: center; gap: 8px; }

.modal-close {
  width: 32px; height: 32px;
  background: #F5F5F5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #666;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.modal-close:hover { background: #E5E5E5; transform: rotate(90deg); }
.modal-body { padding: 24px; }
.modal-section { margin-bottom: 24px; }
.modal-section:last-child { margin-bottom: 0; }

.modal-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.modal-info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.modal-info-item {
  background: #F9FAFB;
  border-radius: 10px;
  padding: 14px;
  transition: all 0.2s;
}

.modal-info-item:hover { background: #F3F4F6; }
.modal-info-item .label { font-size: 11px; color: var(--text-muted); margin-bottom: 6px; font-weight: 500; }
.modal-info-item .value { font-size: 15px; font-weight: 600; color: var(--text); }
.modal-info-item .value.highlight { color: var(--accent); font-size: 20px; }

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #FAFAFA;
  border-radius: 0 0 16px 16px;
}

.modal-footer-right { display: flex; gap: 8px; }
.modal-footer-hint { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }

/* ===== 审核弹窗 ===== */
.review-section {
  background: #FAFAFA;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid var(--border);
}

.review-tabs { display: flex; gap: 10px; margin-bottom: 16px; }

.review-tab {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: 2px solid var(--border);
  background: #fff;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.review-tab.approve.active {
  background: #ECFDF5;
  color: #059669;
  border-color: #10B981;
  box-shadow: 0 2px 8px rgba(16,185,129,0.15);
}

.review-tab.reject.active {
  background: #FEF2F2;
  color: #DC2626;
  border-color: #EF4444;
  box-shadow: 0 2px 8px rgba(239,68,68,0.15);
}

.review-reason { margin-bottom: 14px; }
.review-reason-label { font-size: 12px; color: var(--text-secondary); margin-bottom: 8px; font-weight: 500; }

.review-textarea {
  width: 100%;
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  resize: none;
  height: 80px;
  font-family: inherit;
  outline: none;
  background: #fff;
  transition: all 0.2s;
}

.review-textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59,130,246,0.1); }

.review-quick { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }

.quick-tag {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
  font-weight: 500;
}

.quick-tag:hover { border-color: var(--accent); color: var(--accent); background: rgba(59,130,246,0.04); }

/* ===== 凭证截图 ===== */
.proof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.proof-item {
  border: 2px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
}

.proof-item:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); }

.proof-img {
  width: 100%; height: 160px;
  background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  overflow: hidden;
}

.proof-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; transition: transform 0.3s; }
.proof-item:hover .proof-img img { transform: scale(1.05); }
.proof-label { padding: 10px 12px; font-size: 12px; color: var(--text-secondary); background: #FAFAFA; font-weight: 500; }

/* ===== 图片查看器 ===== */
.img-viewer {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 300;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  backdrop-filter: blur(8px);
}

.img-viewer.show { display: flex; animation: viewerIn 0.3s; }
@keyframes viewerIn { from { opacity: 0; } to { opacity: 1; } }

.img-viewer-content {
  max-width: 90%;
  max-height: 90%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
  animation: viewerZoom 0.3s;
}

@keyframes viewerZoom {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.img-viewer-content img { max-width: 100%; max-height: 85vh; display: block; }

.img-viewer-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.img-viewer-close:hover { background: rgba(255,255,255,0.25); transform: rotate(90deg); }

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

.empty-state-icon { font-size: 64px; margin-bottom: 16px; }
.empty-state-title { font-size: 16px; color: var(--text-secondary); font-weight: 500; margin-bottom: 8px; }
.empty-state-desc { font-size: 13px; color: var(--text-muted); }

/* ===== 表单 ===== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid-1 { grid-template-columns: 1fr; }
.form-item { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; }
.form-label .required { color: var(--danger); margin-left: 2px; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 13px;
  outline: none;
  transition: all 0.2s;
  background: #fff;
  font-family: inherit;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.form-textarea { resize: vertical; min-height: 80px; }
.form-hint { font-size: 11px; color: var(--text-muted); margin-top: 6px; }

/* ===== 加载状态 ===== */
.loading-mask {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: inherit;
}

.spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ===== 响应式 ===== */
@media (max-width: 1200px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .modal-info-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .admin-sidebar { transform: translateX(-100%); z-index: 150; }
  .admin-sidebar.open { transform: translateX(0); display: block; }
  .admin-main { margin-left: 0; padding: 16px; }
  .row-actions { opacity: 1; }
}

@media (max-width: 768px) {
  .stats-row { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-card-value { font-size: 22px; }
  .filter-bar { flex-direction: column; align-items: flex-start; }
  .filter-group { width: 100%; }
  .filter-input { width: 100%; }
  .modal { width: 95%; }
  .modal-info-grid { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .table-footer { flex-direction: column; gap: 10px; }
  .pagination { justify-content: center; }
}
