/* MingAI 数据收集器 · 勘察公报样式
   北极星：像在阅览一份持续更新的勘察数据公报——纸面、细线分节、衬线标题、等宽数据。
   色彩身份：纸白 + 墨字 + 墨蓝（地质图水体色）单强调；状态色低饱和印刷色。直角、无阴影、无渐变。 */

:root {
  --paper: #f6f4ee;          /* 页底纸色 */
  --surface: #fcfbf7;        /* 面板纸面 */
  --line: #ddd7c8;           /* 发丝线 */
  --line-strong: #c6bfae;
  --text: #221e15;           /* 墨字 */
  --text-2: #5c5545;
  --text-3: #8f8875;
  --accent: #2b577e;         /* 墨蓝 */
  --accent-hover: #1f4260;
  --accent-soft: #edf2f6;
  --ok: #3d7a50;      --ok-soft: #ecf2ea;   --ok-line: #c8d8c9;
  --warn: #b07d2b;    --warn-soft: #f6efdd; --warn-line: #e2d4b0;
  --bad: #b03a2e;     --bad-soft: #f7e9e5;  --bad-line: #e5c4bc;
  --idle: #8f8875;    --idle-soft: #efede4;
  --run: #2b577e;     --run-soft: #edf2f6;
  --radius: 3px;
  --radius-sm: 2px;
  --font-display: "Songti SC", "Noto Serif SC", "STZhongsong", "SimSun", serif;
  --sidebar-w: 218px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--paper);
  color: var(--text);
  font: 14px/1.62 "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.ic { flex: none; vertical-align: -3px; }
.mono, code { font-family: ui-monospace, "SF Mono", Consolas, "JetBrains Mono", monospace; font-size: 0.93em; }
.num { font-family: ui-monospace, "SF Mono", Consolas, "JetBrains Mono", monospace; font-variant-numeric: tabular-nums; font-size: 0.95em; letter-spacing: 0; }
.muted { color: var(--text-3); }
.small { font-size: 12.5px; }
.strong { font-weight: 600; color: var(--text); }
.link { color: var(--accent); text-decoration: none; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.flex1 { flex: 1; }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }
.ellipsis { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ta-r { text-align: right; }
.up { color: var(--ok); }
.down { color: var(--bad); }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: 0.02em; }

/* ---------------- 布局骨架 ---------------- */
body { min-height: 100vh; }
.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--line-strong);
  color: var(--text-2);
  display: flex; flex-direction: column;
  padding: 18px 12px;
  position: fixed; top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  overflow-y: auto;
  z-index: 40;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 20px; text-decoration: none; flex: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: var(--radius); flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  color: #f6f4ee;
  background: var(--accent);
}
.brand-mark.lg { width: 42px; height: 42px; }
.brand-text { color: var(--text); font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: 0.04em; }
.brand-text em { display: block; font-style: normal; font-weight: 400; font-size: 11px; color: var(--text-3); letter-spacing: 0.14em; }
.nav { display: flex; flex-direction: column; gap: 1px; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px; border-radius: var(--radius-sm);
  color: var(--text-2); text-decoration: none;
  font-size: 13.5px; white-space: nowrap;
  border: none; background: transparent; cursor: pointer; width: 100%;
  font-family: inherit; text-align: left;
}
.nav-item .ic { opacity: .8; }
.nav-item:hover { background: var(--idle-soft); color: var(--text); }
.nav-item.active {
  background: var(--idle-soft); color: var(--text);
  font-weight: 650;
}
.nav-item.active .ic { opacity: 1; color: var(--text); }
/* 目录当前项记号：右缘实心小方块（页码位） */
.nav-item.active::after {
  content: ""; width: 5px; height: 5px; margin-left: auto;
  background: var(--text); border-radius: 1px;
}
.nav-sep { height: 1px; background: var(--line); margin: 12px 8px; }
.sidebar-foot { margin-top: auto; border-top: 1px solid var(--line); padding-top: 10px; }
.as-btn { font: inherit; }

.main {
  height: 100vh; display: flex; flex-direction: column;
  margin-left: var(--sidebar-w); padding: 22px 32px 0;
  max-width: calc(var(--sidebar-w) + 1240px);
  overflow: hidden;
}
/* 页头固定，仅滚动其下内容 */
.page-head { flex: none; margin-bottom: 0; }
.page-body {
  flex: 1 1 auto; min-height: 0;
  overflow-y: auto; overflow-x: clip; overscroll-behavior: contain;
  padding: 18px 2px 44px;
}
.page-body::-webkit-scrollbar, .card::-webkit-scrollbar { width: 10px; height: 10px; }
.page-body::-webkit-scrollbar-track, .card::-webkit-scrollbar-track { background: transparent; }
.page-body::-webkit-scrollbar-thumb, .card::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 5px; border: 2px solid var(--paper); }
.page-body::-webkit-scrollbar-button, .card::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
.page-body::-webkit-scrollbar-corner, .card::-webkit-scrollbar-corner { background: transparent; }
@supports not selector(::-webkit-scrollbar) {
  .page-body, .card { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
}
@media (max-width: 900px) {
  .sidebar {
    position: sticky; top: 0; bottom: auto;
    width: 100%; height: auto;
    flex-direction: row; align-items: center; gap: 8px; padding: 10px 14px;
    overflow: visible;
  }
  .brand { padding: 0 8px 0 0; }
  .brand-text em { display: none; }
  .nav { flex-direction: row; overflow-x: auto; }
  .nav-sep { display: none; }
  .sidebar-foot { margin: 0 0 0 auto; border-top: none; padding-top: 0; }
  .main { margin-left: 0; padding: 16px 16px 0; }
  .page-body { padding: 14px 2px 32px; }
}

/* ---------------- 页头（公报页眉：双墨线下边） ---------------- */
.page-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  padding-bottom: 13px; margin-bottom: 20px;
  border-bottom: 2px solid var(--text);
  flex-wrap: wrap;
}
.page-head h1 { font-size: 22px; margin: 0; font-weight: 700; }
.page-sub { margin: 5px 0 0; color: var(--text-2); font-size: 13px; }
.page-sub b { color: var(--text); font-weight: 600; }
.crumbs { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-3); margin-bottom: 6px; }
.crumbs a { color: var(--text-3); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.head-actions { display: flex; align-items: center; gap: 8px; }

/* ---------------- 面板（公报分节：直角细线，无阴影） ---------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 18px;
  overflow-x: auto; /* 窗口过窄表格放不下时在面板内滚动，避免被 page-body 横向裁剪切掉尾列 */
}
.card-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-bottom: 13px; padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}
.card-head h2 { font-size: 15px; margin: 0; font-weight: 700; }
.sec-no {
  font-family: ui-monospace, Consolas, monospace; font-size: 11px;
  color: var(--accent); margin-right: 8px; letter-spacing: 0.06em;
}
.card-sub { margin: 2px 0 0; font-size: 12px; color: var(--text-3); }

.grid-2 { display: grid; grid-template-columns: 3fr 2fr; gap: 18px; margin-bottom: 0; }
.grid-2 > .card { margin-bottom: 18px; }
.grid-2.lg { grid-template-columns: 3fr 2fr; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-3 > .card { margin-bottom: 18px; }
@media (max-width: 1080px) {
  .grid-2, .grid-2.lg, .grid-3 { grid-template-columns: 1fr; }
}

/* ---------------- KPI（公报指标行：衬线小标 + 等宽大数） ---------------- */
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 18px; }
@media (max-width: 1080px) { .kpi-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .kpi-row { grid-template-columns: 1fr; } }
.kpi { padding: 12px 16px 11px; margin-bottom: 0; }
.kpi-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.kpi-label {
  font-family: var(--font-display); font-size: 12.5px; font-weight: 700;
  color: var(--text-2); letter-spacing: 0.08em;
}
.kpi-index { font-family: ui-monospace, Consolas, monospace; font-size: 10.5px; color: var(--text-3); }
.kpi-value { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: 24px; font-weight: 600; margin: 7px 0 6px; letter-spacing: -0.01em; }
.kpi-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; min-height: 30px; }
.kpi-sub { font-size: 12px; color: var(--text-3); }
.kpi-sub.up { color: var(--ok); }
.kpi-sub.down { color: var(--bad); }
.spark { width: 92px; height: 24px; color: var(--text-2); opacity: .8; overflow: visible; }

/* 成功率刻度尺：把百分比画成量（20 格 × 5%） */
.scale-bar { display: flex; gap: 2px; margin-top: 7px; }
.scale-bar i { flex: 1; height: 9px; background: var(--idle-soft); border-radius: 1px; }
.scale-bar i.on { background: var(--accent); }

/* ---------------- 图表 ---------------- */
.chart-wrap { position: relative; }
.chart { width: 100%; height: 170px; display: block; }
.axis {
  display: flex; justify-content: space-between;
  font-size: 10.5px; color: var(--text-3); margin-top: 6px;
  font-family: ui-monospace, Consolas, monospace;
}
.bar { transition: opacity .12s; }
.bar:hover { opacity: .72; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; }
.legend-item { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-2); white-space: nowrap; }
.dot { width: 7px; height: 7px; display: inline-block; flex: none; border-radius: 1px; }

.donut-row { display: flex; align-items: center; gap: 20px; }
.donut { width: 128px; height: 128px; flex: none; }
.seg { transition: stroke-dashoffset .3s; }
.donut-num { font-size: 8.5px; font-weight: 650; fill: var(--text); font-family: ui-monospace, Consolas, monospace; }
.donut-cap { font-size: 3.2px; fill: var(--text-3); letter-spacing: .4px; }
.legend-list { list-style: none; margin: 0; padding: 0; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.legend-list li { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.legend-list span { color: var(--text-2); flex: 1; }
.legend-list b { font-weight: 600; }

.cat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.cat-line { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 5px; }
.cat-line .num em { font-style: normal; color: var(--text-3); }
.cat-label { color: var(--text-2); }
.bar-track { height: 7px; border-radius: 1px; background: var(--idle-soft); overflow: hidden; }
.bar-fill { height: 100%; background: var(--accent); }

/* ---------------- 徽章 / 标签（方角细边，印章感） ---------------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 1.5px 8px; border-radius: var(--radius-sm);
  font-size: 11.5px; font-weight: 600; white-space: nowrap;
  border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--text-2);
  letter-spacing: 0.03em;
}
.badge .dot { width: 6px; height: 6px; border-radius: 1px; }
.b-ok   { color: var(--ok);   border-color: var(--ok-line);   background: var(--ok-soft); }
.b-ok .dot { background: var(--ok); }
.b-warn { color: var(--warn); border-color: var(--warn-line); background: var(--warn-soft); }
.b-warn .dot { background: var(--warn); }
.b-bad  { color: var(--bad);  border-color: var(--bad-line);  background: var(--bad-soft); }
.b-bad .dot { background: var(--bad); }
.b-run  { color: var(--run);  border-color: #c6d4e0; background: var(--run-soft); }
.b-run .dot { background: var(--run); }
.b-idle { color: var(--text-2); border-color: var(--line-strong); background: var(--idle-soft); }
.b-idle .dot { background: var(--idle); }

.tag { display: inline-block; margin-left: 6px; padding: 0.5px 6px; border-radius: var(--radius-sm); background: var(--idle-soft); color: var(--text-2); font-size: 11px; white-space: nowrap; border: 1px solid var(--line); }
.tag.alt { background: var(--accent-soft); color: var(--accent); border-color: #c6d4e0; }
.tag.warn-tag { background: var(--warn-soft); color: var(--warn); border-color: var(--warn-line); }
.yesno { color: var(--text-3); display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.yesno.yes { color: var(--ok); }

/* ---------------- 表格 ---------------- */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th {
  text-align: left; font-size: 11.5px; font-weight: 600; color: var(--text-2);
  padding: 7px 12px; border-bottom: 1px solid var(--line-strong);
  white-space: nowrap; letter-spacing: 0.06em;
}
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: none; }
.row-hover tbody tr { transition: background .1s; }
.row-hover tbody tr:hover { background: #f4f1e8; }
.tbl th.ta-r, .tbl td.ta-r { text-align: right; }
.data-table-card { padding-right: 0; }
.data-table-card > .pager { margin-right: 18px; }
.tbl .table-actions {
  position: sticky; right: 0; z-index: 1;
  background: var(--surface);
}
.tbl .table-actions::before {
  content: ""; position: absolute; inset: 0 auto 0 0;
  border-left: 1px solid var(--line);
  pointer-events: none;
}
.row-hover tbody tr:hover .table-actions { background: #f4f1e8; }
.cell-main { display: flex; flex-direction: column; text-decoration: none; min-width: 0; }
.cell-main .mono { color: var(--accent); font-weight: 550; }
.cell-main:hover .mono { text-decoration: underline; }
.cell-sub { font-size: 12px; color: var(--text-3); }
.checks { display: flex; flex-wrap: wrap; gap: 4px; max-width: 260px; }
.check-pill {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 11px; padding: 0.5px 6px; border-radius: var(--radius-sm); white-space: nowrap;
  border: 1px solid var(--line);
}
.check-pill.ok { color: var(--ok); border-color: var(--ok-line); background: var(--ok-soft); }
.check-pill.bad { color: var(--bad); border-color: var(--bad-line); background: var(--bad-soft); }

/* 操作列：图标按钮 + 悬停提示，永不换行 */
.actions { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; white-space: nowrap; }
.ibtn {
  width: 29px; height: 29px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text-2);
  cursor: pointer; transition: all .1s;
}
.ibtn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.ibtn:disabled { opacity: .38; cursor: not-allowed; }
.ibtn:disabled:hover { border-color: var(--line-strong); color: var(--text-2); background: var(--surface); }
.ibtn.soft { border-color: transparent; background: var(--idle-soft); }
.ibtn.soft:hover { background: var(--accent-soft); }
.ibtn.lg { width: 34px; height: 34px; }
.danger-btn:hover { border-color: var(--bad) !important; color: var(--bad) !important; background: var(--bad-soft) !important; }
.linky { color: var(--text-2); }

/* 悬停提示（纯 CSS，不换行） */
.tip { position: relative; }
.tip::after {
  content: attr(data-tip);
  /* 悬停才渲染：常驻的隐形盒子会把滚动区撑宽，产生横向滚动条 */
  display: none;
  position: absolute; left: 50%; bottom: calc(100% + 7px);
  transform: translateX(-50%) translateY(3px);
  background: #221e15; color: #f6f4ee;
  font-size: 12px; line-height: 1.4; white-space: nowrap;
  padding: 4px 9px; border-radius: var(--radius-sm);
  pointer-events: none;
  z-index: 60;
}
.tip:hover::after { display: block; opacity: 1; transform: translateX(-50%) translateY(0); }
.tip[data-tip=""]:hover::after { display: none; }
/* 表格末列（操作列）的提示右对齐展开，悬停时不越过滚动区右缘被裁切 */
.tbl td:last-child .tip::after { left: auto; right: -4px; transform: translateY(3px); }
.tbl td:last-child .tip:hover::after { transform: translateY(0); }

/* ---------------- 按钮 / 表单（直角，按下下沉 1px） ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 6.5px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--text); font-size: 13.5px; font-weight: 550;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: all .1s; font-family: inherit;
  box-shadow: 0 1px 0 rgba(34, 30, 21, 0.05);
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn:disabled:hover { border-color: var(--line-strong); color: var(--text); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #f6f4ee; }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #f6f4ee; }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #f6f4ee; }
.btn.danger:hover { background: #93301f; border-color: #93301f; color: #f6f4ee; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--text-2); box-shadow: none; }
.btn.ghost:hover { color: var(--accent); background: var(--accent-soft); }
.btn.sm { padding: 4px 10px; font-size: 12.5px; }
.btn.block { width: 100%; }

.chip, .chip-group { display: inline-flex; }
.chip-group { gap: 6px; flex-wrap: wrap; }
.chip-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip {
  padding: 3.5px 11px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--text-2); font-size: 12.5px; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: all .1s; font-family: inherit;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.on { background: var(--text); border-color: var(--text); color: var(--paper); }
.mini-stat { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--text-3); }
.mini-stat b { color: var(--text); font-weight: 600; }

.form label { display: block; margin-bottom: 14px; font-size: 13px; color: var(--text-2); font-weight: 550; }
.form input, .form select, .form textarea {
  display: block; width: 100%; margin-top: 5px;
  padding: 7.5px 10px; font: inherit; font-weight: 400;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text);
  transition: border .1s, box-shadow .1s;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 2.5px rgba(43, 87, 126, .14);
}
.form textarea.config { min-height: 180px; font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; }

/* 配置编辑器：独立于 .form 使用（采集器详情页），必须占满面板 */
textarea.config {
  display: block; width: 100%; min-height: 260px;
  padding: 12px 14px; resize: vertical;
  font-family: ui-monospace, "SF Mono", Consolas, "JetBrains Mono", monospace;
  font-size: 12.5px; line-height: 1.6; color: var(--text);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: #f4f1e8;
  transition: border .1s, box-shadow .1s, background .1s;
}
textarea.config:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 2.5px rgba(43, 87, 126, .14);
  background: var(--surface);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-grid .span-2 { grid-column: span 2; }
.inline-field { max-width: 280px; }
.form-foot { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.form-error { background: var(--bad-soft); border: 1px solid var(--bad-line); color: var(--bad); border-radius: var(--radius-sm); padding: 8px 12px; font-size: 13px; }
.panel { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 18px; }
pre.small, pre.cursor { white-space: pre-wrap; font-size: 12.5px; background: #f4f1e8; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; margin: 0; overflow-x: auto; }
pre.cursor { font-family: ui-monospace, Consolas, monospace; }

/* ---------------- 详情页 ---------------- */
.meta-strip { display: flex; gap: 36px; flex-wrap: wrap; padding: 13px 18px; }
.meta-strip > div { display: flex; align-items: baseline; gap: 8px; }
.meta-k { font-size: 12px; color: var(--text-3); font-family: var(--font-display); letter-spacing: 0.06em; }

/* ---------------- 其他 ---------------- */
.prob-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.prob-list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.prob-list li:last-child { border-bottom: none; }
.prob-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.prob-name { font-size: 12.5px; color: var(--accent); text-decoration: none; font-family: ui-monospace, Consolas, monospace; }
.prob-name:hover { text-decoration: underline; }
.prob-msg { font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.all-clear { display: flex; align-items: center; gap: 8px; color: var(--ok); font-size: 13.5px; padding: 14px 0 4px; }

.empty-state { text-align: center; padding: 48px 20px; color: var(--text-2); }
.empty-state .ic { color: var(--text-3); margin-bottom: 8px; }
.empty-state h2 { margin: 0 0 6px; font-size: 16px; color: var(--text); }
.empty-state p { margin: 0 auto 16px; max-width: 420px; }

.login-wrap { display: flex; justify-content: center; padding-top: 10vh; }
.login-card { width: 400px; max-width: 92vw; padding: 28px; }
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.login-brand h2 { margin: 0; font-size: 17px; }
.warn-box { background: var(--warn-soft); border: 1px solid var(--warn-line); color: var(--warn); border-radius: var(--radius-sm); padding: 8px 12px; font-size: 12.5px; margin: 0 0 14px; }

.toast {
  position: fixed; right: 24px; bottom: 24px; z-index: 100;
  background: #221e15; color: #f6f4ee;
  padding: 11px 18px; border-radius: var(--radius-sm); max-width: 460px;
  font-size: 13.5px;
}
.toast.bad { background: var(--bad); }
.toast.ok { background: var(--ok); }

/* 独立页（登录）无侧栏时居中 */
.main.solo { margin-left: 0; max-width: none; padding: 0; display: block; height: auto; overflow: auto; }
.main.solo .page-body { padding: 0; }

/* ---------------- 分页（公报方角页码） ---------------- */
.pager {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.pager-info { font-size: 12.5px; color: var(--text-3); }
.pager-nav { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.pgbtn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 30px; padding: 3.5px 10px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text-2);
  font-size: 12.5px; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: all .1s; font-family: inherit;
}
a.pgbtn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.pgbtn.on { background: var(--text); border-color: var(--text); color: var(--paper); font-weight: 600; }
.pgbtn.off { opacity: .4; cursor: default; }
.pgdots { color: var(--text-3); padding: 0 3px; font-size: 12.5px; }


/* ---------------- 数据管理：筛选条 ---------------- */
.filter-bar { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.filter-bar label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-3); }
.filter-bar select {
  min-width: 170px; padding: 6px 9px; font: inherit; font-size: 13px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text);
}
.filter-bar select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2.5px rgba(43, 87, 126, .14); }
.filter-bar .btn { margin-bottom: 1px; }
.cell-sub { display: block; font-size: 11.5px; color: var(--text-3); }
.tbl td.num { white-space: nowrap; }
