/* ============================================================
   管理后台 —— 样式（基于主样式扩展）
   注意：主样式 /css/style.css 由各 admin HTML 页通过 <link> 显式引入
   ============================================================ */

.admin-body { display: flex; min-height: 100vh; }
.admin-side {
  width: 230px; background: #0b1f3a; color: #cfd8e8; flex-shrink: 0;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.admin-side .brand { padding: 22px 20px; border-bottom: 1px solid rgba(255,255,255,.09); margin: 0 0 12px; }
.admin-side nav { flex: 1; padding: 0 12px; }
.admin-side nav a {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px;
  color: #cfd8e8; margin-bottom: 4px; font-size: 14px; transition: .2s;
}
.admin-side nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.admin-side nav a.active { background: linear-gradient(135deg, rgba(201,162,75,.28), rgba(201,162,75,.12)); color: var(--gold-2); font-weight: 600; }
.admin-side .side-foot { padding: 16px; border-top: 1px solid rgba(255,255,255,.09); }
.admin-side .side-foot a { color: #aebbd0; font-size: 13px; }

.admin-main { flex: 1; min-width: 0; background: #f2f5fa; padding: 28px 30px 60px; }
.admin-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.admin-head h1 { font-size: 24px; color: var(--navy); }
.admin-head .crumb { color: var(--muted); font-size: 13px; margin-top: 2px; }

.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px,1fr)); gap: 18px; margin-bottom: 26px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; box-shadow: var(--shadow-sm); }
.stat-card .lbl { color: var(--muted); font-size: 13px; }
.stat-card .val { font-size: 26px; font-weight: 800; color: var(--navy); margin-top: 6px; }
.stat-card .val.gold { color: #b07e1a; }

.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar input[type=text], .toolbar select {
  padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 14px; background: #fff; min-width: 220px;
}

/* 表格行操作 */
.row-ops { display: flex; gap: 8px; }

@media (max-width: 820px) {
  .admin-body { flex-direction: column; }
  .admin-side { width: 100%; height: auto; position: static; }
  .admin-side nav { display: flex; overflow-x: auto; padding-bottom: 8px; }
  .admin-side nav a { white-space: nowrap; }
}
