topic-to-video.component.css 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884
  1. /* 主题生视频 (t2v-*) 页面专属样式
  2. *
  3. * 共性 UI 已迁移至 app.css 的 .pl-* 共享层。
  4. * 本文件仅保留:
  5. * - 中栏更宽 1fr 1.4fr 1fr 网格变体
  6. * - 主题生视频 pill(渐变紫蓝)
  7. * - 分镜卡片 .t2v-scene-item
  8. * - 阶段时间轴 .t2v-stage-list(带 pulse 动效)
  9. * - 主题生视频 CTA 渐变(紫蓝彩虹)覆盖 .pl-cta-primary
  10. * - 进度条彩虹渐变覆盖
  11. */
  12. /* —— 中栏更宽:覆盖 .pl-grid 列宽 —— */
  13. .t2v-page.pl-page .pl-grid { grid-template-columns: 1fr 1.4fr 1fr; }
  14. @media (max-width: 1280px) { .t2v-page.pl-page .pl-grid { grid-template-columns: 1fr 1fr; } }
  15. @media (max-width: 768px) { .t2v-page.pl-page .pl-grid { grid-template-columns: 1fr; } }
  16. /* —— pill 渐变变体 —— */
  17. .t2v-page .pl-pill {
  18. background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(168, 85, 247, 0.12));
  19. }
  20. .app-container.theme-night .t2v-page .pl-pill {
  21. background: linear-gradient(135deg, rgba(96, 165, 250, 0.16), rgba(216, 180, 254, 0.16));
  22. }
  23. /* —— CTA 紫蓝彩虹渐变(覆盖 .pl-cta-primary) —— */
  24. .t2v-page .pl-cta-primary:not(:disabled) {
  25. background: linear-gradient(135deg, #2563eb 0%, #7c3aed 50%, #c026d3 100%);
  26. background-size: 200% 100%;
  27. box-shadow: 0 10px 28px rgba(124, 58, 237, 0.28);
  28. transition: transform 0.15s ease, background-position 0.4s ease, box-shadow 0.15s ease;
  29. }
  30. .t2v-page .pl-cta-primary:hover:not(:disabled) {
  31. background-position: 100% 0;
  32. box-shadow: 0 14px 34px rgba(124, 58, 237, 0.36);
  33. }
  34. /* —— 进度填充也用彩虹渐变 —— */
  35. .t2v-page .pl-progress__fill {
  36. background: linear-gradient(135deg, #2563eb 0%, #7c3aed 50%, #c026d3 100%);
  37. }
  38. .t2v-tip {
  39. margin: 6px 0 0;
  40. font-size: 11.5px;
  41. color: #94a3b8;
  42. }
  43. /* ============================================================
  44. * t2v 自有的细节(substep 平铺 / segment 满宽已在 app.css .pl-page 共享层处理)
  45. * ============================================================ */
  46. /* 子选项小标签(如「单段时长」「视频质量」「时长 / 画质」),与 h4 形成层级差 */
  47. .t2v-sublabel {
  48. display: block;
  49. margin: 12px 0 6px;
  50. font-family: var(--font-mono, monospace);
  51. font-size: 10px;
  52. font-weight: 700;
  53. letter-spacing: 0.1em;
  54. text-transform: uppercase;
  55. color: rgba(15, 23, 42, 0.55);
  56. }
  57. .t2v-sublabel:first-child { margin-top: 4px; }
  58. .app-container.theme-night .t2v-sublabel { color: rgba(248, 250, 252, 0.55); }
  59. /* segment 后接 sublabel 时拉开节奏(segment+segment 已由 .pl-page 共享层覆盖) */
  60. .t2v-page .dh-substep .dh-segment + .t2v-sublabel { margin-top: 10px; }
  61. /* textarea 与字数计数器贴近 */
  62. .t2v-page .dh-textarea + .dh-field__counter { margin-top: 4px; }
  63. /* dh-substep 头部 tip 颜色更柔和、字号一致 */
  64. .t2v-page .dh-substep__head .t2v-tip { margin: 0; font-size: 11px; }
  65. /* 分镜列表 */
  66. .t2v-empty {
  67. padding: 32px 16px;
  68. text-align: center;
  69. color: #94a3b8;
  70. font-size: 13px;
  71. line-height: 1.7;
  72. }
  73. .t2v-empty strong { color: #2563eb; }
  74. .app-container.theme-night .t2v-empty strong { color: #93c5fd; }
  75. .t2v-scene-list {
  76. list-style: none;
  77. margin: 8px 0 0;
  78. padding: 0;
  79. display: flex;
  80. flex-direction: column;
  81. gap: 10px;
  82. max-height: 600px;
  83. overflow-y: auto;
  84. }
  85. .t2v-scene-item {
  86. padding: 10px;
  87. border-radius: 10px;
  88. border: 1px solid rgba(37, 99, 235, 0.12);
  89. background: rgba(15, 23, 42, 0.03);
  90. }
  91. .app-container.theme-night .t2v-scene-item {
  92. background: rgba(255, 255, 255, 0.03);
  93. border-color: rgba(96, 165, 250, 0.18);
  94. }
  95. .t2v-scene-item__head {
  96. display: flex;
  97. justify-content: space-between;
  98. align-items: center;
  99. margin-bottom: 8px;
  100. }
  101. .t2v-scene-item__seq {
  102. font-size: 12px;
  103. font-weight: 700;
  104. color: #2563eb;
  105. }
  106. .app-container.theme-night .t2v-scene-item__seq { color: #93c5fd; }
  107. .t2v-scene-item__state {
  108. font-size: 11px;
  109. font-weight: 600;
  110. color: #64748b;
  111. }
  112. .t2v-scene-item__state.is-pending { color: #2563eb; }
  113. .t2v-scene-item__state.is-done { color: #047857; }
  114. .t2v-scene-item__state.is-failed { color: #b91c1c; }
  115. .app-container.theme-night .t2v-scene-item__state.is-pending { color: #93c5fd; }
  116. .app-container.theme-night .t2v-scene-item__state.is-done { color: #6ee7b7; }
  117. .app-container.theme-night .t2v-scene-item__state.is-failed { color: #fca5a5; }
  118. .t2v-scene-item__body {
  119. display: grid;
  120. grid-template-columns: 110px 1fr;
  121. gap: 10px;
  122. }
  123. .t2v-scene-item__img {
  124. width: 110px;
  125. height: 70px;
  126. object-fit: cover;
  127. border-radius: 8px;
  128. background: #000;
  129. }
  130. .t2v-scene-item__img--ph {
  131. background: repeating-linear-gradient(45deg, rgba(148, 163, 184, 0.15), rgba(148, 163, 184, 0.15) 6px, rgba(148, 163, 184, 0.05) 6px, rgba(148, 163, 184, 0.05) 12px);
  132. }
  133. .t2v-scene-item__text { min-width: 0; }
  134. .t2v-scene-item__narration {
  135. margin: 0;
  136. font-size: 13px;
  137. font-weight: 500;
  138. line-height: 1.5;
  139. color: #0f172a;
  140. }
  141. .app-container.theme-night .t2v-scene-item__narration { color: #f1f5f9; }
  142. .t2v-scene-item__prompt {
  143. margin: 6px 0 0;
  144. font-size: 11.5px;
  145. color: #94a3b8;
  146. font-style: italic;
  147. white-space: nowrap;
  148. overflow: hidden;
  149. text-overflow: ellipsis;
  150. }
  151. .t2v-scene-item__error {
  152. margin: 6px 0 0;
  153. font-size: 11.5px;
  154. color: #b91c1c;
  155. }
  156. /* (操作区/进度文本/错误/结果均使用 .pl-* 共享类) */
  157. /* —— 阶段清单(带 pulse 动效) —— */
  158. .t2v-stage-list {
  159. list-style: none;
  160. margin: 12px 0 0;
  161. padding: 12px;
  162. display: flex;
  163. flex-direction: column;
  164. gap: 8px;
  165. border-radius: 10px;
  166. background: rgba(15, 23, 42, 0.03);
  167. border: 1px solid rgba(37, 99, 235, 0.1);
  168. }
  169. .app-container.theme-night .t2v-stage-list {
  170. background: rgba(255, 255, 255, 0.03);
  171. border-color: rgba(96, 165, 250, 0.15);
  172. }
  173. .t2v-stage-list li {
  174. display: flex;
  175. align-items: center;
  176. gap: 8px;
  177. font-size: 12.5px;
  178. color: #94a3b8;
  179. }
  180. .t2v-stage-list__dot {
  181. width: 8px;
  182. height: 8px;
  183. border-radius: 50%;
  184. background: rgba(148, 163, 184, 0.4);
  185. flex-shrink: 0;
  186. }
  187. .t2v-stage-list li.is-active {
  188. color: #2563eb;
  189. font-weight: 600;
  190. }
  191. .t2v-stage-list li.is-active .t2v-stage-list__dot {
  192. background: #2563eb;
  193. box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
  194. animation: t2v-pulse 1.2s infinite;
  195. }
  196. .t2v-stage-list li.is-done {
  197. color: #047857;
  198. }
  199. .t2v-stage-list li.is-done .t2v-stage-list__dot { background: #10b981; }
  200. .app-container.theme-night .t2v-stage-list li.is-active { color: #93c5fd; }
  201. .app-container.theme-night .t2v-stage-list li.is-active .t2v-stage-list__dot { background: #60a5fa; box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.25); }
  202. .app-container.theme-night .t2v-stage-list li.is-done { color: #6ee7b7; }
  203. @keyframes t2v-pulse {
  204. 0%, 100% { box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2); }
  205. 50% { box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.08); }
  206. }
  207. .dh-field__counter {
  208. margin-top: 4px;
  209. text-align: right;
  210. font-size: 11px;
  211. color: #94a3b8;
  212. }
  213. /* —— 分镜卡片右上角的产出介质徽标 —— */
  214. .t2v-scene-item__media {
  215. margin-left: auto;
  216. font-size: 14px;
  217. letter-spacing: 2px;
  218. opacity: 0.85;
  219. }
  220. /* —— 结果区:四态片段组合统计 —— */
  221. .t2v-case-summary {
  222. display: flex;
  223. align-items: center;
  224. flex-wrap: wrap;
  225. gap: 6px;
  226. margin: 10px 0 4px;
  227. font-size: 12px;
  228. color: #64748b;
  229. }
  230. .t2v-case-summary__label { font-weight: 600; }
  231. .t2v-case-chip {
  232. padding: 3px 8px;
  233. border-radius: 999px;
  234. background: rgba(37, 99, 235, 0.08);
  235. color: #1d4ed8;
  236. font-weight: 600;
  237. font-size: 11.5px;
  238. cursor: help;
  239. }
  240. .app-container.theme-night .t2v-case-summary { color: #94a3b8; }
  241. .app-container.theme-night .t2v-case-chip {
  242. background: rgba(96, 165, 250, 0.15);
  243. color: #93c5fd;
  244. }
  245. /* ====================================================================
  246. * 手动模式样式
  247. * ==================================================================== */
  248. /* 手动模式卡片:纵向布局,区别于快速模式的横向只读卡 */
  249. .t2v-scene-item--manual {
  250. display: flex;
  251. flex-direction: column;
  252. gap: 10px;
  253. }
  254. /* 卡片右上角删除按钮 */
  255. .t2v-scene-item__del {
  256. margin-left: auto;
  257. width: 24px;
  258. height: 24px;
  259. border: 1px solid rgba(148, 163, 184, 0.3);
  260. background: transparent;
  261. color: #94a3b8;
  262. border-radius: 6px;
  263. font-size: 12px;
  264. cursor: pointer;
  265. transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
  266. }
  267. .t2v-scene-item__del:hover:not(:disabled) {
  268. background: rgba(239, 68, 68, 0.1);
  269. border-color: rgba(239, 68, 68, 0.5);
  270. color: #ef4444;
  271. }
  272. .t2v-scene-item__del:disabled {
  273. opacity: 0.4;
  274. cursor: not-allowed;
  275. }
  276. /* prompt 编辑框:紧凑版 */
  277. .t2v-scene-item__edit {
  278. width: 100%;
  279. font-size: 12.5px;
  280. line-height: 1.5;
  281. min-height: 56px;
  282. resize: vertical;
  283. }
  284. /* 手动模式卡片的预览区:单列纵向(覆盖快速模式的 grid 布局) */
  285. .t2v-scene-item--manual .t2v-scene-item__body {
  286. display: block;
  287. }
  288. .t2v-scene-item--manual .t2v-scene-item__img {
  289. width: 100%;
  290. height: auto; /* 关键:覆盖基础规则的 height: 70px,让 aspect-ratio 生效 */
  291. max-height: 360px;
  292. aspect-ratio: 16 / 9;
  293. object-fit: contain; /* contain 而非 cover,保留全图不裁剪 */
  294. border-radius: 8px;
  295. background: #0f172a;
  296. display: block;
  297. cursor: zoom-in;
  298. }
  299. .t2v-scene-item--manual video.t2v-scene-item__img {
  300. cursor: default; /* video 已有 controls,无需 zoom-in */
  301. object-fit: contain;
  302. }
  303. /* 按钮组:横向排列,自动换行 */
  304. .t2v-scene-item__actions {
  305. display: flex;
  306. flex-wrap: wrap;
  307. gap: 8px;
  308. }
  309. .t2v-scene-item__actions .dh-chip-btn.is-primary {
  310. background: linear-gradient(135deg, #7c3aed, #2563eb);
  311. color: #fff;
  312. border: none;
  313. }
  314. .t2v-scene-item__actions .dh-chip-btn.is-primary:hover:not(:disabled) {
  315. filter: brightness(1.1);
  316. }
  317. .t2v-scene-item__actions .dh-chip-btn:disabled {
  318. opacity: 0.4;
  319. cursor: not-allowed;
  320. }
  321. /* 添加分镜大按钮 */
  322. .t2v-add-scene {
  323. width: 100%;
  324. margin-top: 12px;
  325. padding: 12px;
  326. border: 2px dashed rgba(37, 99, 235, 0.4);
  327. background: rgba(37, 99, 235, 0.04);
  328. color: #2563eb;
  329. border-radius: 10px;
  330. font-size: 13px;
  331. font-weight: 600;
  332. cursor: pointer;
  333. transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
  334. }
  335. .t2v-add-scene:hover:not(:disabled) {
  336. background: rgba(37, 99, 235, 0.08);
  337. border-color: rgba(37, 99, 235, 0.7);
  338. }
  339. .t2v-add-scene:disabled {
  340. opacity: 0.4;
  341. cursor: not-allowed;
  342. }
  343. .app-container.theme-night .t2v-add-scene {
  344. color: #93c5fd;
  345. border-color: rgba(96, 165, 250, 0.4);
  346. background: rgba(96, 165, 250, 0.06);
  347. }
  348. .app-container.theme-night .t2v-add-scene:hover:not(:disabled) {
  349. background: rgba(96, 165, 250, 0.12);
  350. }
  351. /* ============================================================
  352. * 顶部模式切换条(独立横向 2 卡)
  353. * ============================================================ */
  354. .t2v-mode-bar {
  355. display: grid;
  356. grid-template-columns: 1fr 1fr;
  357. gap: 12px;
  358. margin: 0 0 18px;
  359. }
  360. .t2v-mode-bar__btn {
  361. display: flex;
  362. flex-direction: column;
  363. align-items: flex-start;
  364. gap: 4px;
  365. padding: 14px 16px;
  366. border: 1px solid rgba(15, 23, 42, 0.12);
  367. background: #fff;
  368. border-radius: 12px;
  369. cursor: pointer;
  370. text-align: left;
  371. transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background-color 160ms ease;
  372. }
  373. .t2v-mode-bar__btn:hover:not(:disabled) {
  374. border-color: rgba(124, 58, 237, 0.35);
  375. transform: translateY(-1px);
  376. }
  377. .t2v-mode-bar__btn:disabled {
  378. opacity: 0.55;
  379. cursor: not-allowed;
  380. }
  381. .t2v-mode-bar__btn.is-active {
  382. border-color: #7c3aed;
  383. background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(168, 85, 247, 0.06));
  384. box-shadow: 0 4px 16px rgba(124, 58, 237, 0.12);
  385. }
  386. .t2v-mode-bar__title {
  387. font-family: var(--font-display, inherit);
  388. font-size: 14px;
  389. font-weight: 700;
  390. color: #0f172a;
  391. }
  392. .t2v-mode-bar__sub {
  393. font-size: 11.5px;
  394. color: rgba(15, 23, 42, 0.55);
  395. letter-spacing: -0.005em;
  396. }
  397. .app-container.theme-night .t2v-mode-bar__btn {
  398. background: rgba(255, 255, 255, 0.04);
  399. border-color: rgba(255, 255, 255, 0.12);
  400. }
  401. .app-container.theme-night .t2v-mode-bar__btn.is-active {
  402. border-color: rgba(216, 180, 254, 0.55);
  403. background: linear-gradient(135deg, rgba(96, 165, 250, 0.12), rgba(216, 180, 254, 0.12));
  404. }
  405. .app-container.theme-night .t2v-mode-bar__title { color: #f8fafc; }
  406. .app-container.theme-night .t2v-mode-bar__sub { color: rgba(248, 250, 252, 0.62); }
  407. /* ============================================================
  408. * 卡内 label("画面描述" "图生视频模式")
  409. * ============================================================ */
  410. .t2v-card-label {
  411. display: block;
  412. font-family: var(--font-mono, monospace);
  413. font-size: 10px;
  414. font-weight: 700;
  415. letter-spacing: 0.1em;
  416. text-transform: uppercase;
  417. color: rgba(15, 23, 42, 0.55);
  418. margin: 8px 0 6px;
  419. }
  420. .app-container.theme-night .t2v-card-label {
  421. color: rgba(248, 250, 252, 0.55);
  422. }
  423. .t2v-toggle-row {
  424. display: flex;
  425. align-items: center;
  426. gap: 8px;
  427. font-size: 12px;
  428. color: rgba(15, 23, 42, 0.72);
  429. margin-bottom: 10px;
  430. }
  431. .t2v-toggle-row input {
  432. width: 16px;
  433. height: 16px;
  434. accent-color: #7c3aed;
  435. }
  436. .t2v-bible-grid,
  437. .t2v-continuity-fields {
  438. display: grid;
  439. grid-template-columns: 1fr;
  440. gap: 8px;
  441. }
  442. .t2v-bible-grid .dh-input,
  443. .t2v-continuity-fields .dh-input {
  444. min-width: 0;
  445. }
  446. .t2v-bible-notes {
  447. margin-top: 8px;
  448. }
  449. .t2v-bible-refs {
  450. margin-top: 12px;
  451. padding: 10px;
  452. background: rgba(124, 58, 237, 0.06);
  453. border: 1px solid rgba(124, 58, 237, 0.18);
  454. border-radius: 8px;
  455. }
  456. .t2v-bible-refs__head {
  457. display: flex;
  458. align-items: baseline;
  459. gap: 8px;
  460. margin-bottom: 8px;
  461. flex-wrap: wrap;
  462. }
  463. .t2v-bible-refs__title {
  464. font-size: 12px;
  465. font-weight: 600;
  466. color: #6d28d9;
  467. }
  468. .t2v-bible-refs__grid {
  469. display: grid;
  470. grid-template-columns: repeat(3, 1fr);
  471. gap: 10px;
  472. }
  473. .t2v-bible-ref {
  474. display: flex;
  475. flex-direction: column;
  476. gap: 4px;
  477. min-width: 0;
  478. }
  479. .t2v-bible-ref__label {
  480. font-size: 11px;
  481. color: rgba(15, 23, 42, 0.7);
  482. text-align: center;
  483. }
  484. .t2v-bible-ref__box {
  485. position: relative;
  486. aspect-ratio: 1 / 1;
  487. width: 100%;
  488. border-radius: 6px;
  489. overflow: hidden;
  490. border: 1px dashed rgba(124, 58, 237, 0.32);
  491. background: rgba(124, 58, 237, 0.04);
  492. }
  493. .t2v-bible-ref__box.is-empty {
  494. display: flex;
  495. align-items: center;
  496. justify-content: center;
  497. }
  498. .t2v-bible-ref__box a {
  499. display: block;
  500. width: 100%;
  501. height: 100%;
  502. text-decoration: none;
  503. }
  504. .t2v-bible-ref__box img {
  505. width: 100%;
  506. height: 100%;
  507. object-fit: cover;
  508. display: block;
  509. transition: transform 0.15s ease;
  510. }
  511. .t2v-bible-ref__box a:hover img {
  512. transform: scale(1.04);
  513. }
  514. .t2v-bible-ref__add {
  515. width: 100%;
  516. height: 100%;
  517. display: flex;
  518. align-items: center;
  519. justify-content: center;
  520. cursor: pointer;
  521. font-size: 12px;
  522. color: #6d28d9;
  523. font-weight: 500;
  524. }
  525. .t2v-bible-ref__add:has(input:disabled) {
  526. cursor: not-allowed;
  527. opacity: 0.55;
  528. }
  529. .t2v-bible-ref__clear {
  530. position: absolute;
  531. top: 4px;
  532. right: 4px;
  533. width: 22px;
  534. height: 22px;
  535. border-radius: 50%;
  536. border: none;
  537. background: rgba(0, 0, 0, 0.55);
  538. color: #fff;
  539. font-size: 14px;
  540. line-height: 1;
  541. display: flex;
  542. align-items: center;
  543. justify-content: center;
  544. cursor: pointer;
  545. transition: background 0.15s ease;
  546. }
  547. .t2v-bible-ref__clear:hover:not(:disabled) {
  548. background: rgba(220, 38, 38, 0.85);
  549. }
  550. .t2v-bible-ref__clear:disabled {
  551. cursor: not-allowed;
  552. opacity: 0.4;
  553. }
  554. .t2v-bible-refs__error {
  555. margin-top: 8px;
  556. font-size: 12px;
  557. color: #dc2626;
  558. }
  559. .t2v-continuity-fields {
  560. margin-top: 8px;
  561. }
  562. .t2v-shot-controls {
  563. display: grid;
  564. gap: 8px;
  565. margin-top: 10px;
  566. }
  567. .t2v-inherit-row {
  568. display: flex;
  569. flex-wrap: wrap;
  570. gap: 10px;
  571. font-size: 12px;
  572. color: rgba(15, 23, 42, 0.72);
  573. }
  574. .t2v-inherit-row label {
  575. display: inline-flex;
  576. align-items: center;
  577. gap: 5px;
  578. }
  579. .t2v-inherit-row input {
  580. accent-color: #7c3aed;
  581. }
  582. .app-container.theme-night .t2v-toggle-row {
  583. color: rgba(248, 250, 252, 0.72);
  584. }
  585. .app-container.theme-night .t2v-inherit-row {
  586. color: rgba(248, 250, 252, 0.72);
  587. }
  588. /* ============================================================
  589. * 视频模式 segment(带副标题)
  590. * ============================================================ */
  591. .t2v-vmode-seg .dh-segment__item {
  592. flex-direction: column;
  593. align-items: center;
  594. gap: 2px;
  595. padding: 8px 12px;
  596. line-height: 1.3;
  597. }
  598. .t2v-vmode-hint {
  599. display: block;
  600. font-size: 10px;
  601. font-weight: 400;
  602. color: rgba(15, 23, 42, 0.5);
  603. letter-spacing: -0.005em;
  604. }
  605. .t2v-vmode-seg .dh-segment__item.is-active .t2v-vmode-hint {
  606. color: rgba(124, 58, 237, 0.8);
  607. }
  608. .app-container.theme-night .t2v-vmode-hint { color: rgba(248, 250, 252, 0.5); }
  609. .app-container.theme-night .t2v-vmode-seg .dh-segment__item.is-active .t2v-vmode-hint { color: rgba(216, 180, 254, 0.9); }
  610. /* ============================================================
  611. * 帧位 grid(首帧 + 可选尾帧)
  612. * ============================================================ */
  613. .t2v-frames {
  614. display: grid;
  615. grid-template-columns: 1fr;
  616. gap: 10px;
  617. margin: 10px 0 6px;
  618. }
  619. .t2v-frames--dual {
  620. grid-template-columns: 1fr 1fr;
  621. }
  622. @media (max-width: 900px) {
  623. .t2v-frames--dual { grid-template-columns: 1fr; }
  624. }
  625. .t2v-frame-slot {
  626. display: flex;
  627. flex-direction: column;
  628. gap: 6px;
  629. padding: 10px;
  630. border: 1px solid rgba(15, 23, 42, 0.08);
  631. border-radius: 10px;
  632. background: rgba(15, 23, 42, 0.02);
  633. }
  634. .t2v-frame-slot__head {
  635. display: flex;
  636. align-items: center;
  637. justify-content: space-between;
  638. gap: 8px;
  639. }
  640. .t2v-frame-slot__title {
  641. font-family: var(--font-mono, monospace);
  642. font-size: 10px;
  643. font-weight: 700;
  644. letter-spacing: 0.12em;
  645. text-transform: uppercase;
  646. color: rgba(15, 23, 42, 0.72);
  647. }
  648. .t2v-frame-slot__source {
  649. font-family: var(--font-mono, monospace);
  650. font-size: 9px;
  651. font-weight: 700;
  652. letter-spacing: 0.06em;
  653. padding: 2px 6px;
  654. border-radius: 999px;
  655. background: rgba(37, 99, 235, 0.1);
  656. color: #1d4ed8;
  657. }
  658. .t2v-frame-slot__source.is-upload {
  659. background: rgba(16, 185, 129, 0.12);
  660. color: #047857;
  661. }
  662. .t2v-frame-slot__thumb {
  663. position: relative;
  664. width: 100%;
  665. aspect-ratio: 16 / 9;
  666. border-radius: 8px;
  667. overflow: hidden;
  668. background: rgba(15, 23, 42, 0.04);
  669. border: 1px dashed rgba(15, 23, 42, 0.12);
  670. display: flex;
  671. align-items: center;
  672. justify-content: center;
  673. }
  674. .t2v-frame-slot__thumb a,
  675. .t2v-frame-slot__thumb img {
  676. display: block;
  677. width: 100%;
  678. height: 100%;
  679. object-fit: cover;
  680. border-radius: 8px;
  681. }
  682. .t2v-frame-slot__ph {
  683. font-size: 11px;
  684. color: rgba(15, 23, 42, 0.42);
  685. font-family: var(--font-mono, monospace);
  686. }
  687. .t2v-frame-slot__loading {
  688. display: flex;
  689. align-items: center;
  690. gap: 8px;
  691. font-size: 12px;
  692. color: rgba(15, 23, 42, 0.62);
  693. font-family: var(--font-mono, monospace);
  694. }
  695. .t2v-spin {
  696. width: 14px;
  697. height: 14px;
  698. border: 2px solid rgba(124, 58, 237, 0.25);
  699. border-top-color: #7c3aed;
  700. border-radius: 50%;
  701. animation: t2v-spin 0.7s linear infinite;
  702. }
  703. @keyframes t2v-spin {
  704. to { transform: rotate(360deg); }
  705. }
  706. .t2v-frame-slot__ops {
  707. display: flex;
  708. flex-wrap: wrap;
  709. gap: 4px;
  710. }
  711. .t2v-frame-slot__ops .dh-chip-btn {
  712. flex: 1;
  713. min-width: 0;
  714. padding: 6px 8px;
  715. font-size: 11.5px;
  716. }
  717. .t2v-frame-slot__ops .dh-chip-btn[title="清空首帧"],
  718. .t2v-frame-slot__ops .dh-chip-btn[title="清空尾帧"] {
  719. flex: 0 0 28px;
  720. }
  721. .app-container.theme-night .t2v-frame-slot {
  722. background: rgba(255, 255, 255, 0.03);
  723. border-color: rgba(255, 255, 255, 0.08);
  724. }
  725. .app-container.theme-night .t2v-frame-slot__title { color: rgba(248, 250, 252, 0.75); }
  726. .app-container.theme-night .t2v-frame-slot__thumb {
  727. background: rgba(255, 255, 255, 0.04);
  728. border-color: rgba(255, 255, 255, 0.12);
  729. }
  730. .app-container.theme-night .t2v-frame-slot__ph,
  731. .app-container.theme-night .t2v-frame-slot__loading { color: rgba(248, 250, 252, 0.55); }
  732. .app-container.theme-night .t2v-frame-slot__source {
  733. background: rgba(96, 165, 250, 0.16);
  734. color: #93c5fd;
  735. }
  736. .app-container.theme-night .t2v-frame-slot__source.is-upload {
  737. background: rgba(52, 211, 153, 0.16);
  738. color: #6ee7b7;
  739. }
  740. /* ============================================================
  741. * 视频预览(已生成时显示在卡片中)
  742. * ============================================================ */
  743. .t2v-video-preview {
  744. margin-top: 10px;
  745. border-radius: 10px;
  746. overflow: hidden;
  747. background: #000;
  748. }
  749. .t2v-video-preview video {
  750. width: 100%;
  751. display: block;
  752. max-height: 320px;
  753. object-fit: contain;
  754. background: #000;
  755. }
  756. /* ============================================================
  757. * 右栏:手动模式分镜状态摘要
  758. * ============================================================ */
  759. .t2v-scene-summary {
  760. display: flex;
  761. flex-wrap: wrap;
  762. gap: 6px;
  763. }
  764. .t2v-scene-summary__chip {
  765. display: inline-flex;
  766. align-items: center;
  767. gap: 4px;
  768. padding: 4px 10px;
  769. border: 1px solid rgba(15, 23, 42, 0.12);
  770. border-radius: 999px;
  771. font-size: 11.5px;
  772. color: rgba(15, 23, 42, 0.72);
  773. background: #fff;
  774. }
  775. .t2v-scene-summary__chip strong {
  776. font-family: var(--font-mono, monospace);
  777. font-weight: 700;
  778. color: #0f172a;
  779. }
  780. .t2v-scene-summary__chip.is-ok {
  781. background: rgba(16, 185, 129, 0.08);
  782. border-color: rgba(16, 185, 129, 0.32);
  783. color: #047857;
  784. }
  785. .t2v-scene-summary__chip.is-ok strong { color: #047857; }
  786. .app-container.theme-night .t2v-scene-summary__chip {
  787. background: rgba(255, 255, 255, 0.04);
  788. border-color: rgba(255, 255, 255, 0.12);
  789. color: rgba(248, 250, 252, 0.78);
  790. }
  791. .app-container.theme-night .t2v-scene-summary__chip strong { color: #f8fafc; }
  792. .app-container.theme-night .t2v-scene-summary__chip.is-ok {
  793. background: rgba(52, 211, 153, 0.16);
  794. border-color: rgba(52, 211, 153, 0.42);
  795. color: #6ee7b7;
  796. }
  797. .app-container.theme-night .t2v-scene-summary__chip.is-ok strong { color: #6ee7b7; }
  798. .t2v-template-panel {
  799. display: grid;
  800. grid-template-columns: minmax(0, 1fr) 360px;
  801. gap: 14px;
  802. margin: 16px 0;
  803. border: 1px solid var(--border-color);
  804. border-radius: 8px;
  805. background: var(--bg-secondary);
  806. padding: 14px;
  807. }
  808. .t2v-template-panel__title {
  809. color: var(--primary-color);
  810. font-size: 13px;
  811. font-weight: 700;
  812. margin-bottom: 8px;
  813. }
  814. .t2v-template-panel__controls,
  815. .t2v-template-panel__save {
  816. display: flex;
  817. align-items: center;
  818. gap: 10px;
  819. }
  820. .t2v-template-panel select {
  821. min-height: 40px;
  822. flex: 1;
  823. border: 1px solid var(--border-color);
  824. border-radius: 8px;
  825. background: var(--bg-primary);
  826. color: var(--text-primary);
  827. padding: 0 12px;
  828. }
  829. .t2v-template-panel__message {
  830. margin: 8px 0 0;
  831. color: var(--text-secondary);
  832. font-size: 13px;
  833. }
  834. @media (max-width: 980px) {
  835. .t2v-template-panel {
  836. grid-template-columns: 1fr;
  837. }
  838. .t2v-template-panel__controls,
  839. .t2v-template-panel__save {
  840. align-items: stretch;
  841. flex-direction: column;
  842. }
  843. }