/* =====================================================================
   《多 GPU 通信的新透镜》报告专属样式：定向保序动画板（.amm-* 板件）
   公共组件样式（nav/section/table/board/controls/btn 等）见 css/report.css；
   本文件只定义动画板的自定义类，选择器统一以 .report 前缀收紧作用域。
   ===================================================================== */

/* ---------- 动画板舞台 ---------- */
.report .amm-stage { min-height: 420px; padding: 14px; }

/* ---------- 双 PE + 网络三栏布局 ---------- */
.report .amm-wrap {
  display: flex; gap: 10px; align-items: stretch; justify-content: center;
  min-width: 660px;
}
.report .amm-pe {
  flex: 1 1 0; max-width: 235px;
  border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 10px; background: #fbfdfc; position: relative;
}
.report .amm-pe-h {
  text-align: center; font-size: 0.85rem; font-weight: 700;
  color: var(--primary); margin-bottom: 10px;
}
.report .amm-pe.owner { border-color: var(--accent); background: #f2faf8; }

/* ---------- 缓存行 ---------- */
.report .amm-row {
  height: 42px; border-radius: 6px; margin-bottom: 7px;
  display: flex; flex-direction: column; gap: 1px;
  align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 600; color: #fff;
  position: relative; transition: all 0.35s;
}
.report .amm-row:last-child { margin-bottom: 0; }
.report .amm-row .sub {
  display: block; font-size: 0.62rem; font-weight: 400; opacity: 0.85;
  margin-top: 1px;
}
.report .amm-row.a { background: #2c3e50; }
.report .amm-row.b { background: #00897b; }
.report .amm-row.sig { background: #d35400; }
.report .amm-row.wait {
  background: #f4f6f7; color: var(--text-muted);
  border: 1px dashed var(--border);
}
.report .amm-row.evicted {
  outline: 2px dashed var(--danger); outline-offset: 2px;
  opacity: 0.4;
}
.report .amm-row.evicted::after {
  content: "已逐出"; position: absolute; right: 4px; top: 2px;
  font-size: 0.58rem; color: var(--danger); opacity: 1; font-weight: 700;
}
.report .amm-row.resident {
  outline: 2px solid var(--success); outline-offset: 2px; opacity: 1;
}
.report .amm-row.resident::after {
  content: "L2 驻留"; position: absolute; right: 4px; top: 2px;
  font-size: 0.58rem; color: var(--success); opacity: 1; font-weight: 700;
}
.report .amm-row.pulse { animation: ammPulse 1.3s ease-in-out infinite; }
@keyframes ammPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 137, 123, 0); }
  50% { box-shadow: 0 0 0 4px rgba(0, 137, 123, 0.45); }
}

/* ---------- 网络栏与旁路通道 ---------- */
.report .amm-net {
  flex: 0 0 150px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; background: var(--code-bg);
  border: 1px dashed var(--border); border-radius: 10px; padding: 10px;
}
.report .amm-net-t {
  font-size: 0.72rem; font-weight: 700; color: var(--primary);
  text-align: center; line-height: 1.4;
}
.report .amm-bypass {
  width: 92%; min-height: 46px;
  border: 2px dashed var(--accent-light); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.66rem; color: var(--accent); font-weight: 700;
  text-align: center; transition: all 0.35s;
}
.report .amm-bypass.on {
  background: #f2faf8; border-style: solid; border-color: var(--accent);
}
.report .amm-net-note {
  font-size: 0.64rem; color: var(--text-muted); text-align: center; line-height: 1.5;
}

/* ---------- 成本账注记 ---------- */
.report .amm-cost {
  margin: 14px 0 0; padding: 10px 14px; border-radius: 6px;
  background: var(--highlight); border: 1px dashed var(--accent-light);
  font-size: 0.78rem; color: var(--text); line-height: 1.7;
}
.report .amm-cost b { color: var(--primary); }
.report .amm-cost .bad { color: var(--danger); font-weight: 700; }
.report .amm-cost .good { color: var(--success); font-weight: 700; }
.report .amm-meters { display: flex; gap: 14px; margin-top: 6px; flex-wrap: wrap; }
.report .amm-meter {
  flex: 1 1 170px; font-size: 0.72rem; line-height: 1.6;
  border-radius: 6px; padding: 6px 10px; background: var(--surface);
  border: 1px solid var(--border);
}
.report .amm-meter b { display: block; font-size: 0.74rem; }
.report .amm-meter.base { border-color: #f5b7b1; background: #fdf4f3; }
.report .amm-meter.dir { border-color: #abebc6; background: #f0faf4; }
