/* ============================================
   管理员面板样式
   ============================================ */

.admin-body {
  padding: 0 !important;
}

/* 管理员登录 */
.admin-login-form {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  padding: 40px;
}

.admin-login-card {
  width: 340px;
  padding: 32px;
  background: var(--bg-surface);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}
.admin-login-card h4 {
  font-size: 18px;
  text-align: center;
  margin-bottom: 24px;
  color: var(--text-primary);
}

/* 管理员面板 */
.admin-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* 管理员标签页 */
.admin-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border-light);
  padding: 0 20px;
  flex-shrink: 0;
  background: var(--bg-surface-hover);
  overflow-x: auto;
}

.admin-tab {
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.admin-tab:hover {
  color: var(--text-primary);
  background: rgba(108,92,231,0.05);
}
.admin-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}

/* 管理员内容区 */
.admin-content {
  display: none;
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}
.admin-content.active {
  display: block;
}
.admin-content h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-primary);
}

/* 统计网格 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.stat-card {
  padding: 20px;
  background: linear-gradient(135deg, var(--bg-surface), var(--bg-surface-hover));
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius);
  text-align: center;
  transition: transform var(--transition-fast);
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.stat-card:nth-child(1) { border-top: 3px solid var(--primary); }
.stat-card:nth-child(2) { border-top: 3px solid var(--accent); }
.stat-card:nth-child(3) { border-top: 3px solid var(--warning-dark); }
.stat-card:nth-child(4) { border-top: 3px solid var(--success); }

.stat-value {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.stat-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
}

/* 用户管理 */
.user-manage-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.user-table-container {
  overflow-x: auto;
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius);
}

.user-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.user-table th {
  padding: 10px 14px;
  background: var(--bg-surface-hover);
  text-align: left;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}
.user-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-primary);
  white-space: nowrap;
}
.user-table tr:hover td {
  background: var(--bg-surface-hover);
}
.user-table td:last-child {
  white-space: nowrap;
}

.user-action-btn {
  padding: 3px 10px;
  font-size: 11px;
  border-radius: var(--border-radius-sm);
  background: var(--primary-bg);
  color: var(--primary);
  border: 1px solid var(--primary-light);
  transition: all var(--transition-fast);
  margin-right: 4px;
}
.user-action-btn:hover {
  background: var(--primary);
  color: white;
}

/* 系统信息网格 */
.system-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg-surface-hover);
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-light);
}
.info-label {
  font-size: 13px;
  color: var(--text-secondary);
}
.info-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
