/* ============================================================
   温州博冠 · 主数据模块 · 全局样式
   ============================================================ */
:root {
  --bg: #f5f6f8;
  --panel: #ffffff;
  --border: #e3e6eb;
  --text: #1f2329;
  --text-2: #646a73;
  --primary: #1f6feb;
  --primary-hover: #1a5fd0;
  --danger: #d93026;
  --warn: #d97706;
  --ok: #1a7f37;
  --radius: 6px;
  --shadow: 0 1px 3px rgba(0, 0, 0, .06);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- 顶栏 ---------- */
.topbar {
  height: 52px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar .brand { font-weight: 600; font-size: 16px; }
.topbar nav { display: flex; gap: 18px; }
.topbar nav a { color: var(--text-2); }
.topbar nav a.active { color: var(--primary); font-weight: 500; }
.topbar .spacer { flex: 1; }
.topbar .user { color: var(--text-2); font-size: 13px; }

/* ---------- 容器 ---------- */
.container { max-width: 1280px; margin: 20px auto; padding: 0 20px; }

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 16px;
}
.card h2 { margin: 0 0 14px; font-size: 16px; font-weight: 600; }

/* ---------- 表格 ---------- */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--border); }
th { background: #fafbfc; font-weight: 500; color: var(--text-2); font-size: 13px; }
tbody tr:hover { background: #fafbfc; }

/* P1 修复：列表主表列宽被挤压（表头竖排成单字）→ 允许横向滚动 + 列不折行。
   ⚠️ 只作用于 .table-wrap 内的主表，**不可全局加 nowrap**：
   详情弹层里的 .mini-table（OE/BOM 小表）本就窄，加 nowrap 会撑破弹层。 */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap > table > thead > tr > th { white-space: nowrap; }
.table-wrap > table > tbody > tr > td { white-space: nowrap; }
/* 名称列留宽上限，超出省略（其余列保持完整） */
.table-wrap > table > tbody > tr > td.name-cell {
  white-space: normal; min-width: 180px; max-width: 260px;
  line-height: 1.45;
}
.table-wrap > table { min-width: 100%; }

/* 横向滚动提示条：仅在真正溢出时出现（JS 切换 .scrollable） */
.table-hint {
  display: none; font-size: 12px; color: var(--text-2);
  margin: 6px 0 0; text-align: right;
}
.table-hint.show { display: block; }

/* ---------- 徽标 ---------- */
.tag {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 18px;
  background: #eef2f7;
  color: var(--text-2);
}
.tag.ok { background: #e6f4ea; color: var(--ok); }
.tag.warn { background: #fef3e2; color: var(--warn); }
.tag.err { background: #fdeaea; color: var(--danger); }

/* ---------- 控件 ---------- */
input, select, textarea, button {
  font-family: inherit;
  font-size: 14px;
}
input[type="text"], input[type="password"], select, textarea {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  outline: none;
  background: #fff;
  width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary); }

button {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
}
button:hover { background: #f5f6f8; }
button.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
button.primary:hover { background: var(--primary-hover); }
button.danger { color: var(--danger); border-color: #f0c8c4; }

.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 4px; color: var(--text-2); font-size: 13px; }

/* ---------- 提示 ---------- */
.msg { padding: 8px 12px; border-radius: 4px; margin-bottom: 12px; display: none; }
.msg.show { display: block; }
.msg.ok  { background: #e6f4ea; color: var(--ok); }
.msg.err { background: #fdeaea; color: var(--danger); }
.msg.warn { background: #fef3e2; color: var(--warn); }

.muted { color: var(--text-2); font-size: 13px; }
.center { text-align: center; }

/* ---------- 工具条 / 筛选 ---------- */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  margin-bottom: 14px;
}
.toolbar .field { margin-bottom: 0; }
.toolbar .field.w-sm { width: 120px; }
.toolbar .field.w-md { width: 180px; }
.toolbar .field.w-lg { width: 240px; }
.toolbar .spacer { flex: 1; }
.toolbar input[type="text"], .toolbar select { min-width: 0; }

/* ---------- 分页 ---------- */
.pager {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 14px;
  color: var(--text-2);
  font-size: 13px;
}

/* ---------- 弹层 ---------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .35);
  display: none; align-items: flex-start; justify-content: center;
  z-index: 100; padding: 40px 16px; overflow: auto;
}
.modal-mask.show { display: flex; }
.modal {
  background: #fff; border-radius: var(--radius); width: 100%;
  max-width: 720px; box-shadow: 0 8px 30px rgba(0, 0, 0, .18);
}
.modal header {
  padding: 14px 20px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; font-weight: 600;
}
.modal header .spacer { flex: 1; }
.modal header .close {
  border: none; background: none; font-size: 20px; line-height: 1;
  color: var(--text-2); cursor: pointer; padding: 0 4px;
}
.modal .body { padding: 20px; max-height: 62vh; overflow: auto; }
.modal footer {
  padding: 12px 20px; border-top: 1px solid var(--border);
  display: flex; gap: 10px; justify-content: flex-end;
}

/* ---------- 表单栅格 ---------- */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
@media (max-width: 720px) { .grid2, .grid3 { grid-template-columns: 1fr; } }

/* ---------- 键值表（详情） ---------- */
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 6px 14px; }
.kv dt { color: var(--text-2); font-size: 13px; }
.kv dd { margin: 0; word-break: break-all; }

/* ---------- 空态 ---------- */
.empty { padding: 32px; text-align: center; color: var(--text-2); }

/* ---------- 登录页 ---------- */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
}
.login-card {
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  box-shadow: var(--shadow); padding: 28px; width: 340px;
}
.login-card h1 { font-size: 17px; margin: 0 0 4px; }
.login-card .sub { color: var(--text-2); font-size: 13px; margin-bottom: 20px; }

/* ---------- 首页导航块 ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.tile {
  display: block; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow);
  color: var(--text);
}
.tile:hover { border-color: var(--primary); text-decoration: none; }
.tile .t { font-weight: 600; margin-bottom: 4px; }
.tile .d { color: var(--text-2); font-size: 13px; }
.tile.dim { opacity: .55; pointer-events: none; }

/* ---------- T04：列表缩略图 / 详情三区 / 小按钮 ---------- */
.list-thumb {
  width: 42px; height: 42px; object-fit: cover; border-radius: 4px;
  border: 1px solid var(--border); display: block;
}
.list-thumb.placeholder {
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2); font-size: 11px; background: #fafafa;
}
.modal-wide { max-width: 920px; }
/* P2 修复：68vh → 76vh。原来在 1080p 屏上正文可视区仅约 330px，
   售卖区 / OE / BOM 三区的标题滚出可视区后不知道自己在哪一段。 */
.modal-wide .body { max-height: 76vh; overflow-y: auto; }

.mini-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 6px; }
.mini-table th {
  text-align: left; color: var(--text-2); font-weight: 500;
  border-bottom: 1px solid var(--border); padding: 6px 8px;
}
.mini-table td { padding: 6px 8px; border-bottom: 1px solid #f0f0f0; }

/* 适配区多值 chip：把一个单元格里的 `;` 多值拆成并列标签，
   让「车型/发动机/能源各自可多个」一眼可见（2026-10-13） */
.fit-chip {
  display: inline-block; margin: 1px 4px 1px 0; padding: 1px 7px;
  font-size: 12px; line-height: 1.7; border-radius: 10px;
  background: var(--chip, #eef2ff); color: #3730a3; white-space: nowrap;
}

button.mini {
  font-size: 12px; padding: 2px 8px; border-radius: 4px;
  border: 1px solid var(--border); background: #fff; cursor: pointer;
}
button.mini:hover { border-color: var(--primary); color: var(--primary); }
button.mini.danger:hover { border-color: #d33; color: #d33; }

/* ⚠️ `.mini.primary` 必须写在 `button.mini` 之后：
   两者特异性相同（0,1,0），靠书写顺序决胜。若被 `button.mini` 的 `background:#fff`
   覆盖，而 `.mini` 未定义 color → 会退化「白字 + 白底」不可见（2026-10-08 修复）。 */
button.mini.primary {
  background: var(--primary); border-color: var(--primary); color: #fff;
}
button.mini.primary:hover { background: var(--primary-hover); color: #fff; }
button.mini.primary.danger { background: var(--danger); border-color: var(--danger); color: #fff; }

.thumbs { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.thumbs figure.thumb {
  margin: 0; width: 120px; border: 1px solid var(--border);
  border-radius: 6px; padding: 6px; background: #fff;
}
.thumbs figure.thumb.primary { border-color: #2c9; box-shadow: 0 0 0 1px #2c9 inset; }
.thumbs figure.thumb img {
  width: 100%; height: 96px; object-fit: contain; background: #fafafa;
  border-radius: 4px; display: block;
}
.thumbs figcaption {
  font-size: 12px; color: var(--text-2); margin: 6px 0 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.thumbs .thumb-ops { display: flex; gap: 6px; }

/* ============================================================
   T05 · 数据导入页（M10）
   ============================================================ */
.steps { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.steps .step {
  flex: 1 1 140px; padding: 8px 12px; border: 1px solid var(--border);
  border-radius: var(--radius); background: #fafbfc; color: var(--text-2);
  font-size: 13px; transition: all .15s;
}
.steps .step b { margin-right: 4px; color: #b6bcc6; }
.steps .step.active { border-color: var(--primary); background: #eef4fe; color: var(--primary); }
.steps .step.active b { color: var(--primary); }

.metrics {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px; margin: 4px 0 18px;
}
.metric {
  background: #fafbfc; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 10px 12px;
}
.metric .m-label { font-size: 13px; color: var(--text-2); margin-bottom: 2px; }
.metric .m-value { font-size: 20px; font-weight: 600; }
.metric.ok  .m-value { color: var(--ok); }
.metric.err .m-value { color: var(--danger); }

.card h3 {
  font-size: 14px; margin: 18px 0 6px; padding-bottom: 4px;
  border-bottom: 1px solid #f0f0f0;
}
.card h3 .muted { font-weight: 400; font-size: 12px; margin-left: 6px; }
code {
  background: #f2f4f7; padding: 1px 5px; border-radius: 3px;
  font-size: 12px; font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
}

/* ---------- 售卖区（M5，B5） ---------- */
.sale-box {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 14px; background: #fafbfc;
}
.sale-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.sale-row .chk { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
.sale-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px 14px;
}
.sale-grid .field { display: flex; flex-direction: column; gap: 4px; }
.sale-grid .field label { font-size: 12px; color: var(--text-2); }
.sale-actions { margin-top: 12px; display: flex; align-items: center; gap: 12px; }

/* P4 修复：售价「灰显 input + 框内提示 + 框下当前值」三重信息重复，
   且旧写法「当前：128」未做金额格式化。改为只读纯文本 + 旁注说明。 */
.sale-price-readonly {
  display: flex; align-items: baseline; gap: 8px;
  min-height: 30px; padding: 5px 0;
}
.sale-price-readonly .val {
  font-size: 16px; font-weight: 600; color: var(--text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;   /* 售价 ¥ 与数字不折行 */
}
.sale-price-readonly .val.empty { color: var(--text-2); font-weight: 400; font-size: 14px; }
.sale-price-readonly .note { font-size: 12px; color: var(--text-2); flex: 1 1 auto; min-width: 0; }

/* P2 修复：详情弹层四区标题吸顶，滚动时仍知道自己在哪一段 */
.sect-title {
  position: sticky; top: -20px; z-index: 2;
  background: #fff; margin: 18px 0 8px; padding: 6px 0;
  font-size: 14px; font-weight: 600;
}
.sect-title:first-child { margin-top: 0; }
.sect-title .muted { font-weight: 400; }

/* 建档页「申请号」按钮：编码输入框内联（2026-10-05 客户拍板 B2 联动） */
.code-input { display: flex; gap: 8px; align-items: stretch; }
.code-input > input { flex: 1 1 auto; min-width: 0; }
.code-input > button { flex: 0 0 auto; white-space: nowrap; padding: 0 14px; }

/* ==========================================================================
   M14 产品画册（客户 2026-10-06 需求变更）
   对标客户 WPS 旧画册截图：主图为主体，卡片下三行（编号 / 品牌 / OE）
   ========================================================================== */

/* ---- 标题 + 统计条 ---- */
.cat-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 14px; flex-wrap: wrap;
}
.cat-stat { display: flex; gap: 14px; align-items: center; }
.cat-stat .st {
  font-size: 13px; color: var(--text-2);
  padding: 4px 12px; background: var(--panel);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.cat-stat .st b { font-size: 17px; color: var(--text); margin-right: 3px; font-variant-numeric: tabular-nums; }
.cat-stat .st.warn b { color: var(--warn); }

/* ---- 视图切换分段按钮 ---- */
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.seg button {
  border: 0; border-radius: 0; background: var(--panel); color: var(--text-2);
  padding: 7px 14px; cursor: pointer; font-size: 13px; white-space: nowrap;
}
.seg button + button { border-left: 1px solid var(--border); }
.seg button.on { background: var(--primary); color: #fff; }

/* ---- 筛选区复选 ---- */
.cat-chk {
  display: inline-flex !important; align-items: center; gap: 6px;
  margin: 0 !important; cursor: pointer; user-select: none;
  white-space: nowrap; font-size: 13px;
}
.cat-chk input { margin: 0; cursor: pointer; }

/* ---- 主图视图：卡片网格 ---- */
.cat-grid {
  display: grid;
  /* minmax 下限 176px：一屏约 5~6 列，与客户截图的密度接近 */
  grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
  gap: 14px;
}
.cat-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  transition: box-shadow .12s, border-color .12s, transform .12s;
}
.cat-card:hover { box-shadow: 0 3px 12px rgba(0, 0, 0, .12); border-color: var(--primary); transform: translateY(-1px); }

.cat-card .pic-wrap { position: relative; aspect-ratio: 1 / 1; background: #fafbfc; }
.pic {
  width: 100%; height: 100%; object-fit: contain;   /* 不裁切产品图 */
  display: block; background: #fafbfc;
}
.pic.noimg {
  display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(45deg, #f4f5f7, #f4f5f7 8px, #eceef1 8px, #eceef1 16px);
  color: var(--text-2); font-size: 13px;
}
.corner-tag {
  position: absolute; top: 6px; right: 6px;
  background: rgba(217, 119, 6, .92); color: #fff;
  font-size: 11px; padding: 1px 7px; border-radius: 10px;
}

.cat-card .info { padding: 8px 10px 10px; }
.cat-card .code {
  display: block; font-weight: 600; color: var(--primary);
  text-decoration: none; font-size: 14px; font-variant-numeric: tabular-nums;
}
.cat-card .code:hover { text-decoration: underline; }
.cat-card .brand-line {
  font-size: 12px; color: var(--text-2); margin-top: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cat-card .oe-line {
  font-size: 11px; color: var(--text-2); margin-top: 4px; line-height: 1.5;
  /* OE 最多 3 行 + 「等 N 个」；超出的截断，避免卡片高度失控 */
  max-height: 3.9em; overflow: hidden;
  word-break: break-all;
}
.cat-card .name-line {
  font-size: 12px; color: var(--text); margin-top: 5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---- 列表视图 ---- */
.cat-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.cat-table th, .cat-table td {
  padding: 7px 10px; border-bottom: 1px solid var(--border);
  text-align: left; vertical-align: middle;
}
.cat-table thead th { background: #f7f8fa; font-weight: 600; color: var(--text-2); font-size: 12px; }
.cat-table tbody tr:hover { background: #f7f9fd; }
.cat-table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cat-table .ellip { max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-table .mini { width: 40px; height: 40px; border-radius: 4px; border: 1px solid var(--border); }
.cat-table .code { color: var(--primary); text-decoration: none; font-weight: 600; }
.cat-table .code:hover { text-decoration: underline; }

/* ---- 详情抽屉（画册用；不复用物料档案大弹层，避免画册变档案） ---- */
.drawer-mask {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .3);
  display: none; z-index: 60;
}
.drawer-mask.show { display: block; }
.drawer {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: min(460px, 94vw); background: var(--panel);
  box-shadow: -4px 0 20px rgba(0, 0, 0, .16);
  display: flex; flex-direction: column;
}
.drawer header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--border); gap: 12px;
}
.drawer header h3 { margin: 0; font-size: 15px; font-weight: 600; }
.drawer .body { padding: 16px 18px 28px; overflow-y: auto; }
.dr-pic {
  width: 100%; aspect-ratio: 1 / 1; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 14px;
}
/* 固定列宽：必须 table-layout:fixed。
   ⚠ 原因：自动表格布局下，td 的 `overflow-wrap: anywhere`（旧写法的 word-break:break-word
     等价于它）会**参与最小内容宽度计算**，把「BG-11HDM04」压成一个字符宽 ——
     表格整体还占满宽，剩余空间却不分配，于是值列被挤成逐字竖排。
     fixed 布局下第一列锁 96px，其余全给值列，长编码/OE 才不会断行。 */
table.kv { width: 100%; border-collapse: collapse; font-size: 13px; table-layout: fixed; }
table.kv th {
  width: 96px; text-align: left; font-weight: 500; color: var(--text-2);
  vertical-align: top; padding: 7px 10px 7px 0; white-space: nowrap;
}
table.kv td { padding: 7px 0; vertical-align: top; overflow-wrap: break-word; }
table.kv tr + tr th, table.kv tr + tr td { border-top: 1px solid var(--border); }

/* ===========================================================================
   BOM 结构独立页（R008 / T14）
   =========================================================================== */
/* 左右分栏：左固定 320px 清单，右自适应详情（窄屏纵向堆叠） */
.bom-split {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
@media (max-width: 900px) {
  .bom-split { grid-template-columns: minmax(0, 1fr); }
}
.bom-left, .bom-right { padding: 14px 16px; }
.bom-left { position: sticky; top: 12px; max-height: calc(100vh - 110px); overflow-y: auto; }
.bom-right { min-height: 260px; }

/* 左栏条目 */
.bom-root {
  padding: 8px 10px; border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer; border-bottom: 1px solid var(--border);
}
.bom-root:hover { background: var(--bg); }
.bom-root.on { border-color: var(--primary); background: #eef4ff; }
.r-line1 { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.r-line1 code { font-size: 13px; font-weight: 600; }
.r-cnt { font-size: 11px; color: var(--text-2); white-space: nowrap; }
.r-line2 {
  font-size: 12px; color: var(--text); margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.r-line3 { margin-top: 4px; display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }

/* 右栏头部 */
.bom-dhead {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.bom-dhead .d-code { font-size: 15px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bom-dhead .d-code code { font-size: 15px; font-weight: 600; }
.bom-dhead .d-name { font-size: 13px; color: var(--text-2); margin-top: 3px; }
.bom-dhead .d-actions { display: flex; gap: 6px; flex-shrink: 0; }
a.mini {
  display: inline-block; font-size: 12px; padding: 3px 9px;
  border: 1px solid var(--border); border-radius: 4px;
  color: var(--text-2); text-decoration: none; line-height: 1.5;
}
a.mini:hover { border-color: var(--primary); color: var(--primary); }

/* 告警框（层级截断 / 挂载告警） */
.warn-box {
  background: #fef3e2; color: var(--warn); font-size: 12px;
  padding: 6px 10px; border-radius: 4px; margin-bottom: 8px;
}
/* 必填星号 */
.req { color: var(--danger); margin-left: 2px; }

/* 弹层遮罩：本页用 .on（档案页用 .show，两者并存互不影响） */
.drawer-mask.on { display: block; }

/* ==========================================================================
   R025 · ICP 备案号页脚（法规要求公示 + 链接工信部备案系统）
   号码来自 config.ICP_BEIAN → /api/config/public，禁止前端硬编码
   ========================================================================== */
.site-icp { font-size: 12px; color: var(--text-2); }
.site-icp a { color: inherit; text-decoration: none; }
.site-icp a:hover { text-decoration: underline; }

/* 登录页：固定在视口底部居中（position:fixed 后不参与 .login-wrap 的 flex 排布） */
.login-wrap > .site-icp {
  position: fixed; left: 0; right: 0; bottom: 14px;
  text-align: center; opacity: .8;
}

/* 内页：右下角常驻小字，不占布局、不遮挡内容 */
body > footer.site-icp {
  position: fixed; right: 10px; bottom: 4px;
  font-size: 11px; opacity: .5; z-index: 1;
}
body > footer.site-icp:hover { opacity: .85; }

