/* 后台管理端全局样式：设计令牌 + 基础组件 + 后台布局（腾讯蓝主题） */
/* ===========================================================
   云锦路07号地块 · 电子通行证
   tokens.css — 设计令牌（颜色 / 字号 / 间距 / 层级）
   =========================================================== */

:root {
  /* --- 腾讯蓝：主色，用于主按钮、选中态、强调数字 --- */
  --brand: #0052D9;
  --brand-light: #4A8CFF;
  --brand-deep: #003B9E;
  --brand-soft: #E8F0FE;
  --brand-line: #BBD2F7;

  /* --- 首页专用亮蓝 / 青蓝渐变：比主色更亮，避免深蓝发闷 --- */
  --brand-vivid: #1E9FE0;
  --brand-vivid-deep: #0E8FCB;
  --brand-grad: linear-gradient(100deg, #2BB3E6, #0E86C9);
  --head-grad: linear-gradient(150deg, #E8F2FD 0%, #D3E6FA 55%, #C3DCF6 100%);
  --head-ink: #123A63;
  --head-sub: #6E89A8;

  /* --- 深蓝色阶：头部、通行令牌、正文，替代原墨色 --- */
  --ink-950: #06142C;
  --ink-900: #0A1F42;
  --ink-850: #0E2A57;
  --ink-800: #123568;
  --ink-700: #1C4A8A;
  --ink-600: #2C63A8;
  --ink-500: #4A7FBE;
  --ink-400: #5C7BA8;
  --ink-300: #9BB4D1;
  --ink-200: #CEDCF0;

  /* --- 中性（冷白，与蓝同色相） --- */
  --bg: #F4F6FA;
  --bg-sunken: #E9EFF8;
  --surface: #FFFFFF;
  --surface-2: #F8FAFE;
  --line: #DFE7F2;
  --line-soft: #ECF1F9;
  --line-strong: #C9D6E8;

  /* --- 强调色：信号黄（工地信号色，不做彩虹） --- */
  --amber: #F2A93B;
  --amber-deep: #D9861A;
  --amber-soft: #FFF4E1;
  --amber-line: #F3D8A6;

  /* --- 状态色 --- */
  --green: #0E8A5F;
  --green-deep: #0A6E4B;
  --green-soft: #E4F5ED;
  --green-line: #B9E3D1;

  --red: #CE3B2E;
  --red-deep: #A62C21;
  --red-soft: #FCEAE7;
  --red-line: #F3C6C0;

  --teal: #2F6F8F;
  --teal-soft: #E9F1F5;
  --teal-line: #C3D9E4;

  --slate: #5E7479;
  --slate-soft: #EDF1F2;
  --slate-line: #D3DEE0;

  /* --- 圆角 --- */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-full: 999px;

  /* --- 阴影：低对比、有分量 --- */
  --sh-1: 0 1px 2px rgba(6, 20, 44, .06), 0 1px 1px rgba(6, 20, 44, .05);
  --sh-2: 0 2px 6px rgba(6, 20, 44, .07), 0 8px 20px -12px rgba(6, 20, 44, .20);
  --sh-3: 0 10px 30px -14px rgba(6, 20, 44, .30), 0 2px 8px rgba(6, 20, 44, .06);
  --sh-phone: 0 40px 80px -40px rgba(4, 16, 42, .58), 0 12px 32px -18px rgba(4, 16, 42, .38);

  /* --- 字体：统一使用系统默认字体，不引入任何外部/专属字体 --- */
  --font: system-ui, sans-serif;
  --mono: system-ui, sans-serif;

  /* --- 字号规范：全站最小 12px，禁止再小 --- */
  --fs-xs: 12px;   /* 辅助标签、说明、时间 */
  --fs-sm: 13px;   /* 次要正文、列表副标题 */
  --fs-md: 14px;   /* 正文 */
  --fs-lg: 14px;   /* 小标题，与正文同号，靠字重区分 */
  --fs-xl: 16px;   /* 小标题专用：仅页面/区块标题使用，常规文字禁用 */
  --fs-2xl: 18px;  /* 卡片强调数字 */
  --fs-3xl: 21px;  /* 页面大数字 */
  --fs-4xl: 28px;  /* 登录主标题 */
  --fs-5xl: 34px;  /* 结果页超大字 */

  /* --- 尺寸 --- */
  --phone-w: 375px;
  --phone-h: 812px;
  --sidebar-w: 232px;
}

/* 状态色语义映射：JS 里统一取用 */
:root {
  --st-unused: var(--green);
  --st-unused-soft: var(--green-soft);
  --st-in: var(--teal);
  --st-in-soft: var(--teal-soft);
  --st-out: var(--slate);
  --st-out-soft: var(--slate-soft);
  --st-invalid: var(--red);
  --st-invalid-soft: var(--red-soft);
}
/* ===========================================================
   base.css — 基础重置 + 通用组件
   =========================================================== */

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  color: var(--ink-900);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: var(--fs-md);
  line-height: 1.5;
}

h1, h2, h3, h4, h5, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
svg { display: block; }
table { border-collapse: collapse; width: 100%; }

/* 数字等宽：卡号、时间、额度必须精密 */
.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
}
.num { font-variant-numeric: tabular-nums; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: var(--r-sm);
  font-size: var(--fs-md);
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease;
  user-select: none;
}
.btn:active { transform: translateY(1px) scale(.995); }
.btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 2px 10px -5px rgba(0, 82, 217, .55); }
.btn-primary:hover { background: var(--brand-deep); }

.btn-amber { background: var(--amber); color: #20160A; box-shadow: 0 2px 10px -4px rgba(217, 134, 26, .6); }
.btn-amber:hover { background: #F7B752; }

.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-deep); }

.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: var(--red-deep); }

.btn-ghost { background: var(--surface); color: var(--ink-800); border: 1px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink-300); background: var(--surface-2); }

.btn-quiet { background: transparent; color: var(--ink-500); }
.btn-quiet:hover { background: var(--bg-sunken); color: var(--ink-800); }

.btn-sm { height: 32px; padding: 0 12px; font-size: var(--fs-sm); border-radius: var(--r-xs); }
.btn-lg { height: 52px; padding: 0 26px; font-size: var(--fs-md); border-radius: var(--r-md); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* ---------- 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 9px;
  border-radius: var(--r-xs);
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.tag .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag-green { background: var(--green-soft); color: var(--green-deep); }
.tag-teal { background: var(--teal-soft); color: #235C77; }
.tag-slate { background: var(--slate-soft); color: #3E5E8F; }
.tag-red { background: var(--red-soft); color: var(--red-deep); }
.tag-amber { background: var(--amber-soft); color: #8A5A10; }
.tag-ink { background: var(--brand); color: #fff; }
.tag-line { background: transparent; border: 1px solid var(--line-strong); color: var(--ink-500); }

/* ---------- 表单 ---------- */
.field { display: block; }
.field > .lab {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--ink-400);
  letter-spacing: .04em;
  margin-bottom: 6px;
}
.input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-size: var(--fs-md);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input::placeholder { color: var(--ink-300); }
.input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 82, 217, .10);
}
select.input { appearance: none; padding-right: 30px; background-image: none; cursor: pointer; }
.search-wrap { position: relative; }
.search-wrap .input { padding-left: 34px; }
.search-wrap svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--ink-300); }

.switch {
  position: relative;
  width: 42px; height: 24px;
  border-radius: 999px;
  background: var(--line-strong);
  transition: background .18s ease;
  flex: none;
}
.switch::after {
  content: "";
  position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
  transition: transform .18s ease;
}
.switch[data-on="1"] { background: var(--green); }
.switch[data-on="1"]::after { transform: translateX(18px); }

/* ---------- 工具类 ---------- */
.row { display: flex; align-items: center; }
.between { display: flex; align-items: center; justify-content: space-between; }
.gap-4 { gap: 4px; } .gap-6 { gap: 6px; } .gap-8 { gap: 8px; }
.gap-10 { gap: 10px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--ink-400); }
.strong { font-weight: 700; }
.ellip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.center { text-align: center; }
.hr { height: 1px; background: var(--line-soft); border: 0; margin: 0; }

/* 滚动条：细，不抢视线 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #CBD8EA; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #B8C8DE; }
::-webkit-scrollbar-track { background: transparent; }

/* 动画 */
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes popIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes scanline { 0% { top: 6%; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { top: 94%; opacity: 0; } }
@keyframes pulseRing { 0% { transform: scale(.9); opacity: .55; } 70% { transform: scale(1.25); opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
/* ===========================================================
   admin.css — PC 管理后台
   清晰可靠的管控看板：大数字 / 清楚的额度进度 / 醒目的异常
   =========================================================== */

body.admin { background: var(--bg); }

.shell { display: flex; min-height: 100vh; }

/* ---------------- 侧边栏 ---------------- */
.side {
  width: var(--sidebar-w);
  flex: none;
  background:
    radial-gradient(120% 60% at 0% 0%, rgba(74, 140, 255, .12) 0%, rgba(74, 140, 255, 0) 55%),
    linear-gradient(180deg, #0B2148 0%, #071A38 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 20;
}
.side .logo {
  display: flex; align-items: center; gap: 10px;
  padding: 20px 18px 18px;
}
.side .logo .lmk {
  width: 34px; height: 34px; flex: none;
  border-radius: 9px;
  background: #fff;
  color: var(--ink-800);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: var(--fs-md);
  letter-spacing: -.02em;
}
.side .logo .lt { min-width: 0; }
.side .logo .lt b { display: block; font-size: var(--fs-md); font-weight: 700; letter-spacing: .01em; }
.side .logo .lt span { display: block; font-size: var(--fs-xs); color: rgba(255, 255, 255, .38); margin-top: 2px; letter-spacing: .06em; }

.side .nav {
  flex: 1;
  overflow-y: auto;
  padding: 4px 10px 16px;
  scrollbar-width: thin;
}
.side .nav::-webkit-scrollbar { width: 4px; }
.side .nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); }

.side .nav .grp {
  padding: 14px 10px 6px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .14em;
  color: rgba(255, 255, 255, .28);
}
.side .nav a,
.side .side-foot a {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 10px;
  margin-bottom: 2px;
  border-radius: 8px;
  color: rgba(255, 255, 255, .62);
  font-size: var(--fs-sm);
  font-weight: 500;
  position: relative;
  transition: background .14s ease, color .14s ease;
}
.side .nav a svg,
.side .side-foot a svg { width: 17px; height: 17px; flex: none; opacity: .8; }
.side .nav a:hover,
.side .side-foot a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.side .nav a.on,
.side .side-foot a.on {
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-weight: 600;
}
.side .nav a.on::before,
.side .side-foot a.on::before {
  content: "";
  position: absolute; left: -10px; top: 9px; bottom: 9px;
  width: 3px; border-radius: 0 3px 3px 0;
  background: var(--brand-light);
}
.side .nav a.on svg,
.side .side-foot a.on svg { opacity: 1; color: var(--brand-light); }
/* 底部系统维护项：细线与主导航分隔，紧贴用户信息区 */
.side .side-foot {
  flex: none;
  padding: 8px 10px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.side .nav a .cnt {
  margin-left: auto;
  min-width: 19px; height: 18px; padding: 0 5px;
  border-radius: 5px;
  background: var(--red);
  color: #fff;
  font-size: var(--fs-xs); font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

.side .me {
  flex: none;
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  display: flex; align-items: center; gap: 9px;
}
.side .me .av {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-xs); font-weight: 700;
  color: #fff;
}
.side .me .mt b { display: block; font-size: var(--fs-sm); font-weight: 600; }
.side .me .mt span { display: block; font-size: var(--fs-xs); color: rgba(255, 255, 255, .38); margin-top: 1px; }

/* ---------------- 主区 ---------------- */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  height: 62px;
  flex: none;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 26px;
  position: sticky;
  top: 0;
  z-index: 15;
}
.topbar .tb-title { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.topbar .tb-title h1 { font-size: var(--fs-xl); font-weight: 700; letter-spacing: .01em; white-space: nowrap; }
.topbar .tb-title span { font-size: var(--fs-xs); color: var(--ink-400); white-space: nowrap; }
.topbar .tb-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.topbar .tb-date {
  display: flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 12px;
  border-radius: var(--r-sm);
  background: var(--bg-sunken);
  font-size: var(--fs-sm);
  color: var(--ink-600);
  font-variant-numeric: tabular-nums;
}
.topbar .tb-ic {
  width: 34px; height: 34px;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-500);
  border: 1px solid var(--line);
  background: var(--surface);
  position: relative;
}
.topbar .tb-ic:hover { background: var(--surface-2); }
.topbar .tb-ic .rd {
  position: absolute; top: 7px; right: 8px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red);
  border: 1.5px solid #fff;
}

.page { padding: 22px 26px 40px; flex: 1; }
.page.narrow { max-width: 1180px; }

/* 页面头部（大标题区） */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.page-head h2 { font-size: var(--fs-xl); font-weight: 700; letter-spacing: -.01em; }
.page-head p { font-size: var(--fs-sm); color: var(--ink-400); margin-top: 5px; }
.page-head .ph-actions { display: flex; gap: 10px; flex: none; }

/* ---------------- KPI ---------------- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 18px 14px;
  position: relative;
  overflow: hidden;
}
.kpi .kh { display: flex; align-items: center; justify-content: space-between; }
.kpi .kh span { font-size: var(--fs-xs); color: var(--ink-400); font-weight: 600; letter-spacing: .03em; }
.kpi .kh .ki { width: 26px; height: 26px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: var(--bg-sunken); color: var(--ink-500); }
.kpi .kv {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: var(--fs-4xl);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.05;
  display: flex; align-items: baseline; gap: 6px;
}
.kpi .kv small { font-family: var(--font); font-size: var(--fs-xs); font-weight: 600; color: var(--ink-400); letter-spacing: 0; }
.kpi .kf { margin-top: 6px; font-size: var(--fs-xs); color: var(--ink-400); display: flex; align-items: center; gap: 5px; }
.kpi .kf .up { color: var(--red); font-weight: 700; }
.kpi .kf .down { color: var(--green); font-weight: 700; }
.kpi.dark { background: linear-gradient(160deg, #123568, #071A38); border-color: #123568; }
.kpi.dark .kh span { color: rgba(255, 255, 255, .55); }
.kpi.dark .kh .ki { background: rgba(255, 255, 255, .1); color: var(--brand-light); }
.kpi.dark .kv { color: #fff; }
.kpi.dark .kv small { color: rgba(255, 255, 255, .45); }
.kpi.dark .kf { color: rgba(255, 255, 255, .45); }
.kpi.alert .kv { color: var(--red); }
.kpi .kbar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--line-soft); }
.kpi .kbar i { display: block; height: 100%; background: var(--brand); }

/* ---------------- 面板 ---------------- */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.panel-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
}
.panel-head h3 { font-size: var(--fs-md); font-weight: 700; letter-spacing: .01em; }
.panel-head .ph-sub { font-size: var(--fs-xs); color: var(--ink-400); }
.panel-head .ph-r { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.panel-body { padding: 16px 18px; }
.panel-body.flush { padding: 0; }

.grid-2 { display: grid; grid-template-columns: 1.35fr 1fr; gap: 14px; }
.grid-2b { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mt-14 { margin-top: 14px; }
.mt-18 { margin-top: 18px; }

/* ---------------- 额度池 ---------------- */
.pool { padding: 15px 18px; border-bottom: 1px solid var(--line-soft); }
.pool:last-child { border-bottom: 0; }
.pool .pt {
  display: flex; align-items: center; gap: 9px;
  margin-bottom: 9px;
}
.pool .pt b { font-size: var(--fs-md); font-weight: 700; }
.pool .pt .code {
  font-family: var(--mono); font-size: var(--fs-xs); font-weight: 700;
  padding: 2px 5px; border-radius: 4px;
  background: var(--bg-sunken); color: var(--ink-500);
  letter-spacing: .04em;
}
.pool .pt .rt { margin-left: auto; font-size: var(--fs-xs); color: var(--ink-400); font-variant-numeric: tabular-nums; }
.pool .pt .rt b { font-family: var(--mono); font-size: var(--fs-md); color: var(--ink-900); }
.pool .pbar {
  height: 9px; border-radius: 5px;
  background: var(--bg-sunken);
  display: flex;
  overflow: hidden;
}
.pool .pbar i { display: block; height: 100%; transition: width .5s ease; }
.pool .pbar .s-occ { background: var(--brand); }
.pool .pbar .s-used { background: var(--amber); }
.pool .pbar .s-free { background: transparent; }
.pool .pl {
  display: flex; align-items: center; gap: 14px;
  margin-top: 7px;
  font-size: var(--fs-xs);
  color: var(--ink-400);
}
.pool .pl .lg { display: flex; align-items: center; gap: 5px; }
.pool .pl .lg i { width: 7px; height: 7px; border-radius: 2px; }
.pool .pl .lg b { color: var(--ink-700); font-variant-numeric: tabular-nums; font-weight: 700; }
.pool .pl .full { margin-left: auto; }

/* ---------------- 表格 ---------------- */
.tbl-wrap { overflow-x: auto; }
table.tbl { font-size: var(--fs-sm); }
table.tbl th {
  text-align: left;
  padding: 10px 14px;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--ink-400);
  letter-spacing: .04em;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  position: sticky; top: 0;
  z-index: 2;
}
table.tbl td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-700);
  vertical-align: middle;
  white-space: nowrap;
}
table.tbl tr:last-child td { border-bottom: 0; }
table.tbl tbody tr:hover td { background: #F8FAFE; }
table.tbl td.num, table.tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.tbl td.mono, table.tbl th.mono { font-family: var(--mono); letter-spacing: .01em; }
table.tbl .t-strong { font-weight: 600; color: var(--ink-900); }
table.tbl .t-sub { display: block; font-size: var(--fs-xs); color: var(--ink-400); margin-top: 2px; font-weight: 400; }
table.tbl .t-link { color: var(--ink-900); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; cursor: pointer; }
table.tbl .t-link:hover { text-decoration-color: var(--ink-700); }

.tbl-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 16px;
  border-top: 1px solid var(--line-soft);
  font-size: var(--fs-xs); color: var(--ink-400);
}
.pager { display: flex; gap: 4px; }
.pager button {
  min-width: 28px; height: 28px; padding: 0 8px;
  border-radius: 6px; border: 1px solid var(--line);
  background: var(--surface); font-size: var(--fs-xs); color: var(--ink-600);
}
.pager button.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.pager button:hover:not(.on) { background: var(--bg-sunken); }

/* ---------------- 筛选条 ---------------- */
.filters {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface);
  flex-wrap: wrap;
}
.filters .input, .filters select.input { height: 34px; font-size: var(--fs-sm); }
.filters .search-wrap { width: 220px; }
.filters .fsp { flex: 1; }
.seg { display: inline-flex; padding: 3px; border-radius: 8px; background: var(--bg-sunken); gap: 2px; }
.seg button {
  height: 28px; padding: 0 12px; border-radius: 6px;
  font-size: var(--fs-sm); font-weight: 600; color: var(--ink-500);
}
.seg button.on { background: var(--surface); color: var(--ink-900); box-shadow: var(--sh-1); }
.seg button .cnt { margin-left: 5px; font-variant-numeric: tabular-nums; color: var(--red); }

/* ---------------- 列表工具栏（FastAdmin 风格）+ 高级搜索 ---------------- */
.fa-toolbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 11px 16px; border-bottom: 1px solid var(--line-soft); background: var(--surface);
}
.fa-tb-left, .fa-tb-right { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.fa-tb-right { margin-left: auto; }
.fa-tb-hint { font-size: var(--fs-xs); color: var(--ink-400); display: flex; align-items: center; gap: 6px; }
.fa-btn {
  height: 32px; padding: 0 12px; display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); border-radius: 6px; background: var(--surface);
  color: var(--ink-700); font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; cursor: pointer;
}
.fa-btn:hover { background: var(--bg-sunken); border-color: var(--line-strong); }
.fa-btn svg { display: block; }
.fa-btn-icon { width: 32px; padding: 0; justify-content: center; }
.fa-caret { font-size: 9px; opacity: .7; margin-left: 1px; }
.fa-dd { position: relative; }
.fa-menu {
  position: absolute; right: 0; top: calc(100% + 5px); z-index: 30; min-width: 156px;
  padding: 5px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 8px; box-shadow: var(--sh-2);
}
.fa-menu[hidden] { display: none; }
.fa-menu button {
  display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 5px;
  font-size: var(--fs-sm); color: var(--ink-700); cursor: pointer;
}
.fa-menu button:hover { background: var(--bg-sunken); color: var(--brand-deep); }
.fa-tags {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 9px 16px; background: var(--surface); border-bottom: 1px solid var(--line-soft);
}
.fa-tags[hidden] { display: none; }
.fa-tag {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px;
  border-radius: 5px; background: var(--brand-soft); color: var(--brand-deep); font-size: var(--fs-xs);
}
.fa-tag b { font-weight: 600; }
.fa-tag-clear { margin-left: 2px; opacity: .6; cursor: pointer; }
.fa-tag-clear:hover { opacity: 1; }
.fa-tag-all { background: none; color: var(--ink-400); cursor: pointer; }
.fa-search {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px 14px;
  padding: 14px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line-soft);
}
.fa-search[hidden] { display: none; }
.fa-field { display: flex; flex-direction: column; gap: 5px; }
.fa-field > span { font-size: var(--fs-xs); color: var(--ink-500); font-weight: 600; }
.fa-field .input { height: 34px; font-size: var(--fs-sm); }
.fa-range { display: flex; align-items: center; gap: 5px; }
.fa-range .input { min-width: 0; flex: 1; }
.fa-range-sep { color: var(--ink-400); font-size: var(--fs-xs); }
.fa-search-foot { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; padding-top: 2px; }
.fa-search-foot .fa-link { margin-left: auto; color: var(--ink-400); background: none; border: 0; cursor: pointer; font-size: var(--fs-xs); }
.fa-search-foot .fa-link:hover { color: var(--brand-deep); }

/* 通行组表格：跨日通行 / 跨日未出场整行标色 */
.tbl tbody tr.dv-cross td { background: var(--amber-soft); }
.tbl tbody tr.dv-cross:hover td { background: #FDEBCB; }

/* ---------------- 动态流 ---------------- */
.feed { padding: 4px 0; }
.feed .fi {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 18px;
  position: relative;
}
.feed .fi:hover { background: var(--surface-2); }
.feed .fi .dotc {
  width: 26px; height: 26px; flex: none; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.feed .fi .fx { flex: 1; min-width: 0; }
.feed .fi .fx b { display: block; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-800); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed .fi .fx b .m { font-family: var(--mono); font-weight: 700; letter-spacing: .01em; }
.feed .fi .fx > span { display: block; font-size: var(--fs-xs); color: var(--ink-400); margin-top: 2px; }
.feed .fi .fx b .m { display: inline; }
.feed .fi .ft { font-family: var(--mono); font-size: var(--fs-xs); color: var(--ink-400); flex: none; }

/* ---------------- 图表 ---------------- */
.chart-box { padding: 6px 18px 16px; }
.chart-legend { display: flex; gap: 16px; padding: 0 18px 12px; font-size: var(--fs-xs); color: var(--ink-400); }
.chart-legend .cl { display: flex; align-items: center; gap: 6px; }
.chart-legend .cl i { width: 8px; height: 8px; border-radius: 2px; }

/* ---------------- 表单区 ---------------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.form-grid .full { grid-column: 1 / -1; }
.form-help { font-size: var(--fs-xs); color: var(--ink-400); margin-top: 6px; line-height: 1.5; }
.set-row {
  display: flex; align-items: flex-start; gap: 20px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line-soft);
}
.set-row:last-child { border-bottom: 0; }
.set-row .sl { width: 260px; flex: none; }
.set-row .sl b { display: block; font-size: var(--fs-sm); font-weight: 600; }
.set-row .sl span { display: block; font-size: var(--fs-xs); color: var(--ink-400); margin-top: 3px; line-height: 1.5; }
.set-row .sv { flex: 1; display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.set-row .sv .input { max-width: 120px; }

/* ---------------- 弹层 ---------------- */
/* 层级阶梯（新增浮层请在此表内取号，不要随手写大数）：
   30    页面内局部（下拉菜单 / 悬浮面板）
   200   普通弹窗 .modal-mask —— 见下方，实际取 2400
   1200  详情抽屉 .dw-mask（drivers.html 内联定义）
   2400  普通弹窗 .modal-mask（须高于抽屉，抽屉里可能唤起弹窗）
   2600  车牌编辑器 .plate-mask（plate.js 内联注入，弹窗/抽屉里都会调起）
   3000  确认框 .confirm-mask（最顶的交互层，抽屉打开时也必须能看到并点到）
   9999  轻提示 toast（common.js 内联生成，始终最上）
   注意：.dw-mask 定义在 pages/drivers.html 的内联 <style> 里，改层级时两处要一起看。 */
.modal-mask {
  position: fixed; inset: 0; z-index: 2400;
  background: rgba(6, 20, 44, .42);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: fadeUp .16s ease both;
}
.modal {
  width: 440px; max-width: 100%;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: 0 30px 70px -30px rgba(6, 20, 44, .5);
  overflow: hidden;
}
.modal-head { padding: 18px 20px 12px; }
.modal-head h3 { font-size: var(--fs-lg); font-weight: 700; }
.modal-head p { font-size: var(--fs-sm); color: var(--ink-400); margin-top: 4px; }
.modal-body { padding: 4px 20px 18px; display: flex; flex-direction: column; gap: 14px; }
.modal-foot { padding: 13px 20px; background: var(--surface-2); border-top: 1px solid var(--line-soft); display: flex; justify-content: flex-end; gap: 9px; }

/* ---------------- 登录 ---------------- */
.login-wrap { display: flex; min-height: 100vh; }
.login-brand {
  flex: 1.15;
  background:
    radial-gradient(80% 60% at 20% 10%, rgba(74, 140, 255, .18) 0%, rgba(74, 140, 255, 0) 60%),
    linear-gradient(160deg, #123E7A 0%, #06182F 100%);
  color: #fff;
  padding: 52px 56px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.login-brand::after {
  content: "";
  position: absolute; right: -140px; bottom: -180px;
  width: 460px; height: 460px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .07);
  box-shadow: 0 0 0 60px rgba(255, 255, 255, .025), 0 0 0 120px rgba(255, 255, 255, .015);
}
.login-brand .lb-top { display: flex; align-items: center; gap: 11px; }
.login-brand .lb-top .mk {
  width: 38px; height: 38px; border-radius: 10px;
  background: #fff; color: var(--ink-800);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: var(--fs-lg);
}
.login-brand .lb-top b { font-size: var(--fs-md); font-weight: 700; letter-spacing: .02em; }
.login-brand .lb-mid { margin-top: auto; }
.login-brand .lb-mid h1 { font-size: var(--fs-xl); font-weight: 700; line-height: 1.28; letter-spacing: -.01em; }
.login-brand .lb-mid h1 em { font-style: normal; color: var(--brand-light); }
.login-brand .lb-mid p { margin-top: 14px; font-size: var(--fs-sm); color: rgba(255, 255, 255, .5); line-height: 1.7; max-width: 400px; }
.login-brand .lb-stats { display: flex; gap: 34px; margin-top: 34px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .1); }
.login-brand .lb-stats b { display: block; font-family: var(--mono); font-size: var(--fs-2xl); font-weight: 700; letter-spacing: -.02em; }
.login-brand .lb-stats span { display: block; font-size: var(--fs-xs); color: rgba(255, 255, 255, .42); margin-top: 3px; letter-spacing: .04em; }
.login-form-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 40px 64px; position: relative; background: var(--surface); }
/* ICP 备案号：固定在右半幅白底区底部，不参与表单布局 */
.login-icp { position: absolute; left: 0; right: 0; bottom: 20px; text-align: center; font-size: var(--fs-xs); color: var(--ink-300); letter-spacing: .02em; }
.login-icp a { color: var(--ink-300); text-decoration: none; }
.login-icp a:hover { color: var(--brand); text-decoration: underline; }
.login-form { width: 344px; }
.login-form h2 { font-size: var(--fs-xl); font-weight: 700; }
.login-form > p { font-size: var(--fs-sm); color: var(--ink-400); margin-top: 6px; }
.login-form .fields { margin-top: 26px; display: flex; flex-direction: column; gap: 15px; }
.login-form .btn { height: 46px; margin-top: 4px; }
.login-form .lf-foot { margin-top: 22px; font-size: var(--fs-xs); color: var(--ink-300); display: flex; justify-content: space-between; }

/* 打印/导出按钮组 */
.btn-group { display: flex; gap: 8px; }

/* 骨架/占位 */
.loading { padding: 40px; text-align: center; color: var(--ink-300); font-size: var(--fs-sm); }

/* 表格里的组标 */
.gbadge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--fs-sm);
}
.gbadge i {
  width: 7px; height: 7px; border-radius: 2px; flex: none;
}

/* 进度小条（表格内） */
.mini-bar { width: 84px; height: 6px; border-radius: 3px; background: var(--bg-sunken); overflow: hidden; }
.mini-bar i { display: block; height: 100%; }

/* 空状态 */
.admin-empty { padding: 46px 20px; text-align: center; color: var(--ink-300); font-size: var(--fs-sm); }
.admin-empty b { display: block; color: var(--ink-500); font-size: var(--fs-md); margin-bottom: 4px; }

/* 面板内的规则段落 */
.panel-body p + p { margin-top: 8px; }
.panel-body p { line-height: 1.85; }

/* ---------------- 后台 H5 增补（加载 / 错误 / 确认 / 辅助） ---------------- */
.admin-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 56px 20px; color: var(--ink-400); font-size: var(--fs-sm); }
.spin { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--brand); animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.admin-error { margin: 14px 0; padding: 14px 16px; border: 1px solid var(--red-line); background: var(--red-soft); border-radius: var(--r-sm); color: var(--red-deep); font-size: var(--fs-sm); display: flex; align-items: center; gap: 10px; }
.admin-error .btn { margin-left: auto; }
.confirm-mask { position: fixed; inset: 0; z-index: 3000; background: rgba(6, 20, 44, .42); display: flex; align-items: center; justify-content: center; padding: 24px; animation: fadeUp .16s ease both; }
.confirm-box { width: 380px; max-width: 100%; background: var(--surface); border-radius: var(--r-lg); box-shadow: 0 30px 70px -30px rgba(6, 20, 44, .5); overflow: hidden; }
.confirm-box .cb-body { padding: 22px 22px 18px; font-size: var(--fs-md); color: var(--ink-800); line-height: 1.7; }
.confirm-box .cb-body b { display: block; font-size: var(--fs-lg); margin-bottom: 6px; }
.confirm-box .cb-foot { padding: 13px 20px; background: var(--surface-2); border-top: 1px solid var(--line-soft); display: flex; justify-content: flex-end; gap: 9px; }
.link-btn { color: var(--brand); font-weight: 600; cursor: pointer; }
.tag-ray { background: var(--brand-soft); color: var(--brand-deep); }
.text-red { color: var(--red); }
.text-green { color: var(--green); }
.text-brand { color: var(--brand); }
.w-full { width: 100%; }
.modal.wide { width: 560px; }
textarea.input { height: auto; min-height: 92px; padding: 9px 12px; line-height: 1.6; resize: vertical; }
.login-form .btn[disabled] { opacity: .6; pointer-events: none; }
.shell .side .logo .lt b { font-size: 15px; }

/* ---------------- 数据概览（通行统计四段式，对齐 demo reports.html） ---------------- */
.rp-sec { display: flex; align-items: baseline; gap: 10px; margin: 22px 0 10px; flex-wrap: wrap; }
.rp-sec:first-child { margin-top: 0; }
.rp-sec h3 { font-size: var(--fs-xl); font-weight: 700; color: var(--ink-900); margin: 0; }
.rp-sec .tagline { font-size: var(--fs-xs); color: var(--ink-400); }
.live-pill { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 600;
  color: var(--teal); background: var(--teal-soft); border: 1px solid var(--teal-line); padding: 2px 9px; border-radius: 20px; }
.live-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(14,138,95,.16); }
.stat-kv { font-size: var(--fs-3xl); font-weight: 700; color: var(--ink-900); line-height: 1.1; letter-spacing: -.01em; }
.stat-kv small { font-size: var(--fs-xs); font-weight: 600; color: var(--ink-400); margin-left: 4px; }
.stat-sub { font-size: var(--fs-xs); color: var(--ink-400); margin-top: 7px; }
.gk-row { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: var(--fs-sm); }
.gk-row:last-child { border-bottom: 0; padding-bottom: 0; }
.gk-row:first-child { padding-top: 0; }
.gk-name { font-weight: 600; color: var(--ink-900); }
.gk-name em { display: block; font-style: normal; font-size: var(--fs-xs); color: var(--ink-400); font-weight: 400; margin-top: 2px; }
/* 双层表头：分组行不吸顶，避免与第二行叠在一起 */
table.tbl thead tr.th-grp th { background: var(--surface-2); font-size: var(--fs-xs); font-weight: 700;
  color: var(--ink-400); letter-spacing: .03em; padding: 9px 14px; border-bottom: 1px solid var(--line); position: static; }
table.tbl thead tr.th-grp th.grp-in { border-left: 1px dashed var(--line-strong); }
table.tbl td.sep-l, table.tbl th.sep-l { border-left: 1px dashed var(--line-strong); }
table.tbl tbody tr:hover td.sep-l { border-left-color: var(--line-strong); }
.rp-empty { padding: 34px 0; text-align: center; font-size: var(--fs-sm); color: var(--ink-400); }
/* 区间累计只剩三项，默认 4 列会留空位 */
.kpis.kpis-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- 卡号体检（重复卡号修复） ---------- */
.dup-warn { padding: 10px 12px; margin-bottom: 12px; font-size: var(--fs-sm); line-height: 1.7;
  color: var(--ink-700); background: var(--amber-soft); border-left: 3px solid var(--amber); border-radius: var(--r-sm); }
.dup-list { display: flex; flex-direction: column; gap: 10px; max-height: 340px; overflow: auto; }
.dup-item { padding: 9px 12px; border: 1px solid var(--line-soft); border-radius: var(--r-sm); }
.dup-h { margin-bottom: 6px; font-size: var(--fs-sm); }
.dup-item ul { margin: 0; padding-left: 18px; font-size: var(--fs-xs); line-height: 1.9; color: var(--ink-500); }
.dup-tip { margin-top: 12px; font-size: var(--fs-xs); line-height: 1.7; color: var(--ink-400); }

/* ---------- 列表分页（司机名单 / 门岗核销记录 / 进出记录） ---------- */
.pager {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 16px; border-top: 1px solid var(--line-soft);
  background: var(--surface-2); font-size: var(--fs-xs); color: var(--ink-400);
}
.pager .pg-info b { color: var(--ink-800); font-weight: 600; }
.pager .pg-sp { flex: 1; }
.pager .pg-size { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.pager .pg-size select {
  height: 26px; padding: 0 4px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--surface); color: var(--ink-700); font-size: var(--fs-xs);
}
.pg-btns { display: flex; align-items: center; gap: 4px; }
.pg-btns button {
  min-width: 26px; height: 26px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--surface); color: var(--ink-600); font-size: var(--fs-xs); cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.pg-btns button:hover:not(:disabled):not(.on) { border-color: var(--brand); color: var(--brand-deep); }
.pg-btns button.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.pg-btns button:disabled { opacity: .45; cursor: not-allowed; }
.pg-dot { padding: 0 2px; color: var(--ink-300); }
