| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884 |
- /* 主题生视频 (t2v-*) 页面专属样式
- *
- * 共性 UI 已迁移至 app.css 的 .pl-* 共享层。
- * 本文件仅保留:
- * - 中栏更宽 1fr 1.4fr 1fr 网格变体
- * - 主题生视频 pill(渐变紫蓝)
- * - 分镜卡片 .t2v-scene-item
- * - 阶段时间轴 .t2v-stage-list(带 pulse 动效)
- * - 主题生视频 CTA 渐变(紫蓝彩虹)覆盖 .pl-cta-primary
- * - 进度条彩虹渐变覆盖
- */
- /* —— 中栏更宽:覆盖 .pl-grid 列宽 —— */
- .t2v-page.pl-page .pl-grid { grid-template-columns: 1fr 1.4fr 1fr; }
- @media (max-width: 1280px) { .t2v-page.pl-page .pl-grid { grid-template-columns: 1fr 1fr; } }
- @media (max-width: 768px) { .t2v-page.pl-page .pl-grid { grid-template-columns: 1fr; } }
- /* —— pill 渐变变体 —— */
- .t2v-page .pl-pill {
- background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(168, 85, 247, 0.12));
- }
- .app-container.theme-night .t2v-page .pl-pill {
- background: linear-gradient(135deg, rgba(96, 165, 250, 0.16), rgba(216, 180, 254, 0.16));
- }
- /* —— CTA 紫蓝彩虹渐变(覆盖 .pl-cta-primary) —— */
- .t2v-page .pl-cta-primary:not(:disabled) {
- background: linear-gradient(135deg, #2563eb 0%, #7c3aed 50%, #c026d3 100%);
- background-size: 200% 100%;
- box-shadow: 0 10px 28px rgba(124, 58, 237, 0.28);
- transition: transform 0.15s ease, background-position 0.4s ease, box-shadow 0.15s ease;
- }
- .t2v-page .pl-cta-primary:hover:not(:disabled) {
- background-position: 100% 0;
- box-shadow: 0 14px 34px rgba(124, 58, 237, 0.36);
- }
- /* —— 进度填充也用彩虹渐变 —— */
- .t2v-page .pl-progress__fill {
- background: linear-gradient(135deg, #2563eb 0%, #7c3aed 50%, #c026d3 100%);
- }
- .t2v-tip {
- margin: 6px 0 0;
- font-size: 11.5px;
- color: #94a3b8;
- }
- /* ============================================================
- * t2v 自有的细节(substep 平铺 / segment 满宽已在 app.css .pl-page 共享层处理)
- * ============================================================ */
- /* 子选项小标签(如「单段时长」「视频质量」「时长 / 画质」),与 h4 形成层级差 */
- .t2v-sublabel {
- display: block;
- margin: 12px 0 6px;
- font-family: var(--font-mono, monospace);
- font-size: 10px;
- font-weight: 700;
- letter-spacing: 0.1em;
- text-transform: uppercase;
- color: rgba(15, 23, 42, 0.55);
- }
- .t2v-sublabel:first-child { margin-top: 4px; }
- .app-container.theme-night .t2v-sublabel { color: rgba(248, 250, 252, 0.55); }
- /* segment 后接 sublabel 时拉开节奏(segment+segment 已由 .pl-page 共享层覆盖) */
- .t2v-page .dh-substep .dh-segment + .t2v-sublabel { margin-top: 10px; }
- /* textarea 与字数计数器贴近 */
- .t2v-page .dh-textarea + .dh-field__counter { margin-top: 4px; }
- /* dh-substep 头部 tip 颜色更柔和、字号一致 */
- .t2v-page .dh-substep__head .t2v-tip { margin: 0; font-size: 11px; }
- /* 分镜列表 */
- .t2v-empty {
- padding: 32px 16px;
- text-align: center;
- color: #94a3b8;
- font-size: 13px;
- line-height: 1.7;
- }
- .t2v-empty strong { color: #2563eb; }
- .app-container.theme-night .t2v-empty strong { color: #93c5fd; }
- .t2v-scene-list {
- list-style: none;
- margin: 8px 0 0;
- padding: 0;
- display: flex;
- flex-direction: column;
- gap: 10px;
- max-height: 600px;
- overflow-y: auto;
- }
- .t2v-scene-item {
- padding: 10px;
- border-radius: 10px;
- border: 1px solid rgba(37, 99, 235, 0.12);
- background: rgba(15, 23, 42, 0.03);
- }
- .app-container.theme-night .t2v-scene-item {
- background: rgba(255, 255, 255, 0.03);
- border-color: rgba(96, 165, 250, 0.18);
- }
- .t2v-scene-item__head {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: 8px;
- }
- .t2v-scene-item__seq {
- font-size: 12px;
- font-weight: 700;
- color: #2563eb;
- }
- .app-container.theme-night .t2v-scene-item__seq { color: #93c5fd; }
- .t2v-scene-item__state {
- font-size: 11px;
- font-weight: 600;
- color: #64748b;
- }
- .t2v-scene-item__state.is-pending { color: #2563eb; }
- .t2v-scene-item__state.is-done { color: #047857; }
- .t2v-scene-item__state.is-failed { color: #b91c1c; }
- .app-container.theme-night .t2v-scene-item__state.is-pending { color: #93c5fd; }
- .app-container.theme-night .t2v-scene-item__state.is-done { color: #6ee7b7; }
- .app-container.theme-night .t2v-scene-item__state.is-failed { color: #fca5a5; }
- .t2v-scene-item__body {
- display: grid;
- grid-template-columns: 110px 1fr;
- gap: 10px;
- }
- .t2v-scene-item__img {
- width: 110px;
- height: 70px;
- object-fit: cover;
- border-radius: 8px;
- background: #000;
- }
- .t2v-scene-item__img--ph {
- 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);
- }
- .t2v-scene-item__text { min-width: 0; }
- .t2v-scene-item__narration {
- margin: 0;
- font-size: 13px;
- font-weight: 500;
- line-height: 1.5;
- color: #0f172a;
- }
- .app-container.theme-night .t2v-scene-item__narration { color: #f1f5f9; }
- .t2v-scene-item__prompt {
- margin: 6px 0 0;
- font-size: 11.5px;
- color: #94a3b8;
- font-style: italic;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
- .t2v-scene-item__error {
- margin: 6px 0 0;
- font-size: 11.5px;
- color: #b91c1c;
- }
- /* (操作区/进度文本/错误/结果均使用 .pl-* 共享类) */
- /* —— 阶段清单(带 pulse 动效) —— */
- .t2v-stage-list {
- list-style: none;
- margin: 12px 0 0;
- padding: 12px;
- display: flex;
- flex-direction: column;
- gap: 8px;
- border-radius: 10px;
- background: rgba(15, 23, 42, 0.03);
- border: 1px solid rgba(37, 99, 235, 0.1);
- }
- .app-container.theme-night .t2v-stage-list {
- background: rgba(255, 255, 255, 0.03);
- border-color: rgba(96, 165, 250, 0.15);
- }
- .t2v-stage-list li {
- display: flex;
- align-items: center;
- gap: 8px;
- font-size: 12.5px;
- color: #94a3b8;
- }
- .t2v-stage-list__dot {
- width: 8px;
- height: 8px;
- border-radius: 50%;
- background: rgba(148, 163, 184, 0.4);
- flex-shrink: 0;
- }
- .t2v-stage-list li.is-active {
- color: #2563eb;
- font-weight: 600;
- }
- .t2v-stage-list li.is-active .t2v-stage-list__dot {
- background: #2563eb;
- box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
- animation: t2v-pulse 1.2s infinite;
- }
- .t2v-stage-list li.is-done {
- color: #047857;
- }
- .t2v-stage-list li.is-done .t2v-stage-list__dot { background: #10b981; }
- .app-container.theme-night .t2v-stage-list li.is-active { color: #93c5fd; }
- .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); }
- .app-container.theme-night .t2v-stage-list li.is-done { color: #6ee7b7; }
- @keyframes t2v-pulse {
- 0%, 100% { box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2); }
- 50% { box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.08); }
- }
- .dh-field__counter {
- margin-top: 4px;
- text-align: right;
- font-size: 11px;
- color: #94a3b8;
- }
- /* —— 分镜卡片右上角的产出介质徽标 —— */
- .t2v-scene-item__media {
- margin-left: auto;
- font-size: 14px;
- letter-spacing: 2px;
- opacity: 0.85;
- }
- /* —— 结果区:四态片段组合统计 —— */
- .t2v-case-summary {
- display: flex;
- align-items: center;
- flex-wrap: wrap;
- gap: 6px;
- margin: 10px 0 4px;
- font-size: 12px;
- color: #64748b;
- }
- .t2v-case-summary__label { font-weight: 600; }
- .t2v-case-chip {
- padding: 3px 8px;
- border-radius: 999px;
- background: rgba(37, 99, 235, 0.08);
- color: #1d4ed8;
- font-weight: 600;
- font-size: 11.5px;
- cursor: help;
- }
- .app-container.theme-night .t2v-case-summary { color: #94a3b8; }
- .app-container.theme-night .t2v-case-chip {
- background: rgba(96, 165, 250, 0.15);
- color: #93c5fd;
- }
- /* ====================================================================
- * 手动模式样式
- * ==================================================================== */
- /* 手动模式卡片:纵向布局,区别于快速模式的横向只读卡 */
- .t2v-scene-item--manual {
- display: flex;
- flex-direction: column;
- gap: 10px;
- }
- /* 卡片右上角删除按钮 */
- .t2v-scene-item__del {
- margin-left: auto;
- width: 24px;
- height: 24px;
- border: 1px solid rgba(148, 163, 184, 0.3);
- background: transparent;
- color: #94a3b8;
- border-radius: 6px;
- font-size: 12px;
- cursor: pointer;
- transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
- }
- .t2v-scene-item__del:hover:not(:disabled) {
- background: rgba(239, 68, 68, 0.1);
- border-color: rgba(239, 68, 68, 0.5);
- color: #ef4444;
- }
- .t2v-scene-item__del:disabled {
- opacity: 0.4;
- cursor: not-allowed;
- }
- /* prompt 编辑框:紧凑版 */
- .t2v-scene-item__edit {
- width: 100%;
- font-size: 12.5px;
- line-height: 1.5;
- min-height: 56px;
- resize: vertical;
- }
- /* 手动模式卡片的预览区:单列纵向(覆盖快速模式的 grid 布局) */
- .t2v-scene-item--manual .t2v-scene-item__body {
- display: block;
- }
- .t2v-scene-item--manual .t2v-scene-item__img {
- width: 100%;
- height: auto; /* 关键:覆盖基础规则的 height: 70px,让 aspect-ratio 生效 */
- max-height: 360px;
- aspect-ratio: 16 / 9;
- object-fit: contain; /* contain 而非 cover,保留全图不裁剪 */
- border-radius: 8px;
- background: #0f172a;
- display: block;
- cursor: zoom-in;
- }
- .t2v-scene-item--manual video.t2v-scene-item__img {
- cursor: default; /* video 已有 controls,无需 zoom-in */
- object-fit: contain;
- }
- /* 按钮组:横向排列,自动换行 */
- .t2v-scene-item__actions {
- display: flex;
- flex-wrap: wrap;
- gap: 8px;
- }
- .t2v-scene-item__actions .dh-chip-btn.is-primary {
- background: linear-gradient(135deg, #7c3aed, #2563eb);
- color: #fff;
- border: none;
- }
- .t2v-scene-item__actions .dh-chip-btn.is-primary:hover:not(:disabled) {
- filter: brightness(1.1);
- }
- .t2v-scene-item__actions .dh-chip-btn:disabled {
- opacity: 0.4;
- cursor: not-allowed;
- }
- /* 添加分镜大按钮 */
- .t2v-add-scene {
- width: 100%;
- margin-top: 12px;
- padding: 12px;
- border: 2px dashed rgba(37, 99, 235, 0.4);
- background: rgba(37, 99, 235, 0.04);
- color: #2563eb;
- border-radius: 10px;
- font-size: 13px;
- font-weight: 600;
- cursor: pointer;
- transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
- }
- .t2v-add-scene:hover:not(:disabled) {
- background: rgba(37, 99, 235, 0.08);
- border-color: rgba(37, 99, 235, 0.7);
- }
- .t2v-add-scene:disabled {
- opacity: 0.4;
- cursor: not-allowed;
- }
- .app-container.theme-night .t2v-add-scene {
- color: #93c5fd;
- border-color: rgba(96, 165, 250, 0.4);
- background: rgba(96, 165, 250, 0.06);
- }
- .app-container.theme-night .t2v-add-scene:hover:not(:disabled) {
- background: rgba(96, 165, 250, 0.12);
- }
- /* ============================================================
- * 顶部模式切换条(独立横向 2 卡)
- * ============================================================ */
- .t2v-mode-bar {
- display: grid;
- grid-template-columns: 1fr 1fr;
- gap: 12px;
- margin: 0 0 18px;
- }
- .t2v-mode-bar__btn {
- display: flex;
- flex-direction: column;
- align-items: flex-start;
- gap: 4px;
- padding: 14px 16px;
- border: 1px solid rgba(15, 23, 42, 0.12);
- background: #fff;
- border-radius: 12px;
- cursor: pointer;
- text-align: left;
- transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background-color 160ms ease;
- }
- .t2v-mode-bar__btn:hover:not(:disabled) {
- border-color: rgba(124, 58, 237, 0.35);
- transform: translateY(-1px);
- }
- .t2v-mode-bar__btn:disabled {
- opacity: 0.55;
- cursor: not-allowed;
- }
- .t2v-mode-bar__btn.is-active {
- border-color: #7c3aed;
- background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(168, 85, 247, 0.06));
- box-shadow: 0 4px 16px rgba(124, 58, 237, 0.12);
- }
- .t2v-mode-bar__title {
- font-family: var(--font-display, inherit);
- font-size: 14px;
- font-weight: 700;
- color: #0f172a;
- }
- .t2v-mode-bar__sub {
- font-size: 11.5px;
- color: rgba(15, 23, 42, 0.55);
- letter-spacing: -0.005em;
- }
- .app-container.theme-night .t2v-mode-bar__btn {
- background: rgba(255, 255, 255, 0.04);
- border-color: rgba(255, 255, 255, 0.12);
- }
- .app-container.theme-night .t2v-mode-bar__btn.is-active {
- border-color: rgba(216, 180, 254, 0.55);
- background: linear-gradient(135deg, rgba(96, 165, 250, 0.12), rgba(216, 180, 254, 0.12));
- }
- .app-container.theme-night .t2v-mode-bar__title { color: #f8fafc; }
- .app-container.theme-night .t2v-mode-bar__sub { color: rgba(248, 250, 252, 0.62); }
- /* ============================================================
- * 卡内 label("画面描述" "图生视频模式")
- * ============================================================ */
- .t2v-card-label {
- display: block;
- font-family: var(--font-mono, monospace);
- font-size: 10px;
- font-weight: 700;
- letter-spacing: 0.1em;
- text-transform: uppercase;
- color: rgba(15, 23, 42, 0.55);
- margin: 8px 0 6px;
- }
- .app-container.theme-night .t2v-card-label {
- color: rgba(248, 250, 252, 0.55);
- }
- .t2v-toggle-row {
- display: flex;
- align-items: center;
- gap: 8px;
- font-size: 12px;
- color: rgba(15, 23, 42, 0.72);
- margin-bottom: 10px;
- }
- .t2v-toggle-row input {
- width: 16px;
- height: 16px;
- accent-color: #7c3aed;
- }
- .t2v-bible-grid,
- .t2v-continuity-fields {
- display: grid;
- grid-template-columns: 1fr;
- gap: 8px;
- }
- .t2v-bible-grid .dh-input,
- .t2v-continuity-fields .dh-input {
- min-width: 0;
- }
- .t2v-bible-notes {
- margin-top: 8px;
- }
- .t2v-bible-refs {
- margin-top: 12px;
- padding: 10px;
- background: rgba(124, 58, 237, 0.06);
- border: 1px solid rgba(124, 58, 237, 0.18);
- border-radius: 8px;
- }
- .t2v-bible-refs__head {
- display: flex;
- align-items: baseline;
- gap: 8px;
- margin-bottom: 8px;
- flex-wrap: wrap;
- }
- .t2v-bible-refs__title {
- font-size: 12px;
- font-weight: 600;
- color: #6d28d9;
- }
- .t2v-bible-refs__grid {
- display: grid;
- grid-template-columns: repeat(3, 1fr);
- gap: 10px;
- }
- .t2v-bible-ref {
- display: flex;
- flex-direction: column;
- gap: 4px;
- min-width: 0;
- }
- .t2v-bible-ref__label {
- font-size: 11px;
- color: rgba(15, 23, 42, 0.7);
- text-align: center;
- }
- .t2v-bible-ref__box {
- position: relative;
- aspect-ratio: 1 / 1;
- width: 100%;
- border-radius: 6px;
- overflow: hidden;
- border: 1px dashed rgba(124, 58, 237, 0.32);
- background: rgba(124, 58, 237, 0.04);
- }
- .t2v-bible-ref__box.is-empty {
- display: flex;
- align-items: center;
- justify-content: center;
- }
- .t2v-bible-ref__box a {
- display: block;
- width: 100%;
- height: 100%;
- text-decoration: none;
- }
- .t2v-bible-ref__box img {
- width: 100%;
- height: 100%;
- object-fit: cover;
- display: block;
- transition: transform 0.15s ease;
- }
- .t2v-bible-ref__box a:hover img {
- transform: scale(1.04);
- }
- .t2v-bible-ref__add {
- width: 100%;
- height: 100%;
- display: flex;
- align-items: center;
- justify-content: center;
- cursor: pointer;
- font-size: 12px;
- color: #6d28d9;
- font-weight: 500;
- }
- .t2v-bible-ref__add:has(input:disabled) {
- cursor: not-allowed;
- opacity: 0.55;
- }
- .t2v-bible-ref__clear {
- position: absolute;
- top: 4px;
- right: 4px;
- width: 22px;
- height: 22px;
- border-radius: 50%;
- border: none;
- background: rgba(0, 0, 0, 0.55);
- color: #fff;
- font-size: 14px;
- line-height: 1;
- display: flex;
- align-items: center;
- justify-content: center;
- cursor: pointer;
- transition: background 0.15s ease;
- }
- .t2v-bible-ref__clear:hover:not(:disabled) {
- background: rgba(220, 38, 38, 0.85);
- }
- .t2v-bible-ref__clear:disabled {
- cursor: not-allowed;
- opacity: 0.4;
- }
- .t2v-bible-refs__error {
- margin-top: 8px;
- font-size: 12px;
- color: #dc2626;
- }
- .t2v-continuity-fields {
- margin-top: 8px;
- }
- .t2v-shot-controls {
- display: grid;
- gap: 8px;
- margin-top: 10px;
- }
- .t2v-inherit-row {
- display: flex;
- flex-wrap: wrap;
- gap: 10px;
- font-size: 12px;
- color: rgba(15, 23, 42, 0.72);
- }
- .t2v-inherit-row label {
- display: inline-flex;
- align-items: center;
- gap: 5px;
- }
- .t2v-inherit-row input {
- accent-color: #7c3aed;
- }
- .app-container.theme-night .t2v-toggle-row {
- color: rgba(248, 250, 252, 0.72);
- }
- .app-container.theme-night .t2v-inherit-row {
- color: rgba(248, 250, 252, 0.72);
- }
- /* ============================================================
- * 视频模式 segment(带副标题)
- * ============================================================ */
- .t2v-vmode-seg .dh-segment__item {
- flex-direction: column;
- align-items: center;
- gap: 2px;
- padding: 8px 12px;
- line-height: 1.3;
- }
- .t2v-vmode-hint {
- display: block;
- font-size: 10px;
- font-weight: 400;
- color: rgba(15, 23, 42, 0.5);
- letter-spacing: -0.005em;
- }
- .t2v-vmode-seg .dh-segment__item.is-active .t2v-vmode-hint {
- color: rgba(124, 58, 237, 0.8);
- }
- .app-container.theme-night .t2v-vmode-hint { color: rgba(248, 250, 252, 0.5); }
- .app-container.theme-night .t2v-vmode-seg .dh-segment__item.is-active .t2v-vmode-hint { color: rgba(216, 180, 254, 0.9); }
- /* ============================================================
- * 帧位 grid(首帧 + 可选尾帧)
- * ============================================================ */
- .t2v-frames {
- display: grid;
- grid-template-columns: 1fr;
- gap: 10px;
- margin: 10px 0 6px;
- }
- .t2v-frames--dual {
- grid-template-columns: 1fr 1fr;
- }
- @media (max-width: 900px) {
- .t2v-frames--dual { grid-template-columns: 1fr; }
- }
- .t2v-frame-slot {
- display: flex;
- flex-direction: column;
- gap: 6px;
- padding: 10px;
- border: 1px solid rgba(15, 23, 42, 0.08);
- border-radius: 10px;
- background: rgba(15, 23, 42, 0.02);
- }
- .t2v-frame-slot__head {
- display: flex;
- align-items: center;
- justify-content: space-between;
- gap: 8px;
- }
- .t2v-frame-slot__title {
- font-family: var(--font-mono, monospace);
- font-size: 10px;
- font-weight: 700;
- letter-spacing: 0.12em;
- text-transform: uppercase;
- color: rgba(15, 23, 42, 0.72);
- }
- .t2v-frame-slot__source {
- font-family: var(--font-mono, monospace);
- font-size: 9px;
- font-weight: 700;
- letter-spacing: 0.06em;
- padding: 2px 6px;
- border-radius: 999px;
- background: rgba(37, 99, 235, 0.1);
- color: #1d4ed8;
- }
- .t2v-frame-slot__source.is-upload {
- background: rgba(16, 185, 129, 0.12);
- color: #047857;
- }
- .t2v-frame-slot__thumb {
- position: relative;
- width: 100%;
- aspect-ratio: 16 / 9;
- border-radius: 8px;
- overflow: hidden;
- background: rgba(15, 23, 42, 0.04);
- border: 1px dashed rgba(15, 23, 42, 0.12);
- display: flex;
- align-items: center;
- justify-content: center;
- }
- .t2v-frame-slot__thumb a,
- .t2v-frame-slot__thumb img {
- display: block;
- width: 100%;
- height: 100%;
- object-fit: cover;
- border-radius: 8px;
- }
- .t2v-frame-slot__ph {
- font-size: 11px;
- color: rgba(15, 23, 42, 0.42);
- font-family: var(--font-mono, monospace);
- }
- .t2v-frame-slot__loading {
- display: flex;
- align-items: center;
- gap: 8px;
- font-size: 12px;
- color: rgba(15, 23, 42, 0.62);
- font-family: var(--font-mono, monospace);
- }
- .t2v-spin {
- width: 14px;
- height: 14px;
- border: 2px solid rgba(124, 58, 237, 0.25);
- border-top-color: #7c3aed;
- border-radius: 50%;
- animation: t2v-spin 0.7s linear infinite;
- }
- @keyframes t2v-spin {
- to { transform: rotate(360deg); }
- }
- .t2v-frame-slot__ops {
- display: flex;
- flex-wrap: wrap;
- gap: 4px;
- }
- .t2v-frame-slot__ops .dh-chip-btn {
- flex: 1;
- min-width: 0;
- padding: 6px 8px;
- font-size: 11.5px;
- }
- .t2v-frame-slot__ops .dh-chip-btn[title="清空首帧"],
- .t2v-frame-slot__ops .dh-chip-btn[title="清空尾帧"] {
- flex: 0 0 28px;
- }
- .app-container.theme-night .t2v-frame-slot {
- background: rgba(255, 255, 255, 0.03);
- border-color: rgba(255, 255, 255, 0.08);
- }
- .app-container.theme-night .t2v-frame-slot__title { color: rgba(248, 250, 252, 0.75); }
- .app-container.theme-night .t2v-frame-slot__thumb {
- background: rgba(255, 255, 255, 0.04);
- border-color: rgba(255, 255, 255, 0.12);
- }
- .app-container.theme-night .t2v-frame-slot__ph,
- .app-container.theme-night .t2v-frame-slot__loading { color: rgba(248, 250, 252, 0.55); }
- .app-container.theme-night .t2v-frame-slot__source {
- background: rgba(96, 165, 250, 0.16);
- color: #93c5fd;
- }
- .app-container.theme-night .t2v-frame-slot__source.is-upload {
- background: rgba(52, 211, 153, 0.16);
- color: #6ee7b7;
- }
- /* ============================================================
- * 视频预览(已生成时显示在卡片中)
- * ============================================================ */
- .t2v-video-preview {
- margin-top: 10px;
- border-radius: 10px;
- overflow: hidden;
- background: #000;
- }
- .t2v-video-preview video {
- width: 100%;
- display: block;
- max-height: 320px;
- object-fit: contain;
- background: #000;
- }
- /* ============================================================
- * 右栏:手动模式分镜状态摘要
- * ============================================================ */
- .t2v-scene-summary {
- display: flex;
- flex-wrap: wrap;
- gap: 6px;
- }
- .t2v-scene-summary__chip {
- display: inline-flex;
- align-items: center;
- gap: 4px;
- padding: 4px 10px;
- border: 1px solid rgba(15, 23, 42, 0.12);
- border-radius: 999px;
- font-size: 11.5px;
- color: rgba(15, 23, 42, 0.72);
- background: #fff;
- }
- .t2v-scene-summary__chip strong {
- font-family: var(--font-mono, monospace);
- font-weight: 700;
- color: #0f172a;
- }
- .t2v-scene-summary__chip.is-ok {
- background: rgba(16, 185, 129, 0.08);
- border-color: rgba(16, 185, 129, 0.32);
- color: #047857;
- }
- .t2v-scene-summary__chip.is-ok strong { color: #047857; }
- .app-container.theme-night .t2v-scene-summary__chip {
- background: rgba(255, 255, 255, 0.04);
- border-color: rgba(255, 255, 255, 0.12);
- color: rgba(248, 250, 252, 0.78);
- }
- .app-container.theme-night .t2v-scene-summary__chip strong { color: #f8fafc; }
- .app-container.theme-night .t2v-scene-summary__chip.is-ok {
- background: rgba(52, 211, 153, 0.16);
- border-color: rgba(52, 211, 153, 0.42);
- color: #6ee7b7;
- }
- .app-container.theme-night .t2v-scene-summary__chip.is-ok strong { color: #6ee7b7; }
- .t2v-template-panel {
- display: grid;
- grid-template-columns: minmax(0, 1fr) 360px;
- gap: 14px;
- margin: 16px 0;
- border: 1px solid var(--border-color);
- border-radius: 8px;
- background: var(--bg-secondary);
- padding: 14px;
- }
- .t2v-template-panel__title {
- color: var(--primary-color);
- font-size: 13px;
- font-weight: 700;
- margin-bottom: 8px;
- }
- .t2v-template-panel__controls,
- .t2v-template-panel__save {
- display: flex;
- align-items: center;
- gap: 10px;
- }
- .t2v-template-panel select {
- min-height: 40px;
- flex: 1;
- border: 1px solid var(--border-color);
- border-radius: 8px;
- background: var(--bg-primary);
- color: var(--text-primary);
- padding: 0 12px;
- }
- .t2v-template-panel__message {
- margin: 8px 0 0;
- color: var(--text-secondary);
- font-size: 13px;
- }
- @media (max-width: 980px) {
- .t2v-template-panel {
- grid-template-columns: 1fr;
- }
- .t2v-template-panel__controls,
- .t2v-template-panel__save {
- align-items: stretch;
- flex-direction: column;
- }
- }
|