426 lines
13 KiB
HTML
426 lines
13 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>光湖 · 视频预览 · guanghuclip.cn</title>
|
|
<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='.9em' font-size='90'>🎬</text></svg>" />
|
|
<style>
|
|
:root {
|
|
--bg-primary: #0a0e1a;
|
|
--bg-secondary: #111827;
|
|
--bg-panel: #0f172a;
|
|
--bg-card: #1a2438;
|
|
--accent: #38bdf8;
|
|
--accent-dim: #0ea5e9;
|
|
--accent-glow: rgba(56, 189, 248, 0.3);
|
|
--text-primary: #e2e8f0;
|
|
--text-secondary: #94a3b8;
|
|
--text-muted: #64748b;
|
|
--success: #22c55e;
|
|
--border: #1e293b;
|
|
--transition: 0.3s ease;
|
|
}
|
|
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
|
|
background: var(--bg-primary);
|
|
color: var(--text-primary);
|
|
min-height: 100vh;
|
|
}
|
|
|
|
/* Header */
|
|
.header {
|
|
background: var(--bg-secondary);
|
|
border-bottom: 1px solid var(--border);
|
|
padding: 20px 32px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 100;
|
|
backdrop-filter: blur(12px);
|
|
}
|
|
.header-left { display: flex; align-items: center; gap: 16px; }
|
|
.header-logo { font-size: 32px; }
|
|
.header-title { font-size: 22px; font-weight: 700; color: var(--text-primary); }
|
|
.header-title span { color: var(--accent); }
|
|
.header-subtitle { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
|
|
.header-right { display: flex; gap: 12px; align-items: center; }
|
|
.header-badge {
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border);
|
|
padding: 6px 14px;
|
|
border-radius: 20px;
|
|
font-size: 13px;
|
|
color: var(--text-secondary);
|
|
}
|
|
.feedback-btn {
|
|
background: var(--accent-dim);
|
|
color: #fff;
|
|
border: none;
|
|
padding: 10px 20px;
|
|
border-radius: 10px;
|
|
font-size: 14px;
|
|
cursor: pointer;
|
|
transition: var(--transition);
|
|
text-decoration: none;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
.feedback-btn:hover {
|
|
background: var(--accent);
|
|
box-shadow: 0 0 20px var(--accent-glow);
|
|
}
|
|
|
|
/* Project Info Bar */
|
|
.project-bar {
|
|
padding: 20px 32px;
|
|
border-bottom: 1px solid var(--border);
|
|
display: flex;
|
|
gap: 24px;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
}
|
|
.project-name { font-size: 18px; font-weight: 600; }
|
|
.project-meta {
|
|
font-size: 13px;
|
|
color: var(--text-secondary);
|
|
display: flex;
|
|
gap: 16px;
|
|
}
|
|
.project-meta span { display: flex; align-items: center; gap: 4px; }
|
|
.progress-bar {
|
|
flex: 1;
|
|
min-width: 200px;
|
|
height: 6px;
|
|
background: var(--border);
|
|
border-radius: 3px;
|
|
overflow: hidden;
|
|
}
|
|
.progress-fill {
|
|
height: 100%;
|
|
background: linear-gradient(90deg, var(--accent-dim), var(--accent));
|
|
border-radius: 3px;
|
|
transition: width 0.5s ease;
|
|
}
|
|
|
|
/* Episode Tabs */
|
|
.episode-tabs {
|
|
display: flex;
|
|
gap: 6px;
|
|
padding: 12px 32px;
|
|
overflow-x: auto;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
.episode-tab {
|
|
padding: 8px 16px;
|
|
border-radius: 8px;
|
|
font-size: 13px;
|
|
cursor: pointer;
|
|
border: 1px solid var(--border);
|
|
background: var(--bg-card);
|
|
color: var(--text-secondary);
|
|
white-space: nowrap;
|
|
transition: var(--transition);
|
|
}
|
|
.episode-tab:hover { border-color: var(--accent-dim); color: var(--text-primary); }
|
|
.episode-tab.active {
|
|
background: var(--accent-dim);
|
|
border-color: var(--accent);
|
|
color: #fff;
|
|
}
|
|
.episode-tab.completed { border-color: var(--success); }
|
|
.episode-tab.completed::after { content: ' ✅'; }
|
|
|
|
/* Video Grid */
|
|
.main {
|
|
padding: 24px 32px;
|
|
max-width: 1400px;
|
|
margin: 0 auto;
|
|
}
|
|
.scene-section {
|
|
margin-bottom: 36px;
|
|
}
|
|
.scene-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
margin-bottom: 16px;
|
|
padding-bottom: 10px;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
.scene-num {
|
|
background: var(--accent-glow);
|
|
color: var(--accent);
|
|
padding: 4px 10px;
|
|
border-radius: 6px;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
}
|
|
.scene-title { font-size: 16px; font-weight: 600; }
|
|
.scene-desc { font-size: 13px; color: var(--text-secondary); margin-left: auto; }
|
|
|
|
.shot-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
|
|
gap: 16px;
|
|
}
|
|
.shot-card {
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border);
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
transition: var(--transition);
|
|
}
|
|
.shot-card:hover {
|
|
border-color: var(--accent-dim);
|
|
box-shadow: 0 0 20px var(--accent-glow);
|
|
}
|
|
.shot-card.generated { border-color: var(--success); }
|
|
.shot-video {
|
|
width: 100%;
|
|
aspect-ratio: 16/9;
|
|
background: #000;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
.shot-video video { width: 100%; height: 100%; object-fit: cover; }
|
|
.shot-placeholder {
|
|
color: var(--text-muted);
|
|
font-size: 36px;
|
|
opacity: 0.3;
|
|
}
|
|
.shot-info {
|
|
padding: 12px 14px;
|
|
}
|
|
.shot-label {
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
margin-bottom: 6px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
.shot-duration {
|
|
font-size: 11px;
|
|
color: var(--text-muted);
|
|
background: var(--bg-panel);
|
|
padding: 2px 8px;
|
|
border-radius: 4px;
|
|
}
|
|
.shot-prompt {
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
line-height: 1.5;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 3;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
}
|
|
.shot-status {
|
|
font-size: 11px;
|
|
margin-top: 6px;
|
|
}
|
|
.shot-status.ready { color: var(--success); }
|
|
.shot-status.pending { color: var(--text-muted); }
|
|
|
|
/* Empty State */
|
|
.empty-state {
|
|
text-align: center;
|
|
padding: 80px 20px;
|
|
color: var(--text-muted);
|
|
}
|
|
.empty-icon { font-size: 64px; margin-bottom: 16px; opacity: 0.4; }
|
|
.empty-title { font-size: 20px; margin-bottom: 8px; color: var(--text-secondary); }
|
|
.empty-desc { font-size: 14px; }
|
|
|
|
/* Footer */
|
|
.footer {
|
|
text-align: center;
|
|
padding: 40px 20px;
|
|
color: var(--text-muted);
|
|
font-size: 12px;
|
|
border-top: 1px solid var(--border);
|
|
margin-top: 40px;
|
|
}
|
|
.footer a { color: var(--accent-dim); text-decoration: none; }
|
|
|
|
@media (max-width: 768px) {
|
|
.header { padding: 14px 16px; }
|
|
.header-title { font-size: 17px; }
|
|
.episode-tabs { padding: 10px 16px; }
|
|
.main { padding: 16px; }
|
|
.shot-grid { grid-template-columns: 1fr; }
|
|
.project-bar { padding: 14px 16px; flex-direction: column; gap: 10px; align-items: flex-start; }
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<div class="header">
|
|
<div class="header-left">
|
|
<span class="header-logo">🎬</span>
|
|
<div>
|
|
<div class="header-title">光湖 · <span>视频预览</span></div>
|
|
<div class="header-subtitle">guanghuclip.cn · AI短剧平台 · 铸渊 ICE-GL-ZY001 主控</div>
|
|
</div>
|
|
</div>
|
|
<div class="header-right">
|
|
<span class="header-badge">⚡ 铸渊生成 · 冰朔预览</span>
|
|
<a href="https://docs.qq.com/aio/DTHhuWW5OQU9VbFVX" target="_blank" class="feedback-btn">
|
|
📝 反馈意见
|
|
</a>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="project-bar" id="projectBar">
|
|
<span class="project-name" id="projectName">📺 加载中...</span>
|
|
<span class="project-meta">
|
|
<span>🎬 <span id="totalShots">0</span> 个分镜</span>
|
|
<span>⏱️ 每镜 5s</span>
|
|
</span>
|
|
<div class="progress-bar">
|
|
<div class="progress-fill" id="progressFill" style="width: 0%"></div>
|
|
</div>
|
|
<span style="font-size:13px;color:var(--text-secondary)" id="progressLabel">0%</span>
|
|
</div>
|
|
|
|
<div class="episode-tabs" id="episodeTabs">
|
|
<button class="episode-tab active" data-ep="1">第1集</button>
|
|
</div>
|
|
|
|
<div class="main" id="mainContent">
|
|
<div class="empty-state">
|
|
<div class="empty-icon">🎬</div>
|
|
<div class="empty-title">视频预览加载中...</div>
|
|
<div class="empty-desc">铸渊正在生成分镜视频,完成后将自动部署到此页面。</div>
|
|
<div style="margin-top:20px">
|
|
<a href="https://docs.qq.com/aio/DTHhuWW5OQU9VbFVX" target="_blank" style="color:var(--accent-dim);text-decoration:none;font-size:14px">
|
|
📋 查看项目进度 →
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="footer">
|
|
<p>光湖视频AI系统 · 铸渊 ICE-GL-ZY001 生成 · 冰朔 TCS-0002∞ 审核</p>
|
|
<p style="margin-top:4px">© 国作登字-2026-A-00037559 · <a href="https://docs.qq.com/aio/DTHhuWW5OQU9VbFVX" target="_blank">腾讯文档项目看板</a></p>
|
|
</div>
|
|
|
|
<script>
|
|
// ===== 视频数据加载 =====
|
|
// 铸渊每次生成新视频,更新此 JSON 即可
|
|
const VIDEO_DATA_URL = '/data/videos.json';
|
|
|
|
async function loadVideos() {
|
|
try {
|
|
const resp = await fetch(VIDEO_DATA_URL);
|
|
if (!resp.ok) throw new Error('数据加载失败');
|
|
return await resp.json();
|
|
} catch (e) {
|
|
console.warn('视频数据未就绪,显示空状态', e);
|
|
return null;
|
|
}
|
|
}
|
|
|
|
function render(data) {
|
|
if (!data || !data.episodes || data.episodes.length === 0) return;
|
|
|
|
const projectName = document.getElementById('projectName');
|
|
const totalShots = document.getElementById('totalShots');
|
|
const progressFill = document.getElementById('progressFill');
|
|
const progressLabel = document.getElementById('progressLabel');
|
|
const episodeTabs = document.getElementById('episodeTabs');
|
|
const mainContent = document.getElementById('mainContent');
|
|
|
|
// 项目信息
|
|
projectName.textContent = '📺 ' + (data.project || '未命名项目');
|
|
|
|
// 集数标签
|
|
let tabsHtml = '';
|
|
data.episodes.forEach((ep, i) => {
|
|
const completed = ep.scenes.every(s => s.shots.every(sh => sh.videoUrl));
|
|
tabsHtml += `<button class="episode-tab ` +
|
|
(i === 0 ? 'active' : '') +
|
|
(completed ? ' completed' : '') +
|
|
`" data-ep="${i}">第${ep.number}集</button>`;
|
|
});
|
|
episodeTabs.innerHTML = tabsHtml;
|
|
|
|
// 默认显示第一集
|
|
renderEpisode(data.episodes[0]);
|
|
updateStats(data.episodes[0]);
|
|
|
|
// 点击标签切换
|
|
episodeTabs.addEventListener('click', (e) => {
|
|
if (!e.target.classList.contains('episode-tab')) return;
|
|
const epIdx = parseInt(e.target.dataset.ep);
|
|
document.querySelectorAll('.episode-tab').forEach(t => t.classList.remove('active'));
|
|
e.target.classList.add('active');
|
|
renderEpisode(data.episodes[epIdx]);
|
|
updateStats(data.episodes[epIdx]);
|
|
});
|
|
}
|
|
|
|
function renderEpisode(episode) {
|
|
const main = document.getElementById('mainContent');
|
|
if (!episode) return;
|
|
|
|
let html = '';
|
|
for (const scene of episode.scenes) {
|
|
html += `<div class="scene-section">`;
|
|
html += `<div class="scene-header">`;
|
|
html += `<span class="scene-num">${scene.id}</span>`;
|
|
html += `<span class="scene-title">${scene.name}</span>`;
|
|
html += `<span class="scene-desc">${scene.shots.length} 镜 · 每镜 ${scene.shots[0]?.duration || 5}s</span>`;
|
|
html += `</div>`;
|
|
html += `<div class="shot-grid">`;
|
|
|
|
for (const shot of scene.shots) {
|
|
const hasVideo = !!shot.videoUrl;
|
|
html += `<div class="shot-card ${hasVideo ? 'generated' : ''}">`;
|
|
html += `<div class="shot-video">`;
|
|
if (hasVideo) {
|
|
html += `<video src="${shot.videoUrl}" controls playsinline preload="metadata"></video>`;
|
|
} else {
|
|
html += `<span class="shot-placeholder">🎬</span>`;
|
|
}
|
|
html += `</div>`;
|
|
html += `<div class="shot-info">`;
|
|
html += `<div class="shot-label">`;
|
|
html += `<span>${shot.shotId}</span>`;
|
|
html += `<span class="shot-duration">${shot.duration || 5}s</span>`;
|
|
html += `</div>`;
|
|
html += `<div class="shot-prompt">${shot.prompt || '提示词生成中...'}</div>`;
|
|
html += `<div class="shot-status ${hasVideo ? 'ready' : 'pending'}">${hasVideo ? '✅ 已生成' : '⏳ 生成中...'}</div>`;
|
|
html += `</div></div>`;
|
|
}
|
|
|
|
html += `</div></div>`;
|
|
}
|
|
main.innerHTML = html;
|
|
}
|
|
|
|
function updateStats(episode) {
|
|
let total = 0, completed = 0;
|
|
for (const scene of episode.scenes) {
|
|
total += scene.shots.length;
|
|
completed += scene.shots.filter(s => s.videoUrl).length;
|
|
}
|
|
document.getElementById('totalShots').textContent = total;
|
|
const pct = total > 0 ? Math.round((completed / total) * 100) : 0;
|
|
document.getElementById('progressFill').style.width = pct + '%';
|
|
document.getElementById('progressLabel').textContent = pct + '% (' + completed + '/' + total + ')';
|
|
}
|
|
|
|
// ===== 启动 =====
|
|
loadVideos().then(render);
|
|
</script>
|
|
|
|
</body>
|
|
</html>
|