:root {
  --bg: #f4f6ff;
  --panel: #ffffff;
  --line: #dde3f4;
  --line-soft: #edf0fa;
  --ink: #17254d;
  --muted: #6d7892;
  --primary: #315adf;
  --primary-dark: #1d3188;
  --primary-soft: #e9edff;
  --teal: #5c8ee8;
  --teal-soft: #e6f0ff;
  --ok: #1d9b61;
  --ok-soft: #dcf5e7;
  --warn: #d97706;
  --warn-soft: #fef3c7;
  --danger: #dc2626;
  --danger-soft: #fee2e2;
  --purple: #7c3aed;
  --purple-soft: #ede9fe;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-md: 0 6px 18px rgba(16, 24, 40, .08);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
input, select, textarea { outline: none; }
.hidden { display: none !important; }

/* ---------- 登录页 ---------- */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 18% 12%, #e2eaff 0, transparent 34%), radial-gradient(circle at 88% 88%, #ece3ff 0, transparent 36%), #f3f5ff;
  padding: 16px;
  position: relative;
  overflow: hidden;
}
.login-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(59, 99, 231, .14) 0%, transparent 44%),
    linear-gradient(240deg, rgba(128, 88, 214, .14) 0%, transparent 48%);
}
.login-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.login-scene svg {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(1380px, 100vw);
  height: min(760px, 100vh);
  transform: translate(-50%, -50%);
  overflow: visible;
}
.scene-stroke {
  fill: none;
  stroke: #111;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.scene-accent { opacity: .3; }
.scene-soft { opacity: .15; }
.scene-girl { opacity: .28; }
.scene-draw {
  stroke-dasharray: 560;
  stroke-dashoffset: 560;
  animation: sceneDraw 20s ease-in-out infinite;
}
.scene-phone { stroke-width: 3; }
.scene-waves { transform-box: fill-box; transform-origin: center; }
.scene-wave { animation: sceneWave 20s ease-in-out infinite; }
.scene-wave-one { animation-delay: 1.2s; }
.scene-wave-two { animation-delay: 1.7s; }
.scene-wave-three { animation-delay: 2.2s; }
.scene-check {
  stroke: #111;
  stroke-width: 3.5;
  stroke-dasharray: 90;
  stroke-dashoffset: 90;
  animation: sceneCheck 20s ease-in-out infinite;
}
.scene-star {
  fill: #111;
  stroke: none;
  transform-box: fill-box;
  transform-origin: center;
  animation: scenePulse 20s ease-in-out infinite;
}
.scene-success-text,
.scene-meta-text {
  fill: #111;
  stroke: none;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: 0;
}
.scene-meta-text { font-size: 18px; font-weight: 600; opacity: .72; }
.login-box {
  position: relative;
  z-index: 1;
  width: 350px;
  background: rgba(255, 255, 255, .96);
  border: 1px solid #cfe8d8;
  border-radius: 12px;
  box-shadow: 0 16px 44px rgba(35, 104, 67, .13);
  padding: 28px 26px 20px;
}
.login-wrap:not(.hidden) .login-box { animation: login-enter .5s ease 1.2s both; }
@keyframes login-enter { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
.brand-copy { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.brand small { display:block; color:#6f7b98; font-size:10px; font-weight:600; line-height:1.35; letter-spacing:.2px; white-space:nowrap; margin:0; opacity:1; }
@media (prefers-reduced-motion: reduce) { .login-wrap:not(.hidden) .login-box { animation:none; } }
.login-brand-lockup {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  padding: 0 0 18px;
}
.login-source-brand { position: absolute; top: 18px; left: 22px; display:flex; align-items:center; gap:6px; padding:5px 8px 5px 6px; color:#66718e; font-size:11px; font-weight:700; background:rgba(248,250,255,.9); border:1px solid rgba(210,220,244,.85); border-radius:999px; box-shadow:0 4px 12px rgba(30,52,115,.06); }
.login-mark {
  display: block;
  width: 25px;
  height: 25px;
  object-fit: contain;
  border-radius: 12px;
  mix-blend-mode: multiply;
  flex: none;
}
.login-brand-copy {
  min-width: 0;
  text-align: center;
  padding-top: 46px;
}
.login-wordmark {
  display: block;
  width: min(252px, 100%);
  height: auto;
  max-height: 62px;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: multiply;
  margin: 0 auto;
}
.login-system-name {
  display: inline-block;
  font-size: 46px;
  font-weight: 850;
  margin: 0;
  letter-spacing: -1.2px;
  background: linear-gradient(112deg, #1a2e82 10%, #3d67e5 53%, #8058d5 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 8px 18px rgba(49, 90, 223, .1);
}
.login-system-name em { position: relative; font-style: normal; color: #7558d2; -webkit-text-fill-color: #7558d2; }
.login-system-name em::after { content: "✦"; position: absolute; top: -.62em; right: -.66em; color: #e2a33c; font-size: .2em; text-shadow: none; }
.login-tagline { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 7px 13px; color: #65718f; font-size: 13px; line-height: 1.4; letter-spacing: .15px; background: #f5f7ff; border: 1px solid #e3e8f8; border-radius: 999px; box-shadow: 0 5px 12px rgba(49, 90, 223, .05); }
.login-tagline span { color: #7a59cf; font-size: 10px; }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), var(--teal));
  color: #fff;
  flex: none;
}
.login-sub {
  text-align: center;
  color: #7b8498;
  margin: 14px 0 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .45px;
}
.login-box input {
  width: 100%;
  margin-bottom: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.login-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45, 154, 104, .15);
}
.msg { min-height: 20px; margin-top: 10px; color: var(--danger); font-size: 13px; text-align: center; }
.login-support {
  color: #7b9485;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}
.login-support-name { font-weight: 700; color: var(--primary-dark); }
.login-qr {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin: 8px auto 4px;
  border-radius: 5px;
}
.login-support-hint { color: #93a99b; }

@keyframes sceneDraw {
  0%, 8% { stroke-dashoffset: 560; opacity: 0; }
  20%, 80% { stroke-dashoffset: 0; opacity: 1; }
  94%, 100% { stroke-dashoffset: -560; opacity: 0; }
}
@keyframes sceneWave {
  0%, 12%, 100% { opacity: .08; transform: translateX(0); }
  30%, 65% { opacity: .7; transform: translateX(8px); }
}
@keyframes sceneCheck {
  0%, 45% { stroke-dashoffset: 90; opacity: .2; }
  58%, 82% { stroke-dashoffset: 0; opacity: 1; }
  94%, 100% { stroke-dashoffset: -90; opacity: .2; }
}
@keyframes scenePulse {
  0%, 48%, 100% { opacity: .15; transform: scale(.8); }
  60%, 82% { opacity: .85; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .scene-draw,
  .scene-wave,
  .scene-check,
  .scene-star {
    animation: none;
    stroke-dashoffset: 0;
    opacity: 1;
    transform: none;
  }
  .scene-girl { opacity: .24; }
  .scene-conversation, .scene-enrollment-card { opacity: .22; }
}

/* ---------- 布局 ---------- */
.app { display: flex; height: 100vh; }
.sidebar {
  width: 232px;
  min-width: 232px;
  background: linear-gradient(180deg, #f9faff 0%, #eef1fb 100%);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 18px 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 800;
  padding: 2px 8px 16px;
  color: #1d3188;
}
.brand-logo {
  width: 38px;
  height: 44px;
  object-fit: contain;
  border-radius: 9px;
  mix-blend-mode: multiply;
  flex: none;
}
.nav { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 4px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: 0;
  background: rgba(255,255,255,.72);
  color: #4b5563;
  padding: 10px 11px;
  border-radius: 14px;
  font-size: 13.5px;
  box-shadow: 0 2px 8px rgba(39,58,120,.05); transition: transform .16s, background .16s, color .16s, box-shadow .16s;
}
.nav-item:hover { background: #fff; color: var(--ink); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(39,58,120,.12); }
.nav-item.active {
  background: linear-gradient(135deg, #3b63e7, #8058d6); color: #fff;
  font-weight: 700;
}
.nav-ico { display: inline-flex; width: 19px; height: 19px; flex: none; }
.nav-ico svg { width: 100%; height: 100%; }
.side-user {
  border-top: 1px solid var(--line-soft);
  padding: 12px 10px 2px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 58px;
    background: linear-gradient(90deg, rgba(255, 255, 255, .96), rgba(242, 246, 255, .94));
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(6px);
}
.page-title { font-size: 17px; font-weight: 800; }
.top-right { display: flex; align-items: center; gap: 12px; }
.top-user {
  color: var(--muted);
  background: var(--primary-soft);
  color: var(--primary-dark);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12.5px;
}
.page { flex: 1; overflow-y: auto; padding: 20px 22px; background: radial-gradient(circle at 80% 0, rgba(104, 134, 238, .07), transparent 28%); }

/* ---------- 面板 ---------- */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(32, 46, 99, .07);
  margin-bottom: 16px;
}
.panel-head {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-soft);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.panel-body { padding: 14px 16px; }

/* ---------- StarMap 交互组件 ---------- */
.btn { border-radius: 11px; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(45, 76, 170, .14); }
.btn-primary { background: linear-gradient(135deg, #315adf, #7656d2); border-color: transparent; }
.filter-bar { padding: 10px; border: 1px solid #e3e7f3; background: #fafbff; border-radius: 14px; }
.filter-bar input, .filter-bar select, input, select, textarea { border-radius: 10px; border-color: #dce2f1; background: #fff; }
input:focus, select:focus, textarea:focus { border-color: #5979e5; box-shadow: 0 0 0 3px rgba(89,121,229,.14); }
.table-wrap { border: 1px solid #e8ebf4; border-radius: 14px; overflow: hidden; }
.table thead th { background: #f5f7fe; color: #53607b; }
.table tbody tr:hover { background: #f8f9ff; }
.modal { border-radius: 20px; box-shadow: 0 24px 70px rgba(24,35,82,.22); }
.topbar { background: rgba(255,255,255,.82); backdrop-filter: blur(18px); }

/* ---------- 统计卡 ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 15px;
  box-shadow: 0 8px 24px rgba(32, 46, 99, .07);
  transition: transform .12s, box-shadow .12s;
}
.stat:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.stat.clickable, .bar-row.clickable { cursor: pointer; }
.stat.clickable:hover { border-color: #bac8f3; box-shadow: 0 10px 26px rgba(49, 90, 223, .14); }
.bar-row.clickable:hover { background: #f5f7ff; border-radius: 9px; }
.stat-head { display: flex; align-items: center; gap: 8px; }
.stat-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.stat-icon svg { width: 17px; height: 17px; }
.stat-icon.blue { background: var(--primary-soft); color: var(--primary); }
.stat-icon.green { background: var(--ok-soft); color: var(--ok); }
.stat-icon.amber { background: var(--warn-soft); color: var(--warn); }
.stat-icon.red { background: var(--danger-soft); color: var(--danger); }
.stat-icon.purple { background: var(--purple-soft); color: var(--purple); }
.stat-label { color: var(--muted); font-size: 12.5px; }
.stat-value {
  font-size: 25px;
  font-weight: 800;
  margin-top: 7px;
  font-variant-numeric: tabular-nums;
}
.stat-value.green { color: var(--ok); }
.stat-value.blue { color: var(--primary); }
.stat-value.amber { color: var(--warn); }
.stat-value.red { color: var(--danger); }
.stat-value.purple { color: var(--purple); }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; min-width: 760px; }
.table th, .table td {
  text-align: left;
  padding: 10px 11px;
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
  font-size: 13px;
}
.table th {
  background: #f8f9fc;
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  position: sticky;
  top: 0;
}
.table tbody tr { transition: background .1s; }
.table tbody tr:hover { background: #f2fbf5; }
.table .clickable { cursor: pointer; }
.table .muted { color: var(--muted); }
.table .cell-main { font-weight: 600; }
.table .cell-main.clickable:hover { color: var(--primary); }
.lead-no {
  color: var(--primary-dark);
  font-weight: 800;
  letter-spacing: .02em;
}
.entry-time {
  color: #16734a;
  font-size: 11px;
  font-weight: 600;
}

/* ---------- 徽章 ---------- */
.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.4;
  background: #f3f4f6;
  color: #374151;
}
.badge.primary { background: var(--primary-soft); color: var(--primary-dark); }
.badge.ok { background: var(--ok-soft); color: #15803d; }
.badge.warn { background: var(--warn-soft); color: #b45309; }
.badge.danger { background: var(--danger-soft); color: #b91c1c; }
.badge.purple { background: var(--purple-soft); color: #6d28d9; }
.badge.gray { background: #f1f2f4; color: #4b5563; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 7px 13px;
  border-radius: 7px;
  font-size: 13px;
  white-space: nowrap;
  transition: background .12s, border-color .12s, box-shadow .12s, color .12s;
}
.btn:hover { border-color: #c7cbd6; background: #fafbfc; }
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 1px 2px rgba(45, 154, 104, .25);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn-ok:hover { background: #15803d; border-color: #15803d; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; border-color: #b91c1c; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--ink); background: var(--line-soft); }
.btn-sm { padding: 5px 10px; font-size: 12px; border-radius: 6px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- 筛选与表单 ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}
.filter-bar input, .filter-bar select, .filter-bar .btn { height: 34px; }
.filter-bar input, .filter-bar select {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 6px 10px;
  background: #fff;
  transition: border-color .12s, box-shadow .12s;
}
.filter-bar input:focus, .filter-bar select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45, 154, 104, .12);
}
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: 12px; color: var(--muted); font-weight: 600; }
.req { color: var(--danger); margin-right: 2px; }
.field input, .field select, .field textarea {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 10px;
  background: #fff;
  min-width: 0;
  transition: border-color .12s, box-shadow .12s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45, 154, 104, .12);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 13px;
}
.form-grid .full { grid-column: 1 / -1; }

/* ---------- 标签页 ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.tab {
  border: 0;
  background: transparent;
  padding: 9px 15px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-size: 13.5px;
  transition: color .12s;
}
.tab:hover { color: var(--ink); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 700; }

/* ---------- 弹窗 ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .46);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 44px 16px;
  z-index: 50;
  overflow-y: auto;
  animation: fadeIn .12s ease-out;
}
.modal {
  background: #fff;
  border-radius: 10px;
  width: 100%;
  max-width: 760px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, .22);
  animation: popIn .14s ease-out;
}
.modal.small { max-width: 440px; }
.modal-head {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
  font-size: 15px;
}
.modal-close {
  border: 0;
  background: transparent;
  font-size: 20px;
  color: var(--muted);
  line-height: 1;
  padding: 4px;
}
.modal-close:hover { color: var(--ink); }
.modal-body { padding: 17px 18px; max-height: 70vh; overflow-y: auto; }
.modal-foot {
  padding: 13px 18px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: translateY(6px) scale(.99); } to { opacity: 1; transform: none; } }

/* ---------- 详情 ---------- */
.lead-meta-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  padding: 11px 13px;
  margin-bottom: 14px;
  border: 1px solid #b9e5c9;
  border-left: 4px solid var(--primary);
  border-radius: 7px;
  background: linear-gradient(90deg, #effbf3, #f9fffb);
}
.lead-meta-banner > div { display: flex; align-items: baseline; gap: 8px; }
.lead-meta-banner .meta-label { color: var(--muted); font-size: 12px; font-weight: 600; }
.lead-meta-banner strong { color: var(--primary-dark); font-size: 14px; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 11px 18px; }
.detail-item .k { color: var(--muted); font-size: 12px; }
.detail-item .v { font-weight: 600; margin-top: 2px; }
.timeline { border-left: 2px solid #e3e6ef; margin-left: 6px; padding-left: 16px; }
.timeline-item { position: relative; padding-bottom: 15px; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -21px;
  top: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.timeline-item .t { font-weight: 600; }
.timeline-item .m { color: var(--muted); font-size: 12px; }
.timeline-item .n { margin-top: 4px; white-space: pre-wrap; color: #374151; }

/* ---------- 报表条 ---------- */
.bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.bar-label { width: 130px; min-width: 130px; text-align: right; color: var(--muted); }
.bar-track { flex: 1; background: #eef0f5; height: 18px; border-radius: 5px; overflow: hidden; }
.bar-fill {
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, #83d3a8, var(--primary));
}
.bar-value { width: 56px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- Toast ---------- */
#toast-root { position: fixed; top: 16px; right: 16px; z-index: 100; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: #111827;
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, .25);
  font-size: 13px;
  max-width: 380px;
  animation: popIn .15s ease-out;
}
.toast.error { background: var(--danger); }
.toast.ok { background: var(--ok); }

.empty { text-align: center; color: var(--muted); padding: 32px 0; }
.pager { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 11px 4px; color: var(--muted); font-size: 12px; }
.inline-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.campus-check-list { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.check-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 5px 10px;
  background: #fafbfc;
  font-size: 13px;
}
.check-item input { accent-color: var(--primary); }

/* ---------- 滚动条 ---------- */
.page::-webkit-scrollbar, .modal-body::-webkit-scrollbar, .nav::-webkit-scrollbar { width: 8px; height: 8px; }
.page::-webkit-scrollbar-thumb, .modal-body::-webkit-scrollbar-thumb, .nav::-webkit-scrollbar-thumb { background: #bdc9ef; border-radius: 8px; }

@media (max-width: 900px) {
  .app { flex-direction: column; }
  .sidebar {
    width: 100%;
    min-width: 0;
    flex-direction: row;
    align-items: center;
    padding: 8px 10px;
    gap: 8px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(247,248,255,.94);
  }
  .brand { padding: 0; font-size: 0; }
  .brand .brand-logo { width: 34px; height: 38px; }
  .nav { flex-direction: row; overflow-x: auto; gap: 7px; padding: 4px 2px; }
  .nav-item { width: auto; white-space: nowrap; padding: 8px 11px; border-radius: 12px; }
  .nav-ico { display: inline-flex; width: 16px; height: 16px; }
  .side-user { display: none; }
  .main { min-height: 0; }
  .topbar { height: 52px; padding: 0 12px; }
  .page { padding: 12px; }
  .bar-label { width: 92px; min-width: 92px; }
  .login-scene { display: none; }
  .login-box { width: 100%; max-width: 350px; padding: 24px 20px 18px; }
  .login-mark { width: 70px; height: 70px; }
  .login-source-brand .login-mark { width: 25px; height: 25px; }
  .login-wordmark { width: min(246px, 100%); }
  .login-qr { width: 68px; height: 68px; }
  .login-system-name { font-size: 16px; }
}
