/* 工程师分布管理平台 —— 样式（浅色主题） */
:root {
  --brand: #1e63c8;
  --brand-dark: #16498f;
  --brand-soft: #eaf1fb;
  --bg: #f2f5f9;
  --panel: #ffffff;
  --line: #e3e9f1;
  --line-strong: #cdd8e6;
  --text: #1f2a37;
  --text-2: #5a6b80;
  --text-3: #93a1b3;
  --ok: #2e9e5b;
  --warn: #e08b1a;
  --info: #3a7bd5;
  --muted: #7b8798;
  --danger: #d94a4a;
  --shadow: 0 1px 2px rgba(24, 45, 80, .06), 0 4px 16px rgba(24, 45, 80, .06);
  --shadow-lg: 0 8px 40px rgba(24, 45, 80, .16);
  --radius: 10px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font-family: inherit; font-size: 14px; }
a { color: var(--brand); text-decoration: none; }

/* ---------------- 登录页 ---------------- */
.login-page {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(900px 500px at 12% -10%, #dbe8fb 0%, rgba(219,232,251,0) 60%),
    radial-gradient(700px 460px at 92% 108%, #dce6f7 0%, rgba(220,230,247,0) 62%),
    linear-gradient(160deg, #f7f9fd 0%, #eef3fa 100%);
}

.login-card {
  width: 396px;
  background: var(--panel);
  border-radius: 16px;
  padding: 40px 38px 34px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, .8);
  animation: rise .5s ease both;
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.login-logo {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(140deg, var(--brand) 0%, #2f86e0 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 24px; font-weight: 700;
  box-shadow: 0 6px 18px rgba(30, 99, 200, .32);
}
.login-title { font-size: 21px; font-weight: 700; margin: 20px 0 6px; letter-spacing: .5px; }
.login-sub { font-size: 13px; color: var(--text-3); margin-bottom: 28px; }
.login-field { margin-bottom: 16px; }
.login-field label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 7px; }
.login-field input {
  width: 100%; height: 44px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: 9px;
  background: #fbfcfe; transition: .18s; outline: none;
}
.login-field input:focus {
  border-color: var(--brand); background: #fff;
  box-shadow: 0 0 0 3px rgba(30, 99, 200, .12);
}
.login-btn {
  width: 100%; height: 45px; margin-top: 10px;
  background: linear-gradient(135deg, var(--brand) 0%, #2a7fdc 100%);
  color: #fff; border: 0; border-radius: 9px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  box-shadow: 0 6px 16px rgba(30, 99, 200, .28); transition: .18s;
}
.login-btn:hover { transform: translateY(-1px); box-shadow: 0 9px 22px rgba(30, 99, 200, .34); }
.login-btn:active { transform: none; }
.login-err {
  margin-top: 14px; font-size: 13px; color: var(--danger);
  background: #fdf1f1; border: 1px solid #f7d9d9;
  padding: 9px 12px; border-radius: 8px; display: none;
}
.login-tip {
  margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line);
  font-size: 12.5px; color: var(--text-3); line-height: 1.8;
}
.login-tip b { color: var(--text-2); font-weight: 600; }

/* ---------------- 主框架 ---------------- */
.app { height: 100%; display: flex; flex-direction: column; }

.topbar {
  height: 60px; flex: 0 0 60px;
  background: var(--panel); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px; padding: 0 16px;
  z-index: 30; box-shadow: 0 1px 3px rgba(24, 45, 80, .05);
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 15px;
  white-space: nowrap; flex: 0 0 auto; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: #fff; border: 1px solid #dbe5f3;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 7px rgba(30, 99, 200, .18);
  flex: 0 0 32px;
}
.brand-mark img { width: 20px; height: 23px; display: block; object-fit: contain; }
.brand-txt { letter-spacing: .2px; }
.brand-by {
  font-size: 11px; font-weight: 600; color: var(--brand);
  background: var(--brand-soft); border: 1px solid #d5e4f8;
  border-radius: 6px; padding: 2px 6px; letter-spacing: .5px;
}
.crumb {
  display: flex; align-items: center; gap: 6px; font-size: 13.5px;
  color: var(--text-2); flex: 0 1 auto; min-width: 0; max-width: 300px;
  overflow: hidden;
}
.crumb span.seg {
  cursor: pointer; padding: 4px 9px; border-radius: 6px; transition: .15s;
  white-space: nowrap;
}
.crumb span.seg:hover { background: var(--brand-soft); color: var(--brand); }
.crumb span.seg.cur { color: var(--text); font-weight: 600; cursor: default; }
.crumb span.seg.cur:hover { background: transparent; }
.crumb i { color: var(--text-3); font-style: normal; font-size: 12px; }

/* 视图切换：三段控件 */
.viewtabs {
  display: flex; align-items: center; gap: 2px; flex: 0 0 auto;
  background: #f0f4f9; border: 1px solid var(--line); border-radius: 10px; padding: 3px;
}
.vtab {
  height: 30px; padding: 0 13px; border: 0; background: transparent;
  border-radius: 7px; color: var(--text-2); cursor: pointer;
  font-size: 13px; font-weight: 500; transition: .16s;
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
}
.vtab .vtab-i { font-size: 12px; opacity: .75; }
.vtab:hover { color: var(--brand); background: rgba(255,255,255,.7); }
.vtab.on {
  background: #fff; color: var(--brand); font-weight: 600;
  box-shadow: 0 1px 3px rgba(24, 45, 80, .12);
}
.vtab.on .vtab-i { opacity: 1; }

.top-search {
  position: relative; flex: 1 1 auto; max-width: 320px; min-width: 150px;
}
.top-search input {
  width: 100%; height: 34px; padding: 0 12px 0 32px;
  border: 1px solid var(--line-strong); border-radius: 9px;
  background: #fbfcfe; outline: none; transition: .18s;
}
.top-search input:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(30,99,200,.1); }
.top-search::before {
  content: "⌕"; position: absolute; left: 11px; top: 50%;
  transform: translateY(-52%); color: var(--text-3); font-size: 15px;
  pointer-events: none;
}

.top-acts { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

.btn {
  height: 34px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--line-strong);
  background: #fff; color: var(--text); cursor: pointer; transition: .16s;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.btn .bi { font-size: 12.5px; opacity: .8; line-height: 1; }
.btn:hover { border-color: var(--brand); color: var(--brand); background: #fafcff; }
.btn:hover .bi { opacity: 1; }
.btn.primary {
  background: linear-gradient(135deg, var(--brand) 0%, #2a7fdc 100%);
  border-color: transparent; color: #fff; font-weight: 600;
  box-shadow: 0 3px 10px rgba(30, 99, 200, .24);
}
.btn.primary .bi { opacity: 1; font-weight: 700; }
.btn.primary:hover { filter: brightness(1.06); color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--brand-soft); color: var(--brand); }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12.5px; border-radius: 7px; }

/* 用户区：头像 + 下拉菜单 */
.user-chip { position: relative; flex: 0 0 auto; padding-left: 14px; border-left: 1px solid var(--line); }
.user-btn {
  display: flex; align-items: center; gap: 9px; height: 40px; padding: 0 8px 0 6px;
  background: transparent; border: 1px solid transparent; border-radius: 10px;
  cursor: pointer; transition: .16s; font-family: inherit;
}
.user-btn:hover { background: #f6f9fd; border-color: var(--line); }
.user-btn .caret { font-size: 10px; color: var(--text-3); margin-left: -2px; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; flex: 0 0 30px;
  background: linear-gradient(140deg, var(--brand) 0%, #2f86e0 100%);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}
.user-name { font-size: 13.5px; color: var(--text); font-weight: 500; max-width: 92px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.user-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 208px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-lg); padding: 8px; z-index: 40;
  opacity: 0; pointer-events: none; transform: translateY(-6px);
  transition: .18s;
}
.user-menu.on { opacity: 1; pointer-events: auto; transform: none; }
.um-head { display: flex; align-items: center; gap: 10px; padding: 8px 10px 10px; }
.um-ava {
  width: 36px; height: 36px; border-radius: 10px; flex: 0 0 36px;
  background: linear-gradient(140deg, var(--brand) 0%, #2f86e0 100%); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700;
}
.um-name { font-size: 13.5px; font-weight: 600; }
.um-role { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.um-sep { height: 1px; background: var(--line); margin: 2px 4px 6px; }
.um-item {
  display: flex; align-items: center; gap: 9px; width: 100%; height: 34px;
  padding: 0 10px; border: 0; background: transparent; border-radius: 8px;
  color: var(--text-2); font-size: 13px; cursor: pointer; text-align: left;
  font-family: inherit; transition: .14s;
}
.um-item:hover { background: var(--brand-soft); color: var(--brand); }
.um-item.danger:hover { background: #fdf1f1; color: var(--danger); }
.um-item .bi { font-size: 12.5px; }

/* ---------------- 主体 ---------------- */
.main { flex: 1; display: flex; min-height: 0; }

/* 侧栏宽度：**就钉死 344px，别再按视口去撑**。
   2026-10-10 试过「撑宽侧栏 → 把地图框压回自然比例」这条路：侧栏在 2560 屏上会到 892px
   （占三分之一），名单只好改两列，用户看到直接一句「这tm是啥啊」——已回退。
   结论：地图形状和留白的矛盾，只能在**地图数据/画法**那边解（见 app.js 的 ASPECT_MAX 注释）。 */
.sidebar {
  width: 344px; flex: 0 0 344px; background: var(--panel);
  border-right: 1px solid var(--line); display: flex; flex-direction: column;
  min-height: 0;
}

.side-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 18px 18px 4px;
}
.sh-l { min-width: 0; }
.sh-t { display: block; font-size: 16px; font-weight: 800; color: var(--text);
  letter-spacing: .2px; }
.sh-hint { display: block; font-size: 11.5px; color: var(--text-3); margin-top: 3px; }
.sh-s {
  font-size: 11.5px; font-weight: 600; color: var(--brand); background: var(--brand-soft);
  border: 1px solid #d5e4f8;
  border-radius: 20px; padding: 3px 11px; flex: 0 0 auto;
  max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---- 左侧统计：2×2 指标卡，卡内自带微底色，脱离「表单感」 ---- */
.stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 14px 18px 16px;
}
.stat {
  position: relative; overflow: hidden;
  background: #fbfcfe;
  border: 1px solid var(--line); border-radius: 14px;
  padding: 13px 14px 12px 15px;
  transition: .18s;
}
.stat::before {
  content: ''; position: absolute; left: 0; top: 0; right: 0; height: 3px;
  background: var(--brand); opacity: .9;
}
.stat::after {
  content: ''; position: absolute; right: -22px; bottom: -22px;
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--brand); opacity: .055;
}
.stat:hover { background: #fff; border-color: #d3e0f2;
  box-shadow: 0 5px 16px rgba(24, 45, 80, .09); transform: translateY(-1px); }
.stat .v { font-size: 24px; font-weight: 800; color: var(--text); line-height: 1.05;
  font-variant-numeric: tabular-nums; letter-spacing: -.3px; }
.stat .v .u { font-size: 12px; font-weight: 500; color: var(--text-3); margin-left: 3px; }
.stat .k { font-size: 11.5px; color: var(--text-3); margin-top: 5px; }
.stat.s1::before, .stat.s1::after { background: var(--brand); }
.stat.s2::before, .stat.s2::after { background: #2e9e5b; }
.stat.s3::before, .stat.s3::after { background: #e08b1a; }
.stat.s4::before, .stat.s4::after { background: #6b7f99; }
.stat.alert::before, .stat.alert::after { background: var(--warn); }
.stat.alert .v { color: var(--warn); }

.filter { padding: 0 18px 14px; display: flex; gap: 9px; }
.fld-mini { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.fld-mini label { font-size: 11px; color: var(--text-3); padding-left: 2px; letter-spacing: .2px; }
.filter select {
  height: 34px; padding: 0 10px; border: 1px solid var(--line-strong);
  border-radius: 9px; background: #fbfcfe; color: var(--text-2);
  outline: none; width: 100%; cursor: pointer; transition: .16s;
}
.filter select:hover { border-color: #b9c9dd; background: #fff; }
.filter select:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(30,99,200,.1); }

/* ================= 能力检索（侧栏多条件筛选） ================= */
.facet { position: relative; padding: 0 18px 12px; }
.facet-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 2px 2px 7px;
}
.facet-head .fh-t { font-size: 11px; color: var(--text-3); letter-spacing: .2px; }
.facet-head .fh-c {
  font-size: 11px; color: var(--text-3); cursor: pointer;
  padding: 1px 6px; border-radius: 6px; transition: .15s;
}
.facet-head .fh-c:hover { color: var(--brand); background: var(--brand-soft); }

.facet-bar { display: flex; flex-wrap: wrap; gap: 6px; }
.fc-btn {
  display: inline-flex; align-items: center; gap: 5px;
  height: 27px; padding: 0 9px; cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: 8px;
  background: #fbfcfe; color: var(--text-2);
  font-size: 12px; font-family: inherit; line-height: 1;
  transition: .15s;
}
.fc-btn:hover { border-color: #b9c9dd; background: #fff; color: var(--brand); }
.fc-btn.on { border-color: #bcd4f5; background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.fc-btn.on i {
  font-style: normal; font-size: 10.5px; font-weight: 700;
  min-width: 15px; height: 15px; line-height: 15px; text-align: center;
  border-radius: 8px; background: var(--brand); color: #fff; padding: 0 4px;
}
.fc-btn.off { cursor: not-allowed; color: #b6c1cf; border-style: dashed; background: #fafbfd; }
.fc-btn.off:hover { border-color: var(--line-strong); background: #fafbfd; color: #b6c1cf; }

.facet-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.facet-chips .fc-hint { font-size: 11px; color: #a9b6c6; line-height: 1.5; }
.fchip {
  display: inline-flex; align-items: center; gap: 4px;
  height: 23px; padding: 0 6px 0 8px; border-radius: 7px;
  background: var(--brand-soft); border: 1px solid #cfe0f7; color: var(--brand);
  font-size: 11.5px; cursor: pointer; transition: .15s;
}
.fchip:hover { background: #e4eefb; }
.fchip b { font-weight: 700; opacity: .55; font-size: 12px; }

/* 下拉面板：盖在名录上方，别把条件按行摊开（344px 摆不下） */
.facet-pop {
  display: none;
  position: absolute; left: 18px; right: 18px; top: 100%;
  z-index: 30; margin-top: -4px;
  background: #fff; border: 1px solid var(--line-strong); border-radius: 13px;
  box-shadow: 0 16px 40px rgba(24,45,80,.16), 0 2px 6px rgba(24,45,80,.06);
  overflow: hidden;
}
.facet-pop.on { display: block; }
.fp-head {
  display: flex; align-items: baseline; gap: 7px;
  padding: 11px 12px 8px; border-bottom: 1px solid var(--line);
}
.fp-head .fp-t { font-size: 13px; font-weight: 700; color: var(--text); }
.fp-head .fp-sub { font-size: 11px; color: var(--text-3); }
.fp-head .fp-x {
  margin-left: auto; cursor: pointer; color: var(--text-3);
  font-size: 13px; line-height: 1; padding: 2px 3px; border-radius: 5px;
}
.fp-head .fp-x:hover { color: var(--danger); background: #fdeeee; }
.fp-search {
  width: calc(100% - 20px); margin: 9px 10px 4px; height: 30px;
  padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 8px;
  background: #fbfcfe; color: var(--text); font-size: 12px; font-family: inherit; outline: none;
}
.fp-search:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(30,99,200,.1); }
.fp-list { max-height: 232px; overflow-y: auto; padding: 4px 6px 6px; }
.fp-list::-webkit-scrollbar { width: 8px; }
.fp-list::-webkit-scrollbar-thumb { background: #d5dfeb; border-radius: 4px; border: 2px solid #fff; }
.fp-opt {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 7px; border-radius: 7px; cursor: pointer; font-size: 12.5px; color: var(--text-2);
}
.fp-opt:hover { background: #f5f9ff; }
.fp-opt .bx {
  flex: 0 0 15px; width: 15px; height: 15px; border-radius: 4px;
  border: 1px solid #c3d1e2; background: #fff; position: relative; transition: .14s;
}
.fp-opt.on .bx { background: var(--brand); border-color: var(--brand); }
.fp-opt.on .bx::after {
  content: ''; position: absolute; left: 4.5px; top: 1.5px;
  width: 4px; height: 8px; border: 2px solid #fff; border-top: 0; border-left: 0;
  transform: rotate(42deg);
}
.fp-opt .tx { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fp-opt.on .tx { color: var(--brand); font-weight: 600; }
.fp-opt .ct { font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.fp-empty { padding: 20px 10px; text-align: center; font-size: 12px; color: var(--text-3); line-height: 1.7; }
.fp-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; border-top: 1px solid var(--line); background: #fbfcfe;
  font-size: 11.5px; color: var(--text-3);
}
.fp-foot .fp-clear { color: var(--brand); cursor: pointer; padding: 1px 6px; border-radius: 6px; }
.fp-foot .fp-clear:hover { background: var(--brand-soft); }


.list-head {
  padding: 0 18px 10px; font-size: 12px; color: var(--text-3);
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--line);
}
.list-head #listCount { color: var(--text-2); font-weight: 500; }
.list-head .reset {
  cursor: pointer; color: var(--brand); padding: 2px 7px; border-radius: 6px; transition: .15s;
}
.list-head .reset:hover { background: var(--brand-soft); text-decoration: none; }
.list-head .lh-acts { display: flex; align-items: center; gap: 2px; }
.list-head .reset.danger { color: var(--danger); }
.list-head .reset.danger:hover { background: #fdeeee; }

.list { flex: 1; overflow-y: auto; padding: 0 12px 24px; min-height: 0; scroll-behavior: smooth; }
.list::-webkit-scrollbar { width: 9px; }
.list::-webkit-scrollbar-track { background: transparent; }
.list::-webkit-scrollbar-thumb { background: #d5dfeb; border-radius: 5px; border: 2px solid #fff; }
.list::-webkit-scrollbar-thumb:hover { background: #bccbdd; }

/* 名录分组小标题：吸顶，滚动时始终知道自己在看哪一档 */
.lgroup {
  position: sticky; top: 0; z-index: 4;
  display: flex; align-items: center; gap: 7px;
  margin: 0 -12px 4px; padding: 9px 14px 8px;
  background: linear-gradient(#fff 78%, rgba(255,255,255,.86));
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  font-size: 11.5px; font-weight: 700; color: var(--text-2); letter-spacing: .5px;
}
.lgroup:first-child { margin-top: 0; }
.lgroup .lg-dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 7px; }
.lgroup .lg-c {
  margin-left: auto; font-weight: 600; color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

/* 名单两列（@container）随「撑宽侧栏」方案一起废掉了，别再加回来 —— 见 .sidebar 上的注释。 */

.item {
  position: relative; display: flex; gap: 12px; padding: 12px 13px 12px 14px;
  border-radius: 12px;
  cursor: pointer; transition: .16s; border: 1px solid transparent; margin-bottom: 4px;
  overflow: hidden;
}
.item::before {
  content: ''; position: absolute; left: 0; top: 50%; width: 3px; height: 0;
  border-radius: 0 3px 3px 0; background: var(--brand);
  transform: translateY(-50%); transition: height .18s ease;
}
.item:hover { background: #f8fbff; border-color: #e6eefa; }
.item:hover::before { height: 22px; }
.item.active { background: #eef4fd; border-color: #c9dcf7;
  box-shadow: 0 2px 10px rgba(30, 99, 200, .1); }
.item.active::before { height: 30px; }
.item .ava {
  width: 38px; height: 38px; flex: 0 0 38px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #fff;
  box-shadow: 0 3px 9px rgba(24, 45, 80, .18);
}
.item .mid { flex: 1; min-width: 0; }
.item .nm { font-size: 14.5px; font-weight: 700; display: flex; align-items: center; gap: 7px; }
.item .meta { font-size: 12px; color: var(--text-3); margin-top: 4px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.item .meta2 { font-size: 12px; color: var(--text-2); margin-top: 4px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.item .it-tags { display: flex; gap: 5px; margin-top: 6px; flex-wrap: wrap; }
.it-tag {
  font-size: 10.5px; color: #4a6789; background: #f0f5fc;
  border: 1px solid #e0eaf7; border-radius: 5px; padding: 1px 6px;
}

/* 列表里的等级徽标 */
.lv-pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 24px; height: 17px; padding: 0 5px; border-radius: 5px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .3px; flex: 0 0 auto;
}

.dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 7px; }

.empty { text-align: center; color: var(--text-3); font-size: 13px; padding: 46px 16px; line-height: 1.9; }
.empty .e-ico { font-size: 30px; opacity: .35; display: block; margin-bottom: 8px; }

/* ---------------- 地图 ---------------- */
.map-wrap {
  flex: 1; position: relative; min-width: 0;
  background:
    radial-gradient(760px 520px at 78% 16%, #ffffff 0%, rgba(255,255,255,0) 68%),
    radial-gradient(680px 520px at 16% 88%, #eaf2fd 0%, rgba(234,242,253,0) 70%),
    linear-gradient(168deg, #f6f9fd 0%, #eef4fb 100%);
}
#map { width: 100%; height: 100%; }

.map-tools {
  position: absolute; right: 20px; top: 20px; display: flex; flex-direction: column;
  gap: 9px; z-index: 8;
}
.tool-btn {
  width: 36px; height: 36px; border-radius: 11px; background: #fff;
  border: 1px solid var(--line); color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 2px 10px rgba(24, 45, 80, .1); font-size: 15px;
  transition: .16s;
}
.tool-btn:hover { color: var(--brand); border-color: #bcd4f5; transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(30, 99, 200, .18); }

.legend {
  position: absolute; left: 20px; bottom: 20px; z-index: 8;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 14px;
  padding: 13px 16px; box-shadow: 0 6px 26px rgba(24, 45, 80, .12);
  font-size: 12.5px; color: var(--text-2);
}
.legend .lg-row { display: flex; align-items: center; gap: 8px; margin-top: 7px; }
.legend .lg-row:first-of-type { margin-top: 0; }
.legend .lg-t { font-size: 11.5px; color: var(--text-3); margin-bottom: 9px;
  font-weight: 700; letter-spacing: .8px; }
.legend .lg-n { margin-left: auto; padding-left: 14px; color: var(--text-3);
  font-variant-numeric: tabular-nums; }
/* 地图点位改成「聚合气泡」后，图例里补一条大小说明，否则圆点大小没人看得懂 */
.legend .lg-hint {
  display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 9px;
  border-top: 1px dashed var(--line); font-size: 11.5px; color: var(--text-3);
}
.legend .lg-hint b {
  width: 13px; height: 13px; border-radius: 50%; flex: 0 0 13px;
  background: radial-gradient(circle at 38% 32%, #6ba4e8, #1e63c8);
  box-shadow: 0 1px 3px rgba(30, 99, 200, .3);
}

.map-hint {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  background: rgba(26, 37, 52, .86); color: #fff; font-size: 12.5px;
  padding: 8px 17px; border-radius: 20px; z-index: 8; pointer-events: none;
  opacity: 0; transition: opacity .3s; backdrop-filter: blur(4px);
}
.map-hint.show { opacity: 1; }

/* ---------------- 右侧区域排行（把地图两侧的留白变成信息区） ----------------
   为什么要有这块：地图自然宽高比 1.2278，宽屏下可用区比例能到 1.6，比例对不上
   → 要么裁边（切南海，合规红线）要么拉扁（用户否）。所以留白消不掉，只能拿内容填。
   宽度用 18vw 自适应：2560 屏上到 440px，正好把横向留白压到 ~35px/侧（几乎看不见）；
   窄屏走 clamp 下限 268px，再窄（<1100）直接隐藏，把宽度还给地图。 */
.rank {
  width: clamp(268px, 18vw, 440px); flex: 0 0 auto;
  background: var(--panel); border-left: 1px solid var(--line);
  display: flex; flex-direction: column; min-height: 0;
}
.rank-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 18px 18px 10px;
}
.rank-head .rk-t { font-size: 14.5px; font-weight: 700; color: var(--text); }
.rank-head .rk-s {
  font-size: 11.5px; font-weight: 600; color: var(--brand); background: var(--brand-soft);
  border: 1px solid #d5e4f8; border-radius: 20px; padding: 3px 11px;
  max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rank-sub {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 0 18px 12px; border-bottom: 1px solid var(--line);
  font-size: 11.5px; color: var(--text-3);
}
.rank-sub b { color: var(--text); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.rank-body { flex: 1; overflow: auto; padding: 8px 10px 16px; min-height: 0; }

.rk-row {
  position: relative; display: flex; align-items: center; gap: 8px;
  height: 30px; padding: 0 9px; border-radius: 8px; cursor: pointer;
  transition: background .15s ease;
}
.rk-row:hover { background: #f4f8fd; }
/* 比例条垫在文字底下（绝对定位，不参与布局）—— 表格/列表里画装饰都别用 flex 撑宽度 */
.rk-fill {
  position: absolute; left: 0; top: 6px; bottom: 6px; border-radius: 5px;
  background: linear-gradient(90deg, rgba(30, 99, 200, .13), rgba(30, 99, 200, .035));
  pointer-events: none;
}
.rk-row > span { position: relative; }
.rk-i {
  width: 20px; flex: 0 0 20px; text-align: center;
  font-size: 11px; font-weight: 700; color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.rk-i.rk-top { color: #b8860b; }
.rk-n {
  flex: 1; min-width: 0; font-size: 12.5px; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rk-c { font-size: 12.5px; font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; }
.rk-p { width: 40px; flex: 0 0 40px; text-align: right; font-size: 10.5px; color: var(--text-3);
  font-variant-numeric: tabular-nums; }
.rk-empty { padding: 40px 16px; text-align: center; font-size: 12.5px; color: var(--text-3); line-height: 1.9; }

/* ---------------- 抽屉 / 弹窗 ---------------- */
.mask {
  position: fixed; inset: 0; background: rgba(20, 34, 56, .34);
  backdrop-filter: blur(2px); z-index: 50; opacity: 0; pointer-events: none;
  transition: opacity .24s;
}
.mask.show { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: 456px; max-width: 94vw;
  background: var(--panel); z-index: 60; box-shadow: -8px 0 40px rgba(24, 45, 80, .18);
  transform: translateX(102%); transition: transform .28s cubic-bezier(.4, 0, .2, 1);
  display: flex; flex-direction: column;
}
.drawer.show { transform: none; }
.drawer-head {
  position: relative; overflow: hidden;
  padding: 24px 26px 20px; border-bottom: 1px solid var(--line);
  display: flex; gap: 15px; align-items: flex-start;
  background: linear-gradient(140deg, #f4f8fe 0%, #fff 62%);
}
.drawer-head::after {
  content: ''; position: absolute; right: -46px; top: -46px; width: 150px; height: 150px;
  border-radius: 50%; background: var(--brand); opacity: .055; pointer-events: none;
}
.drawer-head .ava {
  width: 56px; height: 56px; flex: 0 0 56px; border-radius: 15px; font-size: 21px;
  box-shadow: 0 5px 16px rgba(24, 45, 80, .22);
}
.drawer-head .info { flex: 1; min-width: 0; }
.drawer-head h3 { margin: 0; font-size: 19px; display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap; }
.drawer-head .sub { font-size: 12.5px; color: var(--text-3); margin-top: 6px; line-height: 1.6; }
.close-x {
  border: 0; background: transparent; font-size: 20px; color: var(--text-3);
  cursor: pointer; line-height: 1; padding: 2px 4px; position: relative; z-index: 1;
}
.close-x:hover { color: var(--danger); }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px 26px 28px; }
.drawer-foot {
  padding: 14px 26px; border-top: 1px solid var(--line);
  display: flex; gap: 10px; justify-content: flex-end; background: #fcfdff;
}

/* 抽屉内：速览三宫格 */
.d-facts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 4px;
}
.df {
  background: #f7fafd; border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 12px; text-align: center;
}
.df-v { font-size: 17px; font-weight: 800; color: var(--brand); line-height: 1.15;
  font-variant-numeric: tabular-nums; }
.df-k { font-size: 11px; color: var(--text-3); margin-top: 4px; }

/* 抽屉内：信息卡网格（替代原来的两列表格） */
.d-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.d-grid > .dc:only-child, .d-grid > .dc:last-child:nth-child(odd) { grid-column: 1 / -1; }
.dc {
  background: #fbfcfe; border: 1px solid var(--line); border-radius: 10px;
  padding: 9px 12px; min-width: 0;
}
.dc-k { display: block; font-size: 11px; color: var(--text-3); margin-bottom: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-v { display: block; font-size: 13px; color: var(--text); font-weight: 500;
  word-break: break-all; line-height: 1.5; }
.d-warn {
  margin-top: 10px; font-size: 12.5px; color: #94660f;
  background: #fdf8ee; border: 1px solid #f0dcae; border-radius: 10px; padding: 10px 12px;
}
.d-note { font-size: 13px; line-height: 1.85; color: var(--text-2); }

.kv { display: grid; grid-template-columns: 84px 1fr; gap: 11px 14px; font-size: 13.5px; }
.kv .k { color: var(--text-3); }
.kv .v { color: var(--text); word-break: break-all; }
.sect-t {
  font-size: 12.5px; font-weight: 700; color: var(--text-2); letter-spacing: .6px;
  margin: 22px 0 12px; padding-left: 9px; border-left: 3px solid var(--brand);
}
.sect-t:first-child { margin-top: 4px; }

/* 多选标签（厂商 / 专精细分 / 证书）*/
.tag-row { display: flex; gap: 10px; margin: 8px 0; font-size: 13.5px; align-items: flex-start; }
.tag-k { flex: 0 0 84px; color: var(--text-3); }
.tag-list { flex: 1; display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-block; padding: 2px 9px; border-radius: 6px; font-size: 12.5px;
  color: #3a5a86; background: #eef2f9; border: 1px solid #dce5f2; white-space: nowrap;
}

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 9px; border-radius: 20px; font-size: 12px; font-weight: 600;
}
.badge.sm { padding: 1px 7px; font-size: 11.5px; }

.modal {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -47%) scale(.98);
  background: var(--panel); border-radius: 14px; z-index: 60;
  box-shadow: var(--shadow-lg); width: 620px; max-width: 94vw;
  max-height: 88vh; display: flex; flex-direction: column;
  opacity: 0; pointer-events: none; transition: .22s;
}
.modal.show { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.modal.wide { width: 900px; }
.modal-head {
  padding: 18px 22px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-head h3 { margin: 0; font-size: 16.5px; }
.modal-body { padding: 20px 22px; overflow-y: auto; flex: 1; }
.modal-foot {
  padding: 14px 22px; border-top: 1px solid var(--line);
  display: flex; gap: 10px; justify-content: flex-end; align-items: center;
}

/* ---- 批量删除确认面板 ---- */
.btn.danger {
  background: linear-gradient(135deg, #e05252 0%, #c0392b 100%);
  border-color: transparent; color: #fff; font-weight: 600;
  box-shadow: 0 3px 10px rgba(192, 57, 43, .22);
}
.btn.danger:hover { filter: brightness(1.06); color: #fff; }
.btn.danger:disabled {
  background: #e8eef5; color: #a4b2c2; box-shadow: none;
  cursor: not-allowed; filter: none;
}

.del-warn {
  font-size: 12.5px; line-height: 1.75; color: #9a3b3b;
  background: #fdf3f3; border: 1px solid #f2d5d5;
  border-radius: 9px; padding: 11px 13px; margin-bottom: 16px;
}
.del-warn b { color: #c0392b; }
.del-warn code {
  background: #fff; border: 1px solid #eddada; border-radius: 5px;
  padding: 1px 5px; font-size: 11.5px; color: #a94442;
}
.del-warn u { text-decoration: none; border-bottom: 1px solid #e0a5a5; font-weight: 600; }

.del-stat {
  display: flex; align-items: baseline; gap: 9px;
  margin: 14px 0 4px; padding: 12px 16px;
  background: #fdf3f3; border: 1px solid #f2d5d5; border-radius: 10px;
  transition: .16s;
}
.del-stat .ds-n { font-size: 26px; font-weight: 800; color: #c0392b; line-height: 1; }
.del-stat .ds-t { font-size: 12.5px; color: var(--text-2); }
.del-stat.zero { background: #f7fafd; border-color: var(--line); }
.del-stat.zero .ds-n { color: var(--text-3); }

.del-confirm {
  display: flex; align-items: flex-start; gap: 9px; margin-top: 16px;
  font-size: 12.5px; color: var(--text-2); line-height: 1.6; cursor: pointer;
  background: #fbfcfe; border: 1px solid var(--line); border-radius: 9px; padding: 11px 13px;
}
.del-confirm:hover { border-color: #d9c3c3; }
.del-confirm input {
  margin-top: 2px; width: 15px; height: 15px; flex: 0 0 auto;
  accent-color: var(--danger); cursor: pointer;
}
.del-confirm u { text-decoration: none; border-bottom: 1px solid #d9c3c3; font-weight: 600; color: #c0392b; }

.bd-empty { padding: 22px; text-align: center; color: var(--text-3); font-size: 12.5px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fld { display: flex; flex-direction: column; gap: 6px; }
.fld.full { grid-column: 1 / -1; }
.fld label { font-size: 12.5px; color: var(--text-2); }
.fld label i { color: var(--danger); font-style: normal; }
.fld input, .fld select, .fld textarea {
  height: 38px; padding: 0 11px; border: 1px solid var(--line-strong);
  border-radius: 8px; background: #fbfcfe; outline: none; transition: .16s; width: 100%;
}
.fld textarea { height: 74px; padding: 9px 11px; resize: vertical; line-height: 1.6; }
.fld input:focus, .fld select:focus, .fld textarea:focus {
  border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(30, 99, 200, .1);
}
.fld .hint { font-size: 11.5px; color: var(--text-3); }

.drop {
  border: 2px dashed var(--line-strong); border-radius: var(--radius);
  padding: 26px; text-align: center; color: var(--text-3); font-size: 13.5px;
  transition: .2s; background: #fafcff;
}
.drop.over { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.drop b { color: var(--brand); }

.paste-area { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.paste-area textarea {
  width: 100%; height: 150px; padding: 11px; border: 1px solid var(--line-strong);
  border-radius: 9px; font-family: Consolas, "Courier New", monospace; font-size: 12.5px;
  line-height: 1.6; outline: none; resize: vertical; background: #fbfcfe;
}
.paste-area textarea:focus { border-color: var(--brand); background: #fff; }

.preview { max-height: 240px; overflow: auto; border: 1px solid var(--line); border-radius: 9px; }
.preview table { border-collapse: collapse; width: 100%; font-size: 12.5px; }
.preview th, .preview td {
  padding: 7px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap;
}
.preview th { background: #f4f7fc; color: var(--text-2); font-weight: 600; position: sticky; top: 0; }
.preview tr:last-child td { border-bottom: 0; }
.preview .miss { color: var(--warn); }

/* ---- 导入校验：结论块 + 列对照表 ---- */
.sec-t {
  font-size: 12px; font-weight: 600; color: var(--text-2);
  margin: 14px 0 6px; letter-spacing: .3px;
}
.vblock {
  font-size: 12.5px; line-height: 1.75; border-radius: 9px;
  padding: 10px 13px; margin-bottom: 10px; border: 1px solid var(--line);
}
.vblock.ok  { background: #f1faf4; border-color: #b7e3c6; color: #1c6b3f; }
.vblock.err { background: #fdf2f2; border-color: #f0bcbc; color: #a72b2b; }
.vblock.warn{ background: #fdf8ee; border-color: #f0dcae; color: #8a5f10; }
.vblock ul { margin: 6px 0 0; padding-left: 20px; }
.vblock li { margin-bottom: 3px; }

.colmap td { white-space: normal; font-size: 12.5px; }
.colmap td.okc { color: #1c6b3f; }
.colmap td.unk { color: #b3261e; font-weight: 600; background: #fdf2f2; }
.colmap td.ign { color: var(--text-3); }
.colmap .dim { color: #9aa7b6; }

.toast-wrap {
  position: fixed; top: 76px; left: 50%; transform: translateX(-50%);
  z-index: 200; display: flex; flex-direction: column; gap: 9px; align-items: center;
}
.toast {
  background: rgba(31, 42, 55, .92); color: #fff; padding: 10px 20px;
  border-radius: 9px; font-size: 13.5px; box-shadow: var(--shadow-lg);
  animation: tdrop .26s ease both; max-width: 70vw;
}
.toast.ok { background: rgba(30, 130, 78, .95); }
.toast.err { background: rgba(190, 60, 60, .95); }
@keyframes tdrop { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }

.tip-line {
  font-size: 12.5px; color: var(--text-3); line-height: 1.7;
  background: #f7fafd; border: 1px solid var(--line);
  border-radius: 8px; padding: 10px 12px; margin-bottom: 14px;
}

.row-flex { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ================= 数据看板 ================= */
.dash {
  position: fixed; inset: 0; z-index: 90;
  background: #f4f7fb; display: none; flex-direction: column;
}
.dash.on { display: flex; }

.dash-head {
  flex: 0 0 auto; height: 76px; padding: 0 30px;
  background: var(--panel); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.dh-left { display: flex; align-items: center; gap: 15px; min-width: 0; }
.dh-back {
  width: 36px; height: 36px; flex: 0 0 36px; border-radius: 11px;
  border: 1px solid var(--line); background: #fff; color: var(--text-2);
  font-size: 16px; cursor: pointer; transition: .16s; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.dh-back:hover { border-color: #bcd4f5; color: var(--brand); background: #f7faff;
  transform: translateX(-1px); }
.dh-title { font-size: 21px; font-weight: 800; color: var(--text); letter-spacing: -.2px; }
.dh-sub { font-size: 12.5px; color: var(--text-3); margin-top: 3px; }
.dh-right { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.dh-tip { font-size: 12.5px; color: var(--text-3); }
.dh-div { width: 1px; height: 22px; background: var(--line); margin: 0 2px; }

.dash-body { flex: 1; overflow: auto; padding: 22px 30px 38px; }

/* KPI 指标卡 */
.kpi-row {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-bottom: 22px;
}
.kpi {
  position: relative; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 18px 16px; box-shadow: 0 1px 2px rgba(24, 45, 80, .05), 0 6px 20px rgba(24, 45, 80, .06);
  transition: .18s;
}
.kpi:hover { border-color: #d3e0f2; box-shadow: 0 8px 26px rgba(24,45,80,.12);
  transform: translateY(-2px); }
.kpi::before {
  content: ''; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--brand);
}
.kpi::after {
  content: ''; position: absolute; right: -26px; top: -26px; width: 84px; height: 84px;
  border-radius: 50%; background: var(--brand); opacity: .06;
}
.kpi.k2::before { background: #2e9e5b; } .kpi.k2::after { background: #2e9e5b; }
.kpi.k3::before { background: #e08b1a; } .kpi.k3::after { background: #e08b1a; }
.kpi.k4::before { background: #1e63c8; } .kpi.k4::after { background: #1e63c8; }
.kpi.k5::before { background: #0891b2; } .kpi.k5::after { background: #0891b2; }
.kpi.k6::before { background: #6b7f99; } .kpi.k6::after { background: #6b7f99; }
.kpi .k-v { font-size: 32px; font-weight: 800; color: var(--text); line-height: 1.05;
  font-variant-numeric: tabular-nums; letter-spacing: -.8px; }
.kpi .k-v .unit { font-size: 13px; font-weight: 500; color: var(--text-3); margin-left: 4px;
  letter-spacing: 0; }
.kpi .k-l { font-size: 12.5px; color: var(--text-2); margin-top: 7px; font-weight: 500; }
.kpi .k-n { font-size: 11.5px; color: var(--text-3); margin-top: 3px; }

/* 图表网格 */
.chart-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ccard {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 1px 2px rgba(24, 45, 80, .05), 0 6px 20px rgba(24, 45, 80, .06);
  padding: 17px 19px 10px;
  transition: .18s;
}
.ccard:hover { border-color: #d3e0f2; box-shadow: 0 8px 26px rgba(24,45,80,.12); }
.ccard h4 {
  margin: 0 0 3px; font-size: 14.5px; font-weight: 700; color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.ccard h4::before {
  content: ''; width: 3px; height: 15px; background: var(--brand); border-radius: 2px;
}
.ccard .c-note { font-size: 11.5px; color: var(--text-3); margin: 0 0 8px 11px; }
.chart { width: 100%; height: 224px; }
.chart.tall { height: 258px; }
/* 无数据占位：斜纹底 + 一句话说明，别再画没有数据的空环/空白卡 */
.chart-empty {
  height: 100%; border-radius: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  color: var(--text-3); font-size: 13px; letter-spacing: .3px;
  background: repeating-linear-gradient(45deg, #fbfdff, #fbfdff 9px, #f3f8fe 9px, #f3f8fe 18px);
}
.chart-empty em { font-style: normal; font-size: 11.5px; color: #aab7c7; }

/* ================= 工程师总览（省级分组总表） ================= */
.rs-wrap {
  background: var(--panel); border: 1px solid var(--line-strong); border-radius: 16px;
  box-shadow: 0 1px 2px rgba(24, 45, 80, .05), 0 8px 26px rgba(24, 45, 80, .09);
  overflow: auto; max-height: calc(100vh - 262px);
}
.rs-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px;
  table-layout: auto; }

/* 表头：白底 + 1px 字距 + 实线下划线（不是灰块），底下压一层投影 */
.rs-table thead th {
  position: sticky; top: 0; z-index: 5;
  background: #fff; color: var(--text-2); font-weight: 700; font-size: 11px;
  letter-spacing: 1.2px;
  text-align: left; padding: 16px 14px 13px;
  border-bottom: 2px solid var(--line-strong);
  white-space: nowrap;
}
.rs-table thead th.rs-c-num { font-size: 11px; }
.rs-table thead th.rs-c-dim { color: #c3ccd8; }
.rs-table thead th::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -9px; height: 9px;
  background: linear-gradient(rgba(24,45,80,.07), transparent); pointer-events: none;
}
.rs-table th.rs-c-num, .rs-table td.rs-c-num { text-align: right; width: 62px; }
.rs-table th.rs-c-dim, .rs-table td.rs-c-dim { color: #b3bdca; width: 54px; }
.rs-table th.rs-c-lvbar, .rs-table td.rs-c-lvbar { width: 132px; padding-left: 18px; }

/* 数据行：上下留白拉开 + 明确的横向分隔线，眼睛有落脚点 */
.rs-table td {
  padding: 13px 14px; border-bottom: 1px solid #e8eef6; vertical-align: middle;
  font-variant-numeric: tabular-nums; background: #fff;
}

/* 三级层次拉开：省行 > 市行 > 成员行，靠底色 + 字重 + 分隔线分级 */
.rs-lv1 > td {
  background: linear-gradient(90deg, #dfeafa 0%, #edf5fd 55%, #f8fbfe 100%);
  font-weight: 800; color: var(--text); font-size: 14.5px;
  border-top: 2px solid #b9d0ec;
  border-bottom: 2px solid #b9d0ec;
  padding-top: 16px; padding-bottom: 16px;
  box-shadow: 0 2px 8px rgba(24, 45, 80, .06);
}
.rs-lv1:first-child > td { border-top: 0; }
.rs-lv1 > td:first-child { box-shadow: inset 6px 0 0 var(--brand), 0 2px 8px rgba(24,45,80,.06);
  padding-left: 17px; }
.rs-lv1 .rs-pname { letter-spacing: .4px; }
.rs-lv1 .rs-tag {
  font-size: 10.5px; font-weight: 600; color: var(--brand); margin-left: 9px;
  background: #fff; border: 1px solid #d3e2f6; border-radius: 20px; padding: 2px 9px;
}
.rs-lv1 .rs-num.hi { font-size: 15px; }
.rs-lv1 .rs-caret { background: #fff; }

/* 二级：地级市 —— 斑马纹让行与行分开（alt 行淡底），缩进 + 引导线 */
.rs-lv2 > td { background: #fff; }
.rs-lv2.alt > td { background: #f7fafd; }
.rs-lv2 .rs-name { padding-left: 34px; position: relative; font-weight: 600;
  color: var(--text); font-size: 13.5px; }
.rs-lv2 .rs-name::before {
  content: ''; position: absolute; left: 17px; top: -18px; bottom: 50%;
  border-left: 1px dashed #bdcfe5; border-bottom: 1px dashed #bdcfe5;
  width: 12px; border-radius: 0 0 0 6px;
}
.rs-lv2:hover > td { background: #eff7ff; }

/* 第三层：成员行（整行铺成员卡）*/
.rs-lv3 > td {
  background: #fdfefe; padding: 12px 14px 14px;
  border-bottom: 1px solid #e8eef6;
}

.rs-num { color: var(--text-2); font-weight: 500; }
.rs-num.hi { color: var(--brand); font-weight: 800; }
.rs-on { color: #2e9e5b; font-weight: 700; }
.rs-on.zero { color: #c3ccd8; font-weight: 400; }
.rs-dim.zero { color: #d5dce5; }
.rs-dim.has { color: #d97706; font-weight: 700; }

/* 人数列：数字右对齐，左侧一条按占比伸缩的竖条（宽度固定，不撑表格） */
.rs-cnt-cell { width: 76px; text-align: right; white-space: nowrap; }
.rs-cnt-cell .rs-cnt-n {
  font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums;
  display: inline-block; min-width: 18px;
}
.rs-cnt-cell .rs-cnt-b {
  display: inline-block; width: 3px; border-radius: 2px; margin-right: 9px;
  background: var(--brand); vertical-align: middle; max-height: 15px;
}
.rs-lv2 .rs-cnt-cell .rs-cnt-n { font-weight: 600; color: var(--text-2); font-size: 12.5px; }
.rs-lv2 .rs-cnt-cell .rs-cnt-b { background: #8dbae6; max-height: 13px; }

/* 等级构成条：把 L1–L4 占比摊成一条彩色横段，行末一眼看梯队 */
.rs-c-lvbar { vertical-align: middle; }
.rs-lvbar {
  display: flex; align-items: stretch; gap: 2px;
  width: 100%; height: 9px; border-radius: 5px; overflow: hidden;
  background: #eef2f7;
}
.rs-lvbar .lb { display: block; border-radius: 2px; min-width: 3px; }
.lb-L1 { background: #6ba7e0; }
.lb-L2 { background: #3fae74; }
.lb-L3 { background: #1e63c8; }
.lb-L4 { background: #6a5ae0; }
.rs-lvbar-none { color: #d5dce5; font-size: 12px; }
/* 省行的构成条粗一档，视觉权重压住市级 */
.rs-lv1 .rs-lvbar { height: 11px; }
.rs-lv2 .rs-lvbar { height: 8px; opacity: .92; }

/* 成员卡：头像 + 姓名 + 等级 + 岗位/地区，比小药丸更有实感 */
.rs-mem { display: flex; flex-wrap: wrap; gap: 9px; padding: 2px 0 2px 60px; }
.rs-card {
  display: flex; align-items: center; gap: 9px;
  background: #fff; border: 1px solid #e3eaf4; border-radius: 10px;
  padding: 6px 12px 6px 7px; cursor: pointer;
  transition: all .14s ease; max-width: 260px;
}
.rs-card:hover { border-color: #a9c8ee; background: #f6faff;
  transform: translateY(-1px); box-shadow: 0 4px 12px rgba(30,99,200,.14); }
.rs-card .rc-ava {
  width: 26px; height: 26px; flex: 0 0 26px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff;
}
.rs-card .rc-mid { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rs-card .rc-nm {
  font-size: 12.5px; font-weight: 700; color: var(--text);
  display: flex; align-items: center; gap: 5px; white-space: nowrap;
}
.rs-card .rc-lv {
  font-style: normal; font-size: 9.5px; font-weight: 800; letter-spacing: .3px;
  border-radius: 4px; padding: 1px 4px; background: #eaf1fb; color: #1e63c8;
}
.rs-card.lv-L1 .rc-lv { background: #e9f2fc; color: #3d86cf; }
.rs-card.lv-L2 .rc-lv { background: #e8f6ee; color: #2e9e5b; }
.rs-card.lv-L3 .rc-lv { background: #e6eefb; color: #1e63c8; }
.rs-card.lv-L4 .rc-lv { background: #ecebfc; color: #5348cf; }
.rs-card.miss { border-style: dashed; border-color: #e6d5b8; background: #fffdf8; }
.rs-card.miss .rc-lv { background: #fdf3e0; color: #b8860b; }
.rs-card .rc-sub {
  font-size: 10.5px; color: var(--text-3); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 190px;
}

/* 折叠箭头：带底色的圆角小方块，展开态转 90° 变蓝 */
.rs-caret {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; flex: 0 0 20px; border-radius: 6px;
  color: var(--text-3); cursor: pointer; user-select: none; font-size: 9px;
  background: #fff; border: 1px solid #dbe4ef;
  transition: transform .15s ease, background .15s ease, color .15s ease,
              border-color .15s ease;
}
.rs-caret:hover { background: #e8f0fc; border-color: #cfe0f6; color: var(--brand); }
.rs-caret.open { transform: rotate(90deg); background: var(--brand);
  border-color: var(--brand); color: #fff; }
.rs-caret.leaf { visibility: hidden; }

/* 兼容旧的药丸样式（其他地方仍在用） */
.rs-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: #f3f7fc; border: 1px solid #e2eaf5; border-radius: 20px;
  padding: 4px 11px; font-size: 12px; color: var(--text-2); cursor: pointer;
  transition: all .14s ease;
}
.rs-chip:hover { background: #e6efff; border-color: #bcd4f5; color: var(--brand); }
.rs-chip i {
  font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--text-3);
  background: #fff; border-radius: 9px; padding: 1px 5px; border: 1px solid #e6ecf4;
}

.rs-empty { color: var(--text-3); padding: 30px; text-align: center; }
.rs-bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 0 0 12px; font-size: 12.5px; color: var(--text-3);
}
.rs-bar b { color: var(--text-2); }
.rs-search-wrap { position: relative; }
.rs-search-wrap .rs-si {
  position: absolute; left: 10px; top: 50%; transform: translateY(-52%);
  color: var(--text-3); font-size: 14px; pointer-events: none;
}
.rs-search, .rs-sel {
  height: 34px; border: 1px solid var(--line); border-radius: 10px;
  padding: 0 11px; font-size: 12.5px; color: var(--text); background: #fbfcfe;
  font-family: inherit; outline: none; transition: .16s;
}
.rs-search { width: 216px; padding-left: 30px; }
.rs-sel { max-width: 150px; cursor: pointer; }
.rs-search:focus, .rs-sel:focus {
  border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(30,99,200,.1);
}
.rs-search::placeholder { color: var(--text-3); }

@media (max-width: 1300px) {
  .kpi-row { grid-template-columns: repeat(3, 1fr); }
  .chart-grid { grid-template-columns: repeat(2, 1fr); }
  .rs-search { width: 150px; }
  .viewtabs .vtab { padding: 0 9px; }
  .top-acts .btn { padding: 0 10px; }
}
@media (max-width: 1180px) {
  .crumb { display: none; }
  .brand-by { display: none; }
}
/* 窄屏优先保地图：右侧排行让位（留白问题在窄屏本来就不明显） */
@media (max-width: 1100px) {
  .rank { display: none; }
}
@media (max-width: 980px) {
  .sidebar { width: 292px; flex-basis: 292px; }
  .top-search { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .vtab .vtab-i { display: none; }
}
