f4cac1dc6e
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 2s
CI/CD Pipeline / Dedup Check - skip PR tests when covered by push pipeline (pull_request) Successful in 2s
CI/CD Pipeline / PR Build API Image (pull_request) Successful in 33s
CI/CD Pipeline / PR Build Worker Image (pull_request) Successful in 1m1s
CI/CD Pipeline / PR Build Web Image (pull_request) Successful in 2m26s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 2m59s
CI/CD Pipeline / Integration Tests (pull_request) Successful in 3m3s
PR Automation / Auto Approve on CI Green (pull_request) Successful in 3m32s
CI/CD Pipeline / Validate - Style (pull_request) Successful in 3m32s
Preview Deploy / Deploy Preview Environment (pull_request) Successful in 4m9s
CI/CD Pipeline / Validate - Python (mypy + alembic) (pull_request) Successful in 4m48s
CI/CD Pipeline / Frontend Unit Tests (pull_request) Successful in 6m29s
AI Code Review / AI Code Review (pull_request) Successful in 7m8s
CI/CD Pipeline / Unit Tests (pull_request) Successful in 9m28s
CI/CD Pipeline / Validate - Security (pull_request) Has been cancelled
CI/CD Pipeline / Build Production API Image (pull_request) Has been cancelled
CI/CD Pipeline / Build Production Web Image (pull_request) Has been cancelled
CI/CD Pipeline / Build Production Worker Image (pull_request) Has been cancelled
CI/CD Pipeline / Deploy Production (pull_request) Has been cancelled
CI/CD Pipeline / Production Browser E2E (pull_request) Has been cancelled
CI/CD Pipeline / Canary Release to Production (pull_request) Has been cancelled
CI/CD Pipeline / CI Gate (pull_request) Has been cancelled
PR Automation / Auto Merge on CI Green + Approved (pull_request) Has been cancelled
CI/CD Pipeline / ACR Image Cleanup (pull_request) Failing after 162h22m35s
CI/CD Pipeline / Retag skipped Staging Worker Image (pull_request) Failing after 162h22m55s
CI/CD Pipeline / Staging API Integration Tests (pull_request) Failing after 162h22m40s
CI/CD Pipeline / Retag skipped Staging Web Image (pull_request) Failing after 162h23m0s
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 162h22m44s
CI/CD Pipeline / Build Staging Worker Image (pull_request) Failing after 162h23m10s
CI/CD Pipeline / Build Staging Web Image (pull_request) Failing after 162h23m10s
CI/CD Pipeline / Check push changed paths (pull_request) Failing after 162h23m12s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Failing after 162h57m36s
CI/CD Pipeline / Retag skipped Staging API Image (pull_request) Failing after 162h57m52s
CI/CD Pipeline / Build Staging API Image (pull_request) Failing after 162h57m57s
3465 lines
65 KiB
CSS
3465 lines
65 KiB
CSS
/**
|
||
* 智能剪辑页面 — V21 原型 1:1 还原样式
|
||
* 对照 frontend-v21-ui-prototype-final.html #view-generate
|
||
*/
|
||
@import "../../styles/global.css";
|
||
|
||
/* ============================================================
|
||
页面容器
|
||
============================================================ */
|
||
.xx-generate-page {
|
||
min-height: 100%;
|
||
padding: var(--space-xl);
|
||
max-width: 1680px;
|
||
margin: 0 auto;
|
||
}
|
||
|
||
/* ============================================================
|
||
页头
|
||
============================================================ */
|
||
.xx-generate-head {
|
||
display: flex;
|
||
align-items: flex-start;
|
||
justify-content: space-between;
|
||
margin-bottom: var(--space-xl);
|
||
}
|
||
|
||
.xx-generate-head h2 {
|
||
margin: 0 0 4px;
|
||
font-size: var(--font-size-2xl);
|
||
font-weight: var(--font-weight-bold);
|
||
color: var(--text-primary);
|
||
}
|
||
|
||
.xx-generate-head p {
|
||
margin: 0;
|
||
color: var(--text-secondary);
|
||
font-size: var(--font-size-base);
|
||
}
|
||
|
||
/* ============================================================
|
||
步骤条 steps-bar
|
||
============================================================ */
|
||
.xx-steps-bar {
|
||
display: flex;
|
||
justify-content: center;
|
||
align-items: center;
|
||
gap: 8px;
|
||
margin-bottom: 28px;
|
||
}
|
||
|
||
.xx-step-item {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
padding: 10px 16px;
|
||
border-radius: var(--radius-sm);
|
||
color: var(--text-tertiary);
|
||
font-weight: 600;
|
||
font-size: 14px;
|
||
cursor: pointer;
|
||
transition: all 0.2s ease;
|
||
user-select: none;
|
||
}
|
||
|
||
.xx-step-item:hover {
|
||
background: var(--bg-secondary);
|
||
}
|
||
|
||
.xx-step-item.active {
|
||
background: var(--primary-soft);
|
||
color: var(--primary-color);
|
||
}
|
||
|
||
.xx-step-item.done {
|
||
color: var(--secondary-color);
|
||
}
|
||
|
||
.xx-step-num {
|
||
width: 26px;
|
||
height: 26px;
|
||
border-radius: 50%;
|
||
background: var(--bg-tertiary);
|
||
display: grid;
|
||
place-items: center;
|
||
font-size: 12px;
|
||
font-weight: 700;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.xx-step-item.active .xx-step-num {
|
||
background: var(--primary-color);
|
||
color: var(--text-inverse);
|
||
}
|
||
|
||
.xx-step-item.done .xx-step-num {
|
||
background: var(--secondary-color);
|
||
color: var(--text-inverse);
|
||
}
|
||
|
||
.xx-step-arrow {
|
||
color: var(--text-disabled);
|
||
font-size: 14px;
|
||
user-select: none;
|
||
}
|
||
|
||
/* ============================================================
|
||
主布局 generate-layout
|
||
============================================================ */
|
||
.xx-generate-layout {
|
||
display: grid;
|
||
grid-template-columns: 1fr 320px;
|
||
gap: 24px;
|
||
align-items: start;
|
||
}
|
||
|
||
.xx-generate-layout.full-width {
|
||
grid-template-columns: 1fr;
|
||
}
|
||
|
||
/* ============================================================
|
||
左侧表单区 generate-form
|
||
============================================================ */
|
||
.xx-generate-form {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 16px;
|
||
}
|
||
|
||
/* ── form-section 卡片 ── */
|
||
.xx-form-section {
|
||
background: var(--bg-primary);
|
||
border: 1px solid var(--border-color);
|
||
border-radius: var(--radius-md);
|
||
padding: 20px;
|
||
}
|
||
|
||
.xx-form-section h3 {
|
||
margin: 0 0 14px;
|
||
font-size: 15px;
|
||
font-weight: 600;
|
||
color: var(--text-primary);
|
||
}
|
||
|
||
/* ── form-field ── */
|
||
.xx-form-field {
|
||
margin-bottom: 14px;
|
||
}
|
||
|
||
.xx-form-field:last-child {
|
||
margin-bottom: 0;
|
||
}
|
||
|
||
.xx-form-field label {
|
||
display: block;
|
||
font-weight: 600;
|
||
margin-bottom: 8px;
|
||
font-size: 13px;
|
||
color: var(--text-primary);
|
||
}
|
||
|
||
.xx-form-field select,
|
||
.xx-form-field input {
|
||
width: 100%;
|
||
height: 44px;
|
||
border: 1px solid var(--border-color);
|
||
border-radius: var(--radius-sm);
|
||
background: var(--bg-primary);
|
||
padding: 0 14px;
|
||
font-size: 14px;
|
||
outline: 0;
|
||
transition: 0.15s ease;
|
||
color: var(--text-primary);
|
||
}
|
||
|
||
.xx-form-field select:focus,
|
||
.xx-form-field input:focus {
|
||
border-color: var(--primary-color);
|
||
box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
|
||
}
|
||
|
||
/* ── form-row(双列) ── */
|
||
.xx-form-row {
|
||
display: grid;
|
||
grid-template-columns: 1fr 1fr;
|
||
gap: 14px;
|
||
}
|
||
|
||
/* ============================================================
|
||
choice-list 卡片式选择
|
||
============================================================ */
|
||
.xx-choice-list {
|
||
display: grid;
|
||
grid-template-columns: repeat(6, 1fr);
|
||
gap: 8px;
|
||
}
|
||
|
||
.xx-choice-item {
|
||
position: relative;
|
||
background: var(--bg-primary);
|
||
border: 2px solid var(--border-color);
|
||
border-radius: var(--radius-sm);
|
||
padding: 6px;
|
||
cursor: pointer;
|
||
transition: 0.18s ease;
|
||
text-align: center;
|
||
}
|
||
|
||
.xx-choice-item:hover {
|
||
border-color: var(--info-border);
|
||
}
|
||
|
||
.xx-choice-item.selected {
|
||
border-color: var(--primary-color);
|
||
background: var(--primary-soft);
|
||
}
|
||
|
||
.xx-choice-thumb {
|
||
width: 33%;
|
||
max-width: 52px;
|
||
height: 24px;
|
||
border-radius: var(--radius-sm);
|
||
display: grid;
|
||
place-items: center;
|
||
color: var(--text-inverse);
|
||
font-size: 12px;
|
||
font-weight: 700;
|
||
margin: 0 auto 4px;
|
||
}
|
||
|
||
.xx-choice-item h4 {
|
||
margin: 0 0 2px;
|
||
font-size: 13px;
|
||
font-weight: 600;
|
||
color: var(--text-primary);
|
||
}
|
||
|
||
.xx-choice-item p {
|
||
margin: 0;
|
||
font-size: 12px;
|
||
color: var(--text-tertiary);
|
||
}
|
||
|
||
.xx-choice-check {
|
||
width: 22px;
|
||
height: 22px;
|
||
border-radius: 50%;
|
||
background: var(--primary-color);
|
||
color: var(--text-inverse);
|
||
display: none;
|
||
place-items: center;
|
||
font-size: 12px;
|
||
position: absolute;
|
||
right: -6px;
|
||
top: -6px;
|
||
}
|
||
|
||
.xx-choice-item.selected .xx-choice-check {
|
||
display: grid;
|
||
}
|
||
|
||
/* ============================================================
|
||
Pill 标签
|
||
============================================================ */
|
||
.xx-pill {
|
||
font-size: 11px;
|
||
padding: 4px 8px;
|
||
border-radius: 999px;
|
||
font-weight: 700;
|
||
display: inline-block;
|
||
}
|
||
|
||
.xx-pill-ok {
|
||
background: var(--success-soft);
|
||
color: var(--secondary-dark);
|
||
}
|
||
|
||
.xx-pill-info {
|
||
background: var(--info-soft);
|
||
color: var(--info-color);
|
||
}
|
||
|
||
/* ============================================================
|
||
AI 智能配音推荐
|
||
============================================================ */
|
||
.xx-voice-recommend-section {
|
||
padding: 16px;
|
||
background: linear-gradient(135deg, #f0f4ff 0%, #faf5ff 100%);
|
||
border: 1px solid var(--border-primary, #e2e8f0);
|
||
border-radius: 14px;
|
||
margin-bottom: 16px;
|
||
}
|
||
|
||
.xx-voice-recommend-header {
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
margin-bottom: 12px;
|
||
}
|
||
|
||
.xx-voice-recommend-label {
|
||
font-size: 14px;
|
||
font-weight: 600;
|
||
color: var(--text-primary, #1e293b);
|
||
}
|
||
|
||
.xx-voice-recommend-list {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 8px;
|
||
}
|
||
|
||
.xx-voice-recommend-card {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 12px;
|
||
padding: 10px 12px;
|
||
background: #fff;
|
||
border: 2px solid var(--border-primary, #e2e8f0);
|
||
border-radius: 10px;
|
||
cursor: pointer;
|
||
transition: all 0.2s ease;
|
||
position: relative;
|
||
}
|
||
|
||
.xx-voice-recommend-card:hover {
|
||
border-color: var(--primary-color, #4f46e5);
|
||
transform: translateX(2px);
|
||
}
|
||
|
||
.xx-voice-recommend-card.selected {
|
||
border-color: var(--primary-color, #4f46e5);
|
||
background: var(--primary-soft, #eef2ff);
|
||
}
|
||
|
||
.xx-voice-recommend-avatar {
|
||
width: 40px;
|
||
height: 40px;
|
||
border-radius: 50%;
|
||
background: linear-gradient(135deg, #a5b4fc, #c4b5fd);
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
font-size: 20px;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.xx-voice-recommend-info {
|
||
flex: 1;
|
||
min-width: 0;
|
||
}
|
||
|
||
.xx-voice-recommend-name {
|
||
font-size: 13px;
|
||
font-weight: 500;
|
||
color: var(--text-primary, #1e293b);
|
||
margin-bottom: 2px;
|
||
}
|
||
|
||
.xx-voice-recommend-desc {
|
||
font-size: 11px;
|
||
color: var(--text-tertiary, #94a3b8);
|
||
white-space: nowrap;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
}
|
||
|
||
.xx-voice-recommend-check {
|
||
width: 20px;
|
||
height: 20px;
|
||
background: var(--primary-color, #4f46e5);
|
||
border-radius: 50%;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.xx-voice-recommend-loading {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
padding: 20px;
|
||
font-size: 13px;
|
||
color: var(--text-secondary, #64748b);
|
||
}
|
||
|
||
.xx-voice-recommend-empty {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
padding: 16px;
|
||
font-size: 12px;
|
||
color: var(--text-tertiary, #94a3b8);
|
||
}
|
||
|
||
/* ============================================================
|
||
配音卡片(步骤4 choice-list 变体)
|
||
============================================================ */
|
||
.xx-voice-choice-list {
|
||
display: grid;
|
||
grid-template-columns: repeat(2, 1fr);
|
||
gap: 12px;
|
||
}
|
||
|
||
.xx-voice-choice-item {
|
||
position: relative;
|
||
background: var(--bg-primary);
|
||
border: 2px solid var(--border-color);
|
||
border-radius: var(--radius-md);
|
||
padding: 16px;
|
||
cursor: pointer;
|
||
transition: 0.18s ease;
|
||
text-align: left;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 12px;
|
||
}
|
||
|
||
.xx-voice-choice-item:hover {
|
||
border-color: var(--info-border);
|
||
}
|
||
|
||
.xx-voice-choice-item.selected {
|
||
border-color: var(--primary-color);
|
||
background: var(--primary-soft);
|
||
}
|
||
|
||
.xx-voice-choice-avatar {
|
||
width: 40px;
|
||
height: 40px;
|
||
border-radius: 50%;
|
||
background: var(--gradient-primary);
|
||
color: var(--text-inverse);
|
||
display: grid;
|
||
place-items: center;
|
||
font-size: 18px;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.xx-voice-choice-info h4 {
|
||
margin: 0 0 2px;
|
||
font-size: 13px;
|
||
font-weight: 600;
|
||
color: var(--text-primary);
|
||
}
|
||
|
||
.xx-voice-choice-info p {
|
||
margin: 0;
|
||
font-size: 11px;
|
||
color: var(--text-tertiary);
|
||
}
|
||
|
||
.xx-voice-choice-check {
|
||
width: 22px;
|
||
height: 22px;
|
||
border-radius: 50%;
|
||
background: var(--primary-color);
|
||
color: var(--text-inverse);
|
||
display: none;
|
||
place-items: center;
|
||
font-size: 12px;
|
||
position: absolute;
|
||
right: -6px;
|
||
top: -6px;
|
||
}
|
||
|
||
.xx-voice-choice-item.selected .xx-voice-choice-check {
|
||
display: grid;
|
||
}
|
||
|
||
/* ── 克隆声音区域 ── */
|
||
.xx-clone-section {
|
||
margin-top: 16px;
|
||
padding: 16px;
|
||
background: var(--bg-secondary);
|
||
border: 1px solid var(--border-color);
|
||
border-radius: var(--radius-md);
|
||
}
|
||
|
||
.xx-clone-section-title {
|
||
font-size: 14px;
|
||
font-weight: 600;
|
||
color: var(--text-primary);
|
||
margin: 0 0 8px;
|
||
}
|
||
|
||
.xx-clone-voices-list {
|
||
margin-top: 12px;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 8px;
|
||
}
|
||
|
||
.xx-clone-voice-row {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 10px;
|
||
padding: 10px 12px;
|
||
background: var(--bg-primary);
|
||
border: 1px solid var(--border-color);
|
||
border-radius: var(--radius-sm);
|
||
cursor: pointer;
|
||
transition: 0.15s ease;
|
||
}
|
||
|
||
.xx-clone-voice-row:hover {
|
||
border-color: var(--primary-color);
|
||
}
|
||
|
||
.xx-clone-voice-row.selected {
|
||
border-color: var(--primary-color);
|
||
background: var(--primary-soft);
|
||
}
|
||
|
||
.xx-clone-voice-row.disabled {
|
||
opacity: 0.5;
|
||
cursor: not-allowed;
|
||
}
|
||
|
||
.xx-clone-avatar {
|
||
width: 32px;
|
||
height: 32px;
|
||
border-radius: 50%;
|
||
display: grid;
|
||
place-items: center;
|
||
font-size: 14px;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.xx-clone-avatar.ready {
|
||
background: linear-gradient(135deg, var(--color-secondary-500), var(--color-secondary-600));
|
||
color: var(--text-inverse);
|
||
}
|
||
|
||
.xx-clone-avatar.processing {
|
||
background: linear-gradient(135deg, var(--color-accent-500), var(--color-accent-600));
|
||
color: var(--text-inverse);
|
||
animation: xx-clone-pulse 2s ease-in-out infinite;
|
||
}
|
||
|
||
.xx-clone-avatar.failed {
|
||
background: linear-gradient(135deg, var(--color-gray-400), var(--color-gray-500));
|
||
color: var(--text-inverse);
|
||
}
|
||
|
||
@keyframes xx-clone-pulse {
|
||
0%,
|
||
100% {
|
||
opacity: 1;
|
||
}
|
||
50% {
|
||
opacity: 0.6;
|
||
}
|
||
}
|
||
|
||
.xx-clone-info {
|
||
flex: 1;
|
||
min-width: 0;
|
||
}
|
||
|
||
.xx-clone-name {
|
||
font-size: 13px;
|
||
font-weight: 600;
|
||
color: var(--text-primary);
|
||
}
|
||
|
||
/* ── 克隆音色试听播放按钮 ── */
|
||
.xx-clone-voice-play-btn {
|
||
flex-shrink: 0;
|
||
width: 28px;
|
||
height: 28px;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
border: none;
|
||
background: var(--primary-color);
|
||
color: #fff;
|
||
border-radius: 50%;
|
||
cursor: pointer;
|
||
transition: all 0.2s ease;
|
||
margin-right: 4px;
|
||
}
|
||
|
||
.xx-clone-voice-play-btn:hover {
|
||
transform: scale(1.1);
|
||
background: var(--primary-hover);
|
||
}
|
||
|
||
.xx-clone-voice-row.selected .xx-clone-voice-play-btn {
|
||
margin-right: 8px;
|
||
}
|
||
|
||
.xx-clone-status {
|
||
font-size: 11px;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 4px;
|
||
}
|
||
|
||
.xx-clone-status-dot {
|
||
width: 6px;
|
||
height: 6px;
|
||
border-radius: 50%;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
/* ── 克隆进度条 ── */
|
||
.xx-clone-progress {
|
||
position: relative;
|
||
height: 4px;
|
||
background: var(--bg-tertiary);
|
||
border-radius: 3px;
|
||
margin-top: 6px;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.xx-clone-progress-bar {
|
||
height: 100%;
|
||
background: linear-gradient(90deg, var(--warning-color), var(--success-color));
|
||
border-radius: 3px;
|
||
transition: width 0.5s ease;
|
||
}
|
||
|
||
.xx-clone-progress--indeterminate .xx-clone-progress-bar {
|
||
width: 100%;
|
||
background: repeating-linear-gradient(
|
||
90deg,
|
||
var(--warning-color) 0%,
|
||
var(--warning-color) 25%,
|
||
var(--success-color) 25%,
|
||
var(--success-color) 50%,
|
||
var(--warning-color) 50%
|
||
);
|
||
background-size: 60px 100%;
|
||
animation: xx-clone-progress-flow 1.2s linear infinite;
|
||
}
|
||
|
||
@keyframes xx-clone-progress-flow {
|
||
from {
|
||
background-position: 0 0;
|
||
}
|
||
to {
|
||
background-position: 60px 0;
|
||
}
|
||
}
|
||
|
||
.xx-clone-progress-text {
|
||
position: absolute;
|
||
right: 0;
|
||
top: -14px;
|
||
font-size: 10px;
|
||
color: var(--warning-color);
|
||
font-weight: 600;
|
||
}
|
||
|
||
/* ── 轮询提示 ── */
|
||
.xx-clone-polling-hint {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
padding: 6px 10px;
|
||
font-size: 12px;
|
||
color: var(--warning-color);
|
||
background: rgba(245, 158, 11, 0.08);
|
||
border-radius: var(--radius-sm);
|
||
animation: xx-fade 2s ease-in-out infinite;
|
||
}
|
||
|
||
.xx-clone-polling-dot {
|
||
width: 6px;
|
||
height: 6px;
|
||
border-radius: 50%;
|
||
background: var(--warning-color);
|
||
animation: xx-blink 1.5s ease-in-out infinite;
|
||
}
|
||
|
||
@keyframes xx-fade {
|
||
0%,
|
||
100% {
|
||
opacity: 1;
|
||
}
|
||
50% {
|
||
opacity: 0.7;
|
||
}
|
||
}
|
||
|
||
@keyframes xx-blink {
|
||
0%,
|
||
100% {
|
||
opacity: 1;
|
||
}
|
||
50% {
|
||
opacity: 0.3;
|
||
}
|
||
}
|
||
|
||
/* ============================================================
|
||
生成进度 / 结果卡片
|
||
============================================================ */
|
||
.xx-gen-progress-card {
|
||
padding: 16px;
|
||
background: linear-gradient(135deg, #eff6ff 0%, #eef2ff 100%);
|
||
border: 1px solid #bfdbfe;
|
||
border-radius: 12px;
|
||
}
|
||
|
||
.xx-gen-progress-header {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 12px;
|
||
margin-bottom: 12px;
|
||
}
|
||
|
||
.xx-gen-progress-icon {
|
||
width: 40px;
|
||
height: 40px;
|
||
border-radius: 50%;
|
||
background: #fff;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
color: var(--primary-color, #4f46e5);
|
||
font-size: 18px;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.xx-gen-progress-info {
|
||
flex: 1;
|
||
min-width: 0;
|
||
}
|
||
|
||
.xx-gen-progress-phase {
|
||
font-size: 14px;
|
||
font-weight: 600;
|
||
color: var(--text-primary, #1e293b);
|
||
margin-bottom: 2px;
|
||
}
|
||
|
||
.xx-gen-progress-sub {
|
||
font-size: 12px;
|
||
color: var(--text-secondary, #64748b);
|
||
}
|
||
|
||
.xx-gen-progress-percent {
|
||
font-size: 20px;
|
||
font-weight: 700;
|
||
color: var(--primary-color, #4f46e5);
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.xx-gen-progress-bar {
|
||
width: 100%;
|
||
height: 6px;
|
||
background: rgba(79, 70, 229, 0.15);
|
||
border-radius: 3px;
|
||
overflow: hidden;
|
||
margin-bottom: 10px;
|
||
}
|
||
|
||
.xx-gen-progress-bar-fill {
|
||
height: 100%;
|
||
background: linear-gradient(90deg, #4f46e5, #7c3aed);
|
||
border-radius: 3px;
|
||
transition: width 0.3s ease;
|
||
}
|
||
|
||
.xx-gen-progress-tip {
|
||
font-size: 12px;
|
||
color: var(--text-tertiary, #94a3b8);
|
||
text-align: center;
|
||
}
|
||
|
||
.xx-gen-success-card {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 12px;
|
||
padding: 16px;
|
||
background: #f0fdf4;
|
||
border: 1px solid #bbf7d0;
|
||
border-radius: 12px;
|
||
}
|
||
|
||
.xx-gen-success-icon {
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.xx-gen-success-info {
|
||
flex: 1;
|
||
min-width: 0;
|
||
}
|
||
|
||
.xx-gen-success-title {
|
||
font-size: 15px;
|
||
font-weight: 600;
|
||
color: #166534;
|
||
margin-bottom: 4px;
|
||
}
|
||
|
||
.xx-gen-success-sub {
|
||
font-size: 12px;
|
||
color: #15803d;
|
||
}
|
||
|
||
.xx-gen-error-card {
|
||
display: flex;
|
||
align-items: flex-start;
|
||
gap: 12px;
|
||
padding: 16px;
|
||
background: #fef2f2;
|
||
border: 1px solid #fecaca;
|
||
border-radius: 12px;
|
||
}
|
||
|
||
.xx-gen-error-icon {
|
||
flex-shrink: 0;
|
||
margin-top: 2px;
|
||
}
|
||
|
||
.xx-gen-error-info {
|
||
flex: 1;
|
||
min-width: 0;
|
||
}
|
||
|
||
.xx-gen-error-title {
|
||
font-size: 14px;
|
||
font-weight: 600;
|
||
color: #991b1b;
|
||
margin-bottom: 4px;
|
||
}
|
||
|
||
.xx-gen-error-msg {
|
||
font-size: 12px;
|
||
color: #b91c1c;
|
||
line-height: 1.5;
|
||
word-break: break-all;
|
||
}
|
||
|
||
/* ============================================================
|
||
确认生成(步骤5)摘要
|
||
============================================================ */
|
||
.xx-summary-card {
|
||
background: var(--bg-secondary);
|
||
border-radius: var(--radius-md);
|
||
padding: 16px;
|
||
}
|
||
|
||
.xx-summary-row {
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
padding: 8px 0;
|
||
}
|
||
|
||
.xx-summary-row + .xx-summary-row {
|
||
border-top: 1px solid var(--border-color);
|
||
}
|
||
|
||
.xx-summary-label {
|
||
color: var(--text-tertiary);
|
||
font-size: 13px;
|
||
}
|
||
|
||
.xx-summary-value {
|
||
font-weight: 600;
|
||
font-size: 13px;
|
||
color: var(--text-primary);
|
||
}
|
||
|
||
/* ============================================================
|
||
底部操作按钮
|
||
============================================================ */
|
||
.xx-step-actions {
|
||
display: flex;
|
||
gap: 12px;
|
||
margin-top: 8px;
|
||
}
|
||
|
||
.xx-step-actions .xx-btn-ghost {
|
||
flex: 0 0 auto;
|
||
}
|
||
|
||
.xx-step-actions .xx-btn-primary {
|
||
flex: 1;
|
||
}
|
||
|
||
/* ============================================================
|
||
右侧预览区 generate-preview
|
||
============================================================ */
|
||
.xx-generate-preview {
|
||
background: var(--bg-primary);
|
||
border: 1px solid var(--border-color);
|
||
border-radius: var(--radius-md);
|
||
padding: 20px;
|
||
position: sticky;
|
||
top: 92px;
|
||
}
|
||
|
||
/* ── 视频预览 ── */
|
||
.xx-preview-video {
|
||
aspect-ratio: 9 / 16;
|
||
max-height: 400px;
|
||
border-radius: var(--radius-md);
|
||
background: linear-gradient(135deg, var(--color-gray-900), var(--color-primary-900));
|
||
color: var(--text-inverse);
|
||
font-size: 36px;
|
||
position: relative;
|
||
overflow: hidden;
|
||
margin-bottom: 16px;
|
||
isolation: isolate;
|
||
}
|
||
|
||
.xx-preview-video::before {
|
||
content: "";
|
||
position: absolute;
|
||
inset: 0;
|
||
background: radial-gradient(circle at 72% 28%, rgba(255, 255, 255, 0.2), transparent 40%);
|
||
pointer-events: none;
|
||
z-index: 0;
|
||
}
|
||
|
||
.xx-preview-video video {
|
||
width: 100%;
|
||
height: 100%;
|
||
object-fit: cover;
|
||
border-radius: var(--radius-md);
|
||
position: relative;
|
||
z-index: 1;
|
||
}
|
||
|
||
.xx-play-btn {
|
||
position: relative;
|
||
z-index: 1;
|
||
width: 60px;
|
||
height: 60px;
|
||
border-radius: 50%;
|
||
background: rgba(255, 255, 255, 0.2);
|
||
display: grid;
|
||
place-items: center;
|
||
backdrop-filter: blur(8px);
|
||
border: none;
|
||
color: var(--text-inverse);
|
||
font-size: 24px;
|
||
cursor: pointer;
|
||
transition: all 0.2s ease;
|
||
}
|
||
|
||
.xx-play-btn:hover {
|
||
background: rgba(255, 255, 255, 0.3);
|
||
transform: scale(1.05);
|
||
}
|
||
|
||
/* ── 字幕预览 ── */
|
||
.xx-preview-caption {
|
||
background: rgba(255, 255, 255, 0.95);
|
||
color: var(--text-primary);
|
||
border-radius: var(--radius-sm);
|
||
padding: 10px;
|
||
text-align: center;
|
||
font-weight: 600;
|
||
font-size: 14px;
|
||
margin-bottom: 14px;
|
||
}
|
||
|
||
/* ── 时间线标题 ── */
|
||
.xx-preview-title {
|
||
font-weight: 600;
|
||
font-size: 14px;
|
||
color: var(--text-primary);
|
||
margin-bottom: 10px;
|
||
}
|
||
|
||
/* ── 时间线列表 ── */
|
||
.xx-preview-timeline {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 8px;
|
||
}
|
||
|
||
.xx-timeline-item {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 10px;
|
||
padding: 10px;
|
||
background: var(--bg-secondary);
|
||
border-radius: var(--radius-sm);
|
||
font-size: 13px;
|
||
}
|
||
|
||
.xx-timeline-item .num {
|
||
width: 24px;
|
||
height: 24px;
|
||
border-radius: var(--radius-xs);
|
||
background: var(--primary-soft);
|
||
color: var(--primary-color);
|
||
display: grid;
|
||
place-items: center;
|
||
font-weight: 700;
|
||
font-size: 11px;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.xx-timeline-item span {
|
||
color: var(--text-tertiary);
|
||
margin-left: auto;
|
||
font-size: 12px;
|
||
}
|
||
|
||
.xx-timeline-item .scene-name {
|
||
color: var(--text-primary);
|
||
margin-left: 0;
|
||
flex: 1;
|
||
font-size: 13px;
|
||
}
|
||
|
||
/* ── 生成操作按钮 ── */
|
||
.xx-generate-actions {
|
||
display: flex;
|
||
gap: 10px;
|
||
margin-top: 16px;
|
||
}
|
||
|
||
.xx-generate-actions .xx-btn {
|
||
flex: 1;
|
||
}
|
||
|
||
/* ============================================================
|
||
生成进度
|
||
============================================================ */
|
||
.xx-progress-bar {
|
||
width: 100%;
|
||
height: 6px;
|
||
background: var(--bg-tertiary);
|
||
border-radius: 3px;
|
||
overflow: hidden;
|
||
margin-bottom: 8px;
|
||
}
|
||
|
||
.xx-progress-bar-fill {
|
||
height: 100%;
|
||
background: linear-gradient(90deg, var(--color-primary-500), var(--color-primary-600));
|
||
border-radius: 3px;
|
||
transition: width 0.3s ease;
|
||
}
|
||
|
||
/* ============================================================
|
||
响应式
|
||
============================================================ */
|
||
@media (max-width: 1200px) {
|
||
.xx-generate-layout {
|
||
grid-template-columns: 1fr;
|
||
}
|
||
|
||
.xx-generate-preview {
|
||
position: static;
|
||
}
|
||
}
|
||
|
||
@media (max-width: 768px) {
|
||
.xx-generate-page {
|
||
padding: var(--space-md);
|
||
}
|
||
|
||
.xx-choice-list {
|
||
grid-template-columns: repeat(4, 1fr);
|
||
}
|
||
|
||
.xx-voice-choice-list {
|
||
grid-template-columns: 1fr;
|
||
}
|
||
|
||
.xx-form-row {
|
||
grid-template-columns: 1fr;
|
||
}
|
||
|
||
.xx-step-label {
|
||
display: none;
|
||
}
|
||
}
|
||
|
||
@media (max-width: 480px) {
|
||
.xx-generate-page {
|
||
padding: var(--space-sm);
|
||
}
|
||
|
||
.xx-choice-list {
|
||
grid-template-columns: 1fr;
|
||
}
|
||
|
||
.xx-step-actions {
|
||
flex-direction: column;
|
||
}
|
||
|
||
.xx-generate-actions {
|
||
flex-direction: column;
|
||
}
|
||
}
|
||
|
||
/* ── 存为素材弹窗 ── */
|
||
.xx-save-modal-overlay {
|
||
position: fixed;
|
||
inset: 0;
|
||
background: rgba(0, 0, 0, 0.45);
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
z-index: 1000;
|
||
animation: xxFadeIn 0.15s ease;
|
||
}
|
||
|
||
.xx-save-modal {
|
||
background: var(--bg-card, #fff);
|
||
border-radius: var(--radius-lg, 16px);
|
||
width: 420px;
|
||
max-width: 90vw;
|
||
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
|
||
animation: xxSlideUp 0.2s ease;
|
||
}
|
||
|
||
.xx-save-modal-header {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
padding: 16px 20px;
|
||
border-bottom: 1px solid var(--border-light, #f1f5f9);
|
||
font-weight: 600;
|
||
font-size: 15px;
|
||
color: var(--text-primary, #0f172a);
|
||
}
|
||
|
||
.xx-save-modal-close {
|
||
background: none;
|
||
border: none;
|
||
cursor: pointer;
|
||
color: var(--text-tertiary, #94a3b8);
|
||
font-size: 14px;
|
||
padding: 4px;
|
||
border-radius: var(--radius-sm, 6px);
|
||
transition: all 0.15s;
|
||
}
|
||
|
||
.xx-save-modal-close:hover {
|
||
background: var(--bg-hover, #f8fafc);
|
||
color: var(--text-primary, #0f172a);
|
||
}
|
||
|
||
.xx-save-modal-body {
|
||
padding: 20px;
|
||
}
|
||
|
||
.xx-save-modal-label {
|
||
display: block;
|
||
font-size: 13px;
|
||
font-weight: 500;
|
||
color: var(--text-secondary, #475569);
|
||
margin-bottom: 6px;
|
||
margin-top: 14px;
|
||
}
|
||
|
||
.xx-save-modal-label:first-child {
|
||
margin-top: 0;
|
||
}
|
||
|
||
.xx-save-modal-input {
|
||
width: 100%;
|
||
padding: 8px 12px;
|
||
border: 1px solid var(--border-color, #e2e8f0);
|
||
border-radius: var(--radius-sm, 10px);
|
||
font-size: 14px;
|
||
outline: none;
|
||
background: var(--bg-surface, #fff);
|
||
color: var(--text-primary, #0f172a);
|
||
transition: border-color 0.15s;
|
||
}
|
||
|
||
.xx-save-modal-input:focus {
|
||
border-color: var(--primary-500, #6366f1);
|
||
box-shadow: 0 0 0 2px var(--primary-100, #e0e7ff);
|
||
}
|
||
|
||
.xx-save-modal-tags {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 6px;
|
||
padding: 8px;
|
||
border: 1px solid var(--border-color, #e2e8f0);
|
||
border-radius: var(--radius-sm, 10px);
|
||
min-height: 40px;
|
||
align-items: center;
|
||
cursor: text;
|
||
transition: border-color 0.15s;
|
||
}
|
||
|
||
.xx-save-modal-tags:focus-within {
|
||
border-color: var(--primary-500, #6366f1);
|
||
box-shadow: 0 0 0 2px var(--primary-100, #e0e7ff);
|
||
}
|
||
|
||
.xx-save-modal-tag {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 4px;
|
||
padding: 2px 8px;
|
||
font-size: 12px;
|
||
border-radius: 12px;
|
||
background: var(--primary-50, #eef2ff);
|
||
color: var(--primary-600, #4f46e5);
|
||
border: 1px solid var(--primary-200, #c7d2fe);
|
||
}
|
||
|
||
.xx-save-modal-tag-remove {
|
||
font-size: 10px;
|
||
cursor: pointer;
|
||
opacity: 0.6;
|
||
transition: opacity 0.15s;
|
||
}
|
||
|
||
.xx-save-modal-tag-remove:hover {
|
||
opacity: 1;
|
||
}
|
||
|
||
.xx-save-modal-tag-input {
|
||
border: none;
|
||
outline: none;
|
||
flex: 1;
|
||
min-width: 100px;
|
||
font-size: 13px;
|
||
background: transparent;
|
||
color: var(--text-primary, #0f172a);
|
||
}
|
||
|
||
.xx-save-modal-tag-input::placeholder {
|
||
color: var(--text-tertiary, #94a3b8);
|
||
}
|
||
|
||
.xx-save-modal-tag-presets {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 6px;
|
||
margin-top: 10px;
|
||
padding-top: 10px;
|
||
border-top: 1px solid var(--border-light, #f1f5f9);
|
||
}
|
||
|
||
.xx-save-modal-tag-preset {
|
||
padding: 3px 10px;
|
||
font-size: 12px;
|
||
border: 1px solid var(--border-color, #e2e8f0);
|
||
border-radius: 12px;
|
||
background: var(--bg-surface, #fff);
|
||
color: var(--text-secondary, #475569);
|
||
cursor: pointer;
|
||
transition: all 0.15s;
|
||
}
|
||
|
||
.xx-save-modal-tag-preset:hover {
|
||
border-color: var(--primary-300, #a5b4fc);
|
||
color: var(--primary-600, #4f46e5);
|
||
background: var(--primary-50, #eef2ff);
|
||
}
|
||
|
||
.xx-save-modal-footer {
|
||
display: flex;
|
||
justify-content: flex-end;
|
||
gap: 8px;
|
||
padding: 14px 20px;
|
||
border-top: 1px solid var(--border-light, #f1f5f9);
|
||
}
|
||
|
||
@keyframes xxFadeIn {
|
||
from {
|
||
opacity: 0;
|
||
}
|
||
to {
|
||
opacity: 1;
|
||
}
|
||
}
|
||
|
||
@keyframes xxSlideUp {
|
||
from {
|
||
transform: translateY(12px);
|
||
opacity: 0;
|
||
}
|
||
to {
|
||
transform: translateY(0);
|
||
opacity: 1;
|
||
}
|
||
}
|
||
|
||
/* ── 素材选择模式切换 Tab ── */
|
||
.xx-material-mode-tabs {
|
||
display: flex;
|
||
gap: 0;
|
||
border: 1px solid var(--border-primary, #e2e8f0);
|
||
border-radius: 10px;
|
||
overflow: hidden;
|
||
margin-bottom: 4px;
|
||
}
|
||
|
||
.xx-material-mode-tab {
|
||
flex: 1;
|
||
padding: 10px 16px;
|
||
font-size: 13px;
|
||
font-weight: 500;
|
||
border: none;
|
||
background: var(--bg-surface, #fff);
|
||
color: var(--text-secondary, #64748b);
|
||
cursor: pointer;
|
||
transition: all 0.2s ease;
|
||
text-align: center;
|
||
}
|
||
|
||
.xx-material-mode-tab:first-child {
|
||
border-right: 1px solid var(--border-primary, #e2e8f0);
|
||
}
|
||
|
||
.xx-material-mode-tab:hover {
|
||
background: var(--primary-50, #eef2ff);
|
||
color: var(--primary-600, #4f46e5);
|
||
}
|
||
|
||
.xx-material-mode-tab.active {
|
||
background: var(--primary-500, #6366f1);
|
||
color: #fff;
|
||
font-weight: 600;
|
||
}
|
||
|
||
/* ── 自动匹配卡片 ── */
|
||
.xx-auto-match-card {
|
||
margin-top: 14px;
|
||
padding: 20px;
|
||
background: linear-gradient(135deg, #f0f4ff 0%, #faf5ff 100%);
|
||
border: 1px solid var(--border-primary, #e2e8f0);
|
||
border-radius: 14px;
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
text-align: center;
|
||
}
|
||
|
||
.xx-auto-match-icon {
|
||
font-size: 36px;
|
||
margin-bottom: 10px;
|
||
}
|
||
|
||
.xx-auto-match-body {
|
||
width: 100%;
|
||
}
|
||
|
||
.xx-auto-match-title {
|
||
font-size: 15px;
|
||
font-weight: 600;
|
||
color: var(--text-primary, #1e293b);
|
||
margin: 0 0 8px;
|
||
}
|
||
|
||
.xx-auto-match-desc {
|
||
font-size: 13px;
|
||
color: var(--text-secondary, #64748b);
|
||
line-height: 1.6;
|
||
margin: 0 0 14px;
|
||
}
|
||
|
||
.xx-auto-match-features {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
justify-content: center;
|
||
gap: 8px;
|
||
}
|
||
|
||
.xx-auto-match-feature {
|
||
display: inline-block;
|
||
padding: 4px 12px;
|
||
font-size: 12px;
|
||
color: var(--primary-600, #4f46e5);
|
||
background: rgba(255, 255, 255, 0.8);
|
||
border: 1px solid var(--border-light, #f1f5f9);
|
||
border-radius: 20px;
|
||
}
|
||
|
||
/* ── 智能素材匹配 ── */
|
||
.xx-smart-match-section {
|
||
margin-top: 14px;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 16px;
|
||
}
|
||
|
||
.xx-smart-match-input-area {
|
||
padding: 16px;
|
||
background: linear-gradient(135deg, #f0f4ff 0%, #faf5ff 100%);
|
||
border: 1px solid var(--border-primary, #e2e8f0);
|
||
border-radius: 14px;
|
||
}
|
||
|
||
.xx-smart-match-action-row {
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
}
|
||
|
||
/* textarea removed in Q5 */
|
||
|
||
.xx-smart-match-tip {
|
||
font-size: 12px;
|
||
color: var(--text-tertiary, #94a3b8);
|
||
}
|
||
|
||
.xx-smart-match-success {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
gap: 8px;
|
||
padding: 18px 20px;
|
||
background: #f0fdf4;
|
||
border: 1px solid #bbf7d0;
|
||
border-radius: 12px;
|
||
}
|
||
|
||
.xx-smart-match-loading {
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
justify-content: center;
|
||
padding: 40px 20px;
|
||
background: #f8fafc;
|
||
border-radius: 12px;
|
||
}
|
||
|
||
.xx-smart-match-empty {
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
justify-content: center;
|
||
padding: 30px 20px;
|
||
background: #f8fafc;
|
||
border-radius: 12px;
|
||
text-align: center;
|
||
}
|
||
|
||
/* ============================================================
|
||
AI 智能生成标题
|
||
============================================================ */
|
||
.xx-ai-title-section {
|
||
padding: 16px;
|
||
background: linear-gradient(135deg, #f0f4ff 0%, #faf5ff 100%);
|
||
border: 1px solid var(--border-primary, #e2e8f0);
|
||
border-radius: 14px;
|
||
margin-bottom: 16px;
|
||
}
|
||
|
||
.xx-ai-title-header {
|
||
margin-bottom: 10px;
|
||
}
|
||
|
||
.xx-ai-title-label {
|
||
font-size: 14px;
|
||
font-weight: 600;
|
||
color: var(--text-primary, #1e293b);
|
||
}
|
||
|
||
.xx-ai-title-input-row {
|
||
display: flex;
|
||
gap: 10px;
|
||
}
|
||
|
||
.xx-ai-title-input {
|
||
flex: 1;
|
||
padding: 10px 14px;
|
||
font-size: 13px;
|
||
border: 1px solid var(--border-primary, #e2e8f0);
|
||
border-radius: 10px;
|
||
background: #fff;
|
||
transition: border-color 0.2s;
|
||
}
|
||
|
||
.xx-ai-title-input:focus {
|
||
outline: none;
|
||
border-color: var(--primary-color, #4f46e5);
|
||
box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
|
||
}
|
||
|
||
.xx-ai-title-input::placeholder {
|
||
color: var(--text-tertiary, #94a3b8);
|
||
}
|
||
|
||
.xx-ai-title-results {
|
||
margin-top: 14px;
|
||
}
|
||
|
||
.xx-ai-title-results-header {
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
margin-bottom: 10px;
|
||
}
|
||
|
||
.xx-ai-title-results-count {
|
||
font-size: 13px;
|
||
font-weight: 500;
|
||
color: var(--text-primary, #1e293b);
|
||
}
|
||
|
||
.xx-ai-title-list {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 8px;
|
||
max-height: 320px;
|
||
overflow-y: auto;
|
||
padding-right: 4px;
|
||
}
|
||
|
||
.xx-ai-title-card {
|
||
position: relative;
|
||
padding: 12px 14px;
|
||
background: #fff;
|
||
border: 2px solid var(--border-primary, #e2e8f0);
|
||
border-radius: 10px;
|
||
cursor: pointer;
|
||
transition: all 0.2s ease;
|
||
}
|
||
|
||
.xx-ai-title-card:hover {
|
||
border-color: var(--primary-color, #4f46e5);
|
||
transform: translateX(2px);
|
||
}
|
||
|
||
.xx-ai-title-card.selected {
|
||
border-color: var(--primary-color, #4f46e5);
|
||
background: var(--primary-soft, #eef2ff);
|
||
}
|
||
|
||
.xx-ai-title-card-text {
|
||
font-size: 13px;
|
||
color: var(--text-primary, #1e293b);
|
||
line-height: 1.5;
|
||
padding-right: 50px;
|
||
}
|
||
|
||
.xx-ai-title-card-tag {
|
||
display: inline-block;
|
||
margin-top: 6px;
|
||
padding: 2px 8px;
|
||
font-size: 11px;
|
||
border-radius: 10px;
|
||
background: #f1f5f9;
|
||
color: var(--text-secondary, #64748b);
|
||
}
|
||
|
||
.xx-ai-title-card.catchy .xx-ai-title-card-tag {
|
||
background: #fef3c7;
|
||
color: #b45309;
|
||
}
|
||
|
||
.xx-ai-title-card.emotional .xx-ai-title-card-tag {
|
||
background: #fce7f3;
|
||
color: #be185d;
|
||
}
|
||
|
||
.xx-ai-title-card.informative .xx-ai-title-card-tag {
|
||
background: #dbeafe;
|
||
color: #1d4ed8;
|
||
}
|
||
|
||
.xx-ai-title-card-check {
|
||
position: absolute;
|
||
top: 50%;
|
||
right: 12px;
|
||
transform: translateY(-50%);
|
||
width: 20px;
|
||
height: 20px;
|
||
background: var(--primary-color, #4f46e5);
|
||
border-radius: 50%;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
}
|
||
|
||
.xx-ai-title-loading {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
padding: 24px;
|
||
font-size: 13px;
|
||
color: var(--text-secondary, #64748b);
|
||
}
|
||
|
||
.xx-divider {
|
||
display: flex;
|
||
align-items: center;
|
||
margin: 16px 0;
|
||
color: var(--text-tertiary, #94a3b8);
|
||
font-size: 12px;
|
||
}
|
||
|
||
.xx-divider::before,
|
||
.xx-divider::after {
|
||
content: "";
|
||
flex: 1;
|
||
height: 1px;
|
||
background: var(--border-primary, #e2e8f0);
|
||
}
|
||
|
||
.xx-divider span {
|
||
padding: 0 12px;
|
||
}
|
||
|
||
/* ============================================================
|
||
标题设置(选择标题步骤)
|
||
============================================================ */
|
||
.xx-title-ai-toggle {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
padding: 14px 16px;
|
||
background: var(--bg-secondary);
|
||
border-radius: var(--radius-sm);
|
||
margin-bottom: 18px;
|
||
}
|
||
|
||
.xx-toggle-label {
|
||
font-size: 14px;
|
||
font-weight: 500;
|
||
color: var(--text-primary);
|
||
}
|
||
|
||
.xx-switch {
|
||
width: 44px;
|
||
height: 24px;
|
||
background: var(--border-color);
|
||
border-radius: 12px;
|
||
position: relative;
|
||
cursor: pointer;
|
||
transition: background 0.2s;
|
||
}
|
||
|
||
.xx-switch.active {
|
||
background: var(--primary-color);
|
||
}
|
||
|
||
.xx-switch-knob {
|
||
position: absolute;
|
||
top: 2px;
|
||
left: 2px;
|
||
width: 20px;
|
||
height: 20px;
|
||
background: #fff;
|
||
border-radius: 50%;
|
||
transition: transform 0.2s;
|
||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
|
||
}
|
||
|
||
.xx-switch.active .xx-switch-knob {
|
||
transform: translateX(20px);
|
||
}
|
||
|
||
.xx-title-style-section {
|
||
margin-top: 22px;
|
||
padding-top: 20px;
|
||
border-top: 1px solid var(--border-light);
|
||
}
|
||
|
||
.xx-section-subtitle {
|
||
font-size: 14px;
|
||
font-weight: 600;
|
||
color: var(--text-primary);
|
||
margin: 0 0 16px;
|
||
}
|
||
|
||
.xx-title-style-row {
|
||
display: grid;
|
||
grid-template-columns: 1fr 1fr;
|
||
gap: 14px;
|
||
margin-bottom: 14px;
|
||
}
|
||
|
||
.xx-half-field {
|
||
margin-bottom: 0;
|
||
}
|
||
|
||
.xx-field-label-row {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
margin-bottom: 8px;
|
||
}
|
||
|
||
.xx-field-label-row label {
|
||
margin-bottom: 0;
|
||
}
|
||
|
||
.xx-field-value {
|
||
font-size: 13px;
|
||
font-weight: 600;
|
||
color: var(--primary-color);
|
||
}
|
||
|
||
.xx-slider {
|
||
width: 100%;
|
||
height: 6px;
|
||
-webkit-appearance: none;
|
||
appearance: none;
|
||
background: var(--border-color);
|
||
border-radius: 3px;
|
||
outline: none;
|
||
cursor: pointer;
|
||
}
|
||
|
||
.xx-slider::-webkit-slider-thumb {
|
||
-webkit-appearance: none;
|
||
appearance: none;
|
||
width: 18px;
|
||
height: 18px;
|
||
background: var(--primary-color);
|
||
border-radius: 50%;
|
||
cursor: pointer;
|
||
box-shadow: 0 2px 6px rgba(79, 70, 229, 0.3);
|
||
}
|
||
|
||
.xx-slider::-moz-range-thumb {
|
||
width: 18px;
|
||
height: 18px;
|
||
background: var(--primary-color);
|
||
border-radius: 50%;
|
||
cursor: pointer;
|
||
border: none;
|
||
box-shadow: 0 2px 6px rgba(79, 70, 229, 0.3);
|
||
}
|
||
|
||
/* 标题预设卡片网格 */
|
||
.xx-title-presets-grid {
|
||
display: grid;
|
||
grid-template-columns: repeat(6, 52px);
|
||
gap: 1px;
|
||
}
|
||
|
||
.xx-title-preset-card {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
width: 52px;
|
||
height: 52px;
|
||
padding: 0;
|
||
background: #404040;
|
||
border: 2px solid transparent;
|
||
border-radius: 8px;
|
||
cursor: pointer;
|
||
transition: all 0.15s;
|
||
}
|
||
|
||
.xx-title-preset-card:hover {
|
||
border-color: #666;
|
||
background: #4d4d4d;
|
||
}
|
||
|
||
.xx-title-preset-card.active {
|
||
border-color: #409eff;
|
||
background: #4d4d4d;
|
||
}
|
||
|
||
.xx-title-preset-preview-text {
|
||
font-size: 32px;
|
||
line-height: 1;
|
||
user-select: none;
|
||
}
|
||
|
||
/* 样式按钮组 */
|
||
.xx-style-btns {
|
||
display: flex;
|
||
gap: 8px;
|
||
}
|
||
|
||
.xx-style-btn {
|
||
width: 40px;
|
||
height: 40px;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
border: 1px solid var(--border-color);
|
||
border-radius: var(--radius-sm);
|
||
background: var(--bg-primary);
|
||
cursor: pointer;
|
||
font-size: 15px;
|
||
color: var(--text-secondary);
|
||
transition: all 0.15s;
|
||
}
|
||
|
||
.xx-style-btn:hover {
|
||
border-color: var(--primary-300);
|
||
color: var(--primary-color);
|
||
}
|
||
|
||
.xx-style-btn.active {
|
||
background: var(--primary-color);
|
||
border-color: var(--primary-color);
|
||
color: #fff;
|
||
}
|
||
/* ================================================================
|
||
封面设置
|
||
================================================================ */
|
||
|
||
.xx-cover-header {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
padding: 14px 16px;
|
||
background: var(--bg-tertiary);
|
||
border-radius: var(--radius-md);
|
||
margin-bottom: 16px;
|
||
}
|
||
|
||
.xx-cover-header-label {
|
||
font-size: 14px;
|
||
font-weight: 500;
|
||
color: var(--text-primary);
|
||
}
|
||
|
||
.xx-switch {
|
||
position: relative;
|
||
display: inline-block;
|
||
width: 40px;
|
||
height: 22px;
|
||
}
|
||
|
||
.xx-switch input {
|
||
opacity: 0;
|
||
width: 0;
|
||
height: 0;
|
||
}
|
||
|
||
.xx-switch-slider {
|
||
position: absolute;
|
||
cursor: pointer;
|
||
top: 0;
|
||
left: 0;
|
||
right: 0;
|
||
bottom: 0;
|
||
background-color: var(--border-color);
|
||
transition: 0.2s;
|
||
border-radius: 22px;
|
||
}
|
||
|
||
.xx-switch-slider:before {
|
||
position: absolute;
|
||
content: "";
|
||
height: 16px;
|
||
width: 16px;
|
||
left: 3px;
|
||
bottom: 3px;
|
||
background-color: white;
|
||
transition: 0.2s;
|
||
border-radius: 50%;
|
||
}
|
||
|
||
.xx-switch input:checked + .xx-switch-slider {
|
||
background-color: var(--primary-color);
|
||
}
|
||
|
||
.xx-switch input:checked + .xx-switch-slider:before {
|
||
transform: translateX(18px);
|
||
}
|
||
|
||
.xx-section-title {
|
||
font-size: 13px;
|
||
font-weight: 500;
|
||
color: var(--text-secondary);
|
||
margin: 16px 0 10px;
|
||
}
|
||
|
||
.xx-cover-mode-tabs {
|
||
display: flex;
|
||
gap: 8px;
|
||
margin-bottom: 16px;
|
||
}
|
||
|
||
.xx-cover-mode-tab {
|
||
flex: 1;
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
gap: 4px;
|
||
padding: 12px 8px;
|
||
border: 1.5px solid var(--border-color);
|
||
border-radius: var(--radius-md);
|
||
background: var(--bg-primary);
|
||
cursor: pointer;
|
||
transition: all 0.15s;
|
||
}
|
||
|
||
.xx-cover-mode-tab:hover {
|
||
border-color: var(--primary-300);
|
||
}
|
||
|
||
.xx-cover-mode-tab.active {
|
||
border-color: var(--primary-color);
|
||
background: var(--primary-50);
|
||
}
|
||
|
||
.xx-cover-mode-icon {
|
||
font-size: 20px;
|
||
}
|
||
|
||
.xx-cover-mode-label {
|
||
font-size: 12px;
|
||
color: var(--text-primary);
|
||
font-weight: 500;
|
||
}
|
||
|
||
.xx-cover-auto {
|
||
padding: 20px;
|
||
background: var(--bg-tertiary);
|
||
border-radius: var(--radius-md);
|
||
text-align: center;
|
||
}
|
||
|
||
.xx-cover-auto-desc {
|
||
font-size: 13px;
|
||
color: var(--text-secondary);
|
||
margin-bottom: 16px;
|
||
line-height: 1.6;
|
||
}
|
||
|
||
.xx-cover-auto-badge {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
padding: 10px 20px;
|
||
background: var(--primary-50);
|
||
border: 1px solid var(--primary-200);
|
||
border-radius: 20px;
|
||
font-size: 13px;
|
||
font-weight: 500;
|
||
color: var(--primary-color);
|
||
}
|
||
|
||
.xx-cover-frame {
|
||
margin-bottom: 16px;
|
||
}
|
||
|
||
.xx-cover-frame-preview {
|
||
margin-bottom: 16px;
|
||
}
|
||
|
||
.xx-cover-frame-placeholder {
|
||
aspect-ratio: 9 / 16;
|
||
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||
border-radius: var(--radius-md);
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
justify-content: center;
|
||
gap: 8px;
|
||
color: #fff;
|
||
}
|
||
|
||
.xx-cover-frame-icon {
|
||
font-size: 32px;
|
||
}
|
||
|
||
.xx-cover-frame-time {
|
||
font-size: 18px;
|
||
font-weight: 600;
|
||
font-family: monospace;
|
||
}
|
||
|
||
.xx-cover-frame-slider {
|
||
margin-bottom: 12px;
|
||
}
|
||
|
||
.xx-cover-frame-slider-header {
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
margin-bottom: 8px;
|
||
font-size: 13px;
|
||
color: var(--text-secondary);
|
||
}
|
||
|
||
.xx-cover-frame-value {
|
||
font-weight: 600;
|
||
color: var(--text-primary);
|
||
font-family: monospace;
|
||
}
|
||
|
||
.xx-cover-range {
|
||
width: 100%;
|
||
height: 4px;
|
||
-webkit-appearance: none;
|
||
appearance: none;
|
||
background: var(--border-color);
|
||
border-radius: 2px;
|
||
outline: none;
|
||
}
|
||
|
||
.xx-cover-range::-webkit-slider-thumb {
|
||
-webkit-appearance: none;
|
||
appearance: none;
|
||
width: 16px;
|
||
height: 16px;
|
||
background: var(--primary-color);
|
||
border-radius: 50%;
|
||
cursor: pointer;
|
||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
|
||
}
|
||
|
||
.xx-cover-frame-range {
|
||
display: flex;
|
||
justify-content: space-between;
|
||
font-size: 11px;
|
||
color: var(--text-tertiary);
|
||
margin-top: 4px;
|
||
}
|
||
|
||
.xx-cover-frame-quick {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
flex-wrap: wrap;
|
||
}
|
||
|
||
.xx-cover-quick-label {
|
||
font-size: 12px;
|
||
color: var(--text-secondary);
|
||
}
|
||
|
||
.xx-cover-quick-btn {
|
||
padding: 4px 10px;
|
||
font-size: 12px;
|
||
border: 1px solid var(--border-color);
|
||
border-radius: 12px;
|
||
background: var(--bg-primary);
|
||
color: var(--text-secondary);
|
||
cursor: pointer;
|
||
transition: all 0.15s;
|
||
font-family: monospace;
|
||
}
|
||
|
||
.xx-cover-quick-btn:hover {
|
||
border-color: var(--primary-color);
|
||
color: var(--primary-color);
|
||
}
|
||
|
||
.xx-cover-upload {
|
||
margin-bottom: 16px;
|
||
}
|
||
|
||
.xx-cover-upload-area {
|
||
aspect-ratio: 9 / 16;
|
||
border: 2px dashed var(--border-color);
|
||
border-radius: var(--radius-md);
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
cursor: pointer;
|
||
transition: all 0.15s;
|
||
position: relative;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.xx-cover-upload-area:hover {
|
||
border-color: var(--primary-color);
|
||
background: var(--primary-50);
|
||
}
|
||
|
||
.xx-cover-upload-placeholder {
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
gap: 6px;
|
||
color: var(--text-secondary);
|
||
}
|
||
|
||
.xx-cover-upload-text {
|
||
font-size: 14px;
|
||
font-weight: 500;
|
||
}
|
||
|
||
.xx-cover-upload-hint {
|
||
font-size: 12px;
|
||
opacity: 0.7;
|
||
}
|
||
|
||
.xx-cover-upload-preview {
|
||
position: relative;
|
||
width: 100%;
|
||
height: 100%;
|
||
}
|
||
|
||
.xx-cover-upload-preview img {
|
||
width: 100%;
|
||
height: 100%;
|
||
object-fit: cover;
|
||
}
|
||
|
||
.xx-cover-upload-overlay {
|
||
position: absolute;
|
||
bottom: 0;
|
||
left: 0;
|
||
right: 0;
|
||
padding: 12px;
|
||
background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
|
||
color: #fff;
|
||
font-size: 13px;
|
||
text-align: center;
|
||
}
|
||
|
||
.xx-cover-preview-box {
|
||
position: relative;
|
||
aspect-ratio: 9 / 16;
|
||
max-width: 180px;
|
||
margin: 0 auto;
|
||
background: var(--bg-tertiary);
|
||
border-radius: var(--radius-md);
|
||
overflow: hidden;
|
||
border: 1px solid var(--border-color);
|
||
}
|
||
|
||
.xx-cover-preview-img {
|
||
width: 100%;
|
||
height: 100%;
|
||
object-fit: cover;
|
||
}
|
||
|
||
.xx-cover-preview-placeholder {
|
||
width: 100%;
|
||
height: 100%;
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
justify-content: center;
|
||
gap: 8px;
|
||
color: var(--text-tertiary);
|
||
font-size: 13px;
|
||
}
|
||
|
||
.xx-cover-preview-ratio {
|
||
position: absolute;
|
||
bottom: 8px;
|
||
right: 8px;
|
||
padding: 2px 8px;
|
||
background: rgba(0, 0, 0, 0.5);
|
||
color: #fff;
|
||
font-size: 11px;
|
||
border-radius: 4px;
|
||
font-family: monospace;
|
||
}
|
||
|
||
/* ================================================================
|
||
生成预览步骤
|
||
================================================================ */
|
||
|
||
/* ── 初始状态:生成按钮 ── */
|
||
.xx-preview-generate-section {
|
||
text-align: center;
|
||
padding: 40px 20px;
|
||
background: var(--bg-tertiary);
|
||
border-radius: var(--radius-lg);
|
||
border: 2px dashed var(--border-color);
|
||
max-width: 320px;
|
||
margin: 0 auto;
|
||
}
|
||
|
||
.xx-preview-generate-hint {
|
||
margin-bottom: 24px;
|
||
}
|
||
|
||
.xx-preview-generate-title {
|
||
font-size: 16px;
|
||
font-weight: 600;
|
||
color: var(--text-primary);
|
||
margin: 0 0 8px 0;
|
||
}
|
||
|
||
.xx-preview-generate-desc {
|
||
font-size: 13px;
|
||
color: var(--text-secondary);
|
||
margin: 0;
|
||
}
|
||
|
||
.xx-preview-generate-btn {
|
||
min-width: 160px;
|
||
height: 42px;
|
||
font-size: 14px;
|
||
}
|
||
|
||
/* ── 加载中状态 ── */
|
||
.xx-preview-loading {
|
||
text-align: center;
|
||
padding: 40px 20px;
|
||
background: var(--bg-tertiary);
|
||
border-radius: var(--radius-lg);
|
||
border: 1px solid var(--border-color);
|
||
max-width: 320px;
|
||
margin: 0 auto;
|
||
}
|
||
|
||
.xx-preview-loading-text {
|
||
font-size: 15px;
|
||
font-weight: 600;
|
||
color: var(--text-primary);
|
||
margin: 16px 0 8px 0;
|
||
}
|
||
|
||
.xx-preview-loading-desc {
|
||
font-size: 13px;
|
||
color: var(--text-secondary);
|
||
margin: 0;
|
||
}
|
||
|
||
/* ── 错误状态(手机屏尺寸)── */
|
||
.xx-preview-error {
|
||
text-align: center;
|
||
padding: 32px 20px;
|
||
background: rgba(239, 68, 68, 0.06);
|
||
border-radius: var(--radius-lg);
|
||
border: 1px solid rgba(239, 68, 68, 0.2);
|
||
max-width: 320px;
|
||
margin: 0 auto;
|
||
}
|
||
|
||
.xx-preview-error-text {
|
||
font-size: 15px;
|
||
font-weight: 600;
|
||
color: var(--error-color, #ef4444);
|
||
margin: 12px 0 6px 0;
|
||
}
|
||
|
||
.xx-preview-error-desc {
|
||
font-size: 13px;
|
||
color: var(--text-secondary);
|
||
margin: 0 0 16px 0;
|
||
}
|
||
|
||
/* ── 成功状态的操作按钮 ── */
|
||
.xx-preview-regenerate-btn {
|
||
margin-left: auto;
|
||
background: none;
|
||
border: none;
|
||
color: var(--text-tertiary);
|
||
font-size: 12px;
|
||
cursor: pointer;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 4px;
|
||
padding: 4px 8px;
|
||
border-radius: 4px;
|
||
transition: all 0.2s ease;
|
||
}
|
||
|
||
.xx-preview-regenerate-btn:hover {
|
||
color: var(--primary-color);
|
||
background: rgba(59, 130, 246, 0.1);
|
||
}
|
||
|
||
.xx-preview-tip {
|
||
display: flex;
|
||
align-items: center;
|
||
padding: 12px 16px;
|
||
background: rgba(82, 196, 26, 0.08);
|
||
border: 1px solid rgba(82, 196, 26, 0.2);
|
||
border-radius: var(--radius-md);
|
||
margin-bottom: 20px;
|
||
font-size: 13px;
|
||
color: var(--text-primary);
|
||
max-width: 320px;
|
||
margin-left: auto;
|
||
margin-right: auto;
|
||
}
|
||
|
||
.xx-preview-plan-card {
|
||
background: var(--bg-tertiary);
|
||
border-radius: var(--radius-lg);
|
||
padding: 20px;
|
||
border: 1px solid var(--border-color);
|
||
}
|
||
|
||
.xx-preview-plan-title {
|
||
font-size: 15px;
|
||
font-weight: 600;
|
||
color: var(--text-primary);
|
||
margin-bottom: 16px;
|
||
padding-bottom: 12px;
|
||
border-bottom: 1px solid var(--border-color);
|
||
}
|
||
|
||
.xx-preview-plan-info {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 12px;
|
||
margin-bottom: 16px;
|
||
}
|
||
|
||
.xx-preview-plan-row {
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
}
|
||
|
||
.xx-preview-plan-label {
|
||
font-size: 13px;
|
||
color: var(--text-secondary);
|
||
}
|
||
|
||
.xx-preview-plan-value {
|
||
font-size: 13px;
|
||
font-weight: 500;
|
||
color: var(--text-primary);
|
||
}
|
||
|
||
.xx-preview-plan-hint {
|
||
font-size: 12px;
|
||
color: var(--text-tertiary);
|
||
padding: 10px 12px;
|
||
background: var(--bg-primary);
|
||
border-radius: var(--radius-sm);
|
||
line-height: 1.5;
|
||
}
|
||
|
||
/* ================================================================
|
||
生成结果(右侧)
|
||
================================================================ */
|
||
|
||
.xx-preview-header {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
margin-bottom: 16px;
|
||
}
|
||
|
||
.xx-preview-header h3 {
|
||
margin: 0;
|
||
font-size: 16px;
|
||
font-weight: 600;
|
||
}
|
||
|
||
.xx-preview-badge {
|
||
font-size: 12px;
|
||
color: var(--text-secondary);
|
||
background: var(--bg-tertiary);
|
||
padding: 2px 8px;
|
||
border-radius: 12px;
|
||
}
|
||
|
||
.xx-preview-empty {
|
||
text-align: center;
|
||
padding: 40px 0;
|
||
}
|
||
|
||
.xx-preview-empty-title {
|
||
font-size: 14px;
|
||
font-weight: 500;
|
||
color: var(--text-secondary);
|
||
margin: 0 0 4px 0;
|
||
}
|
||
|
||
.xx-preview-empty-desc {
|
||
font-size: 12px;
|
||
color: var(--text-tertiary);
|
||
margin: 0;
|
||
}
|
||
|
||
.xx-preview-loading-panel {
|
||
text-align: center;
|
||
}
|
||
|
||
.xx-preview-loading-center {
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
justify-content: center;
|
||
height: 100%;
|
||
position: relative;
|
||
z-index: 2;
|
||
}
|
||
|
||
/* ── 整体进度条(手机屏尺寸)── */
|
||
.xx-preview-progress-bar {
|
||
max-width: 320px;
|
||
margin: 12px auto;
|
||
height: 6px;
|
||
background: var(--bg-tertiary);
|
||
border-radius: 3px;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.xx-preview-progress-bar-wrap {
|
||
width: 100%;
|
||
height: 4px;
|
||
background: var(--bg-tertiary);
|
||
border-radius: 2px;
|
||
margin-top: 12px;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.xx-preview-progress-fill {
|
||
height: 100%;
|
||
background: linear-gradient(90deg, #3b82f6, #8b5cf6);
|
||
border-radius: 2px;
|
||
transition: width 0.3s ease;
|
||
}
|
||
|
||
.xx-preview-error-panel {
|
||
text-align: center;
|
||
}
|
||
|
||
.xx-preview-video--error {
|
||
opacity: 0.7;
|
||
}
|
||
|
||
.xx-preview-error-msg {
|
||
font-size: 13px;
|
||
color: #ef4444;
|
||
margin: 12px 0;
|
||
}
|
||
|
||
.xx-preview-info {
|
||
margin-top: 16px;
|
||
padding-top: 16px;
|
||
border-top: 1px solid var(--border-color);
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 8px;
|
||
}
|
||
|
||
.xx-preview-info-row {
|
||
display: flex;
|
||
justify-content: space-between;
|
||
font-size: 13px;
|
||
color: var(--text-secondary);
|
||
}
|
||
|
||
.xx-preview-info-row span:last-child {
|
||
color: var(--text-primary);
|
||
font-weight: 500;
|
||
}
|
||
|
||
/* Step3 内部进度条 */
|
||
.xx-preview-loading .xx-preview-progress-bar {
|
||
width: 200px;
|
||
height: 6px;
|
||
background: var(--bg-tertiary);
|
||
border-radius: 3px;
|
||
margin: 12px auto 0;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.xx-preview-loading .xx-preview-progress-fill {
|
||
height: 100%;
|
||
background: linear-gradient(90deg, #3b82f6, #8b5cf6);
|
||
border-radius: 3px;
|
||
transition: width 0.3s ease;
|
||
}
|
||
|
||
.xx-preview-video-wrapper {
|
||
margin: 16px 0;
|
||
display: flex;
|
||
justify-content: center;
|
||
}
|
||
|
||
.xx-preview-video-wrapper .xx-preview-video {
|
||
max-width: 300px;
|
||
width: 100%;
|
||
aspect-ratio: 9 / 16;
|
||
margin-bottom: 0;
|
||
}
|
||
|
||
.xx-generate-result {
|
||
background: var(--bg-secondary);
|
||
border-radius: var(--radius-xl);
|
||
padding: 20px;
|
||
display: flex;
|
||
flex-direction: column;
|
||
height: 100%;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.xx-result-header {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
margin-bottom: 16px;
|
||
}
|
||
|
||
.xx-result-header h3 {
|
||
font-size: 16px;
|
||
font-weight: 600;
|
||
color: var(--text-primary);
|
||
margin: 0;
|
||
}
|
||
|
||
.xx-result-count {
|
||
font-size: 12px;
|
||
color: var(--text-secondary);
|
||
background: var(--bg-tertiary);
|
||
padding: 2px 10px;
|
||
border-radius: 12px;
|
||
}
|
||
|
||
.xx-result-empty {
|
||
flex: 1;
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
justify-content: center;
|
||
text-align: center;
|
||
padding: 40px 20px;
|
||
}
|
||
|
||
.xx-result-progress {
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
padding: 40px 20px;
|
||
gap: 20px;
|
||
}
|
||
|
||
.xx-progress-circle {
|
||
position: relative;
|
||
width: 80px;
|
||
height: 80px;
|
||
}
|
||
|
||
.xx-progress-circle svg {
|
||
width: 100%;
|
||
height: 100%;
|
||
}
|
||
|
||
.xx-progress-percent {
|
||
position: absolute;
|
||
top: 50%;
|
||
left: 50%;
|
||
transform: translate(-50%, -50%);
|
||
font-size: 14px;
|
||
font-weight: 600;
|
||
color: var(--text-primary);
|
||
}
|
||
|
||
.xx-progress-text {
|
||
text-align: center;
|
||
}
|
||
|
||
/* 视频卡片网格 */
|
||
.xx-video-grid {
|
||
display: grid;
|
||
grid-template-columns: repeat(2, 1fr);
|
||
gap: 12px;
|
||
overflow-y: auto;
|
||
flex: 1;
|
||
padding-right: 4px;
|
||
}
|
||
|
||
.xx-video-card {
|
||
background: var(--bg-primary);
|
||
border-radius: var(--radius-md);
|
||
overflow: hidden;
|
||
cursor: pointer;
|
||
transition: all 0.2s;
|
||
border: 1px solid var(--border-color);
|
||
}
|
||
|
||
.xx-video-card:hover {
|
||
transform: translateY(-2px);
|
||
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
|
||
border-color: var(--primary-300);
|
||
}
|
||
|
||
.xx-video-thumb {
|
||
position: relative;
|
||
aspect-ratio: 9 / 16;
|
||
background: var(--bg-tertiary);
|
||
overflow: hidden;
|
||
}
|
||
|
||
.xx-video-thumb img {
|
||
width: 100%;
|
||
height: 100%;
|
||
object-fit: cover;
|
||
}
|
||
|
||
.xx-video-thumb-placeholder {
|
||
width: 100%;
|
||
height: 100%;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
color: var(--text-tertiary);
|
||
}
|
||
|
||
.xx-video-play-overlay {
|
||
position: absolute;
|
||
top: 0;
|
||
left: 0;
|
||
right: 0;
|
||
bottom: 0;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
background: rgba(0, 0, 0, 0.3);
|
||
opacity: 0;
|
||
transition: opacity 0.2s;
|
||
}
|
||
|
||
.xx-video-card:hover .xx-video-play-overlay {
|
||
opacity: 1;
|
||
}
|
||
|
||
.xx-video-duration {
|
||
position: absolute;
|
||
bottom: 6px;
|
||
right: 6px;
|
||
padding: 2px 6px;
|
||
background: rgba(0, 0, 0, 0.7);
|
||
color: #fff;
|
||
font-size: 11px;
|
||
border-radius: 4px;
|
||
font-family: monospace;
|
||
}
|
||
|
||
.xx-video-info {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
padding: 10px 12px;
|
||
}
|
||
|
||
.xx-video-title {
|
||
font-size: 13px;
|
||
font-weight: 500;
|
||
color: var(--text-primary);
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.xx-video-actions {
|
||
display: flex;
|
||
gap: 6px;
|
||
}
|
||
|
||
.xx-video-action-btn {
|
||
width: 28px;
|
||
height: 28px;
|
||
border: none;
|
||
background: var(--bg-tertiary);
|
||
border-radius: 6px;
|
||
cursor: pointer;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
font-size: 13px;
|
||
color: var(--text-secondary);
|
||
transition: all 0.15s;
|
||
}
|
||
|
||
.xx-video-action-btn:hover {
|
||
background: var(--primary-100);
|
||
color: var(--primary-color);
|
||
}
|
||
|
||
.xx-result-footer {
|
||
margin-top: 12px;
|
||
padding-top: 12px;
|
||
border-top: 1px solid var(--border-color);
|
||
}
|
||
|
||
.xx-btn-block {
|
||
width: 100%;
|
||
justify-content: center;
|
||
}
|
||
|
||
/* 预览弹窗 */
|
||
.xx-preview-modal-content {
|
||
background: #000;
|
||
border-radius: 8px;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.xx-preview-modal .ant-modal-content {
|
||
padding: 0 !important;
|
||
}
|
||
|
||
.xx-preview-modal .ant-modal-close {
|
||
color: #fff !important;
|
||
}
|
||
|
||
/* ── 封面设置区域改造样式 ── */
|
||
|
||
/* 封面操作按钮区(单视频全宽页居中) */
|
||
.xx-cover-actions {
|
||
display: flex;
|
||
gap: 12px;
|
||
margin-bottom: 12px;
|
||
justify-content: center;
|
||
}
|
||
|
||
/* 已选模板文字 */
|
||
.xx-cover-selected-template {
|
||
font-size: 13px;
|
||
color: var(--text-secondary);
|
||
margin-bottom: 16px;
|
||
}
|
||
|
||
/* 封面设置弹窗 - 工具栏 */
|
||
.xx-cover-modal-toolbar {
|
||
display: flex;
|
||
gap: 8px;
|
||
margin-bottom: 20px;
|
||
flex-wrap: wrap;
|
||
}
|
||
|
||
/* 封面模板网格 */
|
||
.xx-cover-template-grid {
|
||
display: grid;
|
||
grid-template-columns: repeat(4, 1fr);
|
||
gap: 16px;
|
||
}
|
||
|
||
/* 封面模板卡片 */
|
||
.xx-cover-template-card {
|
||
border: 2px solid var(--border-color);
|
||
border-radius: var(--radius-md);
|
||
overflow: hidden;
|
||
cursor: pointer;
|
||
transition: border-color 0.2s;
|
||
}
|
||
.xx-cover-template-card:hover {
|
||
border-color: var(--primary-color);
|
||
}
|
||
.xx-cover-template-card.selected {
|
||
border-color: var(--primary-color);
|
||
box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
|
||
}
|
||
|
||
/* 卡片缩略图 */
|
||
.xx-cover-template-thumb {
|
||
aspect-ratio: 9/16;
|
||
background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
font-size: 32px;
|
||
color: #ccc;
|
||
}
|
||
|
||
/* 卡片信息区 */
|
||
.xx-cover-template-info {
|
||
padding: 8px;
|
||
}
|
||
.xx-cover-template-name {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 4px;
|
||
font-size: 13px;
|
||
font-weight: 500;
|
||
margin-bottom: 2px;
|
||
}
|
||
.xx-cover-template-badge {
|
||
font-size: 11px;
|
||
color: #7c3aed;
|
||
background: rgba(124, 58, 237, 0.1);
|
||
padding: 1px 6px;
|
||
border-radius: 4px;
|
||
white-space: nowrap;
|
||
}
|
||
.xx-cover-template-date {
|
||
font-size: 11px;
|
||
color: var(--text-tertiary);
|
||
margin-bottom: 6px;
|
||
}
|
||
.xx-cover-template-actions {
|
||
display: flex;
|
||
gap: 4px;
|
||
}
|
||
|
||
/* 封面编辑器 */
|
||
.xx-cover-editor-layout {
|
||
display: flex;
|
||
gap: 20px;
|
||
min-height: 500px;
|
||
}
|
||
.xx-cover-editor-left {
|
||
width: 280px;
|
||
flex-shrink: 0;
|
||
}
|
||
.xx-cover-editor-right {
|
||
flex: 1;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
background: #f5f5f5;
|
||
border-radius: var(--radius-md);
|
||
}
|
||
.xx-cover-editor-canvas {
|
||
width: 225px;
|
||
height: 400px;
|
||
background: #ddd;
|
||
position: relative;
|
||
border-radius: 8px;
|
||
overflow: hidden;
|
||
}
|
||
.xx-cover-editor-portrait {
|
||
position: absolute;
|
||
top: 20%;
|
||
left: 15%;
|
||
width: 70%;
|
||
height: 45%;
|
||
background: #a8d4f0;
|
||
border: 2px solid #333;
|
||
}
|
||
.xx-cover-editor-handle {
|
||
position: absolute;
|
||
width: 8px;
|
||
height: 8px;
|
||
background: #333;
|
||
border: 1px solid white;
|
||
}
|
||
|
||
/* 编辑器折叠面板 */
|
||
.xx-cover-editor-section {
|
||
border: 1px solid var(--border-color);
|
||
border-radius: var(--radius-sm);
|
||
margin-bottom: 8px;
|
||
}
|
||
.xx-cover-editor-section-header {
|
||
padding: 10px 12px;
|
||
font-size: 13px;
|
||
font-weight: 500;
|
||
cursor: pointer;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
background: var(--bg-tertiary);
|
||
}
|
||
.xx-cover-editor-section-body {
|
||
padding: 12px;
|
||
font-size: 12px;
|
||
color: var(--text-secondary);
|
||
}
|
||
|
||
/* 编辑器顶部 */
|
||
.xx-cover-editor-header {
|
||
margin-bottom: 16px;
|
||
}
|
||
.xx-cover-editor-name-input {
|
||
width: 100%;
|
||
padding: 8px 12px;
|
||
border: 1px solid var(--border-color);
|
||
border-radius: var(--radius-sm);
|
||
font-size: 14px;
|
||
margin-bottom: 12px;
|
||
}
|
||
.xx-cover-editor-header-actions {
|
||
display: flex;
|
||
justify-content: flex-end;
|
||
gap: 8px;
|
||
}
|
||
|
||
/* 编辑器画布内文字占位 */
|
||
.xx-cover-editor-title-placeholder {
|
||
position: absolute;
|
||
top: 72%;
|
||
left: 50%;
|
||
transform: translateX(-50%);
|
||
font-size: 16px;
|
||
font-weight: 700;
|
||
color: #fff;
|
||
text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
|
||
white-space: nowrap;
|
||
}
|
||
.xx-cover-editor-subtitle-placeholder {
|
||
position: absolute;
|
||
top: 82%;
|
||
left: 50%;
|
||
transform: translateX(-50%);
|
||
font-size: 11px;
|
||
color: rgba(255, 255, 255, 0.85);
|
||
white-space: nowrap;
|
||
}
|
||
|
||
/* ================================================================
|
||
Issue #1677 多视频批量生成
|
||
================================================================ */
|
||
|
||
/* ── Step4 布局对调:左侧预览大区域,右侧标题边栏 ── */
|
||
.xx-generate-layout.step4-layout {
|
||
grid-template-columns: 1fr 380px;
|
||
align-items: start;
|
||
}
|
||
|
||
.xx-generate-preview-col {
|
||
min-width: 0;
|
||
position: sticky;
|
||
top: 16px;
|
||
}
|
||
|
||
.xx-generate-preview-col .xx-form-section {
|
||
margin: 0;
|
||
}
|
||
|
||
.xx-title-sidebar {
|
||
max-height: calc(100vh - 140px);
|
||
overflow-y: auto;
|
||
}
|
||
|
||
/* ── 数量选择弹窗 ── */
|
||
.xx-modal-mask {
|
||
position: fixed;
|
||
inset: 0;
|
||
background: rgba(0, 0, 0, 0.45);
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
z-index: 1000;
|
||
}
|
||
|
||
.xx-modal-box {
|
||
background: var(--bg-primary, #fff);
|
||
border-radius: 16px;
|
||
padding: 28px;
|
||
width: 420px;
|
||
max-width: calc(100vw - 32px);
|
||
box-shadow: 0 12px 48px rgba(0, 0, 0, 0.18);
|
||
}
|
||
|
||
.xx-count-selector {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
gap: 16px;
|
||
margin: 8px 0 16px;
|
||
}
|
||
|
||
.xx-count-btn {
|
||
width: 44px;
|
||
height: 44px;
|
||
border-radius: 50%;
|
||
border: 1px solid var(--border-primary, #d9d9d9);
|
||
background: var(--bg-secondary, #f5f5f5);
|
||
font-size: 22px;
|
||
line-height: 1;
|
||
cursor: pointer;
|
||
color: var(--text-primary, #333);
|
||
transition: all 0.15s;
|
||
}
|
||
|
||
.xx-count-btn:hover:not(:disabled) {
|
||
border-color: #1677ff;
|
||
color: #1677ff;
|
||
}
|
||
|
||
.xx-count-btn:disabled {
|
||
opacity: 0.4;
|
||
cursor: not-allowed;
|
||
}
|
||
|
||
.xx-count-input {
|
||
width: 88px;
|
||
height: 52px;
|
||
text-align: center;
|
||
font-size: 26px;
|
||
font-weight: 700;
|
||
border: 2px solid var(--border-primary, #d9d9d9);
|
||
border-radius: 12px;
|
||
color: var(--text-primary, #333);
|
||
background: var(--bg-primary, #fff);
|
||
}
|
||
|
||
.xx-count-input:focus {
|
||
outline: none;
|
||
border-color: #1677ff;
|
||
}
|
||
|
||
/* 隐藏 number input 上下箭头 */
|
||
.xx-count-input::-webkit-outer-spin-button,
|
||
.xx-count-input::-webkit-inner-spin-button {
|
||
-webkit-appearance: none;
|
||
margin: 0;
|
||
}
|
||
.xx-count-input {
|
||
-moz-appearance: textfield;
|
||
appearance: textfield;
|
||
}
|
||
|
||
.xx-count-quick {
|
||
display: flex;
|
||
gap: 8px;
|
||
justify-content: center;
|
||
margin-bottom: 20px;
|
||
}
|
||
|
||
.xx-count-chip {
|
||
padding: 6px 16px;
|
||
border-radius: 999px;
|
||
border: 1px solid var(--border-primary, #d9d9d9);
|
||
background: var(--bg-primary, #fff);
|
||
font-size: 13px;
|
||
cursor: pointer;
|
||
color: var(--text-secondary, #666);
|
||
transition: all 0.15s;
|
||
}
|
||
|
||
.xx-count-chip:hover {
|
||
border-color: #1677ff;
|
||
color: #1677ff;
|
||
}
|
||
|
||
.xx-count-chip.active {
|
||
background: #1677ff;
|
||
border-color: #1677ff;
|
||
color: #fff;
|
||
}
|
||
|
||
.xx-count-actions {
|
||
display: flex;
|
||
gap: 12px;
|
||
}
|
||
|
||
.xx-count-actions .xx-btn {
|
||
flex: 1;
|
||
}
|
||
|
||
/* ── 批量预览网格 ── */
|
||
.xx-variant-grid {
|
||
display: grid;
|
||
grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
|
||
gap: 16px;
|
||
}
|
||
|
||
.xx-variant-card {
|
||
position: relative;
|
||
border: 2px solid var(--border-primary, #e8e8e8);
|
||
border-radius: 12px;
|
||
padding: 10px;
|
||
background: var(--bg-primary, #fff);
|
||
cursor: pointer;
|
||
transition: all 0.18s;
|
||
}
|
||
|
||
.xx-variant-card:hover {
|
||
border-color: #91caff;
|
||
}
|
||
|
||
.xx-variant-card.selected {
|
||
border-color: #1677ff;
|
||
box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.12);
|
||
}
|
||
|
||
.xx-variant-card.failed {
|
||
border-color: #ffccc7;
|
||
cursor: default;
|
||
}
|
||
|
||
.xx-variant-check {
|
||
position: absolute;
|
||
top: 14px;
|
||
left: 14px;
|
||
z-index: 3;
|
||
width: 26px;
|
||
height: 26px;
|
||
border-radius: 50%;
|
||
border: 2px solid #fff;
|
||
background: rgba(0, 0, 0, 0.35);
|
||
color: #fff;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
font-size: 14px;
|
||
font-weight: 700;
|
||
}
|
||
|
||
.xx-variant-check.checked {
|
||
background: #1677ff;
|
||
border-color: #1677ff;
|
||
}
|
||
|
||
.xx-variant-index {
|
||
font-size: 13px;
|
||
font-weight: 600;
|
||
color: var(--text-secondary, #666);
|
||
margin-bottom: 8px;
|
||
}
|
||
|
||
.xx-variant-video-wrap {
|
||
position: relative;
|
||
border-radius: 8px;
|
||
overflow: hidden;
|
||
background: #000;
|
||
aspect-ratio: 9 / 16;
|
||
max-height: 420px;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
}
|
||
|
||
.xx-variant-loading,
|
||
.xx-variant-failed {
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
gap: 10px;
|
||
color: var(--text-secondary, #999);
|
||
font-size: 12px;
|
||
padding: 16px;
|
||
text-align: center;
|
||
}
|
||
|
||
.xx-variant-progress {
|
||
width: 120px;
|
||
height: 4px;
|
||
border-radius: 2px;
|
||
background: rgba(255, 255, 255, 0.25);
|
||
overflow: hidden;
|
||
}
|
||
|
||
.xx-variant-progress-bar {
|
||
height: 100%;
|
||
background: #1677ff;
|
||
border-radius: 2px;
|
||
transition: width 0.4s;
|
||
}
|
||
|
||
.xx-variant-progress-text {
|
||
color: rgba(255, 255, 255, 0.85);
|
||
font-size: 12px;
|
||
}
|
||
|
||
.xx-variant-title-overlay {
|
||
position: absolute;
|
||
left: 8%;
|
||
right: 8%;
|
||
text-align: center;
|
||
font-weight: 700;
|
||
line-height: 1.3;
|
||
pointer-events: none;
|
||
text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
|
||
word-break: break-all;
|
||
}
|
||
|
||
.xx-variant-title-overlay.pos-top {
|
||
top: 8%;
|
||
}
|
||
|
||
.xx-variant-title-overlay.pos-center {
|
||
top: 50%;
|
||
transform: translateY(-50%);
|
||
}
|
||
|
||
.xx-variant-title-overlay.pos-bottom,
|
||
.xx-variant-title-overlay.pos-custom {
|
||
bottom: 10%;
|
||
}
|
||
|
||
.xx-variant-footer {
|
||
min-height: 22px;
|
||
margin-top: 8px;
|
||
font-size: 12px;
|
||
}
|
||
|
||
.xx-variant-ready-tag {
|
||
color: #52c41a;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 4px;
|
||
}
|
||
|
||
.xx-variant-skip-tag {
|
||
color: var(--text-tertiary, #999);
|
||
}
|
||
|
||
/* ── 批量配音列表 ── */
|
||
.xx-per-voice-list {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 16px;
|
||
}
|
||
|
||
.xx-per-voice-list .xx-form-section {
|
||
margin: 0;
|
||
}
|
||
|
||
/* ── 批量封面网格(单卡/少卡时居中排列,卡片限宽不拉伸) ── */
|
||
.xx-cover-grid {
|
||
display: grid;
|
||
grid-template-columns: repeat(auto-fill, minmax(180px, 220px));
|
||
justify-content: center;
|
||
gap: 16px;
|
||
}
|
||
|
||
.xx-cover-card {
|
||
border: 1px solid var(--border-primary, #e8e8e8);
|
||
border-radius: 12px;
|
||
padding: 10px;
|
||
background: var(--bg-primary, #fff);
|
||
}
|
||
|
||
.xx-cover-card-title {
|
||
font-size: 13px;
|
||
font-weight: 600;
|
||
color: var(--text-secondary, #666);
|
||
margin-bottom: 8px;
|
||
}
|
||
|
||
.xx-cover-card-box {
|
||
position: relative;
|
||
border-radius: 8px;
|
||
overflow: hidden;
|
||
background: #000;
|
||
aspect-ratio: 9 / 16;
|
||
max-height: 300px;
|
||
}
|
||
|
||
.xx-cover-card-img {
|
||
width: 100%;
|
||
height: 100%;
|
||
object-fit: cover;
|
||
display: block;
|
||
}
|
||
|
||
.xx-cover-card-placeholder,
|
||
.xx-cover-card-loading {
|
||
position: absolute;
|
||
inset: 0;
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
justify-content: center;
|
||
gap: 8px;
|
||
color: var(--text-tertiary, #999);
|
||
background: var(--bg-secondary, #f7f7f7);
|
||
font-size: 13px;
|
||
}
|
||
|
||
.xx-cover-card-ratio {
|
||
position: absolute;
|
||
right: 6px;
|
||
bottom: 6px;
|
||
background: rgba(0, 0, 0, 0.55);
|
||
color: #fff;
|
||
font-size: 10px;
|
||
padding: 1px 6px;
|
||
border-radius: 4px;
|
||
}
|
||
|
||
/* ── 响应式:窄屏 Step4 回退单列 ── */
|
||
@media (max-width: 960px) {
|
||
.xx-generate-layout.step4-layout {
|
||
grid-template-columns: 1fr;
|
||
}
|
||
|
||
.xx-generate-preview-col {
|
||
position: static;
|
||
}
|
||
|
||
.xx-title-sidebar {
|
||
max-height: none;
|
||
}
|
||
}
|
||
|
||
/* ============================================================
|
||
批量前端 Canvas 预览网格(Issue #1677 修正:纯前端实时预览)
|
||
============================================================ */
|
||
/* #1741:卡片整体缩小至约 3/5——宽屏排 3 列(卡片限宽 220px 居中),
|
||
中屏自动回退 2 列,窄屏 1 列(见下方媒体查询);卡片保持 9:16 比例不变形 */
|
||
.xx-canvas-grid {
|
||
display: grid;
|
||
grid-template-columns: repeat(auto-fill, minmax(160px, 180px));
|
||
justify-content: center;
|
||
gap: 14px;
|
||
}
|
||
|
||
/* 窄屏单列时卡片限宽居中,避免 1fr 拉伸导致卡片过高 */
|
||
@media (max-width: 960px) {
|
||
.xx-canvas-grid {
|
||
grid-template-columns: minmax(0, 320px);
|
||
}
|
||
}
|
||
|
||
.xx-canvas-grid-card {
|
||
position: relative;
|
||
border: 2px solid var(--border-primary, #e2e8f0);
|
||
border-radius: 12px;
|
||
overflow: hidden;
|
||
background: transparent;
|
||
transition: border-color 0.2s ease;
|
||
min-width: 0;
|
||
}
|
||
|
||
.xx-canvas-grid-card.selected {
|
||
border-color: var(--primary-color, #1677ff);
|
||
box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.15);
|
||
}
|
||
|
||
.xx-canvas-grid-card-bar {
|
||
position: relative;
|
||
z-index: 2;
|
||
display: flex;
|
||
align-items: center;
|
||
padding: 6px 10px;
|
||
background: var(--bg-surface, #fff);
|
||
border-bottom: 1px solid var(--border-primary, #e2e8f0);
|
||
}
|
||
|
||
.xx-canvas-grid-check {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
font-size: 13px;
|
||
font-weight: 500;
|
||
color: var(--text-primary, #1a1a1a);
|
||
cursor: pointer;
|
||
user-select: none;
|
||
}
|
||
|
||
.xx-canvas-grid-check input[type="checkbox"] {
|
||
width: 15px;
|
||
height: 15px;
|
||
cursor: pointer;
|
||
accent-color: var(--primary-color, #1677ff);
|
||
}
|
||
|
||
/* #1750:批量变体片段加载/错误占位(9:16 竖屏比例,与播放器卡片同尺寸防塌陷) */
|
||
.xx-variant-clips-status {
|
||
position: relative;
|
||
width: 100%;
|
||
aspect-ratio: 9 / 16;
|
||
max-height: 70vh;
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
justify-content: center;
|
||
gap: 4px;
|
||
font-size: 13px;
|
||
color: rgba(255, 255, 255, 0.75);
|
||
background: #0a0a0a;
|
||
border-radius: 16px;
|
||
overflow: hidden;
|
||
box-shadow:
|
||
0 4px 6px -1px rgba(0, 0, 0, 0.3),
|
||
0 20px 50px -12px rgba(0, 0, 0, 0.5),
|
||
inset 0 0 0 1px rgba(255, 255, 255, 0.06);
|
||
}
|
||
|
||
.xx-variant-clips-status .anticon {
|
||
font-size: 22px;
|
||
}
|
||
|
||
.xx-variant-clips-error-text {
|
||
color: rgba(255, 255, 255, 0.85);
|
||
font-size: 13px;
|
||
}
|
||
|
||
/* ============================================================
|
||
批量标题:AI 一键生成行(Issue #1677)
|
||
============================================================ */
|
||
.xx-batch-ai-row {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
align-items: center;
|
||
gap: 8px;
|
||
padding: 10px 12px;
|
||
margin-bottom: 12px;
|
||
background: var(--bg-secondary, #f7f8fa);
|
||
border: 1px dashed var(--border-primary, #d9d9d9);
|
||
border-radius: 10px;
|
||
}
|
||
|
||
.xx-batch-ai-row .xx-form-field {
|
||
margin: 0;
|
||
flex: 1;
|
||
min-width: 140px;
|
||
}
|
||
|
||
.xx-batch-titles {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 10px;
|
||
}
|
||
|
||
/* ============================================================
|
||
第5步确认生成:批量渲染进度网格(Issue #1677)
|
||
============================================================ */
|
||
.xx-batch-gen-grid {
|
||
justify-items: center;
|
||
display: grid;
|
||
grid-template-columns: repeat(auto-fill, minmax(160px, 180px));
|
||
justify-content: center;
|
||
gap: 14px;
|
||
}
|
||
|
||
.xx-batch-gen-card {
|
||
border: 1px solid var(--border-primary, #e2e8f0);
|
||
border-radius: 12px;
|
||
padding: 14px;
|
||
background: transparent;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 10px;
|
||
min-width: 0;
|
||
}
|
||
|
||
.xx-batch-gen-card.status-completed {
|
||
border-color: rgba(82, 196, 26, 0.4);
|
||
background: rgba(82, 196, 26, 0.04);
|
||
}
|
||
|
||
.xx-batch-gen-card.status-failed {
|
||
border-color: rgba(239, 68, 68, 0.4);
|
||
background: rgba(239, 68, 68, 0.04);
|
||
}
|
||
|
||
.xx-batch-gen-card-head {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
gap: 8px;
|
||
}
|
||
|
||
.xx-batch-gen-card-title {
|
||
font-size: 14px;
|
||
font-weight: 600;
|
||
color: var(--text-primary, #1a1a1a);
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.xx-batch-gen-card-body {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 8px;
|
||
}
|
||
|
||
.xx-batch-gen-card-pct {
|
||
font-size: 13px;
|
||
color: var(--text-secondary, #666);
|
||
text-align: right;
|
||
}
|
||
|
||
.xx-batch-gen-card-done {
|
||
font-size: 13px;
|
||
color: var(--success-color, #52c41a);
|
||
padding: 8px 0;
|
||
}
|
||
|
||
.xx-batch-gen-card-failed {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 8px;
|
||
align-items: flex-start;
|
||
}
|
||
|
||
.xx-batch-gen-card-err {
|
||
font-size: 13px;
|
||
color: var(--error-color, #ef4444);
|
||
line-height: 1.5;
|
||
word-break: break-word;
|
||
}
|
||
|
||
/* ── 响应式:窄屏批量网格回退单列(.xx-canvas-grid 的窄屏限宽见网格定义处 #1741) ── */
|
||
@media (max-width: 960px) {
|
||
.xx-batch-gen-grid {
|
||
justify-items: center;
|
||
grid-template-columns: minmax(0, 320px);
|
||
}
|
||
}
|