
/* ═══ 管理后台专用样式 ═══ */
.admin-login {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.login-card {
  width: min(400px, 100%); padding: 36px 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)), var(--card-solid);
  border: 1px solid var(--card-border-hi); border-radius: 22px;
  box-shadow: var(--shadow), 0 0 50px rgba(139, 92, 246, 0.1);
  text-align: center;
}
.login-mark {
  width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 17px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(34, 211, 238, 0.12));
  border: 1px solid rgba(167, 139, 250, 0.4);
  box-shadow: 0 0 26px rgba(139, 92, 246, 0.3);
}
.login-mark svg { width: 28px; height: 28px; }
.login-card h1 { font-size: 22px; font-weight: 750; margin: 4px 0 6px; }
.login-hint { font-size: 12px; color: var(--text-faint); margin-bottom: 22px; }
.login-msg { min-height: 20px; font-size: 12.5px; margin: 10px 0 6px; }
.login-msg.err { color: #fb7185; }
.login-back { display: inline-block; margin-top: 18px; font-size: 12px; color: var(--text-faint); text-decoration: none; }
.login-back:hover { color: #93c5fd; }

.admin-shell { grid-template-columns: 1fr; max-width: 1500px; }
.admin-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.admin-cards .stat-card b { font-size: 22px; }

.issue-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.issue-result { margin-top: 16px; }
.issue-cards {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px;
  max-height: 220px; overflow-y: auto;
  border: 1px solid var(--card-border); border-radius: var(--radius-sm);
  padding: 12px; background: rgba(3, 6, 12, 0.45);
}
.issue-card-code {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.5px;
  padding: 6px 11px; border-radius: 8px; cursor: pointer;
  color: #a5f3fc; background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.3);
  transition: all 0.15s;
}
.issue-card-code:hover { background: rgba(34, 211, 238, 0.18); transform: translateY(-1px); }
.issue-meta { font-size: 12px; color: var(--text-dim); margin-top: 10px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

.mini-input, .mini-select {
  font-size: 12px; padding: 7px 12px; border-radius: 9px;
  background: rgba(4, 8, 16, 0.6); border: 1px solid var(--card-border-hi);
  color: var(--text); outline: none; min-width: 0;
}
.mini-input { width: 180px; font-family: var(--mono); }
.mini-input:focus { border-color: rgba(96, 165, 250, 0.6); }
.mini-select { cursor: pointer; }
.mini-select option { background: #0d1322; }

.admin-table th { font-size: 10px; }
.admin-table td { font-size: 11.5px; }
.admin-table .mono { font-family: var(--mono); font-size: 10.5px; color: #b9c6de; }
.admin-table .pill { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; padding: 3px 9px; border-radius: 999px; font-weight: 600; }
.pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pill.unused { color: #7dd3fc; background: rgba(59, 130, 246, 0.12); }
.pill.used { color: #34d399; background: rgba(16, 185, 129, 0.12); }
.pill.disabled { color: #fb7185; background: rgba(244, 63, 94, 0.12); }
.pill.expired { color: #94a3b8; background: rgba(148, 163, 184, 0.1); }
.pill.success { color: #34d399; background: rgba(16, 185, 129, 0.12); }
.pill.partial { color: #fbbf24; background: rgba(245, 158, 11, 0.12); }
.pill.failed { color: #fb7185; background: rgba(244, 63, 94, 0.12); }
.pill.online { color: #34d399; background: rgba(16, 185, 129, 0.12); }
.pill.offline { color: #64748b; background: rgba(100, 116, 139, 0.1); }
.cell-reason { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fca5a5; font-size: 11px; }
.cell-reason.none { color: #4a5468; }
.mini-btn {
  font-size: 10.5px; padding: 4px 10px; border-radius: 7px; cursor: pointer;
  color: #93c5fd; background: rgba(59, 130, 246, 0.08); border: 1px solid rgba(96, 165, 250, 0.3);
  transition: all 0.15s; white-space: nowrap;
}
.mini-btn:hover { background: rgba(59, 130, 246, 0.2); }
.mini-btn.warn { color: #fda4af; border-color: rgba(244, 63, 94, 0.35); background: rgba(244, 63, 94, 0.08); }
.mini-btn.warn:hover { background: rgba(244, 63, 94, 0.16); }

.danger-zone { border-color: rgba(244, 63, 94, 0.25); }
.danger-zone .card-head h2 { color: #fda4af; }
.danger-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.danger-btn { color: #fda4af; border-color: rgba(244, 63, 94, 0.35); }
.danger-btn:hover { color: #fff; background: rgba(244, 63, 94, 0.18); border-color: rgba(244, 63, 94, 0.5); }

.route-filter { align-items: center; }
.route-filter label, .head-actions > label {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-faint); font-size: 11px; white-space: nowrap;
}
.date-input { width: 132px; font-family: inherit; }
.route-stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.route-stat-panel {
  min-width: 0; border: 1px solid var(--card-border);
  border-radius: var(--radius-sm); background: rgba(3, 6, 12, 0.28);
  overflow: hidden;
}
.route-stat-title {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-bottom: 1px solid var(--card-border);
  color: var(--text-dim); font-size: 12px;
}
.route-stat-title b { color: #bae6fd; font-size: 13px; }
.route-stat-title span { color: var(--text-faint); font-size: 11px; }
.route-stat-panel .table-wrap { max-height: 280px; }
.route-stat-panel .admin-table td:last-child { color: #34d399; font-weight: 700; }

@media (max-width: 900px) {
  .route-stats-grid { grid-template-columns: 1fr; }
  .route-filter { width: 100%; flex-wrap: wrap; }
}
