/* ============================================================
   黑名单检测平台 · 应用样式
   主题：soft-saas（对齐 docs/03-designs/ui-prototypes/blacklist-demo.html 的 token）
   Element Plus 通过 CSS 变量覆盖为主题值；布局类以 bp- 前缀。
   ============================================================ */
:root {
  /* ---- 品牌（soft-saas） ---- */
  --fu-brand: #1492FF;
  --fu-brand-hover: #40ACFF;
  --fu-brand-active: #0B72D9;
  --fu-brand-soft: rgba(20, 146, 255, 0.10);
  --fu-brand-line: rgba(20, 146, 255, 0.22);
  --fu-canvas: #F5F7FA;
  --fu-soft: #F5F6F7;
  --fu-card: #FFFFFF;
  --fu-ink: #222629;
  --fu-body: #5A6066;
  --fu-muted: #8D9399;
  --fu-success: #15BE50;
  --fu-warning: #FFA100;
  --fu-error: #E52E2E;
  --fu-hairline: rgba(126, 134, 142, 0.16);
  --fu-hairline-strong: rgba(126, 134, 142, 0.28);
  --fu-radius-control: 4px;
  --fu-radius-card: 10px;
  --fu-shadow-sm: 0 1px 4px rgba(34, 38, 41, 0.10);
  --fu-shadow-md: 0 8px 24px rgba(34, 38, 41, 0.12);
  --fu-shadow-overlay: 0 12px 32px rgba(34, 38, 41, 0.20);
  --fu-font: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  --fu-font-numeric: "DIN", "Roboto Mono", "SF Mono", "Helvetica Neue", sans-serif;
  --fu-sidebar: 208px;
  --fu-top: 56px;
  /* 内容区安全上限：只在超宽屏（≥ ~2800px 视口）触发并居中，普通宽屏（1920 / 2560）一律流式铺满 */
  --fu-content-max: 2560px;
  /* ---- 参考原型视觉 token（pages-zdd-align B7） ---- */
  --bp-card: rgba(255, 255, 255, 0.82);
  --bp-card-border: rgba(59, 109, 255, 0.14);
  --bp-card-shadow: 0 4px 18px rgba(30, 60, 150, 0.07);
  --bp-sub: #67719a;
  --bp-green: #0e9f6e;
  --bp-red: #dc3d43;

  /* ---- Element Plus 变量覆盖 ---- */
  --el-color-primary: #1492FF;
  --el-color-primary-light-3: #4AACFF;
  --el-color-primary-light-5: #8AC9FF;
  --el-color-primary-light-7: #B3DDFF;
  --el-color-primary-light-8: #C9E8FF;
  --el-color-primary-light-9: #EAF5FF;
  --el-color-primary-dark-2: #0B72D9;
  --el-color-success: #15BE50;
  --el-color-success-light-3: #5BD47C;
  --el-color-success-light-5: #8CE1A3;
  --el-color-success-light-7: #BDEECB;
  --el-color-success-light-8: #D3F4DD;
  --el-color-success-light-9: #E9FAEF;
  --el-color-success-dark-2: #119840;
  --el-color-warning: #FFA100;
  --el-color-warning-light-3: #FFBA40;
  --el-color-warning-light-5: #FFCD73;
  --el-color-warning-light-7: #FFE0A6;
  --el-color-warning-light-8: #FFE9BF;
  --el-color-warning-light-9: #FFF4E5;
  --el-color-warning-dark-2: #CC8100;
  --el-color-danger: #E52E2E;
  --el-color-danger-light-3: #EB6464;
  --el-color-danger-light-5: #F19696;
  --el-color-danger-light-7: #F6C7C7;
  --el-color-danger-light-8: #F9DDDD;
  --el-color-danger-light-9: #FCEEEE;
  --el-color-danger-dark-2: #B72525;
  --el-color-error: #E52E2E;
  --el-color-error-light-3: #EB6464;
  --el-color-error-light-5: #F19696;
  --el-color-error-light-7: #F6C7C7;
  --el-color-error-light-8: #F9DDDD;
  --el-color-error-light-9: #FCEEEE;
  --el-color-error-dark-2: #B72525;
  --el-color-info: #8D9399;
  --el-color-info-light-3: #ADB2B6;
  --el-color-info-light-5: #C6CACD;
  --el-color-info-light-7: #DFE1E3;
  --el-color-info-light-8: #EAEBEC;
  --el-color-info-light-9: #F4F5F6;
  --el-color-info-dark-2: #71767B;
  --el-text-color-primary: #222629;
  --el-text-color-regular: #5A6066;
  --el-text-color-secondary: #8D9399;
  --el-text-color-placeholder: #A8AEB3;
  --el-border-color: rgba(126, 134, 142, 0.28);
  --el-border-color-light: rgba(126, 134, 142, 0.20);
  --el-border-color-lighter: rgba(126, 134, 142, 0.14);
  --el-border-color-extra-light: rgba(126, 134, 142, 0.08);
  --el-fill-color: #F0F2F4;
  --el-fill-color-light: #F5F6F7;
  --el-fill-color-lighter: #F8F9FA;
  --el-fill-color-extra-light: #FAFBFC;
  --el-fill-color-dark: #E9EBED;
  --el-fill-color-darker: #E1E4E7;
  --el-bg-color-page: #F5F7FA;
  --el-bg-color: #FFFFFF;
  --el-border-radius-base: 4px;
  --el-border-radius-small: 2px;
  --el-border-radius-round: 22px;
  --el-font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  --el-font-size-base: 14px;
  --el-box-shadow-light: 0 8px 24px rgba(34, 38, 41, 0.12);
  --el-box-shadow: 0 12px 32px rgba(34, 38, 41, 0.20);
  --el-mask-color: rgba(34, 38, 41, 0.45);
}

/* ============================================================ 应用壳 */
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--fu-font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--fu-body);
  background: var(--fu-canvas);
  -webkit-font-smoothing: antialiased;
}
/* B7：浅色星空底色（对齐参考原型：径向渐变 #e6ecff → #f7f9fe → #eef2fa），星点粒子由 app.js 画在 #bp-stars */
body { background: radial-gradient(ellipse at 20% -10%, #e6ecff 0%, #f7f9fe 45%, #eef2fa 100%) fixed; color: #3d4a73; }
#bp-stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
#app { position: relative; z-index: 1; }
h1, h2, h3, h4 { color: var(--fu-ink); margin: 0; line-height: 1.25; font-weight: 600; }
.mono { font-family: var(--fu-font-numeric); font-variant-numeric: tabular-nums; }
.num { font-family: var(--fu-font-numeric); font-variant-numeric: tabular-nums; font-weight: 600; color: var(--fu-ink); }
.muted { color: var(--fu-muted); font-size: 12px; }
.nowrap { white-space: nowrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.bp-shell { display: grid; grid-template-columns: var(--fu-sidebar) minmax(0, 1fr); min-height: 100vh; }
.bp-side {
  /* 2026-12-04 ui-round3 #2：height 100vh 必须含内边距（border-box），否则侧栏比视口高 28px，页面滚到底时 sticky 元素被包含块顶上去 28px（看起来像菜单跟着滚动） */
  position: sticky; top: 0; height: 100vh; box-sizing: border-box; overscroll-behavior: contain; display: flex; flex-direction: column;
  background: rgba(255,255,255,.72); border-right: 1px solid var(--bp-card-border); padding: 16px 12px; backdrop-filter: blur(10px);
}
.bp-brand { display: flex; align-items: center; gap: 8px; padding: 8px; margin-bottom: 32px; }
.bp-brand-mark {
  width: 32px; height: 32px; border-radius: 9px; background: var(--fu-brand); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.bp-brand-name { font-weight: 600; color: var(--fu-ink); font-size: 16px; }
.bp-nav { display: flex; flex-direction: column; gap: 4px; }
.bp-nav-item {
  display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--fu-radius-control);
  color: var(--fu-body); font-size: 14px; cursor: pointer; background: transparent; border: 0; width: 100%; text-align: left;
  font-family: inherit; transition: background-color .12s, color .12s;
}
.bp-nav-item:hover { background: var(--fu-soft); color: var(--fu-ink); }
.bp-nav-item.is-active { background: var(--fu-brand-soft); color: var(--fu-brand); font-weight: 600; }
.bp-side-foot { margin-top: auto; color: var(--fu-muted); font-size: 12px; padding: 8px; line-height: 1.6; }

.bp-main { display: flex; flex-direction: column; min-width: 0; }
.bp-top {
  height: var(--fu-top); display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 24px; background: var(--fu-card); border-bottom: 1px solid var(--fu-hairline);
  position: sticky; top: 0; z-index: 20;
}
.bp-top .title { font-size: 16px; font-weight: 600; color: var(--fu-ink); }
.bp-top-right { display: flex; align-items: center; gap: 12px; }
.bp-available {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: var(--fu-radius-control);
  background: var(--fu-brand-soft); color: var(--fu-brand); font-size: 13px; font-weight: 500; cursor: pointer; border: 1px solid var(--fu-brand-line);
}
.bp-available .num { color: var(--fu-brand); font-size: 15px; }
.bp-user { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: var(--fu-radius-control); border: 1px solid var(--fu-hairline); background: #fff; cursor: pointer; font-size: 14px; color: var(--fu-ink); outline: none; }
.bp-user:hover { border-color: var(--fu-hairline-strong); }
.bp-role { font-size: 11px; padding: 0 6px; border-radius: 10px; background: var(--fu-soft); color: var(--fu-muted); }

/* 页面容器流式铺满内容区（原 1440px 硬顶来自 1440×900 设计稿，27" 2560 屏右侧会空出 ~900px）；触及上限时居中 */
.bp-page { padding: 24px; display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: var(--fu-content-max, 2560px); margin-inline: auto; }

/* ---- 横幅 / 卡片 ---- */
.bp-band {
  position: relative; overflow: hidden; background: var(--fu-brand-soft); border: 1px solid var(--fu-brand-line);
  border-radius: var(--fu-radius-card); padding: 24px 32px 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.bp-band::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .45;
  background-image: repeating-linear-gradient(135deg, var(--fu-brand-line) 0 1px, transparent 1px 18px);
}
.bp-band > * { position: relative; }
.bp-band h1 { font-size: 20px; }
.bp-band p { margin: 4px 0 0; color: var(--fu-body); font-size: 14px; }
.bp-card {
  background: var(--bp-card); border: 1px solid var(--bp-card-border); border-radius: 12px;
  box-shadow: var(--bp-card-shadow); padding: 18px 20px; backdrop-filter: blur(10px);
}
.bp-card--overlap { margin-top: -64px; position: relative; z-index: 2; }
.bp-card-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.bp-card-title h2 { font-size: 16px; }
.bp-card-title .hint { color: var(--fu-muted); font-size: 12px; }
.bp-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }

/* ---- KPI ---- */
.bp-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1100px) { .bp-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bp-kpi {
  background: var(--fu-card); border: 1px solid var(--fu-hairline); border-radius: var(--fu-radius-card); box-shadow: var(--fu-shadow-sm);
  padding: 16px 20px; display: flex; gap: 12px; align-items: flex-start;
}
.bp-kpi-icon { width: 32px; height: 32px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: var(--fu-soft); color: var(--fu-body); flex: none; }
.bp-kpi--success .bp-kpi-icon { background: rgba(21,190,80,.12); color: var(--fu-success); }
.bp-kpi--danger .bp-kpi-icon { background: rgba(229,46,46,.09); color: var(--fu-error); }
.bp-kpi--warn .bp-kpi-icon { background: rgba(255,161,0,.14); color: var(--fu-warning); }
.bp-kpi-label { font-size: 12px; color: var(--fu-muted); }
.bp-kpi-num { font-family: var(--fu-font-numeric); font-variant-numeric: tabular-nums; font-weight: 600; font-size: 24px; color: var(--fu-ink); line-height: 1.2; }
.bp-kpi-num small { font-size: 12px; color: var(--fu-muted); margin-left: 2px; font-weight: 400; }
.bp-kpi-sub { font-size: 12px; color: var(--fu-muted); margin-top: 2px; }

/* ---- 上传 ---- */
.bp-dropzone .el-upload-dragger { padding: 36px 20px; border-radius: var(--fu-radius-card); border-color: var(--fu-hairline-strong); background: #fff; transition: border-color .12s, background-color .12s; }
.bp-dropzone .el-upload-dragger.is-dragover { border-color: var(--fu-brand); background: var(--fu-brand-soft); }
.bp-dropzone .el-upload { width: 100%; }
.bp-drop-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--fu-brand-soft); color: var(--fu-brand); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.bp-drop-title { font-size: 16px; font-weight: 600; color: var(--fu-ink); margin: 0 0 4px; }
.bp-drop-sub { font-size: 13px; color: var(--fu-muted); margin: 0; }
.bp-upload-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.bp-upload-foot .help-inline { color: var(--fu-muted); font-size: 13px; }
.bp-upload-foot .ops { display: flex; gap: 8px; margin-left: auto; }

.bp-file-chip { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--fu-hairline); border-radius: var(--fu-radius-card); background: var(--fu-soft); }
.bp-file-chip .icon { width: 36px; height: 36px; border-radius: 8px; background: #fff; border: 1px solid var(--fu-hairline); display: inline-flex; align-items: center; justify-content: center; color: var(--fu-brand); flex: none; }
.bp-file-chip .name { font-weight: 600; color: var(--fu-ink); }
.bp-file-chip .meta { font-size: 12px; color: var(--fu-muted); margin-top: 2px; }
.bp-file-chip .right { margin-left: auto; display: flex; gap: 8px; }

.bp-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
@media (max-width: 900px) { .bp-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bp-summary-item { border: 1px solid var(--fu-hairline); border-radius: var(--fu-radius-card); padding: 12px 16px; background: #fff; }
.bp-summary-item .l { font-size: 12px; color: var(--fu-muted); }
.bp-summary-item .v { font-family: var(--fu-font-numeric); font-variant-numeric: tabular-nums; font-weight: 600; font-size: 22px; color: var(--fu-ink); }
.bp-summary-item--ok .v { color: var(--fu-success); }
.bp-summary-item--bad .v { color: var(--fu-error); }
.bp-equation { font-size: 13px; color: var(--fu-body); background: var(--fu-soft); border-radius: var(--fu-radius-control); padding: 8px 12px; }
.bp-equation .num { font-size: 13px; }
.bp-need { font-size: 13px; color: var(--fu-body); margin-top: 8px; }
.bp-need .num { font-size: 14px; }

/* ---- 进度 ---- */
.bp-progress { margin-top: 16px; }
.bp-progress .el-progress-bar__outer { background: var(--fu-soft); }
.bp-progress-text { display: flex; justify-content: space-between; font-size: 13px; color: var(--fu-body); margin-top: 6px; flex-wrap: wrap; gap: 6px 16px; }
.bp-progress-text .num { font-weight: 600; }

/* ---- 结果区 ---- */
/* el-tabs 的 nav 是 float 布局，放在 flex 行里会塌缩成 0 宽，这里用 grid 给它确定宽度 */
.bp-result-head { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.bp-result-head .el-tabs { width: 100%; }
.bp-result-head .el-tabs__header { margin-bottom: 0; }
.bp-result-head .el-tabs__content { display: none; }
.bp-result-ops { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
.bp-tabs .el-tabs__item { font-weight: 500; }
.bp-tabs .count { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 6px; border-radius: 10px; background: var(--fu-soft); color: var(--fu-muted); font-size: 11px; line-height: 18px; text-align: center; }
.bp-tabs .is-active .count { background: var(--fu-brand-soft); color: var(--fu-brand); }
.bp-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.bp-pager .range { color: var(--fu-muted); font-size: 12px; }

/* ---- 表格 ---- */
.el-table { --el-table-header-bg-color: rgba(59,109,255,.06); --el-table-row-hover-bg-color: rgba(59,109,255,.05); --el-table-border-color: rgba(59,109,255,.10); --el-table-bg-color: transparent; --el-table-tr-bg-color: transparent; font-size: 13.5px; background: transparent; }
html[data-theme="dark"] .el-table { --el-table-border-color: rgba(120,140,200,.22); }
/* 列宽拖拽（el-table border resizable）：引导线用品牌色；表头悬停时右缘显示可拖小把手（最后一列框架不允许拖，排除） */
.el-table__column-resize-proxy { background-color: var(--bp-primary); z-index: 30; }
.el-table th.el-table__cell { position: relative; }
.el-table th.el-table__cell:not(:last-child):hover::after { content: ""; position: absolute; top: 26%; right: -1px; width: 2px; height: 48%; border-radius: 1px; background: var(--bp-primary); opacity: .55; pointer-events: none; }
.bp-cols-reset { margin-left: 8px; white-space: nowrap; }
.el-table th.el-table__cell { color: var(--bp-sub); font-weight: 600; height: 46px; }
.el-table td.el-table__cell { padding: 12px 0; }
.el-table--striped .el-table__body tr.el-table__row--striped td.el-table__cell { background: rgba(59,109,255,.025); }
.el-table .cell { line-height: 20px; color: #3d4a73; }
.el-table .ops { display: flex; gap: 4px; flex-wrap: wrap; }
.el-table .ops .el-button + .el-button { margin-left: 0; }
.el-button { font-weight: 500; }
.el-button--primary { box-shadow: 0 1px 2px rgba(20,146,255,.25); }
.el-tag { font-weight: 500; }
/* B7：弹窗遮罩背景模糊 + 白卡圆角 14（对齐参考原型 .modal-mask / .modal） */
.el-overlay { background: rgba(30, 45, 90, .35); backdrop-filter: blur(4px); }
.el-dialog { border-radius: 14px; background: rgba(255,255,255,.97); border: 1px solid var(--bp-card-border); box-shadow: 0 30px 80px rgba(30,60,150,.28); }
.el-dialog__header { padding: 16px 20px; border-bottom: 1px solid var(--bp-card-border); margin-right: 0; }
.el-dialog__title { font-weight: 600; color: var(--bp-ink); font-size: 15px; }
.el-dialog__body { padding: 20px; }
.el-dialog__footer { padding: 0 20px 20px; }
/* B7：Toast 顶部居中白胶囊，成功绿边 / 失败红边 */
.el-message { border-radius: 10px; border: 1px solid var(--bp-card-border); background: rgba(255,255,255,.96); box-shadow: 0 10px 30px rgba(30,60,150,.2); color: var(--bp-ink); border-color: rgba(59,109,255,.2); }
.el-message.el-message--success { border-color: rgba(14,159,110,.45); }
.el-message.el-message--error { border-color: rgba(220,61,67,.45); }
.el-message.el-message--warning { border-color: rgba(255,161,0,.45); }
.el-form-item__label { color: var(--fu-body); }
.el-alert { border-radius: 12px; }
.el-alert__title { font-weight: 600; }
.el-alert .ops { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.el-collapse { --el-collapse-border-color: var(--fu-hairline); }
.el-collapse-item__header { font-weight: 500; color: var(--fu-ink); }
.el-message-box { border-radius: 14px; background: rgba(255,255,255,.97); border: 1px solid var(--bp-card-border); }
/* 确认弹窗的危险操作按钮（如运行参数页「立即清除」）：confirmButtonClass='el-button--danger' 时 Element Plus 仍保留 primary 底色，这里用按钮变量覆盖为红色 */
.el-message-box .el-button.el-button--danger { --el-button-text-color: #fff; --el-button-bg-color: var(--el-color-danger); --el-button-border-color: var(--el-color-danger); --el-button-hover-text-color: #fff; --el-button-hover-bg-color: var(--el-color-danger-light-3); --el-button-hover-border-color: var(--el-color-danger-light-3); --el-button-active-bg-color: var(--el-color-danger-dark-2); --el-button-active-border-color: var(--el-color-danger-dark-2); }
.el-pagination { --el-pagination-button-bg-color: transparent; }
.el-pager li.is-active { background: linear-gradient(135deg, var(--bp-primary-2), var(--bp-primary)); border-radius: 6px; }

/* ---- 过滤条 ---- */
.bp-filter { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.bp-filter .el-input { width: 260px; }
.bp-filter .el-select { width: 160px; }

/* ---- 错误弹窗 ---- */
.bp-err-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.bp-err-summary .item { border: 1px solid var(--fu-hairline); border-radius: var(--fu-radius-card); padding: 10px 14px; background: #fff; }
.bp-err-summary .l { font-size: 12px; color: var(--fu-muted); }
.bp-err-summary .v { font-weight: 600; color: var(--fu-ink); margin-top: 2px; }
.bp-dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: 13px; }
.bp-dl dt { color: var(--fu-muted); }
.bp-dl dd { margin: 0; color: var(--fu-ink); word-break: break-all; }
.bp-err-item { margin-bottom: 8px; }
.bp-err-item .el-timeline-item__timestamp { color: var(--fu-muted); }
.bp-err-att { font-size: 13px; }
.bp-err-att .tag { margin-right: 6px; }
.bp-gen-pwd { font-family: var(--fu-font-numeric); font-size: 16px; letter-spacing: .5px; padding: 10px 14px; border-radius: var(--fu-radius-control); background: var(--fu-soft); border: 1px dashed var(--fu-hairline-strong); word-break: break-all; }

/* ---- 登录页（2026-12-03 改为全屏封面背景 + 居中表单卡：封面 fixed 铺满视口、深色渐变遮罩保证可读；盾牌 Logo + 图标输入框。原 B7 居中单卡 / 12-02 左封面双栏退场） ---- */
.bp-boot { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
/* 2026-12-04：box-sizing border-box——原 content-box 下 min-height 100vh + padding 32px*2 = 100vh+64px，登录页多出 64px 出现纵向滚动条 */
.bp-auth { position: relative; min-height: 100vh; box-sizing: border-box; display: flex; align-items: center; justify-content: center; padding: 32px; }
.bp-login-shell { position: static; display: flex; align-items: center; justify-content: center; width: 100%; min-height: calc(100vh - 64px); background: transparent; border: 0; box-shadow: none; }
/* 封面：铺满整个视口（不再局限在中间卡片里）；在 #app 层叠上下文内 z-index 0，表单卡 z-index 1 浮在上面 */
.bp-login-cover { position: fixed; inset: 0; z-index: 0; background: #0b1330; overflow: hidden; }
.bp-login-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
/* 2026-12-04：登录页背景不再加任何遮罩（原 30%→55% → 8%→22% → 去掉），白色登录卡自带阴影保证可读性 */
.bp-login-cover::after { content: none; }
.bp-login-card {
  position: relative; z-index: 1; width: min(460px, 94vw); display: flex; flex-direction: column; justify-content: center; text-align: center; padding: 44px 40px 30px;
  background: rgba(255,255,255,.97); border: 1px solid var(--bp-card-border); border-radius: 20px; box-shadow: 0 28px 70px rgba(10,20,60,.45);
}
@media (max-width: 980px) {
  .bp-auth { padding: 16px; }
  .bp-login-shell { min-height: calc(100vh - 32px); }
  .bp-login-card { padding: 36px 24px 24px; }
}
html[data-theme="dark"] .bp-login-card { background-color: rgba(22,29,51,.97); }
.bp-login-logo { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 18px; color: #fff; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--bp-primary-2), var(--bp-primary)); box-shadow: 0 8px 24px rgba(36,86,230,.35); }
.bp-login-title { font-size: 20px; font-weight: 700; color: var(--bp-ink); letter-spacing: .5px; margin-bottom: 22px; }
.bp-login-card .el-form { text-align: left; }
.bp-login-card .el-form-item { margin-bottom: 18px; }
.bp-login-card .el-form-item__label { font-weight: 600; color: var(--bp-ink); padding-bottom: 6px; line-height: 1.2; }
/* 输入框：圈角大、软底色、聚焦品牌色光环 */
.bp-login-card .el-input__wrapper { border-radius: 12px; padding: 2px 14px; background: #f4f6fb; box-shadow: 0 0 0 1px #e2e7f2 inset; transition: box-shadow .2s ease, background .2s ease; }
.bp-login-card .el-input__wrapper:hover { box-shadow: 0 0 0 1px #c6d1ea inset; }
.bp-login-card .el-input__wrapper.is-focus { background: #fff; box-shadow: 0 0 0 2px var(--bp-primary) inset, 0 0 0 5px rgba(59,109,255,.12); }
.bp-login-card .el-input__wrapper.is-error { box-shadow: 0 0 0 2px var(--el-color-danger) inset; }
.bp-login-card .el-input__inner { height: 26px; font-size: 15px; letter-spacing: .2px; }
.bp-login-card .el-input__prefix, .bp-login-card .el-input__suffix { color: #8a94b6; }
.bp-login-card .el-input__prefix-inner > :first-child, .bp-login-card .el-input__suffix-inner > :first-child { margin-right: 8px; }
.bp-login-card .el-input__suffix-inner > :last-child { margin-left: 8px; }
.bp-login-card .bp-captcha-img { border-radius: 8px; height: 32px; }
html[data-theme="dark"] .bp-login-card .el-input__wrapper { background: var(--el-fill-color-light); box-shadow: 0 0 0 1px rgba(120,140,200,.35) inset; }
html[data-theme="dark"] .bp-login-card .el-input__wrapper.is-focus { background: var(--el-fill-color-blank); }
.bp-login-btn { width: 100%; height: 48px; font-size: 16px; letter-spacing: 6px; border-radius: 12px; margin-top: 6px; box-shadow: 0 10px 24px rgba(36,86,230,.28); }
.bp-login-note { margin: 14px 0 0; text-align: center; font-size: 12px; color: #9aa3c0; }
.bp-captcha-img { height: 30px; border-radius: 4px; cursor: pointer; display: block; }

/* ---- 配置页 ---- */
.bp-config-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1100px) { .bp-config-grid { grid-template-columns: 1fr; } }
.bp-config-group-title { font-size: 13px; font-weight: 600; color: var(--fu-ink); padding: 8px 12px; background: var(--fu-soft); border-radius: var(--fu-radius-control); margin: 4px 0 12px; }
.bp-balance { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border: 1px solid var(--fu-hairline); border-radius: var(--fu-radius-card); }
.bp-balance .num { font-size: 24px; }

/* ---- 流水 ---- */
.bp-amount-pos { color: var(--fu-success); font-weight: 600; }
.bp-amount-neg { color: var(--fu-error); font-weight: 600; }
.link { color: var(--fu-brand); cursor: pointer; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* 检测记录页合计条（UC-TASKS-TOTALS） */
.bp-totals { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding: 12px 16px; margin-bottom: 12px; border: 1px solid var(--bp-card-border); border-radius: 12px; background: rgba(255,255,255,.6); }
.bp-totals .t { min-width: 92px; }
.bp-totals .t .l { font-size: 12px; color: var(--fu-muted); white-space: nowrap; }
.bp-totals .t .v { font-family: var(--fu-font-numeric); font-variant-numeric: tabular-nums; font-weight: 600; font-size: 20px; line-height: 1.25; color: var(--fu-ink); }
.bp-totals .t--ok .v { color: var(--fu-success); }
.bp-totals .t--bad .v { color: var(--fu-error); }
.bp-totals .sep { width: 1px; align-self: stretch; background: var(--fu-hairline); }
.bp-totals .status { margin-left: auto; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.bp-totals .status .st { display: inline-flex; align-items: center; gap: 6px; }
.bp-totals .status .num { font-family: var(--fu-font-numeric); font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .bp-totals .status { margin-left: 0; width: 100%; } }
.bp-totals .t--warn .v { color: var(--fu-warning); }
/* 检测记录：文件名下载链接 + 可点击的数量标签 */
.bp-link { color: var(--el-color-primary); text-decoration: none; cursor: pointer; white-space: nowrap; }
.bp-link:hover { text-decoration: underline; }
.bp-link-icon { margin-left: 4px; vertical-align: -2px; font-size: 13px; }
.bp-dl-tag { cursor: pointer; font-family: var(--fu-font-numeric); font-variant-numeric: tabular-nums; font-weight: 600; }
.bp-dl-tag:hover { box-shadow: 0 0 0 2px var(--el-color-primary-light-8); }
.bp-dl-tag .el-icon { margin-left: 4px; vertical-align: -2px; font-size: 13px; }

/* ============================================================
   pages-zdd-align B6：应用壳与页面对齐参考原型（A01/A02/A03/A04/A05/A06）
   主色对齐参考：--bp-primary #3b6dff，渐变 #2456e6 → #3b6dff；余额金色胶囊；渐变统计卡；药丸徽标
   ============================================================ */
:root {
  --bp-primary: #3b6dff;
  --bp-primary-2: #2456e6;
  --bp-gold: #c58a1a;
  --bp-gold-soft: #fff7e0;
  --bp-gold-line: #f3d98b;
  --bp-ink: #1c2b52;
}
.bp-shell { grid-template-columns: 208px minmax(0, 1fr); }
.bp-side { padding: 14px 10px; }
.bp-nav { gap: 2px; }
.bp-nav-group { font-size: 11px; color: #8a93b8; letter-spacing: 2px; padding: 14px 12px 8px; text-transform: uppercase; }
.bp-nav-item { height: 40px; border-radius: 10px; padding: 0 14px; font-size: 14px; color: #3d4a73; border: 1px solid transparent; }
.bp-nav-item.is-active { background: linear-gradient(135deg, var(--bp-primary-2), var(--bp-primary)); color: #fff; box-shadow: 0 4px 14px rgba(36, 86, 230, .30); font-weight: 600; }
.bp-nav-item.is-active:hover { color: #fff; }

/* 顶栏：品牌 + 余额胶囊 + 用户 */
.bp-top { height: 56px; padding: 0 24px; background: rgba(255,255,255,.86); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(59,109,255,.14); }
.bp-top .bp-brand { display: flex; align-items: center; gap: 10px; padding: 0; margin: 0; }
.bp-top .bp-brand-mark { width: 28px; height: 28px; border-radius: 0; background: transparent; box-shadow: none; color: var(--bp-primary-2); display: inline-flex; align-items: center; justify-content: center; }
.bp-top .bp-brand-name { font-size: 16px; letter-spacing: 1px; color: var(--bp-ink); }
.bp-balance-pill {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 17px; cursor: pointer;
  background: var(--bp-gold-soft); color: var(--bp-gold); border: 1px solid var(--bp-gold-line); font-size: 14px; font-weight: 500;
}
.bp-balance-pill:hover { box-shadow: 0 2px 8px rgba(197,138,26,.18); }
.bp-balance-pill .num { color: var(--bp-gold); font-size: 15px; }
.bp-balance-sub { margin-left: 8px; padding-left: 8px; border-left: 1px solid var(--bp-gold-line); font-size: 12px; color: #9a6f1f; }
.bp-balance-sub .num { font-size: 12px; }
.bp-user { border-radius: 17px; }
.bp-avatar { width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg, var(--bp-primary-2), var(--bp-primary)); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.bp-content { padding: 18px 24px 28px; display: flex; flex-direction: column; }
.bp-crumb { font-size: 14px; color: var(--bp-sub); margin-bottom: 14px; letter-spacing: .5px; }
.bp-page { padding: 0; }

/* 概况：欢迎横幅 + 统计卡 + 常用功能 */
.bp-hero {
  position: relative; overflow: hidden; border-radius: 16px; padding: 26px 32px; color: #fff;
  background: linear-gradient(135deg, var(--bp-primary-2) 0%, var(--bp-primary) 60%, #5f8bff 100%);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; box-shadow: 0 8px 24px rgba(36,86,230,.22);
}
.bp-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(600px 180px at 85% 0%, rgba(255,255,255,.18), transparent 60%); }
.bp-hero > * { position: relative; }
/* 2026-12-04 ui-round3 #6：v-loading 的遮罩必须是 absolute——上面的 > * 会把它改成 relative，淡出动画 300ms 内它成了 flex 第三个子项，把右侧「账户余额」挤到中间再弹回最右 */
.bp-hero > .el-loading-mask, .bp-band > .el-loading-mask { position: absolute; }
.bp-hero-left { display: flex; align-items: center; gap: 16px; min-width: 0; }
.bp-hero-avatar { width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.22); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.bp-hero h1 { color: #fff; font-size: 22px; }
.bp-hero p { margin: 4px 0 10px; color: rgba(255,255,255,.86); font-size: 13px; }
.bp-hero-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.bp-pill { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 12px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.28); font-size: 12px; color: #fff; }
.bp-hero-right { text-align: right; flex: none; }
.bp-hero-label { font-size: 13px; color: rgba(255,255,255,.86); }
.bp-hero-amount { font-size: 40px; font-weight: 700; line-height: 1.1; color: #fff; letter-spacing: .5px; }
.bp-hero-sub { font-size: 12px; color: rgba(255,255,255,.86); margin: 2px 0 10px; }
.bp-hero-btn.el-button { background: #fff; color: var(--bp-primary); border-color: #fff; font-weight: 600; box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.bp-hero-btn.el-button:hover { background: #f3f6ff; color: var(--bp-primary-2); border-color: #f3f6ff; }
.bp-hero-btn--ghost.el-button, .bp-hero-btn--ghost.el-button:hover { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.75); box-shadow: none; font-weight: 600; }
.bp-hero-link { cursor: pointer; text-decoration: underline; color: #fff; font-weight: 600; }

.bp-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1100px) { .bp-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bp-stat {
  position: relative; border-radius: 14px; padding: 20px; color: #fff; display: flex; gap: 12px; align-items: flex-start;
  box-shadow: 0 6px 18px rgba(36,86,230,.18); transition: transform .15s;
}
.bp-stat:hover { transform: translateY(-4px); }
.bp-stat--blue { background: linear-gradient(135deg, #3b6dff, #2456e6); }
.bp-stat--purple { background: linear-gradient(135deg, #8b6bff, #5b3fd6); }
.bp-stat--green { background: linear-gradient(135deg, #22c084, #0e8f5a); }
.bp-stat--navy { background: linear-gradient(135deg, #2f4b8f, #1a2a4f); }
.bp-stat-icon { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.22); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.bp-stat-body { min-width: 0; padding-right: 120px; }
.bp-stat-body .bp-stat-foot { margin-right: -120px; } /* 预警线整行显示（角标只在右上角） */
.bp-stat-label { font-size: 13px; opacity: .9; }
.bp-stat-num { font-size: 28px; font-weight: 700; line-height: 1.2; color: #fff; }
.bp-stat-foot { font-size: 12px; opacity: .82; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-stat-badge { position: absolute; top: 16px; right: 16px; font-size: 12px; padding: 0 10px; height: 24px; line-height: 24px; border-radius: 12px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.25); white-space: nowrap; }
.bp-stat-badge.is-ok { background: rgba(255,255,255,.22); }
.bp-stat-badge.is-bad { background: rgba(220,61,67,.35); border-color: rgba(255,255,255,.35); }
.bp-stat-badge.is-down { opacity: .95; }

.bp-quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.bp-quick-grid.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .bp-quick-grid, .bp-quick-grid.is-three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bp-quick-grid .bp-quick {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 12px; border: 1px solid rgba(59,109,255,.14);
  background: rgba(255,255,255,.82); cursor: pointer; text-align: left; font-family: inherit; color: var(--bp-ink); transition: transform .15s, box-shadow .15s;
}
.bp-quick-grid .bp-quick:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(36,86,230,.14); }
.bp-quick-grid .bp-quick-icon { width: 42px; height: 42px; border-radius: 12px; background: rgba(59,109,255,.10); color: var(--bp-primary); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.bp-quick-grid .bp-quick-title { font-weight: 600; font-size: 15px; }
.bp-quick-grid .bp-quick-desc { font-size: 12px; color: var(--fu-muted); margin-top: 2px; }

/* 充值管理：余额头卡 + 快捷金额 + 折算提示 */
.bp-balance-card {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 28px; border-radius: 14px;
  background: rgba(255,255,255,.86); border: 1px solid rgba(59,109,255,.14); box-shadow: var(--fu-shadow-sm); position: relative; overflow: hidden;
}
.bp-balance-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: linear-gradient(180deg, #f3c96b, var(--bp-gold)); }
.bp-balance-label { font-size: 13px; color: var(--fu-muted); }
.bp-balance-amount { font-size: 40px; font-weight: 700; color: var(--bp-gold); line-height: 1.15; }
.bp-balance-amount small { font-size: 16px; font-weight: 600; margin-left: 6px; color: var(--bp-gold); opacity: .85; }
.bp-balance-sub { font-size: 12px; color: var(--fu-muted); }
.bp-quick-amounts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; width: 100%; }
.bp-quick-amounts .bp-quick { height: 40px; border-radius: 10px; border: 1px solid var(--fu-hairline-strong); background: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; color: var(--bp-ink); cursor: pointer; font-family: inherit; }
.bp-quick-amounts .bp-quick:hover { border-color: var(--bp-primary); color: var(--bp-primary); }
.bp-quick-amounts .bp-quick.is-active { background: linear-gradient(135deg, var(--bp-primary-2), var(--bp-primary)); color: #fff; border-color: transparent; box-shadow: 0 4px 12px rgba(36,86,230,.25); }
.bp-recharge-conv { background: var(--fu-soft); border-radius: 10px; padding: 10px 14px; font-size: 13px; color: var(--fu-body); }

/* 个人信息 */
.bp-profile-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(320px, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1100px) { .bp-profile-grid { grid-template-columns: 1fr; } }
.bp-profile-head { display: flex; align-items: center; gap: 14px; }
.bp-profile-avatar { width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, var(--bp-primary-2), var(--bp-primary)); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.bp-profile-name { font-size: 18px; font-weight: 600; color: var(--bp-ink); }
.bp-cell-user { display: inline-flex; align-items: center; gap: 8px; }

/* 检测记录：快速分段 + 日期范围 */
.bp-segments { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.bp-segment { height: 32px; padding: 0 16px; border-radius: 6px; border: 1px solid rgba(59,109,255,.25); background: rgba(255,255,255,.9); color: var(--bp-sub); font-size: 13px; cursor: pointer; font-family: inherit; transition: all .15s; }
.bp-segment:hover { color: var(--bp-primary-2); border-color: var(--bp-primary); }
.bp-segment.is-active { background: linear-gradient(135deg, var(--bp-primary-2), var(--bp-primary)); color: #fff; border-color: transparent; font-weight: 600; box-shadow: 0 4px 14px rgba(36,86,230,.3); }
.bp-filter--wrap { flex-wrap: wrap; }
/* el-range-editor 根节点带 .el-input__wrapper（flex-grow:1），在 flex 容器 .bp-filter 里会吞掉整行剩余宽度，必须 flex:none 锁回固定宽 */
.bp-filter .el-date-editor { width: 240px; flex: none; }
.bp-filter .bp-filter-label { font-size: 13px; color: var(--bp-sub); white-space: nowrap; }
.bp-filter .el-input__wrapper, .bp-filter .el-select__wrapper, .bp-filter .el-date-editor { background: rgba(255,255,255,.9); }

/* 品牌：主色对齐参考（Element Plus 主色同步为 #3b6dff） */
.el-button--primary { --el-button-bg-color: var(--bp-primary); --el-button-border-color: var(--bp-primary); --el-button-hover-bg-color: #4f7dff; --el-button-hover-border-color: #4f7dff; --el-button-active-bg-color: var(--bp-primary-2); --el-button-active-border-color: var(--bp-primary-2); box-shadow: 0 4px 14px rgba(36,86,230,.25); }

/* ============================================================
   pages-zdd-align B7：页面布局 + 视觉对齐参考原型（A06 / A07 / A13 / A14 / A15）
   ============================================================ */
/* 卡片标题：左侧 3px 蓝条（对齐参考 .card-title）；页面切换淡入 */
.bp-card-title h2 { font-size: 15px; padding-left: 10px; border-left: 3px solid var(--bp-primary); line-height: 1.3; }
.bp-page { animation: bp-page-in .3s ease; }
@keyframes bp-page-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .bp-page, .bp-stat { animation: none; transition: none; } }

/* ---- 黑名单校验：左右布局 + 队列卡（对齐参考 04/05） ---- */
.bp-verify-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 18px; align-items: stretch; }
@media (max-width: 1000px) { .bp-verify-grid { grid-template-columns: 1fr; } }
.bp-verify-label { font-size: 14px; color: var(--bp-ink); margin-bottom: 12px; }
.bp-verify-label b { font-weight: 700; }
/* 检测类型：三张单选卡（对齐参考原型） */
.bp-policy-card { margin-bottom: 14px; }
.bp-policy-group { display: flex; flex-direction: column; gap: 10px; }
.bp-policy-item { display: flex; gap: 12px; align-items: flex-start; width: 100%; box-sizing: border-box; border: 1px solid #dfe5f2; border-radius: 10px; padding: 12px 14px; cursor: pointer; background: #fff; transition: border-color .15s, box-shadow .15s; }
.bp-policy-item:hover { border-color: #b9c8ef; }
.bp-policy-item.is-active { border-color: var(--bp-primary); box-shadow: 0 0 0 3px rgba(59,109,255,.12); }
.bp-policy-radio { position: relative; flex: none; width: 16px; height: 16px; margin-top: 3px; border-radius: 50%; border: 2px solid #b9c3dc; background: #fff; }
.bp-policy-item.is-active .bp-policy-radio { border-color: var(--bp-primary); }
.bp-policy-radio.is-on::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--bp-primary); }
.bp-policy-text { display: flex; flex-direction: column; gap: 2px; }
.bp-policy-title { font-weight: 600; color: var(--bp-ink); font-size: 14px; }
.bp-policy-desc { font-size: 12px; color: var(--bp-sub); }
/* 宽屏（视口 ≥1600px）：三张类型卡横排等宽三列，避免整行单卡被拉成 ~1800px 宽的一行文字 */
@media (min-width: 1600px) {
  .bp-policy-group { flex-direction: row; }
  .bp-policy-item { flex: 1 1 0; min-width: 0; }
}
html[data-theme="dark"] .bp-policy-item { background: var(--el-fill-color-light); border-color: rgba(120,140,200,.35); }
html[data-theme="dark"] .bp-policy-radio { background: transparent; }
.bp-note-title { color: var(--bp-primary-2); font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.bp-note ul { list-style: none; margin: 0; padding: 0; }
.bp-note li { font-size: 13px; color: var(--bp-sub); line-height: 1.9; }
.bp-note li::before { content: "•"; color: var(--bp-primary); margin-right: 8px; }
.bp-dropzone .el-upload-dragger { background: rgba(255,255,255,.75); border: 1.5px dashed rgba(59,109,255,.45); }
.bp-queue-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; flex-wrap: wrap; }
.bp-queue-sum { font-size: 15px; color: var(--bp-ink); }
.bp-queue-sum b { font-weight: 700; }
.bp-queue-sum .c { color: var(--bp-primary-2); }
.bp-queue-empty { padding: 26px 0; text-align: center; color: var(--bp-sub); font-size: 13.5px; }
.bp-q-name { display: inline-flex; align-items: center; gap: 8px; color: var(--bp-ink); }
.bp-q-name .el-icon { color: var(--bp-primary); }
.bp-q-sub { font-size: 12px; color: var(--bp-sub); margin-top: 2px; }
.bp-q-expand { padding: 6px 12px 14px 44px; }
.bp-q-expand .bp-summary-grid { margin: 0 0 10px; }
.bp-q-expand .bp-need { margin: 0 0 6px; }
.bp-q-expand .el-table { margin-top: 8px; }
.el-table__expanded-cell[class*="cell"] { padding: 0 !important; background: transparent !important; }

/* ---- 正在检测（后台运行，2026-12-03 替换原「校验结果弹窗壳」）：逐文件一行，左文件名 / 右进度与计数，当前文件高亮 ---- */
.bp-running .bp-card-title { margin-bottom: 10px; }
/* 2026-12-03 ui-round2：检测记录页 #/tasks?task=ID 定位行高亮（主表 + 固定列两份 tr 都命中） */
.bp-tasks .el-table__body tr.is-target > td { background: var(--bp-primary-soft, #eef3ff) !important; }
.bp-tasks .el-table__body tr.is-target > td:first-child { box-shadow: inset 3px 0 0 var(--bp-primary); }

.bp-run-summary { font-size: 13px; color: var(--bp-sub); margin-bottom: 12px; }
.bp-run-summary b { color: var(--bp-ink); font-variant-numeric: tabular-nums; }
.bp-run-list { display: flex; flex-direction: column; gap: 10px; }
.bp-run-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 44%); gap: 8px 20px; align-items: center; padding: 12px 14px; border: 1px solid var(--bp-card-border); border-radius: 10px; background: rgba(255,255,255,.72); transition: border-color .2s, box-shadow .2s; }
.bp-run-row.is-active { border-color: var(--bp-primary); box-shadow: 0 0 0 3px rgba(59,109,255,.12); }
.bp-run-row.is-done { opacity: .92; }
.bp-run-name { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 600; color: var(--bp-ink); }
.bp-run-name .el-icon { color: var(--bp-primary); flex: none; }
.bp-run-name .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-run-name .muted { font-weight: 400; flex: none; }
.bp-run-row.is-active .bp-run-name::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--bp-primary); animation: bp-pulse 1.2s ease infinite; }
@keyframes bp-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .bp-run-row.is-active .bp-run-name::before { animation: none; } }
.bp-run-status { min-width: 0; font-size: 13px; color: var(--bp-sub); }
.bp-run-status .el-progress { margin: 0; }
.bp-run-status .bp-progress-text { margin-top: 4px; }
.bp-run-status .err { color: var(--bp-red); margin-left: 6px; }
/* 状态徽标（不用 el-tag：其入场过渡在行内分支切换时会卡在 opacity:0） */
.bp-run-badge { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 12px; line-height: 1; margin-right: 6px; vertical-align: middle; background: #f0f5ff; color: var(--bp-primary); }
.bp-run-badge.is-success { background: #e9faef; color: #15be50; }
.bp-run-badge.is-warning { background: #fdf3e6; color: #d9820b; }
.bp-run-badge.is-danger { background: #fdecec; color: var(--bp-red); }
.bp-run-badge.is-info { background: #f0f2f5; color: #6b7aa0; }
@media (max-width: 900px) { .bp-run-row { grid-template-columns: 1fr; } }

/* ---- 多任务结果区：文件切换 ---- */
.bp-result-files { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.bp-result-file { height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--bp-card-border); background: rgba(255,255,255,.8); cursor: pointer; font-family: inherit; font-size: 13px; color: var(--bp-ink); display: inline-flex; align-items: center; gap: 6px; }
.bp-result-file .el-icon { color: var(--bp-primary); }
.bp-result-file.is-active { border-color: var(--bp-primary); color: var(--bp-primary-2); background: rgba(59,109,255,.08); font-weight: 600; }

/* ---- 检测记录：统计卡 ×5（对齐参考 08：紫 总计检测 / 绿 白名单 / 深蓝 黑名单 / 橙 其他 / 蓝 成功率） ---- */
.bp-stat-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .bp-stat-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bp-stat-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1300px) { .bp-stat-grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .bp-stat-grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bp-stat--purple { background: linear-gradient(135deg, #7c6cf0, #5b4bd8); }
.bp-stat--green { background: linear-gradient(135deg, #2fc98a, #0e9f6e); }
.bp-stat--navy { background: linear-gradient(135deg, #47557f, #32406b); }
.bp-stat--orange { background: linear-gradient(135deg, #ff9a3c, #e8740b); }
.bp-stat::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(135deg, rgba(255,255,255,.16), transparent 55%); }
.bp-stat-body, .bp-stat-icon { position: relative; z-index: 1; }
.bp-stat-badge { z-index: 1; }
.bp-stat--flat .bp-stat-body { padding-right: 0; }
.bp-stat--flat { padding: 18px 20px; }
.bp-stat--flat .bp-stat-num { font-size: 30px; text-shadow: 0 2px 8px rgba(0,0,0,.15); }
.bp-stat--flat .bp-stat-label { margin-top: 6px; color: rgba(255,255,255,.88); }
.bp-tasks-sub { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--bp-sub); margin: -4px 0 12px; }
.bp-tasks-sub .num { color: var(--bp-ink); }
/* 状态分布：统计卡下方独立一栏（分隔线 + 标题） */
.bp-tasks-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--bp-card-border); font-size: 13px; color: var(--bp-sub); }
.bp-tasks-status-label { font-weight: 600; color: var(--bp-ink); margin-right: 2px; }
.bp-tasks-status .num { color: var(--bp-ink); }
/* 概况：余额大字单位 + 普通用户充值提示 */
.bp-hero-amount small { font-size: 16px; font-weight: 600; margin-left: 6px; opacity: .85; }
.bp-balance-hint { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--bp-sub); background: var(--bp-card, #fff); border: 1px solid var(--bp-card-border); border-radius: 999px; padding: 7px 14px; }

/* 分页：左「共 N 条 · 每页 M 条」+ 右页码（对齐参考） */
.bp-pager .bp-pager-text { color: var(--bp-sub); font-size: 13px; }
.bp-pager .el-pagination { --el-pagination-font-size: 13px; }
.bp-pager .el-pagination.is-background .btn-prev, .bp-pager .el-pagination.is-background .btn-next, .bp-pager .el-pagination.is-background .el-pager li { border-radius: 6px; }
.el-table .ops .el-button.is-link.bp-danger { color: var(--bp-red); }

/* ============================================================
   主题开关：sys_config.ui_theme → 启动时 GET /api/ui/theme → <html data-theme="dark">（默认 light，与参考原型一致）
   ============================================================ */
html[data-theme="dark"] { color-scheme: dark; }
html[data-theme="dark"] body { background: radial-gradient(ellipse at 20% -10%, #17213f 0%, #0f162b 45%, #0b1020 100%) fixed; color: #b7c1dc; }
html[data-theme="dark"] {
  --fu-card: #161d33; --fu-soft: #1b2440; --fu-ink: #e8edf8; --fu-body: #b7c1dc; --fu-muted: #7f8bab; --fu-hairline: rgba(120,140,200,.18); --fu-hairline-strong: rgba(120,140,200,.32);
  --el-bg-color: #161d33; --el-bg-color-page: #0f162b; --el-bg-color-overlay: #1a2238;
  --el-text-color-primary: #e8edf8; --el-text-color-regular: #b7c1dc; --el-text-color-secondary: #8c97b8; --el-text-color-placeholder: #5e6a8c;
  --el-border-color: rgba(120,140,200,.30); --el-border-color-light: rgba(120,140,200,.22); --el-border-color-lighter: rgba(120,140,200,.16); --el-border-color-extra-light: rgba(120,140,200,.10);
  --el-fill-color: #1f2846; --el-fill-color-light: #1b2440; --el-fill-color-lighter: #182040; --el-fill-color-extra-light: #151c36; --el-fill-color-dark: #232d50; --el-fill-color-darker: #28335a;
  --el-mask-color: rgba(5,8,20,.6);
  --bp-card: rgba(22, 29, 51, .82); --bp-card-border: rgba(90,120,220,.22); --bp-card-shadow: 0 4px 18px rgba(0,0,0,.35); --bp-sub: #8c97b8; --bp-ink: #e8edf8;
}
html[data-theme="dark"] body, html[data-theme="dark"] .el-table .cell { color: #b7c1dc; }
html[data-theme="dark"] h1, html[data-theme="dark"] h2, html[data-theme="dark"] h3, html[data-theme="dark"] h4, html[data-theme="dark"] .num { color: #e8edf8; }
html[data-theme="dark"] .bp-side, html[data-theme="dark"] .bp-top, html[data-theme="dark"] .bp-user, html[data-theme="dark"] .bp-login-card, html[data-theme="dark"] .el-dialog,
html[data-theme="dark"] .el-message, html[data-theme="dark"] .el-message-box, html[data-theme="dark"] .bp-quick-amounts .bp-quick, html[data-theme="dark"] .bp-summary-item,
html[data-theme="dark"] .bp-err-summary .item, html[data-theme="dark"] .bp-file-chip .icon, html[data-theme="dark"] .bp-run-row, html[data-theme="dark"] .bp-result-file,
html[data-theme="dark"] .bp-segment, html[data-theme="dark"] .bp-quick-grid .bp-quick, html[data-theme="dark"] .bp-balance-card, html[data-theme="dark"] .bp-filter .el-input__wrapper,
html[data-theme="dark"] .bp-filter .el-select__wrapper, html[data-theme="dark"] .bp-filter .el-date-editor, html[data-theme="dark"] .bp-dropzone .el-upload-dragger,
html[data-theme="dark"] .bp-totals, html[data-theme="dark"] .bp-auth { background-color: var(--el-bg-color); }
html[data-theme="dark"] .bp-top, html[data-theme="dark"] .bp-side { background-color: rgba(22,29,51,.78); }
html[data-theme="dark"] .bp-login-card, html[data-theme="dark"] .el-dialog, html[data-theme="dark"] .el-message-box { background-color: rgba(22,29,51,.97); }
html[data-theme="dark"] .el-table th.el-table__cell { background: rgba(90,120,220,.12); }
html[data-theme="dark"] .el-table, html[data-theme="dark"] .el-table tr, html[data-theme="dark"] .el-table td.el-table__cell, html[data-theme="dark"] .el-table__expanded-cell[class*="cell"] { background: transparent; }
html[data-theme="dark"] .bp-run-row.is-active { box-shadow: 0 0 0 3px rgba(90,120,220,.25); }
html[data-theme="dark"] .el-upload-dragger { border-color: rgba(120,140,200,.35); }
html[data-theme="dark"] .el-input__wrapper, html[data-theme="dark"] .el-select__wrapper, html[data-theme="dark"] .el-textarea__inner { background-color: var(--el-fill-color-light); }
html[data-theme="dark"] .bp-q-expand .bp-equation, html[data-theme="dark"] .bp-recharge-conv { background: var(--el-fill-color-light); }
.el-table .bp-ops-col .ops { flex-wrap: wrap; gap: 6px; }
.el-table .bp-ops-col .ops .el-button { padding: 5px 10px; border-radius: 6px; font-weight: 500; }
.el-table .bp-ops-col .ops .el-button + .el-button { margin-left: 0; }
.el-table .bp-ops-col .ops .el-button.is-plain.el-button--primary { background: #fff; }
html[data-theme="dark"] .el-table .bp-ops-col .ops .el-button.is-plain { background: var(--el-fill-color-light); }
/* 固定在右侧的操作列必须不透明，否则滚动到下方的列会透出来 */
.el-table__body td.el-table__cell.bp-ops-col { background: #fbfcff; }
.el-table--striped .el-table__body tr.el-table__row--striped td.el-table__cell.bp-ops-col { background: #f3f6fd; }
.el-table__body tr:hover > td.el-table__cell.bp-ops-col { background: #eef3ff; }
/* 管理用户页操作列（2026-12-03 用户反馈：按钮换行、颜色杂）：统一 small link 按钮、单行不换行、紧凑间距；语义色 编辑/明细/重置密码=primary、充值=success、扣减=warning、禁用=danger、启用=success；竖线分隔高频与低频操作；窄屏「更多」走 el-dropdown */
.el-table .bp-ops-col--users .ops { flex-wrap: nowrap; gap: 2px; white-space: nowrap; }
.el-table .bp-ops-col--users .ops .el-button { padding: 5px 7px; font-weight: 500; }
.el-table .bp-ops-col--users .ops .ops-divider { display: inline-block; width: 1px; height: 14px; margin: 0 6px; vertical-align: middle; background: var(--el-border-color-lighter); }
.el-table .bp-ops-col--users .ops .ops-more { color: var(--el-text-color-secondary); padding: 5px 4px; }
.el-dropdown-menu .el-dropdown-menu-item.bp-danger { color: var(--bp-red); }
.el-dropdown-menu .el-dropdown-menu-item.bp-success { color: var(--el-color-success); }
.el-table__header th.el-table__cell.bp-ops-col { background: #eef2fd; }
html[data-theme="dark"] .el-table__body td.el-table__cell.bp-ops-col { background: #1a2340; }
html[data-theme="dark"] .el-table--striped .el-table__body tr.el-table__row--striped td.el-table__cell.bp-ops-col { background: #1e2848; }
html[data-theme="dark"] .el-table__header th.el-table__cell.bp-ops-col { background: #202a4a; }
.el-table .bp-status-col .cell { white-space: nowrap; }

/* ============================================================
   ui-round3 B2（2026-12-04）：表格溢出提示浮层 / 充值扣减按钮阴影 / 复制密码
   ============================================================ */
/* #3 表格溢出提示（U.overflowTip 单例，fixed 定位，按被悬停单元格定位；替代 el-table show-overflow-tooltip） */
/* 宿主：内容单行截断（文件名 / 说明两行各自省略号），溢出时悬停出提示 */
.el-table .cell .bp-ov-host { overflow: hidden; cursor: default; }
.el-table .cell .bp-ov-host .link, .el-table .cell .bp-ov-host .muted { display: block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.el-table .cell .bp-cell-ov { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.bp-ov-tip { position: fixed; left: 0; top: 0; z-index: 1900; display: none; max-width: min(640px, 70vw); padding: 8px 12px; border-radius: 8px; background: rgba(30, 37, 51, .96); color: #fff; font-size: 13px; line-height: 1.5; box-shadow: 0 8px 24px rgba(20, 30, 60, .25); pointer-events: none; }
.bp-ov-tip::after { content: ""; position: absolute; left: var(--bp-tip-arrow-x, 50%); bottom: -6px; margin-left: -6px; border: 6px solid transparent; border-top-color: rgba(30, 37, 51, .96); border-bottom: 0; }
.bp-ov-tip.is-below::after { bottom: auto; top: -6px; border-top: 0; border-bottom: 6px solid rgba(30, 37, 51, .96); }
.bp-ov-tip .bp-ov-tip-main { font-weight: 600; word-break: break-all; }
.bp-ov-tip .bp-ov-tip-sub { color: rgba(255, 255, 255, .72); font-size: 12px; margin-top: 2px; }

/* #8 管理用户操作列「充值 / 扣减」：浅底实体小按钮 + 彩色柔和阴影（原为纯文字 link，挂不上阴影） */
.el-table .bp-ops-col--users .ops .el-button.bp-btn-ops { padding: 5px 10px; border-radius: 6px; font-weight: 600; }
.el-button.bp-btn-ops--success { --el-button-text-color: var(--el-color-success); --el-button-bg-color: var(--el-color-success-light-9); --el-button-border-color: var(--el-color-success-light-7); --el-button-hover-text-color: #fff; --el-button-hover-bg-color: var(--el-color-success); --el-button-hover-border-color: var(--el-color-success); --el-button-active-text-color: #fff; --el-button-active-bg-color: var(--el-color-success-dark-2); --el-button-active-border-color: var(--el-color-success-dark-2); box-shadow: 0 2px 8px rgba(21, 190, 80, .28); }
.el-button.bp-btn-ops--success:hover, .el-button.bp-btn-ops--success:focus { box-shadow: 0 3px 10px rgba(21, 190, 80, .38); }
.el-button.bp-btn-ops--warning { --el-button-text-color: var(--el-color-warning); --el-button-bg-color: var(--el-color-warning-light-9); --el-button-border-color: var(--el-color-warning-light-7); --el-button-hover-text-color: #fff; --el-button-hover-bg-color: var(--el-color-warning); --el-button-hover-border-color: var(--el-color-warning); --el-button-active-text-color: #fff; --el-button-active-bg-color: var(--el-color-warning-dark-2); --el-button-active-border-color: var(--el-color-warning-dark-2); box-shadow: 0 2px 8px rgba(255, 161, 0, .32); }
.el-button.bp-btn-ops--warning:hover, .el-button.bp-btn-ops--warning:focus { box-shadow: 0 3px 10px rgba(255, 161, 0, .42); }
html[data-theme="dark"] .el-table .bp-ops-col--users .ops .el-button.bp-btn-ops.is-plain { background-color: var(--el-button-bg-color); }
/* #4 重置密码结果：密码块整块可选中（复制失败时一键选中后 Ctrl+C） */
.bp-gen-pwd { -webkit-user-select: all; user-select: all; cursor: text; }

/* ============================================================
   运行参数：定时清理 cron 可视化选择 + 下 5 次执行时间（ui-round3 B4，2026-12-04，#9）
   组件 bp-cron-picker：输入框 + 「选择」→ 弹窗（预设 chips / 五段单选行 / 数字 chips / 预览块）
   ============================================================ */
.bp-cron-picker-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bp-cron-input .el-input__inner { font-family: var(--fu-font-numeric); letter-spacing: .3px; }
.bp-cron-pick-btn.el-button { box-shadow: 0 2px 8px rgba(36,86,230,.18); }
.bp-cron-status { font-size: 12px; color: var(--bp-sub); white-space: nowrap; }
.bp-cron-status.is-ok { color: var(--bp-green); }
.bp-cron-status.is-invalid { color: var(--bp-red); }
.bp-cron-status.is-off { color: var(--fu-muted); }
.bp-cron-status.is-unavailable { color: #d9820b; }
/* 页面：按已保存值列出下 5 次执行时间（两列自适应） */
.bp-cron-sched { flex-basis: 100%; line-height: 1.8; }
.bp-cron-sched code { font-family: var(--fu-font-numeric); padding: 0 4px; border-radius: 4px; background: var(--fu-soft); }
.bp-cron-runs { margin: 4px 0 0; padding-left: 20px; font-family: var(--fu-font-numeric); font-variant-numeric: tabular-nums; color: var(--bp-ink); }
.bp-cron-runs li + li { margin-top: 2px; }
.bp-cron-runs--page { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 2px 16px; padding-left: 0; }
/* 弹窗 */
.bp-cron-dialog .el-dialog__body { padding: 14px 20px 16px; }
.bp-cron-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 10px; }
.bp-cron-presets-label { font-size: 12px; color: var(--bp-sub); margin-right: 2px; }
.bp-cron-preset { height: 26px; padding: 0 10px; border-radius: 13px; border: 1px solid var(--bp-card-border); background: rgba(255,255,255,.9); color: var(--bp-ink); font-size: 12px; cursor: pointer; font-family: inherit; transition: all .15s; }
.bp-cron-preset:hover { border-color: var(--bp-primary); color: var(--bp-primary-2); }
.bp-cron-preset.is-active { background: linear-gradient(135deg, var(--bp-primary-2), var(--bp-primary)); color: #fff; border-color: transparent; box-shadow: 0 4px 12px rgba(36,86,230,.25); }
.bp-cron-expr { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.bp-cron-expr-label { font-size: 12px; color: var(--bp-sub); }
.bp-cron-expr-input { width: 240px; }
.bp-cron-expr-error { font-size: 12px; color: var(--bp-red); }
.bp-cron-tabs .el-tabs__header { margin-bottom: 8px; }
.bp-cron-opt { display: flex; align-items: center; gap: 6px; min-height: 32px; flex-wrap: wrap; }
.bp-cron-opt .el-radio { margin-right: 0; height: 32px; }
.bp-cron-num { width: 104px; }
.bp-cron-opt-hint { font-size: 12px; color: var(--fu-muted); }
.bp-cron-chips { display: grid; gap: 4px; margin: 4px 0 6px 22px; }
.bp-cron-chip { height: 26px; border-radius: 6px; border: 1px solid var(--el-border-color-lighter); background: #fff; color: var(--bp-ink); font-size: 12px; cursor: pointer; font-family: var(--fu-font-numeric); font-variant-numeric: tabular-nums; transition: all .12s; }
.bp-cron-chip:hover { border-color: var(--bp-primary); color: var(--bp-primary-2); }
.bp-cron-chip.is-on { background: var(--bp-primary); border-color: var(--bp-primary); color: #fff; box-shadow: 0 2px 6px rgba(36,86,230,.25); }
.bp-cron-note { font-size: 12px; margin: 2px 0 6px 22px; line-height: 1.6; }
.bp-cron-preview { margin-top: 8px; padding: 10px 14px; border-radius: 10px; background: var(--fu-soft); border: 1px dashed var(--fu-hairline-strong); }
.bp-cron-preview .bp-cron-runs { padding-left: 18px; }
.bp-cron-human { font-weight: 600; color: var(--bp-ink); }
.bp-cron-human.is-off { color: var(--fu-muted); font-weight: 500; }
.bp-cron-error { color: var(--bp-red); font-weight: 500; }
.bp-cron-runs-label { font-size: 12px; color: var(--bp-sub); margin-top: 4px; }
html[data-theme="dark"] .bp-cron-preset, html[data-theme="dark"] .bp-cron-chip { background: var(--el-fill-color-light); }
html[data-theme="dark"] .bp-cron-preview { background: var(--el-fill-color-light); border-color: var(--el-border-color); }
