/* ============================================
   AI 视频生成 Agent（对话式创作页）
   深色 / 极简 / 移动优先；只作用于 .va-page，不影响站点其它页面
   ============================================ */
.va-page {
  position: fixed; left: 0; right: 0; top: 0;
  bottom: calc(var(--nav-height, 60px) + env(safe-area-inset-bottom));
  z-index: 50; /* 低于底部导航(60)：站点底部导航在本页可见 */
  color-scheme: dark;
  display: flex; flex-direction: column;
  background: #0D0D0F; color: #F2F3F5;
  font-family: 'Plus Jakarta Sans', 'Noto Sans SC', system-ui, -apple-system, sans-serif;
}
.va-page * { box-sizing: border-box; }

/* Header */
.va-head {
  flex: 0 0 auto; height: 46px;
  display: flex; align-items: center; gap: 8px;
  padding: 0 16px;
}
.va-title { flex: 1 1 auto; margin: 0; font-size: 20px; font-weight: 800; letter-spacing: .2px; }
.va-template-engine {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 16px 8px;
  padding: 7px 10px;
  border: 1px solid rgba(50, 189, 134, .32);
  border-radius: 12px;
  background: rgba(50, 189, 134, .10);
  color: #A7B0AC;
  font-size: 12px;
  line-height: 1.35;
}
.va-template-engine b { color: #E4F6FF; font-weight: 800; }
.va-head-right { display: flex; gap: 6px; }
.va-icon-btn {
  width: 38px; height: 38px; border-radius: 12px; border: 0;
  background: transparent; color: #F2F3F5; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s ease;
}
.va-icon-btn:hover { background: rgba(255,255,255,.06); }
.va-icon-btn svg { width: 20px; height: 20px; }

/* 筛选 chips */
.va-chips {
  flex: 0 0 auto; display: flex; gap: 8px; padding: 0 16px 8px;
  overflow-x: auto; scrollbar-width: none;
}
.va-chips::-webkit-scrollbar { display: none; }
/* 上面那句 display:flex 会盖掉浏览器对 hidden 的 display:none，导致筛选行永远显示、
   右上角筛选按钮点了没反应（站长圈出来的那条“钉死不动的”正是它）。 */
.va-chips[hidden] { display: none; }
.va-chip {
  flex: 0 0 auto; border: 1px solid rgba(255,255,255,.10); background: transparent;
  color: #8B8D94; font-size: 12px; font-weight: 600; padding: 6px 12px;
  border-radius: 999px; cursor: pointer;
}
.va-chip.is-on { background: rgba(255,255,255,.10); color: #F2F3F5; border-color: transparent; }

/* Feed */
.va-feed {
  flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain;
  padding: 4px 16px calc(var(--va-composer-h, 150px) + 10px);
  width: 100%; max-width: 760px; margin: 0 auto;
  -webkit-overflow-scrolling: touch;
}
.va-empty {
  padding: 90px 24px; text-align: center;
  color: #55575D; font-size: 14px; line-height: 1.7;
}

/* Card */
.va-card {
  background: #131316; border: 1px solid rgba(255,255,255,.06);
  border-radius: 20px; padding: 16px; margin-bottom: 16px;
}
.va-prompt {
  margin: 0; font-size: 15px; line-height: 1.55; color: #F2F3F5;
  white-space: pre-wrap; word-break: break-word;
}
.va-prompt.is-clamped { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.va-more {
  margin-top: 4px; padding: 0; border: 0; background: transparent;
  color: #8B8D94; font-size: 12px; font-weight: 600; cursor: pointer;
}
.va-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.va-badge {
  background: rgba(255,255,255,.06); color: #8B8D94;
  font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 8px;
}

/* Stage（视频区） */
.va-stage {
  position: relative; width: 100%; aspect-ratio: 9 / 16;
  /* 站长要求：卡片里的产物框再做小一点，细节靠「点开预览」看 */
  max-height: 32vh; min-height: 158px;
  background: #0A0A0C; border-radius: 14px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.va-stage-video, .va-stage-image { cursor: zoom-in; }
.va-stage-video video { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
/* 右下角「点击预览」角标（整块可点，角标只是提示，不单独响应） */
.va-thumb-badge {
  position: absolute; right: 10px; bottom: 10px; z-index: 3;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px 5px 8px; border-radius: 999px;
  background: rgba(0,0,0,.58); color: #F2F3F5;
  font-size: 11px; font-weight: 700; pointer-events: none;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.va-thumb-badge svg { width: 14px; height: 14px; }
.va-thumb-badge em { font-style: normal; }

/* 制作动画：参考图铺底（模糊推近）+ 扫光 + 转圈 + 进度条 */
.va-stage-loading { flex-direction: column; gap: 12px; }
.va-load-bg {
  position: absolute; inset: -6%; width: 112%; height: 112%;
  object-fit: cover; filter: blur(18px) saturate(1.1); opacity: .32;
  animation: va-kb 16s ease-in-out infinite alternate;
}
.va-load-sheen {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(112deg, rgba(255,255,255,0) 34%, rgba(255,255,255,.16) 48%, rgba(255,255,255,0) 62%);
  animation: va-sheen 2.1s linear infinite;
}
.va-make { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.va-make-ring {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.14); border-top-color: #32bd86;
  animation: va-spin .9s linear infinite;
}
.va-make-bar {
  width: 132px; max-width: 46vw; height: 4px; border-radius: 999px;
  background: rgba(255,255,255,.12); overflow: hidden;
}
.va-make-bar i {
  display: block; width: 45%; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #59d7a6, #32bd86);
  animation: va-bar 1.35s ease-in-out infinite;
}
@keyframes va-spin { to { transform: rotate(360deg); } }
@keyframes va-sheen { from { transform: translateX(-58%); } to { transform: translateX(58%); } }
@keyframes va-bar { 0% { transform: translateX(-100%); } 100% { transform: translateX(245%); } }
@keyframes va-kb { from { transform: scale(1.02); } to { transform: scale(1.12); } }
.va-stage-text { color: #C9CBD1; font-size: 13px; text-shadow: 0 2px 10px rgba(0,0,0,.65); }
.va-stage-sub { color: #55575D; font-size: 12px; }
.va-stage-failed { flex-direction: column; gap: 8px; }
.va-stage-emoji { font-size: 22px; }
.va-retry, .va-load-btn {
  margin-top: 6px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06);
  color: #F2F3F5; font-size: 13px; font-weight: 700; padding: 9px 18px; border-radius: 999px; cursor: pointer;
}
.va-load-btn { border-color: rgba(255,255,255,.10); color: #8B8D94; }

/* Actions */
.va-actions { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.va-act {
  flex: 1 1 0; height: 42px; border-radius: 12px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.04);
  color: #F2F3F5; font-size: 13px; font-weight: 700;
}
.va-act-primary { background: rgba(50,189,134,.14); border-color: rgba(50,189,134,.35); color: #7ee2b8; }
/* 结果卡主按钮：保存视频 / 保存图片（站长要求主操作是保存，再次生成降级成旁边小字） */
.va-act-save {
  flex: 1 1 auto; height: 44px; border-radius: 12px; cursor: pointer;
  background: linear-gradient(180deg, #59d7a6, #32bd86);
  border: 1px solid rgba(255,255,255,.34);
  color: #04231a; font-size: 13.5px; font-weight: 800;
  box-shadow: 0 10px 24px rgba(50,189,134,.28);
}
.va-act-save:active { transform: scale(.985); }
.va-act-link {
  flex: 0 0 auto; height: auto; padding: 6px 2px; border: 0; background: transparent;
  color: #8B8D94; font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.va-act-link:active { color: #C9CBD1; }

/* 制作界面：本次生成消耗多少积分（2026-10-04 站长）。
   压在输入框正上方、跟着输入区一起固定在底部 —— 用户点「发送」前一定看得见。
   [hidden] 必须显式写 display:none：下面用了 display:flex，会盖掉浏览器默认的 hidden 样式。 */
.va-cost-hint {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; max-width: 760px; margin: 0 auto 6px;
  color: #8FD9BC; font-size: 12px; font-weight: 600; line-height: 1.35;
  font-variant-numeric: tabular-nums; text-align: center;
}
.va-cost-hint[hidden] { display: none; }

/* Composer */
.va-composer-wrap {
  position: fixed; left: 0; right: 0; z-index: 130;
  bottom: calc(var(--nav-height, 60px) + env(safe-area-inset-bottom));
  padding: 6px 16px;
  background: #0D0D0F;
}
.va-composer {
  display: flex; flex-direction: column; align-items: stretch; gap: 3px;
  width: 100%; max-width: 760px; margin: 0 auto;
  background: #08080A; border: 1px solid rgba(255,255,255,.12);
  border-radius: 22px; padding: 5px 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
}
/* 输入框里的「名字 skill」标签独占第一行，下面才是拍摄/输入/模型/比例/发送那一行 */
.va-input-row { display: flex; align-items: flex-end; gap: 8px; }
.va-attach {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.10); background: transparent;
  color: #8B8D94; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.va-attach svg { width: 18px; height: 18px; }
.va-input,
.va-composer textarea {
  flex: 1 1 auto; min-width: 0; border: 0; outline: 0; resize: none;
  -webkit-appearance: none !important; appearance: none !important;
  background: #08080A !important; background-color: #08080A !important;
  background-image: none !important;
  color: #F2F3F5 !important; -webkit-text-fill-color: #F2F3F5;
  color-scheme: dark;
  font-size: 15px; line-height: 1.4; max-height: 108px;
  padding: 6px 2px; font-family: inherit;
  box-shadow: none !important; border-radius: 0;
  caret-color: #32bd86;
}
.va-input:focus, .va-input:active, .va-input:hover { background: #08080A !important; background-color: #08080A !important; }
.va-composer textarea::placeholder { color: #55575D !important; -webkit-text-fill-color: #55575D; }
.va-input::placeholder { color: #55575D; }
.va-send {
  /* 生成按钮（2026-09-23 站长要求）：做大做醒目，让用户一眼看出这是「立即生成」 */
  flex: 0 0 auto; min-width: 108px; height: 42px; padding: 0 15px;
  border-radius: 999px; border: 0;
  background: linear-gradient(135deg, #4ade80, #10b981 52%, #059669);
  color: #04241a; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 13px; font-weight: 800; letter-spacing: .2px; white-space: nowrap;
  box-shadow: 0 6px 18px rgba(16, 185, 129, .38), inset 0 0 0 1px rgba(255, 255, 255, .14);
  transition: transform .12s ease, box-shadow .18s ease, opacity .15s ease;
}
.va-send svg { width: 18px; height: 18px; }
.va-send-label { line-height: 1; }
.va-send:not(:disabled) { animation: va-send-pulse 2.6s ease-in-out infinite; }
.va-send:not(:disabled):hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(16, 185, 129, .55), inset 0 0 0 1px rgba(255, 255, 255, .18); }
.va-send:disabled { opacity: .4; cursor: not-allowed; animation: none; }
.va-send.is-busy { opacity: .7; animation: none; }
@keyframes va-send-pulse {
  0%, 100% { box-shadow: 0 6px 18px rgba(16, 185, 129, .38), inset 0 0 0 1px rgba(255, 255, 255, .14); }
  50%      { box-shadow: 0 10px 26px rgba(16, 185, 129, .62), inset 0 0 0 1px rgba(255, 255, 255, .18); }
}
@media (prefers-reduced-motion: reduce) { .va-send:not(:disabled) { animation: none; } }
/* 窄屏：保留文字但收窄，避免把输入框挤没 */
@media (max-width: 430px) {
  .va-send { min-width: 88px; height: 40px; padding: 0 11px; font-size: 12px; }
  .va-send svg { width: 15px; height: 15px; }
}

/* ===== 模版大预览（从视频模版进来时）===== */
.va-seed-hero {
  margin: 0 0 14px; border-radius: 18px; overflow: hidden;
  background: linear-gradient(160deg, rgba(124, 58, 237, .20), rgba(16, 185, 129, .14));
  border: 1px solid rgba(255, 255, 255, .10);
}
.va-seed-hero-media {
  position: relative; width: 100%;
  background: #0b0f14;
  display: flex; align-items: center; justify-content: center;
}
.va-seed-hero-media img { display: block; width: 100%; max-height: 46vh; object-fit: contain; }
.va-seed-hero-emoji { font-size: 3rem; padding: 44px 0; }
/* 角标一排：左边「Using video template」+ 创作者署名。
   必须贴顶 —— 底部那段会被固定的参考图/输入区盖住；右侧 44px 给 ✕ 让位。 */
.va-seed-hero-top {
  position: absolute; left: 10px; top: 10px; right: 44px;
  display: flex; align-items: center; gap: 6px; min-width: 0;
}
.va-seed-hero-badge, .va-seed-hero-credit {
  padding: 3px 9px; border-radius: 999px;
  background: rgba(0, 0, 0, .55); color: #fff;
  font-size: 11px; font-weight: 800;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.va-seed-hero-badge { flex: 0 0 auto; }
.va-seed-hero .va-seed-x { position: absolute; right: 8px; top: 8px; }
.va-seed-hero-info { padding: 10px 12px 12px; }
.va-seed-hero-name { display: block; font-size: 1rem; font-weight: 800; color: #F2F3F5; margin-bottom: 3px; }
/* 创作者署名（2026-10-03）：贴在预览图左下角、与「Using video template」角标同款胶囊。
   不放进 .va-seed-hero-info —— 那个块在短屏上会被底部固定的参考图/输入区盖住。 */
.va-seed-hero-credit {
  flex: 0 1 auto; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  pointer-events: none;
}
/* 深色页面上不能用 var(--text-primary)（消费端主题里是近黑色） */
.va-seed-hero-hint { display: block; font-style: normal; font-size: .74rem; color: rgba(255, 255, 255, .6); }
/* 视频模版生成积分：服务端按模版实际模型计算，深色预览页单独适配 */
.va-seed-hero .template-credit-badge { margin-top: 8px; padding: 5px 10px; color: #c8f7e6; background: rgba(50, 189, 134, .14); border-color: rgba(50, 189, 134, .38); box-shadow: inset 0 0 0 1px rgba(50, 189, 134, .12); font-size: .72rem; }
.va-seed-hero .template-credit-badge.is-insufficient { color: #ffd0cc; background: rgba(220, 38, 38, .18); border-color: rgba(255, 128, 120, .5); }
.va-seed-hero .template-credit-cta { min-height: 28px; margin: 6px 0 0 6px; color: #c8f7e6; background: rgba(50, 189, 134, .14); border-color: rgba(50, 189, 134, .38); font-size: .72rem; }

/* 模版提示词只亮名字（2026-09-19）：名字做成输入框里的一个「风格标签」，可点 ✕ 摘掉，不露提示词正文 */
/* 标签独占输入框内的第一行，免得把输入框挤扁 */
.va-tag-row { display: flex; align-items: center; padding: 1px 2px 0; }
.va-prompt-tag {
  min-width: 0; max-width: 100%;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 4px 3px 8px; border-radius: 999px;
  background: rgba(236,72,153,.16); border: 1px solid rgba(236,72,153,.42);
}
.va-prompt-tag b {
  min-width: 0; font-size: 11px; font-weight: 700; color: #F2F3F5;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.va-prompt-tag em {
  flex: 0 0 auto; font-style: normal; font-size: 9px; font-weight: 800;
  letter-spacing: .04em; color: #ff8ac2;
}
.va-prompt-tag-x {
  flex: 0 0 auto; width: 16px; height: 16px; padding: 0;
  border: 0; border-radius: 50%; background: rgba(255,255,255,.16); color: #E9EAEE;
  font-size: 9px; line-height: 16px; cursor: pointer;
}
/* 结果卡上的同款标签（只显示名字） */
.va-card-style { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; }
.va-card-style b {
  flex: 0 0 auto; font-size: 10px; font-weight: 800; letter-spacing: .04em;
  padding: 2px 7px; border-radius: 999px;
  background: rgba(236,72,153,.16); border: 1px solid rgba(236,72,153,.38); color: #ff8ac2;
}
.va-card-style span { font-size: 10px; font-weight: 800; letter-spacing: .04em; color: #ff8ac2; }
/* 用模版点「制作」后，聊天框里那条「模版开始制作」提示 */
.va-kickoff {
  display: flex; align-items: center; gap: 6px;
  margin: 10px 0 0; font-size: 13px; font-weight: 600; color: #8FD9BC;
}

/* 参考图槽位（2026-09-19）：模版带几张参考图就摆几个格子，每格可替换 / 删除 */
.va-refs {
  width: 100%; max-width: 760px; margin: 0 auto 8px;
  background: #08080A; border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px; padding: 6px 8px;
}
.va-ref-head { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.va-ref-head span { color: #8B8D94; font-size: 11px; font-weight: 700; }
.va-ref-head b { color: #32bd86; font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; }
.va-ref-head em { margin-left: auto; font-style: normal; color: #55575D; font-size: 10px; }
/* 视频模版：参考图必须换成用户自己的照片（2026-09-27 站长要求给一句明示） */
.va-ref-tip {
  display: flex; align-items: center; gap: 5px;
  margin: 2px 0 6px; padding: 5px 8px; border-radius: 8px;
  background: rgba(50,189,134,.10); border: 1px solid rgba(50,189,134,.26);
  color: #8FD9BC; font-size: 11px; font-weight: 600; line-height: 1.35;
}
.va-ref-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.va-ref-item {
  position: relative; flex: 0 0 auto; width: 48px; height: 48px;
  border-radius: 10px; overflow: hidden; cursor: pointer;
  border: 1px solid rgba(255,255,255,.14); background: #101013;
}
.va-ref-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.va-ref-swap-hint {
  position: absolute; left: 0; right: 0; bottom: 0; height: 16px; line-height: 16px;
  background: rgba(0,0,0,.62); color: #E9EAEE; font-size: 9px; font-weight: 700; text-align: center;
}
.va-ref-del {
  position: absolute; top: 2px; right: 2px; width: 16px; height: 16px; padding: 0;
  border: 0; border-radius: 50%; background: rgba(0,0,0,.66); color: #fff;
  font-size: 10px; line-height: 16px; cursor: pointer;
}
/* 「替换参考图」符号（2026-09-28 站长要求）：模版原图上给一个一眼能看到的替换入口。
   与删除 ✕ 并排放在右上角（✕ 靠最右，替换在它左边），48px 槽位里放得下。 */
.va-ref-swap-btn {
  position: absolute; top: 2px; right: 20px; z-index: 3;
  width: 16px; height: 16px; padding: 0;
  border: 1px solid rgba(94,240,202,.8); border-radius: 50%;
  background: rgba(0,0,0,.72); color: #5ef0ca;
  font-size: 10px; line-height: 14px; cursor: pointer;
}
.va-ref-swap-btn:active { background: rgba(94,240,202,.24); }
/* 没换参考图就点「制作」：没换的那几张抖一下 + 亮起来，用户一眼知道该点哪里 */
.va-ref-item.is-need-replace {
  border-color: rgba(94,240,202,.95);
  box-shadow: 0 0 0 2px rgba(94,240,202,.45);
  animation: va-ref-nudge .42s ease-in-out 3;
}
@keyframes va-ref-nudge {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  75% { transform: translateX(2px); }
}
/* 发送按钮的「还要换参考图」态：可点（点了会提醒），只是不再呼吸跳动 */
.va-send.is-need-photo { opacity: .72; animation: none; }
.va-send.is-need-photo:hover { transform: translateY(-1px); }
/* 模版自带的参考图：用户端打毛玻璃，遮住站长样片细节；用户自己换上的图保持清晰（2026-09-19） */
.va-ref-item.is-tpl img { filter: blur(7px) saturate(1.05); transform: scale(1.2); }
.va-ref-item.is-tpl::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.va-ref-tpl-hint {
  position: absolute; left: 3px; top: 3px; z-index: 2;
  width: 14px; height: 14px; line-height: 14px; text-align: center;
  border-radius: 50%; font-size: 8px;
  background: rgba(0,0,0,.62); border: 1px solid rgba(255,255,255,.16);
}
.va-ref-item.is-tpl .va-ref-swap-hint, .va-ref-item .va-ref-del { z-index: 3; }
.va-ref-add {
  flex: 0 0 auto; width: 48px; height: 48px; border-radius: 10px;
  border: 1px dashed rgba(255,255,255,.28); background: transparent; color: #8B8D94;
  font-size: 16px; line-height: 1; cursor: pointer;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
}
.va-ref-add span { font-size: 9px; font-weight: 700; }
.va-ref-add:active { background: rgba(255,255,255,.06); }

/* 模型选择按钮（composer 内，与比例按钮同款） */
.va-model {
  flex: 0 0 auto; height: 34px; max-width: 124px; padding: 0 10px;
  border-radius: 999px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06);
  color: #C9CBD1; font-size: 12px; font-weight: 700; cursor: pointer;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.va-model:active { background: rgba(255,255,255,.12); }
.va-model-sheet { min-width: 248px; }
.va-model-refs { flex: 0 0 auto; color: #6E7076; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.va-model-empty { color: #6E7076; font-size: 12px; padding: 6px 8px; }

/* Desktop */
@media (min-width: 820px) {
  .va-feed { padding-left: 24px; padding-right: 24px; }
  .va-composer-wrap { padding-left: 24px; padding-right: 24px; }
}

/* 底部导航背板：本页固定导航区永远保持深色，不会透出站点浅色底 */
.va-nav-backdrop {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  height: calc(var(--nav-height, 60px) + env(safe-area-inset-bottom));
  background: #0D0D0F;
  pointer-events: none;
}

/* 站点顶栏在本页（深色）里的统一处理 */
.va-page .top-header { border-radius: 0; }
.va-page .va-head { padding: 0 16px; }

/* 产物预览：点击全屏查看（图片看大图 / 视频全屏播放） */
.va-stage-image .va-media { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
/* 预览浮层挂在 body 上（z-index 要高于站点底部导航 60 与顶栏 50） */
.va-zoom {
  position: fixed; inset: 0; z-index: 300; background: rgba(7,8,11,.975);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: calc(56px + env(safe-area-inset-top, 0px)) 12px calc(26px + env(safe-area-inset-bottom, 0px));
  cursor: zoom-out;
}
.va-zoom img, .va-zoom video { max-width: 96vw; max-height: 74vh; object-fit: contain; }
.va-zoom video { background: #000; }
.va-zoom-hint { color: rgba(255,255,255,.55); font-size: 12px; }
.va-zoom-x {
  position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); right: 14px;
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.10); color: #fff; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.va-zoom-x svg { width: 17px; height: 17px; }

/* Composer 内的比例切换按钮 */
.va-ratio {
  flex: 0 0 auto; height: 34px; padding: 0 10px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06);
  color: #C9CBD1; font-size: 12px; font-weight: 700; cursor: pointer;
  font-variant-numeric: tabular-nums; letter-spacing: .3px;
}
.va-ratio:active { background: rgba(255,255,255,.12); }

/* 比例选择弹层 */
.va-ratio-pop { position: fixed; inset: 0; z-index: 140; }
.va-ratio-mask { position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.va-ratio-sheet {
  position: absolute; right: 16px;
  bottom: calc(var(--nav-height, 60px) + env(safe-area-inset-bottom) + 74px);
  min-width: 176px; padding: 12px 12px 10px;
  background: #101013; border: 1px solid rgba(255,255,255,.12); border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0,0,0,.5);
}
.va-ratio-title { color: #8B8D94; font-size: 11px; font-weight: 700; margin: 0 0 8px 2px; }
.va-ratio-list { display: flex; flex-direction: column; gap: 2px; }
.va-ratio-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 8px 8px; border: 0; border-radius: 10px; background: transparent;
  color: #D7D9DE; font-size: 13px; font-weight: 600; cursor: pointer; text-align: left;
}
.va-ratio-item:hover, .va-ratio-item.is-on { background: rgba(255,255,255,.08); color: #F2F3F5; }
.va-ratio-shape {
  flex: 0 0 auto; width: 18px; max-height: 22px; border: 1px solid rgba(255,255,255,.35);
  border-radius: 3px; background: rgba(255,255,255,.06);
}
.va-ratio-label { flex: 1 1 auto; font-variant-numeric: tabular-nums; }
.va-ratio-check { flex: 0 0 auto; color: #32bd86; font-size: 13px; font-weight: 800; width: 12px; }

/* 视频模版条（2026-09-18）：从首页视频模版进来时，提示用户换照片即可生成同款 */
/* 旧的小条样式已移除（2026-09-23 升级为 .va-seed-hero 大预览）；.va-seed-x 仍复用 */
.va-seed-x {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  border: none; cursor: pointer;
  background: rgba(255, 255, 255, 0.10); color: rgba(255, 255, 255, 0.55);
  font-size: 0.7rem;
}
