/* =====================================================================
   GPU 发起通信 深度报告 · 专属样式
   用途：「GPU 直发 RDMA Write 解剖时间轴」动画板（gic-path）的自定义类
   基础组件（.board/.stage/.step-desc/.legend/.controls/.btn/.flyer 等）
   由 css/report.css 提供，本文件只追加动画板独有类。
   ===================================================================== */

/* 动画板：舞台占位 */
.board .stage.gicpath { min-height: 320px; }

/* 系统画布：三个节点 + 两条链路的绝对定位舞台 */
.gic-sys { position: relative; width: 840px; height: 300px; }

/* ---- 节点通用 ---- */
.nd {
  position: absolute; border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface); padding: 8px; box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.nd-h {
  font-size: 0.72rem; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 6px; padding: 4px 8px; margin-bottom: 6px;
}
.gpu-node { left: 8px; top: 8px; width: 212px; height: 216px; }
.nic-node { left: 404px; top: 8px; width: 200px; height: 216px; }
.rm-node { left: 676px; top: 96px; width: 156px; height: 96px; }
.gn-row, .nn-row, .rn-row { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; }
.gn-lbl, .nn-lbl, .rn-lbl { flex: 0 0 96px; font-size: 0.68rem; color: var(--text-muted); }
.rn-lbl { flex: 0 0 52px; }

/* ---- 单元格基类与变体（色系 = 内存 / 寄存器 / 完成 / 远端） ---- */
.cell {
  flex: 1; min-height: 24px; border: 1px solid; border-radius: 5px;
  font-size: 0.64rem; font-weight: 600; padding: 5px 4px; text-align: center;
  display: flex; align-items: center; justify-content: center;
}
.gn-segs { flex: 1; display: flex; gap: 3px; }
.gn-seg {
  flex: 1; font-size: 0.58rem; padding: 3px 2px; text-align: center;
  border: 1px dashed #94a3b8; background: #f8fafc; border-radius: 4px; color: #64748b;
  display: flex; align-items: center; justify-content: center;
}
.sq   { background: #eaf2f8; border-color: #aed6f1; color: #2471a3; }
.dbr  { background: #fef9e7; border-color: #d4ac0d; color: #7d6608; }
.cq   { background: #f0faf4; border-color: #abebc6; color: #1e8449; }
.uar  { background: #ede9fe; border-color: #c4b5fd; color: #5b21b6; }
.nwqe { background: #e8f6f3; border-color: #4db6ac; color: #0e6655; }
.rdma { background: #f4f6f7; border-color: #cbd5e1; color: #5d6d7e; }
.rslot{ background: #fef9e7; border-color: #d4ac0d; border-style: dashed; color: #7d6608; }

/* ---- 状态：点亮 / 完成 / 暗淡 ---- */
.hot  { animation: gicPulse 1.4s ease-in-out infinite; }
.done { border-width: 2px; font-weight: 700; }
.dim  { opacity: 0.35; }
@keyframes gicPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(26,82,118,0); }
  50%      { box-shadow: 0 0 0 4px rgba(26,82,118,0.45); }
}

/* ---- 节点内注释贴片 ---- */
.chip {
  margin-top: 4px; font-size: 0.62rem; background: var(--highlight);
  border-left: 3px solid var(--accent); border-radius: 0 4px 4px 0;
  padding: 3px 6px; color: var(--text);
}

/* ---- 两条链路（PCIe / 网络） ---- */
.gic-pcie, .gic-netlink {
  position: absolute; height: 4px; border-radius: 2px;
  background: repeating-linear-gradient(90deg, #94a3b8 0 6px, transparent 6px 12px);
}
.gic-pcie    { left: 220px; top: 112px; width: 184px; }
.gic-netlink { left: 604px; top: 140px; width: 72px; }
.gic-pcie::after, .gic-netlink::after {
  content: attr(data-lbl); position: absolute; left: 50%; top: -15px;
  transform: translateX(-50%); font-size: 0.64rem; font-weight: 600;
  color: var(--text-muted); background: var(--surface); padding: 0 6px; white-space: nowrap;
}

/* ---- 底部累计账本时间轴（满刻度 8.5 µs） ---- */
.gic-tl { position: absolute; left: 0; right: 0; top: 236px; }
.tl-head { font-size: 0.66rem; font-weight: 700; color: var(--primary); margin-bottom: 2px; }
.tl-track { position: relative; height: 30px; background: #eef2f6; border-radius: 6px; }
.tl-seg { position: absolute; top: 6px; height: 18px; opacity: 0.28; }
.tl-seg.on { opacity: 1; }
.tl-issue { background: var(--accent); border-radius: 4px 0 0 4px; }
.tl-wire  { background: var(--primary-light); }
.tl-ack   { background: var(--primary); border-radius: 0 4px 4px 0; }
.tl-tick  { position: absolute; top: -2px; width: 2px; height: 34px; background: #2c3e50; opacity: 0.35; }
.tl-tick.on { opacity: 1; }
.tl-lbl {
  position: absolute; top: 34px; font-size: 0.62rem; font-weight: 600;
  color: var(--text-muted); transform: translateX(-50%); white-space: nowrap;
}
.tl-lbl.on { color: var(--primary); }
.tl-lbl.above { top: -16px; color: var(--text-muted); }
.tl-lbl.above.on { color: var(--accent); }
.tl-pre { position: absolute; top: 11px; left: 14px; font-size: 0.64rem; color: var(--text-muted); }
.tl-note {
  margin-top: 26px; font-size: 0.7rem; background: var(--highlight);
  border: 1px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: 6px; padding: 6px 10px;
}

/* ---- 完成范围对照条（第 8 步替换账本） ---- */
.gic-scope { margin-top: 4px; }
.sc-row { display: flex; align-items: center; gap: 4px; margin-bottom: 7px; }
.sc-lbl { flex: 0 0 150px; font-size: 0.66rem; color: var(--text-muted); }
.sc-cell {
  width: 34px; height: 26px; border-radius: 4px;
  border: 1px solid #d4ac0d; background: #fef9e7;
}
.sc-cell.hot { animation: gicPulse 1.2s ease-in-out infinite; }
.sc-cell.done { background: #eafaf1; border-color: #27ae60; }
.sc-tag { margin-left: 8px; font-size: 0.64rem; font-weight: 700; }
.sc-tag.bad  { color: var(--danger); }
.sc-tag.good { color: var(--success); }
