/* ===== 估值看板（指数估值 / 板块估值）· house 版式精修（靛青蓝 #27548c 体系） ===== */
.vb-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.vb-note { font-size: 12px; color: #8a93a5; }
.vb-note b { color: #0a0a0a; }

/* 条件提醒条：house 左色条范式 */
.vb-alertbar { display: none; align-items: flex-start; gap: 10px; margin-bottom: 12px;
  padding: 10px 14px; border-radius: 8px; background: #fdf4e9; border: 1px solid #f0ddc3;
  border-left: 3px solid #b45309; }
.vb-alertbar.show { display: block; }
.vb-alertbar .t { font-weight: 700; color: #b45309; white-space: nowrap; font-size: 12.5px; }
.vb-alertbar .items { display: flex; flex-wrap: wrap; gap: 6px; }
.vb-alertbar .chip { font-size: 12px; background: #fff; border: 1px solid #f0ddc3;
  border-radius: 999px; padding: 2px 10px; color: #c92a2a; }

/* ---- 工具条：分段控件 house 化 ---- */
.vb-seg { display: inline-flex; background: #f1f3f7; border-radius: 9px; padding: 2px; gap: 2px; }
.vb-seg button { border: none; background: transparent; padding: 4px 12px; font-size: 12px;
  cursor: pointer; color: #5b6478; border-radius: 7px; font-weight: 600; transition: .12s; }
.vb-seg button:hover { color: #27548c; }
.vb-seg button.on { background: #27548c; color: #fff; font-weight: 700;
  box-shadow: 0 1px 4px rgba(39,84,140,.3); }
.vb-set-add { border: none; background: #27548c; color: #fff; border-radius: 8px;
  padding: 6px 14px; font-size: 12.5px; cursor: pointer; font-weight: 700;
  box-shadow: 0 2px 8px rgba(39,84,140,.24); transition: .12s; }
.vb-set-add:hover { background: #1d3f6b; }
#vb-md-metric, .vb-set-row select, .vb-set-row input {
  border: 1px solid #dfe3ea; border-radius: 8px; padding: 6px 9px; font-size: 12.5px;
  outline: none; background: #fff;
}
#vb-md-metric:focus, .vb-set-row select:focus, .vb-set-row input:focus {
  border-color: #4a7cb5; box-shadow: 0 0 0 3px rgba(39,84,140,.10);
}

/* ---- 主表：house 表格范式 ---- */
.vb-tblwrap { overflow-x: auto; padding: 0 10px 8px !important; }
.vb-tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12.5px; }
.vb-tbl th, .vb-tbl td { padding: 8.5px 11px; text-align: right; white-space: nowrap;
  border-bottom: 1px solid #f2f5fa; }
.vb-tbl th { font-size: 11px; color: #5b6478; font-weight: 700; letter-spacing: .3px;
  background: #f6f8fb; position: sticky; top: 0; z-index: 1; }
.vb-tbl thead tr:last-child th { border-bottom: 1px solid #e3e4e6; }
.vb-tbl th.sortable { cursor: pointer; user-select: none; }
.vb-tbl th.sortable:hover { color: #27548c; }
.vb-tbl th.sorted { color: #27548c; }
.vb-tbl .sort-ic { font-style: normal; font-size: 8px; margin-left: 2px; }
.vb-tbl .sort-ic.on { color: #27548c; }
/* 组头：靛青带（深底白字，专业终端感） */
.vb-tbl th.grp { text-align: center; background: #27548c; color: #fff; font-size: 11.5px;
  letter-spacing: .5px; border-right: 2px solid #fff; }
.vb-tbl th.grp:first-of-type { border-radius: 0; }
.vb-tbl td:first-child, .vb-tbl th:first-child { text-align: left; position: sticky; left: 0;
  background: #fff; z-index: 2; font-weight: 600; }
.vb-tbl th:first-child { background: #f6f8fb; z-index: 3; }
.vb-tbl tbody tr { cursor: pointer; transition: background .12s; }
.vb-tbl tbody tr:hover td { background: #f7fafe; }
.vb-tbl tbody tr:hover td:first-child { background: #f7fafe; }
/* 大类组行：浅靛底 + 左靛青条 */
.vb-tbl tr.grp-row td { background: #f7fafe; font-weight: 700; color: #27548c;
  font-size: 12.5px; cursor: default; letter-spacing: .3px;
  box-shadow: inset 3px 0 0 #27548c; border-bottom: 1px solid #e9eef6; }
.vb-tbl .up { color: #e03131; font-weight: 600; }
.vb-tbl .down { color: #0ca678; font-weight: 600; }
/* 分位热力（蓝色深浅 = 分位递增，非涨跌语义） */
/* 分位热力：红涨绿跌——高分位(历史高位)红、低分位(历史低位)绿 */
.vb-tbl td.h90 { background: rgba(224,49,49,.32); font-weight: 700; }
.vb-tbl td.h70 { background: rgba(224,49,49,.20); }
.vb-tbl td.h50 { background: rgba(224,49,49,.15); }
.vb-tbl td.h30 { background: rgba(12,166,120,.17); }
.vb-tbl td.h10 { background: rgba(12,166,120,.24); }
/* 当前值列 */
.vb-tbl td.cur { font-weight: 700; color: #14181f; }
/* 条件提醒标记 */
.vb-tbl .bell { margin-left: 4px; font-size: 11px; }
.vb-tbl tr.hit td:first-child { color: #27548c; }
/* 展开二级 */
.vb-tbl tr.l2row td:first-child { padding-left: 26px; font-weight: 500; color: #5b6478; }
.vb-caret { display: inline-block; width: 14px; color: #8a93a5; font-size: 10px; }

/* ---- 条件提醒设置弹层 ---- */
#vb-modal, .vb-set { display: none; }
.vb-set.open, #vb-modal.open { display: block; }
#vb-modal .vb-md-mask, .vb-set .vb-set-mask { position: fixed; inset: 0; background: rgba(16,22,36,.45); z-index: 120; }
#vb-modal .vb-md-box { position: fixed; z-index: 121; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(960px, 94vw); max-height: 88vh; overflow: auto; background: #fff; border-radius: 18px;
  padding: 18px 20px 20px; box-shadow: 0 18px 60px rgba(16,22,36,.25); }
.vb-md-hd { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.vb-md-hd b { font-size: 16px; }
.vb-md-hd span { display: block; font-size: 11.5px; color: #8a93a5; margin-top: 2px; }
.vb-md-x { border: none; background: #f1f3f8; width: 28px; height: 28px; border-radius: 8px;
  cursor: pointer; font-size: 13px; }
.vb-md-x:hover { background: #eef3fa; color: #27548c; }
.vb-md-ops { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.vb-md-grid { display: flex; gap: 18px; font-size: 12px; color: #5b6478; margin-left: auto; }
.vb-md-grid b { color: #14181f; }
.vb-md-chart { height: 300px; }
.vb-md-chartpct { height: 150px; }

/* ---- 条件提醒设置弹层 ---- */
.vb-set .vb-set-box { position: fixed; z-index: 121; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(560px, 94vw); max-height: 84vh; overflow: auto; background: #fff; border-radius: 18px;
  padding: 18px 20px; box-shadow: 0 18px 60px rgba(16,22,36,.25); }
.vb-set h3 { margin: 0 0 12px; font-size: 15px; }
.vb-set-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.vb-rules { border-top: 1px dashed #e9ecf1; padding-top: 10px; }
.vb-rule { display: flex; align-items: center; justify-content: space-between;
  padding: 6px 2px; font-size: 12.5px; border-bottom: 1px solid #f2f5fa; }
.vb-rule .del { border: none; background: #fff5f5; color: #c92a2a; border-radius: 7px;
  padding: 3px 10px; cursor: pointer; font-size: 11.5px; }
.vb-rule .st { font-size: 11px; padding: 1px 8px; border-radius: 999px; margin-left: 8px; }
.vb-rule .st.hit { background: #fff5f5; color: #c92a2a; font-weight: 700; }
.vb-rule .st.idle { background: #f1f3f8; color: #8a93a5; }

@media (max-width: 760px) {
  .vb-md-chart { height: 220px; }
  .vb-tbl { font-size: 11.5px; }
}
