/* ============================================================
   峻极中和培训管理系统 · 视觉样式
   ============================================================ */
:root {
  --bg: #05070f;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-strong: rgba(255, 255, 255, 0.07);
  --stroke: rgba(255, 255, 255, 0.09);
  --stroke-strong: rgba(255, 255, 255, 0.18);
  --text: #e9edfb;
  --text-strong: #ffffff;
  --muted: #8b97bb;
  --dim: #5d688c;
  --placeholder: #4d5878;
  --hover: rgba(255, 255, 255, 0.055);
  --hover-strong: rgba(255, 255, 255, 0.1);
  --line: rgba(255, 255, 255, 0.055);
  --surface: rgba(6, 9, 20, 0.6);
  --surface-soft: rgba(6, 9, 20, 0.5);
  --glass-hi: rgba(255, 255, 255, 0.35);
  --scroll: rgba(255, 255, 255, 0.12);
  --grid-line: rgba(255, 255, 255, 0.035);
  --shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.85), 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-lift: 0 30px 70px -24px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(99, 102, 241, 0.22);
  --focus: rgba(99, 102, 241, 0.18);
  --indigo: #6366f1;
  --cyan: #22d3ee;
  --green: #22c55e;
  --amber: #f59e0b;
  --red: #ef4444;
  --ok-text: #4ade80;
  --danger-text: #f87171;
  --warn-text: #fbbf24;
  --accent-text: #a5b4fc;
  --money-text: #a5f3fc;
  --grad: linear-gradient(135deg, #6366f1 0%, #22d3ee 100%);
  --grad-violet: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
  --blend: screen;
  --aurora-opacity: 0.55;
  --aurora-1: #4f46e5;
  --aurora-2: #0891b2;
  --aurora-3: #a21caf;
  --aurora-4: #0ea5e9;
  --on-accent: #04070f;
  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 10px;
  --font: "Inter", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
h1, h2, h3, h4, p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent-text); text-decoration: none; }
::selection { background: rgba(99, 102, 241, 0.45); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--scroll); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.22); background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

/* ------------------------------ 背景 ------------------------------ */
.aurora { position: fixed; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.blob {
  position: absolute; border-radius: 50%; filter: blur(90px);
  opacity: var(--aurora-opacity); mix-blend-mode: var(--blend);
  animation: float 22s ease-in-out infinite;
}
.b1 { width: 640px; height: 640px; background: radial-gradient(circle at 30% 30%, var(--aurora-1), transparent 70%); top: -180px; left: -120px; }
.b2 { width: 560px; height: 560px; background: radial-gradient(circle at 60% 40%, var(--aurora-2), transparent 70%); bottom: -200px; right: -80px; animation-delay: -7s; }
.b3 { width: 480px; height: 480px; background: radial-gradient(circle at 50% 50%, var(--aurora-3), transparent 70%); top: 35%; left: 45%; animation-delay: -13s; opacity: 0.35; }
.b4 { width: 380px; height: 380px; background: radial-gradient(circle at 50% 50%, var(--aurora-4), transparent 70%); top: 60%; left: 8%; animation-delay: -4s; opacity: 0.3; }
@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33% { transform: translate3d(40px, -30px, 0) scale(1.06); }
  66% { transform: translate3d(-30px, 24px, 0) scale(0.96); }
}
.grid-overlay {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 100%);
}

.screen { position: fixed; inset: 0; z-index: 1; display: none; }
.screen.active { display: block; animation: fadeUp 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ------------------------------ 基础组件 ------------------------------ */
.glass {
  position: relative;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.078), rgba(255, 255, 255, 0.026));
  border: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  backdrop-filter: blur(24px) saturate(150%);
  box-shadow: var(--shadow);
}
.glass::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-hi), transparent);
  opacity: 0.7; pointer-events: none;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 12px;
  border: 1px solid var(--stroke-strong);
  background: var(--panel-strong);
  color: var(--text); font-size: 13.5px; font-weight: 600;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn:hover { transform: translateY(-1px); border-color: rgba(255, 255, 255, 0.26); background: var(--hover-strong); }
.btn:active { transform: translateY(0) scale(0.985); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-primary {
  background: var(--grad); border-color: transparent; color: var(--on-accent);
  font-weight: 700; box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.85);
}
.btn-primary:hover { box-shadow: 0 16px 40px -12px rgba(34, 211, 238, 0.75); background: var(--grad); }
.btn-ghost { background: transparent; }
.btn-danger { color: var(--danger-text); border-color: rgba(239, 68, 68, 0.3); background: rgba(239, 68, 68, 0.08); }
.btn-danger:hover { background: rgba(239, 68, 68, 0.16); border-color: rgba(239, 68, 68, 0.5); }
.btn-sm { height: 32px; padding: 0 11px; font-size: 12.5px; border-radius: 9px; }

.icon-btn {
  display: inline-grid; place-items: center; width: 36px; height: 36px;
  border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--muted);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { background: var(--hover); color: var(--text); border-color: var(--stroke); }

.link-btn {
  border: 0; background: none; color: var(--accent-text); font-size: 12.5px; padding: 0;
  transition: color 0.18s ease;
}
.link-btn:hover { color: var(--cyan); text-decoration: underline; }

.muted { color: var(--muted); }

/* ------------------------------ 登录 ------------------------------ */
.auth-wrap {
  position: relative; z-index: 2; min-height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 22px; padding: 32px 20px;
}
.login-card {
  width: 980px; max-width: 96vw;
  display: grid; grid-template-columns: 1.06fr 0.94fr;
  border-radius: 26px; overflow: hidden;
  box-shadow: var(--shadow-lift);
}
.login-left { padding: 50px 48px 46px; position: relative; overflow: hidden; }
.login-left::after {
  content: ""; position: absolute; width: 360px; height: 360px; right: -160px; bottom: -190px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.22), transparent 68%);
  pointer-events: none;
}
.login-right {
  padding: 50px 46px 44px;
  background: var(--surface-soft);
  border-left: 1px solid var(--stroke);
  display: flex; flex-direction: column; justify-content: center;
}

.brand { display: flex; align-items: center; gap: 13px; margin-bottom: 34px; }
.logo {
  width: 46px; height: 46px; border-radius: 13px; flex: none;
  background: var(--grad); color: var(--on-accent);
  display: grid; place-items: center;
  box-shadow: 0 10px 30px -8px rgba(99, 102, 241, 0.9);
}
.logo svg { width: 25px; height: 25px; }
.brand h1 { font-size: 19px; font-weight: 700; letter-spacing: 0.01em; color: var(--text-strong); }
.brand p { font-size: 10.5px; color: var(--dim); letter-spacing: 0.18em; text-transform: uppercase; margin-top: 2px; }

.hero-title {
  font-size: 32px; line-height: 1.3; font-weight: 800; letter-spacing: -0.02em;
  color: var(--text-strong); margin-bottom: 14px;
}
.grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { color: var(--muted); font-size: 13.5px; margin-bottom: 28px; max-width: 36ch; }

.feat { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 15px; }
.feat .ic {
  width: 32px; height: 32px; border-radius: 10px; flex: none;
  background: rgba(99, 102, 241, 0.15); border: 1px solid rgba(99, 102, 241, 0.32);
  display: grid; place-items: center; color: var(--accent-text);
}
.feat .ic svg { width: 16px; height: 16px; }
.feat b { display: block; font-size: 13.5px; font-weight: 600; color: var(--text); }
.feat span { font-size: 12px; color: var(--dim); }

.login-head { margin-bottom: 26px; }
.login-head h2 { font-size: 22px; font-weight: 700; color: var(--text-strong); letter-spacing: -0.01em; }
.login-head p { font-size: 12.5px; color: var(--muted); margin-top: 6px; }

.field { margin-bottom: 15px; }
.field > label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 7px; font-weight: 500; }
.field .req { color: var(--danger-text); margin-left: 3px; }
.input-wrap { position: relative; }
.field input {
  width: 100%; height: 44px; padding: 0 14px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--stroke);
  color: var(--text); font-size: 13.5px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.field input::placeholder { color: var(--placeholder); }
.field input:hover { border-color: var(--stroke-strong); }
.field input:focus {
  outline: none; border-color: rgba(99, 102, 241, 0.65);
  background: rgba(99, 102, 241, 0.06); box-shadow: 0 0 0 4px var(--focus);
}
.input-wrap .eye {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
  width: 32px; height: 32px; display: grid; place-items: center;
  border: 0; background: transparent; color: var(--dim); border-radius: 8px;
}
.input-wrap .eye:hover { color: var(--text); background: var(--hover); }
.input-wrap .eye svg { width: 17px; height: 17px; }
.field input[type="password"] { padding-right: 44px; }

.login-hint-row { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 14px; font-size: 12px; color: var(--dim); }

.login-err {
  margin-bottom: 14px; padding: 10px 12px; border-radius: 11px;
  background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5; font-size: 12.5px; animation: shake 0.3s ease;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.btn-login { width: 100%; height: 46px; border-radius: 13px; font-size: 14px; }
.btn-login svg { width: 16px; height: 16px; }
.btn-login.loading span { opacity: 0.7; }
.btn-login.loading::after {
  content: ""; width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid rgba(4, 7, 15, 0.25); border-top-color: var(--on-accent);
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.demo-tip {
  margin-top: 18px; padding: 11px 13px; border-radius: 12px;
  background: rgba(34, 211, 238, 0.07); border: 1px solid rgba(34, 211, 238, 0.22);
  font-size: 11.5px; color: var(--muted); line-height: 1.65;
}
.demo-tip b { color: var(--money-text); font-weight: 600; }

.auth-foot { font-size: 11.5px; color: var(--dim); letter-spacing: 0.04em; }

/* ------------------------------ 应用框架 ------------------------------ */
.shell { display: grid; grid-template-columns: 254px minmax(0, 1fr); height: 100vh; }

.sidebar {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  padding: 22px 14px 16px;
  background: linear-gradient(180deg, rgba(10, 14, 28, 0.78), rgba(6, 9, 20, 0.62));
  border-right: 1px solid var(--stroke);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
}
.side-brand { display: flex; align-items: center; gap: 11px; padding: 4px 10px 22px; }
.logo.small { width: 38px; height: 38px; border-radius: 11px; }
.logo.small svg { width: 21px; height: 21px; }
.side-brand h1 { font-size: 15px; font-weight: 700; color: var(--text-strong); }
.side-brand p { font-size: 9.5px; color: var(--dim); letter-spacing: 0.14em; margin-top: 2px; }

.nav-label {
  font-size: 10.5px; color: var(--dim); letter-spacing: 0.12em;
  padding: 8px 12px; margin-top: 6px; text-transform: uppercase;
}
.nav-item {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 10px 12px; margin-bottom: 3px; border-radius: 11px;
  border: 1px solid transparent; background: transparent;
  color: var(--muted); font-size: 13.5px; text-align: left;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  position: relative;
}
.nav-item svg { width: 18px; height: 18px; stroke-width: 1.7; flex: none; }
.nav-item:hover { background: var(--hover); color: var(--text); }
.nav-item.active {
  color: var(--text-strong);
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.2), rgba(8, 145, 178, 0.08));
  border-color: rgba(99, 102, 241, 0.32);
}
.nav-item.active::before {
  content: ""; position: absolute; left: -14px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 20px; border-radius: 0 3px 3px 0; background: var(--grad);
  box-shadow: 0 0 14px rgba(99, 102, 241, 0.8);
}
.side-foot {
  margin-top: auto; display: flex; align-items: center; gap: 8px;
  padding: 12px; border-top: 1px solid var(--line);
  font-size: 11.5px; color: var(--dim);
}
.side-foot b { margin-left: auto; font-weight: 500; }
.status-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.14);
}

.main { display: flex; flex-direction: column; min-width: 0; height: 100vh; }
.topbar {
  position: relative; z-index: 3; flex: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 76px; padding: 0 30px;
  border-bottom: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(5, 7, 15, 0.92), rgba(5, 7, 15, 0.55));
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
.topbar-title h1 { font-size: 18px; font-weight: 700; color: var(--text-strong); letter-spacing: -0.01em; }
.topbar-title p { font-size: 11.5px; color: var(--dim); margin-top: 2px; }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.user-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 5px 12px 5px 5px; border-radius: 999px;
  border: 1px solid var(--stroke); background: var(--panel);
}
.avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--grad); color: var(--on-accent);
  font-size: 13px; font-weight: 800;
}
.user-meta { display: flex; flex-direction: column; line-height: 1.25; }
.user-meta b { font-size: 12.5px; font-weight: 600; color: var(--text); }
.user-meta small { font-size: 10.5px; color: var(--dim); }
.icon-btn.logout:hover { color: var(--danger-text); border-color: rgba(239, 68, 68, 0.35); background: rgba(239, 68, 68, 0.08); }

.content {
  flex: 1; overflow-y: auto; padding: 26px 30px 48px;
}
.view { display: none; max-width: 1320px; margin: 0 auto; }
.view.active { display: block; animation: fadeUp 0.35s ease; }

/* ------------------------------ 卡片与统计 ------------------------------ */
.card { border-radius: var(--r-lg); padding: 22px; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.card-head h3 { font-size: 14.5px; font-weight: 700; color: var(--text-strong); }
.card-head p { font-size: 11.5px; color: var(--dim); margin-top: 3px; }
.card h3 { font-size: 14.5px; }

.welcome {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 26px 28px; margin-bottom: 20px;
  background:
    radial-gradient(ellipse 70% 150% at 0% 0%, rgba(99, 102, 241, 0.18), transparent 60%),
    radial-gradient(ellipse 60% 140% at 100% 100%, rgba(34, 211, 238, 0.12), transparent 60%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.024));
}
.eyebrow { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 8px; }
.welcome h2 { font-size: 24px; font-weight: 800; color: var(--text-strong); letter-spacing: -0.02em; }
.welcome p.muted { font-size: 12.5px; margin-top: 6px; }
.welcome-date {
  flex: none; padding: 9px 14px; border-radius: 11px;
  border: 1px solid var(--stroke); background: rgba(255, 255, 255, 0.04);
  font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums;
}

.practice-banner {
  position: relative; display: flex; align-items: center; gap: 18px;
  padding: 20px 24px; margin-bottom: 20px; border-radius: var(--r-lg);
  background:
    radial-gradient(ellipse 60% 160% at 8% 0%, rgba(34, 211, 238, 0.16), transparent 60%),
    radial-gradient(ellipse 50% 150% at 100% 100%, rgba(99, 102, 241, 0.2), transparent 62%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
}
.practice-icon {
  width: 48px; height: 48px; flex: none; border-radius: 14px;
  display: grid; place-items: center; color: var(--on-accent);
  background: var(--grad); box-shadow: 0 12px 30px -10px rgba(34, 211, 238, 0.75);
}
.practice-icon svg { width: 24px; height: 24px; }
.practice-copy { flex: 1; min-width: 0; }
.practice-copy .eyebrow { margin-bottom: 3px; }
.practice-copy h3 { font-size: 17px; font-weight: 700; color: var(--text-strong); letter-spacing: -0.01em; }
.practice-copy p.muted { font-size: 12.5px; margin-top: 3px; }
.practice-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.nav-ext { margin-left: auto; font-size: 12px; color: var(--dim); transition: color 0.18s ease; }
.nav-item.nav-practice:hover .nav-ext { color: var(--cyan); }
.road-practice-banner {
  background:
    radial-gradient(ellipse 60% 160% at 8% 0%, rgba(52, 211, 153, 0.13), transparent 60%),
    radial-gradient(ellipse 50% 150% at 100% 100%, rgba(34, 211, 238, 0.16), transparent 62%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
}
.practice-kind { display: inline-flex; align-items: center; padding: 4px 8px; border: 1px solid rgba(148, 163, 184, 0.18); border-radius: 7px; color: var(--muted); background: rgba(148, 163, 184, 0.06); font-size: 11px; white-space: nowrap; }
.practice-kind.road { color: #67e8f9; border-color: rgba(34, 211, 238, 0.22); background: rgba(34, 211, 238, 0.07); }

.switch-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; margin-bottom: 16px; cursor: pointer;
  border: 1px solid var(--stroke); border-radius: 12px; background: rgba(255, 255, 255, 0.03);
}
.switch-row input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: #6366f1; flex: none; cursor: pointer; }
.switch-row b { display: block; font-size: 13px; font-weight: 600; color: var(--text); }
.switch-row small { display: block; font-size: 11.5px; color: var(--dim); margin-top: 1px; }
.settings-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.settings-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }.stat-card {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg); padding: 18px 20px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.stat-card:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.16); }
.stat-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.stat-label { font-size: 12px; color: var(--muted); }
.stat-icon {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(99, 102, 241, 0.14); border: 1px solid rgba(99, 102, 241, 0.3); color: var(--accent-text);
}
.stat-icon svg { width: 17px; height: 17px; }
.stat-value { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; color: var(--text-strong); font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat-foot { font-size: 11px; color: var(--dim); margin-top: 6px; }
.stat-card.green .stat-icon { background: rgba(34, 197, 94, 0.12); border-color: rgba(34, 197, 94, 0.28); color: var(--ok-text); }
.stat-card.cyan .stat-icon { background: rgba(34, 211, 238, 0.12); border-color: rgba(34, 211, 238, 0.28); color: var(--money-text); }
.stat-card.violet .stat-icon { background: rgba(168, 85, 247, 0.12); border-color: rgba(168, 85, 247, 0.3); color: #d8b4fe; }

.dash-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.dash-grid.single { grid-template-columns: 1fr; }
.recent-list { display: flex; flex-direction: column; }
.recent-item { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-bottom: 1px solid var(--line); }
.recent-item:last-child { border-bottom: 0; }
.recent-item .avatar { width: 34px; height: 34px; font-size: 13px; }
.recent-main { min-width: 0; flex: 1; }
.recent-main b { display: block; font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-main span { font-size: 11.5px; color: var(--dim); }
.recent-time { font-size: 11px; color: var(--dim); white-space: nowrap; }
.recent-item .tag { flex: none; }

.quick-actions { display: grid; gap: 10px; }
.quick-action {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 13px 14px; border-radius: 13px; text-align: left;
  border: 1px solid var(--stroke); background: rgba(255, 255, 255, 0.03);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.quick-action:hover { background: var(--hover); border-color: rgba(99, 102, 241, 0.35); transform: translateY(-1px); }
.quick-action .ic {
  width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center;
  background: rgba(99, 102, 241, 0.14); border: 1px solid rgba(99, 102, 241, 0.3); color: var(--accent-text);
}
.quick-action .ic svg { width: 17px; height: 17px; }
.quick-action b { display: block; font-size: 13px; font-weight: 600; color: var(--text); }
.quick-action span { font-size: 11.5px; color: var(--dim); }
.quick-action .arrow { margin-left: auto; color: var(--dim); font-size: 16px; }

/* ------------------------------ 账号管理 ------------------------------ */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.page-head h2 { font-size: 21px; font-weight: 700; color: var(--text-strong); letter-spacing: -0.01em; }
.page-head p { font-size: 12.5px; margin-top: 4px; }

.table-tools { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.search { position: relative; flex: 1; min-width: 220px; max-width: 340px; }
.search svg {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--dim); pointer-events: none;
}
.search input {
  width: 100%; height: 38px; padding: 0 12px 0 36px;
  border-radius: 11px; border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.035); color: var(--text); font-size: 13px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.search input::placeholder { color: var(--placeholder); }
.search input:focus { outline: none; border-color: rgba(99, 102, 241, 0.6); box-shadow: 0 0 0 3px var(--focus); }
.select {
  height: 38px; padding: 0 32px 0 12px; border-radius: 11px;
  border: 1px solid var(--stroke); background: rgba(255, 255, 255, 0.035);
  color: var(--text); font-size: 13px; appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--dim) 50%), linear-gradient(135deg, var(--dim) 50%, transparent 50%);
  background-position: calc(100% - 16px) 16px, calc(100% - 11px) 16px;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.select:focus { outline: none; border-color: rgba(99, 102, 241, 0.6); box-shadow: 0 0 0 3px var(--focus); }
.select option { background: #0b1020; color: var(--text); }
.table-count { margin-left: auto; font-size: 11.5px; color: var(--dim); font-variant-numeric: tabular-nums; }

.table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 760px; }
.data-table th {
  text-align: left; font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  color: var(--dim); padding: 11px 16px; background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tbody tr { transition: background 0.15s ease; }
.data-table tbody tr:hover { background: rgba(255, 255, 255, 0.032); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.cell-user { display: flex; align-items: center; gap: 11px; }
.cell-user .avatar { width: 34px; height: 34px; font-size: 13px; }
.cell-user b { display: block; font-size: 13px; font-weight: 600; color: var(--text); }
.cell-user span { font-size: 11.5px; color: var(--dim); }
.col-actions { text-align: right; }
.row-actions { display: flex; justify-content: flex-end; gap: 4px; }
.row-actions .act {
  border: 1px solid transparent; background: transparent; color: var(--muted);
  font-size: 12px; padding: 5px 8px; border-radius: 8px; white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.row-actions .act:hover { background: var(--hover); color: var(--text); border-color: var(--stroke); }
.row-actions .act:disabled { opacity: 0.35; cursor: not-allowed; background: transparent; color: var(--muted); border-color: transparent; }
.row-actions .act.danger:hover { color: var(--danger-text); border-color: rgba(239, 68, 68, 0.35); background: rgba(239, 68, 68, 0.08); }

.tag {
  display: inline-flex; align-items: center; gap: 5px;
  height: 22px; padding: 0 9px; border-radius: 999px;
  font-size: 11px; font-weight: 600; border: 1px solid transparent;
}
.tag.admin { color: #d8b4fe; background: rgba(168, 85, 247, 0.14); border-color: rgba(168, 85, 247, 0.3); }
.tag.reviewer { color: var(--warn-text); background: rgba(245, 158, 11, 0.12); border-color: rgba(245, 158, 11, 0.3); }
.tag.user { color: var(--accent-text); background: rgba(99, 102, 241, 0.13); border-color: rgba(99, 102, 241, 0.28); }
.tag.on { color: var(--ok-text); background: rgba(34, 197, 94, 0.11); border-color: rgba(34, 197, 94, 0.26); }
.tag.off { color: var(--dim); background: rgba(255, 255, 255, 0.04); border-color: var(--stroke); }
.tag.pending { color: var(--warn-text); background: rgba(245, 158, 11, 0.11); border-color: rgba(245, 158, 11, 0.26); }
.tag.pass { color: var(--ok-text); background: rgba(34, 197, 94, 0.11); border-color: rgba(34, 197, 94, 0.26); }
.tag.fail { color: var(--danger-text); background: rgba(239, 68, 68, 0.12); border-color: rgba(239, 68, 68, 0.3); }
.tag .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

.empty { padding: 40px 16px; text-align: center; color: var(--dim); font-size: 12.5px; }

/* ------------------------------ 我的账号 ------------------------------ */
.profile-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.info-list { display: flex; flex-direction: column; }
.info-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 2px; border-bottom: 1px solid var(--line); font-size: 13px; }
.info-row:last-child { border-bottom: 0; }
.info-row span { color: var(--muted); font-size: 12.5px; }
.info-row b { color: var(--text); font-weight: 600; text-align: right; word-break: break-all; }
.form-stack { display: flex; flex-direction: column; }
.form-stack .btn { align-self: flex-start; margin-top: 4px; }
.form-err {
  margin-bottom: 14px; padding: 10px 12px; border-radius: 11px;
  background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.32);
  color: #fca5a5; font-size: 12.5px;
}
.form-tip { font-size: 11.5px; color: var(--dim); margin-top: 3px; }

/* ------------------------------ 弹窗 ------------------------------ */
.modal-mask {
  position: fixed; inset: 0; z-index: 60;
  display: grid; place-items: center; padding: 20px;
  background: rgba(2, 4, 10, 0.68);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  animation: fadeIn 0.2s ease;
}
.modal-mask[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: 480px; max-width: 96vw; max-height: 90vh; overflow-y: auto;
  border-radius: 20px; background: linear-gradient(165deg, rgba(20, 26, 46, 0.98), rgba(8, 12, 24, 0.98));
  animation: pop 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 22px 24px 0; }
.modal-head h3 { font-size: 16px; font-weight: 700; color: var(--text-strong); }
.modal-head p { font-size: 12px; color: var(--dim); margin-top: 3px; }
.modal-body { padding: 18px 24px 4px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 24px 22px; }
.modal .field:last-child { margin-bottom: 0; }
.modal-note {
  padding: 10px 12px; border-radius: 11px; font-size: 12px; line-height: 1.6;
  background: rgba(34, 211, 238, 0.07); border: 1px solid rgba(34, 211, 238, 0.22); color: var(--muted);
  margin-bottom: 14px;
}
.modal-note b { color: var(--money-text); }
.pw-row { display: flex; gap: 8px; }
.pw-row .input-wrap { flex: 1; }
.pw-gen {
  flex: none; height: 44px; padding: 0 13px; border-radius: 12px;
  border: 1px solid var(--stroke); background: var(--panel-strong);
  color: var(--accent-text); font-size: 12.5px; font-weight: 600;
}
.pw-gen:hover { background: var(--hover-strong); }
.cred-box {
  margin-top: 12px; padding: 12px 14px; border-radius: 12px;
  background: rgba(99, 102, 241, 0.09); border: 1px dashed rgba(99, 102, 241, 0.4);
  font-size: 12.5px; color: var(--muted); line-height: 1.9;
}
.cred-box b { color: var(--text-strong); font-family: var(--mono); font-size: 13px; letter-spacing: 0.02em; }

/* ------------------------------ 审核 ------------------------------ */
.review-target {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; margin-bottom: 12px; border-radius: 12px;
  background: rgba(99, 102, 241, 0.08); border: 1px solid rgba(99, 102, 241, 0.28);
}
.review-target .avatar { width: 40px; height: 40px; font-size: 15px; }
.review-target b { display: block; font-size: 14px; font-weight: 700; color: var(--text-strong); }
.review-meta { font-size: 11.5px; color: var(--muted); margin-top: 3px; font-variant-numeric: tabular-nums; }
.textarea {
  width: 100%; min-height: 88px; padding: 11px 12px; border-radius: 12px;
  border: 1px solid var(--stroke); background: rgba(255, 255, 255, 0.04);
  color: var(--text); font: inherit; font-size: 13px; line-height: 1.55; resize: vertical;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.textarea::placeholder { color: var(--placeholder); }
.textarea:focus { outline: none; border-color: rgba(99, 102, 241, 0.65); box-shadow: 0 0 0 4px var(--focus); }

/* ------------------------------ 提示 ------------------------------ */
.toasts { position: fixed; right: 22px; bottom: 22px; z-index: 80; display: flex; flex-direction: column; gap: 10px; }
.toast {
  display: flex; align-items: center; gap: 10px;
  min-width: 220px; max-width: 360px; padding: 12px 15px;
  border-radius: 13px; border: 1px solid var(--stroke);
  background: rgba(12, 17, 32, 0.96); box-shadow: var(--shadow);
  font-size: 12.5px; color: var(--text);
  animation: toastIn 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.toast.out { animation: toastOut 0.22s ease forwards; }
.toast .bar { width: 3px; height: 20px; border-radius: 2px; background: var(--grad); flex: none; }
.toast.ok .bar { background: var(--green); }
.toast.err .bar { background: var(--red); }
@keyframes toastIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(18px); } }

/* ------------------------------ 响应式 ------------------------------ */
@media (max-width: 1100px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-grid { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
}

@media (max-width: 920px) {
  .login-card { grid-template-columns: 1fr; width: 520px; }
  .login-left { padding: 32px 30px 26px; }
  .login-right { padding: 30px; border-left: 0; border-top: 1px solid var(--stroke); }
  .brand { margin-bottom: 20px; }
  .hero-title { font-size: 25px; margin-bottom: 10px; }
  .hero-sub { margin-bottom: 0; }
  .feat { display: none; }

  .shell { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); height: 100dvh; }
  .sidebar {
    flex-direction: row; align-items: center; gap: 6px;
    padding: 8px 12px; overflow-x: auto;
    border-right: 0; border-bottom: 1px solid var(--stroke);
  }
  .side-brand { padding: 0 10px 0 0; margin-right: 6px; border-right: 1px solid var(--line); }
  .side-brand h1 { font-size: 13px; white-space: nowrap; }
  .side-brand p { display: none; }
  .logo.small { width: 32px; height: 32px; border-radius: 9px; }
  .logo.small svg { width: 18px; height: 18px; }
  .nav-label, .side-foot { display: none; }
  .nav-item { width: auto; margin-bottom: 0; padding: 8px 12px; font-size: 13px; white-space: nowrap; }
  .nav-item svg { width: 16px; height: 16px; }
  .nav-item.active::before { display: none; }
  .main { height: auto; min-height: 0; }
  .topbar { height: 64px; padding: 0 16px; }
  .topbar-title p { display: none; }
  .user-meta { display: none; }
  .user-chip { padding: 4px; border: 0; background: transparent; }
  .content { padding: 18px 16px 40px; }
  .welcome { flex-direction: column; align-items: flex-start; }
  .welcome-date { align-self: flex-start; }
  .practice-banner { flex-direction: column; align-items: flex-start; }
  .practice-actions { width: 100%; justify-content: space-between; }
  .stat-grid { gap: 12px; }
}

@media (max-width: 560px) {
  .side-brand { padding-right: 6px; margin-right: 2px; }
  .side-brand > div:last-child { display: none; }
  .auth-wrap { padding: 18px 14px; gap: 14px; }
  .login-left { padding: 26px 22px 20px; }
  .login-right { padding: 24px 22px; }
  .brand h1 { font-size: 16px; }
  .brand p { font-size: 9.5px; }
  .logo { width: 40px; height: 40px; }
  .hero-title { font-size: 21px; }
  .hero-sub { font-size: 12.5px; }
  .stat-grid { grid-template-columns: 1fr; }
  .practice-actions { flex-direction: column; align-items: stretch; }
  .practice-actions .btn { width: 100%; }
  .page-head { flex-direction: column; align-items: stretch; }
  .page-head .btn { align-self: flex-start; }
  .card { padding: 18px; }
  .welcome { padding: 20px; }
  .welcome h2 { font-size: 20px; }
  .modal-head, .modal-body, .modal-foot { padding-left: 18px; padding-right: 18px; }
  .toasts { left: 14px; right: 14px; bottom: 14px; }
  .toast { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
