:root {
  --brand: #2b5cff;
  --brand-dark: #1e44c9;
  --sidebar-bg: #101a33;
  --sidebar-active: #2b5cff;
}

* { box-sizing: border-box; }
html, body, #app { height: 100%; margin: 0; }
body {
  font-family: -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #2c3344;
  background: #f2f4f8;
}

/* ---------- 登录 ---------- */
.login-wrap {
  height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1e3a8a 0%, #2b5cff 55%, #4f8bff 100%);
}
.login-card {
  width: 380px; padding: 40px 36px 32px;
  background: #fff; border-radius: 14px;
  box-shadow: 0 18px 60px rgba(0,0,0,.25);
}
.login-logo { text-align: center; margin-bottom: 6px; font-size: 22px; font-weight: 700; color: #1e3a8a; }
.login-sub { text-align: center; color: #8a93a6; font-size: 13px; margin-bottom: 26px; }
.login-tip { margin-top: 14px; font-size: 12px; color: #98a0b3; line-height: 1.7; }

/* ---------- 布局 ---------- */
.layout { height: 100%; display: flex; }
.sidebar {
  width: 220px; background: var(--sidebar-bg); color: #aeb8d0;
  display: flex; flex-direction: column; flex-shrink: 0;
  overflow-y: auto;
}
.sidebar .brand {
  padding: 18px 20px; font-size: 17px; font-weight: 700; color: #fff;
  display: flex; align-items: center; gap: 8px;
}
.menu-group .group-title {
  padding: 14px 20px 6px; font-size: 12px; color: #6b7693; letter-spacing: 1px;
}
.menu-item {
  padding: 10px 20px; font-size: 14px; cursor: pointer;
  display: flex; align-items: center; gap: 9px;
  border-left: 3px solid transparent;
  user-select: none;
}
.menu-item:hover { color: #fff; background: rgba(255,255,255,.05); }
.menu-item.active { color: #fff; background: rgba(43,92,255,.22); border-left-color: var(--sidebar-active); }
.menu-badge { margin-left: auto; }

.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  height: 56px; background: #fff; box-shadow: 0 1px 4px rgba(16,26,51,.08);
  display: flex; align-items: center; padding: 0 22px;
}
.topbar .crumb { font-size: 15px; font-weight: 600; }
.topbar .right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.content { flex: 1; padding: 16px; overflow: auto; }

/* ---------- 通用 ---------- */
.panel { background: #fff; border-radius: 10px; padding: 16px; }
.search-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.search-bar .btns { margin-left: auto; display: flex; gap: 8px; }
.table-ops { display: flex; gap: 8px; flex-wrap: wrap; }
.pager-bar { margin-top: 14px; display: flex; justify-content: flex-end; }
.page-title { font-size: 16px; font-weight: 600; margin: 0 0 14px; }

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin-bottom: 16px; }
.kpi-card { background: #fff; border-radius: 10px; padding: 16px 18px; }
.kpi-card .num { font-size: 26px; font-weight: 700; margin: 6px 0 2px; }
.kpi-card .label { color: #8a93a6; font-size: 13px; }
.kpi-card .sub { font-size: 12px; color: #a2aabd; }
.kpi-card.accent { background: linear-gradient(135deg,#2b5cff,#4f8bff); color: #fff; }
.kpi-card.accent .label, .kpi-card.accent .sub { color: rgba(255,255,255,.85); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 1100px) { .two-col { grid-template-columns: 1fr; } }

.el-dialog .full-row .el-form-item { margin-bottom: 0; }
.muted { color: #98a0b3; font-size: 12px; }
.inline-num { font-variant-numeric: tabular-nums; }
