/* =====================================================================
   NCCL-BOT 报告 · 动画板专用样式
   基础组件（.board/.bhead/.stage/.step-desc/.legend/.controls/.btn/.flyer）
   由站点 css/report.css 提供；本文件只定义 .bb-* 板内自定义类。
   ===================================================================== */

.report .bb-stage { position: relative; min-height: 380px; }

/* 重点表格行：report.css 只有 td.hl，这里让整行共享同一个强调底色 */
.report tr.hl td { background: #eafaf1; font-weight: 700; }
.report tr.hl td:not(.hl) { color: var(--text); }

/* 四臂卡片行 */
.report .bb-arms {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  min-width: 780px;
}
.report .bb-arm {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px 8px;
  background: var(--surface);
  transition: opacity 0.3s;
}
.report .bb-arm.chosen {
  border: 2px solid var(--accent);
  background: #f2faf8;
}
.report .bb-arm.chosen::before {
  content: "本次选择 ✓";
  position: absolute;
  top: -12px;
  right: 8px;
  font-size: 0.64rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  padding: 1px 9px;
  border-radius: 999px;
  z-index: 5;
}
.report .bb-arm.muted { opacity: 0.5; }

.report .bb-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--primary);
  padding-right: 78px;
  line-height: 1.4;
}
.report .bb-sub { font-size: 0.7rem; color: var(--text-muted); margin-bottom: 6px; }
.report .bb-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.62rem;
  background: #d97706;
  color: #fff;
  padding: 1px 7px;
  border-radius: 999px;
}

/* 估计柱：蓝 = 后验均值，青 = UCB 上探，橙斜纹 = 先验刻度 */
.report .bb-bar {
  position: relative;
  height: 14px;
  background: #eef2f6;
  border-radius: 4px;
  margin: 2px 0 6px;
}
.report .bb-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transition: width 0.35s;
}
.report .bb-bonus {
  position: absolute;
  top: 0;
  bottom: 0;
  background: var(--accent-light);
  opacity: 0.6;
  border-radius: 0 4px 4px 0;
}
.report .bb-prior {
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 3px;
  background: repeating-linear-gradient(45deg, #d97706, #d97706 2px, transparent 2px, transparent 4px);
}
.report .bb-meta {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  font-size: 0.7rem;
  color: var(--text-muted);
}
.report .bb-meta b { color: var(--primary); }

/* 底部：观测源 + 累计损失轨道 */
.report .bb-strip {
  margin-top: 14px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  background: #f8fafc;
}
.report .bb-obs {
  display: inline-block;
  font-size: 0.76rem;
  border: 1px dashed var(--accent);
  color: var(--accent);
  border-radius: 6px;
  padding: 3px 10px;
  margin-bottom: 8px;
  font-weight: 600;
}
.report .bb-loss-row { display: flex; align-items: center; gap: 10px; }
.report .bb-loss-lbl { flex: 0 0 132px; font-size: 0.76rem; color: var(--text-muted); }
.report .bb-loss-track {
  position: relative;
  flex: 1;
  height: 16px;
  background: #eef2f6;
  border-radius: 4px;
}
.report .bb-loss-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, var(--danger), #e67e22);
  border-radius: 4px;
  transition: width 0.45s;
}
.report .bb-loss-ref {
  position: absolute;
  top: -4px;
  bottom: -4px;
  border-left: 2px dashed var(--danger);
}
.report .bb-loss-ref span {
  position: absolute;
  left: 2px;
  top: -16px;
  font-size: 0.64rem;
  color: var(--danger);
  white-space: nowrap;
}
.report .bb-loss-val {
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
}
.report .bb-note {
  margin-top: 10px;
  font-size: 0.78rem;
  background: var(--highlight);
  border-left: 3px solid #d97706;
  border-radius: 0 6px 6px 0;
  padding: 6px 10px;
}

@media (max-width: 860px) {
  .report .bb-arms { grid-template-columns: repeat(2, 1fr); min-width: 0; }
}
