/* ==========================================================================
   视频创作站 · studio.css
   参照业内同款 AI 视频创作工作站的信息架构（布局 / 栅格 / 配色 / 组件形态），素材与品牌均为自有
   主题：data-theme=dark（默认，陈哥指定）/ light —— 变量与对标站同名（--studio-*）
   ========================================================================== */

:root,
html[data-theme="light"] {
  --studio-primary: #6d4aff;
  --studio-primary-hover: #5a36ec;
  --studio-primary-soft: #f1edff;
  --studio-text: #17151f;
  --studio-subtext: #5b5866;
  --studio-dim: #8b8797;
  --studio-muted: #a9a5b8;
  --studio-line: #e9e6f1;
  --studio-line-soft: #f0edf7;
  --studio-surface: #ffffff;
  --studio-surface-glass: rgba(255, 255, 255, 0.72);
  --studio-canvas: #fbfafd;
  --studio-success: #12a06a;
  --studio-danger: #d93f4c;
  --studio-warning: #b8860b;
  --studio-lime: #e9ff63;
  --studio-accent-ink: #5b36f0;
  --studio-accent-line: #c9bcff;
  --studio-accent-line-on: #8b6bff;
  --studio-accent-fill: #f5f2fe;
  --studio-accent-fill-strong: #efeaff;
  --studio-border: #e4e0f0;
  --studio-dash: #d8d3e8;
  --studio-track: #d9d5e3;
  --studio-faint: #c4c0d0;
  --studio-fill: #faf9fe;
  --studio-fill-strong: #f3f1fa;
  --studio-fill-media: #eeebf5;
  --studio-disabled: #c8bff2;
  --studio-scrim: rgba(255, 255, 255, 0.6);
  --studio-success-soft: #e8f7ef;
  --studio-danger-soft: #fdeef0;
  --studio-danger-ink: #c73545;
  --studio-warning-soft: #fff4dc;
  --studio-warning-ink: #7a5b08;
  --studio-shadow: 0 14px 38px rgba(49, 37, 77, 0.08);
  --studio-shadow-pop: 0 18px 46px rgba(30, 20, 60, 0.16);
  --studio-sidebar: 80px;
  --studio-radius: 14px;
  --studio-radius-lg: 20px;
  --studio-radius-sm: 8px;
  --studio-content-max: 1400px;
  color-scheme: light;
}

html[data-theme="dark"] {
  --studio-primary: #6d4aff;
  --studio-primary-hover: #8b6bff;
  --studio-primary-soft: #251f3d;
  --studio-text: #ebe9f2;
  --studio-subtext: #a49fb5;
  --studio-dim: #8b8797;
  --studio-muted: #6f6b7e;
  --studio-line: #2b2937;
  --studio-line-soft: #232130;
  --studio-surface: #16151d;
  --studio-surface-glass: rgba(22, 21, 29, 0.72);
  --studio-canvas: #0e0d14;
  --studio-success: #2ecc8f;
  --studio-danger: #ff6b78;
  --studio-warning: #e0b33c;
  --studio-lime: #e9ff63;
  --studio-accent-ink: #b4a1ff;
  --studio-accent-line: #4b3d84;
  --studio-accent-line-on: #7b5cf0;
  --studio-accent-fill: #221d38;
  --studio-accent-fill-strong: #2b2447;
  --studio-border: #302e3d;
  --studio-dash: #3a3748;
  --studio-track: #35323f;
  --studio-faint: #5b5769;
  --studio-fill: #1c1b25;
  --studio-fill-strong: #24222f;
  --studio-fill-media: #24222f;
  --studio-disabled: #3b3455;
  --studio-scrim: rgba(14, 13, 20, 0.6);
  --studio-success-soft: #14332a;
  --studio-danger-soft: #3a2028;
  --studio-danger-ink: #ff8a94;
  --studio-warning-soft: #342811;
  --studio-warning-ink: #e6c069;
  --studio-shadow: 0 14px 38px rgba(0, 0, 0, 0.5);
  --studio-shadow-pop: 0 18px 46px rgba(0, 0, 0, 0.62);
  color-scheme: dark;
}

* { box-sizing: border-box; }
/* v2c：图片默认不许超容器（有些 <img> 之前没写宽度，按原图尺寸撑爆布局） */
img { max-width: 100%; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--studio-canvas);
  color: var(--studio-text);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  /* v22e：去掉 -webkit-font-smoothing:antialiased（Windows 上会关闭次像素渲染 → 文字发虚）；
     源站 body 为 auto，这里跟随 */
  -webkit-font-smoothing: auto;
  transition: background .2s ease, color .2s ease;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--studio-line); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------------- 骨架 ---------------- */
.video-studio { min-height: 100vh; }

.studio-sidebar {
  position: fixed; left: 0; top: 0; bottom: 0; width: var(--studio-sidebar);
  background: var(--studio-surface);
  border-right: 1px solid var(--studio-line-soft);
  display: flex; flex-direction: column; align-items: center;
  z-index: 60;
}
.studio-brand { display: flex; align-items: center; justify-content: center; padding: 14px 0; width: 100%; }
.studio-brand__mark { width: 34px; height: 34px; border-radius: 9px; object-fit: contain; }
/* 2026-11-23：站长要求去掉创作框下方「帮你做✦剧情短片✦…」整行
   （仅隐藏展示，HELPS 数据与 [data-help] 点击逻辑保留，删掉本段即可恢复） */
.helps-row { display: none !important; }
/* v903（2026-11-26）：品牌字加深紫色 + 扫光动画
   站长要求：颜色更深、更紫，带扫光掠过效果 */
.studio-brand__word {
  position: relative;
  display: flex; flex-direction: row; align-items: baseline; gap: 2px;
  line-height: 1; user-select: none; white-space: nowrap;
}
.studio-brand__word b,
.studio-brand__word i {
  position: relative;
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: brandSweep 3.2s ease-in-out infinite, brandGlow 2.6s ease-in-out infinite;
}
/* 主字「蜃楼」：深紫 → 亮紫 渐变，饱和度更高 */
.studio-brand__word b {
  font-size: 16px; font-weight: 900; letter-spacing: .6px;
  background-image: linear-gradient(110deg,
    #7c3aed 0%, #a855f7 22%, #d8b4fe 42%,
    #c084fc 58%, #8b5cf6 78%, #6d28d9 100%);
  text-shadow: 0 0 14px rgba(147, 51, 234, .5);
}
/* 副字「AI」：深紫到亮紫 */
.studio-brand__word i {
  font-style: normal; font-size: 13px; font-weight: 900; letter-spacing: .6px;
  background-image: linear-gradient(110deg, #6d28d9, #a855f7 45%, #e9d5ff 70%, #8b5cf6);
  text-shadow: 0 0 10px rgba(147, 51, 234, .45);
}
/* 扫光：渐变位置从左掠到右 */
@keyframes brandSweep {
  0%   { background-position: 0% center; }
  55%  { background-position: 100% center; }
  100% { background-position: 100% center; }
}
/* 呼吸光晕 */
@keyframes brandGlow {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(124, 58, 237, .35)); }
  50%      { filter: drop-shadow(0 0 14px rgba(168, 85, 247, .72)); }
}
.studio-brand:hover .studio-brand__word b,
.studio-brand:hover .studio-brand__word i {
  filter: drop-shadow(0 0 18px rgba(192, 132, 252, .95));
  animation-duration: 1.6s, 1.3s;
}
/* 尊重「减少动画」偏好 */
@media (prefers-reduced-motion: reduce) {
  .studio-brand__word b, .studio-brand__word i { animation: none; }
}
/* v702：参考视频「移除」按钮 */
.rep-upload { position: relative; }
/* v702：左栏操作区吸底（避免「开始复刻」被挤到可视区外） */
.rep-actions {
  position: sticky; bottom: 0; z-index: 4;
  padding: 10px 0 6px; margin-top: 4px;
  background: linear-gradient(180deg, rgba(12, 12, 18, 0) 0%, rgba(12, 12, 18, .92) 34%, rgba(12, 12, 18, .99) 100%);
}
.rep-actions .rep-start { width: 100%; }
.rep-actions__cost { margin-top: 8px; text-align: center; font-size: 12px; font-weight: 600; color: #a78bfa; }
.rep-upload__del {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  width: 24px; height: 24px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; line-height: 1; color: #fff;
  background: rgba(12, 12, 20, .72); border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(4px); transition: background .15s, border-color .15s, transform .15s;
}
.rep-upload__del:hover { background: rgba(220, 38, 38, .85); border-color: rgba(255, 255, 255, .35); transform: scale(1.08); }
.studio-nav { display: flex; flex-direction: column; width: 100%; }
.studio-nav__item {
  width: 100%; height: 60px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px;
  color: var(--studio-dim); font-size: 11px; transition: color .15s, background .15s;
}
.studio-nav__item svg { width: 20px; height: 20px; }
.studio-nav__item:hover { color: var(--studio-text); }
.studio-nav__item.is-active { color: var(--studio-primary); }
.studio-nav__item.is-active span { font-weight: 600; }

.studio-sidebar__bottom { margin-top: auto; width: 100%; padding-bottom: 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.studio-balance {
  width: 100%; height: 57px; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 2px; color: var(--studio-text);
}
.studio-balance b { font-size: 14px; color: var(--studio-primary); }
.studio-balance span { font-size: 11px; color: var(--studio-dim); }
.studio-balance:hover { background: var(--studio-fill); }

.studio-sidebar__links { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.studio-sidebar__links button,
.studio-sidebar__links a {
  width: 32px; height: 32px; border-radius: 9px; display: flex; align-items: center;
  justify-content: center; color: var(--studio-dim); background: var(--studio-fill);
  font-size: 11px; font-weight: 600;
}
.studio-sidebar__links button:hover, .studio-sidebar__links a:hover { color: var(--studio-primary); background: var(--studio-accent-fill); }
.studio-sidebar__links svg { width: 20px; height: 20px; }
.studio-account { margin-top: 6px; }
.studio-avatar {
  width: 30px; height: 30px; border-radius: 50%; background: var(--studio-accent-fill-strong);
  color: var(--studio-accent-ink); font-size: 12px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; border: 1px solid var(--studio-border);
}

.studio-main { margin-left: var(--studio-sidebar); padding: 26px 0 60px; min-height: 100vh; }
.page { max-width: var(--studio-content-max); margin: 0 auto; padding: 0 24px; }

/* ---------------- 通用组件 ---------------- */
.ghost-button {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px;
  border: 1px solid var(--studio-border); border-radius: 10px; color: var(--studio-subtext);
  background: var(--studio-surface); font-size: 13px; transition: .15s;
}
.ghost-button:hover { color: var(--studio-text); border-color: var(--studio-accent-line-on); }
.ghost-button svg { width: 15px; height: 15px; }
.ghost-button.is-wide { width: 100%; justify-content: center; }
.ghost-button.is-danger { color: var(--studio-danger); border-color: var(--studio-danger-line, var(--studio-border)); }
.primary-button {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 16px;
  border-radius: 10px; background: var(--studio-primary); color: #fff; font-size: 13px; font-weight: 500;
}
.primary-button:hover { background: var(--studio-primary-hover); }
.link-button { color: var(--studio-dim); font-size: 12px; }
.link-button:hover { color: var(--studio-primary); }
.create-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 20px; border-radius: 12px;
  background: var(--studio-primary); color: #fff; font-size: 14px; font-weight: 600;
  transition: background .15s;
}
.create-button:hover { background: var(--studio-primary-hover); }
.create-button:disabled { background: var(--studio-disabled); cursor: not-allowed; }

.studio-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 180px; border: 1px dashed var(--studio-dash); border-radius: var(--studio-radius, 14px);
  color: var(--studio-dim); background: var(--studio-fill);
}
.studio-empty svg { width: 24px; height: 24px; }
.studio-empty strong { font-size: 14px; color: var(--studio-subtext); font-weight: 600; }
.studio-empty span { font-size: 12px; }

.underline-tabs { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--studio-line-soft); flex-wrap: wrap; }
.underline-tabs__list { display: flex; align-items: center; gap: 4px; }
.underline-tabs__list a, .underline-tabs__list button {
  position: relative; height: 42px; padding: 0 12px; display: inline-flex; align-items: center; gap: 6px;
  color: var(--studio-dim); font-size: 13px;
}
.underline-tabs__list a.is-active, .underline-tabs__list button.is-active { color: var(--studio-text); font-weight: 600; }
.underline-tabs__list a.is-active::after, .underline-tabs__list button.is-active::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px;
  border-radius: 2px; background: var(--studio-primary);
}
.underline-tabs__list span { font-size: 12px; color: var(--studio-dim); }
.underline-tabs__tools { display: flex; align-items: center; gap: 8px; padding-bottom: 6px; }

.asset-search {
  display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px;
  border: 1px solid var(--studio-border); border-radius: 9px; background: var(--studio-surface); width: 200px;
}
.asset-search svg { width: 14px; height: 14px; color: var(--studio-dim); }
.asset-search input { border: 0; outline: 0; background: transparent; width: 100%; font-size: 12px; }

.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 6px; }
.page-heading h1, .page-heading h2 { font-size: 26px; margin: 0 0 4px; font-weight: 600; }
.page-heading p { margin: 0; color: var(--studio-dim); font-size: 13px; }
.heading-actions { display: flex; gap: 8px; }

.task-batch { height: 0; overflow: hidden; transition: height .18s; }
.task-batch.is-open { height: 46px; }
.task-batch__inner { display: flex; align-items: center; gap: 12px; height: 46px; }
.task-batch__count { font-size: 12px; color: var(--studio-dim); }
.task-batch__actions { display: flex; gap: 8px; margin-left: auto; }
.task-checkbox { width: 16px; height: 16px; accent-color: var(--studio-primary); }

/* ---------------- 创作页 Hero ---------------- */
.create-page { padding-top: 0; }
.create-hero { position: relative; margin-bottom: 22px; min-height: 100px; }
.launch-badge {
  display: inline-flex; align-items: center; gap: 8px; height: 27px; padding: 0 10px;
  border-radius: 999px; background: var(--studio-accent-fill); color: var(--studio-accent-ink);
  font-size: 17px; border: 1px solid var(--studio-accent-line);
}
.launch-badge img, .launch-badge svg { width: 20px; height: 20px; }
.create-hero h1 { font-size: 40px; margin: 12px 0 0; font-weight: 600; letter-spacing: .5px; }
.create-hero h1 b { color: var(--studio-primary); font-weight: 600; }
.create-hero__projector { position: absolute; right: 18px; top: -4px; width: 174px; opacity: .9; pointer-events: none; }
.create-hero__projector img { display: block; width: 100%; height: auto; }

/* ---------------- 创作卡 ---------------- */
.creator-card {
  position: relative; background: var(--studio-surface); border: 1px solid var(--studio-line);
  border-radius: 18px; box-shadow: var(--studio-shadow); overflow: hidden;
}
.creator-card__body { display: flex; gap: 12px; padding: 16px; min-height: 172px; }
.creator-model-body { display: flex; gap: 12px; flex: 1; min-width: 0; }
.creator-editor { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; }
.creator-editor__input, .creator-editor textarea {
  width: 100%; min-height: 140px; border: 0; outline: 0; resize: none; background: transparent;
  font-size: 14px; line-height: 1.7; color: var(--studio-text);
}
.creator-editor textarea::placeholder { color: var(--studio-faint); }

/* ===== v902（2026-11-26）：@图片1 / @视频1 引用标记紫色高亮 =====
 * textarea 无法给局部文字上色 → 叠一层镜像 div：
 *   .at-hl（彩字层，pointer-events:none）在下，textarea 文字透明、光标保留。
 * 两层 font/line-height/padding 必须完全一致，否则光标与文字错位。 */
.creator-editor__input { position: relative; }
.creator-editor__input .at-hl {
  position: absolute; inset: 0; overflow: hidden;
  white-space: pre-wrap; word-break: break-word;
  font: inherit; font-size: 14px; line-height: 1.7;
  color: var(--studio-text); pointer-events: none; z-index: 1;
}
.creator-editor__input .at-hl .at-tag { color: #a78bfa; font-weight: 600; }
[data-theme="light"] .creator-editor__input .at-hl .at-tag { color: #7c3aed; }
.creator-editor__input textarea.at-paint { position: relative; z-index: 2; color: transparent; caret-color: var(--studio-text); }
.creator-editor__input textarea.at-paint::placeholder { color: var(--studio-faint); }
.creator-editor__input textarea.at-paint::selection { background: rgba(167,139,250,.35); color: transparent; }
.creator-editor__count { align-self: flex-end; padding: 4px 14px 8px; font-size: 11px; color: var(--studio-dim); }

.creator-toolbar { display: flex; align-items: center; gap: 12px; padding: 12px 16px 14px; border-top: 1px solid var(--studio-line-soft); flex-wrap: wrap; }
.creator-toolbar__options { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.toolbar-menu { position: relative; }
.toolbar-menu__trigger {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px;
  border: 1px solid var(--studio-border); border-radius: 9px; background: var(--studio-fill);
  color: var(--studio-subtext); font-size: 13px; white-space: nowrap;
}
.toolbar-menu__trigger:hover { color: var(--studio-text); border-color: var(--studio-accent-line-on); }
.toolbar-menu__trigger.is-icon { width: 34px; padding: 0; justify-content: center; }
.toolbar-menu__trigger svg { width: 14px; height: 14px; }
.toolbar-menu__dropdown {
  position: absolute; bottom: calc(100% + 6px); left: 0; min-width: 168px; padding: 6px;
  background: var(--studio-surface); border: 1px solid var(--studio-border); border-radius: 12px;
  box-shadow: var(--studio-shadow-pop); z-index: 50; display: none;
}
.toolbar-menu.is-open .toolbar-menu__dropdown { display: block; }
.toolbar-menu__dropdown button {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  padding: 8px 10px; border-radius: 8px; color: var(--studio-subtext); font-size: 13px; text-align: left;
}
.toolbar-menu__dropdown button:hover { background: var(--studio-fill); color: var(--studio-text); }
.toolbar-menu__dropdown button.is-active { color: var(--studio-primary); background: var(--studio-accent-fill); }
.toolbar-menu__group { padding: 6px 10px 2px; font-size: 11px; color: var(--studio-muted); }

.creator-submit { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.creator-submit .cost { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.35; }
.creator-submit .cost span { font-size: 12px; color: var(--studio-dim); }
.creator-submit .cost b { color: var(--studio-primary); }
.creator-submit .cost small { font-size: 11px; color: var(--studio-muted); }

/* ===== v30：素材区照对标站重写（pills 计数器 + 堆叠卡片 + 整面板拖拽） ===== */
.ref-panel { position: relative; flex: none; width: 250px; padding-right: 16px; border-right: 1px solid var(--studio-line-soft); transition: background .16s ease; }
.ref-panel.is-dragging { background: var(--studio-accent-fill); }
.ref-panel__pills { display: flex; gap: 6px; margin-bottom: 10px; }
.ref-pill { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border: 1px solid var(--studio-line); border-radius: 12px; background: var(--studio-surface); color: var(--studio-dim); font-size: 11px; white-space: nowrap; font-variant-numeric: tabular-nums; cursor: default; }
.ref-pill svg { width: 12px; height: 12px; flex: none; }
.ref-pill.is-used { border-color: var(--studio-accent-line); background: var(--studio-accent-fill); color: var(--studio-primary); }
.ref-pill.is-full { color: var(--studio-warning); }
.ref-pill--help { justify-content: center; gap: 0; width: 24px; padding: 0; border-radius: 50%; color: var(--studio-dim); font-weight: 600; cursor: help; }
.ref-pill--help:focus-visible, .ref-pill--help:hover { border-color: var(--studio-accent-line); background: var(--studio-accent-fill); color: var(--studio-primary); outline: none; }
.ref-panel__empty { width: 100%; height: 96px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 1px dashed var(--studio-dash); border-radius: 12px; background: var(--studio-fill); color: var(--studio-dim); font-size: 12px; line-height: 1.5; cursor: pointer; transition: all .16s ease; }
.ref-panel__empty:hover { border-color: var(--studio-primary); background: var(--studio-accent-fill); color: var(--studio-accent-ink); }
.ref-panel__empty:disabled { cursor: default; opacity: .8; }
.ref-panel__empty svg { width: 16px; height: 16px; }
.ref-stack { position: relative; z-index: 0; height: 84px; display: flex; align-items: center; }
.ref-chip { position: relative; flex: none; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 11px; border: 2px solid var(--studio-surface); box-shadow: 0 4px 12px -6px rgba(40,26,100,.55); color: rgba(255,255,255,.94); overflow: hidden; cursor: pointer; background: var(--studio-fill-strong); transition: transform .26s cubic-bezier(.22,.85,.26,1), box-shadow .22s ease; }
.ref-chip.is-hovered { box-shadow: 0 14px 28px -10px rgba(40,26,100,.78); }
.ref-chip__preview { position: absolute; inset: 0; width: 100%; height: 100%; display: grid; place-items: center; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; }
.ref-chip img, .ref-chip video { width: 100%; height: 100%; object-fit: cover; }
.ref-chip__meta { position: absolute; left: 0; bottom: 0; padding: 1px 4px; border-top-right-radius: 6px; background: rgba(0,0,0,.52); color: #fff; font-size: 9px; font-variant-numeric: tabular-nums; }
.ref-chip__proc { font-size: 10px; color: var(--studio-dim); }
.ref-chip__remove { position: absolute; top: 3px; right: 3px; width: 14px; height: 14px; display: none; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; cursor: pointer; transition: background .16s ease; }
.ref-chip__remove:hover { background: var(--studio-danger); }
.ref-chip__remove svg { width: 7px; height: 7px; }
.ref-chip.is-hovered .ref-chip__remove { display: grid; }
.ref-stack > 


.ref-panel__hint { margin: 2px 0 0; color: var(--studio-faint); font-size: 11px; line-height: 1.5; }

/* 旧版素材槽（图片 / 首尾帧模式沿用） */
.ref-panel--legacy { width: 250px; display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; padding-right: 16px; border-right: 1px solid var(--studio-line-soft); }
/* v15：三组素材槽一字排列（1 列一组，未上传时三个槽整齐并排） */
.ref-panel--row { width: 372px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: start; }
.ref-panel--row .ref-res-group { min-width: 0; }
.ref-panel--row .ref-res-group__title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ref-panel--row .ref-hint { grid-column: 1 / -1; }
@media (max-width: 1200px) { .ref-panel--row { width: 262px; gap: 8px; } }
.ref-slot {
  position: relative; width: 74px; height: 74px; border-radius: 12px; border: 1px dashed var(--studio-dash);
  background: var(--studio-fill); display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 4px; color: var(--studio-dim); font-size: 11px; overflow: hidden;
}
.ref-slot:hover { border-color: var(--studio-accent-line-on); color: var(--studio-primary); }
.ref-slot img, .ref-slot video { width: 100%; height: 100%; object-fit: cover; }
.ref-slot__del {
  position: absolute; right: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--studio-scrim); color: #fff; font-size: 11px; line-height: 16px; text-align: center;
}
.ref-slot svg { width: 18px; height: 18px; }
.ref-res-group { display: flex; flex-direction: column; gap: 6px; }
.ref-res-group__title { font-size: 11px; color: var(--studio-muted); }

/* ---------------- 最近生成 ---------------- */
.recent-section { margin-top: 34px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section-head h2 { font-size: 14px; margin: 0; font-weight: 600; }
.recent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(206px, 1fr)); gap: 14px; }
.recent-card {
  position: relative; border-radius: var(--studio-radius); overflow: hidden;
  background: var(--studio-fill-media); aspect-ratio: 16 / 9; border: 1px solid var(--studio-line-soft);
  display: block; width: 100%;
}
.recent-card__media { position: absolute; inset: 0; display: block; }
.recent-card__media video, .recent-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.recent-card__duration {
  position: absolute; right: 6px; bottom: 6px; padding: 1px 6px; border-radius: 6px;
  background: rgba(0, 0, 0, .55); color: #fff; font-size: 11px;
}
.recent-card__failed {
  position: absolute; inset: 0; padding: 10px; display: flex; flex-direction: column; gap: 4px;
  justify-content: center; background: var(--studio-danger-soft); color: var(--studio-danger-ink); text-align: left;
}
.recent-card__failed b { font-size: 12px; }
.recent-card__failed small { font-size: 11px; opacity: .8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.recent-card__proc {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: var(--studio-accent-fill); color: var(--studio-accent-ink); font-size: 12px;
}

/* ---------------- 横幅 ---------------- */
.studio-banners { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 34px; }
.feature-banner {
  position: relative; height: 156px; border-radius: var(--studio-radius); overflow: hidden;
  padding: 22px; display: flex; flex-direction: column; justify-content: center; gap: 6px;
  border: 1px solid var(--studio-line); background: var(--studio-fill-media); text-align: left;
}
.feature-banner__art { position: absolute; inset: 0; background-size: cover; background-position: right center; }
.feature-banner__mark {
  position: relative; font-size: 10px; letter-spacing: 1px; color: var(--studio-lime); font-weight: 600;
}
.feature-banner strong { position: relative; font-size: 21px; font-weight: 600; color: #fff; }
.feature-banner small { position: relative; font-size: 13px; color: rgba(255, 255, 255, .78); max-width: 74%; }
.feature-banner.is-tutorial .feature-banner__art { background-image: linear-gradient(90deg, rgba(12, 10, 22, .84), rgba(12, 10, 22, .34) 58%, rgba(12, 10, 22, .06)), radial-gradient(120% 150% at 86% 26%, rgba(139, 107, 255, .55), rgba(139, 107, 255, 0) 62%); }
.feature-banner.is-pricing .feature-banner__art { background-image: linear-gradient(90deg, rgba(12, 10, 22, .88), rgba(12, 10, 22, .38) 58%, rgba(12, 10, 22, .08)), radial-gradient(120% 150% at 86% 26%, rgba(86, 156, 255, .5), rgba(86, 156, 255, 0) 62%); }

/* ---------------- 模板广场 ---------------- */
.feed-section { margin-top: 38px; }
.feed-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.feed-intro h2 { font-size: 24px; margin: 0 0 4px; }
.feed-intro p { margin: 0; font-size: 13px; color: var(--studio-dim); }
.feed-intro__count { font-size: 12px; color: var(--studio-muted); }
.feed-tools { display: flex; align-items: center; gap: 12px; margin: 14px 0 16px; flex-wrap: wrap; }
.feed-categories { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.feed-categories button {
  height: 34px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--studio-border);
  background: var(--studio-surface); color: var(--studio-dim); font-size: 13px;
}
.feed-categories button.is-active { color: var(--studio-primary); border-color: var(--studio-accent-line-on); background: var(--studio-accent-fill); }
.feed-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: start; }
.feed-column { display: flex; flex-direction: column; gap: 16px; }
.feed-item { border-radius: var(--studio-radius); overflow: hidden; }
.feed-card { position: relative; width: 100%; display: block; border-radius: var(--studio-radius); overflow: hidden; background: var(--studio-fill-media); }
.feed-card__media { display: block; width: 100%; }
.feed-card__media video, .feed-card__media img { width: 100%; display: block; }
.feed-card__mask {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px;
  padding: 12px; color: #fff; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .72));
  opacity: 0; transition: opacity .18s;
}
.feed-card:hover .feed-card__mask { opacity: 1; }
.feed-card__title { font-size: 13px; font-weight: 600; }
.feed-card__meta { display: flex; align-items: center; gap: 8px; font-size: 11px; opacity: .85; }
.feed-card__use { margin-left: auto; }
.feed-load-more { display: flex; justify-content: center; padding: 22px 0; }

/* ---------------- 信息三栏 ---------------- */
.info-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.info-trio article {
  background: var(--studio-surface); border: 1px solid var(--studio-line); border-radius: var(--studio-radius);
  padding: 18px;
}
.info-trio h3 { font-size: 14px; margin: 0 0 10px; }
.info-trio__list { display: flex; flex-direction: column; gap: 8px; }
.info-trio__list span { font-size: 12px; color: var(--studio-dim); }
.info-trio__list b { color: var(--studio-text); margin-right: 4px; }
.info-trio p { font-size: 13px; color: var(--studio-dim); margin: 0 0 12px; }

/* ---------------- 任务页 ---------------- */
.tasks-page { border: 0; padding: 0; margin: 0; }
.studio-task-heading h1 { font-size: 26px; margin: 0 0 4px; }
.studio-task-heading p { margin: 0; color: var(--studio-dim); font-size: 13px; }
.studio-task-tabs { margin-top: 14px; }
.task-list { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.task-card {
  display: flex; gap: 14px; padding: 12px; background: var(--studio-surface);
  border: 1px solid var(--studio-line); border-radius: var(--studio-radius);
}
.task-card__media { position: relative; width: 132px; height: 76px; border-radius: 10px; overflow: hidden; background: var(--studio-fill-media); flex: none; }
.task-card__media video, .task-card__media img { width: 100%; height: 100%; object-fit: cover; }
.task-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.task-card__prompt { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.task-card__meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--studio-dim); flex-wrap: wrap; }
.task-card__actions { display: flex; align-items: center; gap: 8px; }
.status-pill { padding: 2px 8px; border-radius: 999px; font-size: 11px; border: 1px solid var(--studio-border); color: var(--studio-dim); }
.status-pill.is-running { color: var(--studio-accent-ink); background: var(--studio-accent-fill); border-color: var(--studio-accent-line); }
.status-pill.is-done { color: var(--studio-success); background: var(--studio-success-soft); border-color: transparent; }
.status-pill.is-failed { color: var(--studio-danger-ink); background: var(--studio-danger-soft); border-color: transparent; }
.status-pill.is-blocked { color: var(--studio-warning-ink); background: var(--studio-warning-soft); border-color: transparent; }

/* ---------------- 资产页 ---------------- */
.asset-tabs { margin-top: 4px; }
.asset-usage { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--studio-dim); }
.asset-folder-nav { display: flex; align-items: center; gap: 10px; padding: 14px 0; }
.asset-folder-nav__label { font-size: 12px; color: var(--studio-muted); }
.asset-folder-nav__items { display: flex; align-items: center; gap: 8px; }
.asset-folder-nav__item button {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px;
  border: 1px solid var(--studio-border); border-radius: 10px; color: var(--studio-subtext); font-size: 13px;
}
.asset-folder-nav__item button.is-active { color: var(--studio-primary); border-color: var(--studio-accent-line-on); background: var(--studio-accent-fill); }
.asset-folder-nav__item small { font-size: 11px; color: var(--studio-muted); }
.asset-folder-nav__upload { margin-left: auto; }
.asset-filters { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; flex-wrap: wrap; }
.asset-media-filter { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.asset-media-filter button {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px;
  border-radius: 9px; color: var(--studio-dim); font-size: 13px;
}
.asset-media-filter button.is-active { color: var(--studio-primary); background: var(--studio-accent-fill); }
.asset-media-filter span { font-size: 11px; color: var(--studio-muted); }
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.asset-card {
  position: relative; background: var(--studio-surface); border: 1px solid var(--studio-line);
  border-radius: var(--studio-radius); overflow: hidden;
}
.asset-card__select { position: absolute; left: 8px; top: 8px; z-index: 3; }
.asset-card__open { display: block; width: 100%; text-align: left; }
.asset-card__media { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--studio-fill-media); }
.asset-card__media video, .asset-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.asset-card__kind {
  position: absolute; left: 6px; top: 6px; padding: 1px 7px; border-radius: 6px; font-size: 11px;
  background: rgba(0, 0, 0, .55); color: #fff;
}
.asset-card__meta { position: absolute; right: 6px; bottom: 6px; font-size: 11px; color: #fff; background: rgba(0, 0, 0, .55); padding: 1px 6px; border-radius: 6px; }
.asset-card__play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; opacity: .85; }
.asset-card__play svg { width: 26px; height: 26px; }
.asset-card__info { display: block; padding: 8px 10px 0; }
.asset-card__info strong { display: block; font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asset-card__info small { display: block; font-size: 11px; color: var(--studio-muted); margin-top: 2px; }
.asset-card__actions { position: absolute; right: 8px; top: 8px; display: flex; gap: 4px; opacity: 0; transition: opacity .15s; }
.asset-card:hover .asset-card__actions { opacity: 1; }
.asset-card__actions button {
  width: 26px; height: 26px; border-radius: 8px; background: var(--studio-surface-glass);
  display: flex; align-items: center; justify-content: center; color: var(--studio-subtext); backdrop-filter: blur(4px);
}
.asset-card__actions button:hover { color: var(--studio-primary); }
/* v24：删除键（垃圾桶）自动点亮变红（原来与下载/复制一样是灰→紫，看不出危险） */
.asset-card__actions button.is-danger { color: var(--studio-danger); background: var(--studio-danger-soft); }
.asset-card__actions button.is-danger:hover { color: var(--studio-surface); background: var(--studio-danger); }
.asset-card__actions svg { width: 14px; height: 14px; }

/* ---------------- 积分中心 ---------------- */
.points-page { padding-top: 4px; }
.points-hero { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 18px 0; }
.points-stat { background: var(--studio-surface); border: 1px solid var(--studio-line); border-radius: var(--studio-radius); padding: 18px; }
.points-stat h4 { margin: 0 0 10px; font-size: 12px; color: var(--studio-dim); font-weight: 400; }
.points-stat b { font-size: 26px; display: block; line-height: 1.2; }
.points-stat b em { font-size: 13px; font-style: normal; color: var(--studio-dim); margin-left: 4px; }
.points-stat small { display: block; margin-top: 8px; font-size: 12px; color: var(--studio-muted); }
.points-packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: 16px; }
.pack-card { background: var(--studio-surface); border: 1px solid var(--studio-line); border-radius: var(--studio-radius); padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.pack-card h4 { margin: 0; font-size: 15px; }
.pack-card .num { font-size: 24px; font-weight: 600; color: var(--studio-primary); }
.pack-card .num em { font-size: 12px; font-style: normal; color: var(--studio-dim); margin-left: 4px; }
.pack-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--studio-dim); }
.pack-price { font-size: 20px; font-weight: 600; color: var(--studio-text); margin-top: 6px; }
.pack-card .primary-button { width: 100%; justify-content: center; height: 36px; }
.pack-card.is-hot { border-color: var(--studio-accent-line-on); box-shadow: var(--studio-shadow); }
.records-table { width: 100%; border-collapse: collapse; background: var(--studio-surface); border: 1px solid var(--studio-line); border-radius: var(--studio-radius); overflow: hidden; }
.records-table th, .records-table td { padding: 10px 14px; text-align: left; font-size: 12px; border-bottom: 1px solid var(--studio-line-soft); }
.records-table th { color: var(--studio-dim); font-weight: 400; background: var(--studio-fill); }
.records-table td.minus { color: var(--studio-danger-ink); }
.records-table td.plus { color: var(--studio-success); }
.section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 30px 0 14px; }
.section-title h3 { margin: 0; font-size: 16px; }
.section-title small { color: var(--studio-muted); font-size: 12px; }

/* ---------------- 弹窗 / 抽屉 / 提示 ---------------- */
.overlay {
  position: fixed; inset: 0; background: rgba(6, 5, 12, .62); backdrop-filter: blur(3px);
  display: none; align-items: center; justify-content: center; z-index: 200; padding: 20px;
}
.overlay.is-open { display: flex; }
.modal {
  width: 100%; max-width: 400px; background: var(--studio-surface); border: 1px solid var(--studio-border);
  border-radius: 18px; box-shadow: var(--studio-shadow-pop); padding: 24px;
}
.modal h3 { margin: 0 0 6px; font-size: 18px; }
.modal p.sub { margin: 0 0 18px; font-size: 12px; color: var(--studio-dim); }
.field { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border: 1px solid var(--studio-border); border-radius: 10px; background: var(--studio-fill); margin-bottom: 12px; }
.field input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 14px; }
.field button { color: var(--studio-primary); font-size: 12px; white-space: nowrap; }
.modal .row { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--studio-dim); margin-bottom: 14px; }
.modal .row button.is-active { color: var(--studio-primary); }
.modal .primary-button { width: 100%; height: 42px; justify-content: center; border-radius: 10px; font-size: 14px; }
.modal .switch-line { text-align: center; margin-top: 14px; font-size: 12px; color: var(--studio-dim); }
.modal .switch-line button { color: var(--studio-primary); }

.popover {
  position: fixed; z-index: 220; min-width: 176px; padding: 6px; background: var(--studio-surface);
  border: 1px solid var(--studio-border); border-radius: 12px; box-shadow: var(--studio-shadow-pop); display: none;
  max-height: 60vh; overflow: auto;
}
.popover.is-open { display: block; }
.popover button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 9px 10px; border-radius: 8px; color: var(--studio-subtext); font-size: 13px; text-align: left; }
.popover button:hover { background: var(--studio-fill); color: var(--studio-text); }
.popover button.is-active { color: var(--studio-primary); background: var(--studio-accent-fill); }
.popover button[disabled] { color: var(--studio-muted); cursor: not-allowed; }
.popover hr { border: 0; border-top: 1px solid var(--studio-line-soft); margin: 5px 4px; }

.toast-wrap { position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  max-width: 78vw; padding: 10px 16px; border-radius: 10px; font-size: 13px;
  background: var(--studio-surface); border: 1px solid var(--studio-border);
  box-shadow: var(--studio-shadow-pop); color: var(--studio-text); animation: toastIn .18s ease;
}
.toast.is-error { border-color: var(--studio-danger); color: var(--studio-danger-ink); }
.toast.is-ok { border-color: var(--studio-success); }
@keyframes toastIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.viewer { position: fixed; inset: 0; z-index: 250; background: rgba(4, 4, 8, .88); display: none; align-items: center; justify-content: center; padding: 24px; }
.viewer.is-open { display: flex; }
.viewer video, .viewer img { max-width: 92vw; max-height: 88vh; border-radius: 12px; }
.viewer__close { position: absolute; right: 22px; top: 18px; color: #fff; font-size: 26px; }

.spin { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--studio-line); border-top-color: var(--studio-primary); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- 响应式（PC / 平板 / 手机） ---------------- */
@media (max-width: 1199px) {
  .feed-grid { grid-template-columns: repeat(3, 1fr); }
  .create-hero__projector { display: none; }
  .points-hero { grid-template-columns: 1fr 1fr; }
  .ref-panel { width: 200px; }
}

@media (max-width: 900px) {
  .feed-grid { grid-template-columns: repeat(2, 1fr); }
  .info-trio { grid-template-columns: 1fr; }
  .studio-banners { grid-template-columns: 1fr; }
  .ref-panel { width: 100%; }
  .creator-card__body { flex-direction: column; }
}

@media (max-width: 767px) {
  .studio-main { margin-left: 0; padding: 16px 0 84px; }
  .page { padding: 0 14px; }
  .studio-sidebar {
    left: 0; right: 0; top: auto; bottom: 0; width: 100%; height: 60px; flex-direction: row;
    border-right: 0; border-top: 1px solid var(--studio-line);
  }
  .studio-brand { display: none; }
  .studio-nav { flex-direction: row; flex: 1; justify-content: space-around; }
  .studio-nav__item { height: 58px; }
  .studio-sidebar__bottom { margin: 0; flex-direction: row; padding: 0 10px 0 0; gap: 6px; }
  .studio-balance { width: auto; height: 44px; padding: 0 8px; }
  .studio-balance b { font-size: 14px; }
  .studio-sidebar__links { flex-direction: row; gap: 6px; }
  .create-hero h1 { font-size: 40px; }
  .creator-editor__input, .creator-editor textarea { min-height: 104px; }
  .creator-submit { width: 100%; justify-content: space-between; }
  .feed-grid { grid-template-columns: 1fr; }
  .points-hero { grid-template-columns: 1fr; }
  .recent-grid { grid-template-columns: 1fr 1fr; }
  .assets-page .underline-tabs__tools { flex-wrap: wrap; }
  .asset-search { width: 100%; }
  .task-card { flex-direction: column; }
  .task-card__media { width: 100%; height: 150px; }
  .records-table { display: block; overflow-x: auto; white-space: nowrap; }
  .modal { max-width: 100%; }
}


/* ================= v1 收银台 / 兑换 / 登录页（新块统一 .x102 前缀，避免旧选择器串味） ================= */

/* 积分页：兑换码卡片 */
.x102recharge { display: flex; align-items: center; gap: 16px; padding: 16px 18px; margin: 14px 0 4px;
  border: 1px solid var(--studio-line); border-radius: 14px; background: var(--studio-panel); }
.x102recharge__l h3 { margin: 0 0 4px; font-size: 15px; }
.x102recharge__l p { margin: 0; font-size: 12px; color: var(--studio-dim); }
.x102recharge__r { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.x102recharge__r input { width: 230px; height: 38px; padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--studio-line); background: var(--studio-input, rgba(255, 255, 255, .04)); color: var(--studio-text); font-size: 13px; }
.x102recharge__r .primary-button { height: 38px; padding: 0 18px; }

/* 订单表 */
.x102orders td:last-child { white-space: nowrap; }
.x102mini { margin-right: 6px; padding: 3px 9px; font-size: 11px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--studio-line); background: transparent; color: var(--studio-dim); }
.x102mini:hover { color: var(--studio-text); border-color: var(--studio-text); }
.x102st { padding: 2px 8px; border-radius: 999px; font-size: 11px; }
.x102st--pending { background: rgba(255, 191, 71, .16); color: #ffbf47; }
.x102st--paid { background: rgba(64, 200, 140, .16); color: #40c88c; }
.x102st--cancelled { background: rgba(255, 255, 255, .08); color: var(--studio-dim); }

/* 收银台 */
.x102cash { width: min(620px, 94vw); max-height: 86vh; overflow: auto; padding: 24px 24px 20px; position: relative; }
.x102cash h3 { margin: 0 0 4px; font-size: 19px; }
.x102cash .sub { margin: 0 0 16px; font-size: 12px; color: var(--studio-dim); }
.x102cash__close, .x102auth__close { position: absolute; top: 14px; right: 16px; width: 28px; height: 28px; border-radius: 8px;
  border: 1px solid var(--studio-line); background: transparent; color: var(--studio-dim); cursor: pointer; }
.x102cash__close:hover, .x102auth__close:hover { color: var(--studio-text); }
.x102cash__plan { border: 1px solid var(--studio-line); border-radius: 14px; padding: 14px 16px; margin-bottom: 14px; background: rgba(255, 255, 255, .02); }
.x102cash__pt { display: flex; align-items: baseline; gap: 10px; }
.x102cash__pt strong { font-size: 16px; }
.x102cash__pt small { color: var(--studio-dim); font-size: 12px; }
.x102cash__pg { display: flex; gap: 26px; margin: 12px 0 14px; }
.x102cash__pg span { display: flex; flex-direction: column; gap: 4px; }
.x102cash__pg i { font-style: normal; font-size: 11px; color: var(--studio-dim); }
.x102cash__pg b { font-size: 16px; }
.x102cash__submit { width: 100%; height: 42px; }
.x102cash__ordno { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; }
.x102cash__ordno b { letter-spacing: .4px; }
.x102cash__block { border-top: 1px solid var(--studio-line); padding-top: 14px; margin-top: 14px; }
.x102cash__block h4 { margin: 0 0 10px; font-size: 14px; }
.x102cash__inline { display: flex; gap: 8px; }
.x102cash__inline input { flex: 1; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--studio-line);
  background: var(--studio-input, rgba(255, 255, 255, .04)); color: var(--studio-text); font-size: 13px; }
.x102cash__inline .primary-button { height: 40px; padding: 0 18px; }
.x102cash__hint { margin: 10px 0 0; font-size: 12px; line-height: 1.6; color: var(--studio-dim); }
.x102cash__hint--warn { color: #ffbf47; }
.x102cash__methods { display: flex; gap: 12px; flex-wrap: wrap; }
.x102cash__method { border: 1px solid var(--studio-line); border-radius: 12px; padding: 10px 12px; min-width: 150px; }
.x102cash__method b { display: block; font-size: 13px; margin-bottom: 6px; }
.x102cash__method img { width: auto; height: auto; max-width: 100%; max-height: 250px; margin: 6px auto 0;
  border-radius: 8px; display: block; background: #fff; }
.x102cash__acct { display: block; font-size: 12px; color: var(--studio-dim); word-break: break-all; }
.x102cash__olist { display: flex; flex-direction: column; gap: 8px; }
.x102cash__orow { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--studio-line); border-radius: 12px; }
.x102cash__orow small { display: block; margin-top: 3px; font-size: 11px; color: var(--studio-dim); }
.x102cash__oact { margin-left: auto; display: flex; align-items: center; gap: 6px; }

/* 登录 / 注册 */
.x102auth { width: min(400px, 92vw); padding: 26px 24px 22px; position: relative; }
.x102auth__head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.x102auth__mark { width: 40px; height: 40px; border-radius: 12px; }
.x102auth__title h3 { margin: 0 0 3px; font-size: 18px; }
.x102auth__title .sub { margin: 0; font-size: 12px; color: var(--studio-dim); }
.x102auth__tabs { display: flex; gap: 6px; padding: 4px; border-radius: 12px; background: rgba(255, 255, 255, .05); margin-bottom: 14px; }
.x102auth__tabs button { flex: 1; height: 32px; border: 0; border-radius: 9px; background: transparent; color: var(--studio-dim);
  font-size: 13px; cursor: pointer; }
.x102auth__tabs button.is-active { background: var(--studio-panel); color: var(--studio-text); }
.x102auth__note { margin: 12px 0 0; font-size: 11px; line-height: 1.6; color: var(--studio-dim); }
.x102auth__foot { margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--studio-dim); }
.x102auth__foot button { border: 0; background: transparent; color: var(--studio-primary); cursor: pointer; font-size: 12px; }

@media (max-width: 767px) {
  .x102recharge { flex-direction: column; align-items: stretch; }
  .x102recharge__r { margin-left: 0; }
  .x102recharge__r input { flex: 1; width: auto; }
  .x102cash { width: 94vw; padding: 20px 16px 16px; max-height: 88vh; }
  .x102cash__pg { gap: 18px; }
  .x102orders { display: block; overflow-x: auto; white-space: nowrap; }
}

/* ===== 收银台 · 扫码支付（v2：支付宝订单码，付款后自动到账）===== */
.x102qr { border: 1px solid var(--studio-line); border-radius: 14px; padding: 14px 16px; margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(139,107,255,.10), rgba(107,122,255,.06)); }
.x102qr__hd { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.x102qr__hd b { font-size: 14px; color: var(--studio-text); }
.x102qr__hd small { font-size: 12px; color: var(--studio-dim); }
.x102qr__empty { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.x102qr__empty p { margin: 0; font-size: 12px; color: var(--studio-dim); }
.x102qr__wrap { display: flex; gap: 18px; align-items: flex-start; }
.x102qr__img { width: 168px; height: 168px; object-fit: contain; background: #fff; border-radius: 10px; padding: 6px; }
.x102qr__fail { display: flex; align-items: center; justify-content: center; text-align: center; font-size: 12px;
  color: #7a7a8c; background: #f3f3f7; }
.x102qr__meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.x102qr__meta p { margin: 0; font-size: 12px; color: var(--studio-dim); display: flex; align-items: center; gap: 6px; }
.x102qr__meta b { font-size: 15px; color: var(--studio-text); }
.x102qr__no { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--studio-text); }
.x102qr__wait { font-size: 12px; color: var(--studio-dim); }
.x102qr__wait.is-ok { color: #26b47a; font-weight: 600; }
.x102qr__tip { font-size: 11px; color: var(--studio-dim); opacity: .85; }
.x102qr__act { display: flex; gap: 8px; margin-top: 2px; }
@media (max-width: 640px) {
  .x102qr__wrap { flex-direction: column; align-items: center; }
  .x102qr__img { width: 62vw; max-width: 240px; height: 62vw; max-height: 240px; }
  .x102qr__meta { width: 100%; }
  .x102qr__empty { flex-direction: column; align-items: stretch; }
}

/* ===== 视频/图片创作 · 规格面板（时长滑块 + 分辨率/比例芯片）· 形态对齐同类站点 ===== */
.creator-card { overflow: visible; }               /* 面板要向上弹出，不能被卡片裁掉 */
.toolbar-menu__popover {
  display: none; position: absolute; left: 0; bottom: 42px; z-index: 30; padding: 12px;
  border: 1px solid var(--studio-border); border-radius: 14px; background: var(--studio-surface);
  box-shadow: 0 18px 40px -18px rgba(40, 26, 100, .45);
}
.toolbar-menu.is-open .toolbar-menu__popover { display: block; }
.menu-caption { display: flex; align-items: center; justify-content: space-between; margin: 0; padding: 4px 8px;
  color: var(--studio-muted); font-size: 11px; letter-spacing: .02em; }
.menu-caption:first-child { padding-top: 0; }
.menu-caption b { color: var(--studio-subtext); font-size: 11px; font-weight: 400; font-variant-numeric: tabular-nums; }
.menu-note { margin: 8px 0 0; color: var(--studio-dim); font-size: 12px; line-height: 1.5; }
.menu-range { margin: 8px 0 14px; }
.menu-range input[type="range"] {
  -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 4px; border-radius: 999px; outline: 0; cursor: pointer;
  background: linear-gradient(90deg, var(--studio-primary) 0 calc(8px + (100% - 16px) * var(--fill, 0)),
                              var(--studio-track) calc(8px + (100% - 16px) * var(--fill, 0)) 100%);
}
.menu-range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 16px; height: 16px; border: 3px solid var(--studio-surface);
  border-radius: 50%; background: var(--studio-primary); box-shadow: 0 2px 8px rgba(109, 74, 255, .45); cursor: pointer;
}
.menu-range input[type="range"]::-moz-range-thumb {
  width: 12px; height: 12px; border: 3px solid var(--studio-surface); border-radius: 50%; background: var(--studio-primary);
}
.menu-range__ticks { position: relative; height: 12px; margin: 8px 8px 0; }
.menu-range__ticks span { position: absolute; transform: translateX(-50%); color: var(--studio-muted); font-size: 10px; line-height: 12px; }
.menu-resolution { display: flex; gap: 8px; margin-bottom: 14px; }
.menu-resolution button {
  position: relative; flex: 1; height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 0 8px; border: 1px solid var(--studio-line-soft); border-radius: 10px; background: var(--studio-surface);
  color: var(--studio-subtext); font-size: 13px; cursor: pointer; font-family: inherit;
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}
.menu-resolution button:hover { border-color: var(--studio-accent-line); }
.menu-resolution button.is-selected { border-color: var(--studio-accent-line); background: var(--studio-primary-soft); color: var(--studio-accent-ink); }
.menu-resolution button.is-disabled { opacity: .5; cursor: not-allowed; }
.menu-resolution button.is-disabled:hover { border-color: var(--studio-line-soft); }
.menu-resolution b {
  position: absolute; top: 0; right: 8px; padding: 0 6px; border-radius: 999px; background: var(--studio-fill-strong);
  color: var(--studio-muted); font-size: 10px; font-weight: 400; line-height: 15px; white-space: nowrap; transform: translateY(-50%);
}
.menu-resolution button.is-selected b { background: var(--studio-primary); color: #fff; }
.menu-ratios { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 4px; }
.menu-ratios button {
  height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--studio-line); border-radius: 10px; background: var(--studio-surface); color: var(--studio-subtext);
  font-size: 12px; cursor: pointer; font-family: inherit; transition: border-color .16s ease, background .16s ease, color .16s ease;
}
.menu-ratios button:hover { border-color: var(--studio-accent-line); }
.menu-ratios button.is-selected { border-color: var(--studio-accent-line); background: var(--studio-primary-soft); color: var(--studio-accent-ink); }
.menu-ratios button i { display: block; border: 1.5px solid currentColor; border-radius: 2px; }
.launch-badge .mm-logo { width: 24px; height: 20px; flex: none; }
@media (max-width: 640px) {
  .toolbar-menu__popover { width: min(430px, calc(100vw - 32px)) !important; left: 0; }
  .menu-ratios { grid-template-columns: repeat(3, 1fr); }
}

/* v3 模板广场：常显信息胶囊 + 无封面占位 */
.feed-card__pill { position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; align-items: center; gap: 6px; pointer-events: none; transition: opacity .18s ease; }
.feed-card__pill b { padding: 2px 8px; border-radius: 999px; background: rgba(12, 10, 20, .58); backdrop-filter: blur(6px); color: #fff; font-size: 11px; font-weight: 500; letter-spacing: .2px; }
.feed-card__pill b:last-child { margin-left: auto; }
.feed-card:hover .feed-card__pill { opacity: 0; }
.feed-card__ph { display: block; width: 100%; aspect-ratio: 3 / 4; background: linear-gradient(140deg, #241f3d, #16151d); }
.feed-item { break-inside: avoid; }

/* v19 预览弹层（照对标 .studio-lightbox：左媒体 + 右信息栏；模板预览与任务预览共用） */
.studio-lightbox { position: fixed; inset: 0; z-index: 520; display: grid; place-items: center; padding: 40px; background: rgba(12, 10, 22, .72); backdrop-filter: blur(6px); animation: studioFade .16s ease both; }
.studio-lightbox__panel { display: flex; width: min(1000px, 100%); max-height: 80vh; border-radius: 18px; background: var(--studio-surface); overflow: hidden; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .6); animation: studioPop .16s ease; }
.studio-lightbox__media { position: relative; flex: 1 1 0%; min-width: 0; min-height: 420px; display: grid; place-items: center; background: #0c0a16; }
.studio-lightbox__media video, .studio-lightbox__media img { width: 100%; max-height: 80vh; object-fit: contain; background: #0c0a16; }
.studio-lightbox__clock { position: absolute; top: 10px; left: 12px; padding: 3px 8px; border-radius: 6px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 11px; font-variant-numeric: tabular-nums; opacity: 0; transition: opacity .12s; pointer-events: none; }
.studio-lightbox__media:hover .studio-lightbox__clock { opacity: 1; }
.studio-lightbox__unavailable { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(0, 0, 0, .4); color: #fff; }
.studio-lightbox__info { flex: 0 0 auto; width: 320px; padding: 24px 24px 0; display: flex; flex-direction: column; overflow-y: auto; scrollbar-width: none; }
.studio-lightbox__info::-webkit-scrollbar { display: none; }
.studio-lightbox__tag { align-self: flex-start; padding: 3px 9px; border-radius: 9px; background: var(--studio-primary-soft); color: var(--studio-primary); font-size: 11px; }
.studio-lightbox__info > :first-child { margin-top: 0; }
.studio-lightbox__prompt-title { flex: 0 0 auto; margin: 18px 0 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--studio-muted); font-size: 12px; font-weight: 500; }
.studio-lightbox__info .studio-lightbox__prompt-title + p { margin-top: 6px; }
.studio-lightbox__prompt-toggle { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.studio-lightbox__prompt-toggle svg { transition: transform .16s; }
.studio-lightbox__prompt-toggle.is-open svg { transform: rotate(180deg); }
.studio-lightbox__prompt-title .icon-button { width: 22px; height: 22px; border: 0; border-radius: 6px; background: none; color: var(--studio-subtext); opacity: 0; transition: opacity .12s; display: grid; place-items: center; cursor: pointer; }
.studio-lightbox__prompt-title:hover .icon-button { opacity: 1; }
.studio-lightbox__info p { --prompt-max: 186px; flex: 0 0 auto; margin: 14px 0 0; max-height: var(--prompt-max); font-size: 14px; line-height: 1.65; color: var(--studio-subtext); overflow-wrap: anywhere; }
.studio-lightbox__info p[hidden] { display: none; }
.studio-lightbox__info dl { margin: 18px 0 0; display: flex; flex-direction: column; gap: 9px; font-size: 12px; }
.studio-lightbox__info dl > div { display: flex; justify-content: space-between; }
.studio-lightbox__info dt { color: var(--studio-muted); }
.studio-lightbox__info dd { margin: 0; color: var(--studio-text); }
.studio-lightbox__refs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.studio-lightbox__refs a { position: relative; width: 56px; height: 56px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--studio-line); border-radius: 9px; background: var(--studio-canvas); color: var(--studio-dim); text-decoration: none; }
.studio-lightbox__refs a:hover { border-color: var(--studio-primary); }
.studio-lightbox__refs a.is-broken { background: linear-gradient(135deg, #2a2440, #4a3a80); }
.studio-lightbox__refs img, .studio-lightbox__refs video { width: 100%; height: 100%; object-fit: cover; }
.studio-lightbox__refs span { position: absolute; left: 0; right: 0; bottom: 0; padding: 2px 0; background: rgba(23, 21, 31, .62); color: #fff; font-size: 11px; text-align: center; }
.studio-lightbox__refs .studio-lightbox__audio { width: 100%; height: 100%; display: grid; place-items: center; font-size: 18px; }
.studio-lightbox__actions { position: sticky; bottom: 0; margin: auto -24px 0; display: flex; justify-content: flex-end; gap: 8px; padding: 20px 24px 24px; background: var(--studio-surface); }
.studio-lightbox__actions .primary-button { flex: 1 1 0%; height: 38px; padding: 0 18px; border: 0; border-radius: 11px; color: #fff; font-size: 13px; cursor: pointer; background: linear-gradient(100deg, #6d4aff, #8b36f0); font-weight: 400; box-shadow: 0 6px 16px -8px rgba(109, 74, 255, .9); }
.studio-lightbox__actions .ghost-button { width: 38px; height: 38px; padding: 0; border-radius: 11px; color: var(--studio-subtext); display: grid; place-items: center; text-decoration: none; }
@media (max-width: 860px) {
  .studio-lightbox { padding: 12px; }
  .studio-lightbox__panel { flex-direction: column; width: 100%; max-height: 92vh; }
  .studio-lightbox__media { min-height: 0; }
  .studio-lightbox__media video, .studio-lightbox__media img { max-height: 42vh; }
  .studio-lightbox__info { width: auto; padding: 16px 16px 0; }
  .studio-lightbox__actions { margin: auto -16px 0; padding: 14px 16px 16px; }
}
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 8px; border: 0; background: var(--studio-fill); color: var(--studio-dim); cursor: pointer; }
.icon-button:hover { color: var(--studio-primary); }
.feed-card { cursor: pointer; }
.feed-card__use { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: var(--studio-primary); color: #fff; font-size: 11px; font-weight: 600; border: 0; cursor: pointer; }
.feed-card__use:hover { background: var(--studio-primary-soft); color: var(--studio-primary); }
.task-card__select { position: absolute; left: 8px; top: 8px; z-index: 3; }


/* ================= v5：对齐对标源站 ================= */
/* ① 摄影机标识：源站是线条轮廓（同款滤镜）+ 投影阴影 */
.create-hero__projector { top: 0; right: 14px; width: 124px; opacity: 1; }
.create-hero__projector img { filter: invert(.9) hue-rotate(180deg); }
.create-hero__projector:after {
  position: absolute; right: 4px; bottom: 4px; z-index: -1; width: 62%; height: 13%; border-radius: 50%;
  background: rgba(112, 82, 150, .14); filter: blur(5px); transform: translate(8px, 5px) skewX(-18deg); content: "";
}
/* ② 模板广场工具行：场景靠左、方式靠右（对标） */
.feed-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-top: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--studio-line-soft); }
.feed-categories { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.feed-categories.is-scene { flex: 1 1 500px; }
.feed-categories.is-mode { flex: none; justify-content: flex-end; margin-left: auto; }
/* ③ 卡片：素材比例占位（位置固定）+ 滚动出现动画 + 悬停蒙层 */
.feed-column { min-width: 0; }
.feed-item { animation: studioRise .34s ease; }
@keyframes studioRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.feed-card__media { display: block; width: 100%; position: relative; overflow: hidden; background: var(--studio-fill-media); }
.feed-card__media video, .feed-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.feed-card__media .feed-card__video { position: absolute; inset: 0; opacity: 0; transition: opacity .3s ease; }
.feed-card__media .feed-card__video.is-ready { opacity: 1; }
.feed-card__media .feed-card__cover { position: absolute; inset: 0; }
.feed-card__mask {
  position: absolute; inset: 0; padding: 12px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
  text-align: left; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, .78));
  color: #fff; opacity: 0; transition: opacity .2s ease;
}
.feed-card:hover .feed-card__mask { opacity: 1; }
.feed-card__mask .feed-card__title { font-size: 13px; font-weight: 600; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-card__mask .feed-card__meta { display: flex; align-items: center; gap: 8px; font-size: 11px; color: rgba(255, 255, 255, .75); }
.feed-card__use {
  margin-left: auto; padding: 0; border: 0; background: transparent; color: rgba(255, 255, 255, .78);
  font-size: 11px; font-weight: 600; cursor: pointer; transition: color .16s ease, text-shadow .16s ease;
}
.feed-card__use:hover { color: #fff; background: transparent; text-shadow: 0 0 10px rgba(255, 255, 255, .65); }
.feed-card__pill { display: none; }
@media (max-width: 900px) { .feed-card__mask { opacity: 1; } }
/* ④ banner 配图：源站同款素材（本地自持，不热链） */
.feature-banner__art { position: absolute; inset: -4%; z-index: 0; width: 108%; height: 108%; background-size: cover; background-position: 50%; background-repeat: no-repeat; }
.feature-banner.is-tutorial .feature-banner__art { background: linear-gradient(90deg, rgba(12, 10, 22, .7), rgba(12, 10, 22, .18) 58%, rgba(12, 10, 22, .02)), url(/assets/img/banner-tutorial.webp) 50% / cover no-repeat; }
.feature-banner.is-pricing .feature-banner__art { background: linear-gradient(90deg, rgba(12, 10, 22, .8), rgba(12, 10, 22, .2) 58%, rgba(12, 10, 22, .05)), url(/assets/img/banner-pricing.webp) 50% / cover no-repeat; }
/* ⑤ 上手教程页 */
.guide-page { max-width: 980px; }
.guide-card { margin-top: 22px; padding: 26px 28px; background: var(--studio-surface); border: 1px solid var(--studio-line); border-radius: var(--studio-radius); }
.guide-lede { margin: 0 0 6px; color: var(--studio-muted); font-size: 14px; line-height: 1.7; }
.guide-sec { padding: 18px 0; border-top: 1px solid var(--studio-line-soft); }
.guide-sec:first-of-type { border-top: 0; padding-top: 4px; }
.guide-sec h2 { margin: 0 0 10px; font-size: 17px; }
.guide-sec ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.guide-sec li { font-size: 13px; line-height: 1.8; color: var(--studio-muted); }
.guide-items { list-style: none; padding-left: 0 !important; }
.guide-items li b { display: block; color: var(--studio-text); font-weight: 600; margin-bottom: 2px; }
.guide-formula { margin: 4px 0 14px; padding: 12px 14px; border-radius: 10px; background: var(--studio-accent-fill); border: 1px solid var(--studio-accent-line); color: var(--studio-accent-ink); font-weight: 600; font-size: 14px; }
.guide-code { margin: 10px 0; border: 1px solid var(--studio-line); border-radius: 10px; overflow: hidden; }
.guide-code__h { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; background: var(--studio-fill-media); font-size: 12px; color: var(--studio-muted); }
.guide-code pre { margin: 0; padding: 12px; font-size: 12px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; color: var(--studio-text); }
.guide-table { width: 100%; border-collapse: collapse; margin-top: 6px; font-size: 12.5px; }
.guide-table th, .guide-table td { padding: 9px 12px; border: 1px solid var(--studio-line); text-align: left; line-height: 1.7; }
.guide-table th { background: var(--studio-fill-media); color: var(--studio-text); font-weight: 600; }
.guide-table td { color: var(--studio-muted); }
.guide-note { margin: 10px 0 0; padding: 10px 12px; border-left: 3px solid var(--studio-accent-line); background: var(--studio-fill-media); border-radius: 6px; font-size: 12.5px; color: var(--studio-muted); line-height: 1.7; }
@media (max-width: 720px) { .guide-card { padding: 18px 16px; } .guide-sec li { font-size: 13.5px; } }

/* ==========================================================================
   v7：AI 音频页（对标音色库 / 自动演绎 / 语速 / 语言 / 发音设置）
   ========================================================================== */
.create-hero.has-art { min-height: 118px; padding-right: 190px; }
.create-hero__sub { margin: 8px 0 0; font-size: 13px; color: var(--studio-dim); }
.ai-hero__art { position: absolute; top: 2px; right: 18px; width: 150px; display: flex; align-items: center; justify-content: flex-end; gap: 10px; pointer-events: none; }
.ai-hero__waves { display: flex; align-items: center; gap: 4px; height: 48px; }
.ai-hero__waves i { display: block; width: 3px; border-radius: 2px; background: linear-gradient(180deg, var(--studio-primary), #b98bff); opacity: .8; }
.ai-hero__mic { width: 62px; height: 62px; color: var(--studio-primary); opacity: .95; }
.ai-audio-console .creator-card__body { min-height: 150px; }
.ai-chip__trigger { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--studio-border); background: var(--studio-surface); color: var(--studio-text); font-size: 13px; }
.ai-chip__trigger:hover { border-color: var(--studio-accent-line-on); }
.ai-chip.toolbar-menu { position: relative; }
.ai-chip__panel { position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 40; width: 340px; max-height: 420px; overflow: auto;
  padding: 12px; border-radius: 14px; border: 1px solid var(--studio-line); background: var(--studio-surface);
  box-shadow: var(--studio-shadow-pop); display: none; }
.toolbar-menu.is-open .ai-chip__panel { display: block; }
.ai-audio-avatar { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, var(--studio-primary), #a06bff); color: #fff; font-size: 13px; font-weight: 600; flex: none; }
.ai-panel__head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.ai-panel__head strong { font-size: 13px; font-weight: 600; }
.ai-panel__head span { font-size: 12px; color: var(--studio-dim); }
.ai-panel__head p { margin: 0; width: 100%; font-size: 12px; color: var(--studio-dim); }
.ai-panel__note { margin: 8px 0 0; font-size: 11px; line-height: 1.5; color: var(--studio-muted); }
.ai-panel__tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.ai-panel__tab { height: 26px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--studio-border); background: transparent;
  color: var(--studio-dim); font-size: 12px; }
.ai-panel__tab.is-active { color: var(--studio-primary); border-color: var(--studio-accent-line-on); background: var(--studio-accent-fill); }
.ai-voice-list { display: flex; flex-direction: column; gap: 6px; }
.ai-voice-card { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; border: 1px solid transparent; cursor: pointer; }
.ai-voice-card:hover { background: var(--studio-fill); }
.ai-voice-card.is-selected { border-color: var(--studio-accent-line-on); background: var(--studio-accent-fill); }
.ai-voice-card__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ai-voice-card__main strong { font-size: 13px; font-weight: 600; }
.ai-voice-card__lang { font-size: 11px; color: var(--studio-primary); }
.ai-voice-card__main small { font-size: 11px; color: var(--studio-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-voice-card__try { height: 26px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--studio-border);
  background: var(--studio-surface); color: var(--studio-dim); font-size: 12px; flex: none; }
.ai-voice-card__try:hover { color: var(--studio-primary); border-color: var(--studio-accent-line-on); }
.ai-opt { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 10px; border: 1px solid transparent;
  background: transparent; color: var(--studio-text); }
.ai-opt:hover { background: var(--studio-fill); }
.ai-opt.is-active { border-color: var(--studio-accent-line-on); background: var(--studio-accent-fill); }
.ai-opt strong { display: block; font-size: 13px; font-weight: 600; }
.ai-opt small { display: block; margin-top: 2px; font-size: 11px; line-height: 1.5; color: var(--studio-dim); white-space: normal; }
.ai-opt.is-slim { padding: 7px 10px; font-size: 13px; }
.ai-emo { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--studio-line-soft); }
.ai-emo__row { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--studio-dim); }
.ai-emo__row b { color: var(--studio-primary); font-size: 13px; }
.ai-emo input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; margin: 12px 0 4px;
  border-radius: 2px; background: var(--studio-track); outline: none; }
.ai-emo input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%;
  background: var(--studio-primary); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); cursor: pointer; }
.ai-emo input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border: 2px solid #fff; border-radius: 50%; background: var(--studio-primary); }
.ai-emo__ends { display: flex; justify-content: space-between; font-size: 11px; color: var(--studio-muted); }
.ai-dict__list { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }
.ai-dict__row { display: flex; align-items: center; gap: 6px; }
.ai-dict__row input { flex: 1; min-width: 0; height: 30px; padding: 0 8px; border-radius: 8px;
  border: 1px solid var(--studio-border); background: var(--studio-surface); color: var(--studio-text); font-size: 12px; }
.ai-dict__row span { font-size: 11px; color: var(--studio-dim); }
.ai-dict__del { width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--studio-border);
  background: transparent; color: var(--studio-dim); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ai-panel__done { width: 100%; margin-top: 10px; height: 34px; }
@media (max-width: 900px) {
  .create-hero.has-art { padding-right: 0; }
  .ai-hero__art { display: none; }
  .ai-chip__panel { width: min(340px, 78vw); }
}
/* v7 修正：面板内按钮不吃满宽度（否则音色名被挤成 0 宽） */
.ai-voice-card__try { flex: none; width: auto; white-space: nowrap; }
.ai-panel__tab { flex: none; width: auto; white-space: nowrap; }
.ai-voice-card { width: 100%; }
.ai-voice-card__main { flex: 1 1 auto; }
.ai-chip__trigger { flex: none; width: auto; }
/* v7 修正2：面板独立后，按钮恢复内容宽度 */
.ai-chip__panel button { display: inline-flex; width: auto; padding: 0; border: 0; background: none; }
.ai-chip__panel .ai-voice-card__try { height: 26px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--studio-border); background: var(--studio-surface); color: var(--studio-dim); font-size: 12px; }
.ai-chip__panel .ai-panel__tab { height: 26px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--studio-border); color: var(--studio-dim); font-size: 12px; justify-content: center; }
.ai-chip__panel .ai-opt { display: block; width: 100%; padding: 8px 10px; border-radius: 10px; border: 1px solid transparent; text-align: left; color: var(--studio-text); }
.ai-chip__panel .ai-opt.is-slim { padding: 7px 10px; }
.ai-chip__panel .ai-dict__del { width: 26px; height: 26px; justify-content: center; border: 1px solid var(--studio-border); border-radius: 8px; color: var(--studio-dim); flex: none; }
.ai-chip__panel .ai-panel__done { width: 100%; height: 34px; justify-content: center; margin-top: 10px; }

/* v9：源视频片段截取弹层 */
.clip-modal { position: fixed; inset: 0; z-index: 90; background: rgba(6,8,14,.72); display: flex; align-items: center; justify-content: center; padding: 24px; backdrop-filter: blur(3px); }
.clip-modal__panel { width: min(980px, 96vw); max-height: 92vh; overflow: auto; background: var(--studio-surface); border: 1px solid var(--studio-border); border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.clip-modal__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--studio-border); font-size: 14px; }
.clip-modal__body { display: grid; grid-template-columns: 1.05fr 1fr; gap: 16px; padding: 16px; }
.clip-modal__media { position: relative; background: #05070c; border-radius: 14px; overflow: hidden; display: flex; align-items: center; justify-content: center; min-height: 260px; }
.clip-modal__media video { width: 100%; max-height: 58vh; display: block; background: #000; }
.clip-modal__name { position: absolute; left: 10px; top: 10px; font-size: 11px; padding: 3px 8px; border-radius: 8px; background: rgba(0,0,0,.55); color: #fff; }
.clip-modal__side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.clip-track { position: relative; height: 54px; border-radius: 10px; overflow: hidden; border: 1px solid var(--studio-border); background: #05070c; }
.clip-track canvas { display: block; width: 100%; height: 54px; }
.clip-track__sel { position: absolute; top: 0; bottom: 0; border: 2px solid var(--studio-accent, #7c6cff); border-radius: 8px; background: rgba(124,108,255,.18); pointer-events: none; }
.clip-ranges { display: flex; flex-direction: column; gap: 6px; }
.clip-ranges label { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--studio-dim); }
.clip-ranges label span { width: 28px; flex: none; }
.clip-ranges input[type=range] { flex: 1; width: auto; accent-color: var(--studio-accent, #7c6cff); }
.clip-modal__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.clip-modal__time { font-size: 12px; color: var(--studio-dim); }
.clip-modal__note { margin: 0; font-size: 11px; line-height: 1.6; color: var(--studio-dim); }
.clip-segs { display: flex; flex-direction: column; gap: 6px; max-height: 150px; overflow: auto; }
.clip-seg { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border: 1px solid var(--studio-border); border-radius: 10px; font-size: 12px; }
.clip-seg__no { color: var(--studio-text); }
.clip-seg__time { color: var(--studio-dim); }
.clip-seg__dur { margin-left: auto; color: var(--studio-dim); }
.clip-seg__del { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: none; color: var(--studio-dim); cursor: pointer; }
.clip-modal__foot { border-top: 1px solid var(--studio-border); padding-top: 10px; }
.clip-modal__btns { display: flex; gap: 8px; }
.clip-total { font-size: 12px; color: var(--studio-dim); }
.clip-modal .ghost-button, .clip-modal .primary-button { width: auto; }
.clip-modal__foot .primary-button { min-width: 84px; justify-content: center; }

/* 槽位上的「剪辑」入口 */
.ref-slot__clip { position: absolute; left: 6px; bottom: 6px; z-index: 3; font-size: 11px; padding: 2px 8px; border-radius: 8px; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; }
.ref-slot { position: relative; }
@media (max-width: 760px) {
  .clip-modal { padding: 10px; }
  .clip-modal__body { grid-template-columns: 1fr; gap: 12px; }
  .clip-modal__media { min-height: 180px; }
  .clip-modal__media video { max-height: 32vh; }
}

/* v10：视频模型菜单（照对标：菜单标题 + 行内图标/名称/价格） */
.menu-caption { margin: 0 0 6px; padding: 0 2px; font-size: 11px; color: var(--studio-dim); }
.model-menu__row { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 10px; border: 0; background: none; border-radius: 10px; color: var(--studio-text); font-size: 13px; cursor: pointer; text-align: left; }
.model-menu__row:hover { background: rgba(255,255,255,.06); }
.model-menu__row.is-selected { background: rgba(124,108,255,.16); }
.model-menu__icon { display: inline-flex; align-items: center; justify-content: center; width: 18px; flex: none; }
.model-menu__name { flex: none; }
.model-menu__rate { margin-left: auto; font-size: 11px; color: var(--studio-dim); }
.model-trigger__name { margin: 0 2px; }

/* v10：剪辑弹层加载态 */
.clip-modal__hint { margin-left: auto; margin-right: 10px; font-size: 11px; color: var(--studio-dim); }
.clip-track__load { position: absolute; inset: 0; display: none; pointer-events: none;
  background: linear-gradient(100deg, rgba(255,255,255,.03) 30%, rgba(255,255,255,.14) 50%, rgba(255,255,255,.03) 70%);
  background-size: 200% 100%; animation: clipShimmer 1.1s linear infinite; }
@keyframes clipShimmer { from { background-position: 120% 0 } to { background-position: -60% 0 } }

/* v10b：视频槽位缩略图 */
.ref-slot__thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s; }
.ref-slot__thumb.is-ready { opacity: .85; }
.ref-slot svg.studio-icon { position: relative; z-index: 2; }
.ref-slot__dur { position: absolute; right: 6px; bottom: 6px; z-index: 3; font-size: 11px; padding: 2px 6px; border-radius: 7px; background: rgba(0,0,0,.6); color: #fff; }
.ref-slot { overflow: hidden; }

/* v11：手机端片段截取简化面板 */
.clip-sheet { width: min(560px, 94vw); }
.clip-sheet__body { display: flex; flex-direction: column; gap: 12px; padding: 14px; }
.clip-sheet__auto { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; color: var(--studio-dim); }
.clip-sheet__auto b { color: var(--studio-text); font-size: 14px; }
.clip-sheet__wins { display: flex; flex-wrap: wrap; gap: 8px; }
.clip-win { height: 32px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--studio-border); background: none; color: var(--studio-dim); font-size: 12px; cursor: pointer; }
.clip-win.is-active { border-color: var(--studio-accent, #7c6cff); color: var(--studio-text); background: rgba(124,108,255,.16); }
.clip-sheet__foot { display: flex; flex-direction: column; gap: 8px; }
.clip-sheet__foot .primary-button, .clip-sheet__foot .ghost-button { width: 100%; height: 44px; justify-content: center; font-size: 14px; }
.clip-link { border: 0; background: none; color: var(--studio-dim); font-size: 12px; text-decoration: underline; cursor: pointer; padding: 4px; }
.clip-sheet__probe { display: none; }


/* ---------------- v12：素材槽上传进度 + 音频可选说明 ---------------- */
.ref-slot.is-up { border-style: solid; border-color: var(--studio-border); cursor: default; }
.ref-slot__prog { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ref-slot__ring {
  position: relative; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--studio-primary) calc(var(--p, 0) * 1%), var(--studio-track) 0);
}
.ref-slot__ring::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--studio-surface); }
.ref-slot__ring b { position: relative; font-size: 10px; font-weight: 700; color: var(--studio-text, inherit); }
.ref-slot__prog small { font-size: 10px; color: var(--studio-dim); }
.ref-hint { width: 100%; margin: 2px 0 0; font-size: 11px; line-height: 1.5; color: var(--studio-muted); }
.clip-modal__note.is-soft { color: var(--studio-dim); }


/* ---------------- v13：上传进度副行 + pending 槽位 ---------------- */
.ref-slot__prog em.ref-slot__sub { font-size: 9.5px; line-height: 1.2; color: var(--studio-dim); font-style: normal; max-width: 68px; text-align: center; }
.ref-slot__pend { font-size: 10px; color: var(--studio-dim); }


/* ---------------- v14：Skill 技能包菜单（照对标：名称 + 一句说明 + 选中打勾） ---------------- */
.skill-menu { width: 336px; }
.skill-menu__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left; padding: 8px 10px; border-radius: 10px; }
.skill-menu__row > span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
/* v903（2026-11-26）：条目名称加粗美化 —— 名称是第一段文字节点，描述是 <small> */
.skill-menu__row > span {
  font-size: 13.5px;
  font-weight: 700;                 /* 名称加粗 */
  letter-spacing: .3px;
  color: #ede9fe;
  line-height: 1.4;
}
.skill-menu__row:hover > span { color: #f5f3ff; }
.skill-menu__row.is-selected > span { color: #ffffff; font-weight: 800; }
.skill-menu__row small {
  font-size: 11.5px; line-height: 1.5;
  font-weight: 400;                 /* 描述保持常规，形成对比 */
  letter-spacing: 0;
  color: var(--studio-dim);
}
.skill-menu__row:hover small { color: var(--studio-muted); }
.skill-menu__row.is-selected { background: var(--studio-fill); }
.skill-menu__foot { font-size: 11px; line-height: 1.5; color: var(--studio-dim); padding: 6px 10px 2px; border-top: 1px solid var(--studio-border); margin-top: 4px; }


/* ---------------- v15：hero 渐变照对标（实测线性渐变 + 扫光）+ 素材槽一字排列 + 必填高亮 ---------------- */
/* 对标实测：linear-gradient(96deg, rgb(109,74,255), rgb(180,75,255) 45%, rgb(43,198,214) 70%, rgb(109,74,255)) + background-clip:text */
.create-hero h1 b { color: var(--studio-text, #ebe9f2); }
.create-hero h1 span {
  background-image: linear-gradient(96deg, #6d4aff, #b44bff 45%, #2bc6d6 70%, #6d4aff);
  background-size: 220% 100%; background-position: 0 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: heroSheen 7s linear infinite;
}
@keyframes heroSheen { 0% { background-position: 0 0; } 100% { background-position: -220% 0; } }
@media (prefers-reduced-motion: reduce) { .create-hero h1 span { animation: none; } }
.create-editor__input textarea.is-need { box-shadow: inset 0 0 0 2px var(--studio-primary); border-radius: 10px; }


/* ---------------- v16：任务页照对标（程序化封面 studio-art / 生成中 stage-sheen 闪烁 / 失败遮罩 / 页签数量） ---------------- */
.task-card__art { display: block; width: 100%; height: 100%; }
.studio-art { background: linear-gradient(135deg, #d9d3f7, #b9aeef); }
.art-0 { background: linear-gradient(135deg, #5b36f0, #b44bff 55%, #2bc6d6); }
.art-1 { background: linear-gradient(135deg, #12203f, #3b2c8f 60%, #8b6bff); }
.art-2 { background: linear-gradient(140deg, #ff7a45, #c43a6b 55%, #3b1e6b); }
.art-3 { background: linear-gradient(135deg, #0f2a2e, #12756b 60%, #7be0b8); }
.art-4 { background: linear-gradient(140deg, #2b1b4d, #6d4aff 60%, #ff9ad5); }
.art-5 { background: linear-gradient(135deg, #1a1726, #4a4560 55%, #b9b2d6); }
html[data-theme="dark"] .studio-art { background: linear-gradient(135deg, #3a3352, #262038); }
html[data-theme="dark"] .art-0 { background: linear-gradient(135deg, #5b36f0, #b44bff 55%, #2bc6d6); }
html[data-theme="dark"] .art-1 { background: linear-gradient(135deg, #12203f, #3b2c8f 60%, #8b6bff); }
html[data-theme="dark"] .art-2 { background: linear-gradient(140deg, #ff7a45, #c43a6b 55%, #3b1e6b); }
html[data-theme="dark"] .art-3 { background: linear-gradient(135deg, #0f2a2e, #12756b 60%, #7be0b8); }
html[data-theme="dark"] .art-4 { background: linear-gradient(140deg, #2b1b4d, #6d4aff 60%, #ff9ad5); }
html[data-theme="dark"] .art-5 { background: linear-gradient(135deg, #1a1726, #4a4560 55%, #b9b2d6); }

/* 生成中/排队的闪烁文字（照抄对标 .stage-sheen） */
.stage-sheen {
  --sheen-base: var(--studio-primary); --sheen-lit: #c2b2ff;
  background: linear-gradient(100deg, var(--sheen-base) 35%, var(--sheen-lit) 50%, var(--sheen-base) 65%);
  background-size: 200% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: studioTextSheen 1.8s linear infinite;
}
@keyframes studioTextSheen { to { background-position: -100% 0; } }
@keyframes studioPulse { 0%, to { opacity: .35; } 50% { opacity: 1; } }

.task-card__state {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 7px; background: rgba(14, 12, 22, .55); color: #fff;
  font-size: 12px; font-weight: 500; padding: 0 6px; text-align: center;
}
.task-card__state .stage-sheen { --sheen-base: rgba(255, 255, 255, .7); --sheen-lit: #fff; }
.task-card__dots { display: inline-flex; gap: 4px; }
.task-card__dots i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: studioPulse 1.1s ease-in-out infinite; }
.task-card__dots i:nth-child(2) { animation-delay: .16s; }
.task-card__dots i:nth-child(3) { animation-delay: .32s; }
.task-card__fail {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 4px; padding: 8px 10px; background: rgba(12, 10, 22, .5);
  color: #ffd3d8; font-size: 11px; text-align: center;
}
.task-card__fail b { font-weight: 500; font-size: 12px; }
.task-card__fail small {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  color: rgba(255, 211, 216, .82); font-size: 10px; line-height: 1.35;
}
.stage-dot { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: currentColor; animation: studioPulse 1.2s ease-in-out infinite; }
.tab-count { margin-left: 6px; padding: 1px 7px; border-radius: 8px; background: var(--studio-fill-strong); font-size: 11px; color: var(--studio-dim); }
.studio-task-tabs a.is-active .tab-count { background: var(--studio-primary-soft); color: var(--studio-accent-ink); }

.feed-card__media .task-card__art { width: 100%; aspect-ratio: 16 / 9; height: auto; }

/* ================= v17：我的任务（照对标站「我的任务」逐块对齐） ================= */
/* 顶部页签（视频/图片/音频任务）与页头 */
.tasks-page { animation: studioRise .26s ease; }
.tasks-page.task-controls { min-width: 0; margin: 0; padding: 0; border: 0; }
.studio-task-navigation { scroll-margin-top: 24px; }
.studio-task-heading h1 { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -.01em; color: var(--studio-text); }
.studio-task-heading p { margin: 8px 0 0; color: var(--studio-dim); font-size: 13px; }
.underline-tabs.studio-task-tabs { margin: 20px 0 0; }
.studio-task-tabs .heading-actions { margin-left: auto; }
.heading-actions { display: flex; gap: 8px; }
.heading-actions .ghost-button { height: 34px; padding: 0 14px; border-radius: 10px; font-size: 13px; }
.heading-actions .primary-button { height: 34px; padding: 0 16px; border-radius: 10px; font-size: 13px; }

/* 下划线页签（含数量胶囊） */
.underline-tabs { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 20px 0 16px; border-bottom: 1px solid var(--studio-line-soft); justify-content: flex-start; }
.underline-tabs__list { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.underline-tabs__list a, .underline-tabs__list button {
  position: relative; height: auto; padding: 8px 2px 12px; display: inline-flex; align-items: center; gap: 6px;
  border: 0; background: none; color: var(--studio-subtext); font-size: 14px; font-weight: 400; transition: color .18s ease;
}
.underline-tabs__list a:hover, .underline-tabs__list button:hover { color: var(--studio-text); }
.underline-tabs__list a.is-active, .underline-tabs__list button.is-active { color: var(--studio-text); font-weight: 600; }
.underline-tabs__list a::after, .underline-tabs__list button::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--studio-primary); transform: scaleX(0); transition: transform .22s ease;
}
.underline-tabs__list a.is-active::after, .underline-tabs__list button.is-active::after { transform: scaleX(1); }
.underline-tabs__list span { padding: 1px 6px; border-radius: 8px; background: var(--studio-fill-strong); color: var(--studio-muted); font-size: 11px; font-weight: 400; transition: background-color .18s ease, color .18s ease; }
.underline-tabs__list a.is-active span, .underline-tabs__list button.is-active span { background: var(--studio-primary-soft); color: var(--studio-primary); }
.underline-tabs__tools { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px; padding-bottom: 0; margin-bottom: 6px; }

/* 任务 ID 搜索框 */
.asset-search {
  flex: 0 1 200px; min-width: 148px; max-width: 200px; width: auto; height: 32px;
  display: inline-flex; align-items: center; gap: 6px; padding: 0 12px;
  border: 1px solid var(--studio-line); border-radius: 10px; background: var(--studio-surface); color: var(--studio-subtext); font-size: 13px;
}
.asset-search:focus-within { border-color: var(--studio-primary); }
.asset-search input { border: 0; outline: 0; background: transparent; width: 100%; min-width: 0; color: var(--studio-text); font-size: 13px; }
.asset-search input::placeholder { color: var(--studio-muted); }
.task-search__submit { flex: none; display: inline-flex; padding: 0; border: 0; background: none; color: var(--studio-dim); cursor: pointer; }
.task-search__submit:hover { color: var(--studio-primary); }

/* 时间范围选择 */
.studio-range { position: relative; display: inline-flex; }
.studio-range__trigger { display: inline-flex; align-items: center; gap: 6px; width: 340px; max-width: 100%; height: 32px; padding: 0 28px 0 12px; border: 1px solid var(--studio-line); border-radius: 10px; background: var(--studio-surface); color: var(--studio-text); font-size: 13px; cursor: pointer; }
.studio-range__trigger:hover { border-color: var(--studio-accent-line); }
.studio-range__trigger.is-open { border-color: var(--studio-primary); }
.studio-range__trigger > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }
.studio-range__trigger > .studio-range__arrow { flex: none; }
.studio-range__arrow, .studio-range__trigger .is-empty { color: var(--studio-muted); }
.studio-range__icon { flex: none; color: var(--studio-muted); }
.studio-range__clear { position: absolute; top: 50%; right: 10px; transform: translateY(-50%); display: flex; align-items: center; justify-content: center; width: 16px; height: 16px; border: none; border-radius: 50%; background: var(--studio-fill-strong); color: var(--studio-muted); }
.studio-range__clear:hover { color: var(--studio-text); }
.studio-range__popover { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; display: flex; overflow: hidden; border: 1px solid var(--studio-line); border-radius: 12px; background: var(--studio-surface); box-shadow: 0 18px 40px -18px rgba(40, 26, 100, .45); }
.studio-range__presets { display: flex; flex-direction: column; gap: 2px; padding: 10px 8px; border-right: 1px solid var(--studio-line-soft); background: var(--studio-fill); }
.studio-range__presets button { padding: 6px 12px; border: none; border-radius: 8px; background: none; color: var(--studio-subtext); font-size: 13px; white-space: nowrap; text-align: left; }
.studio-range__presets button:hover { background: var(--studio-primary-soft); color: var(--studio-accent-ink); }
.studio-range__panel { padding: 10px 12px 12px; }
.studio-range__head { display: flex; align-items: center; justify-content: space-between; color: var(--studio-text); font-size: 13px; font-weight: 600; }
.studio-range__head button { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: none; border-radius: 8px; background: none; color: var(--studio-muted); }
.studio-range__head button:hover { background: var(--studio-fill-strong); color: var(--studio-text); }
.studio-range__week { display: grid; grid-template-columns: repeat(7, 40px); margin-top: 6px; color: var(--studio-dim); font-size: 12px; }
.studio-range__week span { display: flex; align-items: center; justify-content: center; height: 24px; }
.studio-range__grid { display: grid; grid-template-columns: repeat(7, 40px); }
.studio-range__grid button { position: relative; height: 30px; border: none; background: none; color: var(--studio-text); font-size: 13px; font-variant-numeric: tabular-nums; }
.studio-range__grid button.is-outside { color: var(--studio-faint); }
.studio-range__grid button.is-inside { background: var(--studio-primary-soft); }
.studio-range__grid button:hover:not(.is-edge) { border-radius: 8px; background: var(--studio-accent-fill-strong); }
.studio-range__grid button.is-edge { border-radius: 8px; background: var(--studio-primary); color: #fff; }
.studio-range__grid button.is-today:not(.is-edge)::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--studio-primary); }
.studio-range__foot { display: flex; align-items: center; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--studio-line-soft); }
.studio-range__time { display: flex; align-items: center; gap: 4px; color: var(--studio-dim); font-size: 13px; }
.studio-range__foot .studio-select__trigger { height: 26px; padding: 0 8px; gap: 0; border-color: transparent; background: none; color: var(--studio-text); font-variant-numeric: tabular-nums; cursor: pointer; }
.studio-range__foot .studio-select__trigger:hover { background: var(--studio-primary-soft); color: var(--studio-accent-ink); }
.studio-range__foot .studio-select__popover { position: absolute; bottom: calc(100% + 6px); left: 0; right: auto; top: auto; max-height: 196px; overflow-y: auto; padding: 6px; border: 1px solid var(--studio-line); border-radius: 12px; background: var(--studio-surface); box-shadow: 0 18px 40px -18px rgba(40, 26, 100, .45); }
.studio-range__foot .studio-select__popover button { display: block; width: 100%; padding: 5px 10px; border: none; border-radius: 8px; background: none; color: var(--studio-text); font-size: 13px; text-align: left; font-variant-numeric: tabular-nums; }
.studio-range__foot .studio-select__popover button:hover, .studio-range__foot .studio-select__popover button.is-active { background: var(--studio-primary-soft); color: var(--studio-accent-ink); }
.studio-range__apply { flex: none; margin-left: auto; height: 28px; padding: 0 12px; white-space: nowrap; border: none; border-radius: 8px; background: var(--studio-primary); color: #fff; font-size: 13px; cursor: pointer; }
.studio-range__apply:hover { background: var(--studio-primary-hover); }

/* 多选批量条 */
.task-batch { display: grid; grid-template-rows: 0fr; height: auto; overflow: visible; opacity: 0; transition: grid-template-rows .2s ease, padding .2s ease, opacity .16s ease; }
.task-batch.is-open { grid-template-rows: 1fr; height: auto; padding: 2px 0 12px; opacity: 1; }
.task-batch__inner { overflow: hidden; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; height: auto; padding: 0 18px; font-size: 12px; }
.task-batch__select, .task-row__select { display: inline-flex; align-items: center; gap: 8px; flex: none; cursor: pointer; }
.task-batch__count { color: var(--studio-muted); font-size: 12px; }
.task-batch__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.task-batch .is-danger:not(:disabled) { color: var(--studio-danger); }
.task-checkbox { flex: none; width: 16px; height: 16px; margin: 0; appearance: none; border: 1px solid var(--studio-line); border-radius: 5px; background: var(--studio-surface); cursor: pointer; transition: border-color .14s ease, background-color .14s ease; }
.task-checkbox:hover { border-color: var(--studio-accent-line); }
.task-checkbox:checked, .task-checkbox:indeterminate { border-color: var(--studio-primary); background: var(--studio-primary); }
.task-checkbox:disabled { cursor: not-allowed; opacity: .5; }

/* 行式任务列表 */
.task-list { border: 1px solid var(--studio-line); border-radius: 16px; background: var(--studio-surface); margin-top: 2px; }
.task-list > :first-child { border-radius: 16px 16px 0 0; }
.task-list.is-refreshing { opacity: .55; transition: opacity .12s ease; }
.task-row { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--studio-line-soft); transition: background .16s ease; }
.task-row:hover { background: var(--studio-fill); }
.task-row.is-selected { background: var(--studio-primary-soft); }
.task-row__select { padding: 8px 0; width: 0; margin-right: -16px; opacity: 0; overflow: hidden; transition: width .2s ease, margin-right .2s ease, opacity .16s ease; }
.task-list.is-selecting .task-row__select { width: 16px; margin-right: 0; opacity: 1; }
.task-row__thumb { position: relative; flex: none; width: 96px; height: 54px; border-radius: 9px; background: var(--studio-fill-media, var(--studio-fill)); overflow: hidden; }
.task-row__thumb img, .task-row__thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.task-row__thumb[data-open-task] { cursor: pointer; }
.task-row__badge { position: absolute; left: 4px; bottom: 4px; padding: 1px 6px; border-radius: 999px;
  font-size: 10px; line-height: 15px; color: #fff; background: rgba(108, 92, 231, .88);
  backdrop-filter: blur(4px); pointer-events: none; white-space: nowrap; }

.task-row__art { display: block; width: 100%; height: 100%; }
.task-row__summary { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.task-row__summary[data-open-task] { cursor: pointer; }
.task-row__summary b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 400; color: var(--studio-text); }
.task-row__summary > span { display: flex; align-items: center; gap: 8px; color: var(--studio-dim); font-size: 11px; }
.task-row__summary em { padding: 1px 7px; border-radius: 8px; background: var(--studio-fill-strong); font-style: normal; }
.task-row__status { flex: none; width: 150px; font-size: 12px; }
.task-row__status b { display: flex; align-items: center; gap: 6px; font-weight: 400; color: var(--studio-subtext); }
.task-row__status b i { width: 7px; height: 7px; flex: none; border-radius: 50%; background: currentColor; }
.task-row__status small { display: block; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--studio-muted); font-size: 11px; }
.task-row__status.is-success b { color: var(--studio-success, #3fbf7f); }
.task-row__status.is-failed b { color: var(--studio-danger); }
.task-row__status.is-active b { color: var(--studio-primary); }
.task-row__status.is-active b i { animation: studioPulse 1.2s ease-in-out infinite; }
.task-row__points { flex: none; width: 88px; text-align: right; font-size: 13px; color: var(--studio-text); font-variant-numeric: tabular-nums; }
.task-row__points small { display: block; color: var(--studio-muted); font-size: 11px; }
.task-row__time { flex: none; width: 104px; text-align: right; color: var(--studio-dim); font-size: 12px; font-variant-numeric: tabular-nums; }
.task-row__time small { display: block; margin-top: 3px; white-space: nowrap; color: var(--studio-muted); font-size: 11px; }
.task-row__actions { flex: none; width: 156px; display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.task-row__actions > button:not(.icon-button) { display: inline-flex; align-items: center; gap: 5px; padding: 0 11px; font-size: 12px; color: var(--studio-text); white-space: nowrap; }
.task-row__actions .icon-button, .task-row__actions > button:not(.icon-button) { height: 30px; border: 1px solid var(--studio-border); border-radius: 9px; background: var(--studio-surface); cursor: pointer; }
.task-row__actions .icon-button { width: 30px; color: var(--studio-dim); }
.task-row__actions .icon-button:hover, .task-row__actions > button:hover { border-color: var(--studio-accent-line); color: var(--studio-accent-ink); }
.task-row__more { position: relative; }
.task-row__menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 148px; padding: 6px; border: 1px solid var(--studio-line); border-radius: 12px; background: var(--studio-surface); box-shadow: 0 18px 40px -18px rgba(40, 26, 100, .45); animation: studioFade .12s ease both; }
.task-row__menu button { display: flex; align-items: center; gap: 8px; width: 100%; height: 32px; padding: 0 10px; border: none; border-radius: 8px; background: none; color: var(--studio-text); font-size: 13px; white-space: nowrap; cursor: pointer; }
.task-row__menu button:hover { background: var(--studio-primary-soft); color: var(--studio-accent-ink); }
.task-row__menu button.is-danger:hover { background: var(--studio-danger-soft); color: var(--studio-danger-ink); }

/* 分页 */
.studio-pagination { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 18px; color: var(--studio-dim); font-size: 12px; }
.studio-pagination > div { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.studio-pagination__gap { min-width: 30px; height: 30px; display: grid; place-items: center; color: var(--studio-dim); }
.studio-pagination > div > button { min-width: 30px; height: 30px; padding: 0 8px; display: grid; place-items: center; border: 1px solid var(--studio-border); border-radius: 9px; background: var(--studio-surface); color: var(--studio-subtext); font-size: 12px; cursor: pointer; }
.studio-pagination > div > button:hover:not(:disabled) { border-color: var(--studio-accent-line); }
.studio-pagination > div > button.is-active { border-color: var(--studio-primary); background: var(--studio-primary-soft); color: var(--studio-primary); }
.studio-pagination > div > button:disabled { color: var(--studio-faint); cursor: not-allowed; }
.studio-pagination__jump { display: flex; align-items: center; gap: 6px; margin-left: 4px; }
.studio-pagination__jump input { width: 46px; height: 30px; padding: 0 6px; border: 1px solid var(--studio-border); border-radius: 9px; background: var(--studio-surface); color: var(--studio-text); font: inherit; text-align: center; }
.studio-pagination__jump input:focus { border-color: var(--studio-primary); outline: none; }
.studio-pagination .page-size { position: relative; }
.studio-pagination .studio-select__trigger { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: 1px solid var(--studio-border); border-radius: 9px; background: var(--studio-surface); color: var(--studio-subtext); font-size: 12px; cursor: pointer; }
.studio-pagination .studio-select__popover { position: absolute; bottom: calc(100% + 6px); right: 0; left: auto; top: auto; z-index: 30; min-width: 100%; padding: 6px; border: 1px solid var(--studio-line); border-radius: 12px; background: var(--studio-surface); box-shadow: 0 18px 40px -18px rgba(40, 26, 100, .45); }
.studio-pagination .studio-select__popover button { display: block; width: 100%; padding: 7px 12px; border: none; border-radius: 8px; background: none; color: var(--studio-text); font-size: 13px; text-align: left; white-space: nowrap; cursor: pointer; }
.studio-pagination .studio-select__popover button:hover, .studio-pagination .studio-select__popover button.is-active { background: var(--studio-primary-soft); color: var(--studio-accent-ink); }

@media (max-width: 1100px) {
  .task-row { flex-wrap: wrap; }
  .task-row__summary { flex-basis: calc(100% - 146px); }
  .task-row__actions, .task-row__points, .task-row__status, .task-row__time { width: auto; flex: 1 1 auto; }
  .task-row__actions { justify-content: flex-start; }
  .underline-tabs__tools { width: 100%; align-items: stretch; }
  .asset-search { flex: 1 1 auto; min-width: 90px; }
  .studio-pagination { align-items: flex-start; flex-direction: column; }
  .studio-range__trigger { width: 100%; }
}

/* ================= v18：站内自绘确认弹层（照对标 .studio-confirm） ================= */
@keyframes studioFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes studioPop { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
.studio-confirm { position: fixed; inset: 0; z-index: 540; display: grid; place-items: center; padding: 24px; background: rgba(12, 10, 22, .5); backdrop-filter: blur(4px); animation: studioFade .16s ease both; }
.studio-confirm__panel { width: min(400px, 100%); padding: 22px 24px 18px; border-radius: 16px; background: var(--studio-surface); box-shadow: 0 24px 60px -24px rgba(40, 26, 100, .55); animation: studioPop .16s ease; }
.studio-confirm__panel h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 17px; font-weight: 600; color: var(--studio-text); }
.studio-confirm__panel p { margin: 10px 0 0; font-size: 13px; line-height: 1.65; color: var(--studio-subtext); }
.studio-confirm__panel p b { font-weight: 400; color: var(--studio-primary); }
.studio-confirm__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.studio-confirm__actions .primary-button { height: 38px; padding: 0 18px; border: 0; border-radius: 11px; color: #fff; font-size: 13px; cursor: pointer; background: linear-gradient(100deg, #6d4aff, #8b36f0); font-weight: 400; box-shadow: 0 6px 16px -8px rgba(109, 74, 255, .9); }
.studio-confirm__actions .primary-button:hover { filter: brightness(1.06); }
.studio-confirm__actions .ghost-button { height: 38px; padding: 0 18px; border-radius: 11px; }

/* v21：菜单/浮层文字抗发虚（避免半像素合成层） */
/* v22e：去掉 text-rendering:geometricPrecision（关闭字形 hinting → 文字发虚），跟随源站 auto */
.task-row__menu, .studio-confirm__panel, .studio-lightbox__panel { text-rendering: auto; backface-visibility: visible; }
.task-row__menu.is-up { top: auto; bottom: calc(100% + 6px); }

/* ================== v23a ================== */
/* A. 页签/筛选的「文字标签」被下方胶囊规则(.underline-tabs__list span)误伤成 11px
      → 源站实测：页签文字 14px（选中 600）/ 胶囊计数 12px。11px 中文在 Windows 上明显发虚。 */
.underline-tabs__list a > span:first-child,
.underline-tabs__list button > span:first-child {
  padding: 0; border-radius: 0; background: none; color: inherit; font-size: 14px; font-weight: inherit;
}
.underline-tabs__list a.is-active > span:first-child,
.underline-tabs__list button.is-active > span:first-child { font-weight: 600; }
.underline-tabs__list a > span + span, .underline-tabs__list button > span + span { font-size: 12px; }
/* A2. 任务行次要文字：11px → 12px（同上，Windows 小字发虚） */
.task-row__summary > span, .task-row__status small, .task-row__time small,
.task-row__points small, .asset-card__info small, .status-pill { font-size: 12px; }

/* B. 左下角「客服」+ 二维码弹窗（对标源站 .studio-support / .studio-support__popover） */
.studio-support { position: relative; }
.studio-support__popover {
  position: absolute; left: calc(100% + 10px); bottom: 0; z-index: 60; padding: 10px;
  border-radius: 12px; background: var(--studio-surface); border: 1px solid var(--studio-border);
  box-shadow: 0 18px 40px -18px rgba(40, 26, 100, .45);
}
.studio-support__popover[hidden] { display: none; }
.studio-support__popover { width: 182px; box-sizing: border-box; }  /* 对标源站弹层 182 宽 */
/* v23a4：手机端侧边栏底部是横排按钮，往右弹会出屏 → 改为向上弹、右对齐 */
@media (max-width: 860px) {
  .studio-support__popover { left: auto; right: 0; bottom: calc(100% + 10px); }
}
.studio-support__popover img { display: block; width: 160px; max-width: none; height: auto; border-radius: 8px; }
.studio-support__popover b { display: block; margin: 0 0 8px; font-size: 12px; font-weight: 500; color: var(--studio-subtext); }
button[data-tip]::after {
  content: attr(data-tip); position: absolute; left: calc(100% + 8px); top: 50%; transform: translateY(-50%);
  padding: 4px 9px; border-radius: 8px; background: var(--studio-text); color: var(--studio-canvas);
  font-size: 12px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .14s ease; z-index: 70;
}
button[data-tip]:hover::after { opacity: 1; }

/* C. 资产页：加载态 + 删除中的卡片 */
.asset-loading { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: var(--studio-dim); font-size: 13px; }
.asset-loading i { width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--studio-fill-strong);
  border-top-color: var(--studio-primary); animation: studioSpin .8s linear infinite; }
.asset-card.is-deleting { opacity: .4; pointer-events: none; transition: opacity .15s ease; }
@keyframes studioSpin { to { transform: rotate(360deg); } }

/* ================== v26：头像面板 + 主题三选 + 已发布 / 账号设置 ================== */
#popover.is-user26 { padding: 0; min-width: 268px; width: 268px; max-height: 76vh; }
.x26up { padding: 14px 0 10px; }
.x26up__head { padding: 0 16px 10px; }
.x26up__badge {
  display: inline-block; padding: 2px 8px; border-radius: 7px; font-size: 11px; font-weight: 600; line-height: 18px;
  background: var(--studio-primary-soft); color: var(--studio-primary);
}
html[data-theme="dark"] .x26up__badge { background: rgba(109, 74, 255, .18); color: #b9a7ff; }
.x26up__who { margin-top: 9px; display: flex; flex-direction: column; gap: 4px; }
.x26up__who b { font-size: 15px; color: var(--studio-text); }
.x26up__uid { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--studio-dim); }
.x26up__copy { display: inline-flex; padding: 2px; border-radius: 5px; color: var(--studio-dim); }
#popover .x26up__copy { width: auto; padding: 2px; border-radius: 5px; }
#popover .x26up__copy:hover { color: var(--studio-primary); background: var(--studio-primary-soft); }
#popover .x26up__pts, #popover .x26up__item, #popover .x26up__theme { border-radius: 0; }
#popover .x26up__pts {
  display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 16px; font-size: 13px;
  color: var(--studio-subtext); justify-content: flex-start;
}
#popover .x26up__pts span { flex: 1; text-align: left; }
#popover .x26up__pts b { font-size: 15px; color: var(--studio-text); }
#popover .x26up__pts:hover { background: var(--studio-line-soft); }
.x26up__theme { display: flex; align-items: center; gap: 8px; padding: 4px 16px 12px; font-size: 13px; color: var(--studio-subtext); }
.x26up__theme > span:first-child { flex: 1; text-align: left; }
.x26up__seg { display: inline-flex; gap: 2px; padding: 2px; border-radius: 9px; background: var(--studio-line-soft); }
#popover .x26up__seg button,
.x26up__seg button {
  width: 30px; height: 24px; padding: 0; border-radius: 7px; justify-content: center; font-size: 12px; line-height: 1;
  color: var(--studio-dim); background: none;
}
#popover .x26up__seg button.is-active,
.x26up__seg button.is-active { background: var(--studio-surface); color: var(--studio-text); box-shadow: 0 1px 2px rgba(0, 0, 0, .14); }
.x26up__div { height: 1px; background: var(--studio-line); margin: 6px 0; }
#popover .x26up__item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 16px; font-size: 13.5px;
  color: var(--studio-text); justify-content: flex-start;
}
#popover .x26up__item svg { color: var(--studio-dim); }
#popover .x26up__item:hover { background: var(--studio-line-soft); }
#popover .x26up__item:last-child { color: var(--studio-subtext); }
#popover .x26up__item:last-child:hover { color: var(--studio-danger); }

/* 已发布 */
.x26pub__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.x26pub__card { border: 1px solid var(--studio-line); border-radius: 14px; overflow: hidden; background: var(--studio-surface); }
.x26pub__media { display: block; aspect-ratio: 16 / 10; background: var(--studio-fill-media); }
.x26pub__media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.x26pub__ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--studio-muted); }
.x26pub__body { padding: 10px 12px 2px; }
.x26pub__body b { display: block; font-size: 13px; color: var(--studio-text); }
.x26pub__body small { font-size: 11.5px; color: var(--studio-dim); }
.x26pub__acts { display: flex; gap: 8px; padding: 8px 12px 12px; }
.x26pub__empty { padding: 40px 0; text-align: center; color: var(--studio-dim); font-size: 13px; }

/* 账号设置 */
.x26acc__card {
  border: 1px solid var(--studio-line); border-radius: 14px; padding: 6px 18px; margin-bottom: 14px;
  background: var(--studio-surface);
}
.x26acc__row {
  display: flex; align-items: center; gap: 10px; padding: 11px 0; font-size: 13.5px;
  border-bottom: 1px solid var(--studio-line-soft); color: var(--studio-text);
}
.x26acc__row:last-child { border-bottom: 0; }
.x26acc__row > span:first-child { width: 96px; color: var(--studio-dim); flex: none; }
.x26acc__row > b { flex: 1; font-weight: 500; }

/* 未登录占位 */
.x26blank { display: flex; justify-content: center; padding: 60px 0; }
.x26blank__card { text-align: center; border: 1px dashed var(--studio-line); border-radius: 16px; padding: 32px 44px; }
.x26blank__card h3 { margin: 0 0 8px; font-size: 16px; }
.x26blank__card p { margin: 0 0 16px; color: var(--studio-dim); font-size: 13px; }

/* ================== v27：手机端底部菜单栏整理 + 预览弹层排版 ================== */

/* ① 通用修复：描述词块原来只有 max-height 没有 overflow ⇒ 长文案会「画」到下面的参数表/参考素材上 */
.studio-lightbox__info p { overflow-y: auto; scrollbar-width: thin; }

@media (max-width: 767px) {
  /* ② 底部菜单栏：5 个常用 tab 单行等宽 + 客服 + 头像；语言/主题/帮助收进头像面板（账号设置里都有），余额收进头像面板 */
  .studio-sidebar {
    height: auto; min-height: 56px; padding-bottom: env(safe-area-inset-bottom, 0px);
    align-items: stretch; backdrop-filter: blur(14px);
  }
  .studio-nav { flex: 1 1 auto; min-width: 0; flex-direction: row; justify-content: flex-start; }
  .studio-nav__item { flex: 1 1 0; min-width: 0; height: 56px; padding: 0 2px; gap: 3px; }
  .studio-nav__item svg { width: 19px; height: 19px; }
  .studio-nav__item span {
    font-size: 10.5px; line-height: 1.15; white-space: nowrap;
    max-width: 100%; overflow: hidden; text-overflow: ellipsis;
  }
  .studio-sidebar__bottom { flex: 0 0 auto; margin: 0; flex-direction: row; align-items: center; gap: 0; padding: 0 6px 0 0; }
  .studio-balance { display: none; }
  .studio-sidebar__links { flex-direction: row; gap: 0; }
  .studio-sidebar__links #langBtn,
  .studio-sidebar__links #themeBtn,
  .studio-sidebar__links #helpBtn { display: none; }
  .studio-sidebar__links button, .studio-sidebar__links a { width: 38px; height: 38px; }
  .studio-account { margin: 0 2px 0 0; }
  .studio-avatar { width: 38px; height: 38px; font-size: 14px; }
  .studio-sidebar [data-tip]::after { display: none; }
  .studio-main { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px) + 20px); }

  /* ③ 预览弹层：改成「上方媒体 + 下方整块可滚动信息栏」，描述词全展开也不再压住任何东西 */
  .studio-lightbox { padding: 10px; }
  .studio-lightbox__panel { flex-direction: column; width: 100%; max-height: 94vh; }
  .studio-lightbox__media { flex: 0 0 auto; min-height: 0; }
  .studio-lightbox__media video, .studio-lightbox__media img { width: 100%; max-height: 40vh; }
  .studio-lightbox__info {
    flex: 1 1 auto; min-height: 0; width: auto; padding: 14px 16px 0;
    overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  }
  .studio-lightbox__info p { --prompt-max: none; max-height: none; font-size: 13.5px; line-height: 1.7; }
  .studio-lightbox__info dl { gap: 8px; }
  .studio-lightbox__refs { gap: 6px; }
  .studio-lightbox__refs a { width: 48px; height: 48px; }
  .studio-lightbox__actions { margin: auto -16px 0; padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px)); }
}

/* ================== v27d：底栏布局修正 + 客服二维码居中模态 ================== */

/* 血泪：`.studio-sidebar__bottom` 基础样式带 `width:100%`（竖排栏时需要），
   手机端横过来当底栏后它仍吃掉整行宽 → 5 个 tab 被压成 0 宽（实测每个只剩 4px，文字全裁没了）。
   所以手机端必须把 bottom 的宽度让出来：width:auto + flex:0 0 auto + margin-left:auto（贴右）。 */
@media (max-width: 767px) {
  /* 🔴 backdrop-filter（以及 filter/transform/perspective/contain/will-change）会给 position:fixed 的后代
     **新建包含块**。实测：底栏带 blur(14px) 时，fixed 弹层的 `top:50%` 是相对「底栏高度 57px」算的
     ⇒ 弹层跑到屏幕外（y=635、底边 996 > 视口 844）。手机端底栏改回不透明即可（底栏本就实底色，视觉无差）。 */
  .studio-sidebar { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .studio-nav { flex: 1 1 auto; width: auto; min-width: 0; }
  .studio-sidebar__bottom {
    width: auto; flex: 0 0 auto; margin: 0 0 0 auto;
    align-items: center; justify-content: flex-end; gap: 6px; padding: 0 8px 0 0;
  }
  .studio-nav__item { min-width: 54px; }          /* 保底宽度：标签一定看得见 */
  .studio-nav__item span { font-size: 10.5px; overflow: visible; text-overflow: clip; }

  /* 客服二维码：右对齐到按钮时，只要按钮靠边弹层就出屏（实测 left=-144px）→ 改居中模态，永不出屏 */
  .studio-support__popover {
    position: fixed; left: 50%; top: 50%; right: auto; bottom: auto;
    transform: translate(-50%, -50%); width: min(280px, calc(100vw - 44px));
    padding: 16px; z-index: 660; text-align: center;
    box-shadow: 0 26px 60px -20px rgba(20, 12, 50, .6);
  }
  .studio-support__popover img { width: 100%; max-width: 232px; margin: 0 auto; }
  .studio-support__popover b { margin-bottom: 10px; font-size: 13px; }
  .studio-support__popover::before {
    content: ''; position: fixed; inset: 0; background: rgba(10, 8, 20, .55); z-index: -1;
  }
}

/* ================== v28：描述框「@ 引用素材」菜单 ================== */
.creator-editor { position: relative; }
.at-menu {
  position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 60;
  display: none; width: min(330px, 100%); max-height: 264px; overflow-y: auto;
  padding: 6px; border-radius: 14px;
  background: var(--studio-surface); border: 1px solid var(--studio-line);
  box-shadow: var(--studio-shadow-pop);
}
.at-menu.is-open { display: block; }
.at-menu__item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 7px 9px; border: 0; border-radius: 10px; background: transparent;
  color: var(--studio-text); font-size: 13px; text-align: left; cursor: pointer;
}
.at-menu__item.is-cur, .at-menu__item:hover { background: var(--studio-accent-fill); }
.at-menu__item b { font-weight: 500; }
.at-menu__item small { margin-left: auto; color: var(--studio-dim); font-size: 11.5px; }
.at-menu__thumb {
  flex: none; width: 34px; height: 34px; border-radius: 8px; object-fit: cover;
  background: var(--studio-fill-media); color: var(--studio-subtext);
  display: inline-flex; align-items: center; justify-content: center;
}
.at-menu__empty { padding: 10px 12px; color: var(--studio-subtext); font-size: 12.5px; line-height: 1.65; }
.at-menu__hint { padding: 4px 10px 2px; color: var(--studio-dim); font-size: 11px; }
@media (max-width: 767px) {
  .at-menu { width: 100%; bottom: calc(100% + 6px); max-height: 200px; }
  .at-menu__item { padding: 9px; font-size: 13.5px; }
}

/* ================= v29 素材库弹窗（照对标：位置 / 分类页签 / 网格多选 / 上传新素材 + 取消 + 加入参考位） ================= */
.ref-slot--empty { cursor: pointer; }
.ref-slot__up { position: absolute; right: 3px; top: 3px; z-index: 3; width: 20px; height: 20px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--studio-scrim); color: #fff; cursor: pointer; opacity: .92; }
.ref-slot__up:hover { opacity: 1; }
.ref-slot__up svg { width: 13px; height: 13px; }
.lib-modal { position: fixed; inset: 0; z-index: 640; display: grid; place-items: center; padding: 40px; background: rgba(10, 8, 20, .62); }
.lib-modal__panel { display: flex; flex-direction: column; width: min(1120px, 100%); max-height: 84vh; border: 1px solid var(--studio-line); border-radius: 16px; background: var(--studio-surface); overflow: hidden; box-shadow: 0 26px 60px -24px rgba(0, 0, 0, .7); }
.lib-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px 12px; }
.lib-head > span:first-child { color: var(--studio-muted); font-size: 13px; }
.lib-head__loc { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border: 1px solid var(--studio-line); border-radius: 9px; background: var(--studio-fill); color: var(--studio-text); font-size: 13px; }
.lib-head em { margin-left: auto; font-style: normal; color: var(--studio-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.lib-x { width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--studio-subtext); cursor: pointer; }
.lib-x:hover { background: var(--studio-fill); color: var(--studio-text); }
.lib-tabs { display: flex; gap: 8px; padding: 0 20px 12px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--studio-line); }
.lib-tabs::-webkit-scrollbar { display: none; }
.lib-tab { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; padding: 7px 13px; border: 1px solid var(--studio-line); border-radius: 999px; background: var(--studio-fill); color: var(--studio-subtext); font-size: 13px; cursor: pointer; }
.lib-tab i { font-style: normal; color: var(--studio-dim); font-size: 12px; }
.lib-tab.is-active { border-color: transparent; background: var(--studio-primary); color: #fff; }
.lib-tab.is-active i { color: rgba(255, 255, 255, .82); }
.lib-body { flex: 1 1 auto; overflow-y: auto; }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); grid-auto-rows: min-content; gap: 12px; padding: 16px 20px; align-content: start; }
.lib-more { padding: 0 20px 14px; color: var(--studio-dim); font-size: 12px; }
.lib-card { position: relative; display: block; border: 1px solid var(--studio-line); border-radius: 12px; background: var(--studio-canvas); overflow: hidden; cursor: pointer; }
.lib-card:hover { border-color: var(--studio-primary); }
/* ⚠️ 卡片比例不要用 aspect-ratio 靠内容撑：网格行高不认它（本地能撑、线上被压成一条）。
   用经典 padding-top 比例盒（百分比相对宽度解析）→ 行高确定，线上/本地一致 */
.lib-card__box { position: relative; display: block; width: 100%; padding-top: 133.3333%; overflow: hidden; }
.lib-card__box img, .lib-card__box video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lib-card__name { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 8px 6px; background: linear-gradient(transparent, rgba(8, 6, 16, .86)); color: #fff; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lib-card__badge { position: absolute; left: 6px; top: 6px; padding: 2px 7px; border-radius: 7px; background: var(--studio-primary); color: #fff; font-size: 11px; }
.lib-card__tick { position: absolute; right: 6px; top: 6px; width: 20px; height: 20px; display: none; place-items: center; border-radius: 50%; background: var(--studio-primary); color: #fff; }
/* v30b：素材库卡片删除（悬停浮现，避免误删） */
.lib-card__del { position: absolute; right: 6px; bottom: 5px; z-index: 3; width: 22px; height: 22px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 7px; background: rgba(0,0,0,.55); color: #fff; opacity: 0; cursor: pointer; transition: opacity .16s ease, background .16s ease; }
.lib-card__del svg { width: 12px; height: 12px; }
.lib-card:hover .lib-card__del, .lib-card__del:focus-visible { opacity: 1; }
.lib-card__del:hover { background: var(--studio-danger); }
.lib-card.is-sel { border-color: var(--studio-primary); box-shadow: 0 0 0 2px var(--studio-primary); }
.lib-card.is-sel .lib-card__tick { display: grid; }
.lib-card.is-inref { cursor: default; opacity: .7; }
.lib-card__audio { position: absolute; inset: 0; display: grid; place-items: center; color: var(--studio-dim); }
.lib-card__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: rgba(0, 0, 0, .5); color: #fff; }
.lib-foot { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--studio-line); }
.lib-foot__right { display: flex; gap: 8px; }
.lib-foot .ghost-button { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 10px; }
.lib-foot .primary-button { height: 36px; padding: 0 18px; border: 0; border-radius: 10px; color: #fff; background: linear-gradient(100deg, #6d4aff, #8b36f0); font-size: 13px; cursor: pointer; }
.lib-foot .primary-button[disabled] { opacity: .5; cursor: not-allowed; }
.lib-modal .studio-empty { padding: 54px 16px; }
@media (max-width: 760px) {
  .lib-modal { padding: 10px; }
  .lib-modal__panel { max-height: 92vh; border-radius: 14px; }
  .lib-head, .lib-tabs, .lib-foot { padding-left: 14px; padding-right: 14px; }
  .lib-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 9px; padding: 12px 14px; }
  .lib-foot { flex-wrap: wrap; }
  .lib-foot__right { margin-left: auto; }
}

/* v30：素材库分批加载（滚动到底自动续 + 加载更多按钮） */
.lib-more { display: flex; align-items: center; justify-content: center; gap: 10px; }
.lib-more.is-loading { opacity: .65; }
.lib-more__btn { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 9px; font-size: 12px; }

/* v31：裁剪面板重做（照官网：大画面 + 逐秒缩略图条 + 左右手柄拖选 + 已选秒 pill） */
.clip-modal__panel { width: min(900px, 96vw); }
.clip-modal__stage { position: relative; margin: 14px 16px 0; background: #05070c; border-radius: 14px; overflow: hidden; }
.clip-modal__stage video { display: block; width: 100%; max-height: min(48vh, 420px); object-fit: contain; background: #000; }
.clip-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; color: #fff; background: rgba(109,74,255,.92); cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.45); }
.clip-play:hover { background: rgba(122,90,255,1); }
.clip-play svg { width: 18px; height: 18px; fill: currentColor; }
.clip-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px 8px; }
.clip-pill { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; color: #fff; background: linear-gradient(100deg, #6d4aff, #8b36f0); font-size: 12px; white-space: nowrap; }
.clip-clock { margin-left: auto; font-size: 12px; color: var(--studio-dim); white-space: nowrap; }
.clip-clock b, .clip-clock i { font-style: normal; }
.clip-clock b { color: var(--studio-text); }
.clip-next { height: 30px; padding: 0 12px; border-radius: 9px; font-size: 12px; }
.clip-track { margin: 0 16px; touch-action: none; -webkit-user-select: none; user-select: none; }
.clip-handle { position: absolute; top: 0; bottom: 0; z-index: 3; width: 16px; margin-left: -8px; border-radius: 9px; background: #a78bfa; box-shadow: 0 0 0 2px rgba(255,255,255,.3); cursor: ew-resize; touch-action: none; }
.clip-handle:hover { background: #bda9ff; }
.clip-handle::after { content: ''; position: absolute; left: 50%; top: 50%; width: 2px; height: 16px; margin: -8px 0 0 -1px; border-radius: 1px; background: rgba(255,255,255,.85); }
.clip-modal .clip-modal__note { margin: 10px 16px 0; }
.clip-modal .clip-modal__foot { margin: 12px 16px 16px; }
.clip-loc { font-size: 12px; color: var(--studio-dim); }
.clip-loc b { color: var(--studio-text); font-weight: 600; }
@media (max-width: 760px) {
  .clip-modal__stage { margin: 10px 12px 0; }
  .clip-modal__stage video { max-height: 34vh; }
  .clip-bar { flex-wrap: wrap; padding: 10px 12px 6px; }
  .clip-clock { margin-left: 0; }
  .clip-track { margin: 0 12px; }
  .clip-modal .clip-modal__note { margin: 8px 12px 0; }
  .clip-modal .clip-modal__foot { margin: 10px 12px 14px; }
}

/* ===== 复刻工作台（对标 RunningHub Hypit · 2026-11-04）===== */
.rep-app { display: flex; flex-direction: column; gap: 14px; }
.rep-banner { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 14px;
  background: linear-gradient(90deg, rgba(120,90,255,.22), rgba(255,120,180,.14));
  border: 1px solid rgba(255,255,255,.10); font-size: 13px; }
.rep-dot { width: 7px; height: 7px; border-radius: 50%; background: #5ef2a4; box-shadow: 0 0 8px #5ef2a4;
  display: inline-block; margin-right: 8px; }
.rep-banner__sub { color: var(--studio-dim); margin-left: 8px; }
.rep-clock { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.rep-clock__label { font-size: 12px; color: var(--studio-dim); }
.rep-clock__digits { display: flex; gap: 6px; }
.rep-clock__part { display: flex; align-items: baseline; gap: 2px; background: rgba(0,0,0,.32);
  padding: 2px 7px; border-radius: 8px; }
.rep-clock__part b { font-size: 14px; }
.rep-clock__part i { font-style: normal; font-size: 11px; color: var(--studio-dim); }
.rep-banner__cta { padding: 6px 14px; border-radius: 999px; background: var(--studio-accent, #6d5efc);
  color: #fff; font-weight: 600; }
.rep-banner__close { color: var(--studio-dim); font-size: 14px; }
.rep-stage { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); gap: 16px; align-items: start; }
.rep-chat, .rep-res { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px; padding: 14px; }
.rep-chat__head { display: flex; align-items: center; margin-bottom: 10px; }
.rep-chat__head h2 { margin: 0; font-size: 15px; }
.rep-link { margin-left: auto; font-size: 12px; color: var(--studio-dim); }
.rep-feature { position: relative; border-radius: 14px; overflow: hidden; background: #000; }
.rep-feature__video { width: 100%; display: block; max-height: 260px; object-fit: cover; opacity: .92; }
.rep-feature__copy { position: absolute; left: 14px; bottom: 12px; display: flex; flex-direction: column;
  gap: 2px; text-shadow: 0 2px 10px rgba(0,0,0,.8); }
.rep-feature__copy strong { font-size: 17px; }
.rep-feature__copy span { font-size: 12px; color: #e7e7e7; }
.rep-slot { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  min-height: 96px; margin-top: 12px; border: 1px dashed rgba(255,255,255,.22); border-radius: 14px;
  background: rgba(255,255,255,.02); color: inherit; font: inherit; }
.rep-slot__icon { font-size: 20px; color: var(--studio-dim); }
.rep-slot strong { font-size: 14px; }
.rep-slot small { color: var(--studio-dim); font-size: 12px; }
.rep-slot--has { position: relative; padding: 8px; justify-content: flex-start; }
.rep-slot--has video { width: 120px; height: 70px; object-fit: cover; border-radius: 10px; }
.rep-slot__name { font-size: 12px; color: var(--studio-dim); }
.rep-slot__swap { margin-left: auto; font-size: 12px; padding: 5px 12px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.2); }
.rep-assets { margin-top: 14px; }
.rep-assets__head { display: flex; align-items: baseline; gap: 8px; font-size: 13px; }
.rep-assets__head span { font-size: 12px; color: var(--studio-dim); }
.rep-assets__row { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0 2px; align-items: center; }
.rep-add { flex: 0 0 auto; width: 54px; height: 54px; border-radius: 12px;
  border: 1px dashed rgba(255,255,255,.25); font-size: 20px; color: var(--studio-dim); }
.rep-thumb { position: relative; flex: 0 0 auto; width: 54px; height: 54px; border-radius: 12px;
  overflow: hidden; border: 1px solid rgba(255,255,255,.16); }
.rep-thumb img, .rep-lib__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rep-thumb button { position: absolute; top: 0; right: 0; width: 16px; height: 16px; font-size: 10px;
  background: rgba(0,0,0,.6); color: #fff; }
.rep-lib__item { flex: 0 0 auto; width: 54px; border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.1); opacity: .55; }
.rep-lib__item.is-on { border-color: var(--studio-accent, #6d5efc); opacity: 1; }
.rep-lib__item span { display: block; font-size: 9px; padding: 2px; color: var(--studio-dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rep-composer { margin-top: 14px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px;
  padding: 10px 12px; background: rgba(255,255,255,.02); }
.rep-composer__label { display: block; font-size: 13px; margin-bottom: 6px; }
.rep-composer textarea { width: 100%; border: 0; background: transparent; color: inherit; font: inherit;
  resize: vertical; outline: none; }
.rep-composer__foot { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.rep-composer__hint { font-size: 11px; color: var(--studio-dim); }
.rep-composer__foot button { margin-left: auto; }
.rep-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.rep-chip { font-size: 12px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14); color: #cfcfcf; }
.rep-thread { display: flex; flex-direction: column; }
.rep-empty { font-size: 13px; color: var(--studio-dim); padding: 8px 0; }
.rep-res__tabs { display: flex; gap: 16px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 12px; }
.rep-res__tabs button { padding: 8px 2px; font-size: 13px; color: var(--studio-dim);
  border-bottom: 2px solid transparent; }
.rep-res__tabs button.is-active { color: inherit; border-bottom-color: var(--studio-accent, #6d5efc); }
.rep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.rep-card { text-align: left; padding: 10px; border-radius: 12px; border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02); display: flex; flex-direction: column; gap: 4px; font: inherit; color: inherit; }
.rep-card.is-active { border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.06); }
.rep-card b { font-size: 13px; }
.rep-card span { font-size: 11px; color: var(--studio-dim); display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; }
.rep-card i { font-style: normal; font-size: 10px; color: var(--studio-dim); }
.rep-card--new { align-items: center; justify-content: center; border-style: dashed; min-height: 92px; }
.rep-demo { display: flex; flex-direction: column; gap: 14px; }
.rep-demo__slide { display: flex; flex-direction: column; gap: 8px; }
.rep-demo__text h3 { margin: 0 0 4px; font-size: 15px; }
.rep-demo__text p { margin: 0; font-size: 12px; color: var(--studio-dim); line-height: 1.7; }
.rep-demo__video { width: 100%; border-radius: 12px; background: #000; }
.rep-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rep-step { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px;
  background: rgba(255,255,255,.03); }
.rep-step__no { font-size: 12px; color: var(--studio-accent, #6d5efc); font-weight: 700; }
.rep-step__txt { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.rep-step__txt b { font-size: 13px; }
.rep-step__txt span { font-size: 11px; color: var(--studio-dim); }
.rep-step__video { width: 96px; height: 56px; object-fit: cover; border-radius: 8px; background: #000; }
@media (max-width: 980px) {
  .rep-stage { grid-template-columns: minmax(0, 1fr); }
  .rep-banner__sub { display: none; }
  .rep-clock { margin-left: 0; }
}


/* ===== 创作首页（对标 Runow home · 2026-11-04） ===== */
.home-app { display: grid; grid-template-columns: 200px minmax(0,1fr); gap: 16px; align-items: start; }
.home-menu { display: flex; flex-direction: column; gap: 4px; }
.home-menu__new { padding: 9px 12px; border-radius: 10px; background: rgba(255,255,255,.08);
  text-align: left; margin-bottom: 8px; font-size: 13px; }
.home-menu__item { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 10px;
  text-align: left; color: var(--studio-dim); font-size: 13px; }
.home-menu__item.is-active { background: rgba(255,255,255,.07); color: inherit; }
.home-menu__item i { font-style: normal; font-size: 10px; padding: 1px 5px; border-radius: 6px;
  background: #7fe07f; color: #0b0b0b; margin-left: auto; }
.home-main { min-width: 0; }
.home-hero { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px;
  color: var(--studio-dim); margin-bottom: 16px; }
.home-chip { padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); font-size: 13px; }
.home-sec__head { display: flex; align-items: baseline; }
.home-sec__head h2 { margin: 0; font-size: 17px; }
.home-link { margin-left: auto; font-size: 12px; color: var(--studio-dim); }
.home-cats { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 14px; }
.home-cats button { padding: 5px 14px; border-radius: 999px; font-size: 13px; color: var(--studio-dim); }
.home-cats button.is-active { background: rgba(255,255,255,.9); color: #111; }
.home-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.home-card { text-align: left; font: inherit; color: inherit; display: flex; flex-direction: column; gap: 6px; }
.home-card__media { position: relative; display: block; aspect-ratio: 9 / 13; border-radius: 14px;
  overflow: hidden; background: #111; }
.home-card__media img, .home-card__media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.home-card__tag { position: absolute; left: 8px; top: 8px; font-style: normal; font-size: 11px;
  padding: 2px 8px; border-radius: 8px; background: rgba(0,0,0,.6); }
.home-card b { font-size: 13px; font-weight: 500; }
@media (max-width: 980px) {
  .home-app { grid-template-columns: 1fr; }
  .home-menu { flex-direction: row; flex-wrap: wrap; }
  .home-menu__new { flex: 1 0 100%; }
}


/* ===== Runow 左侧会员折叠 + 模块克隆（2026-11-04） ===== */
.user-mini { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 12px; border-radius: 10px;
  background: transparent; color: inherit; font: inherit; }
.user-mini__name { flex: 1; text-align: left; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-mini__chevron { width: 14px; height: 14px; transition: transform .2s; }
.studio-sidebar[data-user-collapsed="1"] .user-mini__chevron { transform: rotate(-90deg); }
.studio-sidebar[data-user-collapsed="1"] .user-extra { display: none; }
.user-extra { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }

/* 创作 Agent 首页 */
.agent-app { display: flex; flex-direction: column; gap: 28px; max-width: 980px; margin: 0 auto; }
.agent-hero { text-align: center; padding: 30px 0 10px; }
.agent-hero h1 { font-size: 28px; margin: 0 0 18px; }
.agent-tabs { display: inline-flex; gap: 6px; background: rgba(255,255,255,.06); border-radius: 999px; padding: 4px; margin-bottom: 18px; }
.agent-tabs button { padding: 6px 16px; border-radius: 999px; font-size: 13px; color: var(--studio-dim); }
.agent-tabs button.is-active { background: #dfff00; color: #111; }
.agent-tabs button i { font-style: normal; font-size: 10px; padding: 1px 5px; border-radius: 6px; background: #111; color: #dfff00; margin-left: 4px; }
.agent-prompt { background: rgba(255,255,255,.06); border-radius: 18px; padding: 16px; text-align: left; }
.agent-prompt textarea { width: 100%; background: transparent; border: none; color: inherit; font-size: 15px; resize: none; min-height: 60px; outline: none; }
.agent-prompt__foot { display: flex; align-items: center; gap: 14px; margin-top: 10px; color: var(--studio-dim); font-size: 13px; }
.agent-prompt__foot .primary-button { margin-left: auto; border-radius: 50%; width: 34px; height: 34px; padding: 0; }
.agent-chips { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.runow-chip, .agent-chips button { padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); font-size: 13px; }
.agent-section__head, .tpl-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.agent-section__head h2, .tpl-head h1 { margin: 0; font-size: 18px; }
.agent-section__head small, .tpl-head p { color: var(--studio-dim); font-size: 13px; }
.agent-section__head a, .tpl-head a { margin-left: auto; font-size: 12px; color: var(--studio-dim); }
.tpl-cats { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.tpl-cats button { padding: 5px 14px; border-radius: 999px; font-size: 13px; color: var(--studio-dim); }

/* 通用卡片网格 */
.runow-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.runow-card { text-align: left; font: inherit; color: inherit; display: flex; flex-direction: column; gap: 6px; }
.runow-card__media { position: relative; display: block; aspect-ratio: 9 / 13; border-radius: 14px; overflow: hidden; background: #111; }
.runow-card__media img, .runow-card__media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.runow-card__tag { position: absolute; left: 8px; top: 8px; font-style: normal; font-size: 11px; padding: 2px 8px; border-radius: 8px; background: rgba(0,0,0,.6); }
.runow-card b { font-size: 13px; font-weight: 500; }

/* 复刻演示：图片步骤 */
.rep-step__img { width: 100%; border-radius: 12px; object-fit: cover; aspect-ratio: 16/10; background: #111; }

/* 预览弹窗 */
.runow-preview { max-width: 720px; width: 92vw; padding: 16px; position: relative; }
.runow-preview h3 { margin: 0 0 10px; font-size: 15px; }
.runow-preview img, .runow-preview video { width: 100%; border-radius: 12px; display: block; max-height: 78vh; object-fit: contain; }
.runow-preview__close { position: absolute; right: 12px; top: 12px; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.1); }

/* ============ 2026-11-06 待办A：复刻工作台内嵌（runow.html?embed=1） ============ */
body.is-replica-route .studio-main { padding: 0 !important; }
.page.is-embed-page { max-width: none; padding: 0; margin: 0; }
.replica-embed { display: block; width: 100%; height: 100vh; height: 100dvh; border: 0; background: #0d0e14; }
body.is-replica-route #rwEntry { display: none !important; }
@media (max-width: 820px) {
  body.is-replica-route .studio-main { padding: 0 !important; }
  .replica-embed { height: 100dvh; }
}


/* ===== v703：模板 / 技能 / Agent ===== */
.rep-mod { margin-top: 10px; padding: 10px 12px 12px; border-radius: 12px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); }
.rep-mod__head { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 8px; }
.rep-mod__head:first-child { margin-top: 0; }
.rep-mod__head b { font-size: 12.5px; color: #e6e6f0; font-weight: 700; }
.rep-mod__head span { font-size: 11px; color: var(--studio-dim); }
.rep-mod__tpls { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 4px; }
.rep-mod__tpl { position: relative; flex: 0 0 74px; height: 58px; padding: 0; border: none; cursor: pointer;
  border-radius: 9px; overflow: hidden; background: rgba(255,255,255,.06); }
.rep-mod__tpl img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rep-mod__tpl span { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center;
  font-size: 11px; color: var(--studio-dim); }
.rep-mod__tpl i { position: absolute; right: 3px; bottom: 3px; padding: 0 4px; border-radius: 4px;
  font-size: 9.5px; font-style: normal; color: #fff; background: rgba(0,0,0,.55); }
.rep-mod__tpl:hover { outline: 1.5px solid #8b6bff; }
.rep-mod__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rep-mod__chip { padding: 5px 11px; border-radius: 999px; cursor: pointer; font-size: 11.5px;
  color: #cfcfe0; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.rep-mod__chip:hover { border-color: rgba(139,107,255,.6); color: #e8e8ff; }
.rep-mod__chip.is-on { color: #fff; border-color: #8b6bff; background: rgba(124,92,255,.28); }
.rep-mod__empty { font-size: 11px; color: var(--studio-dim); }

/* v703：参考视频不再露黑底 / 底部不再留白 / 吸底不遮输入框 */
.rep-upload.is-filled { background: transparent; }
.rep-upload__video { width: 100%; height: 170px; object-fit: cover; border-radius: 12px;
  background: transparent; display: block; }
.rep-rail { padding-bottom: 104px; }
.rep-app { min-height: calc(100vh - 16px); }
.rep-home { min-height: calc(100vh - 40px); }


/* ===== 2026-11-15 FIX_REF_ADD_POS_2026：参考位 + 号移到预览框右上角边沿 =====
   老陈要求：+号不能挡住图片，应位于预览框右边沿的上方角落
   实现：.ref-stack 作为定位容器，+ 号绝对定位到右上角，负偏移骑在边沿上 */
.ref-stack {
  position: relative;
}








/* ===== 2026-11-15 FIX_REF_ADD_NEAR_CHIP_2026：+ 号紧挨最后一张素材右侧边沿 =====
   老陈要求：+ 号要挨着预览图片框的边沿角，起引导作用（对标源站）
   定位由 JS 按最后一张 chip 计算 left/top，这里只负责外观 */
.ref-stack {
  position: relative;
}








/* ===== 2026-11-15 FIX_REF_ADD_NEAR_CHIP_V4：+ 号紧贴最后一张素材右边缘 =====
   坐标由 JS 写入 CSS 变量 --ref-add-x / --ref-add-y（相对 .ref-stack）
   这样避免 !important 与内联样式打架 */
.ref-stack {
  position: relative;
}

.ref-stack__add {
  position: absolute;
  left: var(--ref-add-x, 8px);
  top: var(--ref-add-y, 8px);
  right: auto;
  width: 26px;
  height: 26px;
  min-width: 26px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid rgba(124, 92, 255, .9);
  background: rgba(38, 34, 54, .97);
  color: #b8a8ff;
  cursor: pointer;
  z-index: 90;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .5), 0 0 0 2px rgba(22, 20, 32, .7);
  transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}

.ref-stack__add:hover {
  background: #7c5cff;
  color: #fff;
  border-color: #9b8cff;
  transform: scale(1.12);
  box-shadow: 0 3px 14px rgba(124, 92, 255, .6), 0 0 0 2px rgba(22, 20, 32, .7);
}

.ref-stack__add svg {
  width: 14px;
  height: 14px;
}


/* ===== 2026-11-15 FIX_AT_VIDEO_THUMB_2026：@ 菜单视频缩略图 ===== */
.at-menu__thumb--video {
  position: relative;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
}

.at-menu__thumb--video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.at-menu__thumb--video svg {
  position: relative;
  z-index: 2;
  width: 12px;
  height: 12px;
  color: #fff;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .8));
  pointer-events: none;
}


/* ===== v902（2026-11-26）六档积分套餐卡 =====
   一排 6 档；窄屏 3 → 2；标准档带「推荐」角标 + 呼吸光晕 */
.points-packs.v902 {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 1600px) { .points-packs.v902 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px)  { .points-packs.v902 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.pack-card-v902 {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--studio-surface);
  border: 1px solid var(--studio-line);
  border-radius: var(--studio-radius);
  padding: 16px 14px 14px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.pack-card-v902:hover {
  transform: translateY(-5px);
  border-color: var(--studio-accent-line-on);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .35);
}
.pack-card-v902.is-hot {
  border-color: var(--studio-accent-line-on);
  animation: packV902Glow 2.2s ease-in-out infinite;
}
@keyframes packV902Glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0); }
  50%      { box-shadow: 0 0 18px 2px rgba(139, 92, 246, .38); }
}
.pack-badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  padding: 3px 10px; border-radius: 999px; font-size: 11px; line-height: 1;
  color: #fff; background: linear-gradient(135deg, #8b5cf6, #6366f1);
  white-space: nowrap;
}
.pack-card-v902 h4 {
  margin: 0 0 10px; font-size: 15px; font-weight: 600; color: var(--studio-text);
}
.pack-pts {
  position: relative;
  padding: 10px 8px; margin-bottom: 12px;
  border-radius: 10px; text-align: center;
  background: rgba(139, 92, 246, .12);
  border: 1px solid rgba(139, 92, 246, .35);
}
.pack-pts b {
  font-size: 27px; line-height: 1.1; font-weight: 700; color: var(--studio-primary);
}
.pack-pts em {
  font-style: normal; font-size: 12px; color: var(--studio-dim); margin-left: 4px;
}
.pack-gift {
  display: inline-block; margin-left: 6px; padding: 1px 6px;
  font-size: 11px; line-height: 1.5; border-radius: 4px;
  color: #10b981; background: rgba(16, 185, 129, .15);
  border: 1px solid rgba(16, 185, 129, .4);
  vertical-align: middle;
}
.pack-rows { display: flex; flex-direction: column; gap: 5px; }
.pack-rows .pr {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 12px; color: var(--studio-dim);
}
.pack-rows .pr > span:last-child { color: var(--studio-text); }
.pack-foot {
  margin-top: auto; padding-top: 12px;
  border-top: 1px solid var(--studio-line-soft);
}
.pack-foot .pack-price {
  font-size: 20px; font-weight: 700; color: var(--studio-text);
  margin: 0 0 8px;
}
.pack-foot .primary-button {
  width: 100%; justify-content: center; height: 36px;
}


/* ===== v903（2026-11-26）：Skill 标题加粗美化 ===== */
/* Skill 工具栏菜单项 */
.toolbar-menu [data-skill] span,
.toolbar-menu .toolbar-skill-label {
  font-weight: 700;
  letter-spacing: .2px;
  color: #ede9fe;
}
/* Skill 菜单里的名称 */
.toolbar-menu .menu-item b,
.toolbar-menu .menu-item strong,
.toolbar-menu [data-skill] b {
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: .3px;
}
/* Skill 详情卡标题 */
.rep-mod__chips [data-rep="skill"],
.rep-mod__chips .rep-chip {
  font-weight: 600;
}
/* Skill 列表卡片标题（资产页/详情弹层） */
.rep-mod__head b,
.x102skill__title,
.skill-card__title {
  font-weight: 800;
  letter-spacing: .3px;
}
/* Skill 弹层里 <strong> 名称 */
.studio-lightbox strong,
.rep-lightbox strong {
  font-weight: 800;
  letter-spacing: .3px;
}


/* ===== v904（2026-11-26）：Skill 菜单对标优云 ===== */
/* 下拉整体：固定宽 + 限高 */
/* 旧浏览器兜底：不支持 dvh 时退回 vh */
@supports not (height: 100dvh) {
  .skill-menu { max-height: min(460px, calc(100vh - 140px)) !important; }
}

/* 2026-11-26：已删除「矮屏向下弹」规则 —— 它导致菜单一直向下弹、顶部被裁 */

/* 极矮屏（<520px）：进一步压缩条目区 */
@media (max-height: 520px) {
  .skill-menu { max-height: calc(100dvh - 90px); }
  .skill-menu__list {
  flex: 0 1 auto;          /* 可缩放，但不占满 */
  overflow-y: auto;
  overscroll-behavior: contain;
  min-height: 120px;       /* 至少显示 2 条 */
  max-height: none;        /* 由父容器约束 */
}
  .skill-menu__foot { display: block; font-size: 10.5px; }  /* 保留但缩小 */
}

/* 2026-11-26 终极方案：强制向上弹 + JS 精确定高
   CSS 负责：方向（bottom 定位）和保守的 max-height
   JS 负责：根据父元素位置算出精确 max-height（见 fitDropdown）
*/
.skill-menu {
  width: 336px;
  display: none;
  flex-direction: column;
  padding: 8px;
  box-sizing: border-box;
  position: absolute !important;
  top: auto !important;
  bottom: calc(100% + 6px) !important;
  max-height: 320px;          /* JS 会覆盖为精确值 */
  overflow: hidden;
}
.toolbar-menu.is-open .skill-menu {
  display: flex;
}
.skill-menu > .skill-menu__none,
.skill-menu > .skill-menu__foot,
.skill-menu > .skill-menu__links {
  flex: 0 0 auto;
}
.skill-menu__list {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  min-height: 60px;
}
.skill-menu__list::-webkit-scrollbar { width: 6px; }
.skill-menu__list::-webkit-scrollbar-track { background: transparent; }
.skill-menu__list::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, .35);
  border-radius: 3px;
}
.skill-menu__list::-webkit-scrollbar-thumb:hover { background: rgba(168, 85, 247, .6); }
/* 底部链接行 */
.skill-menu__links {
  flex: 0 0 auto;
  min-height: 28px;        /* 2026-11-26：固定高度，永不被压缩 */
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px 2px;
  margin-top: 6px;
  border-top: 1px solid var(--studio-border);
}
.skill-menu__link {
  font-size: 11.5px;
  color: var(--studio-dim);
  text-decoration: none;
  cursor: pointer;
  transition: color .18s ease;
  white-space: nowrap;
}
.skill-menu__link:hover { color: #c4b5fd; }
.skill-menu__link.is-ext::after { content: ""; }


/* ===== v905（2026-11-26）：音频「语音模型」选择面板（对标优云）===== */
.ai-model-list { display: flex; flex-direction: column; gap: 6px; padding: 2px; }
.ai-model-card {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  width: 100%; text-align: left;
  padding: 12px 14px;
  border: 1px solid var(--studio-line);
  border-radius: 12px;
  background: transparent;
  color: var(--studio-text);
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .15s ease;
}
.ai-model-card:hover {
  background: var(--studio-fill);
  border-color: var(--studio-accent-line-on);
}
.ai-model-card.is-selected {
  background: linear-gradient(135deg, rgba(139, 92, 246, .22), rgba(109, 40, 217, .16));
  border-color: rgba(168, 85, 247, .65);
  box-shadow: 0 0 0 1px rgba(168, 85, 247, .3), 0 4px 16px rgba(124, 58, 237, .22);
}
.ai-model-card.is-off { opacity: .5; cursor: not-allowed; }
.ai-model-card.is-off:hover { background: transparent; border-color: var(--studio-line); }
.ai-model-card > svg { flex: 0 0 auto; color: #a78bfa; }
.ai-model-card.is-selected > svg { color: #c4b5fd; }
.ai-model-card__main {
  flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; min-width: 0;
}
.ai-model-card__main strong {
  font-size: 13.5px; font-weight: 700; letter-spacing: .2px;
  color: #ede9fe;
}
.ai-model-card.is-off .ai-model-card__main strong { color: var(--studio-dim); }
.ai-model-card__main small {
  font-size: 11px; color: var(--studio-dim); line-height: 1.4;
}
.ai-model-card__tag {
  flex: 0 0 auto; font-style: normal;
  font-size: 11px; line-height: 1;
  padding: 4px 8px; border-radius: 6px;
  color: #ddd6fe;
  background: rgba(139, 92, 246, .22);
  border: 1px solid rgba(168, 85, 247, .4);
  white-space: nowrap;
}


/* ===== v906（2026-11-26）：官方风格「设置」齿轮面板 ===== */
.toolbar-gear {
  padding: 6px 8px !important;
  min-width: 34px;
  justify-content: center;
}
.toolbar-gear svg { width: 16px; height: 16px; }

.gear-panel {
  width: 300px !important;
  min-width: 300px !important;
  padding: 10px !important;
  display: none;
  flex-direction: column;
  gap: 2px;
  box-sizing: border-box;
  overflow: visible !important;   /* 2026-11-26：气泡可溢出面板 */
}
.toolbar-menu.is-open .gear-panel { display: flex; }

/* 行：左侧文字 + 右侧开关 */
.gear-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 8px;
  border-radius: 8px;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  overflow: visible;        /* 2026-11-26：气泡不能被裁 */
}
.gear-row:hover { background: var(--studio-fill); }

/* 文字：不换行、不压缩 */
.gear-row__label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--studio-text);
  font-weight: 500;
  white-space: nowrap;
  flex: 1 1 auto;
  min-width: 0;
  /* 2026-11-26：去掉 overflow:hidden —— 它会裁掉 ? 气泡 */
  overflow: visible;
}
.gear-badge {
  font-style: normal;
  font-size: 10.5px;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 4px;
  color: #c4b5fd;
  background: rgba(139, 92, 246, .22);
  border: 1px solid rgba(168, 85, 247, .35);
  white-space: nowrap;
  flex: 0 0 auto;
}
.gear-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1px solid var(--studio-border);
  color: var(--studio-dim);
  font-size: 10px;
  font-style: normal;
  cursor: help;
  flex: 0 0 auto;
  position: relative;
}
.gear-help:hover { color: #c4b5fd; border-color: rgba(168,85,247,.5); }

/* 开关：固定尺寸，绝不拉伸 */
.gear-switch {
  position: relative;
  width: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  height: 22px !important;
  flex: 0 0 40px !important;
  border-radius: 999px;
  border: 1px solid var(--studio-border);
  background: rgba(255,255,255,.08);
  padding: 0;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
  box-sizing: border-box;
}
.gear-switch i {
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #d1d5db;
  transition: transform .2s ease, background .2s ease;
  display: block;
}
.gear-switch.is-on {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  border-color: rgba(168,85,247,.7);
}
.gear-switch.is-on i {
  transform: translateX(18px);
  background: #fff;
}

.gear-divider {
  height: 1px;
  background: var(--studio-border);
  margin: 4px 8px;
  flex: 0 0 auto;
}
.gear-start {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 9px 10px !important;
  border-radius: 8px;
  background: transparent;
  color: var(--studio-text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
  box-sizing: border-box;
}
.gear-start:hover { background: var(--studio-fill); color: #c4b5fd; }
.gear-start span { opacity: .7; font-size: 15px; flex: 0 0 auto; }

/* ===== v907（2026-11-26）：齿轮 help 悬停气泡（官方样式）===== */
.gear-help {
  position: relative;
}
.gear-help[data-tip]:hover::after {
  content: attr(data-tip);
  position: fixed;
  width: 260px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #2a2a33;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 8px 24px rgba(0,0,0,.55);
  color: #e5e7eb;
  font-size: 12px;
  line-height: 1.7;
  font-weight: 400;
  white-space: normal;
  word-break: break-word;
  text-align: left;
  z-index: 9999;
  pointer-events: none;
  /* 位置由 JS 通过 --tip-x / --tip-y 提供 */
  top: var(--tip-y, 0);
  left: var(--tip-x, 0);
}

/* ===== 预约开始时间弹窗 ===== */
.sched-mask {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.62);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 300;
}
.sched-mask.is-open { display: flex; }

.sched-box {
  width: 380px;
  max-width: 92vw;
  background: #1c1c22;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 22px 20px 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,.6);
}
.sched-box h3 {
  margin: 0 0 18px;
  font-size: 16px;
  font-weight: 700;
  color: #f3f4f6;
}
.sched-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.sched-head b { font-size: 14px; color: #e5e7eb; }
.sched-nav {
  background: none;
  border: 0;
  color: #9ca3af;
  font-size: 18px;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 6px;
}
.sched-nav:hover { background: rgba(255,255,255,.08); color: #e5e7eb; }

.sched-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 6px;
}
.sched-week span {
  text-align: center;
  font-size: 11.5px;
  color: #6b7280;
  padding: 4px 0;
}
.sched-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(6, 34px);   /* 2026-11-26：固定 6 行，切换月份不抖动 */
  gap: 2px;
  margin-bottom: 14px;
  min-height: 214px;                      /* 兜底：6×34+5×2 */
}
.sched-day {
  /* 2026-11-26：去掉 aspect-ratio，改由 grid-template-rows 固定高度 */
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 13px;
  color: #d1d5db;
  background: none;
  border: 0;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.sched-day:hover:not(:disabled) { background: rgba(139,92,246,.18); }
.sched-day.is-other { color: #4b5563; }
.sched-day.is-today { color: #c4b5fd; font-weight: 700; }
.sched-day.is-selected {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  color: #fff;
  font-weight: 700;
}
.sched-day:disabled { opacity: .28; cursor: not-allowed; }

.sched-time {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 2px 4px;
  border-top: 1px solid rgba(255,255,255,.08);
  margin-bottom: 14px;
}
.sched-time__in {
  display: flex;
  align-items: center;
  gap: 4px;
}
.sched-time__in input {
  width: 62px;           /* 2026-11-26：46→62，两位数字不再被截断 */
  min-width: 62px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  padding: 6px 8px;
  color: #f3f4f6;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.sched-time__in input:focus { outline: none; border-color: rgba(168,85,247,.7); }
.sched-time__in input::-webkit-outer-spin-button,
.sched-time__in input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sched-time__in input { -moz-appearance: textfield; appearance: textfield; }
.sched-time__in span { color: #9ca3af; font-size: 15px; font-weight: 600; }
.sched-now {
  background: none;
  border: 0;
  color: #a78bfa;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
}
.sched-now:hover { background: rgba(139,92,246,.15); }

.sched-foot {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.sched-foot button {
  padding: 9px 22px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,.14);
  background: transparent;
  color: #d1d5db;
  transition: background .15s ease, border-color .15s ease;
}
.sched-foot button:hover { background: rgba(255,255,255,.07); }
.sched-foot button.is-primary {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  border-color: transparent;
  color: #fff;
}
.sched-foot button.is-primary:hover { filter: brightness(1.1); }
