/* =====================================================================
   RailWave 深度报告专属样式（仅置换调度动画板自定义类）
   公共组件样式见 static/css/report.css（.board/.bhead/.stage/.step-desc/
   .legend/.controls/.btn 等）；此处只放论文专属类，全部以 .report
   前缀收紧作用域，与 DoIt 主题隔离。
   ===================================================================== */

/* ---------- 舞台尺寸（绝对定位网格，配合 .stage 的 overflow-x:auto） ---------- */
.report .stage.rw2 { min-height: 600px; }

/* ---------- 需求矩阵 ---------- */
.report .rw2-mx { position: absolute; left: 14px; top: 12px; width: 536px; }
.report .rw2-mx-t { font-size: 0.8rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.report .rw2-grid { display: grid; grid-template-columns: 74px repeat(4, 1fr); gap: 6px; }
.report .rw2-hd { text-align: center; font-size: 0.72rem; font-weight: 700; color: var(--text-muted); padding: 4px 0 2px; }
.report .rw2-rl {
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700; color: var(--text-muted);
  background: var(--code-bg); border-radius: 6px;
}
.report .rw2-cell {
  position: relative; height: 62px; border-radius: 6px;
  border: 1px solid var(--border); background: #ffffff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.92rem; font-weight: 700;
  font-family: "Cascadia Code", Consolas, monospace;
  transition: background 0.25s, border-color 0.25s;
}
.report .rw2-cell .arrow {
  position: absolute; top: 2px; left: 6px;
  font-size: 0.56rem; font-weight: 600; color: var(--text-muted); opacity: 0.85;
}
.report .rw2-cell .tick { margin-left: 4px; font-size: 0.68rem; }

/* 需求量级着色（示意值 7/14/28/42 MiB 渐深） */
.report .rw2-cell.v7  { background: #f2f7fb; border-color: #cfe0ee; color: #41748f; }
.report .rw2-cell.v14 { background: #e8f2f9; border-color: #b5d3e8; color: #2f6184; }
.report .rw2-cell.v28 { background: #d9eaf6; border-color: #94c1de; color: #225274; }
.report .rw2-cell.v42 { background: #c9e1f3; border-color: #6fa9d2; color: #17476b; }
.report .rw2-cell.diag {
  background: repeating-linear-gradient(45deg, #f4f6f7, #f4f6f7 4px, #ffffff 4px, #ffffff 8px);
  border: 1px dashed #cbd5e1; color: #94a3b8; font-size: 0.9rem;
}

/* 波次状态：ready = 配对高亮（虚线脉动），done = 已传输 */
.report .rw2-cell.ready { border-width: 2px; animation: rw2Pulse 1.1s ease-in-out infinite; }
.report .rw2-cell.done { border-width: 2px; }
.report .rw2-cell.ready.w1, .report .rw2-cell.done.w1 { border-color: #2e86c1; color: #2e86c1; background: #eaf3fb; }
.report .rw2-cell.ready.w2, .report .rw2-cell.done.w2 { border-color: #00897b; color: #00897b; background: #e7f4f1; }
.report .rw2-cell.ready.w3, .report .rw2-cell.done.w3 { border-color: #d97706; color: #b86503; background: #fdf3e6; }
@keyframes rw2Pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(41, 128, 185, 0); }
  50% { box-shadow: 0 0 0 5px rgba(41, 128, 185, 0.32); }
}
.report .rw2-note {
  margin-top: 10px; font-size: 0.78rem; color: var(--text-muted); line-height: 1.65;
  background: var(--code-bg); border: 1px solid var(--border); border-radius: 8px;
  padding: 9px 12px; min-height: 54px;
}

/* ---------- 右侧面板：波次图例 + Rail 分布 ---------- */
.report .rw2-side { position: absolute; left: 566px; top: 12px; width: 300px; }
.report .rw2-box {
  border: 1px solid var(--border); border-radius: 8px; background: var(--surface);
  padding: 10px 12px; margin-bottom: 10px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.report .rw2-box-t { font-size: 0.78rem; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.report .rw2-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.72rem; color: var(--text-muted); margin-right: 12px; white-space: nowrap;
}
.report .rw2-chip i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.report .rw2-chip i.c1 { background: #2e86c1; }
.report .rw2-chip i.c2 { background: #00897b; }
.report .rw2-chip i.c3 { background: #d97706; }
.report .rw2-rgrp { margin-bottom: 10px; }
.report .rw2-rgrp-t { font-size: 0.72rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.report .rw2-railrow { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.report .rw2-rlbl { flex: 0 0 36px; font-size: 0.7rem; color: var(--text-muted); }
.report .rw2-rtrack { flex: 1; height: 10px; background: #eef2f6; border-radius: 3px; overflow: hidden; }
.report .rw2-rfill { display: block; height: 100%; border-radius: 3px; }
.report .rw2-rfill.nat { background: linear-gradient(90deg, #e74c3c, #c0392b); }
.report .rw2-rfill.rb { background: linear-gradient(90deg, #2ecc71, #00897b); }
.report .rw2-rval { flex: 0 0 42px; text-align: right; font-size: 0.72rem; font-weight: 700; color: var(--text); }
.report .rw2-scap { font-size: 0.72rem; color: var(--text-muted); line-height: 1.6; }
.report .rw2-hide { display: none; }