/* ============================================================
   思源黑体 Heavy（BrandTitle，Source Han Sans CN Heavy，SIL OFL 1.1）
   子集化含「灵畅AI影视梦工厂」及 ASCII；仅用于顶栏粗标题
============================================================ */
@font-face {
  font-family: 'BrandTitle';
  src: url('/fonts/brand-title.woff2?v=20260912z') format('woff2'),
       url('/fonts/brand-title.otf?v=20260912z') format('opentype');
  font-weight: 900;
  font-display: swap;
}

/* ============================================================
   AI 影视导演台 — 电影工业风深色主题
   色板：纯黑 #000000 基底 / #0a0a0a #111111 面板 / #e94560 REC红 / 蓝鸟LOGO色系 #30b0f0 #0040d0 #a060f0 / 积分金 #f5a623
   ============================================================ */

:root {
  --bg-base: #000000;
  --bg-deep: #000000;
  --panel: #050507;
  --panel-2: #0a0a0e;
  --panel-3: #111114;
  --panel-edge: rgba(0, 64, 208, 0.40);
  --line: rgba(0, 64, 208, 0.18);
  --input-border: rgba(0, 64, 208, 0.30);
  --violet-solid: #5010d0;
  --seg-idle: #4c4c6a;
  --red: #e94560;
  --red-soft: rgba(233, 69, 96, 0.16);
  --gold: #a060f0;
  --gold-soft: rgba(0, 64, 208, 0.14);
  --gold-line: rgba(0, 64, 208, 0.40);
  --primary-a: #30b0f0;
  --primary-b: #a060f0;
  --primary-grad: linear-gradient(135deg, #30b0f0 0%, #0040d0 48%, #a060f0 100%);
  --purple: #1080f0;
  --purple-deep: #5010d0;
  --purple-soft: rgba(0, 64, 208, 0.14);
  --purple-glow: rgba(48, 176, 240, 0.35);
  --purple-glow-strong: rgba(160, 96, 240, 0.5);
  --text: #ffffff;
  --text-dim: #d3d7e3;
  --text-faint: #9ca3af;
  --radius-panel: 12px;
  --radius-card: 8px;
  --radius-btn: 8px;
  --ease: cubic-bezier(0.22, 0.9, 0.28, 1);
  --font-serif: "Noto Serif SC", serif;
  --font-sans: "Noto Sans SC", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background:
    radial-gradient(1400px 600px at 50% -10%, rgba(0, 64, 208, 0.07), transparent 55%),
    var(--bg-base);
  overflow-x: hidden;
}

/* 细颗粒胶片噪点（极微弱） */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.9'/%3E%3C/svg%3E");
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

textarea {
  font-family: inherit;
}

/* ================= 顶部导航 ================= */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 114px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: #000000;
}

.topbar__brand {
  display: flex;
  align-items: center;
  margin-left: 6px;
  height: 72px;
}

/* 完整横版品牌图：蓝紫灵鸟 + 灵畅科技 + GoGoAGI 一体透明 PNG */
.topbar__logo {
  height: 66px;
  width: auto;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: brightness(1.04) contrast(1.02);
}

/* 窄屏兜底：仅灵鸟，默认隐藏 */
.topbar__logo-bird {
  display: none;
  height: 40px;
  width: auto;
  flex: 0 0 auto;
  object-fit: contain;
  mix-blend-mode: screen;
}

.topbar__status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.status-text {
  white-space: nowrap;
}

@keyframes rec-breathe {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(233, 69, 96, 0.55);
    opacity: 1;
  }
  50% {
    box-shadow: 0 0 0 6px rgba(233, 69, 96, 0);
    opacity: 0.55;
  }
}

/* ================= 三栏布局 ================= */
.workspace {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 1.25fr 1fr;
  gap: 12px;
  padding: 12px;
  height: auto;
  min-height: calc(100vh - 56px);
  align-items: stretch;
  width: calc(100% - var(--rail-w));
}

.ai-content-center {
  grid-column: 1 / -1;
  margin-top: 8px;
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius-panel);
  padding: 22px 22px 26px;
}

.panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius-panel);
  box-shadow:
    inset 0 1px 0 rgba(160, 96, 240, 0.05),
    0 10px 30px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  position: relative;
}

/* 面板顶部金色刻度线 */
.panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-line), transparent);
  opacity: 0.6;
}

.panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(168, 130, 235, 0.28);
  flex-shrink: 0;
  background: linear-gradient(90deg, #3078dc 0%, #7a50d0 50%, #9458e0 100%);
  background-size: 100% 100%;
}

.panel__title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel__icon {
  font-size: 17px;
}

.panel__tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: #6b7280;
  border: none;
  background: none;
  padding: 0;
}

/* ================= 方案B+：首页三栏统一概览态 + 点击温和展开 ================= */
/* 统一过渡：透明度 / 边框 / 发光 / 主体显隐，全部 250–300ms ease，不跳不闪 */
.panel {
  transition: opacity 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

/* 概览态：整页低对比 + 主体折叠，只留 功能图标 + 名称 + 一句话简介 */
.workspace.is-overview {
  min-height: auto;
}
.workspace.is-overview .panel,
.workspace.is-overview .panel--chat {
  min-height: 0;
}
.panel:not(.is-active) {
  opacity: 0.85;
}
.panel:not(.is-active) .panel__intro {
  display: flex;
}
.panel:not(.is-active) .panel__body {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 0;
  transition: max-height 0.3s ease, opacity 0.26s ease;
}

/* 概览层卡片 */
.panel__intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 44px 20px;
  text-align: center;
  cursor: pointer;
  flex: 1;
}
.panel__intro-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ffffff;
}
.panel__intro-desc {
  font-size: 12.5px;
  color: #9ca3af;
  line-height: 1.6;
  max-width: 210px;
}
.panel__intro-hint {
  font-size: 11px;
  color: #4c4c6a;
  letter-spacing: 0.14em;
  margin-top: 8px;
}

/* 激活态：温和展开，仅变亮/边框微发光，不改大面背景色 */
.panel.is-active {
  opacity: 1;
  border-color: rgba(168, 110, 245, 0.5);
  box-shadow:
    0 0 20px rgba(150, 90, 235, 0.18),
    inset 0 1px 0 rgba(160, 96, 240, 0.05),
    0 10px 30px rgba(0, 0, 0, 0.45);
}
.panel.is-active .panel__intro {
  display: none;
}
.panel.is-active .panel__body {
  max-height: 5200px;
  opacity: 1;
  transition: max-height 0.34s ease, opacity 0.26s ease;
}

/* 有激活栏时，其余折叠栏弱化 + 顶部对齐（不随激活栏被拉高） */
.workspace.has-active .panel:not(.is-active) {
  opacity: 0.5;
}
.workspace.has-active .panel:not(.is-active) {
  align-self: start;
}

/* 返回按钮（低调明确） */
.panel__back {
  align-self: flex-start;
  display: none;
  align-items: center;
  gap: 6px;
  margin: 2px 0 -6px;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: #9ca3af;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
}
.panel.is-active .panel__back {
  display: inline-flex;
}
.panel__back:hover {
  color: #ffffff;
}
.panel__body--chat .panel__back {
  margin: 10px 16px 0;
}

/* ================= 方案B+：概览卡暗色质感增强 =================
   三栏共用同一套选择器，视觉完全一致；仅低透明氛围光 + 玻璃底托 + 温和 hover */
.panel:not(.is-active) {
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(150, 90, 230, 0.13) 0%, rgba(110, 70, 210, 0.07) 45%, rgba(10, 8, 20, 0) 72%),
    #060508;
  border-color: rgba(168, 130, 235, 0.28);
  transition: opacity 0.28s ease, border-color 0.28s ease,
    box-shadow 0.28s ease, transform 0.25s ease;
}
.panel.is-active {
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(150, 90, 230, 0.13) 0%, rgba(110, 70, 210, 0.07) 45%, rgba(10, 8, 20, 0) 72%),
    #060508;
}

/* 图标玻璃底托：三栏尺寸/位置完全统一 */
.panel__intro-icon {
  width: 58px;
  height: 58px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(140, 90, 225, 0.12);
  border: 1px solid rgba(185, 145, 250, 0.20);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
  font-size: 30px;
}

/* 温和 hover：描边提亮 + 极淡外发光 + 轻微上浮，不跳不闪 */
.panel:not(.is-active):hover {
  border-color: rgba(195, 155, 255, 0.48);
  box-shadow:
    0 0 18px rgba(150, 90, 235, 0.16),
    inset 0 1px 0 rgba(160, 96, 240, 0.05),
    0 10px 30px rgba(0, 0, 0, 0.45);
  transform: translateY(-1px);
}

.panel__body {
  padding: 0 16px 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  min-height: 0;
}

.panel__body--chat {
  padding: 0;
  overflow: hidden;
}

/* 滚动条：6px 细线 */
*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
*::-webkit-scrollbar-thumb {
  background: #4c4c6a;
  border-radius: 3px;
}
*::-webkit-scrollbar-thumb:hover {
  background: #30b0f0;
}
*::-webkit-scrollbar-track {
  background: transparent;
}

/* ================= 表单控件 ================= */
.field-label,
.param-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.prompt-input,
.chat-input {
  width: 100%;
  resize: vertical;
  background: var(--panel);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-card);
  color: var(--text);
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.6;
  outline: none;
  transition: border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.prompt-input {
  min-height: 66px;
}

.prompt-input:focus,
.chat-input:focus {
  border-color: #5010d0;
  box-shadow: 0 0 0 3px rgba(0, 64, 208, 0.18);
}

.prompt-input::placeholder,
.chat-input::placeholder {
  color: var(--text-faint);
}

.prompt-input.is-flashing {
  animation: prompt-flash 1.2s var(--ease);
}

@keyframes prompt-flash {
  0% {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(160, 96, 240, 0.35);
  }
  100% {
    border-color: var(--line);
    box-shadow: none;
  }
}

.param-group {
  display: flex;
  flex-direction: column;
}

.param-group--row {
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.param-group--row2 {
  flex-direction: row;
  gap: 14px;
}
.param-group--row2 > div {
  flex: 1;
  min-width: 0;
}

/* 分段控件 */
.seg-control {
  display: flex;
  gap: 6px;
  background: transparent;
  border: none;
  border-radius: var(--radius-btn);
  padding: 0;
}

.seg-control--wrap {
  flex-wrap: wrap;
}

.seg-btn {
  flex: 1;
  padding: 6px 10px;
  font-size: 12px;
  color: var(--seg-idle);
  border: 1px solid transparent;
  border-radius: 6px;
  white-space: nowrap;
  transition: all 0.2s var(--ease);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  background: transparent;
}

.seg-control--wrap .seg-btn {
  flex: 0 0 auto;
}

.seg-btn:hover {
  color: #fff;
  background: rgba(0, 64, 208, 0.12);
  border-color: rgba(0, 64, 208, 0.35);
}

.seg-btn.is-active {
  color: #fff;
  background: linear-gradient(135deg, #30b0f0 0%, #a060f0 100%);
  border-color: #5010d0;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(0, 64, 208, 0.45);
}

/* 未开通/未配置的视频通道：视觉禁用（仍可点击弹出原因，不用 disabled 属性） */
.seg-btn.is-unavailable {
  color: #5b5b73;
  opacity: 0.55;
  cursor: not-allowed;
  background: transparent;
}
.seg-btn.is-unavailable:hover {
  color: #8a8aa3;
  background: rgba(0, 64, 208, 0.06);
  border-color: transparent;
}

/* 数量步进器 */
.stepper {
  display: flex;
  align-items: center;
  gap: 2px;
  background: transparent;
  border: 1px solid rgba(0, 64, 208, 0.25);
  border-radius: var(--radius-btn);
  padding: 3px;
}

.stepper__btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  color: #fff;
  font-size: 16px;
  line-height: 1;
  transition: all 0.18s var(--ease);
}

.stepper__btn:hover {
  background: rgba(0, 64, 208, 0.2);
  color: #fff;
}

.stepper__value {
  min-width: 22px;
  text-align: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
}

/* ================= 按钮 ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-btn);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 10px 18px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease),
    opacity 0.2s var(--ease);
  position: relative;
  overflow: hidden;
}

.btn--primary,
.btn--gold {
  background: linear-gradient(135deg, #30b0f0, #a060f0);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 64, 208, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.btn--ghost {
  background: transparent;
  color: #a060f0;
  border: 1px solid #5010d0;
}

.btn--block {
  width: 100%;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn--primary:hover:not(:disabled),
.btn--gold:hover:not(:disabled) {
  box-shadow: 0 10px 26px rgba(160, 96, 240, 0.5), 0 0 0 1px rgba(160, 96, 240, 0.55);
}

.btn--ghost:hover:not(:disabled) {
  background: var(--purple-soft);
}

.btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.btn.is-loading {
  pointer-events: none;
}

.btn.is-loading .btn__label::after {
  content: "…";
  animation: dots 1.1s steps(4) infinite;
}

@keyframes dots {
  0% { content: ""; }
  25% { content: "·"; }
  50% { content: "··"; }
  75% { content: "···"; }
}

/* REC 录制灯（默认隐藏白点装饰，仅生成中显示呼吸灯） */
.btn__rec {
  display: none;
}

.btn.is-loading .btn__rec {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  animation: rec-breathe 0.9s ease-in-out infinite;
}

/* 生成按钮金色扫光 */
.btn.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: shimmer 1.1s linear infinite;
}

@keyframes shimmer {
  to {
    transform: translateX(120%);
  }
}

/* ================= 空状态 ================= */
.empty-state {
  flex: 1;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  color: var(--text-faint);
  font-size: 12px;
  line-height: 1.8;
  border: 1px dashed rgba(0, 64, 208, 0.3);
  border-radius: var(--radius-card);
  background: var(--panel);
}

.empty-state__icon {
  font-size: 30px;
  filter: grayscale(0.2) drop-shadow(0 0 8px rgba(0, 64, 208, 0.6));
  opacity: 0.9;
}

.empty-state p {
  color: #d3d7e3;
}

/* ============ 方案二：三栏内页淡紫灰底 + 深字（v=20260915a） ============ */
.panel__body {
  background: #efedf8;
}
.field-label,
.param-label {
  color: #2a2a35;
}
.prompt-input,
.chat-input {
  background: #ffffff;
  border-color: #d8d4e4;
  color: #2a2a35;
}
.prompt-input::placeholder,
.chat-input::placeholder {
  color: #6b6b78;
}
.prompt-input:focus,
.chat-input:focus {
  border-color: #7a50d0;
  box-shadow: 0 0 0 3px rgba(122, 80, 208, 0.16);
}
.seg-btn {
  background: #ffffff;
  border-color: #d8d4e4;
  color: #2a2a35;
}
.seg-btn:hover {
  background: #f7f3ff;
  border-color: #7a50d0;
  color: #2a2a35;
}
.seg-btn.is-active {
  color: #ffffff;
  background: linear-gradient(90deg, #3078dc 0%, #7a50d0 50%, #9458e0 100%);
  border-color: #7a50d0;
  box-shadow: 0 2px 8px rgba(122, 80, 208, 0.35);
}
.stepper {
  border-color: rgba(122, 80, 208, 0.3);
}
.stepper__btn {
  background: #ffffff;
  border: 1px solid #d8d4e4;
  color: #2a2a35;
}
.stepper__btn:hover {
  background: #f7f3ff;
  border-color: #7a50d0;
  color: #2a2a35;
}
.stepper__value {
  color: #2a2a35;
}
.empty-state {
  background: #ffffff;
  border-color: rgba(122, 80, 208, 0.3);
  color: #6b6b78;
}
.empty-state p {
  color: #2a2a35;
}
.empty-state__icon {
  filter: grayscale(0.1) drop-shadow(0 0 6px rgba(122, 80, 208, 0.5));
}
.panel__intro-icon {
  background: rgba(140, 90, 225, 0.18);
}
/* 外层面板改淡紫灰，与内页 body 统一；概览卡暗色质感交由 .panel__intro 独立承载 */
.panel {
  background: #efedf8 !important;
}
.panel__intro {
  background: #efedf8 !important;
}
.panel__intro-title {
  color: #2a2a35 !important;
}
.panel__intro-desc {
  color: #555560 !important;
}
.panel__intro-hint {
  color: #888899 !important;
}
.dropzone {
  background: #ffffff !important;
  border-color: #d8d4e4 !important;
}
.dropzone__placeholder {
  color: #555560 !important;
}
.dropzone__browse {
  color: #7a50d0 !important;
}
.panel__body--chat {
  background: #efedf8 !important;
}
.chat-log {
  background: #efedf8 !important;
}
.msg__bubble {
  background: #ffffff !important;
  border-color: #d8d4e4 !important;
  border-left: 3px solid #7a50d0;
  color: #2a2a35 !important;
}
.msg__bubble p,
.msg__bubble li {
  color: #2a2a35 !important;
}
.msg__bubble strong {
  color: #7a50d0;
}
.msg--user .msg__bubble {
  background: rgba(122, 80, 208, 0.08) !important;
  border-color: #d8d4e4 !important;
  border-right: 3px solid #9458e0;
}
.chat-input-wrap {
  background: #efedf8 !important;
  border-top-color: rgba(122, 80, 208, 0.18) !important;
}
.chat-input {
  background: #ffffff !important;
  color: #2a2a35 !important;
  border-color: #d8d4e4 !important;
}

/* ================= 镜头卡片（取景框语言） ================= */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  align-content: start;
}

.gallery:has(.shot-card) .empty-state,
.video-stage:has(.film-frame) .empty-state {
  display: none;
}

.shot-card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(232, 234, 242, 0.1);
  animation: card-in 0.4s var(--ease) both;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.shot-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold-line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(160, 96, 240, 0.35);
}

.shot-card img {
  width: 100%;
  display: block;
}

/* 取景框四角 */
.corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: rgba(168, 85, 247, 0.9);
  border-style: solid;
  border-width: 0;
  pointer-events: none;
  z-index: 3;
}
.corner--tl { top: 5px; left: 5px; border-top-width: 2px; border-left-width: 2px; }
.corner--tr { top: 5px; right: 5px; border-top-width: 2px; border-right-width: 2px; }
.corner--bl { bottom: 5px; left: 5px; border-bottom-width: 2px; border-left-width: 2px; }
.corner--br { bottom: 5px; right: 5px; border-bottom-width: 2px; border-right-width: 2px; }

.frame-badge {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--gold);
  background: var(--panel);
  border: 1px solid var(--gold-line);
  border-radius: 3px;
  padding: 1px 6px;
  z-index: 3;
}
.frame-badge--tl { top: 8px; left: 26px; }
.frame-badge--br { bottom: 8px; right: 8px; color: var(--text-dim); border-color: var(--line); }

/* 卡片底部操作条 */
.shot-card__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 26px 8px 7px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent);
  z-index: 2;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.25s var(--ease);
}

.shot-card:hover .shot-card__bar {
  opacity: 1;
  transform: translateY(0);
}

.shot-card__meta {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-dim);
  line-height: 1.5;
}

.mini-btn {
  font-size: 11px;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 4px;
  white-space: nowrap;
  transition: all 0.2s var(--ease);
}

.mini-btn--gold {
  background: linear-gradient(180deg, #a060f0, var(--gold));
  color: #1a1a2e;
}
.mini-btn--gold:hover {
  box-shadow: 0 0 12px rgba(160, 96, 240, 0.55);
}

.mini-btn--ghost {
  background: var(--panel);
  color: var(--text-dim);
  border: 1px solid var(--line);
}
.mini-btn--ghost:hover {
  color: var(--text);
  border-color: rgba(232, 234, 242, 0.3);
}

/* 生成中的骨架镜头 */
.shot-card--loading {
  aspect-ratio: 16 / 9;
  background: linear-gradient(110deg, #101024 30%, #1b2342 50%, #101024 70%);
  background-size: 220% 100%;
  animation: card-in 0.35s var(--ease) both, skeleton-sweep 1.3s linear infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shot-card--loading .corner {
  animation: corner-scan 1.6s ease-in-out infinite;
}

@keyframes skeleton-sweep {
  from { background-position: 120% 0; }
  to { background-position: -120% 0; }
}

@keyframes corner-scan {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

.loading-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--gold);
  z-index: 2;
}

/* ================= 中栏：拖拽区 / 视频 ================= */
.dropzone {
  border: 1.5px dashed rgba(0, 64, 208, 0.3);
  border-radius: var(--radius-card);
  background: var(--panel);
  min-height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  transition: all 0.25s var(--ease);
  position: relative;
}

.dropzone.is-dragover {
  border-color: #5010d0;
  background: rgba(0, 64, 208, 0.12);
  box-shadow: inset 0 0 24px rgba(0, 64, 208, 0.18);
}

.dropzone__placeholder {
  text-align: center;
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.9;
}

.dropzone__icon {
  font-size: 26px;
  display: block;
  filter: drop-shadow(0 0 8px rgba(0, 64, 208, 0.6));
}

.dropzone__browse {
  color: #a060f0;
  text-decoration: underline;
  cursor: pointer;
  text-underline-offset: 3px;
}
.dropzone__browse:hover {
  color: #fff;
}

.dropzone__hint {
  font-size: 11px;
  color: var(--text-faint);
}

.dropzone__preview {
  width: 100%;
  max-width: 300px;
  position: relative;
  animation: card-in 0.35s var(--ease) both;
}

.dropzone__clear {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  z-index: 5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s var(--ease);
}
.dropzone__clear:hover {
  transform: scale(1.12);
}

/* 胶片画幅框 */
.film-frame {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(232, 234, 242, 0.14);
}

.film-frame img,
.film-frame video {
  width: 100%;
  display: block;
}

.film-frame--source img {
  max-height: 210px;
  width: 100%;
  object-fit: contain;
  background: #000;
}

.video-stage {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}

.video-stage .film-frame video {
  background: #000;
}

/* 视频生成进度 */
.video-progress {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}

.video-progress__bar {
  height: 4px;
  border-radius: 2px;
  background: rgba(232, 234, 242, 0.08);
  overflow: hidden;
  margin-top: 6px;
}

.video-progress__fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #30b0f0, #a060f0);
  border-radius: 2px;
  transition: width 0.2s linear;
}

.video-actions {
  display: flex;
  gap: 8px;
}

.video-actions .btn {
  flex: 1;
  padding: 8px 12px;
  font-size: 12px;
}

/* ================= 右栏：对话 ================= */
.chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--panel);
}

.msg {
  display: flex;
  gap: 10px;
  animation: card-in 0.32s var(--ease) both;
}

.msg__avatar {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: var(--panel-3);
  border: 1px solid rgba(0, 64, 208, 0.35);
}

.msg--user {
  flex-direction: row-reverse;
}

.msg--user .msg__avatar {
  background: rgba(0, 64, 208, 0.22);
  border-color: rgba(0, 64, 208, 0.55);
}

/* AI 消息：蓝紫左边线 + #111 背景；用户消息：右侧区分 */
.msg__bubble {
  max-width: 86%;
  background: var(--panel-3);
  border: 1px solid rgba(0, 64, 208, 0.18);
  border-left: 3px solid #5010d0;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.75;
}

.msg--user .msg__bubble {
  background: rgba(0, 64, 208, 0.14);
  border: 1px solid rgba(0, 64, 208, 0.3);
  border-right: 3px solid #a060f0;
  border-radius: 10px;
}

.msg__bubble p {
  margin-bottom: 6px;
}
.msg__bubble p:last-child {
  margin-bottom: 0;
}

.msg__bubble ul {
  padding-left: 18px;
  margin: 4px 0 8px;
}
.msg__bubble li {
  margin-bottom: 3px;
}

.msg__bubble strong {
  color: #a060f0;
  font-weight: 700;
}

/* 打字光标 */
.typing-caret {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: #a060f0;
  vertical-align: -2px;
  margin-left: 2px;
  animation: caret-blink 0.8s steps(1) infinite;
}

@keyframes caret-blink {
  50% {
    opacity: 0;
  }
}

/* 对话中的画面描述卡（分镜卡） */
.shot-suggest {
  margin-top: 8px;
  border: 1px solid rgba(160, 96, 240, 0.4);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}

.shot-suggest__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #fff;
  background: linear-gradient(90deg, #30b0f0 0%, #a060f0 100%);
}

.shot-suggest__body {
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--text);
}

.shot-suggest__btn {
  display: block;
  width: 100%;
  padding: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #30b0f0, #a060f0);
  transition: filter 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.shot-suggest__btn:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 16px rgba(160, 96, 240, 0.5);
}

/* 快捷提问 chips */
.chat-chips {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.chip {
  text-align: left;
  font-size: 12px;
  line-height: 1.5;
  padding: 8px 11px;
  border-radius: 999px;
  color: #ffffff;
  /* 不透明深色实底：不依赖父容器背景，黑底/白底/强制浅色下文字都清晰可读 */
  background: rgba(12, 14, 22, 0.92);
  border: 1px solid rgba(160, 96, 240, 0.6);
  /* 长文字换行，避免溢出或裁掉 */
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  transition: all 0.2s var(--ease);
}

.chip:hover {
  color: #fff;
  border-color: #5010d0;
  background: linear-gradient(90deg, #30b0f0 0%, #a060f0 100%);
  transform: translateX(2px);
}

/* 输入栏：输入框与发送按钮上下排列，发送按钮整宽 44px */
.chat-input-wrap {
  flex-shrink: 0;
  background: var(--panel);
  border-top: 1px solid var(--line);
}

.chat-input-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
}

.chat-input {
  width: 100%;
  resize: none;
  max-height: 96px;
  min-height: 44px;
  padding: 10px 12px;
}

.chat-input-bar .btn {
  width: 100%;
  height: 44px;
  padding: 0 18px;
}

/* ================= 跨栏流转动画 ================= */
.fly-clone {
  position: fixed;
  z-index: 999;
  border-radius: 8px;
  overflow: hidden;
  pointer-events: none;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 0 1.5px var(--gold);
  transition: transform 0.75s var(--ease), opacity 0.75s var(--ease);
}

.fly-clone img,
.fly-clone textarea {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fly-clone--text {
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--gold);
  font-size: 12px;
  line-height: 1.6;
  color: var(--text);
  overflow: hidden;
}

/* 目标面板金色脉冲 */
.panel.is-pulse {
  animation: panel-pulse 1.1s var(--ease);
}

@keyframes panel-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(160, 96, 240, 0.55), inset 0 0 0 rgba(245, 166, 35, 0);
  }
  35% {
    box-shadow: 0 0 28px 4px rgba(160, 96, 240, 0.45), inset 0 0 40px rgba(0, 64, 208, 0.22);
  }
  100% {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 0 0 rgba(245, 166, 35, 0);
  }
}

/* 流程箭头（窄屏下提示流转方向） */
.flow-arrow {
  display: none;
  text-align: center;
  color: var(--gold);
  font-size: 18px;
  opacity: 0.7;
  animation: arrow-nudge 1.8s ease-in-out infinite;
}

@keyframes arrow-nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* ================= Toast ================= */
.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 1000;
  background: var(--panel);
  border: 1px solid var(--gold-line);
  color: var(--text);
  font-size: 13px;
  padding: 10px 20px;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s var(--ease);
}

.toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ================= AI 内容中心 ================= */
.aic__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.aic__head-bar {
  width: 4px;
  height: 24px;
  border-radius: 2px;
  background: linear-gradient(180deg, #30b0f0, #a060f0);
  flex: 0 0 auto;
}
.aic__titles { display: flex; flex-direction: column; }
.aic__title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  margin: 0;
}
.aic__sub {
  font-size: 12px;
  color: #9ca3af;
  margin: 2px 0 0;
}
.aic__more {
  margin-left: auto;
  background: none;
  border: 1px solid rgba(48, 176, 240, 0.4);
  color: #d3d7e3;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(.22,.9,.28,1);
}
.aic__more:hover {
  background: rgba(48, 176, 240, 0.12);
  border-color: #30b0f0;
  color: #ffffff;
}

/* 分类 Tab */
.aic__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(0, 64, 208, 0.18);
  padding-bottom: 4px;
}
.aic__tab {
  position: relative;
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 14px;
  padding: 8px 2px 10px;
  cursor: pointer;
  transition: color 0.2s cubic-bezier(.22,.9,.28,1);
}
.aic__tab:hover { color: #d3d7e3; }
.aic__tab.is-active { color: #ffffff; font-weight: 600; }
.aic__tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #30b0f0, #a060f0);
}

/* 卡片网格 */
.aic__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.aic-card {
  position: relative;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid rgba(0, 64, 208, 0.25);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16 / 10;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(.22,.9,.28,1),
    border-color 0.25s cubic-bezier(.22,.9,.28,1),
    box-shadow 0.25s cubic-bezier(.22,.9,.28,1);
}
.aic-card:hover {
  border-color: rgba(48, 176, 240, 0.7);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 64, 208, 0.25);
}

/* 封面区 */
.aic-card__cover {
  position: relative;
  flex: 0 0 70%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-color: #0a0a0e;
  background-image: linear-gradient(135deg, #0a0a0e 0%, #111114 100%);
}
.aic-card__cover::after {
  /* 噪点纹理 */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 4px 4px;
}
.aic-card__icon {
  font-size: 56px;
  opacity: 0.9;
  line-height: 1;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,0.35));
  z-index: 1;
}
.aic-card__tag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: rgba(80, 16, 208, 0.5);
  color: #ffffff;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  backdrop-filter: blur(2px);
}
.aic-card__live {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(21, 21, 21, 0.7);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}
.aic-card__live .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e94560;
  animation: aic-live 1.4s infinite;
}
@keyframes aic-live {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(233,69,96,0.6); }
  50% { opacity: 0.5; box-shadow: 0 0 0 4px rgba(233,69,96,0); }
}
/* 未开通频道：降饱和 + 遮罩「敬请期待」，不可点 */
.aic-card.is-offline {
  cursor: not-allowed;
  filter: saturate(0.55) brightness(0.86);
  opacity: 0.82;
}
.aic-card.is-offline:hover { transform: none; border-color: rgba(124,58,237,0.2); }
.aic-card.is-offline .aic-card__soon {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.42);
  color: #ffffff;
  font-size: 14px;
  letter-spacing: 3px;
}
.aic-card__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.65);
  border: 1px solid rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 16px;
  z-index: 2;
  transition: transform 0.25s cubic-bezier(.22,.9,.28,1), background 0.25s;
}
.aic-card:hover .aic-card__play {
  transform: scale(1.15);
  background: rgba(16, 128, 240, 0.8);
}

/* 信息区 */
.aic-card__info {
  flex: 1;
  padding: 8px 10px 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--panel);
}
.aic-card__name {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.aic-card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}
.aic-card__avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #30b0f0, #a060f0);
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #ffffff;
}
.aic-card__author {
  font-size: 11px;
  color: #9ca3af;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.aic-card__views {
  margin-left: auto;
  font-size: 11px;
  color: #9ca3af;
  white-space: nowrap;
}

/* 类型徽标（图片/视频）+ 日期 */
.aic-card__type {
  font-size: 11px;
  color: #d3d7e3;
  background: rgba(160, 96, 240, 0.16);
  border: 1px solid rgba(160, 96, 240, 0.35);
  border-radius: 999px;
  padding: 1px 8px;
  white-space: nowrap;
}

/* tab 数量徽标 */
.aic__tab-count {
  margin-left: 4px;
  font-size: 10px;
  color: #d3d7e3;
  background: rgba(160, 96, 240, 0.18);
  border-radius: 999px;
  padding: 1px 7px;
  vertical-align: 1px;
}
.aic__tab.is-active .aic__tab-count {
  color: #ffffff;
  background: rgba(160, 96, 240, 0.4);
}

/* 空态 */
.aic__empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 56px 16px;
  text-align: center;
  border: 1px dashed rgba(0, 64, 208, 0.3);
  border-radius: 12px;
  background: rgba(10, 10, 14, 0.4);
}
.aic__empty-icon {
  font-size: 40px;
  opacity: 0.8;
}
.aic__empty-text {
  font-size: 15px;
  font-weight: 600;
  color: #d3d7e3;
}
.aic__empty-sub {
  font-size: 12px;
  color: #9ca3af;
}

/* ============ AI 内容中心 预览浮层（图片灯箱 / 视频播放） ============ */
.aic-preview {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.aic-preview__mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(2px);
  animation: aic-pv-fade 0.2s ease-out;
}
.aic-preview__panel {
  position: relative;
  max-width: min(92vw, 1100px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: aic-pv-pop 0.22s cubic-bezier(.22,.9,.28,1);
}
.aic-preview__media {
  max-width: 100%;
  max-height: calc(90vh - 64px);
  border-radius: 12px;
  border: 1px solid rgba(160, 96, 240, 0.4);
  box-shadow: 0 12px 48px rgba(0,0,0,0.6);
  background: #000;
}
.aic-preview__close {
  position: absolute;
  top: -38px;
  right: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(10, 10, 14, 0.8);
  border: 1px solid rgba(160, 96, 240, 0.5);
  color: #ffffff;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.aic-preview__close:hover { background: rgba(80, 16, 208, 0.9); }
.aic-preview__cap {
  font-size: 13px;
  color: #d3d7e3;
}
@keyframes aic-pv-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes aic-pv-pop { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }

/* Tab 切换淡入 */
.aic__grid.is-switching .aic-card {
  animation: aic-fade 0.25s ease-out;
}
@keyframes aic-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ================= 响应式 ================= */
@media (max-width: 1180px) {
  .workspace {
    grid-template-columns: 1fr 1fr;
    height: auto;
    min-height: calc(100vh - 56px);
  }
  .aic__grid { grid-template-columns: repeat(3, 1fr); }
  .panel--chat {
    grid-column: 1 / -1;
    min-height: 480px;
  }
}

@media (max-width: 1024px) {
  .workspace {
    grid-template-columns: 1fr;
    height: auto;
  }
  .aic__grid { grid-template-columns: repeat(2, 1fr); }
  .panel {
    min-height: 520px;
  }
  .panel--chat {
    grid-column: auto;
    min-height: 520px;
  }
  .flow-arrow {
    display: block;
  }
  .status-text {
    font-size: 11px;
  }
}

@media (max-width: 560px) {
  .workspace {
    padding: 10px;
    gap: 10px;
  }
  .ai-content-center { padding: 16px 12px 20px; }
  .aic__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .aic__tabs { gap: 4px 16px; }
  .aic__more { display: none; }
  .gallery {
    grid-template-columns: 1fr;
  }
  .param-group--row2 {
    flex-direction: column;
  }
  .topbar__status .status-text {
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* ============================================================
   计费与积分系统
   ============================================================ */
.topbar__right {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* 积分胶囊 */
.credit-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(245, 166, 35, 0.16), rgba(245, 166, 35, 0.07));
  border: 1px solid rgba(245, 166, 35, 0.4);
  font-family: var(--font-mono);
  transition: all 0.22s var(--ease);
}

.credit-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(245, 166, 35, 0.28);
  border-color: #f5a623;
}

.credit-pill__icon {
  font-size: 18px;
}

.credit-pill__label {
  font-size: 16px;
  color: var(--text-dim);
}

.credit-pill__value {
  font-size: 17px;
  font-weight: 700;
  color: #f5a623;
  min-width: 34px;
  text-align: right;
}

.credit-pill__plus {
  width: 20px;
  height: 20px;
  line-height: 18px;
  border-radius: 50%;
  background: linear-gradient(180deg, #f5a623, #dd8f1f);
  color: #1a1a2e;
  font-size: 15px;
  font-weight: 900;
}

.credit-pill.is-bump {
  animation: pill-bump 0.5s var(--ease);
}

@keyframes pill-bump {
  0% { transform: scale(1); }
  35% { transform: scale(1.12); box-shadow: 0 0 22px rgba(245, 166, 35, 0.55); }
  100% { transform: scale(1); }
}

/* 欠费时积分胶囊红色脉冲 */
.credit-pill.is-poor {
  border-color: rgba(233, 69, 96, 0.6);
  animation: poor-pulse 1.3s ease-in-out infinite;
}

@keyframes poor-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(233, 69, 96, 0.35); }
  50% { box-shadow: 0 0 0 6px rgba(233, 69, 96, 0); }
}

/* 操作区余额不足：按钮下方一行淡紫小字（不使用红色横幅） */
.credit-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  line-height: 1.4;
  color: #a060f0;
  padding: 0 2px;
}

.credit-hint--chat {
  padding: 8px 12px 0;
}

.credit-hint__link {
  font-weight: 700;
  color: #a060f0;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s;
}
.credit-hint__link:hover {
  color: #fff;
}

/* 时长滑动条：机械克制，蓝色滑块 + 蓝紫刻度余白，禁用为灰 */
.duration-slider {
  display: flex;
  align-items: center;
  gap: 12px;
}
.duration-slider input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(48, 176, 240, 0.35), rgba(80, 16, 208, 0.35));
  outline: none;
  cursor: pointer;
  transition: box-shadow 0.18s;
}
.duration-slider input[type="range"]:hover {
  box-shadow: 0 0 10px rgba(16, 128, 240, 0.45);
}
.duration-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #30b0f0 0%, #0040d0 55%, #a060f0 100%);
  border: 2px solid #0a0a0a;
  box-shadow: 0 0 8px rgba(80, 16, 208, 0.6);
  transition: transform 0.18s;
}
.duration-slider input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}
.duration-slider input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #30b0f0 0%, #0040d0 55%, #a060f0 100%);
  border: 2px solid #0a0a0a;
  box-shadow: 0 0 8px rgba(80, 16, 208, 0.6);
}
.duration-slider__value {
  min-width: 40px;
  text-align: center;
  font-family: "Noto Serif SC", serif;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  background: #111;
  border: 1px solid rgba(0, 64, 208, 0.4);
  border-radius: 8px;
  padding: 4px 10px;
}

/* 视频模型说明（暂未接入/时长提示） */
.vmodel-note {
  margin: 6px 2px 0;
  font-size: 12px;
  line-height: 1.4;
  color: #9ca3af;
}

/* 图生视频 · 画面描述输入框 */
.video-desc-input {
  width: 100%;
  resize: vertical;
  display: block;
  box-sizing: border-box;
  margin-top: 6px;
  padding: 9px 10px;
  font-family: "Noto Sans SC", sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: #fff;
  background: #0a0a0a;
  border: 1px solid rgba(0, 64, 208, 0.4);
  border-radius: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.video-desc-input::placeholder {
  color: #9ca3af;
}
.video-desc-input:focus {
  outline: none;
  border-color: #1080f0;
  box-shadow: 0 0 0 2px rgba(80, 16, 208, 0.25);
}
.seg-control .seg-btn,
.seg-control .seg-btn:disabled {
  transition: opacity 0.18s, color 0.18s, background 0.18s;
}
.seg-control .seg-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* 按钮变灰禁用（欠费）：灰色态 + 文字「积分不足」，不脉冲 */
.btn.is-credit-poor,
.btn:disabled {
  background: #26262e !important;
  color: var(--text-faint) !important;
  box-shadow: none !important;
  border: 1px solid rgba(0, 64, 208, 0.2);
  opacity: 1;
  cursor: not-allowed;
}
.btn.is-credit-poor:hover,
.btn:disabled:hover {
  transform: none;
}

/* ================= Modal 通用 ================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal[hidden] {
  display: none;
}

.modal__mask {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 18, 0.72);
  backdrop-filter: blur(3px);
  animation: mask-in 0.25s var(--ease);
}

@keyframes mask-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  background: linear-gradient(180deg, #17171a, #111113);
  border: 1px solid var(--gold-line);
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(0, 64, 208, 0.22);
  padding: 20px;
  animation: modal-in 0.32s var(--ease);
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal__panel--shop { max-width: 640px; }
.modal__panel--confirm { max-width: 400px; text-align: center; }
.modal__panel--history { max-width: 520px; }

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--text-dim);
  background: var(--panel);
  border: 1px solid var(--line);
  font-size: 13px;
  transition: all 0.2s var(--ease);
  z-index: 2;
}
.modal__close:hover {
  color: var(--red);
  border-color: var(--red);
  transform: rotate(90deg);
}

.modal__heading {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--gold);
  margin-bottom: 16px;
}

/* ================= 积分商城 ================= */
.shop-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px;
}

.shop-tab {
  flex: 1;
  padding: 9px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
  transition: all 0.22s var(--ease);
}

.shop-tab {
  color: #9ca3af;
}

.shop-tab.is-active {
  color: #fff;
  background: linear-gradient(135deg, #30b0f0 0%, #a060f0 100%);
  box-shadow: 0 3px 12px rgba(0, 64, 208, 0.5);
}

.first-charge-banner {
  text-align: center;
  padding: 10px;
  margin-bottom: 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #a060f0;
  background: linear-gradient(90deg, rgba(0, 64, 208, 0.14), rgba(168, 85, 247, 0.12), rgba(0, 64, 208, 0.14));
  border: 1px dashed var(--gold-line);
  animation: banner-glow 2.2s ease-in-out infinite;
}

.first-charge-banner.is-used {
  color: var(--text-faint);
  border-color: var(--line);
  background: var(--panel);
  animation: none;
}

@keyframes banner-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(0, 64, 208, 0); }
  50% { box-shadow: 0 0 18px rgba(160, 96, 240, 0.35); }
}

.pack-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.pack-card {
  position: relative;
  padding: 16px 14px;
  border-radius: 10px;
  background: var(--panel);
  border: 1.5px solid var(--line);
  cursor: pointer;
  transition: all 0.24s var(--ease);
  overflow: hidden;
}

.pack-card:hover {
  transform: translateY(-3px);
  border-color: rgba(160, 96, 240, 0.5);
}

.pack-card.is-selected {
  border-color: var(--gold);
  background: var(--gold-soft);
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(160, 96, 240, 0.35);
}

.pack-card.is-selected::after {
  content: "✓";
  position: absolute;
  top: 8px;
  right: 10px;
  width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  border-radius: 50%;
  background: var(--gold);
  color: #1a1a2e;
  font-weight: 900;
  font-size: 13px;
}

.pack-badge {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  color: #1a1a2e;
  background: linear-gradient(90deg, #ff7a9c, var(--red));
  border-bottom-right-radius: 8px;
}

.pack-badge--vip {
  background: linear-gradient(90deg, #a060f0, var(--gold));
}

.pack-emoji {
  font-size: 26px;
  margin-bottom: 6px;
}

.pack-name {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px;
}

.pack-credits {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: #f5a623;
}

.pack-credits small {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 400;
}

.pack-price {
  margin-top: 8px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.pack-price__now {
  font-size: 20px;
  font-weight: 900;
  color: var(--text);
}

.pack-price__old {
  font-size: 12px;
  color: var(--text-faint);
  text-decoration: line-through;
}

.pack-meta {
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.7;
  color: var(--text-dim);
}

.pack-meta em {
  font-style: normal;
  color: var(--gold);
}

.pack-redeem {
  list-style: none;
  margin: 10px 0 2px;
  padding: 10px 0 2px;
  border-top: 1px solid rgba(0, 64, 208, 0.15);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 10px;
}

.pack-redeem__item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text-dim);
  white-space: nowrap;
}

.pack-redeem__icon {
  font-size: 12px;
  line-height: 1;
  opacity: 0.9;
}

.pack-redeem__item b {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
  color: #a060f0;
  min-width: 26px;
}

.pack-redeem__item em {
  font-style: normal;
  color: var(--text-dim);
}

.shop-balance {
  margin: 16px 0 10px;
  font-size: 13px;
  color: var(--text-dim);
  text-align: right;
}
.shop-balance strong {
  color: var(--gold);
  font-size: 16px;
}

.shop-note {
  margin-top: 10px;
  text-align: center;
  font-size: 11px;
  color: var(--text-faint);
}

/* ================= 消费记录 ================= */
.record-summary {
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
  padding: 10px;
  margin-bottom: 12px;
  border-radius: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.record-summary strong {
  color: var(--gold);
  font-size: 14px;
}

.record-list,
.history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.record-empty {
  text-align: center;
  padding: 30px 10px;
  color: var(--text-faint);
  font-size: 13px;
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.record-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  font-size: 12px;
  animation: card-in 0.3s var(--ease) both;
}

.record-item__icon {
  font-size: 16px;
}

.record-item__info {
  flex: 1;
  min-width: 0;
}

.record-item__type {
  font-weight: 700;
  color: var(--text);
}

.record-item__time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-faint);
  margin-top: 2px;
}

.record-item__delta {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}
.record-item__delta--cost { color: #ff8a9c; }
.record-item__delta--add { color: #f5a623; }

/* ================= 扣费确认 ================= */
.confirm-icon {
  font-size: 38px;
  margin-bottom: 6px;
}

.confirm-title {
  font-family: var(--font-serif);
  font-size: 19px;
  color: var(--gold);
  margin-bottom: 8px;
}

.confirm-desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 14px;
}

.confirm-cost {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 12px;
}

.confirm-cost__row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 13px;
  color: var(--text-dim);
}

.confirm-cost__num {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 900;
  color: var(--gold);
}

.confirm-warning {
  font-size: 12px;
  color: #ff8a9c;
  background: var(--red-soft);
  border: 1px solid rgba(233, 69, 96, 0.4);
  border-radius: 6px;
  padding: 8px;
  margin-bottom: 12px;
}

.confirm-actions {
  display: flex;
  gap: 10px;
}
.confirm-actions .btn {
  flex: 1;
}

/* ================= 金币飞行 ================= */
.fly-coin {
  position: fixed;
  z-index: 1300;
  font-size: 22px;
  pointer-events: none;
  filter: drop-shadow(0 0 8px rgba(245, 166, 35, 0.7));
  transition: transform 0.8s var(--ease), opacity 0.8s var(--ease);
}

/* ================= 撒花画布 ================= */
.confetti-canvas {
  position: fixed;
  inset: 0;
  z-index: 1200;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

@media (max-width: 560px) {
  .topbar__right {
    gap: 8px;
  }
  .credit-pill__label {
    display: none;
  }
  .pack-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   登录 / 注册入口 + 登录弹窗
   ============================================================ */
.login-entry {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid rgba(0, 64, 208, 0.5);
  background: transparent;
  color: #fff;
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.login-entry:hover {
  background: rgba(0, 64, 208, 0.16);
  border-color: #5010d0;
  box-shadow: 0 0 14px rgba(0, 64, 208, 0.3);
}
.login-entry__icon { font-size: 18px; line-height: 1; }

/* 顶栏管理入口按钮（模型结算中心） */
.admin-entry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 40px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid rgba(0, 64, 208, 0.5);
  background: transparent;
  color: #fff;
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.admin-entry:hover {
  background: rgba(0, 64, 208, 0.16);
  border-color: #5010d0;
  box-shadow: 0 0 14px rgba(0, 64, 208, 0.3);
}

/* 登录后的头像胶囊 */
.user-chip { position: relative; }
.user-chip__btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 40px;
  padding: 0 12px 0 6px;
  border-radius: 20px;
  border: 1px solid rgba(0, 64, 208, 0.5);
  background: rgba(0, 64, 208, 0.1);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 17px;
  cursor: pointer;
  transition: border-color 0.22s var(--ease), background 0.22s var(--ease);
}
.user-chip__btn:hover { border-color: #5010d0; background: rgba(0, 64, 208, 0.18); }
.user-chip__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #4c4c6a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #fff;
  overflow: hidden;
  flex: 0 0 auto;
}
.user-chip__name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip__caret { font-size: 11px; color: #9ca3af; }

.user-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 176px;
  background: #111;
  border: 1px solid var(--panel-edge);
  border-radius: 10px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 64, 208, 0.12);
  padding: 6px;
  z-index: 90;
  animation: userMenuIn 0.2s var(--ease);
}
@keyframes userMenuIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.user-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  background: transparent;
  border: 0;
  border-radius: 7px;
  color: #d3d7e3;
  font-family: var(--font-ui);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.user-menu button span { width: 16px; text-align: center; }
.user-menu button:hover { background: rgba(0, 64, 208, 0.16); color: #fff; }
.user-menu button.is-danger:hover { background: rgba(233, 69, 96, 0.16); color: #e94560; }
.user-menu__divider { height: 1px; margin: 6px 4px; background: rgba(0, 64, 208, 0.15); }

/* 登录弹窗 */
.modal__panel--login {
  width: 400px;
  max-width: calc(100vw - 32px);
  background: var(--panel);
  border: 1px solid rgba(0, 64, 208, 0.35);
  border-radius: 14px;
  padding: 26px 26px 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 40px rgba(0, 64, 208, 0.14);
}
.login-head { text-align: center; margin-bottom: 18px; }
.login-head__logo { font-size: 34px; line-height: 1; margin-bottom: 8px; }
.login-head__title { font-family: var(--font-title); font-size: 19px; color: #fff; letter-spacing: 0.5px; }
.login-head__sub { font-size: 12px; color: #9ca3af; margin-top: 5px; }

.login-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  background: var(--panel);
  border: 1px solid rgba(0, 64, 208, 0.22);
  border-radius: 10px;
  margin-bottom: 18px;
}
.login-tab {
  height: 34px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #9ca3af;
  font-family: var(--font-ui);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.login-tab:hover { color: #fff; }
.login-tab.is-active { background: linear-gradient(135deg, #30b0f0, #a060f0); color: #fff; box-shadow: 0 4px 14px rgba(0, 64, 208, 0.35); }

.login-pane { display: none; animation: paneIn 0.24s var(--ease); }
.login-pane.is-active { display: block; }
@keyframes paneIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.login-field { display: block; margin-bottom: 14px; }
.login-field__label { display: block; font-size: 12px; color: #d3d7e3; margin-bottom: 6px; }
.login-input {
  width: 100%;
  height: 42px;
  padding: 0 13px;
  background: var(--panel);
  border: 1px solid rgba(0, 64, 208, 0.25);
  border-radius: 8px;
  color: #fff;
  font-family: var(--font-ui);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.login-input::placeholder { color: #9ca3af; }
.login-input:focus { border-color: #5010d0; box-shadow: 0 0 0 3px rgba(0, 64, 208, 0.18); }

.login-code-row { display: flex; gap: 8px; }
.login-code-row .login-input { flex: 1; }
.code-btn {
  flex: 0 0 112px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid rgba(0, 64, 208, 0.5);
  background: transparent;
  color: #a060f0;
  font-family: var(--font-ui);
  font-size: 12.5px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.code-btn:hover:not(:disabled) { background: rgba(0, 64, 208, 0.16); color: #fff; }
.code-btn:disabled { color: #6b7280; border-color: rgba(0, 64, 208, 0.2); cursor: not-allowed; }

.login-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.remember { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: #d3d7e3; cursor: pointer; user-select: none; }
.remember input { width: 14px; height: 14px; accent-color: #5010d0; cursor: pointer; }
.forgot-link { font-size: 12.5px; color: #a060f0; text-decoration: none; }
.forgot-link:hover { color: #a060f0; text-decoration: underline; }

.login-submit {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #30b0f0, #a060f0);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 22px rgba(0, 64, 208, 0.35);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), filter 0.2s var(--ease);
}
.login-submit:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(160, 96, 240, 0.5); }
.login-submit:active { transform: translateY(0); }

/* 微信二维码 */
.qr-box {
  width: 200px;
  height: 200px;
  margin: 6px auto 12px;
  border: 1.5px dashed rgba(0, 64, 208, 0.55);
  border-radius: 12px;
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: center;
}
.qr-box__inner { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.qr-box__icon { font-size: 52px; line-height: 1; color: #5010d0; }
.qr-box__text { font-size: 13px; color: #9ca3af; letter-spacing: 1px; }
.qr-tip { text-align: center; font-size: 14px; color: #d3d7e3; }
.qr-note { text-align: center; font-size: 11.5px; color: #6b7280; margin-top: 8px; }

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 14px;
  color: #6b7280;
  font-size: 12px;
}
.login-divider::before,
.login-divider::after { content: ""; flex: 1; height: 1px; background: rgba(0, 64, 208, 0.18); }
.login-others { display: flex; justify-content: center; gap: 22px; }
.login-other {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(0, 64, 208, 0.4);
  background: transparent;
  color: #a060f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.login-other:hover { background: linear-gradient(135deg, #30b0f0, #a060f0); color: #fff; border-color: #5010d0; transform: translateY(-2px); }

/* ================= AI 音乐工作室 ================= */
.modal__panel--music {
  width: 560px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  background: var(--panel);
  border: 1px solid rgba(0, 64, 208, 0.35);
  border-radius: 14px;
  padding: 22px 24px 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 40px rgba(0, 64, 208, 0.14);
}
.music-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.music-head__icon { font-size: 30px; line-height: 1; }
.music-head__title { display: block; font-family: var(--font-title); font-size: 19px; color: #fff; }
.music-head__sub { display: block; font-size: 12px; color: #9ca3af; margin-top: 3px; }

.music-form { display: flex; flex-direction: column; gap: 13px; }
.music-field { display: flex; flex-direction: column; gap: 6px; }
.music-field--grow { flex: 1 1 auto; }
.music-field__label { font-size: 12px; color: #d3d7e3; }
.music-field textarea,
.music-field select {
  width: 100%;
  background: #050505;
  border: 1px solid rgba(0, 64, 208, 0.3);
  border-radius: 8px;
  padding: 9px 11px;
  color: #fff;
  font-family: var(--font-ui);
  font-size: 13px;
  resize: vertical;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.music-field textarea:focus,
.music-field select:focus {
  outline: none;
  border-color: #1080f0;
  box-shadow: 0 0 0 3px rgba(16, 128, 240, 0.15);
}
.music-row { display: flex; align-items: flex-end; gap: 14px; }

.music-switch { display: flex; align-items: center; gap: 9px; cursor: pointer; user-select: none; flex: 0 0 auto; padding-bottom: 4px; }
.music-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.music-switch__box {
  width: 40px; height: 22px; border-radius: 11px;
  background: #1a1a22; border: 1px solid rgba(0, 64, 208, 0.4);
  position: relative; transition: background 0.2s var(--ease);
}
.music-switch__box::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px; border-radius: 50%; background: #9ca3af;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}
.music-switch input:checked + .music-switch__box { background: #5010d0; }
.music-switch input:checked + .music-switch__box::after { transform: translateX(18px); background: #fff; }
.music-switch__text { font-size: 13px; color: #d3d7e3; line-height: 1.15; }
.music-switch__text small { color: #9ca3af; font-size: 11px; }

.music-actions {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 16px; gap: 12px;
}
.music-price { font-size: 13px; color: #d3d7e3; }
.music-price strong { color: #f5a623; font-size: 17px; font-family: var(--font-title); }
.music-actions .btn { min-width: 132px; }

.music-result {
  display: flex; gap: 14px; align-items: center;
  margin-top: 16px; padding: 13px;
  background: #050505; border: 1px solid rgba(0, 64, 208, 0.22); border-radius: 10px;
}
.music-result__cover {
  width: 64px; height: 64px; border-radius: 9px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center; font-size: 28px;
  background: linear-gradient(135deg, #30b0f0, #a060f0);
}
.music-result__info { flex: 1 1 auto; min-width: 0; }
.music-result__title { font-size: 14px; color: #fff; margin-bottom: 6px; }
.music-result audio { width: 100%; height: 34px; }
.music-result__dl { display: inline-block; margin-top: 6px; font-size: 12px; color: #30b0f0; text-decoration: none; }
.music-result__dl:hover { color: #a060f0; text-decoration: underline; }
.music-hint { margin-top: 10px; font-size: 12px; color: #9ca3af; min-height: 14px; }
.music-hint.is-error { color: #e94560; }

@media (max-width: 560px) {
  .modal__panel--music { padding: 18px 16px; }
  .music-result { flex-direction: column; align-items: stretch; }
  .music-result__cover { width: 100%; height: 52px; }
}

/* ================= 通栏大幅位（海报/直播） ================= */
.home-billboard {
  grid-column: 1 / -1;
  margin: 4px 12px 4px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(80, 16, 208, 0.35);
  background: linear-gradient(135deg, rgba(48, 176, 240, 0.08), rgba(160, 96, 240, 0.08)), #0a0a0a;
  box-shadow: 0 0 26px rgba(80, 16, 208, 0.16);
}
.home-billboard__inner {
  position: relative;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 21 / 9;
}
.home-billboard__poster {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  text-decoration: none;
}
.home-billboard__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #fff;
  background: linear-gradient(135deg, #30b0f0, #5010d0);
  border-radius: 6px;
  box-shadow: 0 0 14px rgba(80, 16, 208, 0.5);
}
.home-billboard__link {
  position: absolute;
  right: 14px;
  bottom: 12px;
  padding: 6px 14px;
  font-size: 13px;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  backdrop-filter: blur(4px);
}
.home-billboard__live {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}
.home-billboard__live-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}
.home-billboard__live-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #d3d7e3;
  font-size: 16px;
  letter-spacing: 1px;
}
.home-billboard__live-icon {
  font-size: 34px;
  animation: bb-rec 2s ease-in-out infinite;
}
.home-billboard__live-hint {
  font-size: 12px;
  color: #9ca3af;
}
@keyframes bb-rec {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@media (max-width: 1199px) {
  .home-billboard__inner { aspect-ratio: 21 / 10; }
}
@media (max-width: 767px) {
  .home-billboard__inner { aspect-ratio: 16 / 9; }
  .home-billboard__badge { top: 10px; left: 10px; font-size: 11px; }
  .home-billboard__link { right: 10px; bottom: 8px; }
}

.home-billboard__poster-title {
  margin: auto;
  padding: 20px 28px;
  color: #fff;
  font-family: var(--font-serif, "Noto Serif SC", serif);
  font-size: clamp(20px, 3.2vw, 42px);
  font-weight: 700;
  letter-spacing: 3px;
  text-shadow: 0 2px 18px rgba(0,0,0,.6);
  text-align: center;
}
.home-billboard__poster.is-link .home-billboard__poster-title {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-color: rgba(255,255,255,.4);
}

/* ============ 图生视频：多图参考（mref） ============ */
.mref { margin-bottom: 4px; }
.mref__head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px;
}
.mref__title { color: #d3d7e3; font-size: 12px; }
.mref__title b { color: #fff; font-weight: 600; }
.mref__mode {
  font-size: 11px; color: #c9b8f0;
  background: rgba(80,16,208,.16); border: 1px solid rgba(80,16,208,.35);
  padding: 2px 10px; border-radius: 999px;
}
.mref__zone { margin-bottom: 10px; }
.mref__placeholder { padding: 16px; text-align: center; }
.mref__strip {
  display: flex; flex-wrap: nowrap; gap: 10px; overflow-x: auto;
  padding: 4px 2px 10px; scrollbar-width: thin;
}
.mref__item {
  position: relative; flex: 0 0 auto; width: 104px;
  border-radius: 8px; overflow: hidden;
  border: 1px solid rgba(0,64,208,.45); background: #050505;
}
.mref__item img {
  width: 104px; height: 78px; object-fit: cover; display: block;
}
.mref__idx {
  position: absolute; left: 4px; bottom: 4px;
  font-size: 10px; color: #fff; line-height: 1;
  background: rgba(0,0,0,.62); padding: 3px 6px; border-radius: 6px;
}
.mref__del {
  position: absolute; top: 4px; right: 4px;
  width: 20px; height: 20px; border-radius: 50%;
  border: none; cursor: pointer; font-size: 10px; line-height: 1;
  color: #fff; background: rgba(233,69,96,.82);
  display: flex; align-items: center; justify-content: center;
  transition: background .18s ease, transform .18s ease;
}
.mref__del:hover { background: #e94560; transform: scale(1.08); }

/* ---------------- 声音能力（系统配音 / 台词 / 参考音频 / TTS 占位） ---------------- */
.audio-box {
  margin: 12px 0 10px; padding: 12px;
  border: 1px solid rgba(0,64,208,.4); border-radius: 10px; background: #0a0a0a;
}
.audio-box__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.audio-box__title { color: #fff; font-size: 13px; font-weight: 600; }
.audio-box__switch {
  position: relative; display: inline-flex; align-items: center; cursor: pointer;
}
.audio-box__switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.audio-box__switch-track {
  width: 38px; height: 20px; border-radius: 999px;
  background: #1c1c22; border: 1px solid rgba(0,64,208,.5);
  transition: background .25s cubic-bezier(.22,.9,.28,1), border-color .25s;
  position: relative;
}
.audio-box__switch-track::after {
  content: ""; position: absolute; top: 2px; left: 3px; width: 14px; height: 14px;
  border-radius: 50%; background: #d3d7e3; transition: transform .25s cubic-bezier(.22,.9,.28,1), background .25s;
}
.audio-box__switch input:checked + .audio-box__switch-track {
  background: linear-gradient(135deg,#30b0f0 0%,#5010d0 100%);
  border-color: #5010d0;
}
.audio-box__switch input:checked + .audio-box__switch-track::after { transform: translateX(18px); background: #fff; }
.audio-box__switch input:disabled + .audio-box__switch-track { opacity: .5; cursor: not-allowed; }
.audio-box__switch-label { color: #9ca3af; font-size: 12px; }
.audio-box__hint { color: #9ca3af; font-size: 12px; line-height: 1.6; margin-bottom: 10px; }
.audio-box__row { margin-bottom: 10px; }
.audio-box__row.is-disabled { opacity: .45; pointer-events: none; }
.audio-dialogue {
  width: 100%; margin-top: 6px; padding: 8px 10px;
  background: #0d0d11; color: #fff; font-size: 12px;
  border: 1px solid rgba(0,64,208,.4); border-radius: 8px; outline: none;
}
.audio-dialogue:focus { border-color: #1080f0; box-shadow: 0 0 0 3px rgba(16,128,240,.18); }
.audio-dialogue:disabled { opacity: .5; cursor: not-allowed; }
.audio-ref__head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.audio-ref__title { color: #d3d7e3; font-size: 12px; }
.audio-ref__title b { color: #fff; font-weight: 600; }
.audio-ref__hint { color: #9ca3af; font-size: 11px; line-height: 1.5; }
.audio-ref__zone {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  padding: 8px 14px; border: 1px dashed rgba(0,64,208,.5); border-radius: 8px;
  color: #d3d7e3; font-size: 12px; background: rgba(0,0,0,.25); transition: border-color .2s, background .2s;
}
.audio-ref__zone:hover { border-color: #1080f0; background: rgba(16,128,240,.06); }
.audio-ref__zone.is-disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
.audio-ref__zone.is-dragover { border-color: #30b0f0; background: rgba(48,176,240,.08); }
.audio-ref__strip {
  display: flex; flex-direction: column; gap: 8px; margin-top: 10px;
}
.aref__item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 8px;
  border: 1px solid rgba(0,64,208,.35); background: #0d0d11;
}
.aref__icon { font-size: 16px; }
.aref__meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.aref__name { color: #fff; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aref__sub { color: #9ca3af; font-size: 11px; margin-top: 2px; }
.aref__del {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 6px; line-height: 1;
  border: 1px solid rgba(233,69,96,.4); background: rgba(233,69,96,.12); color: #e94560; cursor: pointer;
}
.aref__del:hover { background: #e94560; color: #fff; transform: scale(1.08); }
.audio-ref-block.is-disabled { opacity: .5; pointer-events: none; }
.audio-ref.is-disabled { opacity: .5; pointer-events: none; }
.tts-box {
  margin-top: 12px; padding-top: 10px; border-top: 1px dashed rgba(0,64,208,.3);
}
.tts-box__row { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.tts-voice {
  flex: 1; padding: 8px 10px; color: #fff; background: #0d0d11;
  border: 1px solid rgba(0,64,208,.4); border-radius: 8px; font-size: 12px;
}
.tts-voice:disabled { opacity: .5; cursor: not-allowed; }
.btn--sm { padding: 8px 12px; font-size: 12px; }
.btn--sm:disabled { opacity: .5; cursor: not-allowed; }

/* ============================================================
   首页内容区（直播/回放卡片 + 其他 AI 产品系列）
   说明：文生图/图生视频工作台已整体下移至 .workspace，待审批后上移。
   ============================================================ */
.home-hero {
  /* 精选展示条已是文档流静态区块，紧随其后，无需再让出 topbar/横幅高度 */
  margin-left: var(--rail-w);
  padding: 24px 16px 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
body.is-canvas-mode .home-hero { display: none; }
/* 精选滚动条收起时（无精选作品），产品卡紧跟导航下方，仅留小间距 */
body.banner-collapsed .home-hero { padding-top: 8px; }

/* ---------- 直播 / 回放 卡片 ---------- */
.live-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  background: #0a0a0a;
  border: 1px solid rgba(0, 64, 208, 0.4);
  border-radius: 12px;
  overflow: hidden;
}
.live-card__cover {
  position: relative;
  min-height: 150px;
  background:
    radial-gradient(120% 120% at 20% 0%, rgba(16, 128, 240, 0.22), transparent 60%),
    #050505;
  display: flex;
  align-items: center;
  justify-content: center;
}
.live-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.live-card__cover-ph {
  font-size: 52px;
  line-height: 1;
  filter: drop-shadow(0 0 12px rgba(224, 69, 96, 0.7));
  animation: lc-pulse 2s ease-in-out infinite;
}
@keyframes lc-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
.live-card__badge {
  position: absolute;
  top: 10px; left: 10px;
  display: inline-flex;
  align-items: center; gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px; font-weight: 600;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  border: 1px solid rgba(0, 64, 208, 0.4);
  backdrop-filter: blur(2px);
}
.live-card[data-status="live"] .live-card__badge { color: #e94560; }
.live-card[data-status="live"] .live-card__badge::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: #e94560; box-shadow: 0 0 0 0 rgba(224, 69, 96, 0.6);
  animation: lc-dot 1.6s ease-out infinite;
}
@keyframes lc-dot {
  0% { box-shadow: 0 0 0 0 rgba(224, 69, 96, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(224, 69, 96, 0); }
  100% { box-shadow: 0 0 0 0 rgba(224, 69, 96, 0); }
}
.live-card__body {
  padding: 16px 20px;
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
}
.live-card__title { margin: 0; font-family: "Noto Serif SC", serif; font-size: 22px; font-weight: 700; color: #ffffff; }
.live-card__hint { margin: 0; font-size: 13px; color: #9ca3af; }
.live-card__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.live-card__btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 18px; border-radius: 8px; font-size: 14px; font-weight: 600;
  text-decoration: none; color: #ffffff;
  border: 1px solid rgba(0, 64, 208, 0.5);
  transition: transform 200ms cubic-bezier(.22,.9,.28,1), box-shadow 200ms cubic-bezier(.22,.9,.28,1);
}
.live-card__btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(16, 128, 240, 0.28); }
.live-card__btn--primary { background: linear-gradient(135deg, #30b0f0 0%, #0040d0 48%, #a060f0 100%); }
.live-card__btn--ghost { background: rgba(0, 64, 208, 0.12); }

/* ---------- 其他 AI 产品系列 ---------- */
.product-row__head { padding: 4px 2px 6px; }
.product-row__label {
  font-family: "Noto Serif SC", serif; font-size: 15px; font-weight: 700; color: #ffffff;
  display: inline-flex; align-items: center; gap: 8px;
}
.product-row__label::after { content: ""; flex: 1; height: 1px; background: rgba(0, 64, 208, 0.18); min-width: 40px; }
.product-row__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.product-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 16px; text-align: left; cursor: pointer;
  background: #0a0a0a; color: #ffffff;
  border: 1px solid rgba(0, 64, 208, 0.4); border-radius: 12px;
  font-family: inherit; transition: transform 200ms cubic-bezier(.22,.9,.28,1), box-shadow 200ms cubic-bezier(.22,.9,.28,1), border-color 200ms;
}
.product-card:hover { transform: translateY(-1px); border-color: #1080f0; box-shadow: 0 8px 24px rgba(16, 128, 240, 0.22); }
.product-card__icon { font-size: 26px; line-height: 1; }
.product-card__name { font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.product-card__desc { font-size: 12px; color: #9ca3af; }
.product-card__soon { font-size: 10px; color: #e94560; border: 1px solid rgba(224, 69, 96, 0.5); border-radius: 4px; padding: 1px 5px; }
.product-card.is-soon { cursor: not-allowed; opacity: 0.55; }
.product-card.is-soon:hover { transform: none; box-shadow: none; border-color: rgba(0, 64, 208, 0.4); }

@media (max-width: 760px) {
  .live-card { grid-template-columns: 1fr; }
  .live-card__cover { min-height: 130px; }
}

/* ============================================================
   创作面板 · 全屏放大（纯展示层，不改任何生成/计费逻辑）
   ============================================================ */
.panel__toolrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2px 0 2px;
}
.panel__tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ptool {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  font-size: 12px;
  letter-spacing: 0.03em;
  color: #d3d7e3;
  background: rgba(124, 58, 237, 0.10);
  border: 1px solid rgba(124, 58, 237, 0.40);
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.ptool .ptool__ico { font-size: 13px; line-height: 1; }
.ptool:hover {
  color: #fff;
  border-color: rgba(168, 85, 247, 0.75);
  background: rgba(124, 58, 237, 0.22);
  box-shadow: 0 0 14px -2px rgba(124, 58, 237, 0.55);
}
.ptool--close { padding: 0; width: 30px; justify-content: center; }
.ptool--close:hover {
  border-color: rgba(233, 69, 96, 0.7);
  background: rgba(233, 69, 96, 0.16);
  box-shadow: 0 0 14px -2px rgba(233, 69, 96, 0.45);
}
/* 内嵌态：工具行只在面板展开时出现 */
.panel:not(.is-active) .panel__toolrow { display: none; }

/* —— 模态态（默认大视图）：居中大模态，占视口约 92% × 90%，下方为半透明遮罩 —— */
.panel-fs-backdrop {
  position: fixed;
  inset: 0;
  z-index: 8999;
  background: rgba(3, 2, 8, 0.72);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s cubic-bezier(0.22, 0.9, 0.28, 1);
}
body.panel-fs-open .panel-fs-backdrop { opacity: 1; pointer-events: auto; }
.panel.is-panel-fullscreen {
  position: fixed;
  top: 5vh;
  bottom: 5vh;
  left: 4vw;
  right: 4vw;
  z-index: 9000;
  width: auto;
  height: auto;
  max-height: 90vh;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 18px;
  border-left-color: rgba(124, 58, 237, 0.45);
  border-right-color: rgba(124, 58, 237, 0.45);
  border-bottom-color: rgba(124, 58, 237, 0.45);
  border-color: rgba(124, 58, 237, 0.45);
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(124, 58, 237, 0.16) 0%, rgba(10, 8, 20, 0) 60%),
    #0c0b12;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(124, 58, 237, 0.30);
  animation: pfsIn 0.22s cubic-bezier(0.22, 0.9, 0.28, 1);
}
@keyframes pfsIn {
  from { opacity: 0; transform: translateY(12px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.panel.is-panel-fullscreen .panel__header { flex: none; }
.panel.is-panel-fullscreen .panel__body {
  max-height: none;
  opacity: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 clamp(20px, 4vw, 56px) clamp(40px, 6vh, 72px);
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  display: block;
}
/* 吸顶工具行 */
.panel.is-panel-fullscreen .panel__toolrow {
  position: sticky;
  top: 0;
  z-index: 3;
  margin: 0 calc(clamp(20px, 4vw, 56px) * -1) 18px;
  padding: 14px clamp(20px, 4vw, 56px);
  background: rgba(8, 8, 12, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(124, 58, 237, 0.22);
}
.panel.is-panel-fullscreen .panel__back {
  font-size: 13.5px;
  padding: 8px 14px;
  border: 1px solid rgba(124, 58, 237, 0.40);
  border-radius: 8px;
  background: rgba(124, 58, 237, 0.10);
  margin: 0;
}
.panel.is-panel-fullscreen .ptool { height: 36px; padding: 0 16px; font-size: 13px; }
.panel.is-panel-fullscreen .ptool--close { width: 36px; padding: 0; }
/* 全屏态控件等比放大到易读尺寸 */
.panel.is-panel-fullscreen .field-label,
.panel.is-panel-fullscreen .param-label { font-size: 14px; }
.panel.is-panel-fullscreen .prompt-input,
.panel.is-panel-fullscreen .video-desc-input,
.panel.is-panel-fullscreen .audio-dialogue { font-size: 15px; line-height: 1.6; }
.panel.is-panel-fullscreen .prompt-input { min-height: 120px; }
.panel.is-panel-fullscreen .seg-btn { font-size: 13.5px; padding: 9px 15px; }
.panel.is-panel-fullscreen .dropzone { min-height: 150px; }
.panel.is-panel-fullscreen .dropzone__icon { font-size: 34px; }
.panel.is-panel-fullscreen .btn { font-size: 15px; }
.panel.is-panel-fullscreen .btn--block { padding: 14px 18px; }
.panel.is-panel-fullscreen .param-group { margin-bottom: 22px; }
.panel.is-panel-fullscreen .mref__title,
.panel.is-panel-fullscreen .audio-box__title { font-size: 14px; }
/* 全屏按钮已并入默认打开的大视图（单击卡片即大模态），不再单独提供切换 */
.ptool--fs { display: none; }
/* 全屏按钮文案切换 */
.ptool--fs .ptool__ico--exit,
.ptool--fs .ptool__txt--exit { display: none; }
.panel.is-panel-fullscreen .ptool--fs .ptool__ico:not(.ptool__ico--exit) { display: none; }
.panel.is-panel-fullscreen .ptool--fs .ptool__ico--exit { display: inline-block; }
.panel.is-panel-fullscreen .ptool--fs .ptool__txt:not(.ptool__txt--exit) { display: none; }
.panel.is-panel-fullscreen .ptool--fs .ptool__txt--exit { display: inline-block; }
body.panel-fs-open { overflow: hidden; }

/* 平板 / 手机窄屏：全屏仍铺满、不裁切、按钮不重叠 */
@media (max-width: 760px) {
  .panel.is-panel-fullscreen .panel__title { font-size: 15px; }
  .panel.is-panel-fullscreen .panel__tag { display: none; }
  .panel.is-panel-fullscreen .panel__body {
    padding: 0 14px 32px;
    max-width: 100%;
  }
  .panel.is-panel-fullscreen .panel__toolrow {
    margin: 0 -14px 14px;
    padding: 10px 14px;
    gap: 8px;
  }
  .panel.is-panel-fullscreen .panel__back { padding: 8px 10px; font-size: 12.5px; }
  .panel.is-panel-fullscreen .ptool { height: 34px; padding: 0 11px; font-size: 12.5px; }
  .panel.is-panel-fullscreen .ptool .ptool__txt { display: none; }
  .panel.is-panel-fullscreen .ptool--fs { width: 34px; padding: 0; justify-content: center; }
  .panel.is-panel-fullscreen .ptool--fs .ptool__ico:not(.ptool__ico--exit) { display: none; }
  .panel.is-panel-fullscreen .ptool--fs .ptool__ico--exit { display: inline-block; }
  .panel.is-panel-fullscreen .seg-control--wrap .seg-btn { flex: 1 1 auto; }
}

/* ============================================================
   出片命名与归档：镜号输入框 / 出片库按钮 / 出片库弹层
   ============================================================ */
.param-group--shotname { margin-top: 4px; }
.shot-name-input {
  width: 100%;
  box-sizing: border-box;
  display: block;
  margin-top: 6px;
  padding: 9px 11px;
  font-family: "Noto Sans SC", sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: #fff;
  background: #0a0a0a;
  border: 1px solid rgba(124, 58, 237, 0.4);
  border-radius: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.shot-name-input::placeholder { color: #9ca3af; }
.shot-name-input:focus {
  outline: none;
  border-color: #a855f7;
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.25);
}
.panel.is-panel-fullscreen .shot-name-input { padding: 12px 14px; font-size: 14px; }

/* 视频模型 / 分辨率 下拉选择框（白标别名显示，原生 select 移动端友好） */
.vsel {
  width: 100%;
  box-sizing: border-box;
  display: block;
  margin-top: 6px;
  padding: 9px 34px 9px 11px;
  font-family: "Noto Sans SC", sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: #fff;
  background: #0a0a0a
    url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23a855f7' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    no-repeat right 11px center;
  border: 1px solid rgba(124, 58, 237, 0.4);
  border-radius: 8px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.vsel:hover { border-color: rgba(168, 85, 247, 0.65); }
.vsel:focus {
  outline: none;
  border-color: #a855f7;
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.25);
}
.vsel option {
  background: #111113;
  color: #fff;
}
.vsel option:disabled {
  color: #6b7280;
}
.panel.is-panel-fullscreen .vsel { padding: 12px 40px 12px 14px; font-size: 14px; }
@media (max-width: 600px) {
  .vsel { font-size: 14px; padding: 10px 34px 10px 11px; } /* 触屏更大点击区 */
}

/* 出片库按钮：沿用 ptool 蓝紫描边，略强化 */
.ptool--lib { white-space: nowrap; }

/* 弹层默认隐藏（.modal 基线为 flex 常显），.is-open 才出现 */
.tk-modal { display: none; z-index: 1200; }
.tk-modal.is-open { display: flex; }
body.tk-modal-open { overflow: hidden; }

.tk-modal__panel {
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.tk-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(124, 58, 237, 0.18);
}
.tk-modal__head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}
.tk-x {
  flex: none;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  font-size: 14px;
  color: #9ca3af;
  background: transparent;
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.tk-x:hover {
  color: #fff;
  border-color: rgba(233, 69, 96, 0.6);
  background: rgba(233, 69, 96, 0.14);
}
.tk-modal__tip {
  padding: 10px 18px;
  font-size: 11.5px;
  line-height: 1.6;
  color: #9ca3af;
  background: rgba(124, 58, 237, 0.07);
  border-bottom: 1px solid rgba(124, 58, 237, 0.12);
}
.tk-modal__body {
  padding: 14px 18px;
  overflow-y: auto;
  flex: 1 1 auto;
  max-height: 56vh;
}
.tk-modal__foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 13px 18px;
  border-top: 1px solid rgba(124, 58, 237, 0.18);
}
.tk-empty {
  padding: 46px 16px;
  text-align: center;
  color: #d3d7e3;
  font-size: 14px;
  line-height: 1.9;
}
.tk-empty small { color: #9ca3af; font-size: 12px; }

.tk-group { margin-bottom: 16px; }
.tk-group:last-child { margin-bottom: 0; }
.tk-group__head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  margin-bottom: 8px;
  background: rgba(124, 58, 237, 0.10);
  border: 1px solid rgba(124, 58, 237, 0.22);
  border-radius: 8px;
}
.tk-gcheck { display: inline-flex; align-items: center; cursor: pointer; }
.tk-gcheck input { width: 15px; height: 15px; accent-color: #7c3aed; cursor: pointer; }
.tk-group__name { font-size: 13px; font-weight: 700; color: #fff; }
.tk-group__count { margin-left: auto; font-size: 11px; color: #9ca3af; }

.tk-items { display: flex; flex-direction: column; gap: 8px; }
.tk-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  background: #0a0a0a;
  border: 1px solid rgba(124, 58, 237, 0.16);
  border-radius: 10px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.tk-item:hover { border-color: rgba(168, 85, 247, 0.5); }
.tk-item--off { opacity: 0.55; }
.tk-item__check { display: inline-flex; flex: none; }
.tk-item__check input { width: 15px; height: 15px; accent-color: #7c3aed; cursor: pointer; }

.tk-item__thumb {
  position: relative;
  flex: none;
  width: 64px; height: 40px;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid; place-items: center;
}
.tk-item__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tk-item__ph { font-size: 16px; opacity: 0.7; }

.tk-badge {
  position: absolute;
  left: 3px; top: 3px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(7, 7, 11, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.tk-badge--ok { color: #7ee2a8; border-color: rgba(126, 226, 168, 0.4); }
.tk-badge--fail { color: #ff8aa0; border-color: rgba(233, 69, 96, 0.5); }
.tk-badge--prev { color: #c9b3ff; border-color: rgba(168, 85, 247, 0.45); }

.tk-item__meta { flex: 1 1 auto; min-width: 0; }
.tk-item__fn {
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tk-item__sub { font-size: 11px; color: #9ca3af; margin-top: 2px; }
.tk-item__time { font-size: 10.5px; color: #6b7280; margin-top: 2px; }

.tk-item__act { flex: none; display: flex; gap: 6px; }
.tk-dl,
.tk-del {
  background: rgba(124, 58, 237, 0.16);
  color: #d3d7e3;
  border: 1px solid rgba(124, 58, 237, 0.4);
  cursor: pointer;
}
.tk-dl:hover { color: #fff; border-color: rgba(168, 85, 247, 0.75); background: rgba(124, 58, 237, 0.3); }
.tk-del:hover { color: #ff8aa0; border-color: rgba(233, 69, 96, 0.6); background: rgba(233, 69, 96, 0.12); }
.tk-dl:disabled,
.tk-del:disabled { opacity: 0.4; cursor: not-allowed; }

@media (max-width: 600px) {
  .tk-modal { padding: 12px; }
  .tk-modal__panel { max-height: 92vh; }
  .tk-modal__body { max-height: 60vh; padding: 12px; }
  .tk-modal__head, .tk-modal__foot { padding: 12px 14px; }
  .tk-item__thumb { width: 54px; height: 34px; }
  .tk-item__act { flex-direction: column; gap: 4px; }
  .tk-item__fn { font-size: 11.5px; }
}

/* 结果区「⬇ 下载影片」金色醒目 CTA（验收口径 20261019r2，作用域仅限 .video-actions） */
.video-actions .btn--gold {
  background: linear-gradient(135deg, #f5c451, #dd8f1f);
  color: #1a1005;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 18px rgba(245, 166, 35, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.video-actions .btn--gold:hover:not(:disabled) {
  box-shadow: 0 10px 26px rgba(245, 166, 35, 0.5), 0 0 0 1px rgba(245, 166, 35, 0.55);
}

/* ============================================================
   图生视频 · 默认全屏大窗口 + 醒目悬浮工具条 + 内部整体放大（20261019r3）
   ============================================================ */
/* 全屏窗口：铺满视口、左右留窄边，圆角描边呈"大窗口"感 */
.panel.is-panel-fullscreen {
  inset: 10px clamp(10px, 2vw, 30px);
  width: auto;
  height: auto;
  max-height: none;
  border-radius: 14px;
  border: 1px solid rgba(124, 58, 237, 0.45);
}

/* —— 醒目悬浮工具条：常驻吸顶、深色底 + 大白字大按钮 —— */
.panel.is-panel-fullscreen .panel__toolrow {
  padding: 14px clamp(16px, 3vw, 44px);
  background: rgba(6, 6, 10, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(124, 58, 237, 0.45);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.55);
  gap: 14px;
}
/* 左侧「← 返回」大白字大按钮 */
.panel.is-panel-fullscreen .panel__back {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  padding: 12px 24px;
  border: 1.5px solid rgba(255, 255, 255, 0.34);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  letter-spacing: 0.02em;
  margin: 0;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.panel.is-panel-fullscreen .panel__back:hover {
  background: rgba(124, 58, 237, 0.32);
  border-color: rgba(168, 85, 247, 0.85);
  box-shadow: 0 0 18px -2px rgba(124, 58, 237, 0.6);
}
/* 右侧「✕ 关闭」大白字大按钮 */
.panel.is-panel-fullscreen .ptool--close {
  width: auto;
  min-width: 0;
  height: 48px;
  padding: 12px 22px;
  gap: 8px;
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.34);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
}
.panel.is-panel-fullscreen .ptool--close:hover {
  background: rgba(233, 69, 96, 0.28);
  border-color: rgba(233, 69, 96, 0.85);
  box-shadow: 0 0 18px -2px rgba(233, 69, 96, 0.55);
}
/* 工具条内次级按钮（出片库 / 退出全屏）同步放大但弱于主按钮 */
.panel.is-panel-fullscreen .ptool--lib,
.panel.is-panel-fullscreen .ptool--fs {
  height: 48px;
  padding: 0 18px;
  font-size: 14px;
}
/* 按钮文案：内嵌态全称，全屏态「← 返回」「✕ 关闭」 */
.pb-txt--short, .pc-txt { display: none; }
.panel.is-panel-fullscreen .pb-txt--full { display: none; }
.panel.is-panel-fullscreen .pb-txt--short { display: inline; }
.panel.is-panel-fullscreen .pc-txt { display: inline; }

/* —— 内部整体放大：字号 / 输入框 / 按钮 / 两个下拉 —— */
.panel.is-panel-fullscreen .field-label,
.panel.is-panel-fullscreen .param-label { font-size: 15px; }
.panel.is-panel-fullscreen .vsel { font-size: 15.5px; padding: 14px 44px 14px 16px; }
.panel.is-panel-fullscreen .shot-name-input { font-size: 15px; padding: 13px 15px; }
.panel.is-panel-fullscreen .prompt-input,
.panel.is-panel-fullscreen .video-desc-input,
.panel.is-panel-fullscreen .audio-dialogue { font-size: 15.5px; }
.panel.is-panel-fullscreen .btn { font-size: 16px; }
.panel.is-panel-fullscreen .btn--block { padding: 16px 20px; }
.panel.is-panel-fullscreen .mref__title,
.panel.is-panel-fullscreen .audio-box__title { font-size: 15px; }
.panel.is-panel-fullscreen .mref__mode { font-size: 13.5px; }
.panel.is-panel-fullscreen .vmodel-note { font-size: 13.5px; }
.panel.is-panel-fullscreen .duration-slider__value { font-size: 16px; font-weight: 700; }
.panel.is-panel-fullscreen .credit-hint { font-size: 13.5px; }
.panel.is-panel-fullscreen .dropzone { min-height: 170px; }
.panel.is-panel-fullscreen .dropzone__placeholder p { font-size: 14.5px; }

/* 窄屏：工具条按钮仍清晰但不挤压 */
@media (max-width: 600px) {
  .panel.is-panel-fullscreen { inset: 6px; border-radius: 10px; }
  .panel.is-panel-fullscreen .panel__toolrow { padding: 10px 12px; gap: 8px; flex-wrap: wrap; }
  .panel.is-panel-fullscreen .panel__back { font-size: 15px; padding: 10px 16px; }
  .panel.is-panel-fullscreen .ptool--close { height: 42px; padding: 10px 14px; font-size: 15px; }
  .panel.is-panel-fullscreen .ptool--lib,
  .panel.is-panel-fullscreen .ptool--fs { height: 42px; padding: 0 12px; font-size: 13px; }
}

/* 全屏创作态：隐藏站点顶栏（含精选横幅）与左侧竖排导航。
   原因：全屏面板受祖先 stacking context 限制，root 级 fixed 站点壳（topbar z100 / banner z60 / rail z90）
   会压在全屏面板之上、遮挡工具条；隐藏后高层业务弹层（出片库/商城/管理 z≥1100）仍可正常覆盖。 */
body.panel-fs-open .topbar,
body.panel-fs-open #showcase-banner,
body.panel-fs-open .left-rail {
  display: none !important;
}

/* ============================================================
   全屏工具条占位不遮字（20261019r4 修复：工具条移出滚动区，参与文档流）
   结构：JS 在全屏时把 .panel__toolrow 移为 .panel__body 的兄弟节点，
   正文滚动区从工具条下方开始，任何滚动位置正文都不会钻到工具条背后。
   ============================================================ */
.panel.is-panel-fullscreen { display: flex; flex-direction: column; }
.panel.is-panel-fullscreen > .panel__toolrow {
  position: static;
  top: auto;
  z-index: auto;
  flex: none;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 14px clamp(16px, 3vw, 44px);
  background: #08080c;            /* 实色不透明，杜绝透字 */
  backdrop-filter: none;
  border-bottom: 1px solid rgba(124, 58, 237, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.panel.is-panel-fullscreen .panel__body {
  flex: 1 1 auto;
  min-height: 0;
  padding-top: 20px;              /* 正文首个字段完整落在工具条下方 */
}
@media (max-width: 600px) {
  .panel.is-panel-fullscreen > .panel__toolrow { padding: 10px 12px; }
}

/* ============ 20261020r5 真实性标识 + 全屏弹层层级 + @素材浮层 ============ */
/* 本地示意预览：角标（视频区/镜头卡） */
.preview-badge {
  position: absolute; top: 8px; right: 26px; z-index: 6;
  padding: 4px 10px; border-radius: 6px;
  background: rgba(233, 69, 96, .92); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: .04em;
  box-shadow: 0 2px 10px rgba(233, 69, 96, .45);
  pointer-events: none;
}
.preview-badge--card { top: 8px; right: 26px; font-size: 10.5px; padding: 3px 8px; }
.shot-card { position: relative; }
/* 本地示意预览：顶部横幅（视频结果区常驻） */
.preview-banner {
  margin: 0 0 10px; padding: 10px 14px; border-radius: 10px;
  background: rgba(233, 69, 96, .13); border: 1px solid rgba(233, 69, 96, .55);
  color: #ff96a8; font-size: 13px; font-weight: 700; line-height: 1.55;
}
/* 真实出片失败：错误面板（原因 + 重试 + 显式本地预览入口） */
.video-error, .shot-card--error {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 34px 26px; text-align: center;
  border: 1px dashed rgba(233, 69, 96, .55); border-radius: 14px;
  background: rgba(233, 69, 96, .06);
}
.shot-card--error { grid-column: 1 / -1; aspect-ratio: auto !important; min-height: 220px; }
.video-error__icon { font-size: 30px; }
.video-error__title { margin: 0; color: #ff96a8; font-size: 16px; font-weight: 800; }
.video-error__reason {
  margin: 0; max-width: 560px; color: #d3d7e3; font-size: 12.5px; line-height: 1.7;
  word-break: break-all;
  background: rgba(0, 0, 0, .35); border: 1px solid rgba(233, 69, 96, .25);
  padding: 8px 12px; border-radius: 8px;
  font-family: "JetBrains Mono", monospace;
}
.video-error__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.video-error__hint { margin: 0; color: #9ca3af; font-size: 11.5px; }
/* 真实出片等待占位 */
.video-waiting {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  aspect-ratio: 16 / 9; color: #d3d7e3; font-size: 14px; letter-spacing: .06em;
}
.video-waiting__dot {
  width: 10px; height: 10px; border-radius: 50%; background: #7c3aed;
  animation: lcPulse 1.1s ease-in-out infinite;
}
@keyframes lcPulse { 0%, 100% { opacity: .25; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.15); } }
/* 预览下载按钮：幽灵红框，区别于真实成片的金色 CTA */
.btn--preview-dl { border-color: rgba(233, 69, 96, .6) !important; color: #ff96a8 !important; }
/* 对话区本地演示标注 */
.local-preview-note {
  margin: 0 0 8px; padding: 8px 10px; border-radius: 8px;
  background: rgba(233, 69, 96, .12); border: 1px solid rgba(233, 69, 96, .5);
  color: #ff96a8; font-size: 12px; font-weight: 700; line-height: 1.6;
}
/* 出片库：失败原因备注 */
.tk-item__note {
  color: #ff8aa0; font-size: 10.5px; line-height: 1.5; margin-top: 2px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* 出片库预览徽标改红，与真实成片（绿）强区分 */
.tk-badge--prev { color: #ff96a8 !important; border-color: rgba(233, 69, 96, .55) !important; }

/* 全屏面板层级修复：站点弹层必须压过 z-9000 的全屏面板（此前全屏下扣费弹窗/出片库被压在面板背后） */
body.panel-fs-open .modal { z-index: 9600; }
body.panel-fs-open .tk-modal { z-index: 9700; }
body.panel-fs-open .confetti-canvas { z-index: 9800; }
body.panel-fs-open .fly-coin { z-index: 9850; }

/* @素材浮层 */
.mention-pop {
  position: fixed; z-index: 9400;
  width: min(360px, calc(100vw - 32px));
  max-height: 320px; overflow-y: auto;
  background: #0d0d12; border: 1px solid rgba(124, 58, 237, .55); border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .65);
  padding: 6px;
}
.mention-pop__group {
  padding: 6px 10px 3px; color: #9b8bd4; font-size: 10.5px; font-weight: 700; letter-spacing: .1em;
}
.mention-pop__item {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 10px; border-radius: 8px; cursor: pointer;
}
.mention-pop__item.is-active { background: rgba(124, 58, 237, .28); }
.mention-pop__thumb {
  width: 40px; height: 40px; flex: none; border-radius: 6px; object-fit: cover;
  border: 1px solid rgba(124, 58, 237, .35); background: #000;
}
.mention-pop__name { color: #fff; font-size: 12.5px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mention-pop__meta { color: #9ca3af; font-size: 10.5px; }
.mention-pop__empty { padding: 14px; color: #9ca3af; font-size: 12px; text-align: center; }
/* 扣费弹窗「服务端实时」角标 */
.confirm-balance__src { color: #9ca3af; font-size: 11px; font-weight: 400; margin-left: 2px; }

/* ============ 20261020r6 积分提示 hidden 失效修复 + 扣费弹窗余额行 ============ */
/* .credit-hint 是 display:flex，会覆盖 UA 的 [hidden]{display:none}，导致「积分不足」提示
   在余额充足时仍然可见（r5 验收 130≥35 却看到提示的根因）。显式补回。 */
.credit-hint[hidden] { display: none !important; }

/* ============ 20261020r7 画面描述输入框加高 ============ */
/* 图生视频「画面描述（可选）」textarea 原来仅 rows=2（约两行可见），粘贴长提示词需反复滚动。
   加高到 min-height 220px（约 9~10 行可见），resize:vertical 原本已允许继续纵向拉高；
   .panel__body 本身是 overflow-y:auto 的滚动容器，下方镜头运动/模型/分辨率/声音/生成按钮
   只会随内容自然下移、内部滚动可达，不会被挤出屏幕或遮挡。 */
.video-desc-input { min-height: 220px; }
/* 同类长文本体验统一：文生图「画面提示词」全屏态同步加高（原 120px） */
.panel.is-panel-fullscreen .prompt-input { min-height: 220px; }

/* ======== 版面利用率优化（仅布局样式，不改业务） ======== */
/* AI 内容中心：卡片响应式网格 4/3/2 列，避免单列堆叠与溢出 */
.aic-card { min-width: 0; }
@media (max-width: 1180px) {
  .aic__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .aic__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media (max-width: 560px) {
  .aic__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .aic-card { aspect-ratio: 3 / 4; }
}

/* 宽屏 ≥1280px：激活面板跨满宽并改为“表单区 + 结果区”左右分栏，避免纵向过长 */
@media (min-width: 1280px) {
  .workspace.has-active .panel.is-active {
    grid-column: 1 / -1;
  }
  .workspace.has-active .panel:not(.is-active) {
    grid-column: auto;
    grid-row: auto;
  }
  .panel.is-active:not(.is-panel-fullscreen) .panel__body {
    display: grid;
    grid-template-columns: minmax(380px, 460px) minmax(0, 1fr);
    gap: 18px 30px;
    align-items: start;
  }
  .panel.is-active:not(.is-panel-fullscreen) .panel__body > .panel__toolrow {
    grid-column: 1 / -1;
  }
  /* 文生图 / 图生视频：结果画廊居右，表单居左 */
  .panel.is-active:not(.is-panel-fullscreen) .panel__body > .gallery {
    grid-column: 2;
    grid-row: 2 / span 40;
    min-width: 0;
  }
  /* AI 导演对话：结果日志居右、输入区居左 */
  .panel.is-active:not(.is-panel-fullscreen) .panel__body--chat {
    grid-template-columns: minmax(360px, 440px) minmax(0, 1fr);
    gap: 18px 30px;
  }
  .panel.is-active:not(.is-panel-fullscreen) .panel__body--chat > .panel__back {
    grid-column: 1 / -1;
  }
  .panel.is-active:not(.is-panel-fullscreen) .panel__body--chat > .chat-log {
    grid-column: 2;
    grid-row: 1 / span 40;
    min-width: 0;
  }
  .panel.is-active:not(.is-panel-fullscreen) .panel__body--chat > .chat-input-wrap {
    grid-column: 1;
    grid-row: 2;
    position: sticky;
    bottom: 12px;
  }
  /* 图生视频结果（视频/首帧画廊多类容器）统一居右 */
  .panel.is-active:not(.is-panel-fullscreen) .panel__body > .video-zone,
  .panel.is-active:not(.is-panel-fullscreen) .panel__body > .video-preview-wrap,
  .panel.is-active:not(.is-panel-fullscreen) .panel__body > .shot-gallery,
  .panel.is-active:not(.is-panel-fullscreen) .panel__body > .video-stage {
    grid-column: 2;
    grid-row: 2 / span 60;
    min-width: 0;
  }
}

/* 故事质量闸门：追问清单 / 通过标注 */
.gate-list { margin: 8px 0 6px 18px; padding: 0; }
.gate-list li { color: #d3d7e3; font-size: 13px; line-height: 1.7; }
.gate-list li strong { color: #ffffff; }
.gate-pass { color: #34d399; font-size: 13px; font-weight: 600; margin: 4px 0 8px; }
