/* ============================================================
   Inkwell Engine · scene-platform.css — 管理底座动画场景
   五幕：组织 → 权限 → 菜单路由 → 租户/调度 → 治理全景
   画布 1160×700，控制台浅色主题（与真实管理端同源 #F6F8FB / #3B82F6）
   ============================================================ */

.pf-stage {
  position: relative;
  width: 1160px;
  height: 700px;
  transform-origin: top left;
  font-family: var(--font-body);
}

/* 整窗淡入 / 淡出 */
.pf-stage .pf-window {
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.pf-stage.on .pf-window { opacity: 1; transform: none; }
.pf-stage.leaving .pf-window { opacity: 0; transform: translateY(-14px) scale(0.99); }

/* ---------- 控制台窗体 ---------- */

.pf-window {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #f6f8fb;
  box-shadow:
    0 40px 120px rgba(0, 0, 0, 0.55),
    0 8px 40px rgba(2, 6, 23, 0.35);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: #1f2937;
}

/* 顶栏 */
.pf-hd {
  flex: 0 0 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  background: #fff;
  border-bottom: 1px solid #e8ecf3;
}
.pf-logo {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #3b82f6;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.pf-title { font-size: 15px; font-weight: 700; color: #1f2937; }
.pf-title small { font-weight: 400; font-size: 10px; color: #94a3b8; margin-left: 8px; letter-spacing: 0.08em; }
.pf-hd .sp { flex: 1; }
.pf-search {
  width: 210px;
  font-size: 11px;
  color: #94a3b8;
  background: #f6f8fb;
  border: 1px solid #e8ecf3;
  border-radius: 7px;
  padding: 5.5px 12px;
}
.pf-env {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}
.pf-user { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: #475569; }
.pf-user i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.pf-body { flex: 1; display: flex; min-height: 0; }

/* 侧栏 */
.pf-aside {
  flex: 0 0 150px;
  background: #fff;
  border-right: 1px solid #eef2f7;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.pf-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: #475569;
  padding: 6.5px 11px;
  border-radius: 7px;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.4s ease, transform 0.4s ease, background 0.35s ease, color 0.35s ease;
}
.pf-item.on { opacity: 1; transform: none; }
.pf-item .ag { font-size: 11px; color: #94a3b8; width: 13px; text-align: center; }
.pf-item.active { background: rgba(59, 130, 246, 0.08); color: #3b82f6; font-weight: 600; }
.pf-item.active .ag { color: #3b82f6; }
.pf-item .pf-dot {
  margin-left: auto;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #10b981;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.pf-item.active .pf-dot { opacity: 1; }
.pf-group {
  font-size: 9px;
  letter-spacing: 0.14em;
  color: #94a3b8;
  padding: 9px 11px 3px;
}
.pf-item.pf-sub { padding-left: 25px; }

.pf-main { flex: 1; padding: 14px 17px; position: relative; min-width: 0; }

/* ---------- 视图切换 ---------- */

.pf-view {
  position: absolute;
  inset: 14px 17px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.pf-view.on { opacity: 1; transform: none; }

.pf-vhd {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 11px;
}
.pf-vhd .vt { font-size: 14px; font-weight: 700; color: #1f2937; }
.pf-vhd .vd { font-size: 10.5px; color: #94a3b8; }
.pf-vhd .sp { flex: 1; }
.pf-abtn {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: #3b82f6;
  padding: 6px 14px;
  border-radius: 7px;
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
}
.pf-abtn.ghost {
  color: #475569;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: none;
  font-weight: 500;
}

/* ---------- Act1 · 组织（部门树 + 用户表） ---------- */

.pf-org { display: flex; gap: 12px; height: 100%; }
.pf-dept {
  flex: 0 0 196px;
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 10px;
  padding: 10px 9px;
}
.pf-dept .dt { font-size: 10.5px; color: #94a3b8; letter-spacing: 0.1em; padding: 2px 8px 8px; }
.pf-drow {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: #334155;
  padding: 6px 9px;
  border-radius: 7px;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.4s ease, transform 0.4s ease, background 0.3s ease;
}
.pf-drow.on { opacity: 1; transform: none; }
.pf-drow .dg { color: #94a3b8; font-size: 10px; width: 12px; text-align: center; }
.pf-drow .dc {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: #94a3b8;
  background: #f1f5f9;
  border-radius: 5px;
  padding: 1px 7px;
  transition: all 0.4s ease;
}
.pf-drow.hot { background: rgba(59, 130, 246, 0.08); color: #3b82f6; font-weight: 600; }
.pf-drow.hot .dc { background: rgba(59, 130, 246, 0.12); color: #3b82f6; }
.pf-drow.hot .dc.bump { transform: scale(1.15); }

.pf-users {
  flex: 1;
  min-width: 0;
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 10px;
  padding: 11px 13px;
  position: relative;
}
.pf-tr {
  display: grid;
  grid-template-columns: 1.3fr 1.05fr 0.95fr 0.7fr 1fr;
  align-items: center;
  gap: 8px;
  padding: 6.5px 9px;
  border-bottom: 1px solid #f5f7fb;
  font-size: 11.3px;
  color: #334155;
  opacity: 0;
  transform: translateY(7px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.pf-tr.on { opacity: 1; transform: none; }
.pf-tr.head {
  font-size: 10px;
  color: #94a3b8;
  letter-spacing: 0.06em;
  border-bottom: 1px solid #eef2f7;
  padding-bottom: 7px;
}
.pf-tr .u {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.pf-tr .u i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex: 0 0 22px;
}
.pf-tr:nth-child(odd) .u i { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.pf-tr:nth-child(even) .u i { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.pf-tr .u em { font-style: normal; overflow: hidden; }
.pf-tr .u em b { display: block; font-size: 11.3px; color: #1f2937; font-weight: 600; line-height: 1.3; }
.pf-tr .u em s { text-decoration: none; font-family: var(--font-mono); font-size: 9px; color: #94a3b8; }
.pf-tr .dept { font-size: 10.8px; color: #475569; }
.pf-tag {
  justify-self: start;
  font-size: 9.5px;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.07);
  color: #2563eb;
}
.pf-tag.violet { background: rgba(139, 92, 246, 0.09); color: #7c3aed; }
.pf-tag.green { background: rgba(16, 185, 129, 0.1); color: #059669; }
.pf-st {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: #059669;
}
.pf-st i { width: 6px; height: 6px; border-radius: 50%; background: #10b981; }
.pf-st.off { color: #94a3b8; }
.pf-st.off i { background: #cbd5e1; }
.pf-tr .t { font-family: var(--font-mono); font-size: 9.5px; color: #94a3b8; }
.pf-tr.fresh { background: rgba(16, 185, 129, 0.07); border-radius: 8px; }

/* 新建用户弹窗 */
.pf-mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.32);
  opacity: 0;
  transition: opacity 0.45s ease;
  z-index: 8;
}
.pf-mask.on { opacity: 1; }
.pf-dialog {
  position: absolute;
  top: 34px;
  left: 50%;
  width: 400px;
  transform: translate(-50%, 14px) scale(0.97);
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e8ecf3;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
  padding: 15px 18px 16px;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 9;
}
.pf-dialog.on { opacity: 1; transform: translate(-50%, 0) scale(1); }
.pf-dialog .ft { font-size: 13.5px; font-weight: 700; color: #1f2937; margin-bottom: 12px; }
.pf-frow { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.pf-frow .fl { flex: 0 0 62px; font-size: 11px; color: #64748b; }
.pf-frow .fi {
  flex: 1;
  font-size: 11.5px;
  color: #1f2937;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  padding: 6.5px 11px;
}
.pf-frow .fi.sel { display: flex; justify-content: space-between; align-items: center; color: #334155; }
.pf-frow .fi.sel::after { content: "▾"; color: #94a3b8; font-size: 10px; }
.pf-frow .fi .masknote {
  float: right;
  font-size: 8.5px;
  color: #059669;
  background: rgba(16, 185, 129, 0.09);
  border-radius: 999px;
  padding: 1px 7px;
}
.pf-fbtns { display: flex; justify-content: flex-end; gap: 9px; margin-top: 13px; }
.pf-fbtn { font-size: 11px; padding: 6.5px 18px; border-radius: 7px; color: #475569; border: 1px solid #e2e8f0; }
.pf-fbtn.primary { color: #fff; background: #3b82f6; border: none; font-weight: 600; transition: all 0.3s ease; }
.pf-fbtn.primary.save { background: #10b981; }

/* 保存成功 toast */
.pf-toast {
  position: absolute;
  right: 18px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: #fff;
  background: rgba(5, 31, 24, 0.88);
  border-radius: 10px;
  padding: 9px 16px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 12;
}
.pf-toast.on { opacity: 1; transform: none; }
.pf-toast .tk { color: #34d399; }

/* ---------- Act2 · 角色权限 ---------- */

.pf-perm { display: flex; gap: 12px; height: 100%; }
.pf-roles { flex: 0 0 218px; display: flex; flex-direction: column; gap: 8px; }
.pf-role {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 9px;
  padding: 9px 12px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}
.pf-role.on { opacity: 1; transform: none; }
.pf-role.pick { border-color: rgba(59, 130, 246, 0.55); box-shadow: 0 4px 18px rgba(59, 130, 246, 0.16); }
.pf-role .ravatar {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex: 0 0 26px;
}
.pf-role:nth-child(odd) .ravatar { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.pf-role:nth-child(even) .ravatar { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.pf-role .rmeta { flex: 1; min-width: 0; }
.pf-role .rname { font-size: 12px; font-weight: 600; color: #1f2937; line-height: 1.35; }
.pf-role .rdesc { font-size: 9.5px; color: #94a3b8; }
.pf-role .rusers { font-family: var(--font-mono); font-size: 9.5px; color: #64748b; }

.pf-ptree {
  flex: 1;
  min-width: 0;
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 10px;
  padding: 12px 15px;
  display: flex;
  flex-direction: column;
}
.pf-ptree .pthd {
  display: flex;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid #eef2f7;
  margin-bottom: 6px;
}
.pf-ptree .pthd .ptt { font-size: 12px; font-weight: 700; color: #334155; }
.pf-ptree .pthd .sp { flex: 1; }
.pf-ptree .pthd .psub { font-size: 9.5px; color: #94a3b8; }
.pf-pg { font-size: 10px; color: #94a3b8; letter-spacing: 0.14em; padding: 7px 6px 3px; opacity: 0; transition: opacity 0.4s ease; }
.pf-pg.on { opacity: 1; }
.pf-prow {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11.5px;
  color: #334155;
  padding: 5px 6px;
  border-radius: 7px;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.35s ease, transform 0.35s ease, background 0.3s ease;
}
.pf-prow.on { opacity: 1; transform: none; }
.pf-prow.hit { background: rgba(59, 130, 246, 0.06); }
.pf-ck {
  width: 15px;
  height: 15px;
  border-radius: 4.5px;
  border: 1.5px solid #cbd5e1;
  display: grid;
  place-items: center;
  font-size: 9px;
  color: #fff;
  flex: 0 0 15px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pf-ck.on { background: #3b82f6; border-color: #3b82f6; }
.pf-ck.on::after { content: "✓"; font-weight: 800; }
.pf-ck.half { border-color: #93c5fd; }
.pf-prow .pk { font-family: var(--font-mono); font-size: 9px; color: #cbd5e1; margin-left: auto; letter-spacing: 0.03em; }
.pf-prow .pmask {
  font-size: 8.5px;
  color: #059669;
  background: rgba(16, 185, 129, 0.09);
  border-radius: 999px;
  padding: 1px 8px;
  margin-left: auto;
}
.pf-prow .pmask + .pk { margin-left: 7px; }
.pf-prow.l2 { padding-left: 30px; }
.pf-prow.l3 { padding-left: 54px; }

/* ---------- Act3 · 菜单路由 ---------- */

.pf-menulist {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 10px;
  padding: 10px 12px;
  height: calc(100% - 40px);
  overflow: hidden;
}
.pf-mrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #334155;
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  padding: 7.5px 11px;
  margin-bottom: 5px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s ease, border-color 0.4s ease;
}
.pf-mrow.on { opacity: 1; transform: none; }
.pf-mrow.l1 { font-weight: 600; color: #1f2937; background: #f8fafc; }
.pf-mrow.l2 { margin-left: 26px; }
.pf-mrow.l2b { margin-left: 26px; }
.pf-mrow .mg { font-size: 11px; color: #94a3b8; width: 14px; text-align: center; }
.pf-mrow.l1 .mg { color: #3b82f6; }
.pf-mrow .mroute { margin-left: auto; font-family: var(--font-mono); font-size: 9px; color: #cbd5e1; }
.pf-mrow .mvis { display: flex; align-items: center; gap: 4px; font-size: 9.5px; color: #94a3b8; margin-left: 10px; }
.pf-mrow.newnode {
  border-color: rgba(59, 130, 246, 0.55);
  background: rgba(59, 130, 246, 0.05);
  box-shadow: 0 6px 24px rgba(59, 130, 246, 0.14);
}
.pf-mrow.newnode .mname { color: #3b82f6; font-weight: 700; }
.pf-mrow .ai-badge {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  background: linear-gradient(100deg, #3d8bff, #8b5cf6);
  border-radius: 999px;
  padding: 2px 9px;
}
.pf-mrow .live {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9.5px;
  color: #059669;
  margin-left: 10px;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.pf-mrow .live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}
.pf-mrow .live.on { opacity: 1; }
.pf-menote {
  margin-top: 11px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  color: #475569;
  background: rgba(59, 130, 246, 0.05);
  border: 1px dashed rgba(59, 130, 246, 0.35);
  border-radius: 9px;
  padding: 8px 13px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.pf-menote.on { opacity: 1; transform: none; }
.pf-menote b { color: #3b82f6; }

/* ---------- Act4 · 租户 / 调度 ---------- */

.pf-tenrow {
  display: flex;
  align-items: center;
  gap: 13px;
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 10px;
  padding: 11px 14px;
  margin-bottom: 8px;
  opacity: 0;
  transform: translateY(9px);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.pf-tenrow.on { opacity: 1; transform: none; }
.pf-tenrow.on .pf-tchip:not(.add) { opacity: 1; transform: none; }
.pf-tenrow .tlogo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex: 0 0 34px;
}
.pf-tenrow:nth-child(odd) .tlogo { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.pf-tenrow:nth-child(even) .tlogo { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.pf-tenrow .tmeta { flex: 0 0 148px; min-width: 0; }
.pf-tenrow .tname { font-size: 12.5px; font-weight: 600; color: #1f2937; }
.pf-tenrow .tsub { font-size: 9.5px; color: #94a3b8; }
.pf-plan {
  font-size: 9.5px;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  transition: all 0.45s ease;
}
.pf-plan.pro { background: rgba(139, 92, 246, 0.1); color: #7c3aed; }
.pf-tenrow .tmods { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; flex: 1; }
.pf-tchip {
  font-size: 9.5px;
  color: #475569;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 2px 10px;
  background: #fff;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pf-tchip.on { opacity: 1; transform: none; }
.pf-tchip.add { border-color: rgba(59, 130, 246, 0.5); color: #3b82f6; background: rgba(59, 130, 246, 0.06); }
.pf-tenrow .tstat { display: flex; align-items: center; gap: 5px; font-size: 10px; color: #059669; }
.pf-tenrow .tstat i { width: 6px; height: 6px; border-radius: 50%; background: #10b981; }

.pf-cron {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 10px;
  padding: 13px 16px;
}
.pf-cron .crh { display: flex; align-items: center; gap: 9px; margin-bottom: 11px; }
.pf-cron .crh .ct { font-size: 12.5px; font-weight: 700; color: #1f2937; }
.pf-cron .crh .sp { flex: 1; }
.pf-cron .crh .cnext { font-family: var(--font-mono); font-size: 9.5px; color: #64748b; }
.pf-cronrow { display: flex; gap: 6px; margin-bottom: 12px; }
.pf-cslot {
  flex: 1;
  text-align: center;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px 2px 5px;
  opacity: 0;
  transform: translateY(8px) scale(0.94);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s ease;
}
.pf-cslot.on { opacity: 1; transform: none; }
.pf-cslot.fill { border-color: rgba(59, 130, 246, 0.55); background: rgba(59, 130, 246, 0.05); }
.pf-cslot b { display: block; font-family: var(--font-mono); font-size: 13px; color: #3b82f6; }
.pf-cslot s { text-decoration: none; font-size: 8.5px; color: #94a3b8; }
.pf-tasks { display: flex; flex-direction: column; gap: 6px; }
.pf-task {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11.3px;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  padding: 7px 12px;
  opacity: 0;
  transform: translateY(7px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.pf-task.on { opacity: 1; transform: none; }
.pf-task .tc { font-family: var(--font-mono); font-size: 9.5px; color: #64748b; background: #fff; border: 1px solid #eef2f7; border-radius: 6px; padding: 2px 8px; }
.pf-task .trun { margin-left: auto; font-size: 9.5px; color: #3b82f6; display: flex; align-items: center; gap: 5px; }
.pf-task .trun i { width: 6px; height: 6px; border-radius: 50%; background: #3b82f6; animation: pfPulse 1.2s ease-in-out infinite; }
.pf-task .tok { margin-left: auto; font-size: 9.5px; color: #059669; opacity: 0; transition: opacity 0.4s ease; }
.pf-task.done .trun { display: none; }
.pf-task.done .tok { opacity: 1; }
@keyframes pfPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
  50% { box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12); }
}

/* ---------- Act5 · 工作流 / 审计 / AI 监控 ---------- */

.pf-flowwrap {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 10px;
  padding: 12px 16px;
  height: calc(100% - 40px);
  position: relative;
}
.pf-flowwrap svg { display: block; width: 100%; height: 100%; }
.pf-flowwrap .edge {
  stroke: #93c5fd;
  stroke-width: 2;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}
.pf-flowwrap .edge.go { stroke-dashoffset: 0; }
.pf-fnode {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.pf-fnode.on { opacity: 1; transform: none; }
.pf-fnode rect { fill: #fff; stroke: #cbd5e1; }
.pf-fnode.done rect { stroke: #3b82f6; fill: rgba(59, 130, 246, 0.04); }
.pf-fnode text { font-size: 12px; fill: #334155; font-weight: 600; }
.pf-fnode text.sub { font-size: 8.5px; fill: #94a3b8; font-weight: 400; }
.pf-fbadge {
  position: absolute;
  right: 16px;
  bottom: 12px;
  font-size: 10px;
  color: #059669;
  background: rgba(16, 185, 129, 0.09);
  border-radius: 999px;
  padding: 3px 12px;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.pf-fbadge.on { opacity: 1; }

.pf-audlist { background: #fff; border: 1px solid #eef2f7; border-radius: 10px; padding: 6px 15px; }
.pf-aud {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9.5px 2px;
  border-bottom: 1px solid #f5f7fb;
  font-size: 11.5px;
  color: #475569;
  opacity: 0;
  transform: translateY(7px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.pf-aud.on { opacity: 1; transform: none; }
.pf-aud .at { font-family: var(--font-mono); font-size: 9.5px; color: #94a3b8; }
.pf-aud .alv { font-size: 8.5px; padding: 1px 9px; border-radius: 999px; flex: 0 0 auto; }
.pf-aud .alv.ok { background: rgba(16, 185, 129, 0.1); color: #059669; }
.pf-aud .alv.info { background: rgba(59, 130, 246, 0.08); color: #2563eb; }
.pf-aud .alv.warn { background: rgba(245, 158, 11, 0.12); color: #b45309; }
.pf-aud .alv.violet { background: rgba(139, 92, 246, 0.1); color: #7c3aed; }
.pf-aud .atx { flex: 1; min-width: 0; }
.pf-aud .who { margin-left: auto; font-size: 10px; color: #94a3b8; flex: 0 0 auto; }

.pf-mon { display: flex; flex-direction: column; gap: 11px; height: 100%; }
.pf-mkpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.pf-mkpi {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 10px;
  padding: 10px 14px 9px;
  opacity: 0;
  transform: translateY(9px);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.pf-mkpi.on { opacity: 1; transform: none; }
.pf-mkpi .kl { font-size: 10px; color: #94a3b8; letter-spacing: 0.06em; }
.pf-mkpi .kv { font-family: var(--font-mono); font-size: 19px; font-weight: 700; color: #1f2937; margin-top: 2px; }
.pf-mkpi .kd { font-size: 9px; color: #059669; margin-top: 1px; }
.pf-mchart {
  flex: 0 0 auto;
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 10px;
  padding: 12px 15px 16px;
  opacity: 0;
  transform: translateY(9px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.pf-mchart.on { opacity: 1; transform: none; }
.pf-mchart .mct { font-size: 12px; font-weight: 600; color: #334155; margin-bottom: 6px; }
.pf-mchart svg { display: block; width: 100%; height: 210px; }
.pf-mchart polyline.draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.pf-mchart polyline.draw.go { stroke-dashoffset: 0; }
.pf-mchart polyline.draw2 {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.6s cubic-bezier(0.4, 0, 0.2, 1) 0.25s;
}
.pf-mchart polyline.draw2.go { stroke-dashoffset: 0; }

/* ---------- 字幕 / 水印 / 结尾卡（与总览视频同源） ---------- */

.pf-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 7.5%;
  text-align: center;
  z-index: 40;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #eef3fb;
  text-shadow: 0 2px 30px rgba(5, 8, 15, 0.95), 0 0 60px rgba(61, 139, 255, 0.35);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.pf-caption.on { opacity: 1; transform: none; }

.pf-caption-veil {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 26%;
  background: linear-gradient(180deg, transparent, rgba(5, 8, 15, 0.88));
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
  z-index: 35;
}
.pf-caption-veil.on { opacity: 1; }

.pf-endcard {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  background: radial-gradient(1100px 560px at 50% 42%, rgba(11, 23, 48, 0.92), rgba(5, 8, 15, 0.985) 78%);
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
}
.pf-endcard.on { opacity: 1; }
.pf-endcard .logo-wrap {
  width: 132px;
  height: 132px;
  border-radius: 32px;
  display: grid;
  place-items: center;
  transform: scale(0.8);
  opacity: 0;
  transition: transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 0.25s, opacity 0.9s ease 0.25s;
  box-shadow: 0 30px 90px rgba(52, 224, 232, 0.22), 0 0 120px rgba(139, 92, 246, 0.14);
}
.pf-endcard.on .logo-wrap { transform: scale(1); opacity: 1; }
.pf-endcard .logo-wrap img { width: 108px; height: 108px; }
.pf-endcard .ename {
  font-family: var(--font-display);
  font-size: 46px;
  letter-spacing: 0.06em;
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.8s ease 0.5s;
}
.pf-endcard.on .ename { opacity: 1; transform: none; }
.pf-endcard .eslogan {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: #a9b7d0;
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.8s ease 0.75s;
}
.pf-endcard.on .eslogan { opacity: 1; transform: none; }
.pf-endcard .ecta {
  font-size: 14.5px;
  letter-spacing: 0.3em;
  color: #6b7a96;
  padding: 10px 30px;
  border: 1px solid rgba(140, 170, 220, 0.14);
  border-radius: 999px;
  opacity: 0;
  transition: all 0.8s ease 1s;
}
.pf-endcard.on .ecta { opacity: 1; }

.pf-watermark {
  position: absolute;
  top: 11px;
  left: 254px;
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px;
  border-radius: 999px;
  background: rgba(5, 10, 20, 0.78);
  border: 1px solid rgba(140, 170, 220, 0.2);
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 1s ease 0.4s;
}
.pf-watermark.on { opacity: 1; }
.pf-watermark img { width: 22px; height: 22px; }
.pf-watermark .wm-name {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.08em;
  color: rgba(238, 243, 251, 0.95);
}

/* 自适应缩放容器（与 scene.css 同约定） */
.pf-fit {
  position: relative;
  width: 100%;
}
