/* ============ 基础 ============ */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #eef1f6;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --border: #e6eaf1;
  --border-strong: #d4dae4;
  --ink: #1c2733;
  --ink-2: #5a6776;
  --ink-3: #97a1b0;
  --brand: #155bd4;
  --brand-d: #0e3f9c;
  --brand-soft: #eaf1fc;
  --danger: #e0405a;
  --danger-bg: #fdecef;
  --ok: #1f9d6b;
  --ok-bg: #e7f7ef;
  --pending: #8a94a6;
  --pending-bg: #eef1f5;
  --shadow: 0 1px 2px rgba(16,32,64,.05), 0 8px 22px rgba(16,32,64,.05);
  --radius: 12px;
}
html, body { height: 100%; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
.hidden { display: none !important; }
.muted { color: var(--ink-3); }
a { color: var(--brand); }

/* ============ 登录门禁 ============ */
.gate {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(1200px 600px at 50% -10%, #1b4fb0 0%, #0e3f9c 45%, #0a2f73 100%);
  padding: 20px;
}
.gate-card {
  width: 380px; max-width: 100%; background: #fff; border-radius: 18px; padding: 40px 36px;
  box-shadow: 0 24px 70px rgba(0,0,0,.3); text-align: center;
}
.gate-logo {
  display: inline-block; width: 54px; height: 54px; line-height: 54px; border-radius: 14px;
  background: linear-gradient(135deg,#155bd4,#0e3f9c); color: #fff; font-weight: 800; font-size: 23px; margin-bottom: 18px;
}
.gate-title { font-size: 20px; color: var(--ink); margin-bottom: 6px; line-height: 1.4; }
.gate-sub { color: var(--ink-3); font-size: 13px; margin-bottom: 24px; }
.gate-input {
  width: 100%; padding: 13px 15px; border: 1px solid var(--border-strong); border-radius: 10px;
  font-size: 14px; outline: none; transition: border-color .15s;
}
.gate-input:focus { border-color: var(--brand); }
.gate-btn {
  width: 100%; padding: 13px; border: none; border-radius: 10px; font-size: 15px; font-weight: 600;
  cursor: pointer; margin-top: 12px; transition: filter .15s;
}
.gate-btn-primary { background: linear-gradient(135deg,#155bd4,#0e3f9c); color: #fff; }
.gate-btn-primary:hover { filter: brightness(1.06); }
.gate-btn-wechat { background: #f2f5f9; color: var(--ink-2); }
.gate-btn:disabled { opacity: .5; cursor: not-allowed; }
.gate-tip { margin-top: 16px; color: var(--ink-3); font-size: 12px; }

/* ============ 顶部品牌栏 ============ */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 0 22px; height: 60px; position: sticky; top: 0; z-index: 30;
}
.topbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg,#155bd4,#0e3f9c); color: #fff;
  font-weight: 800; font-size: 18px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-size: 16px; font-weight: 700; color: var(--ink); letter-spacing: .2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-sub { font-size: 12px; color: var(--ink-3); }
.topbar-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.user-tag { font-size: 13px; color: var(--ink-2); }
.updated-at { font-size: 12px; color: var(--ink-3); }
.btn-mini {
  border: 1px solid var(--border-strong); background: #fff; color: var(--ink-2);
  padding: 6px 12px; border-radius: 8px; font-size: 13px; cursor: pointer; transition: all .15s; white-space: nowrap;
}
.btn-mini:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost { color: var(--ink-3); }

/* ============ 筛选条 ============ */
.filterbar {
  display: flex; align-items: center; gap: .9rem; flex-wrap: wrap;
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 12px 22px;
}
.filter-group { display: flex; align-items: center; gap: 8px; }
.filter-group label { font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.filter-group.grow { flex: 1; min-width: 280px; }
.filter-group.right { margin-left: auto; }
.sel, .inp {
  border: 1px solid var(--border-strong); border-radius: 9px; padding: 9px 11px;
  font-size: 13px; outline: none; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.sel:focus, .inp:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(21,91,212,.12); }
.sep { color: var(--ink-3); }

/* 带放大镜的搜索框 */
.search-wrap { display: flex; align-items: center; position: relative; width: 100%; }
.search-ico { position: absolute; left: 11px; color: var(--ink-3); display: flex; pointer-events: none; }
.search-wrap .inp { width: 100%; padding-left: 36px; padding-right: 72px; }
.search-btn {
  position: absolute; right: 5px; border: none; background: var(--brand); color: #fff;
  padding: 6px 14px; border-radius: 7px; font-size: 13px; font-weight: 600; cursor: pointer; transition: filter .15s;
}
.search-btn:hover { filter: brightness(1.06); }

.btn-primary {
  background: linear-gradient(135deg,#155bd4,#0e3f9c); color: #fff; border: none; border-radius: 9px;
  padding: 9px 18px; font-size: 13px; font-weight: 600; cursor: pointer; transition: filter .15s; white-space: nowrap;
}
.btn-primary:hover { filter: brightness(1.06); }

/* ============ Tab 导航 ============ */
.tabnav {
  display: flex; gap: 2px; padding: 0 22px; background: var(--surface);
  border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none;
}
.tabnav::-webkit-scrollbar { display: none; }
.tab {
  appearance: none; background: none; border: none; cursor: pointer;
  padding: 15px 20px; font-size: 15px; color: var(--ink-2); font-weight: 600;
  border-bottom: 2px solid transparent; display: flex; align-items: center; gap: 8px; white-space: nowrap;
  transition: color .15s, border-color .15s;
}
.tab:hover { color: var(--brand); }
.tab.active { color: var(--brand); border-bottom-color: var(--brand); }
.tab-idx {
  font-size: 11px; font-weight: 700; color: var(--brand); background: var(--brand-soft);
  border-radius: 6px; padding: 2px 7px; letter-spacing: .5px;
}

/* ============ 面板 / 卡片 ============ */
.panel { padding: 20px 22px 8px; }
.notice {
  margin: 12px 22px; padding: 12px 16px; background: #fff8e6; border: 1px solid #f3e0a8;
  border-radius: 10px; color: #8a6d1b; font-size: 13px;
}
.kpi-row {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-bottom: 18px;
}
.kpi {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 15px 16px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--brand); opacity: .85; }
.kpi-k { font-size: 12.5px; color: var(--ink-2); margin-bottom: 8px; }
.kpi-v { font-size: 22px; font-weight: 700; color: var(--ink); letter-spacing: .3px; font-variant-numeric: tabular-nums; }
.kpi-v.danger { color: var(--danger); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.card-block {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow); margin-bottom: 16px;
}
.block-head {
  font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.bh-ic { font-size: 15px; }
.block-tip { font-size: 12px; font-weight: 400; color: var(--ink-3); }

/* 品类条形 */
.cat-bars, .top-bars { display: flex; flex-direction: column; gap: 10px; }
.cbar-row, .tbar-row { display: flex; align-items: center; gap: 10px; }
.cbar-name, .tbar-name { font-size: 13px; color: var(--ink-2); flex-shrink: 0; }
.cbar-name { width: 56px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 门店 TOP：名称完整显示（不截断），允许换行，条形图让出空间 */
.tbar-name { flex: 0 1 auto; min-width: 96px; white-space: normal; word-break: break-all; line-height: 1.35; }
.cbar-track, .tbar-track {
  flex: 1; height: 10px; background: #eef1f6; border-radius: 6px; overflow: hidden; min-width: 60px;
}
.cbar-fill { display: block; height: 100%; background: linear-gradient(90deg, #155bd4, #4f8ff0); border-radius: 6px; }
.tbar-fill { display: block; height: 100%; background: linear-gradient(90deg, #0e9f6e, #4fd1a0); border-radius: 6px; }
.cbar-val, .tbar-val { width: 70px; text-align: right; font-size: 13px; color: var(--ink); font-variant-numeric: tabular-nums; flex-shrink: 0; }

/* ============ 表格 ============ */
.table-wrap { overflow-x: auto; border-radius: 10px; border: 1px solid var(--border); }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl thead th {
  background: var(--surface-2); color: var(--ink-2); font-weight: 600; text-align: left;
  padding: 11px 12px; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.tbl tbody td { padding: 10px 12px; border-bottom: 1px solid #f0f3f7; color: var(--ink); }
.tbl tbody tr:hover { background: #f8faff; }
.tbl tr.abnormal { background: var(--danger-bg) !important; }
.tbl tr.abnormal:hover { background: #fbdada !important; }
.tbl tr.pending td { color: var(--ink-3); }
.tbl tr.row-open { background: #eef4ff !important; }
.st-name { font-weight: 600; }
.expand-ico { color: var(--brand); font-size: 11px; margin-left: 4px; }
.detail-row td { background: #fafcff; padding: 6px 14px 14px 14px; }
.cat-detail { display: flex; flex-direction: column; gap: 7px; padding-left: 8px; }
.cd-row { display: flex; align-items: center; gap: 10px; }
.cd-name { width: 56px; font-size: 12px; color: var(--ink-2); flex-shrink: 0; }
.cd-track { flex: 1; height: 8px; background: #eef1f6; border-radius: 5px; overflow: hidden; max-width: 360px; }
.cd-fill { display: block; height: 100%; background: linear-gradient(90deg, #155bd4, #4f8ff0); border-radius: 5px; }
.cd-val { width: 96px; text-align: right; font-size: 12px; color: var(--ink); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.empty { text-align: center; color: var(--ink-3); padding: 28px; font-size: 13px; }

/* 状态徽标 */
.badge { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge-bad { background: var(--danger-bg); color: var(--danger); }
.badge-pending { background: var(--pending-bg); color: var(--pending); }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-active { background: #e6f6ee; color: #0E9F6E; border: 1px solid #b6e6cf; }

/* 数字列右对齐 */
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
/* 数值列表头与数据右对齐，确保表头与数据列对齐 */
.tbl thead th.num { text-align: right; }

/* 负责人展开明细 */
.owner-detail td { background: #fafcff; padding: 4px 14px 14px; }
.owner-detail .od-title { font-size: 12px; color: var(--ink-3); margin: 6px 0 8px; font-weight: 600; }
.od-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.od-item { border: 1px solid var(--border); border-radius: 9px; padding: 9px 11px; background: #fff; font-size: 12.5px; }
.od-item .od-name { font-weight: 600; color: var(--ink); }
.od-item .od-meta { color: var(--ink-2); margin-top: 3px; display: flex; gap: 10px; flex-wrap: wrap; }
.od-item.abnormal { border-color: #f3c2c9; background: #fff6f7; }
.od-st { font-size: 11px; font-weight: 600; }
.od-st.s-bad { color: var(--danger); }
.od-st.s-pending { color: var(--pending); }
.od-st.s-ok { color: var(--ok); }

/* ============ 清凉节权益：卡片网格 ============ */
.benefits-intro {
  display: flex; align-items: center; gap: 14px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px 20px; margin-bottom: 16px;
}
.bi-ic {
  width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand);
  display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0;
}
.bi-title { font-size: 17px; font-weight: 700; color: var(--ink); }
.bi-sub { font-size: 13px; color: var(--ink-3); margin-top: 2px; }

.benefits-wrap {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 16px; align-items: start;
}
.b-sec { display: flex; align-items: center; gap: 10px; margin: 18px 0 10px; padding-left: 12px; border-left: 4px solid var(--ac, var(--brand)); }
.b-sec-ic { width: 34px; height: 34px; border-radius: 9px; background: color-mix(in srgb, var(--ac, #155bd4) 12%, #fff); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.b-sec h3 { font-size: 16px; font-weight: 700; color: var(--ink); }
.b-text { padding: 10px 14px; color: var(--ink-2); font-size: 13px; background: #fafcff; border-radius: 8px; border: 1px solid var(--border); }

/* 权益卡片 */
.b-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
  border-top: 3px solid var(--ac, var(--brand));
}
/* 促销活动规划：整行铺开，承载较多文字，字号略放大、表头不换行 */
.b-card-wide { grid-column: 1 / -1; }
.b-card-wide .b-table { font-size: 13.5px; }
.b-card-wide .b-table thead th { white-space: normal; }
.b-card-wide .b-table tbody td { line-height: 1.65; }
.b-card-head {
  display: flex; align-items: center; gap: 10px; padding: 13px 16px;
  background: color-mix(in srgb, var(--ac, #155bd4) 7%, #fff); border-bottom: 1px solid var(--border);
}
.b-card-ic {
  width: 30px; height: 30px; border-radius: 8px; background: var(--ac, var(--brand)); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0;
}
.b-card-title { font-size: 15px; font-weight: 700; color: var(--ink); }
.b-table-scroll { overflow-x: auto; }
.b-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.b-table thead th {
  background: var(--surface-2); color: var(--ink-2); font-weight: 600; text-align: left;
  padding: 10px 14px; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.b-table tbody td {
  padding: 10px 14px; border-bottom: 1px solid #f0f3f7; color: var(--ink); line-height: 1.55; vertical-align: top;
  word-break: break-word;
}
.b-table tbody tr:last-child td { border-bottom: none; }
.b-table tbody tr:hover { background: #f8faff; }
.b-cell-lead { font-weight: 600; color: var(--ink); background: #fafcff; white-space: nowrap; }
.b-subrow { background: color-mix(in srgb, var(--ac, #155bd4) 10%, #fff); color: var(--ac, var(--brand-d)); font-weight: 700; text-align: center; padding: 11px 14px; border-bottom: 1px solid var(--border); letter-spacing: .4px; }
.b-cell-merged { background: color-mix(in srgb, var(--ac, #155bd4) 9%, #fff); color: var(--ac, var(--brand-d)); font-weight: 700; text-align: center; padding: 11px 14px; border-bottom: 1px solid var(--border); letter-spacing: .3px; }
.b-card-note { padding: 9px 16px; font-size: 12.5px; color: var(--ink-2); background: #fafcff; border-top: 1px solid var(--border); }

/* ============ 清凉节权益：政策速览 chips ============ */
.benefits-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.b-chip {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  border: 1px solid var(--ac, var(--brand)); color: var(--ac, var(--brand));
  background: color-mix(in srgb, var(--ac, #155bd4) 8%, #fff);
  border-radius: 20px; padding: 7px 14px; font-size: 13px; font-weight: 600;
  transition: filter .15s, transform .1s;
}
.b-chip:hover { filter: brightness(.97); transform: translateY(-1px); }

/* 权益表：首列固定 + 斑马纹，提升宽表可读性 */
.b-table thead th:first-child,
.b-table tbody td.b-cell-lead {
  position: sticky; left: 0; z-index: 2;
  background: #fafcff;
}
.b-table thead th:first-child { z-index: 3; background: var(--surface-2); }
.b-table tbody tr:nth-child(even) td { background: #fbfcfe; }
.b-table tbody tr:nth-child(even) td.b-cell-lead { background: #f4f8fd; }

/* ============ 板块四：零售数据同比 ============ */
.yoy-intro {
  display: flex; align-items: center; gap: 14px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px 20px; margin-bottom: 16px;
}
.yoy-ic {
  width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand);
  display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0;
}
.yoy-title { font-size: 17px; font-weight: 700; color: var(--ink); }
.yoy-sub { font-size: 13px; color: var(--ink-3); margin-top: 2px; }

/* 分品类同比表 */
.yoy-tbl { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.yoy-cat-name { font-weight: 600; white-space: nowrap; }
.yoy-tbl tbody tr.yoy-down { background: var(--danger-bg) !important; }
.yoy-tbl tbody tr.yoy-down:hover { background: #fbdada !important; }
.yoy-tbl tbody tr.yoy-insf { background: #f6f7f9; }
.yoy-tag {
  display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 12px;
  font-size: 11px; font-weight: 700; vertical-align: middle;
}
.tag-down { background: var(--danger-bg); color: var(--danger); }
.tag-up { background: var(--ok-bg); color: var(--ok); }
.tag-insf { background: var(--pending-bg); color: var(--pending); }
.yoy-up { color: var(--ok); font-weight: 700; }
.yoy-down { color: var(--danger); font-weight: 700; }

/* 时间进度 */
.yoy-progress { padding: 4px 2px; }
.prog-track {
  height: 14px; background: #eef1f6; border-radius: 8px; overflow: hidden; margin-bottom: 10px;
}
.prog-fill {
  height: 100%; border-radius: 8px;
  background: linear-gradient(90deg, #155bd4, #4f8ff0);
}
.prog-meta { font-size: 13px; color: var(--ink-2); margin-bottom: 8px; }
.prog-meta b { color: var(--brand); }
.prog-note {
  font-size: 12.5px; color: var(--ink-2); line-height: 1.7; background: #fafcff;
  border: 1px solid var(--border); border-left: 3px solid var(--brand); border-radius: 8px; padding: 10px 13px;
}
.prog-note b { color: var(--ink); }

/* 月度趋势图 */
.yoy-monthly { width: 100%; }
.yoy-svg { width: 100%; height: auto; display: block; }
.g-grid { stroke: #eef1f6; stroke-width: 1; }
.g-axis { stroke: var(--border-strong); stroke-width: 1; }
.g-ylab { fill: var(--ink-3); font-size: 10px; text-anchor: end; }
.g-xlab { fill: var(--ink-2); font-size: 11px; text-anchor: middle; }
.bar-26 { fill: #155bd4; }
.bar-25 { fill: #b7c2d4; }
.yoy-legend { display: flex; gap: 18px; margin-top: 10px; font-size: 12.5px; color: var(--ink-2); }
.yoy-legend .lg { display: inline-flex; align-items: center; gap: 6px; }
.yoy-legend .lg::before { content: ""; width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.yoy-legend .lg-26::before { background: #155bd4; }
.yoy-legend .lg-25::before { background: #b7c2d4; }

/* ============ 页脚 ============ */
.foot { text-align: center; color: var(--ink-3); font-size: 12px; padding: 22px; }

/* ============ 响应式 ============ */
@media (max-width: 1180px) {
  .kpi-row { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .yoy-syscat { grid-template-columns: 1fr; }
}

/* ---------- 平板 / 手机 ---------- */
@media (max-width: 760px) {
  /* 顶部品牌栏：换行、更紧凑 */
  .topbar { height: auto; padding: 9px 12px; flex-wrap: wrap; gap: 8px; }
  .topbar-left { gap: 10px; }
  .brand-name { font-size: 14px; max-width: 62vw; }
  .topbar-right { width: 100%; justify-content: flex-start; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
  .user-tag, .updated-at { font-size: 12px; }

  /* 筛选条：标签独占一行、控件撑满、导出按钮整行 */
  .filterbar { padding: 10px 12px; gap: .6rem; }
  .filter-group { flex-wrap: wrap; align-items: flex-start; }
  .filter-group label { width: 100%; }
  .filter-group.grow { min-width: 100%; order: 3; }
  .filter-group.right { width: 100%; margin-left: 0; }
  .sel, .inp { flex: 1; min-width: 0; padding: 11px 12px; font-size: 14px; }
  .search-btn { padding: 8px 16px; }
  .btn-primary { width: 100%; padding: 12px; }

  /* Tab：隐藏序号、缩小间距、可横滑 */
  .tabnav { padding: 0 10px; }
  .tab { padding: 12px 13px; font-size: 13.5px; }
  .tab-idx { display: none; }

  .panel { padding: 14px 12px 6px; }

  /* KPI：两列，触控友好 */
  .kpi-row { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .kpi { padding: 13px 14px; }
  .kpi-k { font-size: 12px; }
  .kpi-v { font-size: 18px; }

  .grid-2 { grid-template-columns: 1fr; }
  .benefits-wrap { grid-template-columns: 1fr; }
  .od-grid { grid-template-columns: 1fr; }
  .yoy-syscat { grid-template-columns: 1fr; }

  /* 介绍卡图标略缩小 */
  .yoy-ic, .bi-ic { width: 38px; height: 38px; font-size: 19px; }

  /* ===== 表格 → 手机堆叠卡片（免横向滚动，字段名随行显示）===== */
  .table-wrap, .b-table-scroll { border: none; background: transparent; }
  .tbl, .b-table { border: none; background: transparent; }
  .tbl thead, .b-table thead { display: none; }
  .tbl tbody, .b-table tbody { display: block; }
  .tbl tbody tr, .b-table tbody tr {
    display: block; background: var(--surface); border: 1px solid var(--border);
    border-radius: 10px; margin-bottom: 10px; padding: 4px 0; box-shadow: var(--shadow);
  }
  .tbl tbody tr.detail-row, .tbl tbody tr.owner-detail { border-style: dashed; }
  .tbl tbody td, .b-table tbody td {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    width: 100%; text-align: right; border-bottom: 1px solid #f0f3f7; padding: 9px 13px;
  }
  .tbl tbody td:last-child, .b-table tbody td:last-child { border-bottom: none; }
  .tbl tbody td::before, .b-table tbody td::before {
    content: attr(data-label); font-weight: 600; color: var(--ink-2); font-size: 12.5px;
    text-align: left; margin-right: auto; flex-shrink: 0;
  }
  .tbl tbody td.num, .b-table tbody td.num { text-align: right; }

  /* 合并明细行：整块展示，不显示字段名 */
  .tbl tbody tr.detail-row td, .tbl tbody tr.owner-detail td { display: block; text-align: left; padding: 10px 14px; }
  .tbl tbody tr.detail-row td::before, .tbl tbody tr.owner-detail td::before { content: none; }

  /* 空数据行居中 */
  .tbl tbody td.empty { justify-content: center; }
  .tbl tbody td.empty::before { content: none; }

  /* 取消手机端首列固定与斑马纹（堆叠后无意义） */
  .b-table tbody td.b-cell-lead { position: static; }
  .b-table tbody tr:nth-child(even) td,
  .b-table tbody tr:nth-child(even) td.b-cell-lead { background: transparent; }

  /* 状态行底色整卡生效 */
  .tbl tbody tr.abnormal { background: var(--danger-bg) !important; }
  .tbl tbody tr.pending { background: var(--pending-bg); }
  .tbl tbody tr.pending td { color: var(--ink-3); }
  .tbl tbody tr.row-open { background: #eef4ff !important; }

  /* 登录门禁卡片：手机内边距收敛 */
  .gate-card { padding: 30px 22px; }
}

/* ---------- 小手机 ---------- */
@media (max-width: 420px) {
  .kpi-row { grid-template-columns: 1fr; }
  .brand-sub { display: none; }
  .kpi-v { font-size: 20px; }
}

/* ============ 权益总览速览 ============ */
.b-overview {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px;
  padding: 12px 14px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.b-ov-label { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.b-ov-item {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ac, var(--brand));
  background: color-mix(in srgb, var(--ac, #155bd4) 9%, #fff);
  border: 1px solid color-mix(in srgb, var(--ac, #155bd4) 30%, #fff);
  border-radius: 20px; padding: 5px 12px;
}
.b-ov-item b { color: var(--ink); }

/* ============ 系统 × 品类 矩阵 ============ */
.yoy-syscat { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; }
.sc-block {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.sc-title {
  font-size: 14px; font-weight: 700; color: var(--ink); padding: 12px 16px;
  background: var(--brand-soft); border-bottom: 1px solid var(--border);
}
.sc-sub { font-size: 12px; font-weight: 500; color: var(--ink-2); margin-left: 6px; }
.sc-block .yoy-tbl { border: none; border-radius: 0; }
.sc-block .yoy-tbl thead th { position: static; }

/* 地级市 × 系统 × 品类：城市卡片内部分系统小节 */
.sc-body { padding: 6px 12px 12px; }
.sc-sys {
  font-size: 13px; font-weight: 700; color: var(--brand-d); margin: 10px 0 4px;
  display: flex; align-items: center; gap: 6px;
}
.sc-sys::before { content: ""; width: 3px; height: 14px; border-radius: 2px; background: var(--brand); flex-shrink: 0; }

/* ============ 未开展活动责任业务提醒（活动总览顶部） ============ */
.alert-card { border-color: #f3c2c9; background: #fff8f9; }
.alert-card .block-head { color: var(--danger); }
.alert-card .block-tip { color: var(--ink-3); }
.owner-alert { display: flex; flex-wrap: wrap; gap: 10px; }
.oa-chip {
  display: inline-flex; flex-direction: column; gap: 3px; cursor: pointer;
  background: var(--surface); border: 1px solid #f0b8c0; border-radius: 10px;
  padding: 9px 13px; min-width: 150px; max-width: 280px; transition: box-shadow .15s, border-color .15s;
}
.oa-chip:hover { border-color: var(--danger); box-shadow: var(--shadow); }
.oa-name { font-size: 13.5px; font-weight: 700; color: var(--danger); }
.oa-cnt { font-size: 12px; color: var(--ink-2); }
.oa-list { font-size: 12px; color: var(--ink-2); line-height: 1.6; padding-top: 4px; border-top: 1px dashed #f0d0d5; }
