Files
xiaoxia-saas/apps/web/src/pages/editing-planner/EditingPlanner.css
T
灵应 f99ee8a2aa
CI/CD Pipeline / Deploy Staging (push) Has been skipped
CI/CD Pipeline / Staging E2E Tests (push) Has been skipped
CI/CD Pipeline / Build Production Runtime Images (push) Has been skipped
CI/CD Pipeline / Deploy Production (push) Has been skipped
CI/CD Pipeline / Production Browser E2E (push) Has been skipped
CI/CD Pipeline / Frontend Lint (push) Failing after 71h47m46s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 71h49m21s
🟡 P1-4: 字体大小设置实时预览 — PreviewPlayer叠加标题/字幕预览层
- PreviewPlayer新增titleSettings/subtitleSettings props
- 手机预览区内叠加标题文字(位置/字体/大小/粗体/斜体/描边/阴影实时反映)
- 字幕预览叠加层(位置/字体/大小实时反映)
- EditingPlanner传递titleSettings/subtitleSettings到PreviewPlayer
- 新增.ep-preview-title/.ep-preview-subtitle CSS样式

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-06 13:03:10 +08:00

1830 lines
37 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/**
* 剪辑计划编辑器 — V21 原型 1:1 还原样式
* 颜色:对齐全局V21设计系统,使用 var(--bg-primary)、var(--bg-secondary)、var(--primary) 等
* 布局:3行(顶栏52 + 模式栏56 + 三栏主体flex
* 面板宽度:左240 / 右280
* 按钮:对齐V21 Button组件风格
* 字号:12px为主,标题13-14px
*/
/* ═══════════════════════════════════════
根容器 — 全屏三行布局(V21浅色主题)
═══════════════════════════════════════ */
.ep-v8-root {
display: flex;
flex-direction: column;
height: 100vh;
background: var(--bg-secondary, #f8fafc);
color: var(--text-primary, #1e293b);
font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
font-size: 12px;
line-height: 1.5;
overflow: hidden;
}
/* ═══════════════════════════════════════
第1行:顶栏 52px(V21风格)
═══════════════════════════════════════ */
.ep-top-bar {
height: 52px;
min-height: 52px;
background: var(--bg-primary, #ffffff);
border-bottom: 1px solid var(--line, #e2e8f0);
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 20px;
flex-shrink: 0;
}
.ep-top-bar-left {
display: flex;
align-items: center;
gap: 12px;
}
.ep-logo {
font-size: 16px;
color: var(--primary, #6366f1);
font-weight: 700;
}
.ep-app-title {
font-size: 14px;
font-weight: 700;
color: var(--primary, #6366f1);
}
.ep-divider {
color: var(--text-muted, #cbd5e1);
margin: 0 4px;
}
.ep-template-name {
color: var(--text-muted, #64748b);
font-size: 13px;
}
.ep-top-bar-right {
display: flex;
align-items: center;
gap: 10px;
}
/* 按钮 — V21风格 */
.ep-btn {
height: 32px;
padding: 0 16px;
border-radius: var(--radius-sm, 14px);
font-size: 13px;
font-weight: 500;
border: none;
cursor: pointer;
transition: all 0.2s ease;
display: flex;
align-items: center;
gap: 6px;
white-space: nowrap;
}
.ep-btn-primary {
background: var(--gradient-primary);
color: var(--text-inverse);
box-shadow: 0 14px 26px rgba(79, 70, 229, 0.22);
font-weight: 600;
}
.ep-btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 18px 34px rgba(79, 70, 229, 0.28);
}
.ep-btn-primary:active {
transform: translateY(0);
}
.ep-btn-primary:disabled {
opacity: 0.5;
cursor: not-allowed;
transform: none;
box-shadow: none;
}
.ep-btn-secondary {
background: var(--bg-primary, #ffffff);
color: var(--text-secondary);
border: 1px solid var(--line, #e2e8f0);
font-weight: 600;
}
.ep-btn-secondary:hover {
border-color: var(--info-border);
color: var(--primary-dark);
background: var(--primary-soft);
}
.ep-btn-secondary:active {
transform: scale(0.98);
}
.ep-btn-secondary:disabled {
opacity: 0.4;
cursor: not-allowed;
}
.ep-btn-sm {
height: 28px;
padding: 0 12px;
font-size: 12px;
border-radius: var(--radius-xs, 8px);
}
.ep-btn-danger {
background: var(--danger, #ef4444);
color: var(--text-inverse);
}
.ep-btn-danger:hover {
background: color-mix(in srgb, var(--danger, #ef4444), white 20%);
}
.ep-btn-danger:active {
transform: scale(0.96);
background: color-mix(in srgb, var(--danger, #ef4444), black 10%);
}
.ep-btn-danger:disabled {
opacity: 0.5;
cursor: not-allowed;
transform: none;
}
/* ═══════════════════════════════════════
第2行:模式栏 56px — V21居中图标按钮风格
═══════════════════════════════════════ */
.ep-mode-bar {
height: 56px;
min-height: 56px;
background: var(--bg-primary, #ffffff);
border-bottom: 1px solid var(--line, #e2e8f0);
display: flex;
align-items: center;
justify-content: center;
gap: 12px;
padding: 0 20px;
flex-shrink: 0;
}
.ep-mode-bar-label {
font-size: 12px;
color: var(--text-muted, #64748b);
margin-right: 8px;
}
.ep-mode-btn {
position: relative;
padding: 8px 14px;
background: var(--bg-primary, #ffffff);
border: 1px solid var(--line, #e2e8f0);
color: var(--text-secondary, #64748b);
font-size: 10px;
cursor: pointer;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 2px;
border-radius: 10px;
transition: all 0.2s ease;
min-width: 64px;
}
.ep-mode-btn:hover {
border-color: var(--primary-light, #a5b4fc);
background: var(--primary-soft, #f8faff);
}
.ep-mode-btn.active {
border-color: var(--primary, #6366f1);
background: var(--primary-soft, #eef2ff);
}
.ep-mode-btn.active .ep-mode-label {
color: var(--primary, #6366f1);
}
.ep-mode-icon {
font-size: 18px;
line-height: 1;
}
/* ═══════════════════════════════════════
第3行:三栏主体
═══════════════════════════════════════ */
.ep-main-body {
flex: 1;
display: flex;
overflow: hidden;
min-height: 0;
}
/* ─── 左栏 240px ─── */
.ep-left-panel {
width: 240px;
min-width: 240px;
background: var(--bg-primary, #ffffff);
border-right: 1px solid var(--line, #e2e8f0);
display: flex;
flex-direction: column;
overflow: hidden;
}
/* 左栏标题 */
.ep-left-header {
padding: 12px 14px;
border-bottom: 1px solid var(--line, #e2e8f0);
display: flex;
align-items: center;
justify-content: space-between;
flex-shrink: 0;
}
.ep-left-title {
font-size: 12px;
font-weight: 600;
color: var(--text-secondary, #64748b);
}
.ep-left-back-btn {
font-size: 10px;
color: var(--text-tertiary, #94a3b8);
background: none;
border: none;
cursor: pointer;
}
.ep-left-back-btn:hover {
color: var(--primary, #6366f1);
}
/* 搜索 */
.ep-search-wrap {
padding: 10px 12px;
border-bottom: 1px solid var(--bg-secondary, #f1f5f9);
position: relative;
flex-shrink: 0;
}
.ep-search-input {
width: 100%;
height: 36px;
background: var(--bg-secondary, #f8fafc);
border: 1px solid var(--border-color, #e2e8f0);
border-radius: var(--radius-xs, 8px);
padding: 0 12px 0 36px;
color: var(--text-primary, #1e293b);
font-size: 12px;
outline: none;
transition: all 0.2s ease;
}
.ep-search-input::placeholder {
color: var(--text-tertiary, #94a3b8);
}
.ep-search-input:focus {
border-color: var(--primary, #6366f1);
background: var(--bg-primary, #ffffff);
box-shadow: 0 0 0 3px var(--primary-soft, #eef2ff);
}
.ep-search-icon {
position: absolute;
left: 24px;
top: 50%;
transform: translateY(-50%);
color: var(--text-tertiary, #94a3b8);
font-size: 14px;
pointer-events: none;
}
/* Chip 筛选 */
.ep-filter-chips {
display: flex;
gap: 6px;
padding: 8px 12px;
border-bottom: 1px solid var(--bg-secondary, #f1f5f9);
flex-wrap: wrap;
flex-shrink: 0;
}
.ep-filter-chip {
padding: 4px 10px;
border-radius: var(--radius-full, 9999px);
font-size: 10px;
background: var(--bg-secondary, #f8fafc);
color: var(--text-tertiary, #94a3b8);
border: 1px solid var(--border-color, #e2e8f0);
cursor: pointer;
transition: all 0.2s ease;
font-weight: 500;
line-height: 1.4;
}
.ep-filter-chip:hover {
border-color: var(--primary, #6366f1);
color: var(--text-secondary, #64748b);
}
.ep-filter-chip.active {
border-color: var(--primary, #6366f1);
color: var(--primary, #6366f1);
background: var(--primary-soft, #eef2ff);
}
/* 左侧 Tab 切换 */
.ep-left-tabs {
display: flex;
border-bottom: 1px solid var(--border-color, #e2e8f0);
background: var(--bg-secondary, #f8fafc);
}
.ep-left-tab {
flex: 1;
padding: 12px 16px;
font-size: 13px;
font-weight: 500;
color: var(--text-secondary, #64748b);
background: transparent;
border: none;
border-bottom: 2px solid transparent;
cursor: pointer;
transition: all 0.2s ease;
}
.ep-left-tab:hover {
color: var(--text-primary, #1e293b);
background: var(--bg-primary, #ffffff);
}
.ep-left-tab.active {
color: var(--primary, #6366f1);
border-bottom-color: var(--primary, #6366f1);
background: var(--bg-primary, #ffffff);
}
/* 素材 Tab 容器 */
.ep-assets-tab {
flex: 1;
overflow-y: auto;
padding: 12px;
}
.ep-assets-tab::-webkit-scrollbar {
width: 6px;
}
.ep-assets-tab::-webkit-scrollbar-thumb {
background: var(--border-color, #e2e8f0);
border-radius: 3px;
}
/* 模板列表 */
.ep-template-list {
flex: 1;
overflow-y: auto;
padding: 10px 12px;
}
.ep-template-list::-webkit-scrollbar {
width: 6px;
}
.ep-template-list::-webkit-scrollbar-thumb {
background: var(--border-color, #e2e8f0);
border-radius: 3px;
}
.ep-template-card {
background: var(--bg-primary, #ffffff);
border: 1px solid var(--border-color, #e2e8f0);
border-radius: 12px;
padding: 12px;
margin-bottom: 8px;
cursor: pointer;
transition: all 0.2s ease;
}
.ep-template-card:hover {
border-color: var(--primary-light, #a5b4fc);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.ep-template-card.active {
border-color: var(--primary, #6366f1);
background: var(--primary-soft, #eef2ff);
box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
}
.ep-template-card-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 8px;
}
.ep-template-card-name {
font-size: 13px;
font-weight: 600;
color: var(--text-primary, #1e293b);
}
.ep-template-card-mode {
font-size: 11px;
padding: 3px 8px;
border-radius: var(--radius-xs, 8px);
background: var(--primary-soft, #eef2ff);
color: var(--primary, #6366f1);
font-weight: 500;
}
.ep-template-card-meta {
display: flex;
gap: 12px;
font-size: 11px;
color: var(--text-tertiary, #94a3b8);
margin-bottom: 8px;
}
.ep-template-card-tags {
display: flex;
gap: 6px;
margin-top: 8px;
flex-wrap: wrap;
}
.ep-template-tag {
font-size: 11px;
padding: 2px 8px;
border-radius: var(--radius-xs, 8px);
background: var(--bg-secondary, #f8fafc);
color: var(--text-secondary, #64748b);
}
/* Loading / Empty */
.ep-loading,
.ep-empty {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 40px 16px;
color: var(--text-tertiary, #94a3b8);
font-size: 12px;
gap: 8px;
}
.ep-loading > svg,
.ep-empty > svg {
width: 32px;
height: 32px;
color: var(--text-tertiary, #94a3b8);
opacity: 0.5;
animation: ep-skeleton-pulse 2s ease-in-out infinite;
}
/* ─── 中栏 flex-1 ─── */
.ep-center-col {
flex: 1;
display: flex;
flex-direction: column;
min-width: 0;
overflow: hidden;
background: var(--bg-secondary, #f8fafc);
}
/* 上半部:预览 + 封面 (320px) */
.ep-preview-area {
height: 320px;
min-height: 280px;
display: flex;
align-items: flex-start;
justify-content: center;
gap: 40px;
padding: 20px;
background: var(--bg-primary, #ffffff);
border-bottom: 1px solid var(--line, #e2e8f0);
flex-shrink: 0;
}
/* 手机模型预览 */
.ep-phone-preview {
width: 150px;
height: 267px;
background: var(--color-gray-950);
border-radius: 16px;
border: 2px solid var(--ep-border, #1f1f30);
position: relative;
overflow: hidden;
flex-shrink: 0;
}
.ep-phone-status-bar {
height: 20px;
background: var(--color-gray-900);
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 10px;
font-size: 9px;
color: var(--ep-text-muted, #4b5563);
}
.ep-phone-content {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
background: linear-gradient(135deg, var(--ep-bg-card-hover, #1a1a2e), var(--ep-bg-deepest, #0a0a14));
height: calc(100% - 20px);
position: relative;
}
.ep-phone-play-btn {
width: 36px;
height: 36px;
border-radius: 50%;
background: rgba(108, 92, 231, 0.8);
border: none;
color: var(--text-inverse);
font-size: 14px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s ease;
}
.ep-phone-play-btn:hover {
background: var(--primary, #6366f1);
transform: scale(1.1);
}
.ep-phone-progress {
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 3px;
background: rgba(255, 255, 255, 0.2);
}
.ep-phone-progress-fill {
height: 100%;
background: var(--primary, #6366f1);
transition: width 0.3s ease;
}
.ep-phone-clip-label {
position: absolute;
bottom: 8px;
left: 0;
right: 0;
text-align: center;
font-size: 9px;
color: var(--ep-text-secondary, #9ca3af);
}
/* 标题/字幕实时预览叠加层 */
.ep-preview-title,
.ep-preview-subtitle {
position: absolute;
left: 4px;
right: 4px;
text-align: center;
color: #fff;
line-height: 1.3;
pointer-events: none;
z-index: 5;
word-break: break-all;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.ep-preview-title {
text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}
.ep-preview-subtitle {
background: rgba(0, 0, 0, 0.55);
padding: 2px 4px;
border-radius: 3px;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}
/* 封面预览 */
.ep-cover-preview {
width: 150px;
height: 267px;
background: var(--ep-bg-card, #13131f);
border-radius: 6px;
border: 1px solid var(--ep-border, #1f1f30);
position: relative;
overflow: hidden;
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
}
.ep-cover-image {
width: 100%;
height: 100%;
background: linear-gradient(135deg, var(--ep-bg-card-hover, #1a1a2e), var(--ep-bg-card, #13131f));
display: flex;
align-items: center;
justify-content: center;
color: var(--ep-text-muted, #4b5563);
font-size: 11px;
}
.ep-cover-label {
position: absolute;
bottom: 8px;
left: 0;
right: 0;
text-align: center;
font-size: 9px;
color: var(--ep-text-secondary, #9ca3af);
}
/* 封面 AI 按钮 */
.ep-cover-ai-btns {
position: absolute;
top: 8px;
left: 4px;
right: 4px;
display: flex;
gap: 4px;
}
.ep-cover-ai-btn {
flex: 1;
height: 22px;
background: rgba(108, 92, 231, 0.7);
border: none;
border-radius: 4px;
color: var(--text-inverse);
font-size: 10px;
cursor: pointer;
transition: all 0.2s ease;
display: flex;
align-items: center;
justify-content: center;
gap: 2px;
}
.ep-cover-ai-btn:hover {
background: var(--primary-hover, #4f46e5);
}
.ep-cover-ai-btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
/* 封面方案按钮(竖排4个) */
.ep-cover-tags {
display: flex;
flex-direction: column;
gap: 8px;
}
.ep-cover-tag {
padding: 6px 12px;
border-radius: var(--radius-full, 9999px);
font-size: 10px;
background: var(--bg-secondary, #f8fafc);
color: var(--text-tertiary, #94a3b8);
border: 1px solid var(--border-color, #e2e8f0);
cursor: pointer;
transition: all 0.2s ease;
white-space: nowrap;
display: flex;
align-items: center;
justify-content: center;
font-weight: 500;
height: auto;
}
.ep-cover-tag:hover {
border-color: var(--primary, #6366f1);
color: var(--primary, #6366f1);
}
.ep-cover-tag.active {
background: var(--primary-soft, #eef2ff);
color: var(--primary, #6366f1);
border-color: var(--primary, #6366f1);
}
/* ─── 下半部:水平时间线(V21风格)─── */
.ep-timeline-area {
flex: 1;
display: flex;
flex-direction: column;
overflow: hidden;
background: var(--bg-primary, #ffffff);
border-top: 1px solid var(--line, #e2e8f0);
min-height: 0;
}
.ep-timeline-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 10px 16px;
border-bottom: 1px solid var(--bg-secondary, #f1f5f9);
flex-shrink: 0;
}
.ep-timeline-title {
display: flex;
align-items: center;
gap: 10px;
font-size: 12px;
font-weight: 600;
color: var(--text-secondary, #64748b);
}
.ep-timeline-duration {
font-size: 12px;
color: var(--warning, #f59e0b);
font-weight: 600;
}
.ep-timeline-actions {
display: flex;
gap: 6px;
}
.ep-timeline-action-btn {
width: 28px;
height: 28px;
padding: 0;
background: var(--bg-secondary, #f8fafc);
border: 1px solid var(--line, #e2e8f0);
border-radius: var(--radius-xs, 8px);
color: var(--text-muted, #94a3b8);
font-size: 12px;
cursor: pointer;
transition: all 0.2s ease;
display: flex;
align-items: center;
justify-content: center;
}
.ep-timeline-action-btn:hover {
border-color: var(--primary, #6366f1);
color: var(--primary, #6366f1);
background: var(--primary-soft, #eef2ff);
}
/* 时间标尺 */
.ep-time-ruler {
height: 24px;
background: var(--bg-secondary, #f8fafc);
border-bottom: 1px solid var(--bg-secondary, #f1f5f9);
display: flex;
align-items: flex-end;
padding: 0 16px;
overflow: hidden;
flex-shrink: 0;
}
.ep-time-ruler-inner {
display: flex;
align-items: center;
height: 100%;
position: relative;
}
.ep-time-mark {
position: absolute;
font-size: 9px;
color: var(--text-muted, #cbd5e1);
bottom: 4px;
}
.ep-time-mark::after {
content: "";
position: absolute;
bottom: -4px;
left: 0;
width: 1px;
height: 6px;
background: var(--border-color, #e2e2f0);
}
/* 水平片段轨道 — 带底色 */
.ep-clip-track {
flex: 1;
display: flex;
align-items: center;
gap: 12px;
padding: 12px 16px;
overflow-x: auto;
overflow-y: hidden;
background: var(--bg-primary, #ffffff);
position: relative;
}
.ep-clip-track::-webkit-scrollbar {
height: 6px;
}
.ep-clip-track::-webkit-scrollbar-thumb {
background: var(--border-color, #e2e2e2);
border-radius: 3px;
}
/* 水平片段卡片 — 统一高度96px、圆角、hover高亮 */
.ep-clip-card {
width: 100px;
min-width: 100px;
height: 96px;
background: var(--bg-primary, #ffffff);
border: 1px solid var(--border-color, #e2e2e2);
border-radius: var(--radius-sm, 14px);
cursor: pointer;
transition: all 0.2s ease;
display: flex;
flex-direction: column;
overflow: hidden;
position: relative;
}
.ep-clip-card:hover {
border-color: var(--primary, #6366f1);
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}
.ep-clip-card.selected {
border-color: var(--primary, #6366f1);
box-shadow: 0 0 0 2px var(--primary-soft, #eef2ff), 0 4px 12px rgba(99, 102, 241, 0.2);
}
.ep-clip-card.drag-over {
border-color: var(--primary, #6366f1);
background: var(--primary-soft, #eef2ff);
}
.ep-clip-card.dragging {
opacity: 0.5;
}
.ep-clip-thumbnail {
height: 52px;
background: linear-gradient(135deg, var(--bg-secondary, #f8fafc), var(--border-light, #f1f5f9));
display: flex;
align-items: center;
justify-content: center;
font-size: 20px;
flex-shrink: 0;
}
.ep-clip-info {
padding: 6px 8px;
flex: 1;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.ep-clip-name {
font-size: 11px;
font-weight: 500;
color: var(--text-primary, #1e293b);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.ep-clip-duration {
font-size: 10px;
color: var(--text-tertiary, #94a3b8);
}
.ep-clip-remove {
position: absolute;
top: 4px;
right: 4px;
width: 18px;
height: 18px;
border-radius: 50%;
background: rgba(239, 68, 68, 0.9);
border: 2px solid var(--text-inverse);
color: var(--text-inverse);
font-size: 10px;
cursor: pointer;
display: none;
align-items: center;
justify-content: center;
line-height: 1;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.ep-clip-card:hover .ep-clip-remove {
display: flex;
}
/* 播放头竖线 */
.ep-playhead {
position: absolute;
top: 0;
bottom: 0;
width: 2px;
background: var(--primary, #6366f1);
z-index: 10;
pointer-events: none;
}
.ep-playhead::before {
content: "";
position: absolute;
top: 0;
left: -4px;
width: 10px;
height: 10px;
background: var(--primary, #6366f1);
clip-path: polygon(0 0, 100% 0, 50% 100%);
}
/* 空轨道 */
.ep-track-empty {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
color: var(--text-tertiary, #94a3b8);
font-size: 12px;
min-height: 96px;
}
/* 一镜到底提示 */
.ep-one-take-hint {
padding: 6px 16px;
background: var(--color-accent-50, #fffbeb);
border-bottom: 1px solid var(--color-accent-100, #fef3c7);
color: var(--accent-color, #f59e0b);
font-size: 12px;
font-weight: 500;
font-size: 11px;
text-align: center;
}
/* ─── 右栏 280px ─── */
.ep-right-panel {
width: 280px;
min-width: 280px;
background: var(--bg-primary, #ffffff);
border-left: 1px solid var(--line, #e2e8f0);
overflow-y: auto;
padding: 0;
display: flex;
flex-direction: column;
}
.ep-right-panel::-webkit-scrollbar {
width: 6px;
}
.ep-right-panel::-webkit-scrollbar-thumb {
background: var(--line, #e2e8f0);
border-radius: 3px;
}
/* 设置区块 */
.ep-settings-section {
padding: 14px;
border-bottom: 1px solid var(--bg-secondary, #f1f5f9);
}
.ep-section-title {
font-size: 11px;
font-weight: 600;
color: var(--text-secondary, #64748b);
text-transform: uppercase;
margin-bottom: 12px;
margin-top: 0;
display: flex;
align-items: center;
gap: 6px;
letter-spacing: 0.3px;
}
.ep-section-icon {
font-size: 14px;
}
/* 表单字段 */
.ep-field {
margin-bottom: 12px;
}
.ep-field-label {
display: block;
font-size: 12px;
font-weight: 500;
color: var(--text-secondary, #64748b);
margin-bottom: 6px;
}
.ep-form-input,
.ep-form-select {
width: 100%;
height: 32px;
background: var(--bg-secondary, #f8fafc);
border: 1px solid var(--border-color, #e2e8f0);
border-radius: var(--radius-xs, 8px);
padding: 0 10px;
color: var(--text-primary, #1e293b);
font-size: 12px;
outline: none;
transition: all 0.2s ease;
}
.ep-form-input:focus,
.ep-form-select:focus {
border-color: var(--primary, #6366f1);
background: var(--bg-primary, #ffffff);
box-shadow: 0 0 0 3px var(--primary-soft, #eef2ff);
}
.ep-form-select {
cursor: pointer;
appearance: none;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: right 10px center;
padding-right: 28px;
}
/* Toggle 开关 */
.ep-toggle-row {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 12px;
}
.ep-toggle-label {
font-size: 12px;
color: var(--text-primary, #1e293b);
font-weight: 500;
}
.ep-toggle {
width: 40px;
height: 22px;
background: var(--border-color, #e2e8f0);
border-radius: 11px;
position: relative;
cursor: pointer;
transition: background 0.2s ease;
flex-shrink: 0;
}
.ep-toggle.active {
background: var(--primary, #6366f1);
}
.ep-toggle-knob {
width: 18px;
height: 18px;
background: var(--bg-primary);
border-radius: 50%;
position: absolute;
top: 2px;
left: 2px;
transition: left 0.2s ease;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.ep-toggle.active .ep-toggle-knob {
left: 20px;
}
/* 滑块 */
.ep-slider-row {
display: flex;
align-items: center;
gap: 10px;
}
.ep-slider {
flex: 1;
-webkit-appearance: none;
height: 4px;
background: var(--border-color, #e2e8f0);
border-radius: 2px;
outline: none;
}
.ep-slider::-webkit-slider-thumb {
-webkit-appearance: none;
width: 16px;
height: 16px;
background: var(--primary, #6366f1);
border-radius: 50%;
cursor: pointer;
box-shadow: 0 2px 4px rgba(99, 102, 241, 0.3);
border: 2px solid var(--text-inverse);
}
.ep-slider-value {
font-size: 12px;
color: var(--text-secondary, #64748b);
min-width: 36px;
text-align: right;
font-weight: 500;
}
/* 样式按钮组 */
.ep-style-btns {
display: flex;
gap: 6px;
}
.ep-style-btn {
width: 32px;
height: 32px;
background: var(--bg-primary, #ffffff);
border: 1px solid var(--border-color, #e2e8f0);
border-radius: var(--radius-xs, 8px);
color: var(--text-secondary, #64748b);
font-size: 13px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s ease;
font-weight: 500;
}
.ep-style-btn:hover {
border-color: var(--primary, #6366f1);
color: var(--primary, #6366f1);
background: var(--primary-soft, #eef2ff);
}
.ep-style-btn.active {
background: var(--primary-soft, #eef2ff);
border-color: var(--primary, #6366f1);
color: var(--primary, #6366f1);
}
/* AI推荐按钮 */
.ep-ai-recommend-btn {
width: 100%;
height: 36px;
padding: 0 12px;
background: var(--gradient-primary, var(--gradient-primary));
border: none;
border-radius: var(--radius-xs, 8px);
color: var(--text-inverse);
font-size: 12px;
font-weight: 500;
cursor: pointer;
transition: all 0.2s ease;
margin-top: 12px;
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
}
.ep-ai-recommend-btn:hover {
opacity: 0.9;
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}
.ep-ai-recommend-btn:disabled {
opacity: 0.5;
cursor: not-allowed;
transform: none;
box-shadow: none;
}
/* 片段详情卡片 */
.ep-clip-detail {
background: var(--bg-secondary, #f8fafc);
border: 1px solid var(--border-color, #e2e8f0);
border-radius: var(--radius-sm, 14px);
padding: 14px;
}
.ep-clip-detail-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 12px;
padding-bottom: 10px;
border-bottom: 1px solid var(--border-light, #f1f5f9);
}
.ep-clip-detail-name {
font-size: 13px;
font-weight: 600;
color: var(--text-primary, #1e293b);
}
.ep-clip-detail-type {
font-size: 11px;
padding: 3px 8px;
border-radius: var(--radius-xs, 8px);
background: var(--primary-soft, #eef2ff);
color: var(--primary, #6366f1);
font-weight: 500;
}
.ep-clip-detail-field {
margin-bottom: 10px;
}
.ep-clip-detail-label {
font-size: 11px;
color: var(--text-tertiary, #94a3b8);
margin-bottom: 4px;
font-weight: 500;
}
.ep-clip-detail-value {
font-size: 12px;
color: var(--text-primary, #1e293b);
font-weight: 500;
}
.ep-clip-detail-row {
display: flex;
gap: 8px;
align-items: center;
}
.ep-duration-input {
width: 70px;
height: 28px;
background: var(--bg-primary, #ffffff);
border: 1px solid var(--border-color, #e2e8f0);
border-radius: var(--radius-xs, 8px);
padding: 0 8px;
color: var(--text-primary, #1e293b);
font-size: 12px;
outline: none;
text-align: center;
font-weight: 500;
transition: all 0.2s ease;
}
.ep-duration-input:focus {
border-color: var(--primary, #6366f1);
box-shadow: 0 0 0 3px var(--primary-soft, #eef2ff);
}
/* ═══════════════════════════════════════
底栏 — V21已移除,内容移到顶栏
═══════════════════════════════════════ */
.ep-status-bar {
display: none;
}
/* ═══════════════════════════════════════
弹窗补充样式(V21浅色主题)
═══════════════════════════════════════ */
.ep-modal-field {
margin-bottom: 16px;
}
.ep-modal-field label {
display: block;
font-size: 13px;
font-weight: 500;
color: var(--text-primary, #1e293b);
margin-bottom: 6px;
}
.ep-modal-info {
padding: 12px 14px;
background: var(--bg-secondary, #f8fafc);
border-radius: var(--radius-xs, 8px);
font-size: 12px;
color: var(--text-secondary, #64748b);
margin-top: 8px;
border: 1px solid var(--border-color, #e2e8f0);
}
/* 生成弹窗 */
.ep-gen-setup {
padding: 8px 0;
}
.ep-gen-field-label {
display: block;
font-size: 13px;
font-weight: 500;
color: var(--text-primary, #1e293b);
margin-bottom: 8px;
}
.ep-gen-duration-input {
width: 100%;
height: 40px;
background: var(--bg-primary, #ffffff);
border: 1px solid var(--border-color, #e2e8f0);
border-radius: var(--radius-xs, 8px);
padding: 0 12px;
color: var(--text-primary, #1e293b);
font-size: 14px;
outline: none;
margin-bottom: 12px;
transition: all 0.2s ease;
}
.ep-gen-duration-input:focus {
border-color: var(--primary, #6366f1);
box-shadow: 0 0 0 3px var(--primary-soft, #eef2ff);
}
.ep-gen-estimate {
font-size: 12px;
color: var(--text-secondary, #64748b);
padding: 12px 14px;
background: var(--bg-secondary, #f8fafc);
border-radius: var(--radius-xs, 8px);
border: 1px solid var(--border-color, #e2e8f0);
}
.ep-gen-progress {
display: flex;
flex-direction: column;
align-items: center;
padding: 24px 0;
gap: 20px;
}
.ep-gen-progress-ring-wrap {
position: relative;
width: 120px;
height: 120px;
}
.ep-gen-progress-ring {
width: 100%;
height: 100%;
transform: rotate(-90deg);
}
.ep-gen-progress-ring-bg {
fill: none;
stroke: var(--border-color, #e2e8f0);
stroke-width: 8;
}
.ep-gen-progress-ring-fill {
fill: none;
stroke: var(--primary, #6366f1);
stroke-width: 8;
stroke-linecap: round;
transition: stroke-dashoffset 0.5s ease, stroke 0.3s;
}
.ep-gen-progress-pct {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 24px;
font-weight: 700;
color: var(--text-primary, #1e293b);
}
.ep-gen-step-text {
font-size: 14px;
color: var(--text-primary, #1e293b);
font-weight: 500;
}
.ep-gen-progress-bar {
width: 100%;
height: 6px;
background: var(--border-color, #e2e8f0);
border-radius: 3px;
overflow: hidden;
}
.ep-gen-progress-bar-fill {
height: 100%;
background: var(--primary, #6366f1);
border-radius: 3px;
transition: width 0.5s ease;
}
.ep-gen-task-id {
font-size: 11px;
color: var(--text-tertiary, #94a3b8);
font-family: monospace;
}
.ep-gen-result {
display: flex;
flex-direction: column;
align-items: center;
padding: 32px 0;
gap: 12px;
}
.ep-gen-result-icon {
font-size: 56px;
}
.ep-gen-result-title {
font-size: 18px;
font-weight: 600;
color: var(--text-primary, #1e293b);
}
.ep-gen-result-msg {
font-size: 13px;
color: var(--text-secondary, #64748b);
}
.ep-gen-result-msg--error {
color: var(--danger, #ef4444);
}
.ep-gen-result-actions {
display: flex;
gap: 10px;
margin-top: 12px;
}
.ep-btn-primary:active {
background: var(--primary-dark, #4338ca);
transform: scale(0.97);
}
.ep-btn-secondary:active {
background: var(--bg-secondary, #f8fafc);
border-color: var(--primary, #6366f1);
color: var(--primary, #6366f1);
}
.ep-btn-danger:active {
background: var(--error-color);
transform: scale(0.97);
}
.ep-btn-danger:disabled {
opacity: 0.4;
cursor: not-allowed;
}
.ep-btn-sm:active {
transform: scale(0.96);
opacity: 0.85;
}
.ep-btn-sm:disabled {
opacity: 0.4;
cursor: not-allowed;
}
.ep-cover-ai-btn:active {
background: var(--primary-dark, #4338ca);
transform: scale(0.96);
}
.ep-filter-chip:active {
transform: scale(0.95);
background: var(--primary-soft, #eef2ff);
}
.ep-cover-tag:active {
transform: scale(0.96);
background: var(--primary-soft, #eef2ff);
}
.ep-timeline-action-btn:active {
background: var(--primary-soft, #eef2ff);
transform: scale(0.96);
}
.ep-timeline-action-btn:disabled {
opacity: 0.4;
cursor: not-allowed;
}
.ep-style-btn:active {
background: var(--primary-soft, #eef2ff);
transform: scale(0.95);
}
.ep-ai-recommend-btn:active {
opacity: 0.8;
transform: scale(0.98);
}
.ep-mode-btn:active {
background: rgba(108, 92, 231, 0.15);
}
/* 底栏链接按钮 */
.ep-status-link {
color: var(--ep-accent, #6c5ce7);
cursor: pointer;
background: none;
border: none;
font-size: 11px;
padding: 2px 4px;
border-radius: 3px;
transition: color 0.2s, background 0.2s;
display: inline-flex;
align-items: center;
gap: 3px;
}
.ep-status-link:hover {
color: var(--ep-accent-hover, #7c6cf7);
background: var(--ep-accent-soft, rgba(108, 92, 231, 0.12));
}
.ep-status-link:active {
color: var(--primary-dark);
}
/* Skeleton loading */
@keyframes ep-skeleton-pulse {
0%, 100% { opacity: 0.4; }
50% { opacity: 0.8; }
}
.ep-skeleton {
display: flex;
flex-direction: column;
gap: 8px;
padding: 12px 8px;
}
.ep-skeleton-item {
height: 48px;
background: var(--bg-secondary, #f8fafc);
border-radius: var(--radius-sm, 14px);
animation: ep-skeleton-pulse 1.5s ease-in-out infinite;
}
.ep-skeleton-item--header {
height: 14px;
width: 60%;
}
.ep-skeleton-item--meta {
height: 10px;
width: 40%;
}
.ep-skeleton-item--tag {
height: 18px;
width: 80%;
}
/* ═══ 片段属性面板 — 补充样式 ═══ */
.ep-clip-detail-unit {
font-size: var(--font-size-xs, 11px);
color: var(--text-tertiary, #94a3b8);
margin-left: 2px;
}
.ep-clip-detail-linked {
display: inline-flex;
align-items: center;
gap: 4px;
color: var(--primary, #6366f1);
font-size: 12px;
}
.ep-clip-detail-linked::before {
content: "";
display: inline-block;
width: 12px;
height: 12px;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/%3E%3C/svg%3E");
background-size: contain;
background-repeat: no-repeat;
flex-shrink: 0;
}
/* ═══ 预览区 — 补充样式 ═══ */
.ep-phone-empty-hint {
color: rgba(255, 255, 255, 0.5);
font-size: var(--font-size-xs, 11px);
}
.ep-cover-icon {
font-size: 24px;
line-height: 1;
}
/* ═══ 素材面板 — 补充样式 ═══ */
.ep-media-panel-inner {
position: relative;
}
/* ═══ 生成历史弹窗 — 补充样式 ═══ */
.ep-gh-modal {
width: 520px;
max-width: 95vw;
}
.ep-gh-body {
max-height: 400px;
overflow-y: auto;
}
.ep-gh-empty {
display: flex;
align-items: center;
justify-content: center;
padding: 32px;
color: var(--text-tertiary, #94a3b8);
font-size: var(--font-size-sm, 13px);
}
.ep-gh-table {
width: 100%;
border-collapse: collapse;
}
.ep-gh-table-header-row {
border-bottom: 1px solid var(--border-color, #e2e8f0);
text-align: left;
}
.ep-gh-th {
padding: 10px 12px;
font-size: var(--font-size-xs, 11px);
color: var(--text-secondary, #64748b);
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.05em;
}
.ep-gh-table-row {
border-bottom: 1px solid var(--border-light, #f1f5f9);
transition: background 0.2s ease;
}
.ep-gh-table-row:hover {
background: var(--bg-secondary, #f8fafc);
}
.ep-gh-td {
padding: 10px 12px;
font-size: var(--font-size-sm, 13px);
color: var(--text-primary, #1e293b);
}
.ep-gh-td-id {
font-family: "SF Mono", "Fira Code", monospace;
font-size: var(--font-size-xs, 11px);
color: var(--text-secondary, #64748b);
}
.ep-gh-td-time {
color: var(--text-tertiary, #94a3b8);
font-size: var(--font-size-xs, 11px);
}
.ep-gh-status-tag {
display: inline-block;
padding: 3px 10px;
border-radius: var(--radius-full, 9999px);
font-size: var(--font-size-xs, 11px);
line-height: 1.4;
font-weight: 500;
}
/* ═══ 生成历史弹窗 — 基础 Modal 结构 ═══ */
.ep-modal-overlay {
position: fixed;
inset: 0;
z-index: 1050;
display: grid;
place-items: center;
background: var(--bg-overlay, rgba(15, 23, 42, 0.45));
animation: ep-fade-in 0.2s ease;
backdrop-filter: blur(4px);
}
@keyframes ep-fade-in {
from { opacity: 0; }
to { opacity: 1; }
}
.ep-modal {
background: var(--bg-primary, #ffffff);
border: 1px solid var(--border-color, #e2e8f0);
border-radius: var(--radius-lg, 24px);
box-shadow: 0 20px 60px rgba(15, 23, 42, 0.15);
animation: ep-scale-in 0.2s ease-out;
overflow: hidden;
}
@keyframes ep-scale-in {
from { opacity: 0; transform: scale(0.95); }
to { opacity: 1; transform: scale(1); }
}
.ep-modal-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 20px 24px;
border-bottom: 1px solid var(--border-light, #f1f5f9);
}
.ep-modal-header h3 {
margin: 0;
font-size: 16px;
font-weight: 600;
color: var(--text-primary, #1e293b);
}
.ep-modal-close {
width: 32px;
height: 32px;
display: grid;
place-items: center;
border: none;
border-radius: var(--radius-xs, 8px);
background: transparent;
color: var(--text-secondary, #64748b);
font-size: 18px;
cursor: pointer;
transition: all 0.2s ease;
}
.ep-modal-close:hover {
background: var(--bg-secondary, #f8fafc);
color: var(--text-primary, #1e293b);
}
.ep-modal-close:active {
transform: scale(0.92);
background: var(--border-color, #e2e8f0);
}
.ep-modal-body {
padding: 20px 24px;
}
.ep-modal-footer {
display: flex;
justify-content: flex-end;
gap: 10px;
padding: 16px 24px;
border-top: 1px solid var(--border-light, #f1f5f9);
}
/* 状态标签变体 */
.ep-gh-status-tag--completed {
background: var(--success-soft);
color: var(--success-color);
}
.ep-gh-status-tag--failed {
background: var(--error-soft);
color: var(--error-color);
}
.ep-gh-status-tag--rendering {
background: var(--info-soft);
color: var(--info-color);
}
.ep-gh-status-tag--default {
background: var(--bg-secondary);
color: var(--text-tertiary);
}
/* 空状态增强 */
.ep-gh-empty {
flex-direction: column;
gap: 8px;
text-align: center;
min-height: 80px;
}