/* ============================================================
   学习通签到工作台 · 暗色主题
   设计基调：深蓝黑背景 + 玻璃拟态卡片 + 紫罗兰渐变强调
   ============================================================ */

@import url('https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css');

:root {
  --bg-0: #0d1117;
  --bg-1: #161b29;
  --bg-2: #1e2536;
  --bg-3: #252d42;
  --line: rgba(148, 163, 216, 0.14);
  --line-strong: rgba(148, 163, 216, 0.28);

  --primary: #7c5cff;
  --primary-deep: #6d28d9;
  --primary-soft: #a78bfa;

  --text-0: #f3f5fa;
  --text-1: #9aa4bf;
  --text-2: #5c667f;

  --ok: #22c55e;
  --err: #ef4444;
  --warn: #f59e0b;
  --info: #38bdf8;

  --radius: 14px;
  --radius-sm: 10px;
  --gap: 16px;

  --shadow-card: 0 8px 28px rgba(3, 6, 15, 0.45);
  --shadow-pop: 0 18px 50px rgba(3, 6, 15, 0.6);
  --glow: 0 0 0 1px rgba(124, 92, 255, 0.35), 0 8px 30px rgba(124, 92, 255, 0.18);

  --font: 'PingFang SC', 'Noto Sans', 'Microsoft YaHei', -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-0);
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(124, 92, 255, 0.14), transparent 60%),
    radial-gradient(900px 480px at -10% 110%, rgba(56, 189, 248, 0.1), transparent 60%),
    var(--bg-0);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; }

::selection { background: rgba(124, 92, 255, 0.4); }

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 6px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #33405c; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

/* ============================================================
   布局：侧边栏 + 主区
   ============================================================ */

.shell { display: flex; min-height: 100vh; }

.sidebar {
  width: 232px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 22px 14px 16px;
  background: linear-gradient(180deg, rgba(22, 27, 41, 0.92), rgba(13, 17, 23, 0.95));
  border-right: 1px solid var(--line);
  backdrop-filter: blur(14px);
  z-index: 50;
}

.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 18px; border-bottom: 1px solid var(--line); }
.brand-logo {
  width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 17px; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  box-shadow: 0 6px 18px rgba(124, 92, 255, 0.4);
}
.brand-name { font-size: 15px; font-weight: 600; letter-spacing: 0.5px; }

.nav { display: flex; flex-direction: column; gap: 4px; padding: 14px 0; flex: 1; overflow-y: auto; }

.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  color: var(--text-1); font-size: 14px;
  transition: all 0.18s ease;
  border: 1px solid transparent;
  position: relative;
}
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; opacity: 0.85; }
.nav-item:hover { color: var(--text-0); background: rgba(124, 92, 255, 0.1); }
.nav-item.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(124, 92, 255, 0.24), rgba(124, 92, 255, 0.06));
  border-color: rgba(124, 92, 255, 0.35);
}
.nav-item.active::before {
  content: ''; position: absolute; left: -14px; top: 20%; bottom: 20%;
  width: 3px; border-radius: 3px;
  background: linear-gradient(180deg, var(--primary-soft), var(--primary));
}

.sidebar-foot { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.side-user { padding: 0 6px; }
.side-user-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user-sub { font-size: 12px; color: var(--text-1); margin-top: 2px; }

.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 14px;
  padding: 13px 26px;
  background: rgba(13, 17, 23, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-title { font-size: 16px; font-weight: 600; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; min-width: 0; }

.topbar-cx { font-size: 13px; color: var(--text-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw; }
.topbar-cx b { color: var(--text-0); font-weight: 600; }

.quota-badge {
  font-size: 12px; font-weight: 600; color: #fff;
  padding: 4px 11px; border-radius: 999px; white-space: nowrap;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  box-shadow: 0 4px 14px rgba(124, 92, 255, 0.35);
}

.nav-toggle { display: none; background: none; border: none; color: var(--text-0); font-size: 20px; cursor: pointer; padding: 4px 8px; }

.topbar-user { position: relative; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; color: #fff; user-select: none;
  background: linear-gradient(135deg, #3b4a6b, #2a3550);
  border: 1px solid var(--line-strong);
  transition: transform 0.15s ease;
}
.avatar:hover { transform: scale(1.06); }

.topbar-user-menu {
  position: absolute; right: 0; top: calc(100% + 10px); width: 210px;
  background: var(--bg-1); border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: var(--shadow-pop); padding: 6px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all 0.18s ease;
}
.topbar-user-menu.show { opacity: 1; visibility: visible; transform: translateY(0); }
.um-head { padding: 10px 10px 8px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.um-name { font-weight: 600; font-size: 14px; }
.um-sub { font-size: 12px; color: var(--text-1); margin-top: 2px; }
.um-item {
  display: block; width: 100%; text-align: left;
  padding: 9px 10px; border: none; border-radius: 8px; cursor: pointer;
  background: none; color: var(--text-0); font-size: 13px; font-family: var(--font);
  transition: background 0.15s ease;
}
.um-item:hover { background: rgba(124, 92, 255, 0.14); }
.um-danger:hover { background: rgba(239, 68, 68, 0.14); color: #fca5a5; }

.content { padding: 26px; max-width: 1180px; width: 100%; margin: 0 auto; flex: 1; }

.page-head { margin-bottom: 20px; }
.page-head h1 { font-size: 20px; font-weight: 600; margin: 0 0 6px; }
.page-head p { margin: 0; color: var(--text-1); font-size: 13px; }

/* ============================================================
   组件
   ============================================================ */

.card {
  background: linear-gradient(160deg, rgba(30, 37, 54, 0.88), rgba(22, 27, 41, 0.9));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: var(--gap);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(8px);
  animation: fadeUp 0.35s ease both;
}
.card-title {
  display: flex; align-items: center; gap: 9px;
  font-size: 15px; font-weight: 600; margin-bottom: 16px;
}
.card-title .dot { width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(135deg, var(--primary-soft), var(--primary)); box-shadow: 0 0 8px rgba(124, 92, 255, 0.8); }
.card-title .spacer { flex: 1; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; border: none; border-radius: 10px;
  font-size: 14px; font-weight: 500; font-family: var(--font);
  cursor: pointer; transition: all 0.18s ease; white-space: nowrap;
  border: 1px solid transparent;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn-primary { color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-deep)); box-shadow: 0 6px 18px rgba(124, 92, 255, 0.32); }
.btn-primary:hover:not(:disabled) { box-shadow: 0 8px 24px rgba(124, 92, 255, 0.45); transform: translateY(-1px); }

.btn-ghost { color: var(--text-0); background: rgba(148, 163, 216, 0.09); border-color: var(--line); }
.btn-ghost:hover:not(:disabled) { background: rgba(148, 163, 216, 0.16); border-color: var(--line-strong); }

.btn-danger { color: #fff; background: linear-gradient(135deg, #f87171, #dc2626); box-shadow: 0 6px 18px rgba(239, 68, 68, 0.3); }
.btn-danger:hover:not(:disabled) { box-shadow: 0 8px 24px rgba(239, 68, 68, 0.42); transform: translateY(-1px); }

.btn-success { color: #fff; background: linear-gradient(135deg, #4ade80, #16a34a); box-shadow: 0 6px 18px rgba(34, 197, 94, 0.28); }

.btn-sm { padding: 6px 12px; font-size: 12.5px; border-radius: 8px; }
.btn-block { display: flex; width: 100%; }
.btn-link { background: none; border: none; color: var(--primary-soft); cursor: pointer; font-size: 13px; padding: 2px 4px; font-family: var(--font); }
.btn-link:hover { text-decoration: underline; }
.btn-link.danger { color: #f87171; }

/* ---------- 表单 ---------- */
.form-group { margin-bottom: 15px; }
.form-label { display: block; font-size: 13px; color: var(--text-1); margin-bottom: 7px; }
.input, .select, .textarea {
  width: 100%; padding: 10px 13px;
  background: rgba(13, 17, 23, 0.65);
  border: 1px solid var(--line-strong); border-radius: 10px;
  color: var(--text-0); font-size: 14px; font-family: var(--font);
  transition: all 0.18s ease;
}
.input::placeholder, .textarea::placeholder { color: var(--text-2); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.18);
  background: rgba(13, 17, 23, 0.85);
}
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239aa4bf' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.select option { background: var(--bg-1); color: var(--text-0); }
.textarea { resize: vertical; min-height: 88px; word-break: break-all; }
.input:disabled, .select:disabled { opacity: 0.6; cursor: not-allowed; }
.input-row { display: flex; gap: 10px; }
.input-row .input { flex: 1; }

.form-error {
  display: none; margin-bottom: 14px; padding: 10px 13px; border-radius: 10px;
  background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5; font-size: 13px;
}
.form-error.show { display: block; animation: shake 0.3s ease; }

/* ---------- 页签 ---------- */
.tabs {
  display: inline-flex; gap: 4px; padding: 4px;
  background: rgba(13, 17, 23, 0.6); border: 1px solid var(--line);
  border-radius: 12px; margin-bottom: var(--gap);
}
.tab {
  padding: 8px 18px; border-radius: 9px; cursor: pointer;
  font-size: 13.5px; color: var(--text-1); transition: all 0.18s ease; user-select: none;
  border: none; background: none; font-family: var(--font);
}
.tab:hover { color: var(--text-0); }
.tab.active { color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-deep)); box-shadow: 0 4px 14px rgba(124, 92, 255, 0.35); }
.tabs-block { display: flex; }
.tabs-block .tab { flex: 1; text-align: center; }

/* ---------- 徽标 ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; line-height: 1;
  padding: 5px 10px; border-radius: 999px;
  color: var(--badge-color, var(--text-1));
  background: color-mix(in srgb, var(--badge-color, #9aa4bf) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--badge-color, #9aa4bf) 38%, transparent);
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--badge-color, currentColor); box-shadow: 0 0 6px var(--badge-color, transparent); }
.badge-plain::before { display: none; }

.tag {
  display: inline-block; font-size: 11px; padding: 3px 8px; border-radius: 6px;
  background: rgba(124, 92, 255, 0.14); color: var(--primary-soft);
  border: 1px solid rgba(124, 92, 255, 0.3);
}
.tag-muted { background: rgba(148, 163, 216, 0.1); color: var(--text-1); border-color: var(--line); }

/* ---------- 开关 ---------- */
.switch-row { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text-1); user-select: none; }
.switch {
  position: relative; width: 42px; height: 23px; border-radius: 12px;
  background: var(--bg-3); border: 1px solid var(--line-strong); cursor: pointer;
  transition: all 0.2s ease; flex-shrink: 0;
}
.switch::after {
  content: ''; position: absolute; top: 2px; left: 2px; width: 17px; height: 17px;
  border-radius: 50%; background: var(--text-1); transition: all 0.2s ease;
}
.switch.on { background: linear-gradient(135deg, var(--primary), var(--primary-deep)); border-color: transparent; box-shadow: 0 0 12px rgba(124, 92, 255, 0.4); }
.switch.on::after { transform: translateX(19px); background: #fff; }

/* ---------- 统计卡 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-bottom: var(--gap); }
.stat-card {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, rgba(30, 37, 54, 0.9), rgba(22, 27, 41, 0.92));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow-card);
  animation: fadeUp 0.35s ease both;
}
.stat-card::after {
  content: ''; position: absolute; right: -28px; top: -28px; width: 96px; height: 96px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.22), transparent 70%);
}
.stat-label { font-size: 12.5px; color: var(--text-1); margin-bottom: 8px; }
.stat-value { font-size: 24px; font-weight: 700; letter-spacing: 0.3px; }
.stat-value small { font-size: 13px; font-weight: 500; color: var(--text-1); margin-left: 4px; }
.stat-sub { font-size: 12px; color: var(--text-2); margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 列表项（课程/活动/账号） ---------- */
.list { display: flex; flex-direction: column; gap: 10px; }
.list-item {
  display: flex; align-items: center; gap: 13px;
  background: rgba(22, 27, 41, 0.72);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; cursor: pointer;
  transition: all 0.18s ease;
  animation: fadeUp 0.3s ease both;
}
.list-item:hover { border-color: rgba(124, 92, 255, 0.5); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(3, 6, 15, 0.5); }
.list-item.ended { opacity: 0.62; }
.list-item.static { cursor: default; }
.list-item.static:hover { transform: none; border-color: var(--line); box-shadow: none; }

.li-img {
  width: 48px; height: 48px; border-radius: 11px; flex-shrink: 0;
  object-fit: cover; background: var(--bg-3);
}
.li-img.round { border-radius: 50%; }
.li-body { flex: 1; min-width: 0; }
.li-title { font-size: 14.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.li-title .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.li-sub { font-size: 12.5px; color: var(--text-1); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li-meta { font-size: 12px; color: var(--text-2); margin-top: 3px; }
.li-actions { display: flex; gap: 7px; flex-shrink: 0; }
.li-arrow { color: var(--text-2); font-size: 19px; flex-shrink: 0; }

/* ---------- 搜索框 ---------- */
.search-row { display: flex; gap: 10px; margin-bottom: var(--gap); }
.search-row .input { flex: 1; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(22, 27, 41, 0.6); }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 720px; }
.table th {
  text-align: left; padding: 12px 14px; white-space: nowrap;
  color: var(--text-1); font-weight: 500; font-size: 12.5px;
  border-bottom: 1px solid var(--line); background: rgba(13, 17, 23, 0.5);
}
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.table tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background 0.15s ease; }
.table tbody tr:hover { background: rgba(124, 92, 255, 0.06); }
.table .ops { display: flex; gap: 6px; flex-wrap: wrap; }
.cell-main { font-weight: 600; }
.cell-sub { font-size: 12px; color: var(--text-2); margin-top: 2px; }

/* ---------- 信息行 ---------- */
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 18px; }
.info-item { display: flex; align-items: flex-start; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.info-item .k { color: var(--text-1); width: 88px; flex-shrink: 0; }
.info-item .v { flex: 1; min-width: 0; word-break: break-all; }
.info-item.full { grid-column: 1 / -1; }

/* ---------- 空态 ---------- */
.empty { text-align: center; color: var(--text-2); padding: 44px 20px; font-size: 13.5px; }
.empty .icon { font-size: 34px; margin-bottom: 10px; opacity: 0.5; }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 18px;
  background: rgba(5, 8, 15, 0.7); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity 0.2s ease;
}
.modal-mask.show { opacity: 1; }
.modal-box {
  width: 100%; max-width: 440px; max-height: 88vh; display: flex; flex-direction: column;
  background: linear-gradient(165deg, #1c2334, #141a28);
  border: 1px solid var(--line-strong); border-radius: 16px;
  box-shadow: var(--shadow-pop);
  transform: translateY(14px) scale(0.98); transition: transform 0.22s ease;
  overflow: hidden;
}
.modal-mask.show .modal-box { transform: translateY(0) scale(1); }
.modal-box.wide { max-width: 560px; }
.modal-title {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; font-size: 15.5px; font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.modal-close { background: none; border: none; color: var(--text-1); font-size: 21px; cursor: pointer; line-height: 1; padding: 2px 6px; border-radius: 6px; }
.modal-close:hover { color: var(--text-0); background: rgba(148, 163, 216, 0.12); }
.modal-body { padding: 20px; overflow-y: auto; }
.modal-text { margin: 0 0 10px; font-size: 14px; line-height: 1.7; color: var(--text-0); }
.modal-actions { display: flex; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); }
.modal-actions .btn { flex: 1; }

/* ---------- Toast ---------- */
.toast-box { position: fixed; top: 22px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  padding: 10px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 500;
  background: #1c2334; border: 1px solid var(--line-strong); color: var(--text-0);
  box-shadow: var(--shadow-pop); animation: toastIn 0.25s ease; max-width: 82vw;
}
.toast-success { border-color: rgba(34, 197, 94, 0.5); color: #bbf7d0; }
.toast-error { border-color: rgba(239, 68, 68, 0.5); color: #fecaca; }
.toast-warning { border-color: rgba(245, 158, 11, 0.5); color: #fde68a; }
.toast-out { opacity: 0; transform: translateY(-8px); transition: all 0.3s ease; }

/* ---------- 加载遮罩 ---------- */
.loading-mask {
  position: fixed; inset: 0; z-index: 250;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: rgba(5, 8, 15, 0.55); backdrop-filter: blur(3px);
}
.spinner {
  width: 38px; height: 38px; border-radius: 50%;
  border: 3px solid rgba(124, 92, 255, 0.2); border-top-color: var(--primary);
  animation: spin 0.8s linear infinite;
}
.loading-text { font-size: 13.5px; color: var(--text-1); }

/* ---------- 分页 ---------- */
.pager { display: flex; align-items: center; gap: 12px; justify-content: flex-end; margin-top: 14px; font-size: 13px; color: var(--text-1); }

/* ============================================================
   登录页
   ============================================================ */

.auth-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; position: relative; overflow: hidden; }
.auth-orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; animation: float 9s ease-in-out infinite; }
.auth-orb.o1 { width: 420px; height: 420px; background: radial-gradient(circle, #7c5cff, transparent 65%); top: -120px; left: -100px; }
.auth-orb.o2 { width: 380px; height: 380px; background: radial-gradient(circle, #38bdf8, transparent 65%); bottom: -120px; right: -80px; animation-delay: -4.5s; }
.auth-orb.o3 { width: 260px; height: 260px; background: radial-gradient(circle, #6d28d9, transparent 65%); top: 40%; left: 60%; animation-delay: -2s; }

.auth-card {
  position: relative; z-index: 1; width: 100%; max-width: 408px;
  background: linear-gradient(165deg, rgba(30, 37, 54, 0.9), rgba(19, 24, 38, 0.94));
  border: 1px solid var(--line-strong); border-radius: 20px;
  padding: 36px 32px 30px; box-shadow: var(--shadow-pop);
  backdrop-filter: blur(16px);
  animation: fadeUp 0.5s ease both;
}
.auth-brand { display: flex; flex-direction: column; align-items: center; gap: 13px; margin-bottom: 28px; }
.auth-brand .brand-logo { width: 54px; height: 54px; border-radius: 16px; font-size: 24px; }
.auth-title { font-size: 20px; font-weight: 600; }
.auth-sub { font-size: 13px; color: var(--text-1); margin-top: -6px; }
.auth-foot { text-align: center; font-size: 12px; color: var(--text-2); margin-top: 20px; line-height: 1.7; }

/* ============================================================
   动画
   ============================================================ */

@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(24px, -28px) scale(1.06); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

/* ============================================================
   响应式
   ============================================================ */

@media (max-width: 900px) {
  .sidebar {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; height: auto; width: 100%;
    flex-direction: row; align-items: center; padding: 6px;
    border-right: none; border-top: 1px solid var(--line-strong);
  }
  .brand, .sidebar-foot { display: none; }
  .nav { flex-direction: row; justify-content: space-around; gap: 2px; padding: 0; width: 100%; }
  .nav-item { flex-direction: column; gap: 3px; padding: 7px 6px; font-size: 11px; border-radius: 10px; }
  .nav-item.active::before { display: none; }
  .nav-item svg { width: 19px; height: 19px; }
  .content { padding: 18px 14px 96px; }
  .topbar { padding: 11px 14px; }
  .nav-toggle { display: block; }
  .stat-grid { grid-template-columns: 1fr; gap: 12px; }
  .stat-grid .stat-card:nth-child(n+2) { display: none; }
  .info-grid { grid-template-columns: 1fr; }
  .topbar-cx { display: none; }
  .table { min-width: 640px; }
  .search-row { flex-wrap: wrap; }
  .li-img { width: 42px; height: 42px; }
  .modal-actions { flex-direction: column-reverse; }
}

@media (min-width: 901px) {
  .nav-toggle { display: none; }
}
