/* ============================================================
   Inkwell Engine · scene.css  (v2 — 对齐真实产品 UI)
   产品内界面为浅色主题：页面底 #F6F8FB / 白卡片 / 品牌蓝 #3B82F6
   结构：头部玻璃条 · 对话 58% / 预览 42% · 灵动岛 · 幕切换(市场)
   画布坐标系 1160 × 700，由 scene.js 按拍子切换状态类
   ============================================================ */

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

/* 整窗淡入 / 淡出 */
.sc-stage .sc-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);
}
.sc-stage.on .sc-window { opacity: 1; transform: none; }
.sc-stage.leaving .sc-window { opacity: 0; transform: translateY(-14px) scale(0.99); }

/* ---------- 应用窗体（浅色） ---------- */

.sc-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;
}

/* 头部玻璃条 */
.sc-hd {
  flex: 0 0 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e8ecf3;
  position: relative;
  z-index: 10;
}
.sc-back {
  width: 30px; height: 30px;
  border-radius: 8px;
  display: grid; place-items: center;
  color: #64748b;
  background: #f1f5f9;
  font-size: 14px;
}
.sc-modname { font-size: 16px; font-weight: 700; color: #3b82f6; letter-spacing: 0.02em; }

.sc-status {
  font-size: 11px;
  font-weight: 600;
  padding: 2.5px 11px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
  transition: all 0.5s ease;
}
.sc-status.published { background: rgba(16, 185, 129, 0.12); color: #059669; }

.sc-ver {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 9px;
  border-radius: 6px;
}

.sc-hd .sp { flex: 1; }

.sc-conn {
  display: flex; align-items: center; gap: 6px;
  font-size: 11.5px; color: #64748b;
}
.sc-conn i {
  width: 8px; height: 8px; border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

/* PC | 手机 分段切换（真实：填充底 + 白色活动块） */
.sc-seg {
  display: flex;
  background: #eef2f7;
  border-radius: 8px;
  padding: 2.5px;
  gap: 2px;
}
.sc-seg .seg {
  font-size: 11.5px;
  padding: 4px 14px;
  border-radius: 6px;
  color: #64748b;
  cursor: default;
  transition: all 0.35s ease;
  display: flex; align-items: center; gap: 5px;
}
.sc-seg .seg.active {
  background: #fff;
  color: #3b82f6;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
}

.sc-pubbtn {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: #3b82f6;
  padding: 7px 18px;
  border-radius: 8px;
  opacity: 0.45;
  transition: all 0.45s ease;
}
.sc-pubbtn.on { opacity: 1; }
.sc-pubbtn.glow { animation: scPubGlow 1.1s ease-in-out infinite alternate; }
@keyframes scPubGlow {
  from { box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3); }
  to { box-shadow: 0 6px 26px rgba(59, 130, 246, 0.55); }
}
.sc-pubbtn.done { background: #10b981; opacity: 1; }

/* ---------- 主体两栏 ---------- */

.sc-body { flex: 1; display: flex; min-height: 0; position: relative; }

/* ===== 左：对话栏（页面底 #F6F8FB，内容流） ===== */
.sc-chat {
  flex: 0 0 58%;
  position: relative;
  background: #f6f8fb;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px 22px 86px;
  gap: 12px;
  overflow: hidden;
}

/* 灵动岛执行胶囊（真实：固定宽白胶囊，右上角） */
.sc-island {
  position: absolute;
  top: 14px;
  right: 18px;
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 148px;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid #e8ecf3;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  opacity: 0;
  transform: translateY(-8px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.sc-island.on { opacity: 1; transform: none; }
.sc-island .idot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #0d9488;
  position: relative;
  flex: 0 0 10px;
}
.sc-island .idot::after {
  content: "";
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(13, 148, 136, 0.4);
  animation: scRing 1.4s ease-out infinite;
}
@keyframes scRing {
  from { transform: scale(0.5); opacity: 1; }
  to { transform: scale(1.25); opacity: 0; }
}
.sc-island.ok { color: #059669; }
.sc-island.ok .idot { background: #10b981; }
.sc-island.ok .idot::after { display: none; }

/* 用户气泡：实心品牌蓝，右对齐 */
.sc-msg.user {
  display: none;
  align-self: flex-end;
  max-width: 74%;
  background: #3b82f6;
  color: #fff;
  font-size: 13.8px;
  line-height: 1.6;
  padding: 10px 16px;
  border-radius: 16px;
  border-bottom-right-radius: 5px;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.28);
}
.sc-msg.user.on { display: block; animation: scIn 0.5s cubic-bezier(0.16, 1, 0.3, 1); }

/* AI 消息：真实产品无气泡，直接排版在页面上 */
.sc-msg.ai {
  display: none;
  align-self: flex-start;
  max-width: 92%;
  font-size: 13.8px;
  line-height: 1.7;
  color: #334155;
}
.sc-msg.ai.on { display: block; animation: scIn 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.sc-msg.ai b { color: #1f2937; }
.sc-msg.ai .hl { color: #3b82f6; font-weight: 600; }

/* AI 正在输入点 */
.sc-typing {
  display: none;
  align-self: flex-start;
  gap: 5px;
  padding: 10px 4px;
}
.sc-typing.on { display: flex; animation: scFade 0.4s ease; }
.sc-typing i {
  width: 6px; height: 6px; border-radius: 50%;
  background: #94a3b8;
  animation: scBounce 1.2s ease-in-out infinite;
}
.sc-typing i:nth-child(2) { animation-delay: 0.15s; }
.sc-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes scBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* 工具芯片（真实：等宽字体小行内chip，青色运行+流光+秒表）
   对话流子元素默认 display:none，.on 时以 keyframe 入场（不影响 flex 贴底布局） */
.sc-tools { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }

@keyframes scIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes scInX { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
@keyframes scFade { from { opacity: 0; } to { opacity: 1; } }

.sc-tchip {
  display: none;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3.5px 10px;
  border-radius: 6px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  position: relative;
  overflow: hidden;
}
.sc-tchip.on { display: inline-flex; animation: scInX 0.4s cubic-bezier(0.16, 1, 0.3, 1); }

.sc-tchip .tspin {
  width: 11px; height: 11px;
  border-radius: 50%;
  border: 2px solid rgba(13, 148, 136, 0.25);
  border-top-color: #0d9488;
  animation: scSpin 0.8s linear infinite;
}
@keyframes scSpin { to { transform: rotate(360deg); } }

.sc-tchip .tname { font-weight: 700; color: #0f172a; }
.sc-tchip .tsub {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #94a3b8;
}
.sc-tchip .ttimer { color: #0d9488; font-weight: 700; min-width: 20px; text-align: right; }

.sc-tchip.running {
  background: rgba(13, 148, 136, 0.08);
  border-color: rgba(13, 148, 136, 0.3);
  color: #0d9488;
}
.sc-tchip.running .tname { color: #0d9488; }
.sc-tchip.running::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.5) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: scShimmer 1.8s linear infinite;
}
@keyframes scShimmer { to { transform: translateX(120%); } }

.sc-tchip.done { background: #f8fafc; }
.sc-tchip.done .tspin { display: none; }
.sc-tchip.done .tname { color: #475569; }
.sc-tchip.done .ttimer { color: #10b981; }
.sc-tchip.done .ttimer::before { content: "✓ "; }

/* 委派块（真实：白卡 + 头像 + N 步 chip + 2px 左轨时间线） */
.sc-deleg {
  display: none;
  align-self: flex-start;
  width: 88%;
  background: #fff;
  border: 1px solid #e8ecf3;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}
.sc-deleg.on { display: block; animation: scIn 0.45s cubic-bezier(0.16, 1, 0.3, 1); }

.sc-deleg .dhead {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  background: #f8fafc;
  border-bottom: 1px solid #eef2f7;
  font-size: 12px;
}
.sc-deleg .dhead .dcaret { color: #94a3b8; font-size: 10px; }
.sc-deleg .dhead .davatar {
  width: 20px; height: 20px;
  border-radius: 5px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: grid; place-items: center;
}
.sc-deleg .dhead .dname { font-weight: 500; color: #1f2937; }
.sc-deleg .dhead .dstat { margin-left: auto; font-size: 10.5px; color: #0d9488; display: flex; align-items: center; gap: 5px; }
.sc-deleg .dhead .dstat .dspin {
  width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid rgba(13, 148, 136, 0.25);
  border-top-color: #0d9488;
  animation: scSpin 0.8s linear infinite;
}
.sc-deleg .dhead .dstat.ok { color: #10b981; }
.sc-deleg .dhead .dstat.ok .dspin { display: none; }
.sc-deleg .dhead .dcount {
  font-size: 10px;
  color: #64748b;
  background: #f1f5f9;
  border-radius: 999px;
  padding: 1px 8px;
}

.sc-deleg .dbody {
  padding: 8px 12px 9px 14px;
  border-left: 2px solid #e2e8f0;
  margin: 6px 0 6px 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: all 0.4s ease;
}
.sc-deleg.folded .dbody { display: none; }

.sc-deleg .drow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #64748b;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.sc-deleg .drow.on { opacity: 1; transform: none; }
.sc-deleg .drow .dck {
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 1.5px solid #cbd5e1;
  flex: 0 0 12px;
  position: relative;
  transition: all 0.3s ease;
}
.sc-deleg .drow.ok .dck { background: #10b981; border-color: #10b981; }
.sc-deleg .drow.ok .dck::after {
  content: "✓";
  position: absolute; inset: 0;
  font-size: 8px; color: #fff; font-weight: 800;
  display: grid; place-items: center;
}
.sc-deleg .drow.run .dck {
  border-color: rgba(13, 148, 136, 0.3);
  border-top-color: #0d9488;
  animation: scSpin 0.7s linear infinite;
}

.sc-deleg .dfoot {
  padding: 5px 11px 7px;
  font-size: 10.5px;
  color: #94a3b8;
  display: none;
}
.sc-deleg.folded .dfoot { display: block; }

/* Excel 导入卡片（Act3） */
.sc-import {
  display: none;
  align-self: flex-start;
  width: 78%;
  background: #fff;
  border: 1px solid #e8ecf3;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.07);
  padding: 11px 14px;
}
.sc-import.on { display: block; animation: scIn 0.45s cubic-bezier(0.16, 1, 0.3, 1); }

.sc-import .irow { display: flex; align-items: center; gap: 9px; }
.sc-import .fico {
  width: 30px; height: 30px;
  border-radius: 7px;
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  font-size: 13px;
  font-weight: 700;
  display: grid; place-items: center;
}
.sc-import .fmeta .fname { font-size: 12.5px; font-weight: 600; color: #1f2937; }
.sc-import .fmeta .finfo { font-family: var(--font-mono); font-size: 10.5px; color: #94a3b8; }

.sc-import .ienv {
  display: flex; align-items: center; gap: 6px;
  margin: 9px 0 0 39px;
  font-size: 11px; color: #64748b;
}
.sc-import .ienv .radio {
  display: flex; align-items: center; gap: 4px;
  padding: 2.5px 10px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  color: #94a3b8;
  transition: all 0.3s ease;
}
.sc-import .ienv .radio i {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  transition: all 0.3s ease;
}
.sc-import .ienv .radio.active {
  border-color: rgba(59, 130, 246, 0.5);
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.06);
}
.sc-import .ienv .radio.active i { border-color: #3b82f6; background: #3b82f6; box-shadow: inset 0 0 0 1.5px #fff; }

.sc-import .ibar-wrap {
  margin: 10px 0 0 39px;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.sc-import .ibar-wrap.on { opacity: 1; }
.sc-import .ibar {
  height: 6px;
  border-radius: 3px;
  background: #eef2f7;
  overflow: hidden;
}
.sc-import .ibar i {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 3px;
  background: #3b82f6;
  transition: width 0.45s ease;
}
.sc-import .ipct { font-family: var(--font-mono); font-size: 10px; color: #64748b; margin-top: 3px; }

.sc-import .idone {
  margin: 9px 0 0 39px;
  font-size: 11.5px;
  font-weight: 600;
  color: #059669;
  display: none;
  align-items: center;
  gap: 6px;
}
.sc-import.ok .idone { display: flex; }
.sc-import.ok .ibar-wrap { display: none; }
.sc-import .idone .ick {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #10b981;
  color: #fff;
  font-size: 9px;
  display: grid; place-items: center;
}

/* 输入条（真实：悬浮玻璃卡） */
.sc-inputbar {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 16px;
  background: #fff;
  border: 1px solid #dbe4ef;
  border-radius: 14px;
  box-shadow: 0 12px 32px -14px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(59, 130, 246, 0.06);
  padding: 11px 8px 11px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}
.sc-inputbar.focus {
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 12px 32px -14px rgba(59, 130, 246, 0.3), 0 0 0 3px rgba(59, 130, 246, 0.08);
}
.sc-inputbar .txt {
  flex: 1;
  font-size: 13.5px;
  color: #1f2937;
  min-height: 21px;
  white-space: nowrap;
  overflow: hidden;
}
.sc-inputbar .caret {
  display: inline-block;
  width: 2px; height: 15px;
  background: #3b82f6;
  vertical-align: -2.5px;
  animation: scCaret 1s steps(1) infinite;
}
@keyframes scCaret { 50% { opacity: 0; } }
.sc-inputbar .placeholder { color: #94a3b8; }

.sc-send {
  flex: 0 0 32px;
  height: 32px;
  border-radius: 9px;
  display: grid; place-items: center;
  background: #3b82f6;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  opacity: 0.4;
  transition: all 0.35s ease;
}
.sc-send.ready { opacity: 1; box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4); }
.sc-send.sent { transform: scale(0.9); opacity: 0.55; }

/* ===== 右：预览栏（白底 + 工具条） ===== */
.sc-prev {
  flex: 1;
  position: relative;
  background: #fff;
  border-left: 1px solid #e8ecf3;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sc-ptoolbar {
  flex: 0 0 40px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  background: #f8fafc;
  border-bottom: 1px solid #e8ecf3;
  font-size: 12.5px;
}
.sc-ptoolbar .ptitle { font-weight: 600; color: #334155; }
.sc-ptoolbar .psel {
  font-size: 11px;
  color: #475569;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 3px 10px;
}
.sc-ptoolbar .psp { flex: 1; }
.sc-ptoolbar .ptabs {
  display: flex;
  background: #eef2f7;
  border-radius: 7px;
  padding: 2px;
  gap: 2px;
}
.sc-ptoolbar .ptabs span {
  font-size: 10.5px;
  padding: 2.5px 10px;
  border-radius: 5px;
  color: #64748b;
}
.sc-ptoolbar .ptabs span.active { background: #fff; color: #3b82f6; font-weight: 600; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1); }

/* 预览内容区 */
.sc-pview { flex: 1; position: relative; overflow: hidden; }

.sc-empty {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: #94a3b8;
  font-size: 12.5px;
  letter-spacing: 0.2em;
  transition: opacity 0.6s ease;
}
.sc-empty .ring {
  width: 46px; height: 46px;
  margin: 0 auto 12px;
  border-radius: 50%;
  border: 1.5px dashed #cbd5e1;
  position: relative;
}
.sc-empty .ring::after {
  content: "";
  position: absolute; inset: 5px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  border-top-color: #3b82f6;
  animation: scSpin 1.4s linear infinite;
}
.sc-empty.off { opacity: 0; }

.sc-skeleton {
  position: absolute; inset: 14px;
  border-radius: 10px;
  border: 1px solid #eef2f7;
  background: #fff;
  opacity: 0;
  transition: opacity 0.5s ease;
  overflow: hidden;
}
.sc-skeleton.on { opacity: 1; }
.sc-skeleton.off { opacity: 0; }
.sc-skeleton .sk {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 45%, #f1f5f9 65%);
  background-size: 240% 100%;
  animation: skshim 1.4s linear infinite;
  margin: 15px 18px;
}
@keyframes skshim { from { background-position: 130% 0; } to { background-position: -110% 0; } }

/* 生成的列表页（浅色） */
.sc-list {
  position: absolute; inset: 14px;
  border-radius: 10px;
  border: 1px solid #eef2f7;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(12px) scale(0.99);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
.sc-list.on { opacity: 1; transform: none; }

.sc-list-head { display: flex; align-items: center; gap: 10px; padding: 13px 16px 9px; }
.sc-list-head .ltitle { font-size: 15px; font-weight: 700; color: #1f2937; }
.sc-count {
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 1.5px 9px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.08);
  color: #3b82f6;
  font-weight: 600;
  transition: all 0.3s ease;
}
.sc-count.bump { animation: scPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes scPop { from { transform: scale(0.5); } to { transform: scale(1); } }

.sc-toolbar { display: flex; align-items: center; gap: 7px; padding: 2px 16px 10px; }
.sc-toolbar .search {
  flex: 0 1 200px;
  font-size: 11.5px;
  color: #94a3b8;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  padding: 4.5px 11px;
  background: #fff;
}
.sc-toolbar .chip {
  font-size: 11.5px;
  color: #475569;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  padding: 4.5px 12px;
  background: #fff;
}
.sc-toolbar .chip.newbtn {
  color: #fff;
  font-weight: 600;
  background: #3b82f6;
  border-color: #3b82f6;
}
.sc-toolbar .chip.export {
  color: #059669;
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.06);
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.sc-toolbar .chip.export.on { opacity: 1; transform: none; }

.sc-table { flex: 1; padding: 0 10px 10px; overflow: hidden; }
.sc-tr {
  display: grid;
  grid-template-columns: 1.3fr 1.1fr 0.9fr 1fr 1.1fr;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  font-size: 12px;
  border-radius: 8px;
}
.sc-tr.head {
  color: #94a3b8;
  font-size: 11px;
  letter-spacing: 0.06em;
  border-bottom: 1px solid #eef2f7;
  border-radius: 0;
}
.sc-tr.row {
  color: #475569;
  border-bottom: 1px solid #f8fafc;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
}
.sc-tr.row.on { opacity: 1; transform: none; }
.sc-tr.row.fresh { animation: scFreshRow 1.2s ease; }
@keyframes scFreshRow { 0% { background: rgba(59, 130, 246, 0.1); } 100% { background: transparent; } }
.sc-tr .cname { color: #1f2937; font-weight: 600; }
.sc-tr .stage { justify-self: start; font-size: 10.5px; padding: 1.5px 9px; border-radius: 999px; }
.sc-tr .stage.s0 { background: rgba(139, 92, 246, 0.1); color: #7c3aed; }
.sc-tr .stage.s1 { background: rgba(59, 130, 246, 0.1); color: #2563eb; }
.sc-tr .stage.s2 { background: rgba(245, 158, 11, 0.12); color: #b45309; }
.sc-tr .stage.s3 { background: rgba(16, 185, 129, 0.1); color: #059669; }
.sc-tr .amount { font-family: var(--font-mono); font-size: 11.5px; }

/* 新建客户弹窗（浅色） */
.sc-form {
  position: absolute;
  right: 34px;
  top: 66px;
  width: 270px;
  background: #fff;
  border: 1px solid #e8ecf3;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.16);
  padding: 14px 16px 13px;
  z-index: 6;
  opacity: 0;
  transform: translateY(20px) scale(0.97);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.sc-form.on { opacity: 1; transform: none; }
.sc-form.bye { opacity: 0; transform: translateY(-12px) scale(0.97); }
.sc-form .ftitle { font-size: 13px; font-weight: 700; color: #1f2937; margin-bottom: 10px; }
.sc-form .frow { margin-bottom: 8px; }
.sc-form .flabel { font-size: 10.5px; color: #94a3b8; margin-bottom: 3px; }
.sc-form .finput {
  height: 26px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: 11.5px;
  color: #334155;
  padding: 4px 10px;
  display: flex; align-items: center;
  transition: all 0.3s ease;
}
.sc-form .finput.area { height: 38px; align-items: flex-start; padding-top: 5px; }
.sc-form .finput.filled { color: #1f2937; border-color: rgba(59, 130, 246, 0.4); }
.sc-form .fbtns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.sc-form .fbtn {
  font-size: 11px;
  padding: 4.5px 14px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  color: #475569;
  background: #fff;
}
.sc-form .fbtn.primary {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #fff;
  font-weight: 600;
  transition: all 0.2s ease;
}
.sc-form .fbtn.primary.save { transform: scale(0.94); filter: brightness(1.12); }

/* 发布前检查卡（浅色，绿勾） */
.sc-qa {
  position: absolute;
  left: 34px;
  bottom: 34px;
  width: 250px;
  background: #fff;
  border: 1px solid #e8ecf3;
  border-radius: 12px;
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.14);
  padding: 12px 15px 10px;
  z-index: 7;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.sc-qa.on { opacity: 1; transform: none; }
.sc-qa .qtitle {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: #94a3b8;
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.sc-qa .qtitle::after {
  content: "";
  flex: 1; height: 1px;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.4), transparent);
}
.sc-qa .qitem {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.2px;
  color: #94a3b8;
  padding: 4px 0;
  transition: color 0.4s ease;
}
.sc-qa .qitem .qi {
  width: 13px; height: 13px;
  border-radius: 50%;
  border: 1.5px solid #cbd5e1;
  flex: 0 0 13px;
  position: relative;
  transition: all 0.3s ease;
}
.sc-qa .qitem.run .qi {
  border-color: rgba(13, 148, 136, 0.3);
  border-top-color: #0d9488;
  animation: scSpin 0.7s linear infinite;
}
.sc-qa .qitem.ok { color: #1f2937; }
.sc-qa .qitem.ok .qi { background: #10b981; border-color: #10b981; }
.sc-qa .qitem.ok .qi::after {
  content: "✓";
  position: absolute; inset: 0;
  font-size: 8px; color: #fff; font-weight: 800;
  display: grid; place-items: center;
}
.sc-qa .qitem .qtail {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #10b981;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.sc-qa .qitem.ok .qtail { opacity: 1; }
.sc-qa .qverdict {
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px dashed #eef2f7;
  font-size: 11.5px;
  color: #059669;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.sc-qa .qverdict.on { opacity: 1; }

/* 发布步骤卡（对应真实 PublishProgressDialog 四步） */
.sc-steps {
  position: absolute;
  right: 34px;
  top: 56px;
  width: 190px;
  background: #fff;
  border: 1px solid #e8ecf3;
  border-radius: 12px;
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.14);
  padding: 11px 14px;
  z-index: 8;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.sc-steps.on { opacity: 1; transform: none; }
.sc-steps.off { opacity: 0; transform: translateY(-8px); }
.sc-steps .pstep {
  display: flex; align-items: center; gap: 8px;
  font-size: 11.5px;
  color: #94a3b8;
  padding: 3.5px 0;
}
.sc-steps .pstep .pi {
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 1.5px solid #cbd5e1;
  flex: 0 0 12px;
  transition: all 0.3s ease;
  position: relative;
}
.sc-steps .pstep.run { color: #334155; }
.sc-steps .pstep.run .pi {
  border-color: rgba(59, 130, 246, 0.3);
  border-top-color: #3b82f6;
  animation: scSpin 0.7s linear infinite;
}
.sc-steps .pstep.ok { color: #475569; }
.sc-steps .pstep.ok .pi { background: #10b981; border-color: #10b981; }
.sc-steps .pstep.ok .pi::after {
  content: "✓";
  position: absolute; inset: 0;
  font-size: 8px; color: #fff; font-weight: 800;
  display: grid; place-items: center;
}

/* 已上线徽章（绿） */
.sc-live {
  position: absolute;
  top: 48px;
  left: 50%;
  transform: translateX(-50%) translateY(-14px) scale(0.85);
  z-index: 9;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 20px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(16, 185, 129, 0.5);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.08), 0 10px 30px rgba(16, 185, 129, 0.22);
  font-size: 13px;
  font-weight: 700;
  color: #059669;
  letter-spacing: 0.08em;
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.sc-live.on { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
.sc-live .pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #10b981;
  animation: scPulse 1.6s ease-in-out infinite;
}
@keyframes scPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  60% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}

/* 手机（真实：375×667 黑框圆角32 比例缩小） */
.sc-phone {
  position: absolute;
  right: 28px;
  bottom: 20px;
  width: 196px;
  height: 404px;
  border-radius: 30px;
  background: #000;
  box-shadow: 0 0 0 2px #1a1a1a, 0 24px 60px rgba(15, 23, 42, 0.4);
  z-index: 9;
  opacity: 0;
  transform: translateY(64px) rotate(4deg);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
.sc-phone.on { opacity: 1; transform: none; }
.sc-phone .pscreen {
  position: absolute;
  inset: 8px;
  border-radius: 23px;
  background: #f6f8fb;
  overflow: hidden;
  /* 首页/builder 落地页 hero 是大行高+居中排版，会继承进手机 mockup 撑错版 —— 在此钉死 */
  line-height: 1.35;
  text-align: left;
}
.sc-phone .notch {
  width: 68px; height: 15px;
  border-radius: 0 0 11px 11px;
  background: #000;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.sc-phone .pbody { padding: 8px 10px 10px; }
.sc-phone .phead {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 4px 2px 8px;
}
.sc-phone .phead .pt { font-size: 13px; font-weight: 700; color: #1f2937; }
.sc-phone .phead .ps {
  font-size: 9px; font-weight: 700;
  color: #059669;
  background: rgba(16, 185, 129, 0.1);
  padding: 1px 7px;
  border-radius: 999px;
}
.sc-phone .prow {
  display: flex; align-items: center; gap: 7px;
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 9px;
  padding: 7px 9px;
  margin-bottom: 6px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.sc-phone .prow.on { opacity: 1; transform: none; }
.sc-phone .prow .avatar {
  width: 20px; height: 20px;
  border-radius: 50%;
  flex: 0 0 20px;
  display: grid; place-items: center;
  font-size: 9.5px; font-weight: 700; color: #fff;
}
.sc-phone .prow:nth-child(odd) .avatar { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.sc-phone .prow:nth-child(even) .avatar { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.sc-phone .prow .pcol { flex: 1; min-width: 0; }
.sc-phone .prow .pn { font-size: 11px; font-weight: 600; color: #1f2937; }
/* 行内元文本类名不能用 .pm —— landing.css 的平台全景卡片有同名全局类，会把气泡样式漏进来 */
.sc-phone .prow .pmeta { font-size: 9px; color: #94a3b8; font-family: var(--font-mono); }
.sc-phone .prow .pst {
  font-size: 8.5px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.08);
  color: #2563eb;
  flex: 0 0 auto;
}
.sc-phone .pvoice {
  margin: 5px 2px 0;
  display: flex; align-items: center; gap: 6px;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.35);
  background: rgba(59, 130, 246, 0.07);
  padding: 6px 11px;
  font-size: 10.5px;
  color: #2563eb;
  font-weight: 600;
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.sc-phone .pvoice.on { opacity: 1; transform: none; }
.sc-phone .pvoice .mic { animation: scPulse 1.4s ease-in-out infinite; border-radius: 50%; }

/* ===== Act4：组件市场整页 ===== */
.sc-market {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: #f6f8fb;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.sc-market.on { opacity: 1; transform: none; }

.sc-market .mhd {
  flex: 0 0 52px;
  display: flex; align-items: center; gap: 12px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid #e8ecf3;
}
.sc-market .mhd .mico {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: #3b82f6;
  color: #fff;
  display: grid; place-items: center;
  font-size: 13px;
}
.sc-market .mhd .mtitle { font-size: 15.5px; font-weight: 700; color: #1f2937; }
.sc-market .mhd .msub { font-size: 11px; color: #94a3b8; }
.sc-market .mhd .msp { flex: 1; }
.sc-market .mhd .msearch {
  width: 200px;
  font-size: 11px;
  color: #94a3b8;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  padding: 5px 11px;
}
.sc-market .mhd .mpub {
  font-size: 11.5px;
  font-weight: 600;
  color: #fff;
  background: #3b82f6;
  border-radius: 7px;
  padding: 6px 15px;
}

.sc-market .mbody { flex: 1; display: flex; min-height: 0; }

.sc-market .mside {
  flex: 0 0 148px;
  padding: 14px 10px;
  border-right: 1px solid #eef2f7;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.sc-market .mcat {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11.5px;
  color: #475569;
  padding: 6px 10px;
  border-radius: 7px;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.sc-market .mcat.on { opacity: 1; transform: none; }
.sc-market .mcat .mc-count {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: #94a3b8;
  background: #f1f5f9;
  border-radius: 999px;
  padding: 0.5px 7px;
}
.sc-market .mcat.active {
  background: rgba(59, 130, 246, 0.08);
  color: #3b82f6;
  font-weight: 600;
}
.sc-market .mcat.active .mc-count { background: rgba(59, 130, 246, 0.12); color: #3b82f6; }

.sc-market .mgrid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 13px;
  padding: 16px 18px;
  min-height: 0;
}
.sc-mcard {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 11px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s ease, box-shadow 0.3s ease;
}
.sc-mcard.on { opacity: 1; transform: none; }
.sc-mcard.lift {
  transform: translateY(-5px);
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.16);
}
.sc-mcard .mprev {
  flex: 0 0 46%;
  display: grid; place-items: center;
  font-size: 24px;
  position: relative;
}
.sc-mcard .mprev::after {
  content: "";
  position: absolute;
  top: 8px; right: 8px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 2.5px #fff;
}
.sc-mcard:nth-child(1) .mprev { background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(139, 92, 246, 0.12)); color: #3b82f6; }
.sc-mcard:nth-child(2) .mprev { background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(52, 211, 153, 0.12)); color: #059669; }
.sc-mcard:nth-child(3) .mprev { background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(251, 191, 36, 0.14)); color: #b45309; }
.sc-mcard:nth-child(4) .mprev { background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(244, 114, 182, 0.12)); color: #dc2626; }
.sc-mcard:nth-child(5) .mprev { background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(56, 189, 248, 0.12)); color: #0284c7; }
.sc-mcard:nth-child(6) .mprev { background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(232, 121, 249, 0.12)); color: #7c3aed; }
.sc-mcard .mbody2 { padding: 8px 11px 9px; display: flex; flex-direction: column; gap: 4px; min-height: 0; }
.sc-mcard .mname-row { display: flex; align-items: center; gap: 6px; }
.sc-mcard .mname { font-size: 12px; font-weight: 600; color: #1f2937; }
.sc-mcard .mver {
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: #64748b;
  background: #f1f5f9;
  border-radius: 4px;
  padding: 0.5px 5px;
}
.sc-mcard .mtags { display: flex; gap: 4px; }
.sc-mcard .mtags span {
  font-size: 8.5px;
  color: #94a3b8;
  background: #f8fafc;
  border: 1px solid #eef2f7;
  border-radius: 4px;
  padding: 0.5px 6px;
}
.sc-mcard .mstats {
  margin-top: auto;
  display: flex; gap: 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: #94a3b8;
  border-top: 1px solid #f8fafc;
  padding-top: 5px;
}
.sc-mcard .mstats b { color: #475569; font-weight: 600; }

/* ===== Act5：管理平台全景（整窗，浅色控制台） ===== */

.sc-admin {
  position: absolute;
  inset: 0;
  z-index: 22;
  background: #f6f8fb;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.sc-admin.on { opacity: 1; transform: none; }

.sc-admin .ahd {
  flex: 0 0 52px;
  display: flex; align-items: center; gap: 10px;
  padding: 0 18px;
  background: #fff;
  border-bottom: 1px solid #e8ecf3;
}
.sc-admin .alogo {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: #3b82f6;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: grid; place-items: center;
}
.sc-admin .atitle { font-size: 15px; font-weight: 700; color: #1f2937; }
.sc-admin .asp { flex: 1; }
.sc-admin .asearch {
  width: 190px;
  font-size: 11px;
  color: #94a3b8;
  background: #f6f8fb;
  border: 1px solid #e8ecf3;
  border-radius: 7px;
  padding: 5px 12px;
}
.sc-admin .auser {
  display: flex; align-items: center; gap: 7px;
  font-size: 11.5px; color: #475569;
}
.sc-admin .auser 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;
}

.sc-admin .abody { flex: 1; display: flex; min-height: 0; }

.sc-admin .aside {
  flex: 0 0 148px;
  background: #fff;
  border-right: 1px solid #eef2f7;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.sc-admin .aitem {
  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;
}
.sc-admin .aitem.on { opacity: 1; transform: none; }
.sc-admin .aitem .ag { font-size: 11px; color: #94a3b8; width: 13px; text-align: center; }
.sc-admin .aitem.active { background: rgba(59, 130, 246, 0.08); color: #3b82f6; font-weight: 600; }
.sc-admin .aitem.active .ag { color: #3b82f6; }

.sc-admin .amain { flex: 1; padding: 15px 17px; position: relative; min-width: 0; }

/* 工作台视图 */
.sc-admin .aview1 { transition: opacity 0.45s ease; }
.sc-admin .aview1.off { opacity: 0; }

.sc-admin .kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; }
.sc-admin .kpi {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 10px;
  padding: 10px 13px 9px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.sc-admin .kpi.on { opacity: 1; transform: none; }
.sc-admin .kpi .kl { font-size: 10px; color: #94a3b8; letter-spacing: 0.06em; }
.sc-admin .kpi .kv { font-family: var(--font-mono); font-size: 19px; font-weight: 700; color: #1f2937; margin-top: 2px; }
.sc-admin .kpi .kd { font-size: 9px; color: #059669; margin-top: 1px; }

.sc-admin .apanel {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 10px;
  padding: 12px 15px 10px;
  margin-top: 12px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.sc-admin .apanel.on { opacity: 1; transform: none; }
.sc-admin .apanel .pt { font-size: 12px; font-weight: 600; color: #334155; margin-bottom: 8px; }
.sc-admin .apanel svg { display: block; width: 100%; height: 96px; }
.sc-admin .apanel polyline.draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.sc-admin .apanel polyline.draw.go { stroke-dashoffset: 0; }
.sc-admin .arows { margin-top: 4px; }
.sc-admin .arow {
  display: flex; align-items: center; gap: 9px;
  padding: 6.5px 2px;
  border-bottom: 1px solid #f8fafc;
  font-size: 11.3px;
  color: #475569;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.sc-admin .arow.on { opacity: 1; transform: none; }
.sc-admin .arow .rtime { font-family: var(--font-mono); font-size: 9.5px; color: #94a3b8; }
.sc-admin .arow .rlv { font-size: 8.5px; padding: 1px 8px; border-radius: 999px; }
.sc-admin .arow .rlv.ok { background: rgba(16, 185, 129, 0.1); color: #059669; }
.sc-admin .arow .rlv.info { background: rgba(59, 130, 246, 0.08); color: #2563eb; }
.sc-admin .arow .rlv.warn { background: rgba(245, 158, 11, 0.12); color: #b45309; }

/* 权限视图 */
.sc-admin .aview2 {
  position: absolute;
  inset: 15px 17px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.sc-admin .aview2.on { opacity: 1; transform: none; }
.sc-admin .aview2 .pt2 { font-size: 13px; font-weight: 700; color: #1f2937; margin-bottom: 3px; }
.sc-admin .aview2 .pd { font-size: 10.5px; color: #94a3b8; margin-bottom: 10px; }
.sc-admin .arole {
  display: flex; align-items: center; gap: 10px;
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 9px;
  padding: 8px 12px;
  margin-bottom: 7px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.sc-admin .arole.on { opacity: 1; transform: none; }
.sc-admin .arole .ravatar {
  width: 24px; height: 24px;
  border-radius: 7px;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: grid; place-items: center;
  flex: 0 0 24px;
}
.sc-admin .arole:nth-child(odd) .ravatar { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.sc-admin .arole:nth-child(even) .ravatar { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.sc-admin .arole .rmeta { flex: 1; min-width: 0; }
.sc-admin .arole .rname { font-size: 12px; font-weight: 600; color: #1f2937; }
.sc-admin .arole .rdesc { font-size: 9.5px; color: #94a3b8; }
.sc-admin .arole .rusers { font-family: var(--font-mono); font-size: 9.5px; color: #64748b; }
.sc-admin .tgl {
  width: 27px; height: 15px;
  border-radius: 999px;
  background: #cbd5e1;
  position: relative;
  flex: 0 0 27px;
  transition: background 0.3s ease;
}
.sc-admin .tgl i {
  position: absolute;
  top: 1.5px; left: 1.5px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25);
  transition: left 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.sc-admin .tgl.on { background: #3b82f6; }
.sc-admin .tgl.on i { left: 13.5px; }
.sc-admin .tgl.flip { background: #3b82f6; }
.sc-admin .tgl.flip i { left: 13.5px; }

/* 菜单路由视图（第五幕第三相：AI 模块自动挂载） */
.sc-admin .aview3 {
  position: absolute;
  inset: 15px 17px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.sc-admin .aview3.on { opacity: 1; transform: none; }
.sc-admin .amrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: #334155;
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  padding: 7px 11px;
  margin-bottom: 6px;
  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;
}
.sc-admin .amrow.on { opacity: 1; transform: none; }
.sc-admin .amrow.l1 { font-weight: 600; color: #1f2937; background: #f8fafc; }
.sc-admin .amrow.l2 { margin-left: 24px; }
.sc-admin .amrow .mg { font-size: 10px; color: #94a3b8; width: 12px; text-align: center; }
.sc-admin .amrow .mrt { margin-left: auto; font-family: var(--font-mono); font-size: 9px; color: #cbd5e1; }
.sc-admin .amrow.new {
  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);
}
.sc-admin .amrow.new .mn { color: #3b82f6; font-weight: 700; }
.sc-admin .amrow .aib {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(100deg, #3d8bff, #8b5cf6);
  border-radius: 999px;
  padding: 2px 9px;
}
.sc-admin .amrow .lv {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9.5px;
  color: #059669;
  margin-left: 10px;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.sc-admin .amrow .lv i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}
.sc-admin .amrow .lv.on { opacity: 1; }

/* ---------- 字幕 / 水印 / 结尾卡（保持品牌深色系） ---------- */

.sc-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;
}
.sc-caption.on { opacity: 1; transform: none; }

.sc-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;
}
.sc-caption-veil.on { opacity: 1; }

.sc-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;
}
.sc-endcard.on { opacity: 1; }
.sc-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);
}
.sc-endcard.on .logo-wrap { transform: scale(1); opacity: 1; }
.sc-endcard .logo-wrap img { width: 108px; height: 108px; }
.sc-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;
}
.sc-endcard.on .ename { opacity: 1; transform: none; }
.sc-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;
}
.sc-endcard.on .eslogan { opacity: 1; transform: none; }
.sc-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;
}
.sc-endcard.on .ecta { opacity: 1; }

.sc-watermark {
  position: absolute;
  top: 11px;
  left: 285px;
  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;
}
.sc-watermark.on { opacity: 1; }
.sc-watermark img { width: 22px; height: 22px; }
.sc-watermark .wm-name {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.08em;
  color: rgba(238, 243, 251, 0.95);
}
