/* ============================================================
   邻帮汇 后台首页（去图标化 · 数据显化）
   作用域全部收在 #lbh-board 内，不影响其余页面
   ============================================================ */

html.lbh-home .app-main > .app-container { display: none !important; }

#lbh-board {
  --ink: #1f2329;
  --ink2: #5c6370;
  --ink3: #8a919c;
  --line: #e6e8eb;
  --line2: #f0f2f4;
  --bg: #f4f5f7;
  --brand: #f0441e;
  --warn: #d4380d;
  padding: 20px 22px 118px;  /* 底部留白：避开右下角"语音播报/字号"悬浮按钮 */
  background: var(--bg);
  min-height: calc(100vh - 50px);
  box-sizing: border-box;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
#lbh-board * { box-sizing: border-box; }
#lbh-board a { text-decoration: none; color: inherit; }

/* ---------- 页头 ---------- */
#lbh-board .bh-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 16px; flex-wrap: wrap;
}
#lbh-board .bh-title { font-size: 20px; font-weight: 600; letter-spacing: .5px; }
#lbh-board .bh-sub { font-size: 13px; color: var(--ink3); margin-top: 2px; }
#lbh-board .bh-sub b { color: var(--ink2); font-weight: 500; }
#lbh-board .bh-sub i { font-style: normal; margin: 0 6px; color: #cfd3d8; }
#lbh-board .bh-acts { display: flex; gap: 8px; }

#lbh-board .bh-btn {
  appearance: none; border: 1px solid var(--line); background: #fff;
  color: var(--ink2); font-size: 13px; padding: 7px 14px; border-radius: 4px;
  cursor: pointer; line-height: 1.2; transition: all .15s;
}
#lbh-board .bh-btn:hover { border-color: var(--brand); color: var(--brand); }
#lbh-board .bh-btn:active { transform: translateY(1px); }

/* ---------- KPI ---------- */
#lbh-board .bh-kpi {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: 6px; overflow: hidden; margin-bottom: 14px;
}
#lbh-board .bh-kpi-cell { background: #fff; padding: 16px 18px 15px; }
#lbh-board .bh-kpi-label { font-size: 13px; color: var(--ink2); }
#lbh-board .bh-kpi-value {
  font-size: 28px; font-weight: 600; line-height: 1.25; letter-spacing: -.6px;
  margin-top: 6px; font-variant-numeric: tabular-nums;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#lbh-board .bh-kpi-value em { font-style: normal; font-size: 13px; font-weight: 400; color: var(--ink3); margin-left: 3px; }
#lbh-board .bh-kpi-note { font-size: 12px; color: var(--ink3); margin-top: 4px; height: 18px; overflow: hidden; }
#lbh-board .bh-kpi-cell.is-warn .bh-kpi-value { color: var(--warn); }
#lbh-board .bh-kpi-cell.is-warn .bh-kpi-label { color: var(--warn); }
#lbh-board .bh-good { color: #cf1322; }
#lbh-board .bh-bad { color: #389e0d; }

/* ---------- 区块 ---------- */
#lbh-board .bh-sec {
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
  padding: 16px 18px 18px; margin-bottom: 14px;
}
#lbh-board .bh-sec-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 12px; gap: 12px;
}
#lbh-board .bh-sec-title { font-size: 15px; font-weight: 600; }
#lbh-board .bh-sec-note { font-size: 12px; color: var(--ink3); }
#lbh-board .bh-sec-link { font-size: 13px; color: var(--ink2); cursor: pointer; }
#lbh-board .bh-sec-link:hover { color: var(--brand); }

/* ---------- 快捷入口 ---------- */
#lbh-board .bh-quick {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px;
}
#lbh-board .bh-quick-item {
  border: 1px solid var(--line); border-radius: 4px; padding: 11px 12px;
  font-size: 14px; color: var(--ink); text-align: left; cursor: pointer;
  background: #fff; transition: all .13s; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; display: block;
}
#lbh-board .bh-quick-item:hover { border-color: var(--brand); color: var(--brand); background: #fff9f7; }

/* ---------- 两栏 ---------- */
#lbh-board .bh-cols { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; align-items: start; }
#lbh-board .bh-stack > .bh-sec:last-child { margin-bottom: 0; }
#lbh-board .bh-cols > * > .bh-sec:last-child { margin-bottom: 14px; }

/* ---------- 趋势柱 ---------- */
#lbh-board .bh-chart { display: flex; align-items: flex-end; gap: 8px; height: 124px; padding-top: 4px; }
#lbh-board .bh-chart.is-empty { height: 42px; }
#lbh-board .bh-bar-col {
  flex: 1; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end; min-width: 0;
}
#lbh-board .bh-bar-num { font-size: 12px; color: var(--ink2); margin-bottom: 5px; font-variant-numeric: tabular-nums; }
#lbh-board .bh-bar {
  width: 58%; max-width: 46px; background: var(--brand);
  border-radius: 2px 2px 0 0; min-height: 3px; transition: height .3s;
}
#lbh-board .bh-bar.is-zero { background: #e9ebee; }
#lbh-board .bh-foot { display: flex; gap: 8px; margin-top: 8px; }
#lbh-board .bh-bar-foot { flex: 1; text-align: center; min-width: 0; }
#lbh-board .bh-bar-date { font-size: 12px; color: var(--ink3); }
#lbh-board .bh-bar-amt { font-size: 11px; color: #b3b9c2; margin-top: 1px; font-variant-numeric: tabular-nums; }
#lbh-board .bh-empty-line { font-size: 13px; color: var(--ink3); padding: 6px 0 2px; }

/* ---------- 待办 ---------- */
#lbh-board .bh-todo { list-style: none; margin: 0; padding: 0; }
#lbh-board .bh-todo-item {
  display: flex; align-items: center; gap: 10px; padding: 11px 0;
  border-bottom: 1px dashed var(--line2); cursor: pointer;
}
#lbh-board .bh-todo-item:last-child { border-bottom: 0; }
#lbh-board .bh-todo-item:hover .bh-todo-label { color: var(--brand); }
#lbh-board .bh-todo-label { font-size: 14px; flex: 1; min-width: 0; display: block; }
#lbh-board .bh-todo-hint { display: block; font-size: 12px; color: var(--ink3); margin-top: 1px; }
#lbh-board .bh-todo-num {
  font-size: 16px; font-weight: 600; color: var(--ink3);
  font-variant-numeric: tabular-nums; min-width: 22px; text-align: right;
}
#lbh-board .bh-todo-num.is-on { color: var(--warn); }
#lbh-board .bh-todo-arrow { color: #cfd3d8; font-size: 13px; }

/* ---------- 表格 ---------- */
#lbh-board table.bh-table { width: 100%; border-collapse: collapse; table-layout: auto; }
#lbh-board table.bh-table th {
  font-size: 12px; font-weight: 500; color: var(--ink3); text-align: left;
  padding: 8px 10px; background: #fafbfc; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
#lbh-board table.bh-table td {
  font-size: 13px; padding: 10px; border-bottom: 1px solid var(--line2);
  color: var(--ink); vertical-align: middle;
}
#lbh-board table.bh-table tr:last-child td { border-bottom: 0; }
#lbh-board table.bh-table .num { font-variant-numeric: tabular-nums; }
#lbh-board table.bh-table .muted { color: var(--ink3); }
#lbh-board .bh-tag {
  display: inline-block; font-size: 12px; line-height: 18px; padding: 0 7px;
  border-radius: 3px; border: 1px solid var(--line); color: var(--ink2); background: #fafbfc;
}
#lbh-board .bh-tag.is-svc { color: #b25000; border-color: #ffd8bf; background: #fff7e6; }
#lbh-board .bh-tag.is-mall { color: #1d39c4; border-color: #d6e4ff; background: #f0f5ff; }

/* ---------- 分布条 ---------- */
#lbh-board .bh-dist-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
#lbh-board .bh-dist-label { font-size: 13px; width: 84px; flex: 0 0 84px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#lbh-board .bh-dist-track { flex: 1; height: 8px; background: #f0f2f4; border-radius: 4px; overflow: hidden; }
#lbh-board .bh-dist-fill { height: 100%; background: #c9ced6; border-radius: 4px; }
#lbh-board .bh-dist-row:first-child .bh-dist-fill { background: var(--brand); }
#lbh-board .bh-dist-num { font-size: 13px; color: var(--ink); width: 34px; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- 状态 ---------- */
#lbh-board .bh-loading, #lbh-board .bh-error { font-size: 14px; color: var(--ink3); padding: 40px 0; text-align: center; }
#lbh-board .bh-error { color: var(--warn); }
#lbh-board .bh-error button { margin-left: 8px; }

/* ---------- 超大字号（配合适老化开关） ---------- */
html.lbh-xxl #lbh-board { font-size: 16px; }
html.lbh-xxl #lbh-board .bh-kpi-value { font-size: 34px; }
html.lbh-xxl #lbh-board .bh-kpi-label,
html.lbh-xxl #lbh-board .bh-quick-item,
html.lbh-xxl #lbh-board .bh-todo-label,
html.lbh-xxl #lbh-board .bh-sec-title { font-size: 16px; }
html.lbh-xxl #lbh-board table.bh-table td { font-size: 15px; }
html.lbh-xxl #lbh-board table.bh-table th,
html.lbh-xxl #lbh-board .bh-kpi-note,
html.lbh-xxl #lbh-board .bh-todo-hint,
html.lbh-xxl #lbh-board .bh-sec-note { font-size: 13px; }

/* ---------- 菜单去图标 ---------- */
html.lbh-noicon .sidebar-container .svg-icon,
html.lbh-noicon .sidebar-container .el-menu-item > i[class*="el-icon-"],
html.lbh-noicon .sidebar-container .el-submenu__title > i[class*="el-icon-"]:not(.el-submenu__icon-arrow) {
  display: none !important;
}

/* ---------- 窄屏 ---------- */
@media (max-width: 1360px) {
  #lbh-board .bh-kpi { grid-template-columns: repeat(3, 1fr); }
  #lbh-board .bh-quick { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  #lbh-board .bh-cols { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  #lbh-board { padding: 14px 12px 100px; }
  #lbh-board .bh-kpi { grid-template-columns: repeat(2, 1fr); }
  #lbh-board .bh-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
