/* ============================================================
 *  透明数据 - 治超监管平台
 *  政务风格 · 交通运输综合行政执法 配色
 *  主色:深海蓝 + 金辅 + 白底  · 警示色:红
 * ============================================================ */

:root {
  /* 主色调:交通执法标准蓝(取自"交通执法 China Transportation"徽标背景色) */
  --brand: #286499;          /* 交通执法蓝 */
  --brand-dark: #1c4977;
  --brand-deeper: #143559;
  --brand-light: #4080b8;
  --brand-pale: #eaf2fa;
  --brand-gold: #d4a64a;     /* 徽章金 */
  --brand-gold-light: #f3d97f;

  /* 警示色保留小面积红 */
  --gov-red: #c8161d;
  --gov-red-dark: #a31218;

  /* 底色 */
  --bg: #f3f6fb;
  --bg-card: #ffffff;
  --text: #1f2937;
  --text-2: #4b5563;
  --text-3: #6b7280;
  --border: #e3e8f0;
  --border-strong: #cbd5e1;
  --shadow-sm: 0 1px 2px rgba(15, 31, 65, 0.04);
  --shadow: 0 4px 16px rgba(15, 31, 65, 0.06);
  --shadow-lg: 0 12px 30px rgba(15, 31, 65, 0.1);
  --success: #16a34a;
  --warning: #ea580c;
  --danger: #dc2626;
  --info: #0891b2;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c8d2e0; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #95a3b8; }

/* ============ 登录页 ============ */
.login-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  background:
    linear-gradient(135deg, #143559 0%, #1c4977 40%, #286499 100%);
  overflow: hidden;
}

.login-page::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(800px 600px at 90% 10%, rgba(212, 166, 74, 0.25), transparent 60%),
    radial-gradient(900px 700px at 10% 90%, rgba(255, 255, 255, 0.1), transparent 60%);
}

.login-page::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.login-wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  max-width: 1100px; width: 90%;
  align-items: center;
  position: relative; z-index: 1;
}

.login-brand { color: #fff; }

.login-brand .emblem-row {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 22px;
}

.login-brand .emblem {
  width: 110px; height: 110px;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 12px rgba(212, 166, 74, 0.35));
  object-fit: contain;
  display: block;
}

.login-brand .gov-meta {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 3px;
}

.login-brand .gov-meta .line1 {
  font-size: 14px;
  font-weight: 500;
  color: var(--brand-gold-light);
  margin-bottom: 4px;
}

.login-brand .gov-meta .line2 {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 2px;
}

.login-brand h1 {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.25);
  letter-spacing: 4px;
}

.login-brand h1 .accent {
  color: var(--brand-gold-light);
  text-shadow: 0 2px 14px rgba(212, 166, 74, 0.4);
}

.login-brand .sub {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  margin-bottom: 30px;
}

.login-brand .stats { display: flex; gap: 36px; }

.login-brand .stat-item .num {
  font-size: 34px; font-weight: 700;
  color: var(--brand-gold-light);
  font-variant-numeric: tabular-nums;
}

.login-brand .stat-item .label {
  font-size: 13px; color: rgba(255, 255, 255, 0.75);
  margin-top: 4px; letter-spacing: 1px;
}

.login-card {
  background: #fff;
  border-radius: 8px;
  padding: 44px 40px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  border-top: 4px solid var(--brand);
}

.login-card h2 {
  font-size: 24px; font-weight: 700; color: var(--text);
  margin-bottom: 4px;
}

.login-card .hint {
  color: var(--text-3);
  font-size: 13px; margin-bottom: 30px;
}

.field {
  position: relative;
  margin-bottom: 16px;
}

.field input {
  width: 100%;
  padding: 13px 16px 13px 44px;
  background: #f7f9fc;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: all .15s;
}

.field input:focus {
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(40, 100, 153, 0.12);
}

.field .ico {
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
}

.btn-primary {
  width: 100%;
  padding: 13px;
  background: var(--brand);
  border: none; border-radius: 6px;
  color: #fff; font-size: 15px; font-weight: 600;
  letter-spacing: 4px;
  transition: all .15s;
}

.btn-primary:hover {
  background: var(--brand-dark);
  box-shadow: 0 6px 20px rgba(40, 100, 153, 0.25);
}

.login-tips {
  margin-top: 22px;
  padding: 14px 16px;
  background: var(--brand-pale);
  border-left: 3px solid var(--brand);
  border-radius: 4px;
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.9;
}

.login-tips b { color: var(--brand); }

.login-error {
  margin-bottom: 14px;
  padding: 11px 14px;
  background: #fef2f2;
  border-left: 3px solid var(--danger);
  border-radius: 4px;
  color: var(--danger);
  font-size: 13px;
}

/* ============ 主布局 ============ */
.layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  grid-template-rows: 56px 1fr;
  grid-template-areas: "sidebar topbar" "sidebar content";
  min-height: 100vh;
}

.sidebar {
  grid-area: sidebar;
  background: linear-gradient(180deg, #286499 0%, #1c4977 100%);
  color: #fff;
  position: sticky; top: 0;
  height: 100vh;
  overflow-y: auto;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
}

.brand {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex; align-items: center; gap: 10px;
  background: rgba(0, 0, 0, 0.12);
}

.brand .logo-icon {
  width: 40px; height: 40px;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}

.brand .logo-text .title {
  font-size: 14px; font-weight: 700; color: #fff;
  letter-spacing: 2px;
}

.brand .logo-text .sub {
  font-size: 10px;
  color: var(--brand-gold-light);
  letter-spacing: 2px;
  margin-top: 2px;
}

.menu {
  list-style: none;
  padding: 10px 0;
}

.menu-group {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  padding: 14px 20px 8px;
  letter-spacing: 2px;
}

.menu li a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 20px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
  transition: all .15s;
  border-left: 3px solid transparent;
}

.menu li a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.menu li a.active {
  background: linear-gradient(90deg, rgba(212, 166, 74, 0.15) 0%, transparent 100%);
  color: #fff;
  border-left-color: var(--brand-gold);
  font-weight: 500;
}

.menu li a .ico {
  width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ============ 顶栏 ============ */
.topbar {
  grid-area: topbar;
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
  position: sticky; top: 0; z-index: 50;
  box-shadow: var(--shadow-sm);
}

.page-title {
  font-size: 16px; font-weight: 600;
  color: var(--text);
  display: flex; align-items: center; gap: 12px;
}

.page-title::before {
  content: ""; display: inline-block;
  width: 4px; height: 16px;
  background: var(--brand);
  border-radius: 2px;
}

.page-title .live {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 9px;
  background: #e8f5ec;
  border-radius: 10px;
  font-size: 11px; font-weight: 500;
  color: var(--success);
}

.page-title .live .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.6); }
  50% { opacity: .8; box-shadow: 0 0 0 5px rgba(22, 163, 74, 0); }
}

.topbar-right { display: flex; align-items: center; gap: 16px; }

.topbar-right .time {
  font-size: 13px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.user-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 5px 12px 5px 5px;
  background: var(--brand-pale);
  border: 1px solid rgba(40, 100, 153, 0.12);
  border-radius: 22px;
}

.user-chip .avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--brand);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px; font-weight: 700;
}

.user-chip .meta .name { font-size: 13px; color: var(--text); font-weight: 500; }
.user-chip .meta .role { font-size: 11px; color: var(--text-3); }

.btn-logout {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-2);
  padding: 6px 14px;
  border-radius: 14px;
  font-size: 12px;
  transition: all .15s;
}

.btn-logout:hover {
  background: #fef2f2;
  border-color: #fecaca;
  color: var(--danger);
}

/* ============ 内容区 ============ */
.content {
  grid-area: content;
  padding: 20px 24px 40px;
  overflow-x: hidden;
}

.flash {
  margin-bottom: 16px;
  padding: 11px 16px;
  background: #ecfdf5;
  border-left: 3px solid var(--success);
  border-radius: 4px;
  color: #065f46;
  font-size: 14px;
}

/* ============ 卡片 ============ */
.card {
  background: var(--bg-card);
  border-radius: 6px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.card h3 {
  font-size: 15px; font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.card h3::before {
  content: ""; display: inline-block;
  width: 3px; height: 14px;
  background: var(--brand);
  border-radius: 2px;
  margin-right: 8px;
  vertical-align: middle;
}

.card h3 .ext {
  font-size: 12px;
  color: var(--text-3);
  font-weight: normal;
}

.card h3 .ext::before { content: none; }

/* ============ KPI 大数字卡 ============ */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.kpi {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px 18px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all .2s;
}

.kpi:hover { box-shadow: var(--shadow); transform: translateY(-1px); }

.kpi::before {
  content: ""; position: absolute;
  left: 0; top: 0; width: 4px; height: 100%;
  background: var(--brand);
}

.kpi.warn::before { background: var(--warning); }
.kpi.danger::before { background: var(--danger); }
.kpi.success::before { background: var(--success); }

.kpi .label {
  font-size: 13px; color: var(--text-2);
  margin-bottom: 10px;
}

.kpi .num {
  font-size: 28px; font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.kpi.warn .num { color: var(--warning); }
.kpi.danger .num { color: var(--danger); }
.kpi.success .num { color: var(--success); }

.kpi .unit {
  font-size: 12px; color: var(--text-3);
  margin-left: 4px; font-weight: normal;
}

.kpi .delta {
  margin-top: 8px;
  font-size: 12px;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px;
  border-radius: 10px;
  color: var(--text-2);
  background: #f3f5f9;
}

.kpi .delta.up { background: #ecfdf5; color: var(--success); }
.kpi .delta.down { background: #fef2f2; color: var(--danger); }

/* ============ 通用 layout ============ */
.grid-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.row { display: flex; align-items: center; gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-18 { margin-bottom: 18px; }
.mb-24 { margin-bottom: 24px; }

/* ============ 工具栏 ============ */
.toolbar {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
}

.toolbar label {
  font-size: 13px; color: var(--text-2);
  margin-right: -4px;
}

.chip {
  padding: 6px 14px;
  background: #f3f5f9;
  border: 1px solid var(--border);
  border-radius: 16px;
  font-size: 12.5px;
  color: var(--text-2);
  cursor: pointer;
  transition: all .15s;
  user-select: none;
}

.chip:hover { color: var(--brand); border-color: var(--brand); background: #fff; }

.chip.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.chip.red.active { background: var(--danger); border-color: var(--danger); }

/* ============ 告警卡片 ============ */
.alert-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px;
  background: #fef2f2;
  border-left: 3px solid var(--danger);
  border-radius: 4px;
  margin-bottom: 10px;
}

.alert-item.orange { background: #fff7ed; border-left-color: var(--warning); }
.alert-item.yellow { background: #fefce8; border-left-color: #ca8a04; }

.alert-item .lvl {
  flex-shrink: 0;
  padding: 2px 8px; border-radius: 10px;
  font-size: 11px; font-weight: 700;
  background: var(--danger); color: #fff;
}

.alert-item.orange .lvl { background: var(--warning); }
.alert-item.yellow .lvl { background: #ca8a04; }

.alert-item .title { font-size: 14px; color: var(--text); font-weight: 600; margin-bottom: 4px; }
.alert-item .detail { font-size: 12px; color: var(--text-2); line-height: 1.6; }

/* ============ 表格 ============ */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.table th {
  text-align: left; padding: 11px 14px;
  background: #f7f9fc;
  color: var(--text-2);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
}

.table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.table tr:hover td { background: #f9fbfd; }

.tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 500;
}

.tag.green { background: #e8f5ec; color: var(--success); }
.tag.red   { background: #fee2e2; color: var(--danger); }
.tag.orange{ background: #ffedd5; color: var(--warning); }
.tag.gray  { background: #f1f5f9; color: var(--text-3); }
.tag.blue  { background: var(--brand-pale); color: var(--brand); }
.tag.gold  { background: #fef3c7; color: #b45309; }

/* ============ 表单 ============ */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.form-item label {
  display: block;
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 6px;
  font-weight: 500;
}

.form-item label .req { color: var(--danger); }

.form-item input,
.form-item select,
.form-item textarea {
  width: 100%;
  padding: 9px 12px;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  font-family: inherit;
}

.form-item input:focus,
.form-item select:focus,
.form-item textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(40, 100, 153, 0.1);
}

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 20px;
  background: var(--brand);
  border: none; border-radius: 4px;
  color: #fff; font-size: 13.5px; font-weight: 500;
  transition: all .15s;
}

.btn:hover { background: var(--brand-dark); box-shadow: 0 4px 12px rgba(40, 100, 153, 0.25); }

.btn-gold {
  background: var(--brand-gold);
  color: #5b3b00;
}
.btn-gold:hover { background: #b88a2e; }

.btn-ghost {
  background: #fff;
  border: 1px solid var(--border-strong);
  color: var(--text-2);
  padding: 7px 16px;
  border-radius: 4px;
  font-size: 13px;
}
.btn-ghost:hover { background: #f3f5f9; border-color: var(--brand); color: var(--brand); }

.btn-sm { padding: 4px 11px; font-size: 12px; }

/* ============ VS 比对卡 ============ */
.compare-vs {
  display: grid;
  gap: 16px;
  margin: 18px 0;
}

.compare-vs.two-way {
  grid-template-columns: 1fr 80px 1fr;
  align-items: center;
}

.compare-vs.multi-way {
  grid-template-columns: repeat(var(--n, 3), 1fr);
  align-items: stretch;
}

.compare-vs.multi-way .vs-card {
  padding: 18px 18px;
}

.compare-vs.multi-way .region-name { font-size: 18px; }
.compare-vs.multi-way .vs-metric .v { font-size: 16px; }

.vs-card {
  background: #fff;
  border-radius: 8px;
  padding: 22px 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.vs-card.left { border-top: 4px solid var(--brand); }
.vs-card.right { border-top: 4px solid var(--brand-gold); }
.vs-card.extra-2 { border-top: 4px solid var(--success); }
.vs-card.extra-3 { border-top: 4px solid var(--danger); }
.vs-card.loser { border-color: var(--danger); border-top-color: var(--danger); animation: shake .8s ease-in-out infinite; background: #fef9f9; }
.vs-card.winner { border-color: var(--success); border-top-color: var(--success); background: #f5fdf8; }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  75% { transform: translateX(2px); }
}

.vs-card .region-name {
  font-size: 22px; font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.vs-card.left .region-name { color: var(--brand); }
.vs-card.right .region-name { color: #b45309; }
.vs-card.extra-2 .region-name { color: var(--success); }
.vs-card.extra-3 .region-name { color: var(--danger); }
.vs-card.loser .region-name { color: var(--danger); }
.vs-card.winner .region-name { color: var(--success); }

.vs-card .region-sub {
  font-size: 12px; color: var(--text-3);
  margin-bottom: 18px;
}

.vs-metric {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.vs-metric:last-child { border-bottom: none; }
.vs-metric .k { font-size: 12.5px; color: var(--text-2); }
.vs-metric .v { font-size: 18px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.vs-metric .v.loss { color: var(--danger); }
.vs-metric .v.win  { color: var(--success); }

.vs-divider {
  display: flex; align-items: center; justify-content: center;
}

.vs-circle {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800; color: #fff;
  box-shadow: 0 8px 20px rgba(40, 100, 153, 0.3);
  letter-spacing: 2px;
}

/* ============ 图表容器 ============ */
.chart-box { height: 320px; }
.chart-box.tall { height: 400px; }
.chart-box.short { height: 240px; }

/* ============ Big number ============ */
.big-num {
  font-size: 32px; font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.big-num.blue { color: var(--brand); }
.big-num.red { color: var(--danger); }
.big-num.green { color: var(--success); }
.big-num.orange { color: var(--warning); }

/* ============ 模态弹窗 ============ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 31, 65, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: modalFade .2s ease-out;
}

.modal-card {
  position: relative;
  background: #fff;
  border-radius: 10px;
  padding: 28px 30px 22px;
  width: 720px;
  max-width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  border-top: 4px solid var(--brand);
  animation: modalSlide .25s cubic-bezier(.2,.9,.3,1.2);
}

@keyframes modalFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalSlide {
  from { opacity: 0; transform: translateY(-16px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 12px; right: 14px;
  width: 30px; height: 30px;
  background: transparent;
  border: none;
  font-size: 22px;
  color: var(--text-3);
  cursor: pointer;
  border-radius: 50%;
  transition: all .15s;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}

.modal-close:hover { background: #f3f5f9; color: var(--text); }

.modal-header {
  display: flex; align-items: center; gap: 14px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.modal-icon {
  width: 44px; height: 44px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(40,100,153,0.3);
}

.modal-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}

.modal-sub {
  font-size: 12px;
  color: var(--text-3);
}

.modal-section-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 1px;
  margin: 20px 0 12px;
  padding-left: 10px;
  border-left: 3px solid var(--brand);
}

.modal-tip {
  margin-top: 18px;
  padding: 10px 14px;
  background: var(--brand-pale);
  border-left: 3px solid var(--brand);
  border-radius: 4px;
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.7;
}

.modal-tip b { color: var(--brand); }

.modal-footer {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ============ 响应式 ============ */
@media (max-width: 1280px) {
  .kpi-grid { grid-template-columns: repeat(3, 1fr); }
  .grid-2, .grid-2-1 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .login-wrap { grid-template-columns: 1fr; gap: 30px; }
  .layout { grid-template-columns: 60px 1fr; }
  .menu li a span:not(.ico) { display: none; }
  .brand .logo-text { display: none; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}
