PRINTFILM: AI short-video marketing and AI short-drama creation platform
Add help drawer, dialog host, and clearer continue-generate status.
yi739e8f17e3bc
diff --git a/backend/app/api/projects.py b/backend/app/api/projects.pyindex cf95f0c..8658974 100644--- a/backend/app/api/projects.py+++ b/backend/app/api/projects.py@@ -336,9 +336,26 @@ async def generate_project(# Resume: clear error, keep existing shots/media (pipeline skips finished stages)project.error_msg = Noneproject.final_video_url = None- project.status = ProjectStatus.SCRIPTING- if project.progress <= 0 or restart:+ shots = list(project.shots or [])+ if restart or not shots:+ # First run / restart — actually splitting storyboard+ project.status = ProjectStatus.SCRIPTINGproject.progress = 1+ else:+ # Continue: label the real next stage so UI never shows「拆分镜中」+ image_text = (project.pipeline_mode or "full") == "image_text"+ has_images = all(bool(s.image_url or s.image_ark_url) for s in shots)+ has_audio = all(bool(s.audio_url) for s in shots)+ has_videos = all(bool(s.video_url) for s in shots)+ if not has_images or not has_audio:+ project.status = ProjectStatus.IMAGING+ project.progress = max(project.progress or 0, 18)+ elif not image_text and not has_videos:+ project.status = ProjectStatus.VIDEOING+ project.progress = max(project.progress or 0, 55)+ else:+ project.status = ProjectStatus.COMPOSING+ project.progress = max(project.progress or 0, 88)await db.commit()task_id = pipeline.start_pipeline(project_id)# Persist celery id on a job row when availablediff --git a/docs/PLACEHOLDER_BACKLOG.md b/docs/PLACEHOLDER_BACKLOG.mdnew file mode 100644index 0000000..cd38baa--- /dev/null+++ b/docs/PLACEHOLDER_BACKLOG.md@@ -0,0 +1,185 @@+# 占位功能与待开发清单++> 扫描日期:2026-08-07+> 依据:前端 `ComingSoon` / `disabled` 入口、[`PRINTFILM_UI_ROADMAP.md`](./PRINTFILM_UI_ROADMAP.md)、近期线上流水线问题。+> 状态标记:`待开发` | `部分完成` | `已完成待部署` | `工程债`++---++## 1. 文档与代码入口一览++| 区域 | 主要文件 |+|------|----------|+| 顶栏 | `frontend/src/components/layout/SiteNav.tsx` |+| 帮助抽屉 | `frontend/src/components/ui/HelpCenter.tsx`、`Modal.tsx`(`variant=drawer`) |+| 新建 | `frontend/src/pages/studio/CreateProjectPage.tsx` |+| 风格 | `frontend/src/pages/studio/StyleConfigPage.tsx` |+| 分镜 | `frontend/src/pages/studio/StoryboardPage.tsx` |+| 编辑器 | `frontend/src/pages/studio/EditorPage.tsx` |+| 历史 | `frontend/src/pages/HistoryPage.tsx` |+| 定价 | `frontend/src/pages/PricingPage.tsx` |+| ComingSoon 组件 | `frontend/src/components/ui/ComingSoon.tsx` |++---++## 2. 全局 / 壳层++| ID | 功能 | 现状 | 优先级 | 备注 |+|----|------|------|--------|------|+| G-01 | 福利 / 礼物入口 | 待开发 | P3 | 顶栏 disabled |+| G-02 | 帮助中心(侧边抽屉) | 已完成待部署 | P0 | 代码已改为右侧抽屉;需前端 build 上线 |+| G-03 | 通知中心 | 待开发 | P2 | 顶栏 disabled |+| G-04 | 用户资料下拉(设置/账单) | 待开发 | P2 | 当前头像点击为退出 |++---++## 3. 首页++| ID | 功能 | 现状 | 优先级 | 备注 |+|----|------|------|--------|------|+| H-01 | 「查看全部作品」独立社区页 | 待开发 | P2 | |+| H-02 | Hero 真实 Demo 成片播放 | 待开发 | P2 | 现为模板封面示意 |+| H-03 | 作品卡片播放量 / 点赞 / 作者 | 待开发 | P3 | 需后端字段与接口 |++---++## 4. 新建项目 `/studio/new`++| ID | 功能 | 现状 | 优先级 | 备注 |+|----|------|------|--------|------|+| C-01 | 导入文章链接解析 | 待开发 | P1 | Tab 存在,提交拦截 |+| C-02 | 上传文档(PDF/Word/TXT) | 待开发 | P1 | Tab 存在,提交拦截 |+| C-03 | 灵感示例「换一批」个性化 | 待开发 | P3 | |+| C-04 | 预估时长精确计算 | 待开发 | P3 | |+| C-05 | 「加载更多模板」分页 | 待开发 | P3 | 按钮 ComingSoon |++---++## 5. 风格配置 `/studio/:id/style`++| ID | 功能 | 现状 | 优先级 | 备注 |+|----|------|------|--------|------|+| S-01 | 预览模板 | 待开发 | P3 | |+| S-02 | 更多风格 / 付费风格包 | 待开发 | P2 | |+| S-03 | 更多音色扩展 | 待开发 | P2 | 当前已有音色列表与试听 |+| S-04 | 背景音乐曲库 + 音量 | 待开发 | P1 | 需接入合成管线 |+| S-05 | 字幕字体工具条(字号/对齐/颜色) | 待开发 | P1 | 模板有 `subtitle_config`,UI 未开放 |+| S-06 | 实时成片预览(非封面) | 待开发 | P2 | |+| S-07 | 1:1 / 4:3 / 21:9 独立合成管线 | 待开发 | P2 | schema 已支持 ratio,合成策略待完善 |++---++## 6. 分镜工作台 `/studio/:id`++| ID | 功能 | 现状 | 优先级 | 备注 |+|----|------|------|--------|------|+| B-01 | 批量调整分镜 | 已完成 | — | 统一时长 + 可选重配音 |+| B-02 | 导出分镜 CSV | 已完成 | — | |+| B-03 | 封面上传 / 用首镜封面 | 已完成 | — | |+| B-04 | 结构摘要真实模型字段 | 待开发 | P2 | UI 有 ComingSoon「示例聚合」 |+| B-05 | 大纲独立生成与编辑 | 待开发 | P2 | |+| B-06 | 继续生成状态文案纠正 | 已完成待部署 | P0 | 后端已热更;前端 `effectiveStatus` 需部署 |++---++## 7. 成片编辑器 `/studio/:id/editor`++| ID | 功能 | 现状 | 优先级 | 备注 |+|----|------|------|--------|------|+| E-01 | 撤销 / 重做 | 待开发 | P2 | |+| E-02 | 保存草稿 | 待开发 | P2 | 旁白保存已有;缺显式草稿态 |+| E-03 | 导出视频(多格式/多平台封装) | 待开发 | P1 | 历史页可下载成片;编辑器按钮占位 |+| E-04 | 添加镜头 | 待开发 | P1 | |+| E-05 | 拖拽调整镜头顺序 | 待开发 | P1 | |+| E-06 | 素材库 / 上传 / 拖拽替换画面 | 待开发 | P1 | 现可用 AI 重绘 |+| E-07 | AI 优化本镜文案 | 待开发 | P2 | |+| E-08 | 字幕样式设置面板 | 待开发 | P1 | |+| E-09 | 转场效果 | 待开发 | P3 | |+| E-10 | 应用到全部同类镜头 | 待开发 | P2 | |+| E-11 | 时间线精修 | 待开发 | P3 | |++---++## 8. 历史 / 我的项目 `/history`++| ID | 功能 | 现状 | 优先级 | 备注 |+|----|------|------|--------|------|+| Y-01 | 统计环比真实数据 | 待开发 | P2 | 文案「额度统计即将推出」 |+| Y-02 | 本月时长 / 额度条后端计量 | 待开发 | P1 | 与定价联动 |+| Y-03 | 「全部类型」筛选 | 待开发 | P3 | disabled |+| Y-04 | 复制链接 | 待开发 | P1 | 快速发布区 ComingSoon |+| Y-05 | 二维码分享 | 待开发 | P2 | |+| Y-06 | 嵌入代码 | 待开发 | P3 | |+| Y-07 | 平台一键导出(抖音/B 站等) | 待开发 | P2 | 列表「导出」按钮占位 |+| Y-08 | 「已发布」与「已完成」区分 | 待开发 | P2 | 当前多映射 DONE |+| Y-09 | 查看发布记录 | 待开发 | P2 | |+| Y-10 | 分页 | 部分完成 | P3 | 前端分页已有;缺服务端分页 |++---++## 9. 定价 `/pricing`++| ID | 功能 | 现状 | 优先级 | 备注 |+|----|------|------|--------|------|+| P-01 | 套餐 SKU 展示 | 待开发 | P1 | 整页 ComingSoon |+| P-02 | 支付与订单 | 待开发 | P1 | |+| P-03 | 额度扣减与高清导出权限 | 待开发 | P1 | |+| P-04 | 团队空间 | 待开发 | P3 | |++---++## 10. 工程债(非 ComingSoon,但影响体验)++| ID | 项 | 现状 | 优先级 | 备注 |+|----|----|------|--------|------|+| X-01 | `generate` 续跑勿标 SCRIPTING | 部分完成 | P0 | API 已热更;需确认 worker 与前端一并部署 |+| X-02 | Celery `pipeline` 队列去重 / 项目级互斥 | 待开发 | P0 | 同项目多次 continue 会堆积任务 |+| X-03 | 取消中途视频失败错误信息为空 | 待开发 | P1 | `RuntimeError('')` 日志难排查 |+| X-04 | 帮助中心 / 状态文案前端上线 | 已完成待部署 | P0 | `npm run build` + 静态发布 |+| X-05 | 视频阶段卡住时允许「仅补缺镜」 | 待开发 | P1 | 可走 `regen-video` + `compose`,避免整管线重入队 |++---++## 11. 建议下一迭代切片(可直接开工)++按「投入小、体感大」排序:++### Sprint A — 体验与稳定性(P0)++1. 部署前端:帮助侧栏 + `effectiveStatus` 状态文案+2. 流水线:项目级互斥锁 / 队列去重,避免同项目并行双任务+3. 续跑失败时保留素材,明确错误提示(勿清空分镜)++### Sprint B — 创作输入与风格(P1)++1. **C-01** 文章链接抓取 → `source_text`+2. **C-02** 文档上传解析+3. **S-04 / S-05** BGM + 字幕样式最小集接入合成++### Sprint C — 编辑器与资产(P1)++1. **E-06** 本地上传替换镜头图+2. **E-04 / E-05** 增删镜头与调序+3. **E-03 / Y-04** 编辑器导出与历史页复制分享链接++### Sprint D — 商业化(P1–P2)++1. **P-01~P-03** 定价与额度+2. **Y-02** 历史页额度条接真实数据++---++## 12. ComingSoon 出现位置速查++```+SiteNav 福利、通知(帮助已接通)+CreateProject 导入链接、上传文档、加载更多模板+StyleConfig 预览模板、更多风格、更多音色、BGM、字幕样式+Storyboard 结构摘要示例聚合+EditorPage 撤销/重做/草稿、导出、加镜、调序、素材拖拽、+ AI 优化、样式设置、应用到全部+HistoryPage 复制链接、二维码、嵌入、查看发布记录、导出平台、类型筛选+PricingPage 整页定价方案+```++统计(约):**UI 占位入口 40+**;其中本迭代建议优先落地 **约 10~12 项**(Sprint A–C)。diff --git a/docs/PRINTFILM_UI_ROADMAP.md b/docs/PRINTFILM_UI_ROADMAP.mdindex 93486e3..c35e6c0 100644--- a/docs/PRINTFILM_UI_ROADMAP.md+++ b/docs/PRINTFILM_UI_ROADMAP.md@@ -1,6 +1,8 @@# PRINTFILM UI 还原与后续路线图-本文档对应 6 张设计图的前端还原结果:已接线能力、占位能力与建议迭代顺序。+本文档对应设计图的前端还原结果:已接线能力、与占位清单的关系。++**待开发功能请以 [PLACEHOLDER_BACKLOG.md](./PLACEHOLDER_BACKLOG.md) 为准**(含优先级与代码入口)。本文保留路由对照与视觉约定。## 路由与设计图对应@@ -22,87 +24,38 @@## 已实现(接线现有 API)- 登录 / 注册 / 顶栏用户态+- 帮助中心(侧边抽屉 UI,需前端部署上线)- 模板列表、分类筛选、从模板进入创作- 创建项目(主题 / 完整文案)→ 风格配置 → `generate` 启动流水线-- 风格:切换模板预设、风格/角色提示词、音色、`pipeline_mode`(16:9 全链路 / 9:16 图文)-- 分镜台:进度轮询、分镜表、编辑镜头、重绘/重生视频/重配音、继续生成、合成、预览成片、发布+- 风格:切换模板预设、风格/角色提示词、音色试听、`pipeline_mode`、画幅+- 分镜台:进度、分镜表、编辑镜头、重绘/重生视频/重配音、继续生成、合成、预览、发布+- 分镜台:批量调时长、CSV 导出、封面上传 / 首镜封面- 编辑器:场景列表、预览真实媒体、保存旁白、重绘、重配音-- 历史:列表、状态筛选、搜索、继续编辑、预览、删除、批量 zip 下载+- 历史:列表、状态筛选、搜索、继续编辑、预览、删除、批量 zip、前端分页- 公开作品展示(首页)+- 全局 DialogHost(alert / confirm / prompt)-## 占位功能(UI 已出 / 禁用或「即将推出」)--按页面列出,供后续迭代实现。--### 全局顶栏--1. 福利 / 礼物入口-2. 帮助中心-3. 通知中心-4. 用户资料下拉(当前点击头像为退出)--### 首页--1. 「查看全部作品」独立社区页-2. Hero 右侧真实 Demo 成片播放(当前为模板封面示意)-3. 作品卡片播放量 / 点赞 / 作者信息--### 新建项目--1. 导入文章链接解析-2. 上传文档(PDF/Word/TXT)-3. 灵感示例「换一批」个性化推荐-4. 预估时长精确计算-5. 「加载更多模板」分页--### 风格配置--1. 「更多风格」商店 / 付费风格包-2. BGM 曲库、波形预览、音量-3. 字幕字体工具条(字号/对齐/颜色)-4. 实时成片预览(非模板封面)-5. 1:1 / 4:3 / 21:9 独立合成管线(当前非 9:16 暂映射全链路)--### 分镜工作台--1. ~~批量调整分镜~~(已实现:统一时长 + 可选重配音)-2. ~~导出分镜脚本(CSV)~~-3. ~~更换封面上传 / 用首镜封面~~-4. 真正的「结构摘要」模型字段(当前由镜头旁白聚合示意)-5. 大纲独立生成与编辑--### 成片编辑器--1. 撤销 / 重做 / 保存草稿-2. 导出视频多格式 / 多平台封装-3. 添加镜头、拖拽调序-4. 素材库 / 收藏 / 上传 / 拖拽替换-5. AI 优化文案-6. 字幕样式与位置网格-7. 转场效果-8. 「应用到全部同类镜头」--### 历史 / 我的项目+## 占位与待开发-1. 统计环比(较上月 ↑)真实数据-2. 本月时长 / 额度条后端计量-3. 快速发布:复制链接、二维码、嵌入-4. 平台一键导出(抖音 / B 站 / 小红书 / 视频号 / YouTube)-5. 「已发布」与「已完成」状态区分(当前均映射 DONE)-6. 分页组件+详见 **[PLACEHOLDER_BACKLOG.md](./PLACEHOLDER_BACKLOG.md)**,按页面与优先级分类。摘要:-### 定价+| 优先级 | 方向 |+|--------|------|+| P0 | 前端部署(帮助抽屉、续跑状态文案)、队列去重 / 项目互斥 |+| P1 | 链接/文档导入、BGM+字幕、素材上传替换、加镜调序、导出/分享、定价额度 |+| P2 | 通知、社区、风格商店、平台分发、转场以外的编辑器增强 |+| P3 | 福利、点赞播放量、转场、时间线精修、团队空间 |-1. 套餐 SKU、支付、额度扣减+## 建议迭代优先级(历史)-## 建议迭代优先级+以下条目已部分落地,保留作对照:-1. **P0**:编辑器旁白保存 + 分镜重生闭环体验打磨;合成失败可恢复提示-2. **P1**:BGM 选曲接入合成;字幕样式最小集;封面上传-3. **P1**:素材库(本地上传替换镜头图)-4. **P2**:平台导出 / 分享链接;通知中心-5. **P2**:额度与定价;社区作品流-6. **P3**:转场、时间线精修、批量调整、文档/链接导入+1. ~~P0:编辑器旁白保存 + 分镜重生~~(基本可用,继续打磨失败恢复)+2. ~~P1:封面上传~~(已做);BGM / 字幕样式仍待做+3. P1:素材库(本地上传替换镜头图)— 仍待做+4. P2:平台导出 / 分享链接;通知中心+5. P2:额度与定价;社区作品流+6. P3:转场、时间线精修、文档/链接导入## 视觉约定@@ -110,5 +63,6 @@- 背景:`#F7F8FA`(`--pf-bg`)- 卡片白底、圆角约 14px、轻阴影- 顶栏居中导航 + 右侧「开始创作」+- 帮助等次要面板:右侧抽屉(`Modal variant=drawer`),避免居中大弹层挡工作台-字体:Space Grotesk(品牌英文)+ Noto Sans SC(正文,近似设计稿思源黑体)。+字体:Space Grotesk(品牌英文)+ Noto Sans SC(正文)。diff --git a/docs/README.md b/docs/README.mdnew file mode 100644index 0000000..7b70526--- /dev/null+++ b/docs/README.md@@ -0,0 +1,17 @@+# docs 目录索引++PRINTFILM(ai_movie)产品与工程文档。++| 文档 | 说明 |+|------|------|+| [PLACEHOLDER_BACKLOG.md](./PLACEHOLDER_BACKLOG.md) | **占位 / 待开发功能总表**(ComingSoon、禁用入口、建议优先级) |+| [PRINTFILM_UI_ROADMAP.md](./PRINTFILM_UI_ROADMAP.md) | UI 还原对照:路由、已接线能力、视觉约定 |+| [../deploy/README.md](../deploy/README.md) | 线上部署(Postgres/Redis、systemd、nginx) |+| [../README.md](../README.md) | 仓库总览与本地启动 |++相关非 docs 备忘:++- `.claude/工作流状态.md` — 线上地址与中间件端口+- `.tmp/` — 本地批处理脚本与抓取文案(勿入库敏感 token)++**维护约定**:新增 `ComingSoon` / `disabled` 功能入口时,同步更新 `PLACEHOLDER_BACKLOG.md`;功能上线后勾掉对应条目。diff --git a/frontend/src/App.tsx b/frontend/src/App.tsxindex aa45c07..ebf1a48 100644--- a/frontend/src/App.tsx+++ b/frontend/src/App.tsx@@ -1,4 +1,5 @@import { BrowserRouter, Navigate, Route, Routes } from 'react-router-dom'+import DialogHost from './components/ui/DialogHost'import AuthPage from './pages/AuthPage'import HistoryPage from './pages/HistoryPage'import HomePage from './pages/HomePage'@@ -28,6 +29,7 @@ export default function App() {<Route path="/studio" element={<StudioPage />} /><Route path="*" element={<Navigate to="/" replace />} /></Routes>+ <DialogHost /></BrowserRouter>)}diff --git a/frontend/src/components/layout/SiteNav.tsx b/frontend/src/components/layout/SiteNav.tsxindex 9dcb60e..1c742b9 100644--- a/frontend/src/components/layout/SiteNav.tsx+++ b/frontend/src/components/layout/SiteNav.tsx@@ -3,6 +3,7 @@ import { useEffect, useState } from 'react'import { api } from '../../api'import type { User } from '../../api'import BrandMark from '../BrandMark'+import HelpCenter from '../ui/HelpCenter'import { IconBell, IconGift, IconHelp } from '../ui/Icons'type Props = {@@ -13,6 +14,7 @@ export default function SiteNav({ active }: Props) {const nav = useNavigate()const location = useLocation()const [user, setUser] = useState<User | null>(null)+ const [helpOpen, setHelpOpen] = useState(false)useEffect(() => {if (!localStorage.getItem('token')) return@@ -62,7 +64,13 @@ export default function SiteNav({ active }: Props) {<button type="button" className="pf-icon-btn" title="福利(即将推出)" disabled><IconGift size={18} /></button>- <button type="button" className="pf-icon-btn" title="帮助(即将推出)" disabled>+ <button+ type="button"+ className="pf-icon-btn"+ title="帮助中心"+ aria-label="打开帮助中心"+ onClick={() => setHelpOpen(true)}+ ><IconHelp size={18} /></button><button type="button" className="pf-icon-btn" title="通知(即将推出)" disabled>@@ -89,6 +97,7 @@ export default function SiteNav({ active }: Props) {</>)}</div>+ <HelpCenter open={helpOpen} onClose={() => setHelpOpen(false)} /></header>)}diff --git a/frontend/src/components/ui/DialogHost.tsx b/frontend/src/components/ui/DialogHost.tsxnew file mode 100644index 0000000..be4d087--- /dev/null+++ b/frontend/src/components/ui/DialogHost.tsx@@ -0,0 +1,147 @@+import { useEffect, useId, useRef, useState, useSyncExternalStore, type FormEvent } from 'react'+import {+ closeDialog,+ getDialogRequest,+ subscribeDialog,+ type DialogRequest,+ type DialogTone,+} from '../../lib/dialog'++function toneClass(tone: DialogTone | undefined) {+ if (tone === 'danger') return 'pf-dialog--danger'+ if (tone === 'success') return 'pf-dialog--success'+ return 'pf-dialog--default'+}++function iconFor(kind: DialogRequest['kind'], tone: DialogTone | undefined) {+ if (tone === 'danger') return '!'+ if (tone === 'success') return '✓'+ if (kind === 'prompt') return '✎'+ if (kind === 'confirm') return '?'+ return 'i'+}++function dismissRequest(active: DialogRequest) {+ if (active.kind === 'confirm') active.resolve(false)+ else if (active.kind === 'prompt') active.resolve(null)+ else active.resolve()+ closeDialog()+}++function acceptRequest(active: DialogRequest, promptValue: string) {+ if (active.kind === 'confirm') active.resolve(true)+ else if (active.kind === 'prompt') active.resolve(promptValue)+ else active.resolve()+ closeDialog()+}++export default function DialogHost() {+ const req = useSyncExternalStore(subscribeDialog, getDialogRequest, getDialogRequest)+ const [promptValue, setPromptValue] = useState('')+ const inputRef = useRef<HTMLInputElement>(null)+ const titleId = useId()+ const descId = useId()++ useEffect(() => {+ if (!req) return+ if (req.kind === 'prompt') {+ setPromptValue(req.options.defaultValue || '')+ const t = window.setTimeout(() => inputRef.current?.focus(), 40)+ return () => window.clearTimeout(t)+ }+ setPromptValue('')+ }, [req])++ useEffect(() => {+ if (!req) return+ const prev = document.body.style.overflow+ document.body.style.overflow = 'hidden'+ const onKey = (e: KeyboardEvent) => {+ if (e.key === 'Escape') dismissRequest(req)+ }+ window.addEventListener('keydown', onKey)+ return () => {+ document.body.style.overflow = prev+ window.removeEventListener('keydown', onKey)+ }+ }, [req])++ if (!req) return null++ const active: DialogRequest = req+ const tone = active.options.tone || 'default'+ const title =+ active.options.title ||+ (active.kind === 'confirm' ? '请确认' : active.kind === 'prompt' ? '请输入' : '提示')+ const message =+ active.kind === 'prompt' ? active.options.message || '' : active.options.message+ const confirmText =+ active.kind === 'alert'+ ? active.options.confirmText || '知道了'+ : active.options.confirmText || '确定'+ const cancelText = active.kind === 'alert' ? '' : active.options.cancelText || '取消'++ function onSubmit(e: FormEvent) {+ e.preventDefault()+ acceptRequest(active, promptValue)+ }++ return (+ <div className="pf-dialog-root" role="presentation">+ <div className="pf-dialog-veil" aria-hidden onMouseDown={() => dismissRequest(active)} />+ <form+ className={`pf-dialog ${toneClass(tone)}`}+ role="alertdialog"+ aria-modal="true"+ aria-labelledby={titleId}+ aria-describedby={message ? descId : undefined}+ onSubmit={onSubmit}+ >+ <div className="pf-dialog-glow" aria-hidden />+ <div className="pf-dialog-mark" aria-hidden>+ <span>{iconFor(active.kind, tone)}</span>+ </div>+ <div className="pf-dialog-body">+ <h2 id={titleId} className="pf-dialog-title">+ {title}+ </h2>+ {message ? (+ <p id={descId} className="pf-dialog-message">+ {message}+ </p>+ ) : null}+ {active.kind === 'prompt' ? (+ <input+ ref={inputRef}+ className="pf-dialog-input"+ value={promptValue}+ placeholder={active.options.placeholder || ''}+ onChange={(e) => setPromptValue(e.target.value)}+ />+ ) : null}+ </div>+ <div className="pf-dialog-actions">+ {cancelText ? (+ <button+ type="button"+ className="pf-dialog-btn pf-dialog-btn-ghost"+ onClick={() => dismissRequest(active)}+ >+ {cancelText}+ </button>+ ) : null}+ <button+ type="submit"+ className={[+ 'pf-dialog-btn',+ tone === 'danger' ? 'pf-dialog-btn-danger' : 'pf-dialog-btn-primary',+ ].join(' ')}+ autoFocus={active.kind !== 'prompt'}+ >+ {confirmText}+ </button>+ </div>+ </form>+ </div>+ )+}diff --git a/frontend/src/components/ui/HelpCenter.tsx b/frontend/src/components/ui/HelpCenter.tsxnew file mode 100644index 0000000..594cf7e--- /dev/null+++ b/frontend/src/components/ui/HelpCenter.tsx@@ -0,0 +1,158 @@+import { useState } from 'react'+import { Link } from 'react-router-dom'+import Modal from './Modal'++type Tab = 'guide' | 'faq'++type Props = {+ open: boolean+ onClose: () => void+}++const GUIDE_STEPS = [+ {+ n: '01',+ title: '选模板或输入主题',+ body: '在首页或「模板」挑一个风格,或到创作台直接写主题 / 粘贴完整文案。登录后即可开始。',+ },+ {+ n: '02',+ title: '配置风格与成片方式',+ body: '确认视觉风格、角色一致性、音色与画幅比例;选择「AI 视频」或「静图成片」。满意后点击生成。',+ },+ {+ n: '03',+ title: '审阅分镜并继续制作',+ body: '先看旁白与分镜标题是否准确。可点开单镜改文案与提示词,再继续生成画面、配音与视频。',+ },+ {+ n: '04',+ title: '合成、预览与发布',+ body: '全部镜头就绪后一键合成成片,预览无误即可发布到作品墙,或在「历史」里下载与继续编辑。',+ },+]++const FAQ_ITEMS = [+ {+ q: '第一次使用从哪开始?',+ a: '建议从首页「开始创作」进入:选一个模板 → 写主题 → 在风格页确认预设后生成。也可以先逛「模板」找灵感。',+ },+ {+ q: '「AI 视频」和「静图成片」有什么区别?',+ a: 'AI 视频会对镜头做动态生成,观感更强、耗时与成本更高;静图成片用高质量静帧配旁白合成,更快更稳,适合图文科普。',+ },+ {+ q: '生成中可以离开页面吗?',+ a: '可以。任务在后台继续跑,回到「历史」或打开对应项目即可查看进度。生成中请勿重复点「推倒重做」,除非你要清空重来。',+ },+ {+ q: '某一镜画面 / 旁白不满意怎么办?',+ a: '在分镜工作台选中该镜:可改旁白与提示词,再单独「重绘」「重生视频」或「重配音」,不必整片重做。',+ },+ {+ q: '为什么旁白和画面时长对不上?',+ a: '合成时会尽量以旁白时长为准,并对较短的视频镜头做定格补齐。若仍觉得偏短,可略加长该镜旁白或提高镜头目标时长后重配音。',+ },+ {+ q: '成片在哪里下载?',+ a: '项目状态为「已完成」后,在分镜页预览弹窗或「历史」列表中可下载成片;历史页也支持批量打包下载。',+ },+ {+ q: '需要角色始终同一人吗?',+ a: '部分模板会锁定角色形象;科普 / 开源展示等模板更偏风格或内容多样,可在风格页查看与调整角色提示词。',+ },+ {+ q: '登录后数据会丢吗?',+ a: '项目保存在你的账号下,可在「历史」随时找回。删除项目会清除素材与成片,操作前会二次确认。',+ },+]++export default function HelpCenter({ open, onClose }: Props) {+ const [tab, setTab] = useState<Tab>('guide')+ const [openFaq, setOpenFaq] = useState<number | null>(0)++ return (+ <Modal+ open={open}+ onClose={onClose}+ title="帮助中心"+ variant="drawer"+ className="pf-help-modal"+ footer={+ <>+ <Link to="/studio/new" className="pf-btn pf-btn-ghost pf-btn-sm" onClick={onClose}>+ 去创作台+ </Link>+ <button type="button" className="pf-btn pf-btn-lime pf-btn-sm" onClick={onClose}>+ 知道了+ </button>+ </>+ }+ >+ <div className="pf-help">+ <p className="pf-help-lede">+ 从主题到成片的快速指南,以及创作时最常遇到的问题。+ </p>++ <div className="pf-help-tabs" role="tablist" aria-label="帮助分类">+ <button+ type="button"+ role="tab"+ aria-selected={tab === 'guide'}+ className={tab === 'guide' ? 'active' : undefined}+ onClick={() => setTab('guide')}+ >+ 操作指南+ </button>+ <button+ type="button"+ role="tab"+ aria-selected={tab === 'faq'}+ className={tab === 'faq' ? 'active' : undefined}+ onClick={() => setTab('faq')}+ >+ 常见问题+ </button>+ </div>++ {tab === 'guide' ? (+ <ol className="pf-help-steps">+ {GUIDE_STEPS.map((s) => (+ <li key={s.n}>+ <span className="pf-help-step-n" aria-hidden>+ {s.n}+ </span>+ <div>+ <strong>{s.title}</strong>+ <p>{s.body}</p>+ </div>+ </li>+ ))}+ </ol>+ ) : (+ <div className="pf-help-faq">+ {FAQ_ITEMS.map((item, i) => {+ const expanded = openFaq === i+ return (+ <div key={item.q} className={`pf-help-faq-item${expanded ? ' open' : ''}`}>+ <button+ type="button"+ className="pf-help-faq-q"+ aria-expanded={expanded}+ onClick={() => setOpenFaq(expanded ? null : i)}+ >+ <span>{item.q}</span>+ <span className="pf-help-faq-chev" aria-hidden>+ {expanded ? '−' : '+'}+ </span>+ </button>+ {expanded ? <p className="pf-help-faq-a">{item.a}</p> : null}+ </div>+ )+ })}+ </div>+ )}+ </div>+ </Modal>+ )+}diff --git a/frontend/src/components/ui/Modal.tsx b/frontend/src/components/ui/Modal.tsxnew file mode 100644index 0000000..dfcb3fa--- /dev/null+++ b/frontend/src/components/ui/Modal.tsx@@ -0,0 +1,88 @@+import { useEffect, type ReactNode } from 'react'++type ModalProps = {+ open: boolean+ onClose: () => void+ title?: string+ children: ReactNode+ /** wider preview / form shells */+ size?: 'md' | 'lg' | 'xl'+ /** center dialog (default) or right-side drawer */+ variant?: 'center' | 'drawer'+ /** prevent closing via backdrop / Escape while busy */+ dismissible?: boolean+ footer?: ReactNode+ className?: string+}++export default function Modal({+ open,+ onClose,+ title,+ children,+ size = 'md',+ variant = 'center',+ dismissible = true,+ footer,+ className = '',+}: ModalProps) {+ useEffect(() => {+ if (!open) return+ const prev = document.body.style.overflow+ document.body.style.overflow = 'hidden'+ const onKey = (e: KeyboardEvent) => {+ if (e.key === 'Escape' && dismissible) onClose()+ }+ window.addEventListener('keydown', onKey)+ return () => {+ document.body.style.overflow = prev+ window.removeEventListener('keydown', onKey)+ }+ }, [open, dismissible, onClose])++ if (!open) return null++ const isDrawer = variant === 'drawer'++ return (+ <div+ className={['pf-dialog-root', isDrawer ? 'pf-dialog-root--drawer' : ''].filter(Boolean).join(' ')}+ role="presentation"+ >+ <div+ className="pf-dialog-veil"+ aria-hidden+ onMouseDown={() => {+ if (dismissible) onClose()+ }}+ />+ <div+ className={[+ 'pf-modal-panel',+ isDrawer ? 'pf-modal-panel--drawer' : '',+ !isDrawer && size === 'lg' ? 'pf-modal-panel--lg' : '',+ !isDrawer && size === 'xl' ? 'pf-modal-panel--xl' : '',+ className,+ ]+ .filter(Boolean)+ .join(' ')}+ role="dialog"+ aria-modal="true"+ aria-label={title || '对话框'}+ >+ {title ? (+ <header className="pf-modal-head">+ <h3>{title}</h3>+ {dismissible ? (+ <button type="button" className="pf-modal-close" onClick={onClose} aria-label="关闭">+ ×+ </button>+ ) : null}+ </header>+ ) : null}+ <div className="pf-modal-body">{children}</div>+ {footer ? <footer className="pf-modal-foot">{footer}</footer> : null}+ </div>+ </div>+ )+}diff --git a/frontend/src/lib/dialog.ts b/frontend/src/lib/dialog.tsnew file mode 100644index 0000000..4bea86f--- /dev/null+++ b/frontend/src/lib/dialog.ts@@ -0,0 +1,103 @@+export type DialogTone = 'default' | 'danger' | 'success'++export type ConfirmOptions = {+ title?: string+ message: string+ confirmText?: string+ cancelText?: string+ tone?: DialogTone+}++export type AlertOptions = {+ title?: string+ message: string+ confirmText?: string+ tone?: DialogTone+}++export type PromptOptions = {+ title?: string+ message?: string+ placeholder?: string+ defaultValue?: string+ confirmText?: string+ cancelText?: string+ tone?: DialogTone+}++type ConfirmRequest = {+ kind: 'confirm'+ options: ConfirmOptions+ resolve: (ok: boolean) => void+}++type AlertRequest = {+ kind: 'alert'+ options: AlertOptions+ resolve: () => void+}++type PromptRequest = {+ kind: 'prompt'+ options: PromptOptions+ resolve: (value: string | null) => void+}++export type DialogRequest = ConfirmRequest | AlertRequest | PromptRequest++type Listener = () => void++let current: DialogRequest | null = null+const listeners = new Set<Listener>()++function emit() {+ listeners.forEach((fn) => fn())+}++export function getDialogRequest() {+ return current+}++export function subscribeDialog(listener: Listener) {+ listeners.add(listener)+ return () => listeners.delete(listener)+}++function push(request: DialogRequest) {+ if (current) {+ // Resolve pending dialog as cancelled / dismissed+ if (current.kind === 'confirm') current.resolve(false)+ else if (current.kind === 'prompt') current.resolve(null)+ else current.resolve()+ }+ current = request+ emit()+}++export function closeDialog() {+ current = null+ emit()+}++export const dialog = {+ confirm(options: ConfirmOptions | string) {+ const opts = typeof options === 'string' ? { message: options } : options+ return new Promise<boolean>((resolve) => {+ push({ kind: 'confirm', options: opts, resolve })+ })+ },++ alert(options: AlertOptions | string) {+ const opts = typeof options === 'string' ? { message: options } : options+ return new Promise<void>((resolve) => {+ push({ kind: 'alert', options: opts, resolve })+ })+ },++ prompt(options: PromptOptions | string) {+ const opts = typeof options === 'string' ? { message: options } : options+ return new Promise<string | null>((resolve) => {+ push({ kind: 'prompt', options: opts, resolve })+ })+ },+}diff --git a/frontend/src/lib/status.ts b/frontend/src/lib/status.tsindex 1e90346..a02242d 100644--- a/frontend/src/lib/status.ts+++ b/frontend/src/lib/status.ts@@ -31,6 +31,39 @@ export function isRunning(status: string) {return RUNNING.has(status)}+/**+ * Prefer stage inferred from shot assets when status is still SCRIPTING+ * (e.g. continue-generate briefly labeled wrong, or worker lag).+ */+export function effectiveStatus(project: {+ status: string+ pipeline_mode?: string | null+ shots?: Array<{ image_url?: string | null; audio_url?: string | null; video_url?: string | null }>+}): string {+ const status = project.status+ const shots = project.shots || []+ if (status !== 'SCRIPTING' || shots.length === 0) return status++ const full = project.pipeline_mode !== 'image_text'+ const imgs = shots.filter((s) => s.image_url).length+ const auds = shots.filter((s) => s.audio_url).length+ const vids = shots.filter((s) => s.video_url).length+ const n = shots.length++ if (imgs === n && auds === n) {+ if (full && vids < n) return 'VIDEOING'+ if (full && vids === n) return 'COMPOSING'+ if (!full) return 'COMPOSING'+ }+ if (imgs > 0 || auds > 0) return 'IMAGING'+ return status+}++export function statusLabel(projectOrStatus: string | Parameters<typeof effectiveStatus>[0]) {+ const status = typeof projectOrStatus === 'string' ? projectOrStatus : effectiveStatus(projectOrStatus)+ return STATUS_CN[status] || status+}+export function statusTone(status: string): 'ok' | 'bad' | 'run' | 'idle' {if (status === 'DONE') return 'ok'if (status === 'FAILED' || status === 'REJECTED' || status === 'CANCELLED') return 'bad'diff --git a/frontend/src/pages/HistoryPage.tsx b/frontend/src/pages/HistoryPage.tsxindex 990e377..a6ea82c 100644--- a/frontend/src/pages/HistoryPage.tsx+++ b/frontend/src/pages/HistoryPage.tsx@@ -22,6 +22,7 @@ import {IconSend,IconTrash,} from '../components/ui/Icons'+import { dialog } from '../lib/dialog'import { isRunning, STATUS_CN, statusTone } from '../lib/status'type HistoryItem = Omit<Project, 'shots'>@@ -158,7 +159,14 @@ export default function HistoryPage() {}async function remove(id: number) {- if (!window.confirm('确定删除该项目?')) return+ const ok = await dialog.confirm({+ title: '删除项目',+ message: '确定删除该项目?素材与成片将一并清除。',+ confirmText: '删除',+ cancelText: '取消',+ tone: 'danger',+ })+ if (!ok) returnsetBusyId(id)try {await api.deleteProject(id)diff --git a/frontend/src/pages/studio/StoryboardPage.tsx b/frontend/src/pages/studio/StoryboardPage.tsxindex 1d2c3d8..4f4feaf 100644--- a/frontend/src/pages/studio/StoryboardPage.tsx+++ b/frontend/src/pages/studio/StoryboardPage.tsx@@ -17,13 +17,15 @@ import {IconTrash,} from '../../components/ui/Icons'import { scenePromptForDisplay } from '../../promptDisplay'+import { dialog } from '../../lib/dialog'import {BOARD_STEPS,+ effectiveStatus,formatMmSs,isRunning,shotIsDone,shotStatusLabel,- STATUS_CN,+ statusLabel,} from '../../lib/status'function csvEscape(value: string | number | null | undefined) {@@ -219,6 +221,7 @@ export default function StoryboardPage() {const auds = list.filter((s) => s.audio_url).lengthconst vids = list.filter((s) => s.video_url).lengthconst full = project.pipeline_mode !== 'image_text'+ const stage = effectiveStatus(project)type ProgressItem = { label: string; done: boolean; run?: boolean; pct?: number }const items: ProgressItem[] = [{ label: '主题解析', done: true },@@ -238,16 +241,16 @@ export default function StoryboardPage() {done:list.length > 0 &&(vids === list.length ||- ['VIDEO_READY', 'COMPOSING', 'AUDITING', 'DONE'].includes(project.status)),- run: project.status === 'VIDEOING',- pct: project.status === 'VIDEOING' ? project.progress : undefined,+ ['VIDEO_READY', 'COMPOSING', 'AUDITING', 'DONE'].includes(stage)),+ run: stage === 'VIDEOING',+ pct: stage === 'VIDEOING' ? project.progress : undefined,})}items.push({label: '成片渲染',done: Boolean(project.final_video_url) || project.status === 'DONE',- run: project.status === 'COMPOSING',- pct: project.status === 'COMPOSING' ? project.progress : undefined,+ run: stage === 'COMPOSING',+ pct: stage === 'COMPOSING' ? project.progress : undefined,})return items}, [project])@@ -277,12 +280,14 @@ export default function StoryboardPage() {async function restartGenerate() {if (!project) return- if (- !window.confirm(- '确定推倒重做?将清空当前分镜与素材,重新拆分镜(生成后仍可先确认再继续)。',- )- )- return+ const ok = await dialog.confirm({+ title: '推倒重做',+ message: '将清空当前分镜与素材,重新拆分镜(生成后仍可先确认再继续)。',+ confirmText: '确认重做',+ cancelText: '再想想',+ tone: 'danger',+ })+ if (!ok) returnsetBusy(true)setError('')try {@@ -296,7 +301,14 @@ export default function StoryboardPage() {async function deleteProject() {if (!project) return- if (!window.confirm('确定删除该项目?素材与成片将一并清除。')) return+ const ok = await dialog.confirm({+ title: '删除项目',+ message: '确定删除该项目?素材与成片将一并清除,此操作不可恢复。',+ confirmText: '删除',+ cancelText: '取消',+ tone: 'danger',+ })+ if (!ok) returnsetBusy(true)try {await api.deleteProject(project.id)@@ -690,7 +702,7 @@ export default function StoryboardPage() {</li><li><span>状态</span>- <span>{STATUS_CN[project.status] || project.status}</span>+ <span>{statusLabel(project)}</span></li><li><span>进度</span>@@ -1051,7 +1063,7 @@ export default function StoryboardPage() {<i style={{ width: `${Math.min(100, project.progress)}%` }} /></div><p className="pf-muted" style={{ fontSize: '0.82rem' }}>- {STATUS_CN[project.status] || project.status}+ {statusLabel(project)}</p></aside></div>diff --git a/frontend/src/styles/printfilm.css b/frontend/src/styles/printfilm.cssindex 80ff924..2b7ec36 100644--- a/frontend/src/styles/printfilm.css+++ b/frontend/src/styles/printfilm.css@@ -2146,15 +2146,534 @@ button.pf-shot-editable:disabled {margin-top: 1.5rem;}-/* modal reuse */+/* —— Global dialog / modal system —— */+.pf-dialog-root {+ position: fixed;+ inset: 0;+ z-index: 1000;+ display: grid;+ place-items: center;+ padding: 1.25rem;+ animation: pf-dialog-root-in 0.22s ease-out;+}++.pf-dialog-veil {+ position: absolute;+ inset: 0;+ background:+ radial-gradient(120% 80% at 50% 0%, rgba(182, 255, 0, 0.08), transparent 55%),+ rgba(17, 19, 24, 0.42);+ backdrop-filter: blur(8px);+ -webkit-backdrop-filter: blur(8px);+}++@keyframes pf-dialog-root-in {+ from {+ opacity: 0;+ }+ to {+ opacity: 1;+ }+}++@keyframes pf-dialog-panel-in {+ from {+ opacity: 0;+ transform: translateY(12px) scale(0.97);+ }+ to {+ opacity: 1;+ transform: translateY(0) scale(1);+ }+}++@keyframes pf-drawer-panel-in {+ from {+ opacity: 0.85;+ transform: translateX(100%);+ }+ to {+ opacity: 1;+ transform: translateX(0);+ }+}++.pf-dialog {+ position: relative;+ width: min(420px, 100%);+ padding: 1.45rem 1.4rem 1.2rem;+ border-radius: 18px;+ background:+ linear-gradient(180deg, #ffffff 0%, #fbfcfa 100%);+ border: 1px solid rgba(17, 19, 24, 0.08);+ box-shadow:+ 0 1px 0 rgba(255, 255, 255, 0.8) inset,+ 0 24px 64px rgba(17, 19, 24, 0.18);+ display: flex;+ flex-direction: column;+ gap: 1rem;+ animation: pf-dialog-panel-in 0.28s cubic-bezier(0.22, 1, 0.36, 1);+ overflow: hidden;+}++.pf-dialog-glow {+ position: absolute;+ top: -40%;+ right: -20%;+ width: 220px;+ height: 220px;+ border-radius: 50%;+ background: radial-gradient(circle, rgba(182, 255, 0, 0.22), transparent 68%);+ pointer-events: none;+}++.pf-dialog--danger .pf-dialog-glow {+ background: radial-gradient(circle, rgba(196, 60, 46, 0.18), transparent 68%);+}++.pf-dialog--success .pf-dialog-glow {+ background: radial-gradient(circle, rgba(42, 111, 122, 0.18), transparent 68%);+}++.pf-dialog-mark {+ width: 44px;+ height: 44px;+ border-radius: 14px;+ display: grid;+ place-items: center;+ font-family: 'Noto Serif SC', Georgia, serif;+ font-size: 1.35rem;+ font-weight: 600;+ background: var(--pf-lime-soft);+ color: #3d6500;+ border: 1px solid rgba(182, 255, 0, 0.45);+ position: relative;+ z-index: 1;+}++.pf-dialog--danger .pf-dialog-mark {+ background: #fdecea;+ color: #a32b20;+ border-color: rgba(196, 60, 46, 0.28);+}++.pf-dialog--success .pf-dialog-mark {+ background: #e7f3f4;+ color: #1f5a63;+ border-color: rgba(42, 111, 122, 0.28);+}++.pf-dialog-body {+ position: relative;+ z-index: 1;+ display: flex;+ flex-direction: column;+ gap: 0.45rem;+}++.pf-dialog-title {+ margin: 0;+ font-family: 'Noto Serif SC', Georgia, serif;+ font-size: 1.35rem;+ font-weight: 500;+ letter-spacing: -0.02em;+ color: var(--pf-ink);+ line-height: 1.25;+}++.pf-dialog-message {+ margin: 0;+ color: var(--pf-muted);+ font-size: 0.92rem;+ line-height: 1.6;+}++.pf-dialog-input {+ margin-top: 0.35rem;+ border: 1px solid var(--pf-line);+ border-radius: 10px;+ padding: 0.65rem 0.8rem;+ background: #fff;+ color: var(--pf-ink);+ outline: none;+ transition: border-color 0.15s ease, box-shadow 0.15s ease;+}++.pf-dialog-input:focus {+ border-color: rgba(182, 255, 0, 0.85);+ box-shadow: 0 0 0 3px rgba(182, 255, 0, 0.22);+}++.pf-dialog-actions {+ position: relative;+ z-index: 1;+ display: flex;+ justify-content: flex-end;+ gap: 0.55rem;+ margin-top: 0.2rem;+}++.pf-dialog-btn {+ min-width: 88px;+ border-radius: 999px;+ padding: 0.55rem 1.05rem;+ font-size: 0.88rem;+ font-weight: 600;+ border: 1px solid transparent;+ transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;+}++.pf-dialog-btn:active {+ transform: scale(0.98);+}++.pf-dialog-btn-ghost {+ background: transparent;+ border-color: var(--pf-line);+ color: var(--pf-ink);+}++.pf-dialog-btn-ghost:hover {+ background: rgba(17, 19, 24, 0.04);+}++.pf-dialog-btn-primary {+ background: var(--pf-lime);+ color: var(--pf-ink);+ box-shadow: 0 6px 18px rgba(182, 255, 0, 0.28);+}++.pf-dialog-btn-primary:hover {+ filter: brightness(0.97);+}++.pf-dialog-btn-danger {+ background: #c43c2e;+ color: #fff;+ box-shadow: 0 6px 18px rgba(196, 60, 46, 0.25);+}++.pf-dialog-btn-danger:hover {+ filter: brightness(1.05);+}++.pf-modal-panel {+ position: relative;+ width: min(560px, 100%);+ max-height: min(90vh, 860px);+ display: flex;+ flex-direction: column;+ background: linear-gradient(180deg, #ffffff 0%, #fbfcfa 100%);+ border-radius: 18px;+ border: 1px solid rgba(17, 19, 24, 0.08);+ box-shadow:+ 0 1px 0 rgba(255, 255, 255, 0.8) inset,+ 0 24px 64px rgba(17, 19, 24, 0.18);+ animation: pf-dialog-panel-in 0.28s cubic-bezier(0.22, 1, 0.36, 1);+ overflow: hidden;+}++.pf-modal-panel--lg {+ width: min(720px, 96vw);+}++.pf-modal-panel--xl {+ width: min(960px, 96vw);+}++/* Right-side drawer (help / secondary panels) */+.pf-dialog-root--drawer {+ place-items: stretch end;+ padding: 0;+ justify-content: end;+}++.pf-dialog-root--drawer .pf-dialog-veil {+ background: rgba(17, 19, 24, 0.28);+ backdrop-filter: blur(4px);+ -webkit-backdrop-filter: blur(4px);+}++.pf-modal-panel--drawer {+ width: min(420px, 100vw);+ max-width: 100%;+ height: 100%;+ max-height: 100%;+ border-radius: 0;+ border-left: 1px solid rgba(17, 19, 24, 0.1);+ border-top: 0;+ border-right: 0;+ border-bottom: 0;+ box-shadow: -18px 0 48px rgba(17, 19, 24, 0.14);+ animation: pf-drawer-panel-in 0.32s cubic-bezier(0.22, 1, 0.36, 1);+}++.pf-modal-panel--drawer .pf-modal-head {+ padding: 1.1rem 1.15rem 0.85rem;+}++.pf-modal-panel--drawer .pf-modal-body {+ flex: 1;+ min-height: 0;+}++.pf-modal-panel--drawer .pf-modal-foot {+ padding: 0.9rem 1.15rem 1.15rem;+ background: linear-gradient(180deg, transparent, #fbfcfa 28%);+}++@media (max-width: 520px) {+ .pf-modal-panel--drawer {+ width: 100vw;+ }+}++.pf-modal-head {+ display: flex;+ align-items: center;+ justify-content: space-between;+ gap: 0.75rem;+ padding: 1rem 1.15rem 0.75rem;+ border-bottom: 1px solid var(--pf-line);+}++.pf-modal-head h3 {+ margin: 0;+ font-family: 'Noto Serif SC', Georgia, serif;+ font-size: 1.2rem;+ font-weight: 500;+}++.pf-modal-close {+ width: 32px;+ height: 32px;+ border: 0;+ border-radius: 999px;+ background: rgba(17, 19, 24, 0.05);+ color: var(--pf-muted);+ font-size: 1.25rem;+ line-height: 1;+}++.pf-modal-close:hover {+ background: rgba(17, 19, 24, 0.09);+ color: var(--pf-ink);+}++.pf-modal-body {+ padding: 1rem 1.15rem;+ overflow: auto;+ display: flex;+ flex-direction: column;+ gap: 0.75rem;+}++.pf-modal-foot {+ padding: 0.85rem 1.15rem 1.1rem;+ border-top: 1px solid var(--pf-line);+ display: flex;+ justify-content: flex-end;+ gap: 0.55rem;+}++/* —— Help center —— */+.pf-help-modal.pf-modal-panel--drawer {+ width: min(440px, 100vw);+}++.pf-help-modal .pf-modal-body {+ padding-top: 0.75rem;+}++.pf-help-modal .pf-help-steps li {+ grid-template-columns: 40px 1fr;+ gap: 0.7rem;+ padding: 0.75rem 0.8rem;+}++.pf-help-modal .pf-help-step-n {+ width: 40px;+ height: 40px;+ font-size: 0.82rem;+}++.pf-help {+ display: flex;+ flex-direction: column;+ gap: 1rem;+}++.pf-help-lede {+ margin: 0;+ color: var(--pf-muted);+ font-size: 0.92rem;+ line-height: 1.55;+}++.pf-help-tabs {+ display: inline-flex;+ align-self: flex-start;+ gap: 0.25rem;+ padding: 0.2rem;+ border-radius: 999px;+ background: rgba(17, 19, 24, 0.04);+ border: 1px solid var(--pf-line);+}++.pf-help-tabs button {+ border: 0;+ background: transparent;+ color: var(--pf-muted);+ font-size: 0.86rem;+ font-weight: 600;+ padding: 0.4rem 0.95rem;+ border-radius: 999px;+ cursor: pointer;+}++.pf-help-tabs button.active {+ background: #fff;+ color: var(--pf-ink);+ box-shadow: 0 1px 3px rgba(17, 19, 24, 0.08);+}++.pf-help-steps {+ list-style: none;+ margin: 0;+ padding: 0;+ display: flex;+ flex-direction: column;+ gap: 0.65rem;+}++.pf-help-steps li {+ display: grid;+ grid-template-columns: 48px 1fr;+ gap: 0.85rem;+ align-items: start;+ padding: 0.85rem 0.95rem;+ border-radius: 14px;+ border: 1px solid var(--pf-line);+ background: linear-gradient(180deg, #fff 0%, #fbfcfa 100%);+}++.pf-help-step-n {+ display: grid;+ place-items: center;+ width: 48px;+ height: 48px;+ border-radius: 14px;+ background: var(--pf-lime-soft);+ border: 1px solid rgba(182, 255, 0, 0.45);+ font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif;+ font-weight: 700;+ font-size: 0.95rem;+ color: #3d6500;+}++.pf-help-steps strong {+ display: block;+ margin-bottom: 0.25rem;+ font-size: 0.98rem;+ color: var(--pf-ink);+}++.pf-help-steps p {+ margin: 0;+ color: var(--pf-muted);+ font-size: 0.88rem;+ line-height: 1.55;+}++.pf-help-faq {+ display: flex;+ flex-direction: column;+ gap: 0.45rem;+}++.pf-help-faq-item {+ border: 1px solid var(--pf-line);+ border-radius: 12px;+ background: #fff;+ overflow: hidden;+ transition: border-color 0.15s ease, box-shadow 0.15s ease;+}++.pf-help-faq-item.open {+ border-color: rgba(182, 255, 0, 0.55);+ box-shadow: 0 0 0 3px rgba(182, 255, 0, 0.12);+}++.pf-help-faq-q {+ width: 100%;+ display: flex;+ align-items: center;+ justify-content: space-between;+ gap: 0.75rem;+ padding: 0.8rem 0.95rem;+ border: 0;+ background: transparent;+ text-align: left;+ font-size: 0.92rem;+ font-weight: 600;+ color: var(--pf-ink);+ cursor: pointer;+}++.pf-help-faq-chev {+ flex-shrink: 0;+ width: 22px;+ height: 22px;+ border-radius: 999px;+ display: grid;+ place-items: center;+ background: rgba(17, 19, 24, 0.05);+ color: var(--pf-muted);+ font-size: 1rem;+ line-height: 1;+}++.pf-help-faq-item.open .pf-help-faq-chev {+ background: var(--pf-lime-soft);+ color: #3d6500;+}++.pf-help-faq-a {+ margin: 0;+ padding: 0 0.95rem 0.9rem;+ color: var(--pf-muted);+ font-size: 0.88rem;+ line-height: 1.6;+}++@media (max-width: 640px) {+ .pf-help-steps li {+ grid-template-columns: 40px 1fr;+ gap: 0.65rem;+ padding: 0.75rem;+ }++ .pf-help-step-n {+ width: 40px;+ height: 40px;+ font-size: 0.85rem;+ }+}++/* legacy modal reuse — share new veil look */.modal-backdrop {position: fixed;inset: 0;- background: rgba(17, 19, 24, 0.45);+ background:+ radial-gradient(120% 80% at 50% 0%, rgba(182, 255, 0, 0.08), transparent 55%),+ rgba(17, 19, 24, 0.42);+ backdrop-filter: blur(8px);+ -webkit-backdrop-filter: blur(8px);display: grid;place-items: center;padding: 1rem;z-index: 50;+ animation: pf-dialog-root-in 0.22s ease-out;}.modal {@@ -2163,9 +2682,13 @@ button.pf-shot-editable:disabled {display: flex;flex-direction: column;gap: 0.75rem;- background: #fff;- border-radius: var(--pf-radius);- border: 1px solid var(--pf-line);+ background: linear-gradient(180deg, #ffffff 0%, #fbfcfa 100%);+ border-radius: 18px;+ border: 1px solid rgba(17, 19, 24, 0.08);+ box-shadow:+ 0 1px 0 rgba(255, 255, 255, 0.8) inset,+ 0 24px 64px rgba(17, 19, 24, 0.18);+ animation: pf-dialog-panel-in 0.28s cubic-bezier(0.22, 1, 0.36, 1);}.modal label {