/* ====================================================
   开放平台 - 管理员后台样式
   设计风格：NVIDIA科技感 暗色管理界面
==================================================== */

.admin-body {
  background: #050505;
  min-height: 100vh;
}

/* ---- 管理员导航栏 ---- */
.admin-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.97);
  border-bottom: 1px solid #1a1a1a;
  backdrop-filter: blur(12px);
}

.admin-nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-logo {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
}

.admin-nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-user-name {
  font-size: 14px;
  font-weight: 600;
  color: #a7a7a7;
  padding: 6px 12px;
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
}

/* ---- 主容器 ---- */
.admin-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 24px;
}

/* ---- 统计卡片 ---- */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.admin-stat-card {
  background: #111;
  border: 1px solid #1e1e1e;
  border-radius: 12px;
  padding: 20px 24px;
  text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
  position: relative;
  overflow: hidden;
}

.admin-stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #76b900, transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.admin-stat-card:hover {
  border-color: rgba(118,185,0,0.3);
  transform: translateY(-2px);
}
.admin-stat-card:hover::before { opacity: 1; }

.admin-stat-num {
  display: block;
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
}

.admin-stat-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #757575;
}

/* ---- 筛选区 ---- */
.admin-filter-bar {
  background: #111;
  border: 1px solid #1e1e1e;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 24px;
}

.filter-form {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-form .form-input {
  flex: 1;
  min-width: 160px;
  max-width: 260px;
  padding: 10px 14px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
}

.filter-form .form-input:focus {
  border-color: #76b900;
  box-shadow: 0 0 0 3px rgba(118,185,0,0.1);
  outline: none;
}

/* ---- 数据表格 ---- */
.admin-table-wrap {
  background: #0d0d0d;
  border: 1px solid #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table thead tr {
  background: #151515;
  border-bottom: 1px solid #222;
}

.admin-table th {
  padding: 14px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #76b900;
  white-space: nowrap;
}

.admin-table tbody tr {
  border-bottom: 1px solid #161616;
  transition: background 0.15s ease;
}

.admin-table tbody tr:last-child { border-bottom: none; }

.admin-table tbody tr:hover { background: rgba(118,185,0,0.03); }

.admin-table td {
  padding: 14px 16px;
  color: #d0d0d0;
  vertical-align: top;
}

.text-muted { color: #757575 !important; }
.text-sm { font-size: 12px !important; }

/* ---- 类型徽章 ---- */
.type-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.type-edu_email    { background: rgba(30,174,219,0.12); border: 1px solid rgba(30,174,219,0.3); color: #1eaedb; }
.type-edu_domain   { background: rgba(118,185,0,0.12);  border: 1px solid rgba(118,185,0,0.3);  color: #76b900; }
.type-douyin_music { background: rgba(239,145,0,0.12);  border: 1px solid rgba(239,145,0,0.3);  color: #ef9100; }
.type-wangyi_music { background: rgba(229,32,32,0.12);  border: 1px solid rgba(229,32,32,0.3);  color: #ff5b5b; }

/* 已办结在后台表格中高亮行 */
tr:has(.status-closed) { background: rgba(0,200,160,0.03); }

/* ---- 申请数据预览 ---- */
.app-data-preview {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 320px;
}

.data-row {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.5;
}

.data-key {
  font-weight: 700;
  color: #757575;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 70px;
}

.data-val {
  color: #d0d0d0;
  word-break: break-all;
}

.remark-row .data-val { color: #ef9100; }

/* ---- 分页 ---- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
}

.page-info {
  font-size: 14px;
  color: #757575;
}

/* ---- 管理员登录页 ---- */
.admin-login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: #050505;
  position: relative;
}

.admin-login-wrapper::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(118,185,0,0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* ---- 响应式 ---- */
@media (max-width: 1200px) {
  .admin-stats-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-form .form-input { max-width: 100%; }
  .admin-table { font-size: 12px; }
  .admin-table th, .admin-table td { padding: 10px 10px; }
  .app-data-preview { max-width: 180px; }
}

@media (max-width: 480px) {
  .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-nav-inner { padding: 0 16px; }
  .admin-container { padding: 20px 16px; }
}
