768 ? '16px 20px' : '12px 16px',
display: 'flex',
alignItems: 'center',
gap: '12px',
backgroundColor: 'var(--ui-color-bg-1)',
borderBottom: '1px solid var(--ui-color-border)',
flexShrink: 0,
}}
>
{needTopUp ? (
) : (
)}
{/* 估价 / 余额不足说明 */}
{!isButtonDisabled && (
{needTopUp
? budgetSourceLabel(quote?.budget_source)
? t('{{source}}不足,请充值后再生成', {
source: t(budgetSourceLabel(quote.budget_source)),
})
: t('余额或预算不足,请充值后再生成')
: renderQuoteText()}
)}
{/* 禁用提示 */}
{isButtonDisabled && !submitting && (
{submitBlock}
)}
{/* 生成中状态提示 */}
{generating && displayTask && (
{displayTask.progress || '0%'}
)}
{t('使用提示')}
• {t('详细的提示词能获得更好的效果')}
• {t('建议使用高质量的首帧图片')}
• {t('视频生成可能需要 1-3 分钟')}
• {t('可在任务队列中查看历史记录')}
}
position='bottomRight'
trigger='hover'
showArrow={true}
>
{/* 视频播放器容器 */}
768 ? '24px' : '16px',
}}
>
{/* 关闭按钮 */}
}
type='tertiary'
theme='borderless'
size='small'
onClick={handleCloseVideo}
style={{
position: 'absolute',
top: '8px',
right: '8px',
zIndex: 10,
backgroundColor: 'rgba(0, 0, 0, 0.5)',
color: 'white',
borderRadius: '50%',
}}
/>
{/* 视频播放器 */}
{/* 操作按钮 */}
}
onClick={handleDownload}
>
{windowWidth > 768 ? t('下载视频') : t('下载')}
}
onClick={handleShare}
>
{t('分享')}
{canRegenerateVideoTask(displayTask) && (
}
onClick={handleRegenerate}
>
{windowWidth > 768 ? t('再生成') : t('重新')}
)}
{/* 视频信息 */}
768 ? '24px' : '16px',
padding: windowWidth > 768 ? '16px' : '12px',
backgroundColor: 'var(--ui-color-fill-0)',
borderRadius: '8px',
textAlign: 'left',
}}
>
{(taskData.prompt || displayTask.prompt) && (
768 ? '14px' : '12px' }}
>
{t('提示词')}:
768 ? '13px' : '11px',
marginTop: '4px',
}}
>
{taskData.prompt || displayTask.prompt}
)}
{taskData.negative_prompt && (
768 ? '14px' : '12px' }}
>
{t('反向提示词')}:
768 ? '13px' : '11px',
marginTop: '4px',
}}
>
{taskData.negative_prompt}
)}
768 ? '12px' : '10px' }}
>
{t('模型')}:{' '}
{taskData.model ||
displayTask.properties?.upstream_model_name ||
displayTask.properties?.origin_model_name ||
(typeof selectedModel === 'object'
? selectedModel?.model_name
: selectedModel)}{' '}
| {t('时长')}:{' '}
{taskData.duration || displayTask.properties?.duration || '-'}
s | {t('分辨率')}:{' '}
{taskData.resolution ||
displayTask.properties?.resolution ||
'-'}
);
}
// 生成中(只在没有 selectedTaskForPlay 时显示)
if (generating && displayTask && !selectedTaskForPlay) {
return (
{/* CSS动画背景 - 流动光效(增强版) */}
{/* 动态光晕1 - 紫色 */}
{/* 动态光晕2 - 橙红色 */}
{/* 动态光晕3 - 金色中心 */}
{/* 电影宽银幕效果 - 上下黑边 */}
{/* 中央内容区域 */}
1024 ? '32px' : '24px',
marginBottom: windowWidth > 768 ? '32px' : '24px',
border: '1px solid rgba(255, 255, 255, 0.2)',
boxShadow: '0 8px 32px rgba(0, 0, 0, 0.3)',
transition: 'transform 0.3s ease',
}}
onMouseEnter={(e) => {
e.currentTarget.style.transform = 'scale(1.05)';
}}
onMouseLeave={(e) => {
e.currentTarget.style.transform = 'scale(1)';
}}
>
{t('AI 视频生成')}
768 ? '24px' : '16px',
textAlign: 'center',
fontSize: windowWidth > 768 ? '16px' : '14px',
padding: '0 16px',
color: 'rgba(255, 255, 255, 0.7)',
maxWidth: '500px',
lineHeight: '1.8',
textShadow: '0 2px 8px rgba(0, 0, 0, 0.5)',
}}
>
{formData.mode === 'text2video'
? t('输入提示词,让 AI 为你创造精彩视频')
: t('上传图片并输入提示词,生成动态视频')}
);
};
return (