/* ============================================================
   影造AI · 电影感换皮皮肤层 cinema.css
   加载顺序：yingzao-design-system.css 之后、</head> 之前（cascade 胜出）
   ------------------------------------------------------------
   红线（逐字遵守）：
   · 只换视觉与交互反馈层；不改任何 fetch/XHR 的 URL/方法/请求响应字段名
   · 不碰鉴权/扣费/会员/订单/任务提交查询逻辑；不改 config；不硬编码密钥
   · 法定「AI生成」角标 .aigc-badge 保留可见，仅随主题改配色，不遮挡不删除
   · 字体 woff2 自托管（/fonts），不依赖 Google Fonts / miaoda.feishu.cn
   机制：A 字体 → B 令牌重映射(靛蓝紫粉→暖金冷青) → C 背景层 → D 影院质感
        → E 基础组件打磨 → F v3 增强层(html.v3 门控，JS 失效自动退回)
   ============================================================ */

/* ===== A. 自托管字体（font-display:swap，失败回退系统字体栈） ===== */
@font-face {
  font-family: 'Noto Serif SC';
  src: url('/fonts/noto-serif-sc-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Noto Serif SC';
  src: url('/fonts/noto-serif-sc-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Noto Serif SC';
  src: url('/fonts/noto-serif-sc-900.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Noto Sans SC';
  src: url('/fonts/noto-sans-sc-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Noto Sans SC';
  src: url('/fonts/noto-sans-sc-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Noto Sans SC';
  src: url('/fonts/noto-sans-sc-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ===== B. 设计令牌：影院基色 + v3 金属/缓动 + 设计系统旧变量重映射 ===== */
:root {
  /* —— 影院基色（集成指令§1 逐字） —— */
  --bg: #ffffff;
  --bg-2: #f7f7f9;
  --panel: #f7f7f9;
  --panel-2: #f7f7f9;
  --line: rgba(249,247,254, 0.08);
  --line-2: rgba(249,247,254, 0.14);
  --txt: #1a1525;
  --txt-2: #6b7280;
  --txt-3: #9ca3af;
  --gold: #ff6b9d;
  --gold-2: #ff9ec0;
  --gold-3: #c084fc;
  --cyan: #a78bfa;
  --cyan-2: #c4b5fd;
  --ok: #58c98e;
  --danger: #e5635c;
  --shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.75);
  --r: 14px;
  /* —— v3 金属字 / 缓动（逐字） —— */
  --gold-grad: linear-gradient(
    135deg,
    #ffd1e0 0%,
    #ff9ec0 22%,
    #ff6b9d 48%,
    #c084fc 74%,
    #ffb3c9 100%
  );
  --gold-text: linear-gradient(
    100deg,
    #ffd1e0 0%,
    #ff9ec0 30%,
    #ff6b9d 55%,
    #ffb3c9 80%,
    #ffd1e0 100%
  );
  --hairline: rgba(249,247,254, 0.09);
  --ease-v3: cubic-bezier(0.22, 0.61, 0.21, 1);
  --spring: cubic-bezier(0.34, 1.4, 0.4, 1);
  --ease-film: cubic-bezier(0.2, 0.7, 0.2, 1);
  /* 设计系统 --ease-bounce 原为回弹曲线 cubic-bezier(.34,1.56,.64,1)，被 .btn/toast/modal
     等全站组件引用（规范禁 bounce/elastic）；cinema.css 后于设计系统加载，此处 :root 单点
     重映射为 ease-out-expo，全站按钮/吐司/弹窗动效一并合规，零改标记。 */
  --ease-bounce: cubic-bezier(0.16, 1, 0.3, 1);
  /* —— 字体栈：全站无衬线（2026-09-26 老板拍板：标题/品牌一并改 sans）——
     --serif 变量名保留，值改为 sans 栈：所有 var(--serif) 引用单点切换，零改标记。
     注意 Noto Sans SC 自托管最重 700，标题勿用 900（会合成假粗） —— */
  --serif:
    'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
    'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --sans:
    'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
    'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Mono', Consolas, monospace;

  /* —— 影院设计令牌（暖金冷青） —— */
  --brand-cyan: #a78bfa;
  --brand-emerald: #58c98e;
  --brand-amber: #c084fc;
  --cyan-300: #c4b5fd;
  --cyan-500: #a78bfa;
  --gold-50: #fff0f4;
  --gold-200: #ffd1e0;
  --gold-300: #ff9ec0;
  --gold-400: #ff9ec0;
  --gold-500: #ff6b9d;
  --gold-600: #a855f7;
  --gold-700: #c084fc;
  --gold-800: #9333ea;
  --gold-900: #7c3aed;
  --rose-gold-500: #ff9ec0;
  --rose-gold-400: #ffd1e0;
  --rose-gold-600: #c084fc;
  --silver-500: #6b7280;
  --silver-400: #c3cad6;
  --silver-600: #9ca3af;
  --success: #58c98e;
  --error: #e5635c;
  --info: #a78bfa;
  --warning: #ff6b9d;
  --accent: #ff6b9d;
  --accent-bg: rgba(255, 107, 157, 0.1);
  --bg-primary: #ffffff;
  --bg-secondary: #f7f7f9;
  --bg-tertiary: #f7f7f9;
  --bg-card: rgba(249,247,254, 0.96);
  --bg-elevated: #ffffff;
  --bg-overlay: rgba(0, 0, 0, 0.66);
  --text-primary: #1a1525;
  --text-secondary: #6b7280;
  --text-tertiary: #9ca3af;
  --text-disabled: #4a5262;
  --text-inverse: #ffffff;
  --border-subtle: rgba(249,247,254, 0.06);
  --border-default: rgba(249,247,254, 0.1);
  --border-strong: rgba(255, 107, 157, 0.3);
  --gold-gradient: linear-gradient(135deg, #ff9ec0 0%, #ff6b9d 48%, #c084fc 100%);
  --bg-gradient: linear-gradient(180deg, #ffffff 0%, #f7f7f9 30%, #f7f7f9 60%, #ffffff 100%);
  --glass-bg: linear-gradient(145deg, rgba(249,247,254, 0.96) 0%, rgba(249,247,254, 0.95) 100%);
  --chrome: linear-gradient(135deg, #ff9ec0 0%, #ff6b9d 50%, #c084fc 100%);
  --holo: linear-gradient(135deg, #ff6b9d 0%, #ff9ec0 33%, #a78bfa 66%, #c4b5fd 100%);
  --shadow-glow-gold: 0 0 30px rgba(255, 107, 157, 0.3);
  --shadow-glow-rose: 0 0 30px rgba(245, 200, 126, 0.28);
  --shadow-glow-silver: 0 0 30px rgba(91, 200, 232, 0.2);
  --shadow-glow: 0 0 20px rgba(232, 177, 91, 0.25);
  --shadow-glow-lg: 0 0 40px rgba(232, 177, 91, 0.35);
  --shadow-btn-3d:
    0 4px 0 var(--gold-700), 0 8px 25px rgba(232, 177, 91, 0.35),
    inset 0 1px 0 rgba(249,247,254, 0.4);
  --shadow-btn-3d-hover:
    0 6px 0 var(--gold-700), 0 14px 35px rgba(232, 177, 91, 0.45),
    inset 0 1px 0 rgba(249,247,254, 0.5);
  --font-family: var(--sans);
  /* —— 生产内联引用的"裸变量"补全（否则回退到硬编码靛蓝紫/石板灰）——
     app.html 多处写 var(--border,rgba(99,102,241,.3)) / var(--text-2,#9CA3AF) /
     var(--accent-purple,#A855F7)；此处定义即全局消除这些靛蓝紫回退，零改标记 —— */
  --border: rgba(249,247,254, 0.1);
  --border-2: rgba(249,247,254, 0.14);
  --text-1: #1a1525;
  --text-2: #6b7280;
  --text-3: #9ca3af;
  --bg-1: #f7f7f9;
  --bg-3: #f7f7f9;
  --accent-purple: #ff6b9d;
  --accent-indigo: #ff6b9d;
  --accent-blue: #a78bfa;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 999px;
}

/* ===== C. 页面背景装饰层：去靛蓝光晕/网格，换影院暖金冷青氛围 ===== */
body::before { background: none !important; }
body::after { background-image: none !important; }

/* ===== D. 影院质感层：颗粒 + 暗角（cinema.js 注入 DOM，此处定义样式） ===== */
.grain { display: none !important; }
.vignette { display: none !important; }

/* ===== E. 基础组件打磨（生产类名） ===== */
/* 选区 */
::selection {
  background: rgba(232, 177, 91, 0.28);
  color: #fff;
}
/* 滚动条 */
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
::-webkit-scrollbar-thumb {
  background: rgba(232, 177, 91, 0.22);
  border-radius: 99px;
  border: 2px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(232, 177, 91, 0.4);
  background-clip: content-box;
}
::-webkit-scrollbar-track {
  background: transparent;
}
/* 键盘焦点环（无障碍：鼠标不出现，Tab 出现） */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid rgba(245, 200, 126, 0.75);
  outline-offset: 2px;
  border-radius: 10px;
}
/* 输入聚焦金边（覆盖设计系统靛蓝 focus） */
input:focus,
textarea:focus,
select:focus {
  outline: none;
}
.chat-input-box:focus-within,
.chat-input-area:focus-within {
  border-color: rgba(232, 177, 91, 0.5) !important;
  box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1) !important;
}
/* 法定「AI生成」角标：保留可见，仅随主题改配色（不遮挡/不删除/文案不变） */
.aigc-badge {
  background: linear-gradient(135deg, #ff6b9d, #a78bfa) !important;
  color: #ffffff !important;
  text-shadow: 0 1px 0 rgba(249,247,254, 0.25);
}
.aigc-badge-overlay {
  background: rgba(10, 12, 18, 0.82) !important;
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6) !important;
  border: 1px solid rgba(232, 177, 91, 0.55) !important;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.5) !important;
}
/* Toast 玻璃化（生产 body>.toast 单例） */
.toast {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(26, 31, 43, 0.94), rgba(17, 20, 29, 0.94)) !important;
  border: 1px solid rgba(232, 177, 91, 0.4) !important;
  border-left: 3px solid var(--gold) !important;
  border-radius: 13px !important;
  box-shadow: var(--shadow) !important;
  color: var(--txt) !important;
}

/* ===== F. v3 高端化增强层（html.v3 门控；JS 失效自动退回正常态） ===== */
html.v3 ::selection {
  background: rgba(232, 177, 91, 0.28);
  color: #fff;
}
html.v3 body {
  font-family: var(--sans);
  font-feature-settings:
    'tnum' 1,
    'kern' 1;
}
/* 等宽数字：余额/价格/时长/百分比/时间码 */
html.v3 .balance b,
html.v3 .plan-price .num,
html.v3 .plan-price,
html.v3 .dur,
html.v3 .tk-pct,
html.v3 #csPct,
html.v3 .stage-screen-cap b,
html.v3 .rec,
html.v3 .dock-head .dc,
html.v3 .mono {
  font-variant-numeric: tabular-nums;
}

/* F1. 玻璃分层：顶栏/侧栏/面板纵深 */
html.v3 .topbar {
  background: linear-gradient(180deg, rgba(14, 17, 25, 0.82), rgba(10, 12, 18, 0.66));
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  box-shadow:
    0 1px 0 rgba(249,247,254, 0.05),
    0 10px 30px -18px rgba(0, 0, 0, 0.8);
}
html.v3 .sidebar {
  background: linear-gradient(180deg, #0d1018 0%, #0a0c13 55%, #080a10 100%);
  box-shadow:
    inset -1px 0 0 rgba(249,247,254, 0.04),
    inset -18px 0 30px -26px rgba(91, 200, 232, 0.45);
}
html.v3 .studio,
html.v3 .side-user,
html.v3 .search,
html.v3 .param,
html.v3 .sidebar-user {
  box-shadow:
    inset 0 1px 0 rgba(249,247,254, 0.05),
    0 14px 34px -22px rgba(0, 0, 0, 0.85);
}
html.v3 .search,
html.v3 .topbar-search {
  background: linear-gradient(180deg, rgba(22, 27, 39, 0.7), rgba(16, 19, 28, 0.7));
  backdrop-filter: blur(8px);
}
html.v3 .side-user,
html.v3 .sidebar-user {
  background: linear-gradient(180deg, rgba(22, 27, 39, 0.9), rgba(15, 18, 26, 0.9));
}

/* F1b. 顶栏细节：余额青字等宽（去设计系统靛蓝底）+ 图标按钮金 hover */
html.v3 .topbar-balance {
  background: rgba(91, 200, 232, 0.08);
  border: 1px solid rgba(91, 200, 232, 0.2);
  color: var(--cyan-2);
}
html.v3 .topbar-balance #tbBalance {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--cyan-2);
}
html.v3 .topbar-icon-btn,
html.v3 .theme-toggle {
  transition:
    color 0.18s var(--ease-v3),
    background 0.18s;
}
html.v3 .topbar-icon-btn:hover,
html.v3 .theme-toggle:hover {
  color: var(--gold-2);
}
html.v3 .topbar-title {
  letter-spacing: 0.3px;
}

/* F2. 侧栏滑动金色指示条（cinema.js 注入 .nav-cursor 到 .sidebar-nav/.nav） */
html.v3 .nav,
html.v3 .sidebar-nav {
  position: relative;
}
html.v3 .nav-item {
  z-index: 1;
  will-change: transform;
}
.nav-cursor {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 0;
  height: 38px;
  border-radius: 11px;
  z-index: 0;
  background: linear-gradient(92deg, rgba(232, 177, 91, 0.17), rgba(232, 177, 91, 0.03) 70%);
  box-shadow:
    inset 0 0 0 1px rgba(232, 177, 91, 0.14),
    inset 0 1px 0 rgba(249,247,254, 0.06);
  transform: translateY(0);
  transition:
    transform 0.46s var(--ease-v3),
    height 0.3s var(--ease-v3);
  pointer-events: none;
}
.nav-cursor::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--gold-2), var(--gold-3));
  box-shadow: 0 0 13px rgba(232, 177, 91, 0.8);
}
/* —— 侧栏结构样式（无条件，html.v3 失效时 SVG 仍按 18px 渲染，不退化为默认 300×150）—— */
.nav-cap {
  position: relative;
  z-index: 1;
  font-size: 10.5px;
  color: var(--txt-3);
  letter-spacing: 2px;
  padding: 14px 14px 6px;
  font-weight: 600;
  user-select: none;
}
.nav-cap:first-child {
  padding-top: 6px;
}
.nav-item .nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex: none;
}
.nav-item .nav-icon svg {
  width: 18px;
  height: 18px;
  display: block;
  stroke-width: 1.7;
  flex: none;
}
.nav-item.nav-soon {
  opacity: 0.62;
}
.nav-item.nav-soon:hover {
  opacity: 1;
}
/* —— 品牌字块（serif 标题 + 字距副标）—— */
.sidebar-logo {
  align-items: center;
}
.sidebar-brand-text {
  min-width: 0;
}
.brand-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 1px;
  line-height: 1.15;
  color: var(--txt);
}
.brand-name b {
  color: var(--gold);
}
.brand-sub {
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--txt-3);
  margin-top: 2px;
}

/* F3. 金属质感：品牌字/价格/标题关键词 + 金按钮流光 */
html.v3 .brand-name b,
html.v3 .hero-title em,
html.v3 .plan-price .num,
html.v3 .nav-item.active {
  background: var(--gold-text);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
html.v3 .hero-title em {
  text-shadow: none;
  filter: drop-shadow(0 0 26px rgba(232, 177, 91, 0.45));
}
/* active 项由 nav-cursor 金指示条承担高亮，去除设计系统遗留的靛蓝 box-shadow */
html.v3 .nav-item.active {
  box-shadow: none;
}
html.v3 .btn-gold,
html.v3 .btn-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffd1e0 0%, #efc276 34%, #ff6b9d 58%, #c084fc 100%);
  color: #1a1206;
  border: 1px solid rgba(255, 240, 205, 0.5);
  box-shadow:
    0 12px 30px -12px rgba(232, 177, 91, 0.55),
    inset 0 1px 0 rgba(249,247,254, 0.7),
    inset 0 -1px 0 rgba(120, 72, 10, 0.45);
}
html.v3 .btn-gold::after,
html.v3 .btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(249,247,254, 0.55), transparent);
  transform: skewX(-18deg);
  transition: left 0.7s var(--ease-v3);
  pointer-events: none;
}
html.v3 .btn-gold:hover::after,
html.v3 .btn-primary:hover::after {
  left: 130%;
}
html.v3 .btn-gold:active,
html.v3 .btn-primary:active {
  transform: translateY(0) scale(0.985);
}
html.v3 .btn-cyan {
  border: 1px solid rgba(190, 240, 250, 0.4);
}

/* F4. 卡片鼠标聚光灯（cinema.js 写 --mx/--my；含生产 .card） */
.vcard,
.pcard,
.plan-card,
.tcard,
.media-cell,
.tk,
.studio,
.param,
.card {
  position: relative;
}
.vcard::after,
.pcard::after,
.plan-card::after,
.tcard::after,
.media-cell::after,
.tk::after,
.studio::after,
.param::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s var(--ease-v3);
  z-index: 2;
  background: radial-gradient(
    260px circle at var(--mx, 50%) var(--my, 0%),
    rgba(245, 200, 126, 0.14),
    transparent 62%
  );
}
.studio::after,
.param::after {
  background: radial-gradient(
    320px circle at var(--mx, 50%) var(--my, 0%),
    rgba(245, 200, 126, 0.07),
    transparent 60%
  );
}
.vcard:hover::after,
.pcard:hover::after,
.plan-card:hover::after,
.tcard:hover::after,
.media-cell:hover::after,
.tk:hover::after,
.studio:hover::after,
.param:hover::after {
  opacity: 1;
}
.vcard .vmeta,
.pcard .pcard-body,
.pcard .pcard-arrow,
.pcard .ai-flag,
.tcard > *,
.media-cell .mc-tag,
.tk > *,
.studio > *,
.param > * {
  position: relative;
  z-index: 3;
}
.plan-card .plan-name,
.plan-card .plan-price,
.plan-card .plan-orig,
.plan-card .plan-list,
.plan-card .btn {
  z-index: 3;
}

/* F5. 流媒体海报墙：rail 两端渐隐 + 方向箭头 */
.rail-zone {
  position: relative;
}
html.v3 .rail {
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 26px,
    #000 calc(100% - 26px),
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 26px,
    #000 calc(100% - 26px),
    transparent 100%
  );
}
.rail-arrow {
  position: absolute;
  top: 0;
  bottom: 18px;
  width: 46px;
  z-index: 6;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-2);
  background: linear-gradient(90deg, rgba(8, 10, 15, 0.86), rgba(8, 10, 15, 0));
  opacity: 0;
  transition: opacity 0.25s var(--ease-v3);
  pointer-events: none;
}
.rail-zone:hover .rail-arrow.avail {
  opacity: 1;
  pointer-events: auto;
}
.rail-arrow.right {
  right: 0;
  transform: scaleX(-1);
}
.rail-arrow svg {
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.8));
}
.rail-arrow:active svg {
  transform: scale(0.88);
}
html.v3 .vcard {
  transition:
    transform 0.3s var(--ease-v3),
    box-shadow 0.3s,
    border-color 0.3s;
}
html.v3 .vcard:hover {
  transform: translateY(-7px) scale(1.015);
  z-index: 5;
  box-shadow:
    0 26px 54px -20px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(232, 177, 91, 0.4),
    0 0 40px -14px rgba(232, 177, 91, 0.5);
}
html.v3 .pcard:hover {
  transform: translateY(-7px) scale(1.01);
}

/* F6. Hero 宽银幕首映 + 标题逐行揭示（cinema.js 加 .lb/.go/.hero-rv） */
.lb-bar {
  position: absolute;
  left: 0;
  right: 0;
  height: 20%;
  background: #000;
  z-index: 8;
  pointer-events: none;
}
.lb-bar.top {
  top: 0;
}
.lb-bar.bottom {
  bottom: 0;
}
html.v3 .cinema.lb .lb-bar {
  transition: transform 1.05s var(--ease-v3) 0.1s;
}
html.v3 .cinema.lb.go .lb-bar.top {
  transform: translateY(-101%);
}
html.v3 .cinema.lb.go .lb-bar.bottom {
  transform: translateY(101%);
}
html.v3 .hero-rv .hero-kicker,
html.v3 .hero-rv .hero-title,
html.v3 .hero-rv .hero-sub,
html.v3 .hero-rv .hero-cta {
  opacity: 0;
}
html.v3 .cinema.lb.go .hero-kicker {
  animation: heroRise 0.7s var(--ease-v3) 0.55s both;
}
html.v3 .cinema.lb.go .hero-title {
  animation: heroRise 0.8s var(--ease-v3) 0.68s both;
}
html.v3 .cinema.lb.go .hero-sub {
  animation: heroRise 0.8s var(--ease-v3) 0.82s both;
}
html.v3 .cinema.lb.go .hero-cta {
  animation: heroRise 0.8s var(--ease-v3) 0.96s both;
}
@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(26px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}
html.v3 .play-center::before {
  content: '';
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1px solid rgba(245, 200, 126, 0.5);
  animation: pcPulse 2.6s ease-out infinite;
}
@keyframes pcPulse {
  0% {
    transform: scale(0.9);
    opacity: 0.7;
  }
  70% {
    transform: scale(1.35);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

/* F7. 滚动进入揭示（cinema.js 标 data-rv，失败不白屏） */
html.v3 [data-rv] {
  opacity: 0;
  transform: translateY(18px);
}
html.v3 [data-rv].in {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.65s var(--ease-v3),
    transform 0.65s var(--ease-v3);
}

/* F8. 胶片舞台 loader：齿孔走动 + 进度弧（StageKit，task#7 接线） */
html.v3 .stage-ring {
  position: relative;
}
html.v3 .stage-ring::after {
  content: '';
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  background: conic-gradient(var(--gold-2) calc(var(--p, 0) * 1%), rgba(249,247,254, 0.07) 0);
  -webkit-mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 3.5px),
    #000 calc(100% - 2.5px)
  );
  mask: radial-gradient(farthest-side, transparent calc(100% - 3.5px), #000 calc(100% - 2.5px));
  opacity: 0.95;
}
.sk-cinema {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.sk-cinema::before,
.sk-cinema::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 9px;
  background: repeating-linear-gradient(90deg, #000 0 11px, rgba(249,247,254, 0.12) 11px 22px);
  animation: sprocket 1.1s linear infinite;
}
.sk-cinema::before {
  top: 0;
}
.sk-cinema::after {
  bottom: 0;
}
@keyframes sprocket {
  to {
    background-position: 22px 0;
  }
}

/* F9. 空状态：场记板 */
html.v3 .dock-empty {
  position: relative;
  padding-top: 58px;
}
html.v3 .dock-empty::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 46px;
  height: 40px;
  opacity: 0.55;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23E8B15B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 20h36v20a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2z'/%3E%3Cpath d='M6 20 8.5 9.5 15 12l-2.5 10.5M15 12l6.5-2.5L19 20M21.5 9.5 28 12l-2.5 8M28 12l6.5-2.5L32 20M34.5 9.5 41 12l-3 8'/%3E%3C/svg%3E")
    center/contain no-repeat;
}

/* F10. 顶部首映加载条（cinema.js 注入 #v3-prog） */
#v3-prog {
  position: fixed;
  top: 0;
  left: 0;
  height: 2.5px;
  width: 0;
  z-index: 999;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--gold-2), var(--cyan-2));
  box-shadow: 0 0 12px rgba(232, 177, 91, 0.8);
  opacity: 0;
  transition:
    width 0.5s var(--ease-v3),
    opacity 0.3s;
}

/* F11. 电影暗场登录欢迎屏（cinema.js 注入 #v3-login；接真实鉴权见 task#9） */
#v3-login {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
#v3-login.show {
  display: flex;
}
.v3-lg-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 78% 12%, rgba(232, 177, 91, 0.16), transparent 60%),
    radial-gradient(800px 600px at 12% 88%, rgba(91, 200, 232, 0.13), transparent 60%),
    linear-gradient(160deg, #0c0f17, #07090f);
}
.v3-lg-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
.v3-lg-card {
  position: relative;
  width: 392px;
  max-width: 100%;
  border-radius: 22px;
  padding: 38px 34px 30px;
  background: linear-gradient(180deg, rgba(22, 27, 39, 0.82), rgba(13, 16, 24, 0.88));
  border: 1px solid rgba(232, 177, 91, 0.22);
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  box-shadow:
    0 40px 90px -30px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(249,247,254, 0.08);
  animation: lgIn 0.6s var(--spring) both;
}
@keyframes lgIn {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.v3-lg-logo {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
}
.v3-lg-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 25px;
  letter-spacing: 2px;
  text-align: center;
}
.v3-lg-title b {
  background: var(--gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.v3-lg-sub {
  text-align: center;
  font-size: 12.5px;
  color: var(--txt-3);
  letter-spacing: 2px;
  margin: 9px 0 26px;
}
.v3-input {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(8, 10, 16, 0.6);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 15px;
  margin-bottom: 13px;
  transition: 0.18s;
}
.v3-input:focus-within {
  border-color: rgba(232, 177, 91, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}
.v3-input svg {
  width: 17px;
  height: 17px;
  color: var(--txt-3);
  flex: none;
}
.v3-input input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 14px;
  color: var(--txt);
}
.v3-input input::placeholder {
  color: var(--txt-3);
}
.v3-lg-btn {
  width: 100%;
  justify-content: center;
  padding: 14px;
  margin-top: 6px;
  border-radius: 12px;
}
.v3-lg-guest {
  display: block;
  text-align: center;
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--txt-3);
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
}
.v3-lg-guest:hover {
  color: var(--gold-2);
}
.v3-lg-foot {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 10.5px;
  color: rgba(167, 176, 192, 0.5);
  letter-spacing: 1px;
}

/* F12. FIN / 404 放映结束（cinema.js 注入 #v3-fin；接真实路由见 task#9） */
#v3-fin {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 42%, #f7f7f9, #05060a 75%);
  flex-direction: column;
  text-align: center;
  padding: 24px;
}
#v3-fin.show {
  display: flex;
  animation: fade 0.5s ease both;
}
.v3-fin-clap {
  width: 74px;
  height: 66px;
  margin-bottom: 26px;
  opacity: 0.85;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23E8B15B' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 20h36v20a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2z'/%3E%3Cpath d='M6 20 8.5 9.5 15 12l-2.5 10.5M15 12l6.5-2.5L19 20M21.5 9.5 28 12l-2.5 8M28 12l6.5-2.5L32 20M34.5 9.5 41 12l-3 8'/%3E%3C/svg%3E")
    center/contain no-repeat;
  animation: finClap 1.2s var(--spring) 0.2s both;
}
@keyframes finClap {
  from {
    opacity: 0;
    transform: rotate(-18deg) translateY(-10px);
  }
  to {
    opacity: 0.85;
    transform: none;
  }
}
.v3-fin-title {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 6px;
}
.v3-fin-sub {
  margin-top: 12px;
  font-size: 13px;
  color: var(--txt-3);
  letter-spacing: 2px;
}
.v3-fin-btn {
  margin-top: 30px;
}
@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* F13. v2 厂牌片头（cinema.js 注入 #studioIntro） */
#studioIntro {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 45%, #f7f7f9, #05060a 78%);
  overflow: hidden;
}
#studioIntro.done {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}
#studioIntro .si-beam {
  position: absolute;
  top: -30%;
  left: 50%;
  width: 120vw;
  height: 60vh;
  transform: translateX(-50%) rotate(-8deg);
  background: linear-gradient(90deg, transparent, rgba(255, 107, 157, 0.1), transparent);
  filter: blur(30px);
  opacity: 0;
}
#studioIntro.play .si-beam {
  animation: siBeam 2.6s var(--ease-film) both;
}
@keyframes siBeam {
  0% {
    opacity: 0;
    transform: translateX(-70%) rotate(-8deg);
  }
  40% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(-30%) rotate(-8deg);
  }
}
#studioIntro .si-glow {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 177, 91, 0.22), transparent 68%);
  filter: blur(20px);
  opacity: 0;
}
#studioIntro.play .si-glow {
  animation: siGlow 3s var(--ease-film) both;
}
@keyframes siGlow {
  0% {
    opacity: 0;
    transform: scale(0.7);
  }
  45% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0.5;
    transform: scale(1.05);
  }
}
#studioIntro .si-logo {
  width: 78px;
  height: 78px;
  margin-bottom: 20px;
  opacity: 0;
  position: relative;
}
#studioIntro.play .si-logo {
  animation: siLogo 1.1s var(--spring) 0.15s both;
}
@keyframes siLogo {
  from {
    opacity: 0;
    transform: scale(0.6) rotate(-12deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
#studioIntro .si-name {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 5px;
  opacity: 0;
}
#studioIntro .si-name b {
  color: var(--gold);
}
#studioIntro.play .si-name {
  animation: heroRise 0.8s var(--ease-v3) 0.5s both;
}
#studioIntro .si-sub {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 7px;
  color: var(--txt-3);
  margin-top: 9px;
  opacity: 0;
}
#studioIntro.play .si-sub {
  animation: heroRise 0.8s var(--ease-v3) 0.68s both;
}
#studioIntro .si-skip {
  position: absolute;
  bottom: 26px;
  right: 30px;
  font-size: 12.5px;
  color: var(--txt-3);
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0;
  transition: 0.2s;
}
#studioIntro.play .si-skip {
  animation: fade 0.6s ease 1.4s both;
}
#studioIntro .si-skip:hover {
  color: var(--gold-2);
}

/* F16. 任务进度 Dock 换皮（生产 window.TaskTracker 注入 .tt-*，旧紫粉→暖金冷青）
   注入 <style> 落在 head 末尾（cinema.css 之后），故用 html.v3 提升特异性覆盖，零改 app.js 逻辑 */
html.v3 .tt-panel {
  background: linear-gradient(180deg, rgba(18, 22, 31, 0.96), rgba(10, 12, 18, 0.96));
  border: 1px solid rgba(232, 177, 91, 0.22);
  box-shadow:
    0 18px 50px -18px rgba(0, 0, 0, 0.85),
    inset 0 1px 0 rgba(249,247,254, 0.05);
}
html.v3 .tt-head {
  background: linear-gradient(90deg, rgba(232, 177, 91, 0.12), rgba(232, 177, 91, 0.02));
  border-bottom: 1px solid rgba(232, 177, 91, 0.18);
}
html.v3 .tt-title {
  color: var(--txt);
}
html.v3 .tt-badge {
  background: var(--gold-grad);
  color: #1a1206;
}
html.v3 .tt-btn {
  color: var(--txt-2);
}
html.v3 .tt-btn:hover {
  background: rgba(249,247,254, 0.08);
  color: var(--gold-2);
}
html.v3 .tt-empty {
  color: var(--txt-3);
}
html.v3 .tt-item {
  background: rgba(249,247,254, 0.035);
  border: 1px solid var(--line);
}
html.v3 .tt-ilabel {
  color: var(--txt);
}
html.v3 .tt-sp {
  background: rgba(232, 177, 91, 0.15);
  color: var(--gold-2);
}
html.v3 .tt-sd {
  background: rgba(88, 201, 142, 0.15);
  color: var(--ok);
}
html.v3 .tt-sf {
  background: rgba(229, 99, 92, 0.15);
  color: var(--danger);
}
html.v3 .tt-bar {
  background: rgba(249,247,254, 0.08);
}
html.v3 .tt-fill {
  background: linear-gradient(90deg, var(--gold), var(--cyan));
}
html.v3 .tt-imeta {
  color: var(--txt-3);
}
html.v3 .tt-iresult a {
  color: var(--cyan-2);
}
html.v3 .tt-iresult a:hover {
  color: var(--gold-2);
}
html.v3 .tt-ix {
  color: var(--txt-3);
}
html.v3 .tt-ix:hover {
  color: var(--danger);
}

/* F17. 对话首页 panel-dash 影院化换皮
   生产首页是聊天 UI（chat-welcome/chat-quick-grid），非原型营销 Hero+海报墙；
   守"只换视觉层"红线：不重建结构、不注入海报墙（避免版权素材），
   仅对既有 chat-* 元素施加影院质感，并把硬编码靛蓝紫(#6366f1/#8b5cf6/rgba(99,102,241)/#1e293b/#253349)改暖金冷青 */
html.v3 .chat-header {
  border-bottom: 1px solid rgba(232, 177, 91, 0.14);
}
html.v3 .chat-header-avatar {
  box-shadow:
    0 0 0 1px rgba(232, 177, 91, 0.35),
    0 4px 18px -4px rgba(232, 177, 91, 0.45);
}
html.v3 .chat-header-name {
  font-family: var(--serif);
  letter-spacing: 0.5px;
}
html.v3 .chat-header-status {
  color: var(--cyan-2);
}
/* 欢迎区：放映机式暖金冷青氛围光（纯 background，不动结构） */
html.v3 .chat-welcome {
  position: relative;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(232, 177, 91, 0.07), transparent 60%),
    radial-gradient(90% 60% at 50% 100%, rgba(91, 200, 232, 0.05), transparent 55%);
}
html.v3 .chat-welcome-icon {
  position: relative;
  z-index: 0;
  filter: drop-shadow(0 6px 18px rgba(232, 177, 91, 0.35));
}
html.v3 .chat-welcome-icon::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: -1;
  width: 104px;
  height: 104px;
  margin: -52px 0 0 -52px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(232, 177, 91, 0.2), transparent 70%);
  box-shadow: 0 0 0 1px rgba(232, 177, 91, 0.16);
  animation: welcomeHalo 3.6s var(--ease-v3) infinite;
}
@keyframes welcomeHalo {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(0.92);
  }
  50% {
    opacity: 1;
    transform: scale(1.07);
  }
}
html.v3 .chat-welcome-title {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 1px;
  background: var(--gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
html.v3 .chat-welcome-sub {
  color: var(--txt-2);
}
/* 功能快捷卡（对应原型 .pcard 功能大卡）：panel 渐变 + 金边 hover + 鼠标聚光灯 */
html.v3 .chat-quick-card {
  background: linear-gradient(180deg, rgba(22, 27, 39, 0.85), rgba(15, 18, 26, 0.85));
  border: 1px solid var(--line);
  border-radius: var(--r);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.28s var(--ease-v3),
    border-color 0.28s,
    box-shadow 0.28s,
    background 0.28s;
}
html.v3 .chat-quick-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  background: radial-gradient(
    220px circle at var(--mx, 50%) var(--my, 50%),
    rgba(232, 177, 91, 0.14),
    transparent 60%
  );
}
html.v3 .chat-quick-card:hover {
  transform: translateY(-3px);
  border-color: rgba(232, 177, 91, 0.45);
  background: linear-gradient(180deg, rgba(26, 31, 43, 0.92), rgba(17, 20, 29, 0.92));
  box-shadow:
    0 12px 30px -12px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(232, 177, 91, 0.18);
}
html.v3 .chat-quick-card:hover::before {
  opacity: 1;
}
html.v3 .chat-quick-icon {
  filter: drop-shadow(0 2px 8px rgba(255, 107, 157, 0.3));
}
html.v3 .chat-quick-text h4 {
  color: var(--txt);
  font-family: var(--serif);
  letter-spacing: 0.3px;
}
html.v3 .chat-quick-text p {
  color: var(--txt-2);
}
/* 提示词标签：靛蓝→暖金 */
html.v3 .chat-prompt-tag {
  background: rgba(232, 177, 91, 0.06);
  border: 1px solid var(--line-2);
  color: var(--gold-2);
}
html.v3 .chat-prompt-tag:hover {
  background: rgba(232, 177, 91, 0.14);
  border-color: var(--gold);
  color: var(--gold-2);
}
/* 发送按钮：靛蓝紫渐变→金渐变主 CTA */
html.v3 .chat-send-btn {
  background: var(--gold-grad);
  color: #1a1206;
  box-shadow: 0 4px 16px -4px rgba(232, 177, 91, 0.5);
}
html.v3 .chat-send-btn:hover {
  box-shadow: 0 6px 22px -4px rgba(232, 177, 91, 0.65);
}
/* 输入框：深 slate→panel 玻璃 */
html.v3 .chat-input-box {
  background: linear-gradient(180deg, rgba(22, 27, 39, 0.7), rgba(16, 19, 28, 0.7));
  border-color: var(--line-2);
}
html.v3 .chat-input-btn:hover {
  background: rgba(255, 107, 157, 0.1);
  color: var(--gold-2);
}
/* 历史抽屉 / 续聊 chip 金线 */
html.v3 .chat-history-head {
  border-bottom: 1px solid rgba(232, 177, 91, 0.14);
}
html.v3 .chat-resume-chip:hover {
  border-color: var(--gold);
  color: var(--gold-2);
}

/* F18. 各创作页（video/studio/content-workshop/audio/image/smart-canvas/digital-human）影院化打磨
   §B 令牌重映射已自动把 var(--*) 元素换暖金冷青；此处补令牌到不了的§2 组件质感：
   serif 页头+金竖条、金额 mono、次按钮/Tab 去靛蓝、结果容器影院化。全部 html.v3 门控、纯视觉、零改结构/逻辑 */
/* 页头：serif 标题 + 4×22 金色竖条（对应§2 .section-head；.page-header 全站通用） */
html.v3 .page-header h1 {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0.5px;
  position: relative;
  padding-left: 16px;
}
html.v3 .page-header h1::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 22px;
  border-radius: 2px;
  background: var(--gold-grad);
  box-shadow: 0 0 10px rgba(232, 177, 91, 0.5);
}
html.v3 .page-header p {
  color: var(--txt-2);
}
/* 金额/消耗/积分/时长：mono 等宽（§1 金额用 mono；不改既有颜色层级） */
html.v3 [id$='Cost'],
html.v3 .cost,
html.v3 .dur {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
/* 次按钮 hover：去设计系统靛蓝(rgba(99,102,241))，改金边金字 */
html.v3 .btn-secondary:hover {
  background: rgba(255, 107, 157, 0.1);
  border-color: var(--gold);
  color: var(--gold-2);
  box-shadow: 0 6px 20px -6px rgba(232, 177, 91, 0.4);
}
/* Tab 子导航：玻璃底 + hover 金（active 已由 var(--gold-gradient) 自动金） */
html.v3 .ab-subnav {
  background: linear-gradient(180deg, rgba(22, 27, 39, 0.6), rgba(16, 19, 28, 0.6));
  border: 1px solid var(--line);
}
html.v3 .ab-subnav-btn:hover {
  color: var(--gold-2);
  background: rgba(232, 177, 91, 0.08);
}
/* 结果容器影院化：仅对已声明内联 bg/border 的盒子加重框（避免给 margin-only 包裹层套空框）
   视频类纯黑场 + 金边 + --shadow（内联样式用 !important 覆盖） */
html.v3 #videoResult,
html.v3 #studioVideoResult,
html.v3 #vcBatchResult,
html.v3 #ttsPlayer,
html.v3 #musicResult,
html.v3 #audioEditResult,
html.v3 #asrResult,
html.v3 #vcInferResult {
  background: linear-gradient(180deg, rgba(10, 12, 18, 0.92), rgba(8, 10, 15, 0.92)) !important;
  border: 1px solid rgba(232, 177, 91, 0.2) !important;
  border-radius: 16px !important;
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(249,247,254, 0.04) !important;
}
/* 文案/内容结果：金边卡 */
html.v3 #cwOutput,
html.v3 #studioContentResult {
  background: linear-gradient(180deg, rgba(249,247,254, 0.96), rgba(12, 15, 22, 0.9)) !important;
  border: 1px solid rgba(232, 177, 91, 0.18) !important;
  border-radius: 16px !important;
  box-shadow: var(--shadow) !important;
}
html.v3 #cwOutputText,
html.v3 #studioContentText {
  color: var(--txt);
  line-height: 1.75;
}
/* 结果内视频：纯黑背景（§2 视频区背景纯黑）+ 圆角，不论注入到哪个 *Result/*ResultContent */
html.v3 [id$='Result'] video,
html.v3 [id$='ResultContent'] video,
html.v3 #imgResults video {
  background: #000;
  border-radius: 10px;
}
/* 图片结果：金边悬停 + 微放大（§2 海报卡 hover；无封面时由既有占位逻辑负责，不在此造图） */
html.v3 #imgResults img,
html.v3 [id$='ResultContent'] img {
  border-radius: 10px;
  border: 1px solid var(--line);
  transition:
    transform 0.3s var(--ease-v3),
    box-shadow 0.3s,
    border-color 0.3s;
}
html.v3 #imgResults img:hover {
  transform: scale(1.02);
  border-color: rgba(232, 177, 91, 0.5);
  box-shadow:
    0 10px 30px -10px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(232, 177, 91, 0.25);
}
/* 音频结果播放器满宽 */
html.v3 #ttsAudio,
html.v3 #musicResultAudio,
html.v3 #audioEditResultAudio {
  width: 100%;
}

/* F19. StageKit 结果舞台（零侵入镜像版，仅 cinema.js 模块10 对 TaskTracker 异步任务注入）
   移植自 proto/style_0.css 518-566 + .bar(160-161)；全部 html.v3 门控。
   注：.sk-cinema 沿用 F8 齿孔走动版（不引 proto 扫光）；.stage-ring 用 (0,3,0) 覆盖 F8 的 position:relative，
   成为屏幕内居中 76px 进度环。三态 .stage-panel.loading/.result/.fail 由 [hidden] 互斥。 */
html.v3 .stage {
  margin-top: 22px;
}
html.v3 .stage[hidden],
html.v3 .stage-panel[hidden] {
  display: none !important;
}
html.v3 .stage-panel {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 20px;
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
html.v3 .stage-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 18% 0%, rgba(232, 177, 91, 0.09), transparent 60%),
    radial-gradient(100% 90% at 100% 100%, rgba(91, 200, 232, 0.08), transparent 55%);
}
html.v3 .stage-panel > * {
  position: relative;
  z-index: 1;
}
html.v3 .stage-cinema {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
}
html.v3 .stage-screen {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line-2);
  box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.85);
}
html.v3 .stage-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  background: repeating-linear-gradient(
    0deg,
    rgba(249,247,254, 0.025) 0 2px,
    transparent 2px 5px
  );
}
html.v3 .stage-scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 36%;
  z-index: 2;
  background: linear-gradient(180deg, rgba(91, 200, 232, 0.2), transparent);
  animation: scanmove 2.4s ease-in-out infinite;
}
@keyframes scanmove {
  0% {
    transform: translateY(-40%);
  }
  100% {
    transform: translateY(300%);
  }
}
html.v3 .stage .stage-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  z-index: 3;
}
html.v3 .stage .stage-ring::after {
  inset: -7px;
}
html.v3 .ring {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 2px solid rgba(249,247,254, 0.12);
  border-top-color: var(--gold);
  border-right-color: var(--cyan);
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
html.v3 .stage-screen-cap {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--txt-3);
  letter-spacing: 0.08em;
}
html.v3 .stage-screen-cap b {
  color: var(--cyan-2);
  font-weight: 600;
}
html.v3 .stage-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
html.v3 .stage-title {
  font-size: 21px;
  line-height: 1.25;
  color: var(--txt);
  font-family: var(--serif);
}
html.v3 .gensteps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 2px 0;
  padding: 0;
}
html.v3 .gensteps li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--txt-3);
  transition: color 0.25s;
}
html.v3 .gs-dot {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  border: 1.5px solid var(--line-2);
  display: grid;
  place-items: center;
  flex: none;
  font-size: 10px;
  color: transparent;
  transition: 0.25s;
}
html.v3 .gensteps li.done {
  color: var(--txt-2);
}
html.v3 .gensteps li.done .gs-dot {
  border-color: var(--ok);
  color: var(--ok);
}
html.v3 .gensteps li.run {
  color: var(--gold);
}
html.v3 .gensteps li.run .gs-dot {
  border-color: var(--gold);
}
html.v3 .gensteps li.run .gs-dot::after {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  animation: gpulse 1s ease-in-out infinite;
}
@keyframes gpulse {
  50% {
    opacity: 0.25;
  }
}
html.v3 .stage .bar {
  height: 4px;
  border-radius: 99px;
  background: rgba(249,247,254, 0.08);
  margin-top: 7px;
  overflow: hidden;
}
html.v3 .stage .bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  width: 0;
  transition: width 0.4s;
  background: linear-gradient(90deg, var(--gold-3), var(--gold-2));
  box-shadow: 0 0 10px rgba(232, 177, 91, 0.6);
}
html.v3 .stage .bar.big {
  height: 8px;
  margin: 2px 0;
}
html.v3 .stage-eta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--txt-3);
}
html.v3 .stage-side .btn {
  align-self: flex-start;
}
html.v3 .stage-final {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: #000;
  padding: 0;
}
html.v3 .stage-final img,
html.v3 .stage-final video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
}
html.v3 .stage-final::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.6));
}
html.v3 .rec-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 3;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--cyan-2);
  border: 1px solid rgba(91, 200, 232, 0.4);
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(10, 12, 18, 0.5);
}
html.v3 .stage-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
html.v3 .stage-tags .chip {
  cursor: default;
  font-size: 11px;
  padding: 4px 10px;
  opacity: 1;
}
html.v3 .stage-ok {
  font-size: 12.5px;
  color: var(--ok);
  display: flex;
  gap: 7px;
  align-items: center;
}
html.v3 .stage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}
html.v3 .gk-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
html.v3 .gk-head h3 {
  font-size: 22px;
  font-family: var(--serif);
}
html.v3 .stage-panel.fail {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  gap: 11px;
  padding: 38px 22px;
}
html.v3 .fail-ic {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1.5px solid var(--danger);
  color: var(--danger);
  display: grid;
  place-items: center;
  font-size: 24px;
}
html.v3 .stage-fail-msg {
  color: var(--txt-2);
  font-size: 14px;
  max-width: 540px;
  line-height: 1.6;
}
html.v3 .stage-fail-sub {
  color: var(--ok);
  font-size: 12.5px;
}
html.v3 .fail-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
@media (max-width: 920px) {
  html.v3 .stage-panel {
    grid-template-columns: 1fr;
  }
  html.v3 .stage-title {
    font-size: 18px;
  }
}

/* F14. 减弱动态偏好：全部降级即时显示 */
@media (prefers-reduced-motion: reduce) {
  html.v3 [data-rv],
  html.v3 .hero-rv .hero-kicker,
  html.v3 .hero-rv .hero-title,
  html.v3 .hero-rv .hero-sub,
  html.v3 .hero-rv .hero-cta {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
  .nav-cursor,
  .lb-bar,
  .sk-cinema::before,
  .sk-cinema::after,
  .play-center::before,
  html.v3 .play-center::before,
  #studioIntro,
  #studioIntro *,
  html.v3 .tt-indet,
  html.v3 .chat-welcome-icon::before,
  html.v3 .stage-scan,
  html.v3 .ring,
  html.v3 .gensteps li.run .gs-dot::after {
    animation: none !important;
    transition: none !important;
  }
  #studioIntro {
    display: none !important;
  }
}

/* F15. 移动端适配 */
@media (max-width: 640px) {
  .rail-arrow {
    display: none;
  }
  html.v3 .rail {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .v3-lg-card {
    padding: 30px 24px 26px;
  }
  #studioIntro .si-name {
    font-size: 26px;
    letter-spacing: 3px;
  }
}

/* F20. 移动端影院化（≤768 抽屉/汉堡/底部导航；纯视觉、html.v3 门控、不改结构/逻辑）
   生产 .mobile-menu-btn:hover 用 rgba(0,0,0,.05)，在影院暗场不可见 → 改金晕；
   汉堡三线 default currentColor → 暖金；抽屉/遮罩/底部导航统一到金青暗场。 */
@media (max-width: 768px) {
  html.v3 .mobile-menu-btn {
    color: var(--txt);
    flex-shrink: 0;
  }
  html.v3 .mobile-menu-btn span,
  html.v3 .mobile-menu-btn span::before,
  html.v3 .mobile-menu-btn span::after {
    background: var(--gold-2);
  }
  html.v3 .mobile-menu-btn:hover {
    background: rgba(232, 177, 91, 0.12);
  }
  html.v3 .sidebar.mobile-open {
    box-shadow:
      2px 0 24px rgba(0, 0, 0, 0.6),
      0 0 0 1px rgba(232, 177, 91, 0.14);
  }
  html.v3 .sidebar-overlay {
    background: rgba(6, 8, 12, 0.62);
  }
  html.v3 .mobile-bottom-nav {
    background: linear-gradient(180deg, rgba(18, 22, 31, 0.96), rgba(10, 12, 18, 0.98));
    border-top: 1px solid var(--line);
  }
  html.v3 .mobile-bottom-nav a {
    color: var(--txt-2);
    min-height: 44px;
  }
  html.v3 .mobile-bottom-nav a.active {
    color: var(--gold-2);
  }
}

/* ============================================================
   G. 原型结构移植层（阶段② home 拆分：index.html 营销半）
   ------------------------------------------------------------
   · 基础样式逐字取自原型 index.template.html 主 <style>
   · 与生产重名类（hero/tabs/section-head/bar/dur）一律加作用域，
     原型独有类（rail/vcard/pcard/tcard/modal-mask/player）全局安全
   · 零改标记：只新增选择器，不覆盖生产既有规则优先级
   ============================================================ */

/* G1. Hero 影院氛围层：叠在 fv 门脸视频之上；内容层抬到 z2 不被压 */
.hero > .hero-badge,
.hero > .hero-title,
.hero > .hero-sub,
.hero > .hero-input-box,
.hero > .hero-tags,
.hero > .hero-stats {
  position: relative;
  z-index: 2;
}
.hero .hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(8, 10, 15, 0.92) 0%,
      rgba(8, 10, 15, 0.62) 38%,
      rgba(8, 10, 15, 0.12) 70%,
      rgba(8, 10, 15, 0.35) 100%
    ),
    linear-gradient(0deg, rgba(8, 10, 15, 0.85), transparent 45%);
}
.hero .hero-warm {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 92% at 80% 16%, rgba(232, 177, 91, 0.17), transparent 46%),
    linear-gradient(92deg, rgba(91, 200, 232, 0.06), transparent 42%);
}
.hero .hero-streak {
  position: absolute;
  left: -12%;
  right: -12%;
  top: 32%;
  height: 1.5px;
  z-index: 1;
  pointer-events: none;
  opacity: 0.55;
  transform: rotate(-3deg);
  background: linear-gradient(90deg, transparent, rgba(125, 216, 242, 0.6), transparent);
  box-shadow: 0 0 18px rgba(125, 216, 242, 0.4);
}
.hero #heroFx {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
/* 全宽 hero 挂 .cinema：保留胶片黑边，去圆角防页边怪角 */
.hero.cinema {
  border-radius: 0;
}

/* G2. REC 时间码（原型逐字，作用域 .hero） */
.hero .rec {
  position: absolute;
  top: 18px;
  right: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--cyan-2);
  letter-spacing: 1px;
  z-index: 3;
}
.hero .rec .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
  animation: yzPulse 1.4s infinite;
}
@keyframes yzPulse {
  50% {
    opacity: 0.35;
  }
}

/* G3. 播放中心钮：原型居中改右侧悬浮（生产 hero 为居中内容流，防遮挡） */
.hero .play-center {
  position: absolute;
  top: 50%;
  right: 5%;
  left: auto;
  transform: translateY(-50%);
  width: 84px;
  height: 84px;
  border-radius: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(232, 177, 91, 0.22), rgba(232, 177, 91, 0.04) 70%);
  border: 1.5px solid rgba(245, 200, 126, 0.85);
  color: var(--gold-2);
  box-shadow:
    0 0 0 8px rgba(232, 177, 91, 0.06),
    0 0 46px rgba(232, 177, 91, 0.5);
  transition: 0.25s;
  cursor: pointer;
}
.hero .play-center svg {
  width: 34px;
  height: 34px;
  margin-left: 4px;
}
.hero .play-center:hover {
  transform: translateY(-50%) scale(1.08);
  box-shadow:
    0 0 0 12px rgba(232, 177, 91, 0.08),
    0 0 70px rgba(232, 177, 91, 0.75);
}
@media (max-width: 900px) {
  .hero .play-center {
    width: 60px;
    height: 60px;
    top: auto;
    bottom: 18px;
    right: 18px;
    transform: none;
  }
  .hero .play-center:hover {
    transform: scale(1.06);
  }
}

/* G4. 海报墙 rail / vcard 基础（原型逐字；类名生产未占用） */
.rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  scroll-snap-type: x mandatory;
}
.vcard {
  position: relative;
  flex: 0 0 268px;
  scroll-snap-align: start;
  border-radius: 13px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  cursor: pointer;
  transition: 0.22s;
}
.vcard .ph {
  position: relative;
  height: 150px;
  overflow: hidden;
}
.vcard .ph-img,
.pcard .ph-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vcard .ph-img {
  transition: transform 0.5s ease;
}
.vcard:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 177, 91, 0.5);
  box-shadow:
    0 16px 40px -16px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(232, 177, 91, 0.25);
}
.vcard:hover .ph-img {
  transform: scale(1.07);
}
.vscrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8, 10, 15, 0.92), transparent 55%);
}
.vcard .dur {
  position: absolute;
  right: 8px;
  bottom: 8px;
  font-family: var(--mono);
  font-size: 11px;
  background: rgba(0, 0, 0, 0.72);
  padding: 2px 7px;
  border-radius: 6px;
  color: #e9edf3;
  letter-spacing: 0.5px;
}
.vplay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(232, 177, 91, 0.92);
  color: #1a1206;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: 0.2s;
  box-shadow: 0 0 26px rgba(232, 177, 91, 0.7);
}
.vcard:hover .vplay {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.vplay svg {
  width: 20px;
  height: 20px;
  margin-left: 2px;
}
.vmeta {
  padding: 11px 12px 13px;
}
.vtitle {
  font-family: var(--serif);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.vtag {
  margin-top: 5px;
  font-size: 11px;
  color: var(--cyan-2);
  letter-spacing: 1px;
}
.vtag .dotg {
  color: var(--gold);
}
.ph-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  background: linear-gradient(160deg, #ece5f8, #EDE7F7);
}

/* G5. 创作工坊 pcard 基础（原型逐字；类名生产未占用） */
.poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 18px;
}
.pcard {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid var(--line);
  height: 188px;
  cursor: pointer;
  transition: 0.24s;
  text-align: left;
  background: var(--panel);
}
.pcard .ph-img {
  transition: transform 0.6s ease;
}
.pcard:hover {
  transform: translateY(-5px);
  border-color: rgba(232, 177, 91, 0.55);
  box-shadow:
    0 20px 46px -18px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(232, 177, 91, 0.28);
}
.pcard:hover .ph-img {
  transform: scale(1.08);
}
.pcard-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(7, 9, 14, 0.96) 0%,
    rgba(7, 9, 14, 0.5) 42%,
    rgba(7, 9, 14, 0.08) 70%
  );
}
.pcard-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 17px;
}
.pcard-ico {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(232, 177, 91, 0.14);
  border: 1px solid rgba(232, 177, 91, 0.4);
  color: var(--gold-2);
  margin-bottom: 10px;
}
.pcard-ico svg {
  width: 18px;
  height: 18px;
}
.pcard-ico.ai {
  background: rgba(91, 200, 232, 0.13);
  border-color: rgba(91, 200, 232, 0.4);
  color: var(--cyan-2);
}
.pcard-title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1px;
}
.pcard-desc {
  font-size: 11.5px;
  color: var(--txt-2);
  margin-top: 4px;
}
.pcard-arrow {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(10, 12, 18, 0.55);
  border: 1px solid var(--line-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-2);
  opacity: 0;
  transform: translateX(-6px);
  transition: 0.2s;
}
.pcard:hover .pcard-arrow {
  opacity: 1;
  transform: none;
}
.pcard-arrow svg {
  width: 14px;
  height: 14px;
}
.ai-flag {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--cyan-2);
  border: 1px solid rgba(91, 200, 232, 0.4);
  background: rgba(10, 12, 18, 0.5);
  padding: 3px 8px;
  border-radius: 99px;
  z-index: 3;
}

/* G6. 继续创作 tcard 基础（原型逐字；.bar/.st 作用域限定防冲突） */
.tasklist {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}
.tcard {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel);
  transition: 0.18s;
  cursor: pointer;
  text-align: left;
  width: 100%;
}
.tcard:hover {
  border-color: rgba(232, 177, 91, 0.4);
  background: var(--panel-2);
}
.tcard .th {
  position: relative;
  width: 104px;
  height: 60px;
  flex: none;
  border-radius: 9px;
  overflow: hidden;
}
.tcard .th img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tcard .th .mini-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  opacity: 0;
  transition: 0.18s;
}
.tcard:hover .mini-play {
  opacity: 1;
}
.tcard .info {
  flex: 1;
  min-width: 0;
}
.tcard .t1 {
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tcard .t2 {
  font-size: 11px;
  color: var(--txt-3);
  margin-top: 4px;
}
.tcard .st {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  margin-top: 6px;
}
.tcard .st.ok {
  color: var(--ok);
}
.tcard .st.run {
  color: var(--gold-2);
}
.tcard .st.wait {
  color: var(--txt-3);
}
.tcard .bar {
  height: 4px;
  border-radius: 99px;
  background: rgba(249,247,254, 0.08);
  margin-top: 7px;
  overflow: hidden;
}
.tcard .bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--gold-3), var(--gold-2));
  box-shadow: 0 0 10px rgba(232, 177, 91, 0.6);
  width: 0;
  transition: width 0.4s;
}

/* G7. 演示播放弹窗（原型 .modal-mask/.player 逐字；类名生产未占用） */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(4, 5, 8, 0.86);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 5vw;
}
.modal-mask.on {
  display: flex;
  animation: yzFade 0.25s;
}
@keyframes yzFade {
  from {
    opacity: 0;
  }
}
.player {
  width: min(960px, 92vw);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 120px -30px #000;
  background: #000;
}
.player-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #0c0f16;
}
.player-title {
  font-family: var(--serif);
  font-size: 16px;
}
.player-close {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--txt-2);
  cursor: pointer;
  background: none;
  border: none;
  font-size: 16px;
}
.player-close:hover {
  color: #fff;
  background: rgba(249,247,254, 0.08);
}
.player video {
  width: 100%;
  display: block;
  background: #000;
  max-height: 70vh;
}

/* G8. bento 卡融合 pcard 交互层（作用域 .bento-card，不删生产内容） */
.bento-card .pcard-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    0deg,
    rgba(7, 9, 14, 0.9) 0%,
    rgba(7, 9, 14, 0.35) 45%,
    transparent 72%
  );
}
.bento-card .pcard-arrow {
  z-index: 3;
}
.bento-card:hover .pcard-arrow {
  opacity: 1;
  transform: none;
}
.bento-card .card-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: auto;
  z-index: 2;
  padding: 16px 17px;
}
.bento-card .bento-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  margin-bottom: 10px;
  font-size: 17px;
}
.bento-card .card-content h3 {
  font-family: var(--serif);
  letter-spacing: 1px;
  font-size: 17px;
  margin-bottom: 4px;
}
.bento-card .card-content p {
  font-size: 11.5px;
  color: var(--txt-2);
  flex: none;
  line-height: 1.55;
}
.bento-card .card-tag {
  margin-top: 10px;
}

/* G9. 作品社区 tabs → 原型胶囊签视觉（沿用生产类名，零新方言） */
#homeGalleryTabs {
  display: flex;
  gap: 6px;
  justify-content: center;
  overflow-x: auto;
  padding-bottom: 4px;
}
.gallery-tab {
  padding: 8px 17px;
  border-radius: 99px;
  font-size: 13px;
  color: var(--txt-2);
  border: 1px solid transparent;
  white-space: nowrap;
  transition: 0.16s;
  cursor: pointer;
}
.gallery-tab:hover {
  color: var(--txt);
}
.gallery-tab.active {
  color: var(--gold-2);
  border-color: rgba(232, 177, 91, 0.4);
  background: rgba(232, 177, 91, 0.09);
}
.section-head .more {
  display: inline-block;
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--txt-3);
  text-decoration: none;
}
.section-head .more:hover {
  color: var(--gold-2);
}

/* ===== H. 功能面板原型组件皮肤（app.html .panel 通用；html.v3 门控；
   生产内联样式以 !important 覆盖，零改 markup / 零改逻辑；规格取自原型 base CSS） ===== */
/* H1. 输入件 → 原型 .script-box 规格（bg-2 底 + line 边 + 12 圆角 + 聚焦金环） */
html.v3 .panel textarea,
html.v3 .panel input[type='text'],
html.v3 .panel input[type='number'],
html.v3 .panel input[type='password'],
html.v3 .panel input[type='search'],
html.v3 .panel input:not([type]) {
  background: var(--bg-2) !important;
  border: 1px solid var(--line) !important;
  border-radius: 12px !important;
  color: var(--txt) !important;
  font-size: 14px !important;
  line-height: 1.7 !important;
  padding: 12px 14px !important;
  outline: none !important;
  transition:
    border-color 0.16s,
    box-shadow 0.16s;
}
html.v3 .panel textarea:focus,
html.v3 .panel input[type='text']:focus,
html.v3 .panel input[type='number']:focus,
html.v3 .panel input[type='password']:focus,
html.v3 .panel input[type='search']:focus {
  border-color: rgba(232, 177, 91, 0.5) !important;
  box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1) !important;
}
/* H2. 下拉 → 原型 .sel-wrap 规格（appearance:none + 矢量 chevron） */
html.v3 .panel select {
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--panel) !important;
  border: 1px solid var(--line) !important;
  border-radius: 9px !important;
  padding: 9px 30px 9px 12px !important;
  font-size: 13px !important;
  color: var(--txt) !important;
  outline: none !important;
}
html.v3 .panel select:focus {
  border-color: rgba(232, 177, 91, 0.5) !important;
}
/* H3. 玻璃卡 → 原型 .studio/.side-card 规格（匹配生产内联 --bg-secondary 盒） */
html.v3 .panel [style*='--bg-secondary']:not(select):not(textarea):not(input) {
  background: linear-gradient(180deg, var(--panel), var(--bg-2)) !important;
  border: 1px solid var(--line) !important;
  border-radius: 16px !important;
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(249,247,254, 0.04) !important;
}
html.v3 .panel [style*='--bg-tertiary']:not(select):not(textarea):not(input) {
  background: var(--bg-2) !important;
  border: 1px solid var(--line) !important;
  border-radius: 12px !important;
}
/* H2b. 下拉 chevron 独立成规（避开 shorthand 与 var() 待替换态的同块干扰） */
html.v3 .panel select {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='10'%20height='6'%20viewBox='0%200%2010%206'%3E%3Cpath%20d='M1%201l4%204%204-4'%20fill='none'%20stroke='%239aa3b2'%20stroke-width='1.6'%20stroke-linecap='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
}
/* H4. 虚线上传位 → 原型 .drop 规格 */
html.v3 .panel [style*='dashed'] {
  border: 1.5px dashed rgba(232, 177, 91, 0.35) !important;
  background: rgba(232, 177, 91, 0.04) !important;
  border-radius: 12px !important;
  transition:
    border-color 0.2s,
    background 0.2s;
}
html.v3 .panel [style*='dashed']:hover {
  border-color: rgba(232, 177, 91, 0.6) !important;
  background: rgba(232, 177, 91, 0.08) !important;
}
/* H5. 可点选项卡 → 原型 .pick hover（金边 + 抬起） */
html.v3 .panel [style*='--bg-secondary'][style*='cursor:pointer'] {
  transition:
    transform 0.2s var(--ease-v3),
    border-color 0.2s,
    box-shadow 0.2s;
}
html.v3 .panel [style*='--bg-secondary'][style*='cursor:pointer']:hover {
  transform: translateY(-3px);
  border-color: rgba(232, 177, 91, 0.45) !important;
  box-shadow:
    0 12px 30px -12px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(232, 177, 91, 0.18) !important;
}
/* H6. 表单控件金色化（开关/滑杆/勾选） */
html.v3 .panel input[type='range'],
html.v3 .panel input[type='checkbox'],
html.v3 .panel input[type='radio'] {
  accent-color: var(--gold-2);
}
/* H7. 子导航 → 原型胶囊签（seg 规格） */
html.v3 .ab-subnav {
  border-radius: 99px !important;
  padding: 4px !important;
}
html.v3 .ab-subnav-btn {
  border-radius: 99px !important;
}
html.v3 .ab-subnav-btn.active {
  background: rgba(232, 177, 91, 0.12) !important;
  color: var(--gold-2) !important;
  box-shadow: inset 0 0 0 1px rgba(232, 177, 91, 0.45) !important;
}
/* H8. 面板内标题 serif 化（原型各级标题均 serif） */
html.v3 .panel h2,
html.v3 .panel h3,
html.v3 .panel h4 {
  font-family: var(--serif);
  letter-spacing: 0.3px;
}
/* H9. 任务/队列行 → 原型 .q-item 分隔线 + mono 元信息 */
html.v3 .panel [id$='TaskList'] > div,
html.v3 .panel [id$='taskList'] > div {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
html.v3 .panel [id$='TaskList'] > div:last-child,
html.v3 .panel [id$='taskList'] > div:last-child {
  border-bottom: none;
}

/* ===== I. 计费展示皮肤（会员 / 充值面板；html.v3 门控；
   规格取自原型 view-member(.plan-card.featured/.plan-badge/.btn-gold/.btn-ghost)
   与 view-recharge(.amt-grid/.amt/.a-num/.a-gift/.a-hot/.pay-way)；
   以 !important 覆盖生产内联样式与 H3 玻璃卡边框；零改 markup / 逻辑 / 价格 / fetch ===== */

/* ---- I1. 会员体系面板 #membershipBody ---- */
/* I1a. 当前等级数字 serif 化 */
html.v3 #memberLevel {
  font-family: var(--serif) !important;
  letter-spacing: 1px;
}
/* I1b. 档位卡网格：金卡(第3张)恢复原型 .plan-card.featured 金边+辉光（覆盖 H3 的 --line 边框） */
html.v3 #membershipBody > div:nth-of-type(2) > div:nth-child(3) {
  border-color: rgba(232, 177, 91, 0.6) !important;
  background: linear-gradient(
    180deg,
    rgba(255, 107, 157, 0.1),
    rgba(249,247,254, 0.02) 42%
  ) !important;
  box-shadow:
    0 26px 60px -32px rgba(232, 177, 91, 0.5),
    inset 0 1px 0 rgba(249,247,254, 0.05) !important;
}
/* I1c. 金卡角标 → 原型 .plan-badge 顶部居中金色胶囊（覆盖内联 top:12px/right:12px 淡金） */
html.v3 #membershipBody > div:nth-of-type(2) > div:nth-child(3) > div:first-child {
  position: absolute !important;
  top: -11px !important;
  right: auto !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  background: var(--gold-grad) !important;
  color: #1a1206 !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  letter-spacing: 1px !important;
  padding: 4px 15px !important;
  border-radius: 99px !important;
  white-space: nowrap;
  box-shadow: 0 6px 16px -8px rgba(232, 177, 91, 0.7) !important;
}
/* I1d. 档位名（font-size:18px;font-weight:700 的内联 div）→ serif */
html.v3 #membershipBody [style*='font-size:18px'][style*='font-weight:700'] {
  font-family: var(--serif) !important;
  letter-spacing: 1.5px;
}
/* I1e. 开通按钮基础规格（圆角/内距/字重/满宽） */
html.v3 #membershipBody button[onclick^='buyMembership'] {
  width: 100%;
  border-radius: 10px !important;
  padding: 11px 16px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer;
  transition:
    transform 0.16s var(--ease-v3),
    box-shadow 0.16s,
    border-color 0.16s,
    color 0.16s,
    background 0.16s;
}
/* I1f. 金卡按钮 → 原型 .btn-gold 实心金（覆盖内联 #F59E0B→#EF4444 离谱红渐变） */
html.v3 #membershipBody > div:nth-of-type(2) > div:nth-child(3) button[onclick^='buyMembership'] {
  background: var(--gold-grad) !important;
  color: #1a1206 !important;
  border: none !important;
  font-weight: 700 !important;
  box-shadow:
    0 8px 22px -8px rgba(232, 177, 91, 0.65),
    inset 0 1px 0 rgba(249,247,254, 0.4) !important;
}
html.v3
  #membershipBody
  > div:nth-of-type(2)
  > div:nth-child(3)
  button[onclick^='buyMembership']:hover {
  transform: translateY(-1px);
  box-shadow:
    0 12px 30px -8px rgba(232, 177, 91, 0.8),
    inset 0 1px 0 rgba(249,247,254, 0.5) !important;
}
/* I1g. 银卡/钻石按钮 → 原型 .btn-ghost 幽灵态（覆盖内联银/青渐变，统一到锁定配色） */
html.v3
  #membershipBody
  > div:nth-of-type(2)
  > div:not(:nth-child(3))
  button[onclick^='buyMembership'] {
  background: rgba(249,247,254, 0.04) !important;
  border: 1px solid var(--line-2) !important;
  color: var(--txt) !important;
}
html.v3
  #membershipBody
  > div:nth-of-type(2)
  > div:not(:nth-child(3))
  button[onclick^='buyMembership']:hover {
  border-color: var(--gold) !important;
  color: var(--gold-2) !important;
  background: rgba(232, 177, 91, 0.07) !important;
}

/* ---- I2. 充值中心面板 #panel-recharge ---- */
/* I2a. 充值英雄区 → 电影感玻璃 hero（生产独有营销块，统一改造） */
html.v3 .recharge-hero {
  background: linear-gradient(
    135deg,
    rgba(232, 177, 91, 0.09),
    rgba(91, 200, 232, 0.06)
  ) !important;
  border: 1px solid rgba(232, 177, 91, 0.22) !important;
  border-radius: 18px !important;
  padding: 24px 26px !important;
  margin-bottom: 22px !important;
  box-shadow: var(--shadow) !important;
}
html.v3 .recharge-hero h2 {
  font-family: var(--serif) !important;
  color: var(--gold-2) !important;
  font-size: 20px !important;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
html.v3 .recharge-hero p {
  color: var(--txt-2) !important;
  font-size: 13px;
}
/* I2b. 信任徽章 → 横向胶囊组（原型无对应，按电影感语言统一） */
html.v3 .trust-badges {
  display: flex !important;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
html.v3 .trust-badge {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  background: rgba(249,247,254, 0.04) !important;
  border: 1px solid var(--line) !important;
  border-radius: 99px !important;
  padding: 7px 14px !important;
  font-size: 12px !important;
  color: var(--txt-2) !important;
}
html.v3 .trust-badge-icon {
  color: var(--gold-2);
}
/* I2c. 档位网格 → 原型 .amt-grid（基础态计算为 block，此处强制 grid） */
html.v3 #packGrid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
  gap: 12px !important;
  margin-bottom: 8px;
}
/* I2d. 档位卡 → 原型 .amt 瓷贴（覆盖内联绿框选中态与无底纹） */
html.v3 #packGrid .plan-card {
  position: relative;
  border: 1.5px solid var(--line) !important;
  border-radius: 13px !important;
  padding: 20px 14px 16px !important;
  text-align: center;
  cursor: pointer;
  background: var(--bg-2) !important;
  box-shadow: none !important;
  transition:
    border-color 0.16s,
    box-shadow 0.16s,
    transform 0.16s var(--ease-v3);
}
html.v3 #packGrid .plan-card:hover {
  transform: translateY(-2px);
  border-color: rgba(232, 177, 91, 0.4) !important;
}
html.v3 #packGrid .plan-card.selected {
  border-color: var(--gold) !important;
  background: linear-gradient(180deg, rgba(232, 177, 91, 0.08), var(--bg-2)) !important;
  box-shadow:
    0 0 0 1px var(--gold),
    0 14px 32px -16px rgba(232, 177, 91, 0.6) !important;
}
/* I2e. 金额 / 到账 → 原型 .a-num(serif 24/800) / .a-gift(金 10.5) */
html.v3 #packGrid .plan-price {
  font-family: var(--serif) !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  color: var(--txt) !important;
  line-height: 1.15 !important;
  letter-spacing: 0.5px;
}
html.v3 #packGrid .plan-card.selected .plan-price {
  color: var(--gold-2) !important;
}
html.v3 #packGrid .plan-desc {
  font-size: 11px !important;
  color: var(--gold-2) !important;
  margin-top: 6px !important;
}
/* I2f. 热门角标（内联 translateX(-50%) 金渐变 pill）→ 原型 .a-hot 深字金底 */
html.v3 #packGrid .plan-card > div[style*='translateX(-50%)'] {
  border-radius: 99px !important;
  color: #1a1206 !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 12px -4px rgba(232, 177, 91, 0.7) !important;
}
/* I2g. 支付方式卡 → 原型 .pay-way（覆盖 .plan-card 无底纹透明态） */
html.v3 #panel-recharge [data-pay] {
  flex: 1;
  min-width: 130px;
  border: 1.5px solid var(--line) !important;
  border-radius: 12px !important;
  padding: 16px 14px !important;
  text-align: center;
  cursor: pointer;
  background: var(--bg-2) !important;
  box-shadow: none !important;
  transition:
    border-color 0.16s,
    box-shadow 0.16s,
    background 0.16s;
}
html.v3 #panel-recharge [data-pay]:hover {
  border-color: rgba(232, 177, 91, 0.4) !important;
}
html.v3 #panel-recharge [data-pay].selected {
  border-color: var(--gold) !important;
  background: linear-gradient(180deg, rgba(232, 177, 91, 0.08), var(--bg-2)) !important;
  box-shadow: 0 0 0 1px var(--gold) !important;
}
/* I2h. 移动端：充值双栏收为单栏，档位网格降列，避免溢出/遮挡 */
@media (max-width: 900px) {
  html.v3 #panel-recharge .yz-2col {
    grid-template-columns: 1fr !important;
  }
  html.v3 #packGrid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
  }
  html.v3 .recharge-hero {
    padding: 18px 16px !important;
  }
}

/* ═══════════ J · 阶段⑤ 全站组件级电影感精修（html.v3 门控，仅视觉层） ═══════════ */
/* J1. 衬线大标题：全站 h1/h2 统一 Noto Serif SC */
html.v3 h1,
html.v3 h2 {
  font-family: var(--serif) !important;
  letter-spacing: 1px;
}
/* J2. skip-nav 默认隐藏、聚焦才出现（无 design.css 的页面不再裸露） */
html.v3 .skip-nav,
html.v3 .skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold-grad);
  color: #1a1206;
  padding: 8px 18px;
  border-radius: 10px;
  z-index: 10000;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s;
}
html.v3 .skip-nav:focus,
html.v3 .skip-link:focus {
  top: 8px;
}
/* J3. 隐私合规弹窗主按钮：inline var(--brand) 荧绿 → 金 */
html.v3 [role='dialog'] a[style*='--brand'] {
  background: var(--gold-grad) !important;
  color: #1a1206 !important;
}
/* J4. 工具页偏色统一（body[data-tool] 钩子页）：网格底/渐变字/CTA/徽章/卡顶线归金青 */
html.v3 body[data-tool] .bg-grid {
  background-image:
    linear-gradient(rgba(91, 200, 232, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 200, 232, 0.03) 1px, transparent 1px) !important;
}
html.v3 body[data-tool] .logo-text,
html.v3 body[data-tool] .hero h1 .highlight {
  background: linear-gradient(135deg, #a78bfa, #ff6b9d) !important;
  -webkit-background-clip: text !important;
  background-clip: text;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}
html.v3 body[data-tool] .nav .btn-login,
html.v3 body[data-tool] .btn-generate {
  background: var(--gold-grad) !important;
  color: #1a1206 !important;
  border: none !important;
}
html.v3 body[data-tool] .hero-badge {
  background: rgba(255, 107, 157, 0.1) !important;
  border: 1px solid rgba(255, 107, 157, 0.3) !important;
  color: var(--gold) !important;
}
html.v3 body[data-tool] .tool-card::before {
  background: linear-gradient(90deg, transparent, var(--gold), transparent) !important;
}
/* J5. project 页暗化：token 覆写 + 白玻璃卡/表单/模态改深色 */
html.v3 .project-page {
  --color-bg-page: #ffffff;
  --color-text-primary: #f2f4fa;
  --color-text-regular: #c4cbda;
  --color-text-secondary: #8a93a6;
  --color-border: rgba(232, 177, 91, 0.25);
  --color-border-light: rgba(249,247,254, 0.08);
  --color-primary-bg: rgba(232, 177, 91, 0.12);
  --color-success-bg: rgba(16, 185, 129, 0.12);
  --color-danger-bg: rgba(239, 68, 68, 0.12);
}
html.v3 .project-page .project-header,
html.v3 .project-page .project-card,
html.v3 .project-page .detail-card {
  background: rgba(249,247,254, 0.04) !important;
  border: 1px solid var(--line) !important;
}
html.v3 .project-page input,
html.v3 .project-page textarea,
html.v3 .project-page select {
  background: rgba(249,247,254, 0.05) !important;
  color: var(--txt) !important;
  border: 1px solid var(--line-2) !important;
}
html.v3 .project-page .modal-backdrop {
  display: none;
}
html.v3 .project-page .modal-backdrop.active {
  display: flex;
}
html.v3 .project-page .modal {
  background: #141926 !important;
  border: 1px solid var(--line) !important;
  color: var(--txt) !important;
}
/* J6. 网格空态跨列居中（media-library / template-market） */
html.v3 .grid > .empty,
html.v3 .media-grid > .empty {
  grid-column: 1/-1;
  text-align: center;
}
/* J7. 404/500：错误码衬线金青渐变+金晕，链接去下划线 */
html.v3 .error-code {
  font-family: var(--serif) !important;
  background: linear-gradient(135deg, var(--gold), #a78bfa) !important;
  -webkit-background-clip: text !important;
  background-clip: text;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  filter: drop-shadow(0 0 26px rgba(232, 177, 91, 0.35));
}
html.v3 .error-title {
  color: var(--gold-2) !important;
}
html.v3 .btn-group a {
  text-decoration: none !important;
}
/* J8. 海报模板色块与名称对齐（紫/粉/蓝） */
html.v3 .tpl-1 {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9) !important;
}
html.v3 .tpl-2 {
  background: linear-gradient(135deg, #ec4899, #f472b6) !important;
}
html.v3 .tpl-3 {
  background: linear-gradient(135deg, #38bdf8, #0284c7) !important;
}
/* J9. admin 白底 KPI 卡归暗（页面自带 light 残留） */
html.v3 .adm-kpi-card {
  background: linear-gradient(180deg, var(--panel), var(--bg-2)) !important;
  border: 1px solid var(--line) !important;
  box-shadow: none !important;
}
html.v3 .adm-kpi-card .kpi-value {
  color: var(--txt) !important;
}
html.v3 .adm-kpi-card .kpi-label {
  color: var(--txt-2) !important;
}
/* J10. admin 概览三卡行：趋势卡独占一行，待办/监控各半宽，避免待办标题竖排 */
html.v3 .row.mt-0 > .card:first-child {
  flex-basis: 100% !important;
}
/* J11. 认证页固定底栏避让：加底部留白，滚到底时提交按钮不被 fixed 页脚压字 */
html.v3 .auth-wrap {
  padding-bottom: 64px;
}
/* J12. 移动顶栏防压字：导航/时间chip横滑、长标题省略、admin 顶栏右组换行 */
@media (max-width: 640px) {
  html.v3 .top-nav {
    gap: 12px;
    padding: 12px 16px;
  }
  html.v3 .top-nav .brand {
    min-width: 0;
    flex: 0 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  html.v3 .top-nav .nav-links {
    min-width: 0;
    flex: 0 1 auto;
    gap: 8px;
    overflow-x: auto;
  }
  html.v3 .top-nav .nav-links a {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  html.v3 .topbar > div:not(.topbar-actions) {
    min-width: 0;
  }
  html.v3 .topbar-subtitle {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  html.v3 .topbar-actions {
    min-width: 0;
    flex: 0 1 auto;
  }
  html.v3 .date-range-selector {
    min-width: 0;
    overflow-x: auto;
  }
  html.v3 .date-range-btn {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  html.v3 .topbar {
    flex-wrap: wrap;
    gap: 8px;
    height: auto;
    min-height: 60px;
  }
  html.v3 .topbar-right {
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
  }
  html.v3 .topbar-right .role-chip,
  html.v3 .topbar-right .btn {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  html.v3 .topbar-crumb {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
/* J13. enterprise 静态弹窗默认关闭：design-system 基类 display:flex 覆盖了页内联 display:none，按 id 收回并以 .show 打开 */
html.v3 #modal-quota,
html.v3 #modal-dismiss {
  display: none;
}
html.v3 #modal-quota.show,
html.v3 #modal-dismiss.show {
  display: flex;
}

/* ===== K. 作品卡片公共基座（community.html / profile.html 两处逐字重复的收敛） =====
   仅收敛逐字相同的：卡片底、顶金线、悬停、缩略图底与遮罩、类型角标、标题悬停变色。
   限定 .works-masonry（社区）/ .works-grid（个人主页）容器，不碰 app 工作台同名卡片。
   页面差异部分（瀑布流 margin-bottom、作者行、播放按钮、操作按钮、角标位置）仍留在页内。 */
.works-masonry .work-card,
.works-grid .work-card {
  background: linear-gradient(145deg, rgba(30, 30, 42, 0.9) 0%, rgba(30, 30, 42, 0.95) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(232, 177, 91, 0.25);
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.5),
    0 2px 6px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(249,247,254, 0.08),
    inset 0 0 30px rgba(232, 177, 91, 0.02);
  position: relative;
}

.works-masonry .work-card::before,
.works-grid .work-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 177, 91, 0.5), transparent);
  opacity: 0.6;
  z-index: 2;
}

.works-masonry .work-card:hover,
.works-grid .work-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(232, 177, 91, 0.6);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.6),
    0 4px 12px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(249,247,254, 0.1),
    inset 0 0 40px rgba(232, 177, 91, 0.05),
    0 0 40px rgba(232, 177, 91, 0.2);
}

.works-masonry .work-thumbnail,
.works-grid .work-thumbnail {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(232, 177, 91, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(91, 200, 232, 0.06) 0%, transparent 50%),
    linear-gradient(135deg, #ffffff 0%, #f7f7f9 100%);
}

.works-masonry .work-thumbnail img,
.works-masonry .work-thumbnail .thumb-placeholder,
.works-grid .work-thumbnail img,
.works-grid .work-thumbnail .thumb-placeholder {
  width: 100%;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 1;
}

.works-masonry .work-card:hover .work-thumbnail img,
.works-masonry .work-card:hover .work-thumbnail .thumb-placeholder,
.works-grid .work-card:hover .work-thumbnail img,
.works-grid .work-card:hover .work-thumbnail .thumb-placeholder {
  transform: scale(1.08);
}

.works-masonry .work-thumbnail::after,
.works-grid .work-thumbnail::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.7) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.works-masonry .work-card:hover .work-thumbnail::after,
.works-grid .work-card:hover .work-thumbnail::after {
  opacity: 1;
}

.works-masonry .work-type-badge,
.works-grid .work-type-badge {
  position: absolute;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 800;
  color: var(--gold);
  border: 1px solid rgba(255, 107, 157, 0.3);
  z-index: 2;
}

.works-masonry .work-card:hover .work-title,
.works-grid .work-card:hover .work-title {
  color: var(--gold);
}

/* ===== L. 空态公共样式（enterprise / agent-crm / affiliate / template-market / media-library 五页收敛） =====
   原五页各自重复定义，颜色统一为 #9ca3af（与原值一致），padding 取多数页的 48px/40px 折中。
   页面特有差异（如 enterprise 的 📭 图标）仍留在页内。 */
.empty {
  padding: 48px 20px;
  text-align: center;
  color: #9ca3af;
  font-size: 14px;
}

/* ===== M. #75 语音输入麦克风按钮（cinema.js 第 11 节注入 · 不支持 Web Speech API 时一颗都不出现） =====
   低调金色小胶囊，流式跟随在输入框之后：不绝对定位、不遮挡任何既有元素/字数统计；
   录音中切换为红色呼吸态，一眼可辨「正在听」。 */
.yz-voice-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 12px;
  margin: 8px 0 0 8px;
  border: 1px solid rgba(232, 177, 91, 0.45);
  border-radius: 999px;
  background: rgba(232, 177, 91, 0.08);
  color: #ff6b9d;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  vertical-align: middle;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}
.yz-voice-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.yz-voice-btn:hover {
  background: rgba(232, 177, 91, 0.18);
  border-color: rgba(232, 177, 91, 0.7);
}
.yz-voice-btn.yz-voice-on {
  border-color: #f87171;
  background: rgba(248, 113, 113, 0.12);
  color: #f87171;
  animation: yzVoicePulse 1.2s ease-in-out infinite;
}
@keyframes yzVoicePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.35); }
  50% { box-shadow: 0 0 0 5px rgba(248, 113, 113, 0); }
}

/* ============ 全站浅色兜底（2026-10-16 最终） ============ */
html, body { background: #F9F7FE !important; color: #1a1525 !important; }

