Files
xiaoxia-saas/apps/web/src/pages/generate/generate.css
T
xiaoxia 1667b3878d
CI/CD Pipeline / Check if frontend-only change (push) Has been skipped
CI/CD Pipeline / Frontend Lint (push) Has been skipped
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 4m2s
CI/CD Pipeline / Build Staging Web Image (push) Successful in 4m19s
CI/CD Pipeline / Build Staging API Image (pull_request) Has been skipped
CI/CD Pipeline / Build Staging Web Image (pull_request) Has been skipped
CI/CD Pipeline / Build Staging Worker Image (pull_request) Has been skipped
CI/CD Pipeline / PR Build API Image (push) Has been skipped
CI/CD Pipeline / PR Build Web Image (push) Has been skipped
CI/CD Pipeline / PR Build Worker Image (push) Has been skipped
CI/CD Pipeline / Build Staging Worker Image (push) Successful in 4m42s
PR Automation / Auto Merge on CI Green + Approved (pull_request) Has been skipped
CI/CD Pipeline / Validate - Type Check (mypy) (push) Successful in 5m31s
CI/CD Pipeline / Validate - Migration (alembic) (push) Successful in 5m55s
CI/CD Pipeline / Frontend Lint (pull_request) Has been skipped
CI/CD Pipeline / Validate - Migration (alembic) (pull_request) Successful in 6m11s
CI/CD Pipeline / Frontend Unit Tests (pull_request) Has been skipped
CI/CD Pipeline / Validate - Type Check (mypy) (pull_request) Successful in 6m38s
CI/CD Pipeline / PR Build Web Image (pull_request) Has been skipped
CI/CD Pipeline / Build Staging API Image (push) Successful in 6m48s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Has been skipped
CI/CD Pipeline / PR Build API Image (pull_request) Successful in 1m55s
CI/CD Pipeline / Staging E2E Tests (pull_request) Has been skipped
CI/CD Pipeline / Staging API Integration Tests (pull_request) Has been skipped
CI/CD Pipeline / ACR Image Cleanup (pull_request) Has been skipped
CI/CD Pipeline / PR Build Worker Image (pull_request) Successful in 1m42s
Preview Deploy / Deploy Preview Environment (pull_request) Successful in 4m13s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (push) Successful in 2m10s
PR Automation / Auto Approve on CI Green (pull_request) Successful in 4m41s
CI/CD Pipeline / Frontend Unit Tests (push) Successful in 10m7s
AI Code Review / AI Code Review (pull_request) Failing after 6m50s
CI/CD Pipeline / Staging E2E Tests (push) Failing after 1m53s
CI/CD Pipeline / ACR Image Cleanup (push) Successful in 2m9s
CI/CD Pipeline / Validate - Code Quality (push) Successful in 12m39s
CI/CD Pipeline / Staging API Integration Tests (push) Successful in 4m4s
CI/CD Pipeline / Validate - Code Quality (pull_request) Successful in 13m4s
CI/CD Pipeline / Unit Tests (push) Has been cancelled
CI/CD Pipeline / Integration Tests (push) Has been cancelled
CI/CD Pipeline / Build Production API Image (push) Has been cancelled
CI/CD Pipeline / Build Production Web Image (push) Has been cancelled
CI/CD Pipeline / Build Production Worker Image (push) Has been cancelled
CI/CD Pipeline / Deploy Production (push) Has been cancelled
CI/CD Pipeline / Production Browser E2E (push) Has been cancelled
CI/CD Pipeline / Canary Release to Production (push) Has been cancelled
CI/CD Pipeline / CI Gate (push) Has been cancelled
CI/CD Pipeline / Unit Tests (pull_request) Has been cancelled
CI/CD Pipeline / Integration Tests (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
fix(ui): 模板选择卡片字体放大(名称13px、时长12px)
2026-08-27 17:37:08 +08:00

3065 lines
57 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: 1400px;
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;
}
.xx-generate-layout.full-width .xx-generate-right-col {
display: none;
}
/* ============================================================
左侧表单区 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-results {
display: flex;
flex-direction: column;
gap: 12px;
}
.xx-smart-match-results-header {
display: flex;
justify-content: space-between;
align-items: center;
}
.xx-smart-match-results-title {
font-size: 14px;
font-weight: 600;
color: var(--text-primary, #1e293b);
}
.xx-smart-match-results-actions {
display: flex;
align-items: center;
gap: 8px;
font-size: 12px;
}
.xx-link-btn {
background: none;
border: none;
color: var(--primary-color, #4f46e5);
font-size: 12px;
cursor: pointer;
padding: 2px 4px;
}
.xx-link-btn:hover {
text-decoration: underline;
}
.xx-smart-match-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 10px;
max-height: 420px;
overflow-y: auto;
padding-right: 4px;
}
.xx-smart-match-card {
background: #fff;
border: 2px solid var(--border-primary, #e2e8f0);
border-radius: 12px;
overflow: hidden;
cursor: pointer;
transition: all 0.2s ease;
}
.xx-smart-match-card:hover {
border-color: var(--primary-color, #4f46e5);
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.xx-smart-match-card.selected {
border-color: var(--primary-color, #4f46e5);
background: var(--primary-soft, #eef2ff);
}
.xx-smart-match-thumb {
position: relative;
width: 100%;
aspect-ratio: 9 / 16;
background: #f1f5f9;
overflow: hidden;
}
.xx-smart-match-thumb img {
width: 100%;
height: 100%;
object-fit: cover;
}
.xx-smart-match-thumb-placeholder {
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
color: var(--text-tertiary, #94a3b8);
}
.xx-smart-match-score {
position: absolute;
top: 8px;
left: 8px;
padding: 2px 8px;
font-size: 11px;
font-weight: 600;
color: #fff;
background: linear-gradient(135deg, #4f46e5, #7c3aed);
border-radius: 12px;
}
.xx-smart-match-check {
position: absolute;
top: 8px;
right: 8px;
width: 24px;
height: 24px;
background: var(--primary-color, #4f46e5);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
}
.xx-smart-match-duration {
position: absolute;
bottom: 8px;
right: 8px;
padding: 2px 6px;
font-size: 11px;
color: #fff;
background: rgba(0, 0, 0, 0.6);
border-radius: 4px;
}
.xx-smart-match-info {
padding: 10px 12px;
}
.xx-smart-match-name {
font-size: 13px;
font-weight: 500;
color: var(--text-primary, #1e293b);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
margin-bottom: 4px;
}
.xx-smart-match-reason {
font-size: 11px;
color: var(--text-secondary, #64748b);
line-height: 1.4;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.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;
}
.xx-smart-match-summary {
padding: 12px 16px;
background: #f0fdf4;
border: 1px solid #bbf7d0;
border-radius: 12px;
}
.xx-smart-match-summary-header {
display: flex;
justify-content: space-between;
align-items: 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(4, 1fr);
gap: 10px;
}
.xx-title-preset-card {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 14px 8px;
background: var(--bg-secondary);
border: 2px solid transparent;
border-radius: var(--radius-sm);
cursor: pointer;
transition: all 0.15s;
text-align: center;
}
.xx-title-preset-card:hover {
border-color: var(--primary-200);
background: var(--bg-primary);
}
.xx-title-preset-card.active {
border-color: var(--primary-color);
background: var(--primary-50);
}
.xx-title-preset-preview-text {
line-height: 1.4;
margin-bottom: 6px;
user-select: none;
}
.xx-title-preset-card-label {
font-size: 11px;
color: var(--text-secondary);
}
.xx-title-preset-card.active .xx-title-preset-card-label {
color: var(--primary-color);
font-weight: 500;
}
/* 样式按钮组 */
.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-generate-right-col {
display: flex;
flex-direction: column;
align-items: center;
gap: 16px;
}
/* ── 内联视频播放器(右侧) ── */
.xx-inline-video-player {
width: 100%;
max-width: 320px;
background: var(--bg-surface, #fff);
border: 1px solid var(--border-primary, #e2e8f0);
border-radius: 16px;
padding: 16px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.xx-inline-video-player video {
background: #000;
}
.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;
}
/* 已选模板文字 */
.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;
}