/* ============================================================
   SmartFrame 静态 Demo 共享样式 —— 炫酷版
   深空背景 × 玻璃拟态 × 流光特效（类名与旧版全兼容，仅增强）
   ============================================================ */
:root {
  --bg: #000;
  --bg-card: rgba(255, 255, 255, 0.05);
  --bg-card-hover: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #e8ecf7;
  --text-dim: #8b93ad;
  --text-faint: #5c6480;
  --indigo: #ff7f0f;
  --violet: #ff9132;
  --grad: linear-gradient(135deg, #ff7f0f, #ff9132);
  --green: #34d399;
  --amber: #fbbf24;
  --red: #f87171;
  --blue: #60a5fa;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --glow-indigo: 0 0 22px rgba(255, 140, 41, 0.35);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scrollbar-color: #ccc #eee; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #eee; }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 6px; border: 2px solid #eee; }
::selection { background: rgba(255, 140, 41, 0.45); color: #fff; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}
/* ===== 深空动态背景（固定层：星云光晕） ===== */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: #000;
  animation: nebulaDrift 26s ease-in-out infinite alternate;
}
@keyframes nebulaDrift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-1.5%, 1%, 0) scale(1.03); }
  100% { transform: translate3d(1.5%, -1%, 0) scale(1.05); }
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ===== 顶栏（玻璃拟态 + 渐变底光） ===== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 16, 32, 0.72);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 150, 60, 0.14);
}
.topbar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 140, 41, 0.6), rgba(255, 145, 50, 0.6), transparent);
}
.topbar-inner {
  max-width: none; margin: 0 auto; padding: 0 clamp(16px, 3vw, 48px);
  height: 60px; display: flex; align-items: center; gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: 0.5px; }
.logo-badge {
  width: 30px; height: 30px; border-radius: 9px; background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; box-shadow: 0 0 18px rgba(255, 140, 41, 0.65);
  animation: badgePulse 3s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 14px rgba(255, 140, 41, 0.5); }
  50% { box-shadow: 0 0 26px rgba(255, 145, 50, 0.8); }
}
.nav { display: flex; gap: 6px; flex: 1; }
.nav a {
  position: relative; display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 15px; border-radius: 9px; font-size: 14px; color: var(--text-dim);
  transition: all 0.22s; overflow: hidden; user-select: none; white-space: nowrap;
}
.nav a .n-ico {
  font-size: 15px; line-height: 1; filter: drop-shadow(0 0 6px rgba(255, 150, 60, 0.4));
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nav a:hover .n-ico { transform: scale(1.2) rotate(-8deg); }
.nav a::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 0; height: 2px; border-radius: 2px;
  background: var(--grad); transform: translateX(-50%); transition: width 0.25s;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav a:hover::after { width: 46%; }
/* 点击波纹特效 */
.nav a::before {
  content: ""; position: absolute; inset: 0; border-radius: 9px; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(255, 145, 50, 0.42), transparent 62%);
  opacity: 0; transform: scale(0.3); transition: opacity 0.3s, transform 0.3s;
}
.nav a:active { transform: scale(0.93); }
.nav a:active::before { opacity: 1; transform: scale(1.45); transition: none; }
.nav a.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 127, 15, 0.28), rgba(255, 145, 50, 0.22));
  box-shadow: inset 0 0 0 1px rgba(255, 150, 60, 0.35), 0 0 16px rgba(255, 140, 41, 0.22);
}
.nav a.active::after { width: 46%; }
.nav a.active .n-ico { filter: drop-shadow(0 0 8px rgba(255, 145, 50, 0.8)); }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.tenant-chip {
  font-size: 12px; padding: 4px 11px; border-radius: 999px;
  border: 1px solid rgba(255, 140, 41, 0.45); color: #ffb066;
  background: rgba(255, 140, 41, 0.14);
  box-shadow: 0 0 12px rgba(255, 140, 41, 0.15) inset;
}
.avatar {
  width: 32px; height: 32px; border-radius: 50%; background: var(--grad);
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600;
  box-shadow: 0 0 14px rgba(255, 140, 41, 0.5);
}
.link-btn { font-size: 13px; color: var(--text-dim); transition: color 0.2s; }
.link-btn:hover { color: var(--text); text-shadow: 0 0 12px rgba(255, 150, 60, 0.6); }

/* ===== 左侧导航改造（与首页一致：纯黑底 + 绿色品牌 + 纵向浅灰条目；
   仅覆盖样式，HTML 结构与 JS 逻辑原样复用） ===== */
.topbar {
  position: fixed; left: 0; top: 0; bottom: 0; width: 260px;
  display: flex; flex-direction: column;
  background: #000;
  border-bottom: none;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
/* 去掉原顶部渐变光带 */
.topbar::after { display: none; }
.topbar-inner {
  height: 100%; flex-direction: column; align-items: stretch;
  gap: 8px; padding: 26px 14px 20px; overflow-y: auto;
}
/* 品牌区：主题色品牌徽章 + 白色站名 */
.logo { padding: 0 10px 20px; color: #fff; font-size: 18px; }
.logo .logo-badge {
  background: var(--grad);
  box-shadow: 0 0 18px rgba(255, 140, 41, 0.45);
  animation: none;
}
/* 导航纵向排列，占满剩余高度 */
.nav { flex: 1; flex-direction: column; gap: 4px; }
.nav a {
  width: 100%; padding: 13px 16px; border-radius: 10px;
  color: #bebebe; font-size: 16px;
}
.nav a .n-ico { font-size: 18px; filter: none; }
/* 侧栏导航图标：iconfont SVG（单色 currentColor，随主题橙） */
.nav a .n-ico { display: inline-flex; align-items: center; justify-content: center; color: rgba(255, 176, 102, 0.72); }
.nav a .n-ico svg { width: 17px; height: 17px; fill: currentColor; display: block; }
.nav a:hover .n-ico { color: #ffd9b0; }
.nav a.active .n-ico { color: #ff9132; }
.nav a:hover .n-ico { transform: none; }
.nav a::before { display: none; } /* 去掉紫色点击波纹 */
.nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
/* 激活项：主题色左侧竖条 + 白色文字 + 淡紫底 */
.nav a.active {
  color: #fff; background: rgba(255, 140, 41, 0.12);
  box-shadow: none;
}
.nav a.active::after, .nav a:hover::after {
  left: 0; right: auto; top: 22%; bottom: 22%;
  width: 3px; height: auto; transform: none; border-radius: 3px;
  background: linear-gradient(180deg, #ff7f0f, #ff9132);
}
/* 侧栏底部个人信息：左头像 + 中姓名/租户两行 + 右退出（对齐案例布局；背景色保持不变） */
.topbar-right {
  flex-direction: row; align-items: center; gap: 10px;
  margin-top: 12px; padding: 12px 8px 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.topbar-user {
  flex: 1; min-width: 0; display: flex; flex-direction: column;
  align-items: flex-start; gap: 3px;
}
.topbar-user .topbar-uname {
  max-width: 100%; font-size: 13.5px; font-weight: 600; line-height: 1.35; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.topbar-right .tenant-chip {
  max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; align-self: flex-start;
  background: rgba(0, 230, 118, 0.12); border-color: rgba(0, 230, 118, 0.45); color: #7dffc4;
}
.topbar-right .badge { flex-shrink: 0; }
.topbar-right .link-btn { text-align: left; color: #bebebe; font-size: 13px; white-space: nowrap; flex-shrink: 0; }
.topbar-right .link-btn:hover { color: #fff; text-shadow: none; }
.topbar-right .avatar { flex-shrink: 0; margin: 0; }
/* 未登录状态：居中登录按钮 */
.topbar-right .login-btn {
  flex: 1 1 auto; min-width: 0;
  display: flex; align-items: center; justify-content: center;
  width: auto; padding: 11px 14px; border-radius: 4px;
  font-size: 14px; font-weight: 600; letter-spacing: 1px;
  color: #fff; background: linear-gradient(135deg, #ff7f0f, #ff9132);
  box-shadow: 0 4px 14px rgba(255, 140, 41, 0.35);
  transition: all 0.2s;
}
.topbar-right .login-btn:hover { color: #fff; filter: brightness(1.08); box-shadow: 0 6px 18px rgba(255, 140, 41, 0.45); }
/* 内容区让出左侧导航宽度 */
.container.page { margin-left: 260px; }
@media (max-width: 900px) {
  .topbar { width: 200px; }
  .container.page { margin-left: 200px; }
  .topbar-inner { padding: 20px 10px 14px; }
  .nav a { padding: 11px 12px; }
}

/* ===== 容器与通用 ===== */
.container { max-width: none; margin: 0 auto; padding: 28px clamp(16px, 3vw, 48px) 60px; }
/* ===== 底部备案信息：与右侧内容区同宽居中（让出左侧导航栏 260px） ===== */
.site-footer {
  margin-left: 260px; /* 与 .container.page 对齐 */
  padding: 18px 16px 24px;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}
@media (max-width: 900px) {
  .site-footer { margin-left: 200px; }
}
/* 无左侧导航栏的页面（登录页）全宽居中 */
.site-footer.no-rail { margin-left: 0; }
/* 侧栏备案信息：位于左侧导航用户信息上方（与官网 www.smartframe.com.cn 一致） */
.side-beian {
  padding: 8px 8px 2px;
  text-align: center;
  font-size: 10.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.35);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.side-beian a { color: inherit; text-decoration: none; }
.side-beian a:hover { color: rgba(255, 255, 255, 0.6); }
@media (max-width: 900px) {
  .side-beian { font-size: 10px; }
}

/* ===== 全局提示弹窗（替代 alert，复用主题变量/按钮类） ===== */
.sf-mask {
  position: fixed; inset: 0; z-index: 99990;
  display: none; align-items: center; justify-content: center;
  background: rgba(5, 8, 18, 0.72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.sf-mask.open { display: flex; }
.sf-modal {
  width: min(480px, calc(100vw - 40px));
  background: linear-gradient(165deg, rgba(24, 30, 58, 0.97), rgba(15, 20, 40, 0.96));
  border: 1px solid rgba(255, 140, 41, 0.3);
  border-radius: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  padding: 22px 24px 18px;
  animation: pageIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.sf-modal-title { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.sf-modal-msg {
  font-size: 14px; line-height: 1.7; color: var(--text-dim);
  white-space: pre-wrap; word-break: break-word; max-height: 60vh; overflow-y: auto;
}
.sf-modal-ft { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

/* ===== 图片点击放大浏览（全局复用，SF.zoomImg） ===== */
.sf-zoom {
  position: fixed; inset: 0; z-index: 100010;
  display: none; align-items: center; justify-content: center;
  background: rgba(2, 4, 10, 0.88); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  cursor: zoom-out; padding: 24px;
}
.sf-zoom.open { display: flex; }
.sf-zoom img {
  max-width: 92vw; max-height: 88vh; object-fit: contain;
  border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  cursor: zoom-out; animation: pageIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.grad-text {
  background: linear-gradient(90deg, #ff9132, #ffb066, #ffd9b0);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradFlow 5s ease-in-out infinite;
}
@keyframes gradFlow { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* ===== 卡片（玻璃拟态 + 渐变描边 + 悬浮发光） ===== */
.card {
  position: relative;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.028));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s, border-color 0.28s, background 0.28s;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 140, 41, 0.4), rgba(255, 255, 255, 0.05) 40%, rgba(255, 145, 50, 0.35));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0.5; transition: opacity 0.3s;
}
.card:hover {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.045));
  border-color: rgba(255, 150, 60, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 14px 42px rgba(5, 8, 22, 0.55), 0 0 26px rgba(255, 140, 41, 0.16);
}
.card:hover::before { opacity: 1; }
.section-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 17px; font-weight: 600; margin-bottom: 16px;
}
.section-title::before {
  content: ""; width: 4px; height: 16px; border-radius: 2px; background: var(--grad);
  box-shadow: 0 0 10px rgba(255, 140, 41, 0.7);
}

/* ===== 按钮（主按钮流光扫过） ===== */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: 10px; font-size: 14px; font-weight: 500;
  transition: all 0.22s; position: relative;
}
.btn-primary {
  background: var(--grad);
  background-size: 200% 200%;
  color: #fff;
  box-shadow: 0 4px 20px rgba(255, 140, 41, 0.45);
  animation: gradFlow 4s ease-in-out infinite;
  overflow: hidden;
}
.btn-primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 38%; left: -60%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  animation: shimmer 3s ease-in-out infinite;
}
@keyframes shimmer { 0% { left: -60%; } 55%, 100% { left: 135%; } }
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 140, 41, 0.55), 0 0 0 3px rgba(255, 160, 80, 0.22);
}
.btn-primary:active { transform: translateY(0) scale(0.98); }
.btn-ghost { border: 1px solid var(--border-strong); color: var(--text); background: rgba(255,255,255,0.02); }
.btn-ghost:hover {
  background: rgba(255, 140, 41, 0.1);
  border-color: rgba(255, 140, 41, 0.5);
  box-shadow: 0 0 14px rgba(255, 140, 41, 0.2);
}
.btn-danger { background: rgba(248, 113, 113, 0.15); color: #fca5a5; border: 1px solid rgba(248, 113, 113, 0.32); }
.btn-danger:hover { background: rgba(248, 113, 113, 0.28); box-shadow: 0 0 16px rgba(248, 113, 113, 0.25); }
.btn-sm { padding: 5px 12px; font-size: 12.5px; border-radius: 8px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ===== 徽章（彩色光晕） ===== */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; padding: 3px 9px; border-radius: 999px; font-weight: 500;
  transition: all 0.2s;
}
.badge:hover { transform: translateY(-1px); filter: brightness(1.15); }
.badge-green { background: rgba(52, 211, 153, 0.14); color: var(--green); border: 1px solid rgba(52, 211, 153, 0.32); box-shadow: 0 0 10px rgba(52, 211, 153, 0.12); }
.badge-amber { background: rgba(251, 191, 36, 0.14); color: var(--amber); border: 1px solid rgba(251, 191, 36, 0.32); box-shadow: 0 0 10px rgba(251, 191, 36, 0.12); }
.badge-red   { background: rgba(248, 113, 113, 0.14); color: var(--red); border: 1px solid rgba(248, 113, 113, 0.32); box-shadow: 0 0 10px rgba(248, 113, 113, 0.12); }
.badge-gray  { background: rgba(255, 255, 255, 0.08); color: var(--text-dim); border: 1px solid var(--border); }
.badge-indigo{ background: rgba(255, 140, 41, 0.16); color: #ffb066; border: 1px solid rgba(255, 140, 41, 0.38); box-shadow: 0 0 10px rgba(255, 140, 41, 0.14); }
.badge-violet{ background: rgba(255, 145, 50, 0.16); color: #ffd9b0; border: 1px solid rgba(255, 145, 50, 0.38); box-shadow: 0 0 10px rgba(255, 145, 50, 0.14); }
.badge-blue  { background: rgba(96, 165, 250, 0.14); color: var(--blue); border: 1px solid rgba(96, 165, 250, 0.32); box-shadow: 0 0 10px rgba(96, 165, 250, 0.12); }

/* ===== 占位封面（流光扫过 + hover 光晕） ===== */
.cover-ph {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(255, 140, 41, 0.35), rgba(255, 145, 50, 0.28));
}
.cover-ph::before {
  content: ""; position: absolute; inset: -45%;
  background: conic-gradient(from 0deg, transparent 0 72%, rgba(255, 255, 255, 0.16) 86%, transparent 100%);
  animation: spinSlow 9s linear infinite; opacity: 0.45; pointer-events: none;
  transition: opacity 0.4s;
}
.cover-ph:hover::before { opacity: 1; }
@keyframes spinSlow { to { transform: rotate(360deg); } }
.cover-ph::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 18%, rgba(255, 255, 255, 0.16), transparent 55%);
}
.cover-ph > span {
  position: relative; z-index: 1; font-size: 34px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 10px rgba(255, 255, 255, 0.18));
  transition: transform 0.3s;
}
.cover-ph:hover > span { transform: scale(1.12); }
.cover-ph.c1 { background: linear-gradient(135deg, #4338ca, #7c3aed); }
.cover-ph.c2 { background: linear-gradient(135deg, #0e7490, #7c3aed); }
.cover-ph.c3 { background: linear-gradient(135deg, #9d174d, #c2410c); }
.cover-ph.c4 { background: linear-gradient(135deg, #065f46, #0e7490); }
.cover-ph.c5 { background: linear-gradient(135deg, #92400e, #be185d); }
.cover-ph.c6 { background: linear-gradient(135deg, #1e40af, #4338ca); }
.cover-ph.c7 { background: linear-gradient(135deg, #581c87, #be185d); }
.cover-ph.c8 { background: linear-gradient(135deg, #064e3b, #1e40af); }

/* ===== 封面海报（项目列表大图：渐变海报 + 大 emoji，视觉由 pp-card 卡片容器排版） ===== */
.pp-poster { position: absolute; inset: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; transition: transform 0.45s ease; }
.pp-poster::before { content: ""; position: absolute; inset: -45%; background: conic-gradient(from 0deg, transparent 0 72%, rgba(255, 255, 255, 0.15) 86%, transparent 100%); animation: spinSlow 9s linear infinite; opacity: 0.5; pointer-events: none; }
.pp-poster::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 65% at 50% 0%, rgba(255, 255, 255, 0.18), transparent 55%); }
.pp-poster .pp-emoji { position: relative; z-index: 1; font-size: 58px; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 14px rgba(255, 255, 255, 0.16)); animation: floatY 3.8s ease-in-out infinite; }
.pp-poster.pg1 { background: linear-gradient(160deg, #1e3a8a, #4338ca 55%, #7c3aed); }
.pp-poster.pg2 { background: linear-gradient(160deg, #134e4a, #0e7490 55%, #7c3aed); }
.pp-poster.pg3 { background: linear-gradient(160deg, #831843, #be123c 55%, #c2410c); }
.pp-poster.pg4 { background: linear-gradient(160deg, #065f46, #0d9488 55%, #155e75); }
.pp-poster.pg5 { background: linear-gradient(160deg, #78350f, #b45309 55%, #be185d); }
.pp-poster.pg6 { background: linear-gradient(160deg, #1e40af, #4f46e5 55%, #ff9132); }
.pp-poster.pg7 { background: linear-gradient(160deg, #581c87, #9333ea 55%, #db2777); }
.pp-poster.pg8 { background: linear-gradient(160deg, #064e3b, #059669 55%, #1d4ed8); }

/* ===== 橙色系占位封面（首页精品案例 / 资产页共用）：深橙 → 主题橙 → 亮杏橙，渐变缓慢流动 ===== */
.ph-orange {
  background: linear-gradient(160deg, #4a1e06, #ff8c29 55%, #ffb066);
  background-size: 200% 200%;
  animation: phOrangeFlow 9s ease-in-out infinite alternate;
}
.ph-orange.pg1 { background-image: linear-gradient(160deg, #4a1d05, #ff9632 55%, #ffb066); }
.ph-orange.pg2 { background-image: linear-gradient(160deg, #5c2506, #ff8c29 50%, #ffd9b0); }
.ph-orange.pg3 { background-image: linear-gradient(160deg, #3a1704, #e8751f 55%, #ffc98a); }
.ph-orange.pg4 { background-image: linear-gradient(160deg, #6b2c07, #ff9e40 50%, #ffe0c2); }
.ph-orange.pg5 { background-image: linear-gradient(160deg, #47200a, #ff8c29 60%, #ffbf7f); }
.ph-orange.pg6 { background-image: linear-gradient(160deg, #5a2305, #ff9632 45%, #ffd2a3); }
.ph-orange.pg7 { background-image: linear-gradient(160deg, #331404, #e06f1a 55%, #ffc078); }
.ph-orange.pg8 { background-image: linear-gradient(160deg, #6e2e08, #ff8c29 50%, #ffe3c8); }
@keyframes phOrangeFlow {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}

/* ===== 项目竖版海报卡（对齐 tiaoyueai 爆款 AI 剧：2:3 全图卡 + 渐变徽章 + 底部遮罩叠底） ===== */
.pp-card {
  position: relative; aspect-ratio: 317 / 476; border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.05);
  cursor: pointer; display: block;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.pp-card:hover {
  transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42), 0 0 30px rgba(255, 140, 41, 0.14);
}
.pp-card:hover .pp-poster { transform: scale(1.07); }
.pp-card::after {
  content: ""; position: absolute; inset: 46% 0 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0.88) 100%);
}
.pp-card .pp-info {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 0 14px 13px; display: flex; flex-direction: column; gap: 3px;
}
.pp-card .pp-info i {
  font-style: normal; font-size: 11.5px; line-height: 16px; color: rgba(255, 255, 255, 0.75);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pp-card .pp-info b {
  font-size: 15.5px; font-weight: 600; line-height: 21px; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}
/* 右上角渐变胶囊徽章（tiaoyue：主色→粉） */
.pp-card .pp-ctag {
  position: absolute; top: 10px; right: 10px; z-index: 4;
  padding: 4px 9px; border-radius: 999px; background: linear-gradient(90deg, #ff7f0f, #f472b6);
  color: #fff; font-size: 10.5px; font-weight: 600; line-height: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35); white-space: nowrap;
}
/* hover 播放浮层（模拟 tiaoyue hover 预览视频） */
.pp-card .pp-play-hint {
  position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); z-index: 4;
  width: 44px; height: 44px; border-radius: 50%; background: rgba(11, 16, 32, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.35); color: #fff; font-size: 15px;
  display: flex; align-items: center; justify-content: center; opacity: 0;
  transition: opacity 0.25s; backdrop-filter: blur(4px); box-shadow: 0 0 20px rgba(255, 140, 41, 0.35);
}
.pp-card:hover .pp-play-hint { opacity: 1; }
/* 左上角状态徽章（我的项目） */
.pp-card .pp-st {
  position: absolute; left: 10px; top: 10px; z-index: 4;
  font-size: 10px; padding: 3px 8px; border-radius: 999px; color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3); backdrop-filter: blur(6px);
}
.pp-card .pp-st.st-draft { background: rgba(100, 116, 139, 0.85); }
.pp-card .pp-st.st-active { background: rgba(59, 130, 246, 0.88); }
.pp-card .pp-st.st-audit { background: rgba(255, 145, 50, 0.88); }
.pp-card .pp-st.st-done { background: rgba(16, 185, 129, 0.88); }
.pp-card .pp-au {
  position: absolute; left: 10px; top: 37px; z-index: 4;
  font-size: 10px; padding: 3px 8px; border-radius: 999px;
  background: rgba(11, 16, 32, 0.55); color: rgba(226, 232, 255, 0.9); backdrop-filter: blur(6px);
}

/* ===== 弹窗（光晕 + 渐变边框） ===== */
.modal-mask {
  position: fixed; inset: 0; background: rgba(5, 8, 18, 0.75);
  display: none; align-items: center; justify-content: center; z-index: 100;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.modal-mask.open { display: flex; }
.modal {
  position: relative; overflow: hidden;
  width: 420px; max-width: calc(100vw - 48px);
  background: linear-gradient(165deg, #1a2142, #12172e 60%);
  border: 1px solid rgba(255, 150, 60, 0.28);
  border-radius: 18px; padding: 20px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), 0 0 46px rgba(255, 140, 41, 0.18);
  animation: pop 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal::before {
  content: ""; position: absolute; top: -60px; left: 50%; transform: translateX(-50%);
  width: 260px; height: 120px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(ellipse, rgba(255, 140, 41, 0.28), transparent 70%);
}
@keyframes pop { from { transform: scale(0.93) translateY(8px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  position: relative;
  gap: 12px;
}
.modal-head h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  margin-left: auto;
}
.modal-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 140, 41, 0.4);
  transform: scale(1.08);
}
.modal h3 { font-size: 16px; margin-bottom: 10px; }
.modal p { font-size: 13.5px; color: var(--text-dim); line-height: 1.7; margin-bottom: 20px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* ===== 表单（聚焦发光） ===== */
.input, .textarea, .select {
  width: 100%; background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 11px 14px; font-size: 14px; color: var(--text); outline: none;
  transition: border 0.2s, box-shadow 0.2s, background 0.2s; font-family: inherit;
}
.input:hover, .textarea:hover, .select:hover { border-color: rgba(255, 150, 60, 0.4); }
.input:focus, .textarea:focus, .select:focus {
  border-color: rgba(255, 150, 60, 0.85);
  background-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(255, 140, 41, 0.18), 0 0 20px rgba(255, 140, 41, 0.28);
}
.textarea { resize: vertical; line-height: 1.7; }
.select option {
  background: #12172e; color: #e8ecf7;
}
.select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #ffb066 50%), linear-gradient(135deg, #ffb066 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.field label { display: block; font-size: 12.5px; color: var(--text-dim); margin-bottom: 7px; }
.field { margin-bottom: 16px; }
.hint { font-size: 12px; color: var(--text-faint); margin-top: 6px; }

/* ===== 页面入场（模糊浮现） ===== */
.page { animation: pageIn 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(16px) scale(0.985); filter: blur(5px); }
  to { opacity: 1; transform: none; filter: none; }
}

/* ===== 通用特效工具类 ===== */
.glow-box { box-shadow: 0 0 30px rgba(255, 140, 41, 0.2); }
.float-y { animation: floatY 4s ease-in-out infinite; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.pulse-glow { animation: pulseGlow 2.6s ease-in-out infinite; }
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 12px rgba(255, 140, 41, 0.3); }
  50% { box-shadow: 0 0 28px rgba(255, 150, 60, 0.55); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ===== 列表搜索与分页（深色主题适配） ===== */
.list-tool { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.list-search { flex: 1; max-width: 320px; background: rgba(255,255,255,0.06); border: 1px solid var(--border-strong); border-radius: 10px; padding: 8px 14px; font-size: 13px; color: var(--text); outline: none; transition: border-color .15s, background .15s; }
.list-search::placeholder { color: var(--text-faint); }
.list-search:focus { border-color: var(--indigo, #ff7f0f); background: rgba(255,140,41,0.08); }
.pager, .proj-pager { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px 4px 4px; flex-wrap: wrap; }
.pg-btn { border: 1px solid var(--border-strong); background: var(--bg-card); color: var(--text); border-radius: 8px; padding: 5px 13px; font-size: 12.5px; cursor: pointer; transition: all .15s; }
.pg-btn:hover:not(:disabled) { border-color: var(--indigo, #ff7f0f); color: #fff; background: rgba(255,140,41,0.18); }
.pg-btn:disabled { opacity: .4; cursor: not-allowed; }
.pg-info { font-size: 12.5px; color: var(--text-faint); }

/* ===== 项目列表卡片（案例样式：封面大图 + 底部信息条，橙色主题） ===== */
.pl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
@media (min-width: 1200px) { .pl-grid { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 760px) { .pl-grid { grid-template-columns: 1fr; } }
.pl-card {
  position: relative; display: block; overflow: hidden; cursor: pointer;
  background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 14px;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.pl-badges {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap;
}
/* 卡片右上角标签：不透明背景（草稿=灰色、审核=蓝/靛，避免封面透出） */
.pl-badges .badge-gray  { background: #6b7280; border-color: transparent; color: #fff; box-shadow: none; }
.pl-badges .badge-blue  { background: #2563eb; border-color: transparent; color: #fff; box-shadow: none; }
.pl-badges .badge-indigo{ background: #7c3aed; border-color: transparent; color: #fff; box-shadow: none; }
.pl-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,140,41,0.5);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255,140,41,0.12);
}
.pl-cover { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: rgba(255,255,255,0.05); }
.pl-cover img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.pl-cover .pl-ph {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 44px;
}
.pl-info {
  padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px;
  background: rgba(255,255,255,0.03);
}
.pl-info .pl-title {
  font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.45;
  display: block;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pl-info .pl-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-height: 22px; }
.pl-info .pl-sub { font-size: 12px; color: var(--text-faint); }
.pl-info .pl-meta { font-size: 12px; color: var(--text-faint); }
.pl-info .pl-meta { padding-right: 34px; } /* 右下角 ⋯ 按钮预留空间 */
.pl-info .pl-ops {
  position: absolute; right: 10px; bottom: 10px; z-index: 5;
  display: flex; gap: 8px; margin: 0;
}
.pl-info .pl-ops button {
  font-size: 12px; padding: 4px 11px; border-radius: 7px;
  border: 1px solid var(--border-strong); color: var(--text-dim);
  transition: all .2s; background: transparent; cursor: pointer;
}
.pl-info .pl-ops button:hover { color: #ffb066; border-color: rgba(255,140,41,0.5); }
.pl-info .pl-ops .feat-on { color: #fbbf24 !important; border-color: rgba(251,191,36,0.5) !important; }
.pl-info .pl-ops .ast-rm { color: #f87171 !important; border-color: rgba(248,113,113,0.4) !important; }
.pl-info .pl-ops .ast-rm:hover { background: rgba(248,113,113,0.12) !important; }
/* 置顶角标：封面左上角（橙渐变徽章，与主题一致） */
.pl-pin {
  position: absolute; left: 8px; top: 8px; z-index: 4;
  padding: 3px 9px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 4px;
  background: linear-gradient(135deg, #ff7f0f, #ff9132);
  color: #fff; font-size: 11px; font-weight: 600;
  box-shadow: 0 4px 14px rgba(255, 140, 41, 0.45);
}
/* ===== 项目列表：更多操作（⋯ 下拉菜单）——fixed 定位避免卡片 overflow 裁剪，沿用深色卡片主题 ===== */
.pl-info .pl-ops button.pl-more {
  width: 26px; height: 26px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; line-height: 1; border-radius: 50%;
  background: rgba(11, 16, 32, 0.6); border: 1px solid var(--border-strong);
}
.pl-info .pl-ops button.pl-more:hover {
  background: rgba(255, 140, 41, 0.85); border-color: transparent; color: #fff;
}
.pl-menu-mask {
  position: fixed; inset: 0; z-index: 90; display: none;
  background: rgba(4, 6, 14, 0.25);
}
.pl-menu {
  position: fixed; z-index: 91; min-width: 118px; padding: 5px;
  display: none; flex-direction: column; gap: 2px; border-radius: 10px;
  background: linear-gradient(165deg, rgba(24, 30, 58, 0.97), rgba(15, 20, 40, 0.97));
  border: 1px solid var(--border-strong);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
}
.pl-menu button {
  width: 100%; text-align: left; padding: 7px 12px; font-size: 12.5px;
  border-radius: 7px; border: none; background: transparent;
  color: var(--text-dim); cursor: pointer; transition: all 0.2s;
  white-space: nowrap;
}
.pl-menu button:hover { background: rgba(255, 140, 41, 0.12); color: #ffd9b0; }
.pl-menu button.ast-rm:hover { background: rgba(248, 113, 113, 0.12); color: #f87171; }

/* ============================================================
 * 公用工具类（smartframe-web 样式规范：docs/rules/smartframe-web-样式规范.md）
 * ============================================================ */

/* 隐藏滚动条：给任意滚动容器加 class="hide-scrollbar" 即可（滚轮/触控/键盘滚动不受影响）；
   插件自定义滚动条（需要可见）不加此类 */
.hide-scrollbar {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.hide-scrollbar::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* 扁平弹窗：无边框 / 无鼠标进入过渡 / 背景 #16171f / 关闭按钮无边框 / 头尾分隔线去掉。
   用法：在弹窗容器（.card / .modal 等）的 class 中追加 modal-flat，例如
   <div class="card modal-flat">...</div> */
.modal-flat {
  background: #16171f;
  border: none;
  box-shadow: none;
  transition: none;
}
.modal-flat::before,
.modal-flat::after { display: none; } /* 去掉渐变描边环 / 顶部光晕 */
.modal-flat:hover {
  background: #16171f;
  border-color: transparent;
  transform: none;
  box-shadow: none;
}
.modal-flat .modal-close,
.modal-flat .cm-close {
  border: none;
  background: transparent;
  transition: none;
}
.modal-flat .modal-close:hover,
.modal-flat .cm-close:hover {
  border: none;
  background: transparent;
  color: var(--text-faint);
}
/* 弹窗头部/底部内部分隔线：扁平化时一并去掉（覆盖常见头部/底部类） */
.modal-flat .modal-head,
.modal-flat .pb-head,
.modal-flat .cm-head { border-bottom: none; background: #16171f; }
.modal-flat .modal-foot,
.modal-flat .pb-foot,
.modal-flat .cm-foot { border-top: none; }

/* ===== 胶囊下拉组件（SF.dropdown，公共复用：胶囊触发 + 白底弹层） ===== */
.asset-dd { position: relative; width: 100%; margin-bottom: 12px; }
.asset-dd-trigger {
  display: flex; align-items: center; gap: 6px; width: 100%;
  padding: 7px 14px; border-radius: 999px; cursor: pointer; user-select: none;
  border: 1px solid var(--border-strong); background: rgba(255,255,255,0.05);
  color: #fff; font-size: 13px; transition: none;
  box-sizing: border-box; min-width: 0; overflow: hidden;
}
/* 悬浮锁定：鼠标进入不出现边框/背景/文字颜色变化 */
.asset-dd-trigger:hover { border-color: var(--border-strong); color: #fff; background: rgba(255,255,255,0.05); }
.asset-dd-val { color: #fff; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
/* 箭头：iconfont 风格内联 SVG（SF.dropdown 生成）；margin-left:auto 靠右 */
.asset-dd-arrow { width: 12px; height: 12px; flex-shrink: 0; opacity: 0.7; margin-left: auto; }
/* 资产工作台弹窗（cpImageAssetModal）：分类/性别/音色下拉触发按钮高度对齐输入框（39px） */
#cpImgTypeDD .asset-dd-trigger, #cpImgGenderDD .asset-dd-trigger, #cpImgVoiceDD .asset-dd-trigger { min-height: 39px; }
/* 只读模式（SF.dropdown disabled）：仅展示当前值，不可点击展开 */
.asset-dd-disabled { opacity: 0.6; cursor: not-allowed; pointer-events: none; }
.asset-dd-pop {
  /* 弹层由 SF.dropdown 挂到 body 并 JS 定位（fixed，避免被弹窗 overflow 裁剪）；z-index 需高于弹窗（modal-mask 210） */
  position: fixed; z-index: 999; min-width: 120px;
  background: #fff; border-radius: 14px; padding: 8px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.35); display: none;
}
.asset-dd-pop.open { display: block; animation: assetDdPopIn 0.18s ease; }
@keyframes assetDdPopIn { from { opacity: 0; transform: translateY(-4px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.asset-dd-title { font-size: 12px; color: #999; padding: 6px 10px 8px; }
.asset-dd-list { max-height: 320px; overflow-y: auto; }
.asset-dd-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; font-size: 13.5px; color: #333; cursor: pointer; transition: background 0.15s; }
.asset-dd-item:hover { background: #f5f5f6; }
.asset-dd-item.on { background: #f0f1f2; font-weight: 600; }
.asset-dd-item .asset-dd-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.asset-dd-item .asset-dd-ck { margin-left: auto; color: #00b86b; font-style: normal; font-weight: 700; opacity: 0; }
.asset-dd-item.on .asset-dd-ck { opacity: 1; }
/* 表单（.field）内使用组件：field 自带下边距，组件自身下边距归零 */
.field .asset-dd { margin-bottom: 0; }

/* ============================================================
 * 资产「参考图」视角组件公共类（asset-ref-views.js 使用）
 * 样式对齐 project.html 角色参考图/变体参考图（值保持一致，避免双端漂移）
 * ============================================================ */
/* 弹窗头部/主体（新增参考图弹窗、历史轨迹弹窗共用） */
.cm-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.cm-titles { flex: 1; min-width: 0; }
.cm-titles h3 { font-size: 16.5px; margin: 0; }
.cm-sub { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-dim); }
.cm-close { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; flex-shrink: 0; border: 1px solid var(--border-strong); background: rgba(255,255,255,0.04); color: var(--text-dim); font-size: 13px; cursor: pointer; transition: all 0.2s; }
.cm-close:hover { color: #fca5a5; border-color: rgba(248,113,113,0.5); background: rgba(248,113,113,0.12); }
.cm-body { max-height: calc(100vh - 280px); overflow-y: auto; }
/* 区块标题（左侧渐变竖线 + 辅助说明） */
.cm-sec-t { display: flex; align-items: baseline; gap: 10px; font-size: 13px; font-weight: 600; color: #c7d2fe; margin-bottom: 12px; }
.cm-sec-t::before { content: ""; width: 4px; height: 14px; border-radius: 2px; background: var(--grad); align-self: center; box-shadow: 0 0 10px rgba(255,140,41,0.6); }
.cm-sec-h { font-size: 11px; color: var(--text-faint); font-weight: 400; }
/* 视角卡片网格：角色 4 列（正面照常显，其余有图才显；＋ 添加按钮作为格子参与折行） */
.cf-views-list { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; }
.cf-views-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.cf-views-grid .cv-row-add { grid-column: auto; }
.cv-row { display: flex; flex-direction: column; align-items: center; gap: 6px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 12px; padding: 0 0 5px 0; }
.cv-row-thumb { width: 100%; height: 0; padding-bottom: 100%; border-top-left-radius: 12px; border-top-right-radius: 12px; overflow: hidden; position: relative; background: linear-gradient(145deg, rgba(255,140,41,0.15), rgba(255,145,50,0.1)); cursor: zoom-in; }
.cv-row-thumb img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.cv-row-thumb-empty { cursor: default; }
.cv-row-empty { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 30px; }
.cv-row-icons { position: absolute; right: 6px; top: 6px; z-index: 3; display: flex; gap: 4px; }
.cv-ico { width: 24px; height: 24px; border: none; border-radius: 7px; background: rgba(11,16,32,0.72); color: #e8ecf7; font-size: 12px; line-height: 1; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; backdrop-filter: blur(6px); }
.cv-ico:hover { color: #ffb066; }
.cv-ico-del { color: #fca5a5; }
.cv-ico-del:hover { color: #f87171; }
.cv-ico-dis { opacity: .45; cursor: not-allowed; }
.cv-row-label { font-size: 12px; font-weight: 600; color: #c7d2fe; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px; text-align: center; line-height: 1.4; }
.cv-row-add { grid-column: 1 / -1; width: 100%; min-height: 52px; padding: 8px; border-radius: 12px; border: 1px dashed var(--border-strong); background: rgba(255,255,255,0.02); color: var(--text-dim); font-size: 28px; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; text-align: center; line-height: 1; }
.cv-row-add:hover { color: #e0e7ff; border-color: rgba(255,150,60,0.55); background: rgba(255,140,41,0.08); }
.cv-lock { margin-left: 4px; }
/* 单张参考图卡片（场景/道具） */
.cv-item { border: 1px solid var(--border-strong); border-radius: 14px; padding: 10px; background: rgba(255,255,255,0.03); transition: border-color 0.2s, transform 0.2s; }
.cv-item:hover { border-color: rgba(255,150,60,0.5); transform: translateY(-2px); }
.cv-head { font-size: 11.5px; color: var(--text-dim); margin-bottom: 8px; text-align: center; font-weight: 600; letter-spacing: 1px; }
.cv-img { height: 0; padding-bottom: 100%; border-radius: 11px; overflow: hidden; position: relative; background: linear-gradient(145deg, rgba(255,140,41,0.15), rgba(255,145,50,0.1)); border: 1px solid rgba(255,150,60,0.15); }
.cv-img img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.cv-img > span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 34px; }
.cv-ops { display: flex; gap: 6px; margin-top: 10px; }
.cv-ops button { flex: 1; font-size: 11px; padding: 6px 0; border-radius: 8px; border: 1px solid var(--border-strong); color: var(--text-dim); background: rgba(255,255,255,0.04); cursor: pointer; transition: all 0.2s; }
.cv-ops button:first-child { background: linear-gradient(135deg, rgba(255,140,41,0.28), rgba(255,145,50,0.22)); border-color: rgba(255,150,60,0.5); color: #e0e7ff; }
.cv-ops button:first-child:hover { box-shadow: 0 0 12px rgba(255,140,41,0.35); color: #fff; }
.cv-ops button:hover { color: #c7d2fe; border-color: rgba(255,150,60,0.5); }
/* 新增参考图弹窗：当前视角图片预览 */
.cvm-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cvm-pv-item { width: 72px; text-align: center; }
.cvm-pv-thumb { width: 72px; height: 72px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: rgba(255,255,255,0.03); display: flex; align-items: center; justify-content: center; cursor: zoom-in; position: relative; } /* 2026-08-27：position:relative 使 .cvm-loading 加载框正确覆盖在预览图片上 */
.cvm-pv-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.cvm-pv-empty { cursor: default; color: var(--text-faint); font-size: 11px; }
.cvm-pv-label { font-size: 11px; color: var(--text-dim); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cvm-actions { display: flex; gap: 10px; margin-top: 14px; }
.cvm-actions .btn { flex: 1; }
/* 资产图片历史轨迹弹窗 */
.ah-grid { display: flex; flex-direction: column; gap: 8px; max-height: 56vh; overflow-y: auto; padding: 4px; }
.ah-item { display: flex; align-items: center; gap: 12px; border: 1px solid var(--border-strong); border-radius: 12px; padding: 8px 12px; background: rgba(255,255,255,0.03); cursor: pointer; transition: all 0.18s; }
.ah-item:hover { border-color: rgba(255,150,60,0.6); transform: translateY(-2px); }
.ah-item .ah-img { width: 72px; height: 72px; flex-shrink: 0; border-radius: 9px; overflow: hidden; position: relative; background: rgba(255,150,60,0.08); }
.ah-item .ah-img img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.ah-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; font-size: 11px; color: var(--text-dim); }
.ah-time { color: var(--text-dim); font-size: 11px; }
.ah-badge { font-size: 10px; padding: 2px 7px; border-radius: 20px; }
.ah-badge-ai { background: rgba(255,150,60,0.2); color: #fbbf24; }
.ah-badge-up { background: rgba(99,102,241,0.2); color: #a5b4fc; }
.ah-badge-rb { background: rgba(52,211,153,0.2); color: #6ee7b7; }
.ah-empty { text-align: center; color: var(--text-faint); font-size: 13px; padding: 30px 0; }

/* 多选下拉（SF.multiselect，2026-08-26）：触发按钮内选中集数标签 */
.asset-ms-val { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-width: 0; font-weight: 400; }
.asset-ms-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.asset-ms-tag { font-size: 11px; line-height: 1.6; padding: 0 7px; border-radius: 999px; background: rgba(96,165,250,.16); color: #c7d2fe; border: 1px solid rgba(96,165,250,.35); white-space: nowrap; }
.asset-ms-empty { color: var(--text-faint); font-weight: 400; }


/* ===== 全站左侧导航折叠（对齐首页；body.nav-shell 由 nav-shell.js 管理） ===== */
/* ===== 首页左侧导航：可伸缩（默认收起图标栏，点击按钮展开） ===== */
body.nav-shell .topbar {
  width: 80px; overflow: hidden;
  background: linear-gradient(180deg, rgba(22, 23, 27, 0.98) 0%, #0d0e0e 42%, #0c0d0e 100%);
}body.nav-shell .topbar::after {
  content: ""; position: absolute; top: 0; bottom: 0; right: 0;
  width: 1px; height: auto; display: block; transform: none;
  background: linear-gradient(180deg, transparent,
    rgba(255, 255, 255, 0.1) 18%,
    rgba(255, 150, 60, 0.08) 50%,
    rgba(255, 255, 255, 0.06) 82%, transparent);
}body.nav-shell .topbar-inner {
  width: 100%; margin: 0; box-sizing: border-box;
  padding: 14px 4px 10px; gap: 2px; align-items: center;
  scrollbar-width: none; -ms-overflow-style: none;
}body.nav-shell .topbar-inner::-webkit-scrollbar { display: none; }body.nav-shell .brand-row {
  flex: none; width: 100%; min-height: 36px; margin: 2px 0 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
}body.nav-shell .logo {
  flex: 0 0 auto; width: 36px; min-width: 0; flex-wrap: nowrap;
  padding: 0; justify-content: center; gap: 8px;
}body.nav-shell .logo span {
  display: none; min-width: 0; flex: 1 1 auto;
  font-size: 16px; letter-spacing: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}body.nav-shell .logo-badge {
  flex: 0 0 auto; width: 36px; height: 36px; border-radius: 11px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 8px 22px -8px rgba(255, 127, 15, 0.55);
}body.nav-shell .nav-toggle {
  flex: none; width: 28px; height: 28px; margin: 0;
  display: inline-flex; align-items: center; justify-content: center; padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 10px;
  color: rgba(255, 255, 255, 0.46); background: rgba(255, 255, 255, 0.025);
  cursor: pointer; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.22s ease;
}body.nav-shell .topbar:hover .nav-toggle,
body.nav-shell .topbar:focus-within .nav-toggle {
  opacity: 1; visibility: visible; pointer-events: auto;
}body.nav-shell .nav-toggle:hover {
  color: #ffd9b0; border-color: rgba(255, 150, 60, 0.28);
  background: rgba(255, 140, 41, 0.08);
}body.nav-shell .nt-arrow {
  width: 20px; height: 20px; display: block; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.22s ease;
}body.nav-shell:not(.nav-open) .brand-row {
  position: relative; justify-content: center; gap: 0;
}body.nav-shell:not(.nav-open) .logo {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  transition: opacity 0.18s ease, visibility 0.18s ease;
}body.nav-shell:not(.nav-open) .nav-toggle {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 36px; height: 36px;
}body.nav-shell:not(.nav-open) .topbar:hover .logo,
body.nav-shell:not(.nav-open) .topbar:focus-within .logo {
  opacity: 0; visibility: hidden; pointer-events: none;
}body.nav-shell .nav { width: 100%; align-items: center; gap: 12px; }body.nav-shell .nav a {
  flex-direction: column; justify-content: center; align-items: center; gap: 4px;
  width: 56px; min-height: 61px; padding: 8px 0; line-height: 1.1; border-radius: 8px;
  color: #aeb4c2; transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}body.nav-shell .nav a .n-ico {
  margin: 0; width: 24px; height: 24px; font-size: 18px;
  display: inline-flex; align-items: center; justify-content: center;
}body.nav-shell .nav a[href="mine.html"] .n-ico { font-size: 22px; }body.nav-shell .n-label { display: block; font-size: 12px; line-height: 1; }body.nav-shell:not(.nav-open) .n-label { line-height: 17px; }body.nav-shell .nav a::after { display: none; }body.nav-shell .nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }body.nav-shell .nav a.active { color: #fff; }body.nav-shell:not(.nav-open) .nav a.active {
  background: rgba(255, 140, 41, 0.08);
  box-shadow: none;
}body.nav-shell .nav a.active .n-ico { color: #ffb066; }body.nav-shell .nav a:focus-visible,
body.nav-shell .nav-toggle:focus-visible {
  outline: 2px solid rgba(255, 150, 60, 0.6); outline-offset: 2px;
}body.nav-shell .side-beian { display: none; }body.nav-shell .top-userbar {
  left: 80px; background: transparent;
  --tb-veil: 0;
  --tb-shadow: 0;
  box-shadow: 0 18px 36px -22px rgb(0 0 0 / var(--tb-shadow, 0));
}body.nav-shell .top-userbar::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(13, 14, 14, 0.96), rgba(13, 14, 14, 0.76));
  opacity: var(--tb-veil, 0);
}body.nav-shell .top-userbar .top-userbar-inner {
  position: relative; z-index: 1;
}body.nav-shell .container.page { margin-left: 80px; }body.nav-shell.nav-open .topbar { width: 244px; }body.nav-shell.nav-open .topbar-inner { padding: 18px 14px 14px; align-items: stretch; }body.nav-shell.nav-open .brand-row { gap: 8px; margin: 0 0 14px; }body.nav-shell.nav-open .logo { flex: 1 1 auto; width: auto; justify-content: flex-start; }body.nav-shell.nav-open .logo span { display: block; }body.nav-shell.nav-open .logo-badge { width: 32px; height: 32px; }body.nav-shell.nav-open .nav-toggle { width: 30px; height: 30px; }body.nav-shell.nav-open .nt-arrow { transform: rotate(180deg); }body.nav-shell.nav-open .nav { gap: 10px; align-items: stretch; }body.nav-shell.nav-open .nav a {
  flex-direction: row; justify-content: flex-start; align-items: center;
  gap: 8px; width: 100%; min-height: 46px; padding: 11px 13px; font-size: 14px; border-radius: 12px;
}body.nav-shell.nav-open .nav a .n-ico { margin: 0; }body.nav-shell.nav-open .n-label { display: inline; font-size: 14px; }body.nav-shell.nav-open .nav a.active {
  background: rgba(255, 140, 41, 0.12);
  box-shadow: none;
}body.nav-shell.nav-open .nav a:hover { background: rgba(255, 255, 255, 0.07); }body.nav-shell.nav-open .nav a.active .n-ico { color: #ff9132; }body.nav-shell.nav-open .nav a.active::after,
body.nav-shell.nav-open .nav a:hover::after {
  display: block; left: 0; right: auto; top: 22%; bottom: 22%;
  width: 3px; height: auto; transform: none; border-radius: 3px;
  background: linear-gradient(180deg, #ff7f0f, #ff9132);
}body.nav-shell.nav-open .top-userbar { left: 244px; }body.nav-shell.nav-open .container.page { margin-left: 244px; }body.nav-shell.nav-open .home-top-fx { left: 244px; }body.nav-shell.nav-open .side-beian {
  display: flex; flex: none;
  margin-top: 14px; padding: 10px 2px 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.3);
}

/* 首页折叠媒体内嵌规则平移 */
@media (hover: none) {
  body.nav-shell:not(.nav-open) .logo {
    opacity: 0; visibility: hidden;
  }
  body.nav-shell .nav-toggle {
    opacity: 1; visibility: visible; pointer-events: auto;
  }
}@media (prefers-reduced-motion: reduce) {
  body.nav-shell .topbar-inner,
  body.nav-shell .nt-arrow { transition: none; }
}@media (max-width: 900px) {
  body.nav-shell .topbar { width: 80px; }
  body.nav-shell .top-userbar { left: 80px; }
  body.nav-shell .container.page { margin-left: 80px; }
  .home-top-fx { left: 80px; height: 760px; }
}
/* 收起态导航项文字字号对齐首页（首页文本在 .n-label 12px；其它页面为直接文本，统一 12px/17px） */
body.nav-shell:not(.nav-open) .nav a { font-size: 12px; line-height: 17px; }

/* 隐藏左侧导航「创作」菜单（折叠/展开均隐藏，仅隐藏不删除；22 个带左侧菜单页面共用） */
nav.nav > a[href="create.html"] { display: none; }

/* ==========================================================================
   页面顶部栏原语（2026-09-15 收敛为唯一来源）
   语汇：返回胶囊 + 页面标题 + 项目信息徽章 + 右侧「更新时间 / 操作按钮」
   取值：容器左右 22px、顶栏顶部内边距 18px（按钮行高 38px）
   取值来源：project.html 内联同值副本；其它引用页若有同值副本，因后加载覆盖、视觉不变
   ========================================================================== */
.se-topbar { display: flex; align-items: center; gap: 14px; padding: 18px 0 0; flex-wrap: wrap; }
.se-back { display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px 7px 11px; border-radius: 999px; background: #21222c; color: #d6d6dc; font-size: 13px; text-decoration: none; transition: all .2s; }
.se-title { font-size: 19px; margin: 0; color: var(--text); }
.se-proj-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.se-proj-chip {
  font-size: 12px; padding: 5px 11px; border-radius: 6px; white-space: nowrap;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: var(--text-dim);
}
.se-top-extra { margin-left: auto; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.hero-time { font-size: 12px; color: rgba(199,210,254,0.55); flex-shrink: 0; white-space: nowrap; }
