/* ============================================================
   自用查询 · v2 界面层（2026-11-19）
   在 styles.css（基础组件与各模块表格）之上：
   1. 全局外壳：左侧深色导航 + 内容区画布
   2. 页头：面包屑标题 / 视图标签 / 操作
   3. 画布式布局：工具栏与汇总浮在灰底上，数据表是一张白色卡片
   4. 总览页、搜索与跳转（Ctrl K）、登录页
   5. 手机端：侧栏变抽屉
   ============================================================ */

:root {
  --side-w: 232px;
  --side-bg: #0d1424;
  --side-bg-2: #111a2e;
  --side-line: rgba(255, 255, 255, 0.07);
  --side-text: #a9b3c7;
  --side-text-2: #6f7b93;
  --side-active: #7ea2ff;
  --canvas-px: 20px;
  --card-radius: 12px;

  /* 模块色：只用于图标底色与少量强调 */
  --m-dept: #2356d8;  --m-dept-w: #edf2fd;
  --m-ana: #0f7b6c;   --m-ana-w: #e6f5f2;
  --m-sb: #b45309;    --m-sb-w: #fdf2e5;
  --m-fis: #6b3fb5;   --m-fis-w: #f3eefc;
  --m-stf: #0e7490;   --m-stf-w: #e4f3f7;
  --m-std: #0d7a55;   --m-std-w: #e6f5ee;
}

body { background: var(--bg); }
::selection { background: rgba(35, 86, 216, 0.16); }

/* 细滚动条（桌面） */
@media (min-width: 861px) and (pointer: fine) {
  .data, .dash-main, .side-nav, .dw-bd, .dlg-bd, .cmdk-list, .std-side-bd {
    scrollbar-width: thin;
    scrollbar-color: #c9ced8 transparent;
  }
  .data::-webkit-scrollbar, .dash-main::-webkit-scrollbar, .dw-bd::-webkit-scrollbar,
  .dlg-bd::-webkit-scrollbar, .cmdk-list::-webkit-scrollbar, .std-side-bd::-webkit-scrollbar { width: 10px; height: 10px; }
  .data::-webkit-scrollbar-thumb, .dash-main::-webkit-scrollbar-thumb, .dw-bd::-webkit-scrollbar-thumb,
  .dlg-bd::-webkit-scrollbar-thumb, .cmdk-list::-webkit-scrollbar-thumb, .std-side-bd::-webkit-scrollbar-thumb {
    background: #cdd2db;
    border: 3px solid transparent;
    border-radius: 99px;
    background-clip: padding-box;
  }
  .data::-webkit-scrollbar-thumb:hover { background-color: #aeb5c2; }
  .data::-webkit-scrollbar-corner { background: transparent; }
}

.kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--surface);
  color: var(--text-3);
  font: 600 10.5px/1 var(--font);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* ============================================================
   1. 左侧导航
   ============================================================ */
.side {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  display: none;
  flex-direction: column;
  width: var(--side-w);
  padding: 12px 10px 10px;
  background: linear-gradient(180deg, var(--side-bg-2) 0%, var(--side-bg) 42%);
  color: var(--side-text);
  border-right: 1px solid #070b14;
}
body.shell-on .side { display: flex; }

.side-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 4px 14px;
}
.side-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 2px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: #fff;
  text-align: left;
}
.side-brand:hover .brand-mark { transform: translateY(-1px); }
.brand-mark {
  background: linear-gradient(140deg, #3d72f7 0%, #2148c9 100%);
  box-shadow: 0 4px 14px rgba(35, 86, 216, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: transform 0.16s var(--ease-out);
}
.side .brand-mark { width: 32px; height: 32px; border-radius: 9px; }
.side-brand-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.side-brand-txt b { font-size: 14.5px; font-weight: 650; color: #f3f5fa; white-space: nowrap; }
.side-brand-txt small { font-size: 11.5px; color: var(--side-text-2); white-space: nowrap; }
.side-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--side-text);
}

.side-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  margin: 0 2px 6px;
  padding: 0 7px 0 10px;
  border: 1px solid var(--side-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: #8692aa;
  font-size: 13px;
  text-align: left;
  transition: background 0.14s, border-color 0.14s, color 0.14s;
}
.side-search:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.12); color: #c9d1e1; }
.side-search .side-lbl { flex: 1; }
.side .kbd { border-color: rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.05); color: #8692aa; }

.side-nav {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  overflow-y: auto;
  margin: 0 -4px;
  padding: 4px 4px 8px;
  scrollbar-width: none;
}
.side-nav::-webkit-scrollbar { display: none; }
.side-group {
  padding: 16px 10px 6px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--side-text-2);
}
.side-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--side-text);
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
  transition: background 0.14s var(--ease-out), color 0.14s var(--ease-out);
}
.side-item .ic { color: #7d89a2; transition: color 0.14s; }
.side-item:hover { background: rgba(255, 255, 255, 0.055); color: #eef1f7; }
.side-item:hover .ic { color: #c3cbdb; }
.side-item:active { transform: scale(0.985); }
.side-item.active {
  background: linear-gradient(90deg, rgba(92, 132, 255, 0.2), rgba(92, 132, 255, 0.08));
  color: #fff;
  font-weight: 600;
}
.side-item.active .ic { color: var(--side-active); }
.side-item.active::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--side-active);
}
.side-item:focus-visible, .side-user:focus-visible, .side-search:focus-visible, .side-brand:focus-visible {
  outline: 2px solid var(--side-active);
  outline-offset: -2px;
}
.side-lbl { overflow: hidden; text-overflow: ellipsis; }

.side-ft {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 0 -4px;
  padding: 8px 4px 0;
  border-top: 1px solid var(--side-line);
}
.side-user {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 6px;
  padding: 7px 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  text-align: left;
  transition: background 0.14s;
}
.side-user:hover { background: rgba(255, 255, 255, 0.055); }
.side-user .avatar {
  flex: none;
  width: 30px;
  height: 30px;
  background: linear-gradient(140deg, #4b6ef0, #7a5cf0);
  color: #fff;
  font-size: 13px;
}
.side-user-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.side-user-txt b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 600; color: #eef1f7; }
.side-user-txt small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; color: var(--side-text-2); }
.side-user-more { color: var(--side-text-2); }
.side-scrim { display: none; }

/* 收起侧栏（桌面） */
@media (min-width: 861px) {
  body.side-collapsed { --side-w: 64px; }
  body.side-collapsed .side { padding-left: 8px; padding-right: 8px; }
  body.side-collapsed .side-hd { justify-content: center; padding-left: 0; padding-right: 0; }
  body.side-collapsed .side-brand-txt,
  body.side-collapsed .side-lbl,
  body.side-collapsed .side-search .kbd,
  body.side-collapsed .side-user-txt,
  body.side-collapsed .side-user-more { display: none; }
  body.side-collapsed .side-group { height: 1px; margin: 10px 8px; padding: 0; overflow: hidden; background: var(--side-line); color: transparent; }
  body.side-collapsed .side-item,
  body.side-collapsed .side-search { justify-content: center; padding: 0; }
  body.side-collapsed .side-search { margin: 0 0 6px; }
  body.side-collapsed .side-user { justify-content: center; padding: 7px 0; }
  body.side-collapsed #sideCollapse .ic { transform: scaleX(-1); }
}

/* 内容区让出侧栏位置 */
@media (min-width: 861px) {
  body.shell-on .app { margin-left: var(--side-w); }
  body.shell-on .app, body.shell-on .side { transition: margin-left 0.2s var(--ease-out), width 0.2s var(--ease-out); }
}

/* ============================================================
   2. 页头
   ============================================================ */
.hdr {
  gap: 14px;
  height: var(--hdr-h);
  padding: 0 14px 0 var(--canvas-px);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.hdr-brand { gap: 8px; min-width: 0; }
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-left: -6px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--text-2);
}
.nav-toggle:hover { background: var(--surface-2); color: var(--text); }
.page-title {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  white-space: nowrap;
}
.page-title .crumb { font-size: 13px; font-weight: 500; color: var(--text-3); }
.page-title .crumb-sep { width: 12px; height: 12px; color: #b3b9c5; }
.page-title h1 { margin: 0; font-size: 15.5px; font-weight: 650; letter-spacing: -0.005em; color: var(--text); }
.hdr:not(.no-tabs) .hdr-brand::after {
  content: '';
  width: 1px;
  height: 20px;
  margin-left: 10px;
  background: var(--line);
}

.hdr-tabs { gap: 0; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.hdr-tabs::-webkit-scrollbar { display: none; }
.tab {
  padding: 0 11px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-3);
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); font-weight: 600; }
.tab-bar { left: 11px; width: calc(100% - 22px); height: 2px; background: var(--accent); }

.hdr-actions { gap: 6px; }
.hbtn {
  height: 32px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 13px;
}
.hbtn:hover { background: var(--surface-2); border-color: var(--line-2); color: var(--text); }
.hbtn .ic { color: var(--text-3); }
.hbtn:hover .ic { color: var(--text-2); }
.hbtn-search { min-width: 220px; color: var(--text-3); }
.hbtn-search .lbl { flex: 1; text-align: left; }
/* 账号与管理入口统一放在侧栏底部，页头不再重复 */
.hdr .hbtn-user,
#btnHubAdmin, #btnCapAdmin, #btnAdmin, #btnBasicAdmin, #btnUinfoAdmin, #btnStdAdmin, #btnStfAdmin { display: none !important; }

/* ============================================================
   3. 画布式布局：工具栏 / 汇总卡片 / 数据卡片
   ============================================================ */
@media (min-width: 861px) {
  .toolbar {
    padding: 12px var(--canvas-px) 0;
    background: transparent;
    border-bottom: 0;
  }
  .tb-row { gap: 8px; }
  .search input { background: var(--surface); border-color: var(--line-2); box-shadow: var(--shadow-xs); }
  .search input:hover { border-color: #c3c9d4; }
  .fbtn, .toolbar .btn { box-shadow: var(--shadow-xs); }
  .seg { background: #e8eaef; }

  .summary {
    align-items: stretch;
    gap: 10px;
    padding: 12px var(--canvas-px);
    background: transparent;
    border-bottom: 0;
  }
  .summary:empty { display: none; }
  .sum-count {
    flex: none;
    align-self: center;
    max-width: 260px;
    padding: 0 8px 0 2px;
    line-height: 1.5;
    color: var(--text-3);
  }
  .sum-count b { margin-right: 2px; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); vertical-align: -1px; }
  /* 指标卡等分一行，窄屏时收缩而不是折行；说明文字固定放在下一行右侧 */
  .sum-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1 1 0;
    min-width: 124px;
    max-width: 250px;
    padding: 9px 14px 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow-xs);
  }
  .sum-main {
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 6px;
    row-gap: 1px;
    line-height: 1.35;
  }
  .sum-main .k { flex: 0 0 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--text-3); }
  .sum-item .v { font-size: 19px; font-weight: 700; letter-spacing: -0.015em; white-space: nowrap; }
  .sum-item .p { font-size: 12px; font-weight: 500; white-space: nowrap; }
  .sum-sub { margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; }
  .sum-note {
    flex: 0 0 100%;
    max-width: none;
    margin: -4px 0 -4px auto;
    font-size: 11.5px;
    line-height: 1.5;
    text-align: right;
  }

  .workspace {
    gap: 12px;
    padding: 0 var(--canvas-px) var(--canvas-px);
  }
  .toolbar + .workspace, .hdr + .workspace { padding-top: 12px; }
  .workspace > .data {
    border: 1px solid var(--line);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-sm);
  }
  .workspace > .drawer {
    border: 1px solid var(--line);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
  }
  /* 各种标准：左侧目录与正文合成一张卡片 */
  #stdWorkspace { gap: 0; }
  #stdWorkspace > .std-side:not(.hidden) {
    border: 1px solid var(--line);
    border-right: 0;
    border-radius: var(--card-radius) 0 0 var(--card-radius);
    background: var(--surface-2);
  }
  #stdWorkspace > .std-side:not(.hidden) + .data { border-radius: 0 var(--card-radius) var(--card-radius) 0; }
}

/* ---------- 表格 ---------- */
.grid th {
  background: var(--surface-2);
  box-shadow: 0 -2px 0 var(--surface-2);
  border-bottom-color: var(--line);
  font-weight: 600;
  color: var(--text-3);
}
.grid th.sortable:hover { background: #eef0f4; color: var(--text); }
.grid td { border-bottom-color: #eef0f3; }
.grid tr.row:hover td, .grid tr.parent:hover td { background: #f5f8ff; }
.grid tr.lv-0 td { background: #f1f4fa; }
.grid tr.lv-1 td { background: #f9fafc; }
.grid td.c-row { color: #9aa1ae; }
.tag { border-radius: 6px; background: #eff1f5; }

/* ---------- 控件微调 ---------- */
.btn { border-radius: 8px; }
.btn-primary { background: linear-gradient(180deg, #2b5fe0, var(--accent)); box-shadow: 0 1px 2px rgba(16, 24, 40, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.12); }
.btn-primary:hover { background: var(--accent-hover); }
.fbtn { border-radius: 8px; }
.seg { border-radius: 9px; }
.seg button, .seg-pill { border-radius: 7px; }
input[type="text"], input[type="password"], input[type="search"], select, textarea { border-radius: 8px; }
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 3px rgba(35, 86, 216, 0.14); }
.popover { border-radius: 12px; box-shadow: var(--shadow-pop); }
.dlg { border-radius: 14px; }

/* ============================================================
   4. 总览
   ============================================================ */
.dash-main {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.dash {
  max-width: 1320px;
  margin: 0 auto;
  padding: 26px 28px 48px;
}
.dash.pane-anim, #hubCards.pane-anim { animation: dashIn 0.28s var(--ease-out); }
@keyframes dashIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.tone-dept { --tc: var(--m-dept); --tw: var(--m-dept-w); }
.tone-ana { --tc: var(--m-ana); --tw: var(--m-ana-w); }
.tone-sb { --tc: var(--m-sb); --tw: var(--m-sb-w); }
.tone-fis { --tc: var(--m-fis); --tw: var(--m-fis-w); }
.tone-stf { --tc: var(--m-stf); --tw: var(--m-stf-w); }
.tone-std { --tc: var(--m-std); --tw: var(--m-std-w); }

.dash-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.dash-date { margin: 0; font-size: 13px; color: var(--text-3); }
.dash-hero h2 {
  margin: 4px 0 10px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text);
}
.dash-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin: 0;
  font-size: 12.5px;
  color: var(--text-3);
}
.dash-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--surface);
  color: var(--text-2);
}
.dash-search {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: none;
  width: 340px;
  height: 42px;
  padding: 0 10px 0 13px;
  border: 1px solid var(--line-2);
  border-radius: 11px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--text-3);
  font-size: 13.5px;
  text-align: left;
  transition: border-color 0.14s, box-shadow 0.14s;
}
.dash-search span { flex: 1; }
.dash-search:hover { border-color: var(--accent-line); box-shadow: 0 0 0 3px rgba(35, 86, 216, 0.08), var(--shadow-sm); }

.dash-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-bottom: 30px;
}
.kpi {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 15px 16px 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  text-align: left;
  transition: border-color 0.16s, box-shadow 0.18s var(--ease-out), transform 0.18s var(--ease-out);
}
.kpi::after {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--tw) 0%, transparent 70%);
  opacity: 0.9;
  pointer-events: none;
}
.kpi:hover { border-color: var(--line-2); box-shadow: 0 8px 22px rgba(16, 24, 40, 0.08); transform: translateY(-1px); }
.kpi:active { transform: translateY(0); }
.kpi-hd { position: relative; z-index: 1; display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text-2); }
.kpi-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--tw);
  color: var(--tc);
}
.kpi-ic .ic { width: 16px; height: 16px; }
.kpi-k { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.kpi-go { color: var(--text-3); opacity: 0; transform: translate(-3px, 3px); transition: opacity 0.16s, transform 0.16s var(--ease-out); }
.kpi:hover .kpi-go { opacity: 1; transform: none; }
.kpi-v {
  position: relative;
  z-index: 1;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  white-space: nowrap;
}
.kpi-v small { margin-left: 4px; font-size: 12.5px; font-weight: 500; letter-spacing: 0; color: var(--text-3); }
.kpi-ft { position: relative; z-index: 1; font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kpi-skel, .chg-empty .kpi-skel {
  display: inline-block;
  width: 120px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(90deg, #eef0f4 0%, #f7f8fa 45%, #eef0f4 100%);
  background-size: 220% 100%;
  animation: loadSweep 1.25s var(--ease-out) infinite;
  vertical-align: middle;
}

.dash-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}
.dash-sec + .dash-sec { margin-top: 28px; }
.dash-sec-hd { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.dash-sec-hd h3 { margin: 0; font-size: 15px; font-weight: 650; }
.dash-sec-hd span { font-size: 12.5px; color: var(--text-3); }
.mod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 12px;
}
.mod-tile {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  min-width: 0;
  padding: 15px 14px 15px 15px;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  text-align: left;
  transition: border-color 0.16s, box-shadow 0.18s var(--ease-out), transform 0.18s var(--ease-out);
}
.mod-tile:hover { border-color: color-mix(in srgb, var(--tc) 30%, var(--line)); box-shadow: 0 8px 22px rgba(16, 24, 40, 0.07); transform: translateY(-1px); }
.mod-tile:active { transform: none; }
.mod-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--tw);
  color: var(--tc);
}
.mod-ic .ic { width: 19px; height: 19px; }
.mod-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mod-name { font-size: 14.5px; font-weight: 650; color: var(--text); }
.mod-desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-3);
}
.mod-meta {
  align-self: flex-start;
  margin-top: 7px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--surface-2);
  font-size: 11.5px;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.mod-go { align-self: center; color: #b3b9c5; transition: transform 0.18s var(--ease-out), color 0.16s; }
.mod-tile:hover .mod-go { color: var(--tc); transform: translateX(2px); }

.dash-col-side { display: flex; flex-direction: column; gap: 14px; }
.dash-panel {
  padding: 14px 16px 12px;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}
.dash-panel-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.dash-panel-hd h3 { margin: 0; font-size: 14px; font-weight: 650; }
.dash-panel-hd .link-btn { height: 26px; font-size: 12.5px; }
.chg-item { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid #f0f1f4; }
.chg-item:first-child { border-top: 0; }
.chg-item .avatar { flex: none; width: 26px; height: 26px; font-size: 11.5px; margin-top: 1px; }
.chg-body { min-width: 0; }
.chg-line { font-size: 13px; line-height: 1.5; color: var(--text-2); word-break: break-word; }
.chg-line b { font-weight: 600; color: var(--text); }
.chg-meta { margin-top: 1px; font-size: 11.5px; color: var(--text-3); }
.chg-empty { display: flex; flex-direction: column; gap: 8px; padding: 10px 0 6px; font-size: 12.5px; line-height: 1.6; color: var(--text-3); }
.chg-empty .kpi-skel { width: 100%; height: 14px; }
.chg-empty .kpi-skel.short { width: 62%; }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 4px 0 2px; }
.quick {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  transition: background 0.14s, border-color 0.14s, color 0.14s;
}
.quick .ic { color: var(--text-3); }
.quick:hover { background: var(--accent-weak); border-color: var(--accent-line); color: var(--accent); }
.quick:hover .ic { color: var(--accent); }

@media (max-width: 1180px) {
  .dash-cols { grid-template-columns: 1fr; }
  .dash-col-side { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
}

/* ============================================================
   5. 搜索与跳转（Ctrl K）
   ============================================================ */
.cmdk-backdrop {
  position: fixed;
  inset: 0;
  z-index: 115;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 16px 16px;
  background: rgba(13, 20, 36, 0.38);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: cmdkFade 0.14s var(--ease-out);
}
@keyframes cmdkFade { from { opacity: 0; } to { opacity: 1; } }
.cmdk {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 600px;
  max-height: min(560px, 76vh);
  overflow: hidden;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 24px 64px rgba(13, 20, 36, 0.28), 0 2px 8px rgba(13, 20, 36, 0.08);
  animation: cmdkIn 0.18s var(--ease-out);
}
@keyframes cmdkIn { from { opacity: 0; transform: translateY(-8px) scale(0.985); } to { opacity: 1; transform: none; } }
.cmdk-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px 0 16px;
  border-bottom: 1px solid var(--line);
  color: var(--text-3);
}
.cmdk-input input,
.cmdk-input input:focus {
  flex: 1;
  height: 54px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: 15px;
  color: var(--text);
}
.cmdk-list { flex: 1; min-height: 0; overflow-y: auto; padding: 6px 8px 8px; }
.cmdk-group { padding: 10px 10px 4px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em; color: var(--text-3); }
.cmdk-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--text);
  font-size: 13.5px;
  text-align: left;
}
.cmdk-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--text-3);
}
.cmdk-ic .ic { width: 15px; height: 15px; }
.cmdk-lab { flex: none; font-weight: 500; }
.cmdk-hint { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--text-3); }
.cmdk-enter { margin-left: auto; color: var(--text-3); opacity: 0; }
.cmdk-item.active { background: var(--accent-weak); }
.cmdk-item.active .cmdk-ic { background: var(--surface); color: var(--accent); box-shadow: var(--shadow-xs); }
.cmdk-item.active .cmdk-lab { color: var(--accent); }
.cmdk-item.active .cmdk-enter { opacity: 1; color: var(--accent); }
.cmdk-empty { padding: 36px 16px; text-align: center; font-size: 13px; color: var(--text-3); }
.cmdk-ft {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 14px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 11.5px;
  color: var(--text-3);
}
.cmdk-ft span { display: inline-flex; align-items: center; gap: 4px; }

/* ============================================================
   6. 启动页与登录页
   ============================================================ */
.boot { gap: 18px; }
.boot-mark .brand-mark { animation: bootPulse 1.6s var(--ease-out) infinite; }
@keyframes bootPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(0.94); } }
.boot .spinner { width: 22px; height: 22px; border-width: 2.5px; }

.login {
  display: grid;
  grid-template-columns: minmax(380px, 46%) 1fr;
  align-items: stretch;
  justify-content: stretch;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0;
  background: var(--surface);
}
.login-aside {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 36px 48px 32px;
  overflow: hidden;
  background:
    radial-gradient(700px 420px at 85% 110%, rgba(61, 114, 247, 0.32), transparent 65%),
    radial-gradient(520px 360px at -10% -10%, rgba(122, 92, 240, 0.22), transparent 60%),
    linear-gradient(160deg, #111a2e 0%, #0b1120 100%);
  color: #c4cbe0;
}
.login-aside::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 70%, transparent 100%);
  pointer-events: none;
}
.login-aside > * { position: relative; }
.login-brand { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 650; color: #fff; }
.login-brand .brand-mark { width: 32px; height: 32px; border-radius: 9px; }
.login-hero { max-width: 460px; }
.login-kicker { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; color: #8fa9ff; }
.login-hero h2 {
  margin: 0 0 32px;
  font-size: clamp(24px, 2.2vw, 31px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: #f4f6fb;
}
.login-feats { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 0; list-style: none; }
.login-feats li { display: flex; align-items: flex-start; gap: 13px; font-size: 13.5px; line-height: 1.55; }
.login-feats b { display: block; margin-bottom: 1px; font-size: 14px; font-weight: 600; color: #eef1f8; }
.lf-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  color: #9db5ff;
}
.login-aside-ft { font-size: 12px; color: #6f7b93; }
.login-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  background: radial-gradient(800px 400px at 50% 0%, rgba(35, 86, 216, 0.05), transparent 70%), var(--surface);
}
.login-card {
  max-width: 360px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.login-card-brand { display: none; margin-bottom: 18px; }
.login-card h1 { margin: 0 0 6px; font-size: 24px; font-weight: 700; letter-spacing: -0.015em; }
.login-sub { margin: 0 0 26px; font-size: 13.5px; }
.login-card input[type="text"], .login-card input[type="password"] { height: 42px; padding: 0 12px; font-size: 14.5px; }
.login-card .btn-block { height: 42px; margin-top: 6px; border-radius: 9px; font-size: 14.5px; }
.login-foot { margin-top: 18px; }

/* ============================================================
   7. 手机端
   ============================================================ */
@media (max-width: 860px) {
  :root { --canvas-px: 12px; }

  .side {
    z-index: 70;
    width: min(84vw, 300px);
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-102%);
    transition: transform 0.24s var(--ease-out);
    box-shadow: none;
  }
  body.side-open .side { transform: none; box-shadow: 18px 0 48px rgba(8, 12, 24, 0.35); }
  body.shell-on .side-scrim {
    position: fixed;
    inset: 0;
    z-index: 69;
    display: block;
    background: rgba(8, 12, 24, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s var(--ease-out);
  }
  body.side-open .side-scrim { opacity: 1; pointer-events: auto; }
  .side-item { height: 42px; font-size: 14.5px; }
  .side .kbd { display: none; }

  .nav-toggle { display: inline-flex; }
  .hdr { padding: 6px 6px 0 12px; gap: 0 6px; }
  .hdr.no-tabs { padding-bottom: 6px; }
  .hdr-brand { flex: 1; height: 40px; }
  .hdr:not(.no-tabs) .hdr-brand::after { display: none; }
  .page-title .crumb, .page-title .crumb-sep { display: none; }
  .page-title h1 { font-size: 16px; }
  .hbtn { width: 36px; height: 36px; border: 0; background: none; }
  .hbtn-search { min-width: 0; }
  .tab { color: var(--text-3); }

  .dash { padding: 18px 14px 32px; }
  .dash-hero { flex-direction: column; align-items: stretch; gap: 14px; margin-bottom: 16px; }
  .dash-hero h2 { font-size: 21px; margin-bottom: 8px; }
  .dash-search { width: 100%; }
  .dash-search .kbd { display: none; }
  .dash-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 22px; }
  .kpi { padding: 12px 12px 11px; gap: 8px; }
  .kpi-v { font-size: 20px; }
  .kpi-v small { font-size: 11.5px; }
  .kpi-ft { white-space: normal; font-size: 11.5px; line-height: 1.45; }
  .kpi-go { display: none; }
  .mod-grid { grid-template-columns: 1fr; gap: 10px; }
  .dash-col-side { grid-template-columns: 1fr; }
  .dash-cols { gap: 22px; }

  .cmdk-backdrop { padding: 10px; align-items: flex-start; }
  .cmdk { max-height: 80vh; }
  .cmdk-ft { display: none; }
  .cmdk-input input { font-size: 16px; }

  .login { grid-template-columns: 1fr; }
  .login-aside { display: none; }
  .login-main { align-items: flex-start; padding: 12vh 24px 32px; }
  .login-card-brand { display: block; }
}
@media (max-width: 380px) {
  .dash-kpis { grid-template-columns: 1fr; }
}

/* 减弱动态效果 */
@media (prefers-reduced-motion: reduce) {
  .kpi, .mod-tile, .side, .side-scrim, .cmdk, .cmdk-backdrop, body.shell-on .app { transition: none !important; animation: none !important; }
  .boot-mark .brand-mark { animation: none; }
}

/* 打印：只留内容 */
@media print {
  .side, .side-scrim, .cmdk-backdrop, .nav-toggle { display: none !important; }
  body.shell-on .app { margin-left: 0 !important; }
  .workspace { padding: 0 !important; }
  .workspace > .data { border: 0 !important; box-shadow: none !important; }
}

/* 周口转移支付：汇总栏历年走势小图（单条折线，末年加点，悬停显示各年数） */
.zkt-spark-item { flex: 0 0 auto; min-width: 0; padding-bottom: 6px; }
.zkt-spark { display: block; margin-top: 3px; overflow: visible; }
.zkt-spark .ln { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.zkt-spark .pt { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.zkt-spark .hit { fill: transparent; cursor: default; }
.zkt-spark .dot { fill: var(--accent); stroke: var(--surface); stroke-width: 1.5; opacity: 0; pointer-events: none; transition: opacity .12s; }
.zkt-spark .hp:hover .dot { opacity: 1; }
@media (max-width: 860px) { .zkt-spark-item { display: none; } }

/* ---------- 2026-11-20 手机/触屏：顶部筛选区与汇总可收起（95-toolbar-fold.js） ---------- */
.tb-fold { display: none; }
html.tb-foldable .tb-fold {
  display: block;
  flex: none;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.tb-fold-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 36px;
  padding: 6px 12px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 13px;
  color: var(--text-2);
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.tb-fold-brief {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.tb-fold-act { flex: none; margin-left: auto; color: var(--accent); font-weight: 600; }
html.tb-foldable.tb-folded .app > .toolbar,
html.tb-foldable.tb-folded .app > .summary { display: none !important; }
@media (max-width: 860px) {
  /* 竖屏页面整体滚动：开关条吸顶，展开时筛选栏吸在开关条下方 */
  html.tb-foldable .tb-fold { position: sticky; top: 0; z-index: 21; }
  html.tb-foldable .toolbar { top: 37px; }
  /* 页头内的数据表标签（一般公共预算/2027基金/债券安排等）折到第二行时，原固定 56px 高度会让标签被下方吸顶栏遮住 */
  .hdr:not(.no-tabs) { height: auto; min-height: var(--hdr-h); }
}
@media print { .tb-fold { display: none !important; } }

/* 页脚备案号（登录页、总览页底部；2026-11-25） */
.login-main { flex-direction: column; }
.site-beian { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; padding: 18px 16px 14px; font-size: 12px; line-height: 1.6; color: var(--text-3); text-align: center; }
.site-beian[hidden] { display: none; }
.site-beian a { color: inherit; text-decoration: none; }
.site-beian a:hover { color: var(--text-2, inherit); text-decoration: underline; }
.login-main .site-beian { margin-top: 28px; padding-bottom: 0; }
#hubMain .site-beian { padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 860px) {
  .login-main { align-items: center; justify-content: flex-start; }
  .login-main .site-beian { margin-top: auto; padding-top: 32px; }
}
