AI turns documents or topics into real, native PowerPoint decks—with native shapes, transitions and animations, data-backed charts and tables on demand, audio narration from speaker notes, and support for your own .pptx templates. · by Hugo He
docs: 重构模板库文档,完善五大类模板索引与分类说明
hugohe3612db5140081
diff --git a/.agent/workflows/create-template.md b/.agent/workflows/create-template.mdnew file mode 100644index 00000000..6928bbd9--- /dev/null+++ b/.agent/workflows/create-template.md@@ -0,0 +1,220 @@+---+description: 根据已有项目文件或参考模板生成一份新的 PPT 布局模板+---++# 创建新模板 Workflow++根据参考模板或用户需求,为模板库生成一套完整的 PPT 布局模板。++---++## 前提条件++用户需提供以下信息之一:++### 方式 A:基于现有项目/模板++1. **参考来源路径**:已有的项目目录或模板目录+2. **新模板名称**:新模板的标识符(英文,如 `my_company`)++### 方式 B:从零创建++1. **新模板名称**:新模板的标识符(英文,如 `my_company`)+2. **模板中文名称**:用于文档描述(如「我的公司模板」)+3. **主题色**:主导色 HEX 值(如 `#004098`)+4. **设计风格描述**:简短描述模板的适用场景和设计调性++---++## 步骤 1:分析参考来源(如有)++如果用户提供了参考来源,首先分析其结构和设计元素:++// turbo+```bash+# 列出参考来源的文件结构(macOS/Linux 使用 ls,Windows PowerShell 使用 Get-ChildItem)+ls -la "<参考来源路径>"+```++**提取关键信息**:++- 配色方案(主色、辅助色、强调色)+- 设计风格特点(装饰元素、布局特征)+- 字体方案+- 特色设计元素++---++## 步骤 2:创建新模板目录++// turbo+```bash+# 创建新模板目录+mkdir -p "templates/layouts/<新模板名称>"+```++---++## 步骤 3:生成 design_spec.md++根据分析结果或用户提供的信息,生成新模板的设计规范文档。++**必须包含的章节**(按此顺序):++```markdown+# [模板名称] - 设计规范++> 一句话描述适用场景++## 一、模板概述+## 二、画布规范+## 三、配色方案+## 四、排版体系+## 五、页面结构+## 六、页面类型+## 七、布局模式(推荐)+## 八、间距规范+## 九、SVG 技术约束+## 十、占位符规范+## 十一、使用说明(推荐)+```++**各章节要点**:++| 章节 | 必须包含内容 |+|------|-------------|+| 模板概述 | 模板名称、适用场景、设计调性、主题模式 |+| 画布规范 | 格式 16:9、尺寸 1280×720、viewBox、页面边距 |+| 配色方案 | 主色系、文字色系、功能色(带 HEX 值) |+| 排版体系 | 字体栈、字号层级(H1-Sub) |+| 页面结构 | 通用布局、装饰设计 |+| 页面类型 | 5 种页面的详细说明 |+| SVG 技术约束 | 必须遵守项 + 禁用元素列表 |+| 占位符规范 | 常用占位符表格 |++---++## 步骤 4:生成 SVG 模板文件++根据 design_spec.md 的规范,生成以下 5 个 SVG 模板:++### 4.1 封面页 `01_cover.svg`++- 背景(渐变/纯色/图片支持)+- 装饰元素(与设计风格一致)+- 主标题占位符 `{{TITLE}}`+- 副标题占位符 `{{SUBTITLE}}`+- 演讲者/单位信息占位符+- 日期占位符 `{{DATE}}`++### 4.2 目录页 `02_toc.svg`++- 背景 + 顶部装饰+- 页面标题+- 章节列表(`{{TOC_ITEM_1}}` ~ `{{TOC_ITEM_5}}`)+- 装饰元素++### 4.3 章节页 `02_chapter.svg`++- 深色/渐变背景+- 大号章节编号 `{{CHAPTER_NUM}}`+- 章节标题 `{{CHAPTER_TITLE}}`+- 英文副标题 `{{CHAPTER_TITLE_EN}}`(可选)++### 4.4 内容页 `03_content.svg`++- 白色/浅色背景+- 顶部装饰条+- 页面标题 `{{PAGE_TITLE}}`+- 内容区域占位 `{{CONTENT_AREA}}`(虚线框 + 说明文字)+- 页码 `{{PAGE_NUM}}`+- 页脚装饰++### 4.5 结束页 `04_ending.svg`++- 背景(与封面呼应)+- 感谢语/结束标题+- 感谢列表或联系信息占位符+- 结语 `{{CLOSING_MESSAGE}}`+- 装饰元素++---++## 步骤 5:验证模板完整性++// turbo+```bash+# 检查模板文件是否完整+ls -la "templates/layouts/<新模板名称>"+```++**检查清单**:++- [ ] `design_spec.md` 包含完整的设计规范(按标准章节结构)+- [ ] 所有 5 个 SVG 模板文件存在+- [ ] SVG viewBox 设置正确(`0 0 1280 720`)+- [ ] 占位符格式一致(`{{PLACEHOLDER}}`)+- [ ] 颜色值统一使用 HEX 格式+- [ ] 无 PPT 不兼容元素(clipPath、mask、foreignObject、style、class 等)+- [ ] 设计风格在所有页面中保持一致++---++## 步骤 6:输出确认++完成后,输出以下确认信息:++```markdown+## ✅ 模板创建完成++**模板名称**: <新模板名称>(<中文名称>)+**模板路径**: `templates/layouts/<新模板名称>/`++### 包含文件++| 文件 | 状态 |+|------|------|+| `design_spec.md` | ✅ 完成 |+| `01_cover.svg` | ✅ 完成 |+| `02_toc.svg` | ✅ 完成 |+| `02_chapter.svg` | ✅ 完成 |+| `03_content.svg` | ✅ 完成 |+| `04_ending.svg` | ✅ 完成 |++### 设计亮点++- 主色调:`#XXXXXX`+- 设计风格:...+- 特色元素:...++### 使用方式++复制模板到项目目录使用:+\`\`\`bash+cp templates/layouts/<新模板名称>/* projects/<项目>/templates/+\`\`\`+```++---++## 配色方案快速参考++| 风格 | 主导色 | 辅助色 | 强调色 | 适用场景 |+|------|--------|--------|--------|----------|+| 科技蓝 | `#004098` | `#F5F5F5` | `#CC0000` | 认证、测评 |+| Google 风 | `#4285F4` | `#FFFFFF` | 四色品牌 | 技术分享、年度汇报 |+| 麦肯锡 | `#005587` | `#ECF0F1` | `#F5A623` | 战略咨询、高管汇报 |+| 政府蓝 | `#003366` | `#E8F4F8` | `#FFC000` | 政府项目 |+| 商务灰 | `#2C3E50` | `#ECF0F1` | `#E74C3C` | 通用商务 |+| 学术蓝 | `#003366` | `#FFFFFF` | `#CC0000` | 学术答辩 |+| 像素风 | `#0D1117` | `#161B22` | `#39FF14` | 技术/游戏主题 |++---++## 注意事项++1. **SVG 技术约束**:必须遵守 `AGENTS.md` 中的黑名单规则+2. **配色一致性**:所有 SVG 文件使用相同的配色方案+3. **占位符规范**:使用 `{{}}` 格式的占位符便于后续替换+4. **字体兼容性**:优先使用系统字体栈+5. **设计规范结构**:遵循 `templates/layouts/README.md` 中定义的标准章节顺序diff --git a/README.md b/README.mdindex 3f294589..6c8a5000 100644--- a/README.md+++ b/README.md@@ -570,6 +570,16 @@ Optimizer_CRAP:- **5 大核心技巧**:数据情境化、SCQA 框架、金字塔原则、颜色战略性使用、图表 vs 表格选择- 典型元素:矩阵图、时间轴、KPI 仪表盘、瀑布图、驱动因素树+### 政企风格++- 适用场景:政府工作报告、党建汇报、央企国企演示+- 设计特点:庄重权威、严谨大气、具有中国特色+- 视觉元素:+ - **政府红**:体现政治站位与权威感+ - **科技蓝**:体现智慧政务与数字化+ - **电建蓝**:体现大国工匠与行业特色+- 典型元素:徽标水印、红灯笼/丝带装饰、中国地图、严谨的标题层级+## 技术规范### SVG 参数diff --git a/templates/layouts/README.md b/templates/layouts/README.mdindex 0b06aae8..cc6ea928 100644--- a/templates/layouts/README.md+++ b/templates/layouts/README.md@@ -1,90 +1,181 @@# 页面布局模板库-预置的页面布局模板。+预置的 PPT 页面布局模板,支持多种风格和使用场景。-## 概念说明+----本目录下的所有子目录都是 **布局模板**,分为两类:+## 模板快速索引-| 类型 | 说明 | 示例 |-|------|------|------|-| **风格示例模板** | 展示不同视觉风格的通用布局模板 | `general`、`consultant`、`consultant_top` |-| **场景布局模板** | 针对特定使用场景的专用布局模板 | `academic_defense`(学术答辩) |+| 模板名称 | 类别 | 适用场景 | 主色调 | 设计调性 |+|----------|------|----------|--------|----------|+| `google_style` | 品牌风格 | 年度汇报、技术分享、数据展示 | Google 四色 `#4285F4` `#EA4335` `#FBBC04` `#34A853` | 现代简洁、数据驱动、充足留白 |+| `mckinsey` | 品牌风格 | 战略咨询、高管汇报、投资分析 | McKinsey Blue `#005587` | 结构化思维、极简高端、MECE原则 |+| `anthropic` | 品牌风格 | AI技术分享、开发者大会、产品发布 | Anthropic 橙 `#D97757` | 科技感、结论先行、深色封面 |+| `zhongqiyan` | 品牌风格 | 产品认证、测评认证、商务拜访 | 深蓝 `#004098` | 专业权威、咨询风格 |+| `powerchina` | 品牌风格 | 电力能源、工程建设、央企汇报 | 电建蓝 `#00418D` | 大国工匠、稳健厚重 |+| `cmb_bank` | 品牌风格 | 工作汇报、业务展示、年度报告 | 招行红 `#C41230` | 稳重、专业、服务至上 |+| `consultant` | 通用风格 | 咨询报告、商业演示 | 深蓝 + 金色 | 专业严谨、左侧装饰条 |+| `consultant_top` | 通用风格 | MBB级咨询报告、董事会汇报 | 渐变顶条 + 金色点缀 | 核心观点区、机密标识 |+| `general` | 通用风格 | 通用商业演示 | 深蓝渐变 + 靛蓝紫 | 现代简洁、灵活适用 |+| `academic_defense` | 场景专用 | 毕业答辩、学术汇报、课题申请 | 深蓝 + 红色装饰 | 清晰层次、学术规范 |+| `psychology_attachment` | 场景专用 | 心理治疗培训、咨询讲座 | 蓝绿渐变 + 多彩语义色 | 温暖专业、疗愈感 |+| `medical_university` | 场景专用 | 医学报告、病例讨论、科研汇报 | 医学蓝 `#0066B3` | 专业严谨、生命感 |+| `government_red` | 政企风格 | 政府工作报告、党建汇报 | 政府红 `#8B0000` | 庄重权威、大气磅礴 |+| `government_blue` | 政企风格 | 智慧城市、政务公开、数字化转型 | 科技蓝 `#0050B3` | 现代科技、严谨理性 |+| `pixel_retro` | 特殊风格 | Git/技术介绍、复古游戏主题 | 霓虹色系 `#00FF41` `#FF0080` | 像素风、赛博朋克 |-> **重要**:风格与场景是 **正交** 的概念。场景模板定义内容结构,风格定义视觉表现。理论上,场景模板可以搭配不同的风格使用。+----## 目录结构+## 模板分类-```-templates/layouts/-├── general/ # 风格示例:通用灵活风格-├── consultant/ # 风格示例:咨询风格-├── consultant_top/ # 风格示例:顶级咨询风格(MBB级)-└── academic_defense/ # 场景模板:学术答辩-```+### 1️⃣ 品牌风格模板++模仿 **特定知名品牌/机构** 的专属设计风格。+> **特点**:具有排他性的品牌识别度(特定Logo、配色、VI规范),适用于该机构内部或对外展示。如:Google、麦肯锡、中国电建。++| 模板 | 说明 |+|------|------|+| `google_style` | Google Material Design 风格,四色品牌识别 |+| `mckinsey` | 麦肯锡咨询风格,数据驱动、结构化 |+| `anthropic` | Anthropic AI 风格,深色科技感 |+| `zhongqiyan` | 中汽研风格,适合认证、测评场景 |+| `powerchina` | 中国电建风格,适用于电力、能源、工程类央企 |+| `cmb_bank` | 招商银行风格,适用于金融汇报场景 |++### 2️⃣ 通用风格模板++通用商务风格,不模仿特定品牌,适用范围广。++| 模板 | 说明 |+|------|------|+| `consultant` | 咨询报告风格,专业严谨 |+| `consultant_top` | 顶级咨询风格(MBB级),核心观点区 |+| `general` | 通用灵活风格,适合多数商业演示 |++### 3️⃣ 场景专用模板++针对 **特定使用场景** 设计,内容结构更匹配场景需求。++| 模板 | 说明 |+|------|------|+| `academic_defense` | 学术答辩,清晰的研究内容层次 |+| `psychology_attachment` | 心理疗愈主题,温暖专业的配色 |+| `medical_university` | 医院/医科大学模板,适合医学报告 |++### 4️⃣ 政企风格模板++针对 **政府部门和通用国企** 需求的行业通用设计。+> **区别**:与品牌风格不同,此处不针对特定单位,而是提供符合"党政机关/国企"审美共性的通用模板(如红头文件风、智慧政务风)。++| 模板 | 说明 |+|------|------|+| `government_red` | 红色政务风格,适用于政府工作报告、党建活动 |+| `government_blue` | 蓝色政务风格,适用于智慧城市、数字化汇报 |++### 5️⃣ 特殊风格模板++非常规视觉风格,适用于特定创意场景。++| 模板 | 说明 |+|------|------|+| `pixel_retro` | 像素复古风格,赛博朋克/游戏主题 |++> **设计理念**:风格与场景是 **正交** 的概念。场景模板定义内容结构,风格定义视觉表现。理论上,场景模板可以搭配不同的风格使用。++---## 模板文件结构-每个布局模板包含 4 个核心文件 + 1 个可选文件:+每个布局模板包含以下标准文件:-| 序号 | 文件名 | 用途 | 说明 |-| ---- | ---------------- | ------ | -------------------------------------------------- |-| 01 | `01_cover.svg` | 封面 | 固定结构:标题、副标题、日期、机构 |-| 02 | `02_chapter.svg` | 章节页 | 固定结构:章节编号、章节标题 |-| 03 | `03_content.svg` | 内容页 | **灵活结构**:只定义页眉页脚,内容区由 AI 自由布局 |-| 04 | `04_ending.svg` | 结束页 | 固定结构:感谢语、联系方式 |-| -- | `02_toc.svg` | 目录页 | **可选**:目录标题、章节列表 |+| 文件名 | 必须 | 用途 | 说明 |+|--------|------|------|------|+| `design_spec.md` | ✅ | 设计规范 | 完整的配色、排版、布局规范 |+| `01_cover.svg` | ✅ | 封面页 | 标题、副标题、日期、机构 |+| `02_toc.svg` | ✅ | 目录页 | 章节列表、导航 |+| `02_chapter.svg` | ✅ | 章节页 | 章节编号、章节标题 |+| `03_content.svg` | ✅ | 内容页 | 页眉页脚固定,内容区灵活 |+| `04_ending.svg` | ✅ | 结束页 | 感谢语、联系方式 |> **设计理念**:模板定义视觉一致性和结构性页面,内容页保持最大灵活性,让 AI 根据实际内容决定布局。-## 风格示例特点+----| 风格 | 配色 | 特点 |-| ------------------ | -------------------------- | ---------------------------- |-| **general** | 深蓝渐变 + 靛蓝紫 | 现代简洁,适合商业演示 |-| **consultant** | 深蓝 + 金色线 + 左侧装饰条 | 专业严谨,咨询报告风格 |-| **consultant_top** | 渐变顶条 + 网格 + 金色点缀 | MBB级,核心观点区 + 机密标识 |+## design_spec.md 标准结构-## 场景模板特点+所有模板的设计规范文档应遵循以下章节结构:-| 场景 | 适用场景 | 特点 |-| -------------------- | ------------------------------------ | -------------------------- |-| **academic_defense** | 毕业答辩、学术汇报、研究进展、课题申请 | 深蓝 + 红色装饰,清晰层次 |+```markdown+# [模板名称] - 设计规范++> 一句话描述适用场景++## 一、模板概述+## 二、画布规范+## 三、配色方案+## 四、排版体系+## 五、页面结构+## 六、页面类型+## 七、布局模式(推荐)+## 八、间距规范+## 九、SVG 技术约束+## 十、占位符规范+## 十一、使用说明(推荐)+```++---## 占位符规范-模板中使用以下占位符标记可替换内容:--| 占位符 | 用途 | 适用模板 |-| ------------------- | ----------- | ------------------ |-| `{{TITLE}}` | 主标题 | 封面 |-| `{{SUBTITLE}}` | 副标题 | 封面 |-| `{{DATE}}` | 日期 | 封面 |-| `{{AUTHOR}}` | 作者/机构 | 封面 |-| `{{CHAPTER_NUM}}` | 章节编号 | 章节页 |-| `{{CHAPTER_TITLE}}` | 章节标题 | 章节页 |-| `{{CHAPTER_DESC}}` | 章节描述 | 章节页 |-| `{{PAGE_TITLE}}` | 页面标题 | 内容页 |-| `{{KEY_MESSAGE}}` | 核心观点 | 内容页(咨询风格) |-| `{{CONTENT_AREA}}` | 内容区域 | 内容页 |-| `{{SECTION_NAME}}` | 章节名称 | 内容页页脚 |-| `{{SOURCE}}` | 数据来源 | 内容页页脚 |-| `{{PAGE_NUM}}` | 页码 | 内容页、结束页 |-| `{{THANK_YOU}}` | 感谢语 | 结束页 |-| `{{TAGLINE}}` | 口号/副标题 | 结束页 |-| `{{CONTACT_INFO}}` | 联系信息 | 结束页 |-| `{{COPYRIGHT}}` | 版权信息 | 结束页 |+模板中使用 `{{PLACEHOLDER}}` 格式标记可替换内容:-## 使用方式+### 通用占位符++| 占位符 | 用途 | 适用页面 |+|--------|------|----------|+| `{{TITLE}}` | 主标题 | 封面 |+| `{{SUBTITLE}}` | 副标题 | 封面 |+| `{{DATE}}` | 日期 | 封面、结束页 |+| `{{AUTHOR}}` | 作者/机构(中文) | 封面 |+| `{{AUTHOR_EN}}` | 作者/机构(英文) | 封面 |-用户选择「A) 使用已有模板」时,可从以下来源获取模板:+### 章节相关-1. **用户自备模板**: 已有的模板文件-2. **其他项目模板**: 从现有项目复制-3. **外部来源模板**: 网络下载、设计师提供等-4. **本示例库**: 从此目录复制(如下所示)+| 占位符 | 用途 | 适用页面 |+|--------|------|----------|+| `{{CHAPTER_NUM}}` | 章节编号 | 章节页、内容页 |+| `{{CHAPTER_TITLE}}` | 章节标题 | 章节页 |+| `{{CHAPTER_TITLE_EN}}` | 章节英文副标题 | 章节页 |-**从示例库复制**:+### 内容页++| 占位符 | 用途 | 适用页面 |+|--------|------|----------|+| `{{PAGE_TITLE}}` | 页面标题 | 内容页 |+| `{{CONTENT_AREA}}` | 内容区域占位 | 内容页 |+| `{{PAGE_NUM}}` | 页码 | 内容页、结束页 |+| `{{SOURCE}}` | 数据来源 | 内容页页脚 |++### 目录页++| 占位符 | 用途 |+|--------|------|+| `{{TOC_ITEM_1}}` ~ `{{TOC_ITEM_5}}` | 目录项 1-5 |++### 结束页++| 占位符 | 用途 |+|--------|------|+| `{{THANK_YOU}}` | 感谢语 |+| `{{ENDING_SUBTITLE}}` | 结束页副标题 |+| `{{CLOSING_MESSAGE}}` | 结语 |+| `{{CONTACT_INFO}}` | 联系信息 |++---++## 使用方式++### 从模板库复制到项目```bash# 复制通用风格模板到项目@@ -92,6 +183,68 @@ cp templates/layouts/general/* projects/<项目>/templates/# 复制咨询风格模板到项目cp templates/layouts/consultant/* projects/<项目>/templates/++# 复制 Google 风格模板到项目+cp templates/layouts/google_style/* projects/<项目>/templates/++# 复制政企风格模板到项目(例:政府红)+cp templates/layouts/government_red/* projects/<项目>/templates/```-复制后根据项目《设计规范》调整配色和文字。+### 复制后操作++1. 阅读 `design_spec.md` 了解设计规范+2. 根据项目需求调整配色(如需要)+3. 将 Logo 文件放入 `images/` 目录+4. 使用 Executor 角色根据模板生成 SVG 页面++---++## 模板开发指南++### 创建新模板++1. 在 `templates/layouts/` 下创建新目录+2. 参考现有模板结构创建必需文件+3. 确保 `design_spec.md` 遵循标准章节结构+4. 所有 SVG 使用 `viewBox="0 0 1280 720"`+5. 遵循 SVG 技术约束(见下方)++### SVG 技术约束(所有模板必须遵守)++#### 必须满足++- viewBox: `0 0 1280 720`+- 背景使用 `<rect>` 元素+- 文本换行使用 `<tspan>`+- 透明度使用 `fill-opacity` / `stroke-opacity`+- 渐变使用 `<defs>` 定义 `<linearGradient>`++#### 禁止使用(PPT 不兼容)++| 禁用元素 | 替代方案 |+|----------|----------|+| `<foreignObject>` | 使用 `<text>` + `<tspan>` |+| `clipPath` | 重新设计布局 |+| `mask` | 使用 `fill-opacity` |+| `<style>` / `class` | 使用内联样式 |+| `textPath` | 使用普通 `<text>` |+| `animate*` | 静态设计 |+| `script` | 不支持交互 |+| `marker` / `marker-end` | 使用 `<polygon>` 三角形 |+| `rgba()` | 使用 HEX + `fill-opacity` |+| `<g opacity="...">` | 每个子元素单独设置透明度 |++---++## 更新日志++| 日期 | 更新内容 |+|------|----------|+| 2026-01-23 | 添加 `medical_university` 场景专用模板 |+| 2026-01-23 | 将 `powerchina`、`zhongqiyan` 归类为品牌风格,新增 `cmb_bank` 索引 |+| 2026-01-23 | 添加 `government_red`、`government_blue` 政企风格模板 |+| 2026-01-23 | 添加 `google_style` 模板 |+| 2026-01-23 | 重构 README,添加模板索引表和分类 |+| 2026-01-22 | 添加 `pixel_retro` 模板 |+| 2026-01-22 | 统一模板结构,添加 `02_toc.svg` 和 `design_spec.md` |diff --git a/templates/layouts/academic_defense/design_spec.md b/templates/layouts/academic_defense/design_spec.mdindex 27ff4102..bb86edc5 100644--- a/templates/layouts/academic_defense/design_spec.md+++ b/templates/layouts/academic_defense/design_spec.md@@ -1,4 +1,4 @@-# 学术答辩场景模板 (Academic Defense) - 设计规范+# 学术答辩模板 (Academic Defense Style) - 设计规范> 适用于学术论文答辩、研究汇报、毕业设计展示等场景。@@ -6,24 +6,24 @@## 一、模板概述-| 属性 | 描述 |-| ------------------ | ------------------------------------------ |-| **模板名称** | academic_defense(学术答辩场景模板) |-| **适用场景** | 毕业答辩、学术汇报、研究进展报告、课题申请 |-| **设计调性** | 专业、严谨、科研感、清晰层次 |-| **主题模式** | 亮色主题(白色背景 + 深蓝标题条) |+| 属性 | 描述 |+| -------------- | ------------------------------------------------------ |+| **模板名称** | academic_defense(学术答辩模板) |+| **适用场景** | 毕业答辩、学术汇报、研究进展报告、课题申请 |+| **设计调性** | 专业、严谨、科研感、清晰层次 |+| **主题模式** | 亮色主题(白色背景 + 深蓝标题条) |---## 二、画布规范-| 属性 | 值 |-| -------------------- | ---------------------------------------- |-| **格式** | 标准 16:9 |-| **尺寸** | 1280 × 720 px |-| **viewBox** | `0 0 1280 720` |-| **页面边距** | 左右 40px,上 0px(顶部标题条),下 35px |-| **内容安全区** | x: 40-1240, y: 70-665 |+| 属性 | 值 |+| -------------- | ----------------------------- |+| **格式** | 标准 16:9 |+| **尺寸** | 1280 × 720 px |+| **viewBox** | `0 0 1280 720` |+| **页面边距** | 左右 40px,上 0px,下 35px |+| **内容安全区** | x: 40-1240, y: 70-665 |---@@ -31,31 +31,37 @@### 主色系-| 角色 | 色值 | RGB | 用途 |-| ------------------ | ----------- | --------------- | ---------------------------- |-| **主导深蓝** | `#003366` | (0, 51, 102) | 页眉背景、章节标题、主要标题 |-| **辅助蓝** | `#0066CC` | (0, 102, 204) | 卡片边框、图标、次级装饰 |-| **强调红** | `#CC0000` | (204, 0, 0) | 重点高亮、关键词强调 |-| **浅蓝灰** | `#E8F4FC` | (232, 244, 252) | 核心观点背景条、卡片内区块 |+| 角色 | 色值 | 备注 |+| -------------- | ----------- | -------------------------------- |+| **主导深蓝** | `#003366` | 页眉背景、章节标题、主要标题 |+| **辅助蓝** | `#0066CC` | 卡片边框、图标、次级装饰 |+| **强调红** | `#CC0000` | 重点高亮、关键词强调、左侧装饰条 |+| **浅蓝灰** | `#E8F4FC` | 核心观点背景条、卡片内区块 |+| **背景白** | `#FFFFFF` | 页面主背景 |++### 文字色系++| 角色 | 色值 | 用途 |+| -------------- | ----------- | ---------------------- |+| **白色文字** | `#FFFFFF` | 深色背景上的文字 |+| **主文字** | `#333333` | 正文内容 |+| **辅助文字** | `#666666` | 说明文字、标注 |+| **弱灰** | `#999999` | 页脚、辅助信息 |### 中性色-| 角色 | 色值 | 用途 |-| ---------------- | ----------- | -------------------- |-| **背景白** | `#FFFFFF` | 页面主背景 |-| **卡片灰** | `#F5F7FA` | 卡片内背景、信息区块 |-| **边框灰** | `#D0D7E0` | 卡片边框、分割线 |-| **正文黑** | `#333333` | 主要正文文字 |-| **次要灰** | `#666666` | 说明文字、标注 |-| **弱灰** | `#999999` | 页脚、辅助信息 |+| 角色 | 色值 | 用途 |+| -------------- | ----------- | ---------------------- |+| **卡片灰** | `#F5F7FA` | 卡片内背景、信息区块 |+| **边框灰** | `#D0D7E0` | 卡片边框、分割线 |-### 辅助标识色+### 功能色-| 角色 | 色值 | 用途 |-| ---------------- | ----------- | ------------------ |-| **成功绿** | `#28A745` | 正向指标、完成状态 |-| **警示橙** | `#FFA500` | 提醒、中等优先级 |-| **信息蓝** | `#17A2B8` | 信息提示、引用 |+| 用途 | 色值 | 说明 |+| -------- | ----------- | -------------- |+| **成功** | `#28A745` | 正向指标 |+| **警示** | `#FFA500` | 提醒 |+| **信息** | `#17A2B8` | 信息提示 |---@@ -63,82 +69,169 @@### 字体方案-| 角色 | 中文字体 | 英文字体 | 回退字体 |-| -------------- | ------------- | ---------- | ---------- |-| **标题** | 微软雅黑 Bold | Arial Bold | sans-serif |-| **正文** | 微软雅黑 | Arial | sans-serif |-| **强调** | 微软雅黑 Bold | Arial Bold | sans-serif |-| **数据** | - | Arial | Consolas |--**字体栈**: `"Microsoft YaHei", "微软雅黑", Arial, "Helvetica Neue", sans-serif`+**字体栈**: `"Microsoft YaHei", "微软雅黑", Arial, sans-serif`### 字号层级-> 基准:正文 = 18pt--| 层级 | 用途 | 字号 | 字重 | 行高 |-| ----- | ------------------- | ---- | ------- | ---- |-| H1 | 封面主标题 | 56pt | Bold | 1.2 |-| H2 | 章节标题 / 页面标题 | 32pt | Bold | 1.3 |-| H3 | 卡片标题 / 小节标题 | 24pt | Bold | 1.4 |-| H4 | 标签 / 强调文字 | 20pt | Bold | 1.4 |-| P | 正文内容 | 18pt | Regular | 1.6 |-| Small | 注释 / 来源 | 14pt | Regular | 1.5 |-| XS | 页码 / 版权 | 12pt | Regular | 1.4 |+| 层级 | 用途 | 字号 | 字重 |+| ---- | ---------------- | ---- | ------- |+| H1 | 封面主标题 | 56px | Bold |+| H2 | 页面标题 | 28px | Bold |+| H3 | 章节标题 | 56px | Bold |+| H4 | 卡片标题 | 24px | Bold |+| P | 正文内容 | 18px | Regular |+| High | 强调数据 | 36px | Bold |+| Sub | 注释/来源 | 14px | Regular |+| XS | 页码/版权 | 12px | Regular |---## 五、页面结构-### 通用结构+### 通用布局-```-┌─────────────────────────────────────────────────────────┐-│ ▌章节编号 + 页面标题 [Logo区域] │ ← 页眉 (0-70)-├─────────────────────────────────────────────────────────┤-│ ┌─────────────────────────────────────────────────┐ │-│ │ 核心观点/摘要区域(可选) │ │ ← 观点条 (70-120)-│ └─────────────────────────────────────────────────┘ │-│ │-│ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ │-│ │ │ │ │ │ │ │-│ │ 内容卡片 │ │ 内容卡片 │ │ 内容卡片 │ │ ← 内容区 (120-665)-│ │ │ │ │ │ │ │-│ └──────────────┘ └──────────────┘ └──────────────┘ │-│ │-├─────────────────────────────────────────────────────────┤-│ [页脚信息] [页码/导航] │ ← 页脚 (665-720)-└─────────────────────────────────────────────────────────┘-```+| 区域 | 位置/高度 | 内容说明 |+| ---------- | ------------- | -------------------------------------- |+| **页眉** | y=0, h=70px | 深蓝色背景 + 红色左侧竖条 + 页面标题 |+| **观点条** | y=70, h=50px | 核心观点/摘要区域(浅蓝灰背景) |+| **内容区** | y=135, h=515px| 主要内容区域 |+| **页脚** | y=665, h=55px | 数据来源、章节名称、页码 |++### 装饰设计++- **左侧红色竖条**: 红色 (`#CC0000`),宽度 6px,用于页眉和卡片装饰+- **蓝色边框**: 辅助蓝 (`#0066CC`),用于卡片边框+- **装饰分割线**: 蓝色 (`#0066CC`),配合装饰圆点++---++## 六、页面类型++### 1. 封面页 (01_cover.svg)++- 白色背景+- 深蓝色顶部横条 + 红色左侧竖条装饰+- 右上角 Logo 占位区域+- 居中主标题 + 副标题+- 装饰分隔线(蓝色 + 圆点)+- 答辩人信息区域(姓名、导师、机构)+- 底部灰色信息区(日期)-### 页眉设计+### 2. 目录页 (02_toc.svg)-- **背景**:深蓝色 `#003366` 横条,高度 70px-- **章节编号**:白色粗体,格式如 `1.1`、`3.2`,字号 28pt-- **页面标题**:白色粗体,与编号间隔 1em,字号 28pt-- **右上角**:品牌 Logo(像素答辩图标 + 文字),字号 18pt-- **装饰**:红色竖条 6px 宽,位于最左侧+- 白色背景+- 标准页眉(深蓝色 + 红色竖条)+- 卡片式目录项布局(2列)+- 浅蓝灰背景卡片 + 左侧彩色竖条+- 可选项使用虚线边框-### 核心观点条(可选)+### 3. 章节页 (02_chapter.svg)-- **背景**:浅蓝灰 `#E8F4FC`-- **高度**:50px-- **内边距**:左右 40px-- **文字**:正文黑 `#333333`,字号 18pt,重点词用红色 `#CC0000` 加粗+- 深蓝色全屏背景 (`#003366`)+- 右侧几何图形装饰+- 左侧红色竖条装饰+- 大号半透明背景编号+- 醒目白色章节标题+- 浅蓝灰章节描述+- 红色装饰横线-### 内容卡片+### 4. 内容页 (03_content.svg)-- **边框**:辅助蓝 `#0066CC`,1px 实线-- **圆角**:8px-- **内边距**:20px-- **标题区**:- - 蓝底白字标签 `#0066CC`,圆角 4px- - 或左侧 4px 蓝色竖条 + 深蓝标题文字-- **内容区**:白色或浅灰 `#F5F7FA` 背景+- 白色背景+- 标准页眉(深蓝色 + 红色竖条)+- 核心观点条(浅蓝灰背景 + 蓝色左侧竖条)+- 灵活内容区域+- 页脚:数据来源、章节名称、页码++### 5. 结束页 (04_ending.svg)++- 白色背景+- 深蓝色顶部横条+- 居中感谢语+- 副标语+- 装饰分隔线+- 联系信息卡片(灰色背景)+- 底部灰色区域(版权、页码)----## 六、组件规范+## 七、布局模式++| 模式 | 适用场景 |+| ------------------ | -------------------------- |+| **单栏居中** | 封面、结语、重要观点 |+| **卡片式双列** | 目录页 |+| **左右分栏 (5:5)** | 对比展示 |+| **左右分栏 (4:6)** | 图文混排 |+| **卡片网格** | 研究内容列表 |+| **时间线** | 研究进程 |+| **表格** | 数据对比、实验结果 |++---++## 八、间距规范++| 元素 | 数值 |+| ------------ | ------ |+| 卡片间距 | 20px |+| 内容块间距 | 24px |+| 卡片内边距 | 20px |+| 卡片圆角 | 8px |+| 图标与文字 | 12px |++---++## 九、SVG 技术约束++### 必须遵守++1. viewBox: `0 0 1280 720`+2. 背景使用 `<rect>` 元素+3. 文本换行使用 `<tspan>`(禁止 `<foreignObject>`)+4. 透明度使用 `fill-opacity` / `stroke-opacity`,禁止 `rgba()`+5. 禁止使用:`clipPath`、`mask`、`filter`、`<style>`、`class`、`foreignObject`+6. 禁止使用:`textPath`、`animate*`、`script`、`marker`/`marker-end`+7. 箭头使用 `<polygon>` 三角形替代 `<marker>`++### PPT 兼容性规则++- 禁止 `<g opacity="...">`(组透明度),每个子元素单独设置+- 图片透明度使用遮罩层替代+- 仅使用内联样式,禁止外部 CSS 和 `@font-face`++---++## 十、占位符规范++模板使用 `{{PLACEHOLDER}}` 格式的占位符,常用占位符:++| 占位符 | 说明 |+| ------------------ | ------------------ |+| `{{TITLE}}` | 论文/项目主标题 |+| `{{SUBTITLE}}` | 副标题 |+| `{{AUTHOR}}` | 答辩人姓名 |+| `{{ADVISOR}}` | 指导老师 |+| `{{INSTITUTION}}` | 学校/机构 |+| `{{DATE}}` | 答辩日期 |+| `{{PAGE_TITLE}}` | 页面标题 |+| `{{SECTION_NUM}}` | 章节编号 |+| `{{CHAPTER_NUM}}` | 章节编号(大号) |+| `{{CHAPTER_TITLE}}`| 章节标题 |+| `{{CHAPTER_DESC}}` | 章节描述 |+| `{{KEY_MESSAGE}}` | 核心观点 |+| `{{PAGE_NUM}}` | 页码 |+| `{{SOURCE}}` | 数据来源 |+| `{{SECTION_NAME}}` | 章节名称(页脚) |+| `{{THANK_YOU}}` | 感谢语 |+| `{{TAGLINE}}` | 口号/副标语 |+| `{{CONTACT_INFO}}` | 联系方式 |+| `{{EMAIL}}` | 电子邮箱 |+| `{{COPYRIGHT}}` | 版权信息 |+| `{{LOGO}}` | Logo文字 |++---++## 十一、组件规范### 1. 标签 (Tag)@@ -158,19 +251,9 @@<!-- 水平流程箭头 --><line x1="200" y1="300" x2="350" y2="300" stroke="#0066CC" stroke-width="2"/><polygon points="350,295 360,300 350,305" fill="#0066CC"/>-<text x="275" y="290" text-anchor="middle" fill="#0066CC" font-size="12">→</text>```-### 3. 时间轴--```xml-<!-- 时间轴节点 -->-<circle cx="100" cy="400" r="8" fill="#0066CC"/>-<text x="100" y="430" text-anchor="middle" fill="#333333" font-size="14" font-weight="bold">2018</text>-<line x1="108" y1="400" x2="192" y2="400" stroke="#0066CC" stroke-width="2"/>-```--### 4. 数据高亮框+### 3. 数据高亮框```xml<!-- 重要数据区块 -->@@ -181,53 +264,17 @@----## 七、图标使用规范--### 推荐图标颜色--- **主要图标**:深蓝 `#003366` 或辅助蓝 `#0066CC`-- **强调图标**:强调红 `#CC0000`-- **中性图标**:正文灰 `#666666`--### 图标尺寸--- **大图标**:48 × 48 px(封面、章节页)-- **中图标**:32 × 32 px(卡片标题旁)-- **小图标**:20 × 20 px(列表项、标注)-------## 八、技术约束--### SVG 生成规则--1. **viewBox**: `0 0 1280 720`-2. **背景**:使用 `<rect>` 元素填充-3. **文本换行**:使用 `<tspan>` 实现,禁止 `<foreignObject>`-4. **透明度**:使用 `fill-opacity` / `stroke-opacity`,禁止 `rgba()`-5. **禁止元素**:`clipPath`、`mask`、`filter`、`<style>`、`class`、`foreignObject`、`textPath`、`animate*`、`script`、`marker`--### PPT 兼容性--- 禁止 `<g opacity="...">`(组透明度)-- 图片透明度使用遮罩层-- 仅使用内联样式-------## 九、页面类型模板清单+## 十二、使用说明-| 序号 | 文件名 | 用途 | 说明 |-| ---- | ------------------ | -------- | -------------------------- |-| 01 | `01_cover.svg` | 封面 | 主标题、副标题、答辩人信息 |-| 02 | `02_toc.svg` | 目录 | 章节列表、页码索引 |-| 03 | `02_chapter.svg` | 章节过渡 | 醒目章节编号、标题 |-| 04 | `03_content.svg` | 内容页 | 灵活布局,定义页眉页脚 |-| 05 | `04_ending.svg` | 结束页 | 致谢、联系方式 |+1. 复制模板到项目目录+2. 根据答辩内容需求选择合适的页面模板+3. 使用占位符标记需要替换的内容+4. 确保答辩人信息、导师信息完整+5. 通过 Executor 角色生成最终 SVG----## 十、设计检查清单+## 十三、设计检查清单### 生成前diff --git a/templates/layouts/anthropic/01_cover.svg b/templates/layouts/anthropic/01_cover.svgnew file mode 100644index 00000000..77b65364--- /dev/null+++ b/templates/layouts/anthropic/01_cover.svg@@ -0,0 +1,105 @@+<?xml version="1.0" encoding="UTF-8"?>+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1280 720">+ <!-- 模板: 封面页 - Anthropic 风格 -->++ <defs>+ <!-- 背景渐变 -->+ <linearGradient id="bgGradient" x1="0%" y1="0%" x2="100%" y2="100%">+ <stop offset="0%" style="stop-color:#1A1A2E"/>+ <stop offset="50%" style="stop-color:#16213E"/>+ <stop offset="100%" style="stop-color:#0F0F1A"/>+ </linearGradient>+ <!-- 橙色渐变 -->+ <linearGradient id="accentGradient" x1="0%" y1="0%" x2="100%" y2="0%">+ <stop offset="0%" style="stop-color:#D97757"/>+ <stop offset="100%" style="stop-color:#E8956F"/>+ </linearGradient>+ <!-- 光晕效果 -->+ <radialGradient id="glowOrange" cx="50%" cy="50%" r="50%">+ <stop offset="0%" style="stop-color:#D97757;stop-opacity:0.3"/>+ <stop offset="100%" style="stop-color:#D97757;stop-opacity:0"/>+ </radialGradient>+ <radialGradient id="glowBlue" cx="50%" cy="50%" r="50%">+ <stop offset="0%" style="stop-color:#4A90D9;stop-opacity:0.2"/>+ <stop offset="100%" style="stop-color:#4A90D9;stop-opacity:0"/>+ </radialGradient>+ </defs>++ <!-- 渐变背景 -->+ <rect width="1280" height="720" fill="url(#bgGradient)"/>++ <!-- 网格装饰线 -->+ <g stroke="#FFFFFF" stroke-opacity="0.03" stroke-width="1">+ <line x1="0" y1="180" x2="1280" y2="180"/>+ <line x1="0" y1="360" x2="1280" y2="360"/>+ <line x1="0" y1="540" x2="1280" y2="540"/>+ <line x1="320" y1="0" x2="320" y2="720"/>+ <line x1="640" y1="0" x2="640" y2="720"/>+ <line x1="960" y1="0" x2="960" y2="720"/>+ </g>++ <!-- 光晕效果 -->+ <ellipse cx="1100" cy="150" rx="300" ry="200" fill="url(#glowOrange)"/>+ <ellipse cx="200" cy="550" rx="250" ry="180" fill="url(#glowBlue)"/>++ <!-- 神经网络连接线 -->+ <g stroke="#4A90D9" stroke-opacity="0.4" stroke-width="1" fill="none">+ <path d="M100,200 Q250,150 350,220"/>+ <path d="M350,220 Q450,280 500,200"/>+ <path d="M900,480 Q1000,420 1100,480"/>+ <path d="M1100,480 Q1150,550 1200,500"/>+ </g>++ <!-- 蓝色节点 -->+ <g fill="#4A90D9" fill-opacity="0.6">+ <circle cx="100" cy="200" r="4"/>+ <circle cx="350" cy="220" r="6"/>+ <circle cx="500" cy="200" r="4"/>+ <circle cx="900" cy="480" r="5"/>+ <circle cx="1100" cy="480" r="7"/>+ <circle cx="1200" cy="500" r="4"/>+ </g>++ <!-- 橙色节点 -->+ <g fill="#D97757" fill-opacity="0.7">+ <circle cx="1050" cy="180" r="8"/>+ <circle cx="1150" cy="120" r="5"/>+ <circle cx="180" cy="520" r="6"/>+ </g>++ <!-- 左上角装饰短线 -->+ <rect x="60" y="60" width="80" height="4" fill="url(#accentGradient)" rx="2"/>++ <!-- 品牌标识 -->+ <text x="60" y="100" font-family="Arial, sans-serif" font-size="14" font-weight="500" fill="#D97757" letter-spacing="2">+ {{BRAND_LABEL}}+ </text>++ <!-- 主标题 -->+ <text x="640" y="300" font-family="Arial, sans-serif" font-size="56" font-weight="bold" fill="#FFFFFF" text-anchor="middle">+ {{TITLE}}+ </text>++ <!-- 副标题 -->+ <text x="640" y="365" font-family="Arial, sans-serif" font-size="26" fill="#FFFFFF" fill-opacity="0.85" text-anchor="middle">+ {{SUBTITLE}}+ </text>++ <!-- 装饰分隔线 -->+ <rect x="540" y="400" width="200" height="3" fill="url(#accentGradient)" rx="1.5"/>++ <!-- 引用语 -->+ <text x="640" y="465" font-family="Arial, sans-serif" font-size="18" fill="#FFFFFF" fill-opacity="0.7" text-anchor="middle">+ "{{TAGLINE}}"+ </text>++ <!-- 底部信息 -->+ <rect x="60" y="650" width="1160" height="1" fill="#FFFFFF" fill-opacity="0.1"/>+ <text x="60" y="680" font-family="Arial, sans-serif" font-size="14" fill="#64748B">+ {{DATE}}+ </text>+ <text x="1220" y="680" text-anchor="end" font-family="Arial, sans-serif" font-size="14" fill="#64748B">+ {{SOURCE}}+ </text>++</svg>diff --git a/templates/layouts/anthropic/02_chapter.svg b/templates/layouts/anthropic/02_chapter.svgnew file mode 100644index 00000000..5ae045bb--- /dev/null+++ b/templates/layouts/anthropic/02_chapter.svg@@ -0,0 +1,75 @@+<?xml version="1.0" encoding="UTF-8"?>+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1280 720">+ <!-- 模板: 章节页 - Anthropic 风格 -->++ <defs>+ <!-- 背景渐变 -->+ <linearGradient id="bgGradient" x1="0%" y1="0%" x2="100%" y2="100%">+ <stop offset="0%" style="stop-color:#1A1A2E"/>+ <stop offset="50%" style="stop-color:#16213E"/>+ <stop offset="100%" style="stop-color:#0F0F1A"/>+ </linearGradient>+ <!-- 橙色渐变 -->+ <linearGradient id="accentGradient" x1="0%" y1="0%" x2="100%" y2="0%">+ <stop offset="0%" style="stop-color:#D97757"/>+ <stop offset="100%" style="stop-color:#E8956F"/>+ </linearGradient>+ <!-- 光晕 -->+ <radialGradient id="glowOrange" cx="50%" cy="50%" r="50%">+ <stop offset="0%" style="stop-color:#D97757;stop-opacity:0.25"/>+ <stop offset="100%" style="stop-color:#D97757;stop-opacity:0"/>+ </radialGradient>+ </defs>++ <!-- 渐变背景 -->+ <rect width="1280" height="720" fill="url(#bgGradient)"/>++ <!-- 网格装饰线 -->+ <g stroke="#FFFFFF" stroke-opacity="0.03" stroke-width="1">+ <line x1="0" y1="180" x2="1280" y2="180"/>+ <line x1="0" y1="360" x2="1280" y2="360"/>+ <line x1="0" y1="540" x2="1280" y2="540"/>+ <line x1="320" y1="0" x2="320" y2="720"/>+ <line x1="640" y1="0" x2="640" y2="720"/>+ <line x1="960" y1="0" x2="960" y2="720"/>+ </g>++ <!-- 光晕效果 -->+ <ellipse cx="640" cy="360" rx="400" ry="300" fill="url(#glowOrange)"/>++ <!-- 装饰圆形 -->+ <circle cx="200" cy="200" r="80" fill="#4A90D9" fill-opacity="0.05"/>+ <circle cx="1080" cy="520" r="100" fill="#D97757" fill-opacity="0.05"/>++ <!-- 章节编号背景 -->+ <text x="640" y="280" text-anchor="middle" font-family="Arial, sans-serif" font-size="200" font-weight="bold" fill="#FFFFFF" fill-opacity="0.03">+ {{CHAPTER_NUM}}+ </text>++ <!-- SECTION 标签 -->+ <text x="640" y="290" text-anchor="middle" font-family="Arial, sans-serif" font-size="16" font-weight="500" fill="#D97757" letter-spacing="4">+ SECTION {{CHAPTER_NUM}}+ </text>++ <!-- 装饰线 -->+ <rect x="540" y="320" width="200" height="3" fill="url(#accentGradient)" rx="1.5"/>++ <!-- 章节标题 -->+ <text x="640" y="400" text-anchor="middle" font-family="Arial, sans-serif" font-size="48" font-weight="bold" fill="#FFFFFF">+ {{CHAPTER_TITLE}}+ </text>++ <!-- 章节描述 -->+ <text x="640" y="460" text-anchor="middle" font-family="Arial, sans-serif" font-size="22" fill="#FFFFFF" fill-opacity="0.7">+ {{CHAPTER_DESC}}+ </text>++ <!-- 底部装饰线 -->+ <rect x="60" y="650" width="1160" height="1" fill="#FFFFFF" fill-opacity="0.1"/>++ <!-- 页码 -->+ <text x="640" y="690" text-anchor="middle" font-family="Arial, sans-serif" font-size="14" fill="#64748B">+ {{PAGE_NUM}} / {{TOTAL_PAGES}}+ </text>++</svg>diff --git a/templates/layouts/anthropic/02_toc.svg b/templates/layouts/anthropic/02_toc.svgnew file mode 100644index 00000000..8969275d--- /dev/null+++ b/templates/layouts/anthropic/02_toc.svg@@ -0,0 +1,120 @@+<?xml version="1.0" encoding="UTF-8"?>+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1280 720">+ <!-- 模板: 目录页 - Anthropic 风格 -->++ <defs>+ <linearGradient id="sideAccent" x1="0%" y1="0%" x2="0%" y2="100%">+ <stop offset="0%" style="stop-color:#D97757"/>+ <stop offset="100%" style="stop-color:#E8956F"/>+ </linearGradient>+ </defs>++ <!-- 白色背景 -->+ <rect width="1280" height="720" fill="#FFFFFF"/>++ <!-- 左侧渐变装饰条 -->+ <rect x="0" y="0" width="8" height="720" fill="url(#sideAccent)"/>++ <!-- 页面标签 -->+ <text x="60" y="55" font-family="Arial, sans-serif" font-size="14" font-weight="500" fill="#D97757" letter-spacing="2">+ AGENDA+ </text>++ <!-- 页面标题 -->+ <text x="60" y="100" font-family="Arial, sans-serif" font-size="36" font-weight="bold" fill="#1A1A2E">+ {{PAGE_TITLE}}+ </text>++ <!-- 分隔线 -->+ <line x1="60" y1="130" x2="300" y2="130" stroke="#E2E8F0" stroke-width="2"/>++ <!-- 目录项列表 -->+ <g font-family="Arial, sans-serif">+ <!-- 第1章 -->+ <g>+ <circle cx="90" cy="200" r="24" fill="#D97757"/>+ <text x="90" y="207" font-size="18" font-weight="bold" fill="#FFFFFF" text-anchor="middle">1</text>+ <text x="130" y="195" font-size="20" font-weight="600" fill="#1A1A2E">{{CHAPTER_01_TITLE}}</text>+ <text x="130" y="218" font-size="16" fill="#64748B">{{CHAPTER_01_DESC}}</text>+ </g>++ <!-- 第2章 -->+ <g>+ <circle cx="90" cy="285" r="24" fill="#D97757"/>+ <text x="90" y="292" font-size="18" font-weight="bold" fill="#FFFFFF" text-anchor="middle">2</text>+ <text x="130" y="280" font-size="20" font-weight="600" fill="#1A1A2E">{{CHAPTER_02_TITLE}}</text>+ <text x="130" y="303" font-size="16" fill="#64748B">{{CHAPTER_02_DESC}}</text>+ </g>++ <!-- 第3章 -->+ <g>+ <circle cx="90" cy="370" r="24" fill="#D97757"/>+ <text x="90" y="377" font-size="18" font-weight="bold" fill="#FFFFFF" text-anchor="middle">3</text>+ <text x="130" y="365" font-size="20" font-weight="600" fill="#1A1A2E">{{CHAPTER_03_TITLE}}</text>+ <text x="130" y="388" font-size="16" fill="#64748B">{{CHAPTER_03_DESC}}</text>+ </g>++ <!-- 第4章 -->+ <g>+ <circle cx="90" cy="455" r="24" fill="#D97757"/>+ <text x="90" y="462" font-size="18" font-weight="bold" fill="#FFFFFF" text-anchor="middle">4</text>+ <text x="130" y="450" font-size="20" font-weight="600" fill="#1A1A2E">{{CHAPTER_04_TITLE}}</text>+ <text x="130" y="473" font-size="16" fill="#64748B">{{CHAPTER_04_DESC}}</text>+ </g>++ <!-- 第5章 -->+ <g>+ <circle cx="90" cy="540" r="24" fill="#D97757"/>+ <text x="90" y="547" font-size="18" font-weight="bold" fill="#FFFFFF" text-anchor="middle">5</text>+ <text x="130" y="535" font-size="20" font-weight="600" fill="#1A1A2E">{{CHAPTER_05_TITLE}}</text>+ <text x="130" y="558" font-size="16" fill="#64748B">{{CHAPTER_05_DESC}}</text>+ </g>++ <!-- 第6章 -->+ <g>+ <circle cx="90" cy="625" r="24" fill="#D97757"/>+ <text x="90" y="632" font-size="18" font-weight="bold" fill="#FFFFFF" text-anchor="middle">6</text>+ <text x="130" y="620" font-size="20" font-weight="600" fill="#1A1A2E">{{CHAPTER_06_TITLE}}</text>+ <text x="130" y="643" font-size="16" fill="#64748B">{{CHAPTER_06_DESC}}</text>+ </g>+ </g>++ <!-- 右侧复杂度递增示意图 -->+ <g transform="translate(850, 200)">+ <!-- 背景卡片 -->+ <rect x="0" y="0" width="350" height="400" fill="#F8FAFC" stroke="#E2E8F0" stroke-width="1" rx="16"/>++ <!-- 第一层 - Single LLM -->+ <rect x="40" y="40" width="270" height="50" fill="#4A90D9" fill-opacity="0.1" stroke="#4A90D9" stroke-width="2" rx="8"/>+ <text x="175" y="72" font-family="Arial, sans-serif" font-size="16" font-weight="600" fill="#4A90D9" text-anchor="middle">Single LLM Call</text>++ <!-- 箭头1 -->+ <path d="M175,90 L175,120" stroke="#64748B" stroke-width="2" stroke-dasharray="4,2"/>+ <polygon points="175,130 170,120 180,120" fill="#64748B"/>++ <!-- 第二层 - Workflows -->+ <rect x="40" y="135" width="270" height="50" fill="#4A90D9" fill-opacity="0.2" stroke="#4A90D9" stroke-width="2" rx="8"/>+ <text x="175" y="167" font-family="Arial, sans-serif" font-size="16" font-weight="600" fill="#4A90D9" text-anchor="middle">Workflows</text>++ <!-- 箭头2 -->+ <path d="M175,185 L175,215" stroke="#64748B" stroke-width="2" stroke-dasharray="4,2"/>+ <polygon points="175,225 170,215 180,215" fill="#64748B"/>++ <!-- 第三层 - Autonomous Agents -->+ <rect x="40" y="230" width="270" height="50" fill="#D97757" fill-opacity="0.2" stroke="#D97757" stroke-width="2" rx="8"/>+ <text x="175" y="262" font-family="Arial, sans-serif" font-size="16" font-weight="600" fill="#D97757" text-anchor="middle">Autonomous Agents</text>++ <!-- 说明文字 -->+ <text x="175" y="320" font-family="Arial, sans-serif" font-size="14" fill="#64748B" text-anchor="middle">复杂度递增</text>+ <text x="175" y="342" font-family="Arial, sans-serif" font-size="14" fill="#64748B" text-anchor="middle">按需升级</text>++ <!-- 侧边箭头 -->+ <path d="M320,100 L340,170 L320,240" stroke="#E2E8F0" stroke-width="2" fill="none"/>+ </g>++ <!-- 页码 -->+ <text x="640" y="695" font-family="Arial, sans-serif" font-size="14" fill="#64748B" text-anchor="middle">+ {{PAGE_NUM}} / {{TOTAL_PAGES}}+ </text>++</svg>diff --git a/templates/layouts/anthropic/03_content.svg b/templates/layouts/anthropic/03_content.svgnew file mode 100644index 00000000..e819b497--- /dev/null+++ b/templates/layouts/anthropic/03_content.svg@@ -0,0 +1,113 @@+<?xml version="1.0" encoding="UTF-8"?>+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1280 720">+ <!-- 模板: 内容页 - Anthropic 风格 -->++ <defs>+ <!-- 卡片渐变 -->+ <linearGradient id="cardGradient" x1="0%" y1="0%" x2="0%" y2="100%">+ <stop offset="0%" style="stop-color:#FFFFFF"/>+ <stop offset="100%" style="stop-color:#F8FAFC"/>+ </linearGradient>+ </defs>++ <!-- 白色背景 -->+ <rect width="1280" height="720" fill="#FFFFFF"/>++ <!-- 顶部橙色装饰条 -->+ <rect x="0" y="0" width="1280" height="6" fill="#D97757"/>++ <!-- 页面标签 -->+ <text x="60" y="55" font-family="Arial, sans-serif" font-size="14" font-weight="500" fill="#D97757" letter-spacing="2">+ {{PAGE_LABEL}}+ </text>++ <!-- 页面标题(核心观点) -->+ <text x="60" y="100" font-family="Arial, sans-serif" font-size="28" font-weight="bold" fill="#1A1A2E">+ {{PAGE_TITLE}}+ </text>+ <text x="60" y="135" font-family="Arial, sans-serif" font-size="28" font-weight="bold" fill="#1A1A2E">+ {{PAGE_TITLE_LINE2}}+ </text>++ <!-- 三列卡片布局 -->+ <!-- 卡片1 - 绿色(推荐/成功) -->+ <g>+ <rect x="60" y="180" width="360" height="420" fill="url(#cardGradient)" stroke="#E2E8F0" stroke-width="1" rx="12"/>+ <rect x="60" y="180" width="360" height="6" fill="#10B981" rx="3"/>++ <!-- 图标背景 -->+ <circle cx="130" cy="250" r="35" fill="#10B981" fill-opacity="0.1"/>+ <!-- 图标占位 -->+ <text x="130" y="258" text-anchor="middle" font-family="Arial, sans-serif" font-size="24" fill="#10B981">💡</text>++ <!-- 卡片标题 -->+ <text x="90" y="320" font-family="Arial, sans-serif" font-size="22" font-weight="bold" fill="#1A1A2E">{{CARD_1_TITLE}}</text>+ <text x="90" y="348" font-family="Arial, sans-serif" font-size="16" font-weight="600" fill="#64748B">{{CARD_1_SUBTITLE}}</text>++ <!-- 卡片内容 -->+ <text x="90" y="400" font-family="Arial, sans-serif" font-size="16" fill="#1A1A2E">{{CARD_1_LINE1}}</text>+ <text x="90" y="428" font-family="Arial, sans-serif" font-size="16" fill="#1A1A2E">{{CARD_1_LINE2}}</text>+ <text x="90" y="470" font-family="Arial, sans-serif" font-size="15" fill="#64748B">{{CARD_1_NOTE1}}</text>+ <text x="90" y="494" font-family="Arial, sans-serif" font-size="15" fill="#64748B">{{CARD_1_NOTE2}}</text>++ <!-- 标签 -->+ <rect x="90" y="545" width="80" height="28" fill="#10B981" fill-opacity="0.1" rx="14"/>+ <text x="130" y="564" text-anchor="middle" font-family="Arial, sans-serif" font-size="12" font-weight="600" fill="#10B981">{{CARD_1_TAG}}</text>+ </g>++ <!-- 卡片2 - 蓝色(流程/架构) -->+ <g>+ <rect x="460" y="180" width="360" height="420" fill="url(#cardGradient)" stroke="#E2E8F0" stroke-width="1" rx="12"/>+ <rect x="460" y="180" width="360" height="6" fill="#4A90D9" rx="3"/>++ <!-- 图标背景 -->+ <circle cx="530" cy="250" r="35" fill="#4A90D9" fill-opacity="0.1"/>+ <!-- 图标占位 -->+ <text x="530" y="258" text-anchor="middle" font-family="Arial, sans-serif" font-size="24" fill="#4A90D9">⚡</text>++ <!-- 卡片标题 -->+ <text x="490" y="320" font-family="Arial, sans-serif" font-size="22" font-weight="bold" fill="#1A1A2E">{{CARD_2_TITLE}}</text>+ <text x="490" y="348" font-family="Arial, sans-serif" font-size="16" font-weight="600" fill="#64748B">{{CARD_2_SUBTITLE}}</text>++ <!-- 卡片内容 -->+ <text x="490" y="400" font-family="Arial, sans-serif" font-size="16" fill="#1A1A2E">{{CARD_2_LINE1}}</text>+ <text x="490" y="428" font-family="Arial, sans-serif" font-size="16" fill="#1A1A2E">{{CARD_2_LINE2}}</text>+ <text x="490" y="470" font-family="Arial, sans-serif" font-size="15" fill="#64748B">{{CARD_2_NOTE1}}</text>+ <text x="490" y="494" font-family="Arial, sans-serif" font-size="15" fill="#64748B">{{CARD_2_NOTE2}}</text>++ <!-- 标签 -->+ <rect x="490" y="545" width="80" height="28" fill="#4A90D9" fill-opacity="0.1" rx="14"/>+ <text x="530" y="564" text-anchor="middle" font-family="Arial, sans-serif" font-size="12" font-weight="600" fill="#4A90D9">{{CARD_2_TAG}}</text>+ </g>++ <!-- 卡片3 - 橙色(关键洞察) -->+ <g>+ <rect x="860" y="180" width="360" height="420" fill="url(#cardGradient)" stroke="#E2E8F0" stroke-width="1" rx="12"/>+ <rect x="860" y="180" width="360" height="6" fill="#D97757" rx="3"/>++ <!-- 图标背景 -->+ <circle cx="930" cy="250" r="35" fill="#D97757" fill-opacity="0.1"/>+ <!-- 图标占位 -->+ <text x="930" y="258" text-anchor="middle" font-family="Arial, sans-serif" font-size="24" fill="#D97757">⚙️</text>++ <!-- 卡片标题 -->+ <text x="890" y="320" font-family="Arial, sans-serif" font-size="22" font-weight="bold" fill="#1A1A2E">{{CARD_3_TITLE}}</text>+ <text x="890" y="348" font-family="Arial, sans-serif" font-size="16" font-weight="600" fill="#64748B">{{CARD_3_SUBTITLE}}</text>++ <!-- 卡片内容 -->+ <text x="890" y="400" font-family="Arial, sans-serif" font-size="16" fill="#1A1A2E">{{CARD_3_LINE1}}</text>+ <text x="890" y="428" font-family="Arial, sans-serif" font-size="16" fill="#1A1A2E">{{CARD_3_LINE2}}</text>+ <text x="890" y="470" font-family="Arial, sans-serif" font-size="15" fill="#64748B">{{CARD_3_NOTE1}}</text>+ <text x="890" y="494" font-family="Arial, sans-serif" font-size="15" fill="#64748B">{{CARD_3_NOTE2}}</text>++ <!-- 标签 -->+ <rect x="890" y="545" width="80" height="28" fill="#D97757" fill-opacity="0.1" rx="14"/>+ <text x="930" y="564" text-anchor="middle" font-family="Arial, sans-serif" font-size="12" font-weight="600" fill="#D97757">{{CARD_3_TAG}}</text>+ </g>++ <!-- 页码 -->+ <text x="640" y="680" font-family="Arial, sans-serif" font-size="14" fill="#64748B" text-anchor="middle">+ {{PAGE_NUM}} / {{TOTAL_PAGES}}+ </text>++</svg>diff --git a/templates/layouts/anthropic/04_ending.svg b/templates/layouts/anthropic/04_ending.svgnew file mode 100644index 00000000..4c051ff4--- /dev/null+++ b/templates/layouts/anthropic/04_ending.svg@@ -0,0 +1,107 @@+<?xml version="1.0" encoding="UTF-8"?>+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1280 720">+ <!-- 模板: 结束页 - Anthropic 风格 -->++ <defs>+ <!-- 背景渐变 -->+ <linearGradient id="bgGradient" x1="0%" y1="0%" x2="100%" y2="100%">+ <stop offset="0%" style="stop-color:#1A1A2E"/>+ <stop offset="50%" style="stop-color:#16213E"/>+ <stop offset="100%" style="stop-color:#0F0F1A"/>+ </linearGradient>+ <!-- 橙色渐变 -->+ <linearGradient id="accentGradient" x1="0%" y1="0%" x2="100%" y2="0%">+ <stop offset="0%" style="stop-color:#D97757"/>+ <stop offset="100%" style="stop-color:#E8956F"/>+ </linearGradient>+ <!-- 光晕效果 -->+ <radialGradient id="glowOrange" cx="50%" cy="50%" r="50%">+ <stop offset="0%" style="stop-color:#D97757;stop-opacity:0.2"/>+ <stop offset="100%" style="stop-color:#D97757;stop-opacity:0"/>+ </radialGradient>+ <radialGradient id="glowBlue" cx="50%" cy="50%" r="50%">+ <stop offset="0%" style="stop-color:#4A90D9;stop-opacity:0.15"/>+ <stop offset="100%" style="stop-color:#4A90D9;stop-opacity:0"/>+ </radialGradient>+ </defs>++ <!-- 渐变背景 -->+ <rect width="1280" height="720" fill="url(#bgGradient)"/>++ <!-- 网格装饰线 -->+ <g stroke="#FFFFFF" stroke-opacity="0.02" stroke-width="1">+ <line x1="0" y1="180" x2="1280" y2="180"/>+ <line x1="0" y1="360" x2="1280" y2="360"/>+ <line x1="0" y1="540" x2="1280" y2="540"/>+ <line x1="320" y1="0" x2="320" y2="720"/>+ <line x1="640" y1="0" x2="640" y2="720"/>+ <line x1="960" y1="0" x2="960" y2="720"/>+ </g>++ <!-- 光晕效果 -->+ <ellipse cx="300" cy="200" rx="250" ry="180" fill="url(#glowBlue)"/>+ <ellipse cx="980" cy="500" rx="280" ry="200" fill="url(#glowOrange)"/>++ <!-- 神经网络连接装饰 -->+ <g stroke="#4A90D9" stroke-opacity="0.3" stroke-width="1" fill="none">+ <path d="M150,150 Q250,100 350,180"/>+ <path d="M350,180 Q420,250 380,320"/>+ <path d="M950,400 Q1050,350 1100,420"/>+ <path d="M1100,420 Q1150,500 1080,550"/>+ </g>++ <!-- 节点装饰 -->+ <g fill="#4A90D9" fill-opacity="0.5">+ <circle cx="150" cy="150" r="5"/>+ <circle cx="350" cy="180" r="7"/>+ <circle cx="380" cy="320" r="4"/>+ </g>+ <g fill="#D97757" fill-opacity="0.6">+ <circle cx="950" cy="400" r="6"/>+ <circle cx="1100" cy="420" r="8"/>+ <circle cx="1080" cy="550" r="5"/>+ </g>++ <!-- 感谢语标签 -->+ <text x="640" y="240" text-anchor="middle" font-family="Arial, sans-serif" font-size="16" font-weight="500" fill="#D97757" letter-spacing="3">+ THANK YOU+ </text>++ <!-- 主感谢语 -->+ <text x="640" y="310" text-anchor="middle" font-family="Arial, sans-serif" font-size="52" font-weight="bold" fill="#FFFFFF">+ {{THANK_YOU}}+ </text>++ <!-- 装饰分隔线 -->+ <rect x="540" y="350" width="200" height="3" fill="url(#accentGradient)" rx="1.5"/>++ <!-- 副标语 -->+ <text x="640" y="410" text-anchor="middle" font-family="Arial, sans-serif" font-size="20" fill="#FFFFFF" fill-opacity="0.7">+ {{TAGLINE}}+ </text>++ <!-- 联系信息卡片 -->+ <rect x="440" y="460" width="400" height="120" fill="#FFFFFF" fill-opacity="0.05" stroke="#FFFFFF" stroke-opacity="0.1" stroke-width="1" rx="12"/>++ <text x="640" y="505" text-anchor="middle" font-family="Arial, sans-serif" font-size="18" font-weight="bold" fill="#FFFFFF">+ {{CONTACT_NAME}}+ </text>+ <text x="640" y="535" text-anchor="middle" font-family="Arial, sans-serif" font-size="14" fill="#FFFFFF" fill-opacity="0.7">+ {{CONTACT_EMAIL}}+ </text>+ <text x="640" y="560" text-anchor="middle" font-family="Arial, sans-serif" font-size="14" fill="#FFFFFF" fill-opacity="0.6">+ {{CONTACT_URL}}+ </text>++ <!-- 底部分隔线 -->+ <rect x="60" y="640" width="1160" height="1" fill="#FFFFFF" fill-opacity="0.1"/>++ <!-- 底部信息 -->+ <text x="60" y="680" font-family="Arial, sans-serif" font-size="14" fill="#64748B">+ {{DATE}}+ </text>+ <text x="1220" y="680" text-anchor="end" font-family="Arial, sans-serif" font-size="14" fill="#64748B">+ {{COPYRIGHT}}+ </text>++</svg>diff --git a/templates/layouts/anthropic/design_spec.md b/templates/layouts/anthropic/design_spec.mdnew file mode 100644index 00000000..05e3cd3c--- /dev/null+++ b/templates/layouts/anthropic/design_spec.md@@ -0,0 +1,237 @@+# Anthropic 风格模板 - 设计规范++> 适用于 AI/LLM 技术分享、开发者大会、技术培训、产品发布等场景。++---++## 一、模板概述++| 属性 | 描述 |+| -------------- | ------------------------------------------------------ |+| **模板名称** | anthropic(Anthropic 风格模板) |+| **适用场景** | AI 技术分享、开发者大会、技术培训、产品发布 |+| **设计调性** | 科技感、专业、现代、结论先行 |+| **主题模式** | 混合主题(深色封面/章节 + 亮色内容页) |++---++## 二、画布规范++| 属性 | 值 |+| -------------- | ----------------------------- |+| **格式** | 标准 16:9 |+| **尺寸** | 1280 × 720 px |+| **viewBox** | `0 0 1280 720` |+| **安全边距** | 60px (左右), 50px (上下) |+| **内容区域** | x: 60-1220, y: 100-670 |+| **标题区域** | y: 50-100 |+| **网格基准** | 40px |++---++## 三、配色方案++### 主色系++| 角色 | 色值 | 备注 |+| ---------------- | ----------- | -------------------------------- |+| **Anthropic 橙** | `#D97757` | 品牌识别、标题强调、关键数据 |+| **深空灰** | `#1A1A2E` | 封面背景、正文、图表基底 |+| **科技蓝** | `#4A90D9` | 流程图、链接、交互元素 |+| **薄荷绿** | `#10B981` | 推荐方案、正向指标、成功状态 |+| **珊瑚红** | `#EF4444` | 风险、注意事项、警示 |++### 中性色++| 角色 | 色值 | 用途 |+| -------------- | ----------- | ---------------------- |+| **云白** | `#F8FAFC` | 卡片背景 |+| **边框灰** | `#E2E8F0` | 卡片边框、分隔线 |+| **石墨灰** | `#64748B` | 次要文本、图表标签 |+| **纯白** | `#FFFFFF` | 页面背景 |++---++## 四、排版体系++### 字体方案++**字体栈**: `Arial, "Helvetica Neue", "Segoe UI", sans-serif`++### 字号层级++| 层级 | 用途 | 字号 | 字重 |+| -------- | ---------------- | ------ | ------- |+| H1 | 封面主标题 | 56px | Bold |+| H2 | 页面标题 | 32-36px| Bold |+| H3 | 副标题/分区 | 24-28px| Semibold|+| H4 | 卡片标题 | 20-22px| Bold |+| P | 正文内容 | 16-18px| Regular |+| Data | 强调数据 | 40-48px| Bold |+| Label | 标签文本 | 14px | 500 |+| Sub | 图表标签/脚注 | 12-14px| Regular |++---++## 五、核心设计原则++### 顶级咨询风格++1. **结论先行 (Pyramid Principle)**: 每页标题即核心观点+2. **数据情境化**: 对比、趋势、基准,不孤立呈现数据+3. **SCQA 框架**: 情境→复杂性→问题→答案+4. **MECE 原则**: 相互独立、完全穷尽+5. **专业留白**: 内容占比 < 65%,让信息"呼吸"++---++## 六、页面结构++### 通用布局++| 区域 | 位置/高度 | 内容说明 |+| ---------- | ------------- | -------------------------------------- |+| **顶部** | y=0, h=6-8px | Anthropic 橙装饰条 |+| **标签** | y=50-70 | 页面类型标签(大写字母,橙色) |+| **标题区** | y=80-140 | 页面标题(核心观点) |+| **内容区** | y=160-620 | 主要内容区域 |+| **页脚** | y=680 | 页码(居中) |++### 装饰设计++- **顶部橙色条**: Anthropic 橙 (`#D97757`),高度 6px+- **左侧渐变条**: 橙色渐变 (`#D97757` → `#E8956F`)+- **卡片边框**: 浅灰 (`#E2E8F0`)+- **卡片阴影**: 柔和阴影效果+- **网格装饰线**: 深色封面使用白色低透明度网格++---++## 七、页面类型++### 1. 封面页 (01_cover.svg)++- 深色渐变背景 (`#1A1A2E` → `#16213E` → `#0F0F1A`)+- 网格装饰线(白色,3% 透明度)+- 橙色和蓝色光晕效果+- 神经网络风格连接线和节点+- 居中主标题(白色)+ 副标题+- 橙色装饰短线+- 底部日期和来源信息++### 2. 目录页 (02_toc.svg)++- 白色背景+- 左侧橙色渐变装饰条 (8px)+- 橙色圆形编号 + 章节标题+- 右侧复杂度递增示意图++### 3. 章节页 (02_chapter.svg)++- 深色渐变背景+- 网格装饰+- 居中大号章节标题+- 橙色装饰线++### 4. 内容页 (03_content.svg)++- 白色背景+- 顶部橙色装饰条+- 页面类型标签(橙色大写)+- 标题即核心观点+- 三列卡片布局(彩色顶部边框)+- 页脚居中页码++### 5. 结束页 (04_ending.svg)++- 深色渐变背景+- 神经网络装饰+- 居中感谢语+- 联系信息++---++## 八、常用组件++### 卡片样式++```xml+<!-- 带阴影的卡片 -->+<g filter="url(#cardShadow)">+ <path fill="#F8FAFC" stroke="#E2E8F0" stroke-width="1"+ d="M72,180 H408 A12,12 0 0 1 420,192 V588 A12,12 0 0 1 408,600 H72 A12,12 0 0 1 60,588 V192 A12,12 0 0 1 72,180 Z"/>+</g>+<!-- 顶部彩色装饰条 -->+<rect x="60" y="180" width="360" height="6" fill="#10B981"/>+```++### 圆形编号++```xml+<circle cx="90" cy="200" r="24" fill="#D97757"/>+<text x="90" y="207" font-size="18" font-weight="bold" fill="#FFFFFF" text-anchor="middle">1</text>+```++### 图标背景圆++```xml+<circle cx="130" cy="250" r="35" fill="#10B981" fill-opacity="0.1"/>+```++---++## 九、间距规范++| 元素 | 数值 |+| ------------ | ------ |+| 安全边距 | 60px |+| 卡片间距 | 30-40px|+| 卡片圆角 | 8-12px |+| 卡片内边距 | 30px |+| 网格基准 | 40px |++---++## 十、SVG 技术约束++### 必须遵守++1. viewBox: `0 0 1280 720`+2. 背景使用 `<rect>` 元素+3. 文本换行使用 `<tspan>`(**严禁** `<foreignObject>`)+4. 透明度使用 `fill-opacity` / `stroke-opacity`+5. 禁止使用:`clipPath`、`mask`、`<style>`、`class`、`foreignObject`+6. 禁止使用:`textPath`、`animate*`、`script`+7. 渐变使用 `<defs>` 定义++### PPT 兼容性规则++- 禁止 `<g opacity="...">`(组透明度)+- 仅使用内联样式++---++## 十一、占位符规范++| 占位符 | 说明 |+| ------------------ | ------------------ |+| `{{TITLE}}` | 主标题 |+| `{{SUBTITLE}}` | 副标题 |+| `{{SOURCE}}` | 来源信息 |+| `{{DATE}}` | 日期 |+| `{{PAGE_TITLE}}` | 页面标题(核心观点)|+| `{{PAGE_LABEL}}` | 页面类型标签 |+| `{{CHAPTER_NUM}}` | 章节编号 |+| `{{CHAPTER_TITLE}}`| 章节标题 |+| `{{PAGE_NUM}}` | 页码 |+| `{{TOTAL_PAGES}}` | 总页数 |++---++## 十二、使用说明++1. 复制模板到项目目录+2. 根据内容需求选择页面模板+3. **标题即核心观点**,确保每页有明确结论+4. 使用三种强调色区分内容类型(绿=推荐,蓝=流程,橙=重点)+5. 通过 Executor 角色生成最终 SVGdiff --git a/templates/layouts/cmb_bank/01_cover.svg b/templates/layouts/cmb_bank/01_cover.svgnew file mode 100644index 00000000..1c65280b--- /dev/null+++ b/templates/layouts/cmb_bank/01_cover.svg@@ -0,0 +1,70 @@+<?xml version="1.0" encoding="UTF-8"?>+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1280 720">+ <!-- 背景 -->+ <rect width="1280" height="720" fill="#FFFFFF" />++ <!-- ==================== 顶部装饰区域 ==================== -->+ <!-- 招行红主横条 -->+ <rect x="0" y="0" width="1280" height="100" fill="#C41230" />+ <!-- 金色底部装饰线 -->+ <rect x="0" y="96" width="1280" height="4" fill="#C9A962" />++ <!-- 右上角 Logo/品牌标识区域占位 -->+ <rect x="1080" y="25" width="160" height="50" fill="none" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.3"+ rx="4" />+ <text x="1160" y="58" text-anchor="middle" fill="#FFFFFF" font-family="Microsoft YaHei, Arial, sans-serif"+ font-size="16" font-weight="bold">+ {{LOGO}}+ </text>++ <!-- 左上角装饰图案(抽象向日葵元素) -->+ <circle cx="80" cy="50" r="30" fill="none" stroke="#C9A962" stroke-width="2" stroke-opacity="0.3" />+ <circle cx="80" cy="50" r="20" fill="none" stroke="#C9A962" stroke-width="1" stroke-opacity="0.2" />++ <!-- ==================== 主内容区域 ==================== -->+ <!-- 主标题 -->+ <text x="640" y="310" text-anchor="middle" fill="#C41230" font-family="Microsoft YaHei, Arial, sans-serif"+ font-size="48" font-weight="bold">+ {{TITLE}}+ </text>++ <!-- 副标题 -->+ <text x="640" y="370" text-anchor="middle" fill="#666666" font-family="Microsoft YaHei, Arial, sans-serif"+ font-size="24">+ {{SUBTITLE}}+ </text>++ <!-- 金色装饰分割线 -->+ <line x1="440" y1="410" x2="840" y2="410" stroke="#C9A962" stroke-width="2" />+ <circle cx="640" cy="410" r="6" fill="#C9A962" />+ <circle cx="440" cy="410" r="4" fill="#C41230" />+ <circle cx="840" cy="410" r="4" fill="#C41230" />++ <!-- ==================== 汇报人信息区域 ==================== -->+ <!-- 汇报人 -->+ <text x="640" y="480" text-anchor="middle" fill="#333333" font-family="Microsoft YaHei, Arial, sans-serif"+ font-size="20">+ 汇报人:{{AUTHOR}}+ </text>++ <!-- 部门/分行 -->+ <text x="640" y="520" text-anchor="middle" fill="#666666" font-family="Microsoft YaHei, Arial, sans-serif"+ font-size="18">+ {{DEPARTMENT}}+ </text>++ <!-- 机构名称 -->+ <text x="640" y="565" text-anchor="middle" fill="#C41230" font-family="Microsoft YaHei, Arial, sans-serif"+ font-size="20" font-weight="bold">+ {{INSTITUTION}}+ </text>++ <!-- ==================== 底部信息 ==================== -->+ <rect x="0" y="665" width="1280" height="55" fill="#F5F0EB" />+ <!-- 底部红色装饰线 -->+ <rect x="0" y="665" width="1280" height="3" fill="#C41230" />+ <text x="640" y="700" text-anchor="middle" fill="#999999" font-family="Microsoft YaHei, Arial, sans-serif"+ font-size="14">+ {{DATE}}+ </text>+</svg>\ No newline at end of filediff --git a/templates/layouts/cmb_bank/02_chapter.svg b/templates/layouts/cmb_bank/02_chapter.svgnew file mode 100644index 00000000..097eeeb4--- /dev/null+++ b/templates/layouts/cmb_bank/02_chapter.svg@@ -0,0 +1,50 @@+<?xml version="1.0" encoding="UTF-8"?>+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1280 720">+ <!-- 背景:深红色,营造稳重专业感 -->+ <rect width="1280" height="720" fill="#9A0E26" />++ <!-- 背景装饰:右侧几何图形 -->+ <path d="M900 0 L1280 0 L1280 720 L700 720 Z" fill="#C41230" fill-opacity="0.4" />+ <rect x="1200" y="0" width="80" height="720" fill="#7A0B1E" fill-opacity="0.3" />++ <!-- 右侧装饰:抽象金融图案 -->+ <rect x="1050" y="280" width="100" height="8" fill="#C9A962" fill-opacity="0.2" rx="4" />+ <rect x="1080" y="310" width="70" height="8" fill="#C9A962" fill-opacity="0.15" rx="4" />+ <rect x="1110" y="340" width="40" height="8" fill="#C9A962" fill-opacity="0.1" rx="4" />++ <!-- 右下角装饰圆环 -->+ <circle cx="1150" cy="550" r="80" fill="none" stroke="#C9A962" stroke-width="2" stroke-opacity="0.15" />+ <circle cx="1150" cy="550" r="50" fill="none" stroke="#C9A962" stroke-width="1" stroke-opacity="0.1" />++ <!-- 左侧金色装饰条 -->+ <rect x="0" y="260" width="10" height="200" fill="#C9A962" />++ <!-- ==================== 章节信息区域 ==================== -->+ <!-- 章节编号:大号数字,半透明背景字 -->+ <text x="120" y="480" fill="#FFFFFF" fill-opacity="0.08" font-family="Microsoft YaHei, Arial, sans-serif"+ font-size="280" font-weight="bold">+ {{CHAPTER_NUM}}+ </text>++ <!-- 金色装饰线 -->+ <line x1="380" y1="275" x2="520" y2="275" stroke="#C9A962" stroke-width="4" />+ <circle cx="530" cy="275" r="6" fill="#C9A962" />++ <!-- 章节标题:醒目白色 -->+ <text x="380" y="360" fill="#FFFFFF" font-family="Microsoft YaHei, Arial, sans-serif" font-size="48"+ font-weight="bold">+ {{CHAPTER_TITLE}}+ </text>++ <!-- 章节描述/摘要 -->+ <text x="380" y="420" fill="#F5F0EB" font-family="Microsoft YaHei, Arial, sans-serif" font-size="20">+ {{CHAPTER_DESC}}+ </text>++ <!-- ==================== 底部信息 ==================== -->+ <line x1="40" y1="665" x2="1240" y2="665" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.1" />+ <text x="1240" y="690" text-anchor="end" fill="#FFFFFF" fill-opacity="0.4"+ font-family="Microsoft YaHei, Arial, sans-serif" font-size="14">+ {{INSTITUTION}}+ </text>+</svg>\ No newline at end of filediff --git a/templates/layouts/cmb_bank/02_toc.svg b/templates/layouts/cmb_bank/02_toc.svgnew file mode 100644index 00000000..ed660bdd--- /dev/null+++ b/templates/layouts/cmb_bank/02_toc.svg@@ -0,0 +1,94 @@+<?xml version="1.0" encoding="UTF-8"?>+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1280 720">+ <!-- 背景 -->+ <rect width="1280" height="720" fill="#FFFFFF" />++ <!-- ==================== 页眉区域 ==================== -->+ <rect x="0" y="0" width="1280" height="70" fill="#C41230" />+ <!-- 金色底部装饰线 -->+ <rect x="0" y="66" width="1280" height="4" fill="#C9A962" />++ <!-- 页面标题 -->+ <text x="40" y="46" fill="#FFFFFF" font-family="Microsoft YaHei, Arial, sans-serif" font-size="28"+ font-weight="bold">+ 目 录+ </text>++ <!-- 英文副标题 -->+ <text x="130" y="46" fill="#FFFFFF" fill-opacity="0.7" font-family="Microsoft YaHei, Arial, sans-serif"+ font-size="16">+ CONTENTS+ </text>++ <!-- 右上角 Logo -->+ <text x="1200" y="42" text-anchor="end" fill="#FFFFFF" font-family="Microsoft YaHei, Arial, sans-serif"+ font-size="16" font-weight="bold">+ {{LOGO}}+ </text>++ <!-- ==================== 目录内容区域 ==================== -->+ <!-- 目录项 01 -->+ <rect x="80" y="115" width="540" height="95" fill="#FDF2F4" rx="8" />+ <rect x="80" y="115" width="5" height="95" fill="#C41230" rx="2" />+ <text x="120" y="165" fill="#C41230" font-family="Microsoft YaHei, Arial, sans-serif" font-size="36"+ font-weight="bold">01</text>+ <text x="190" y="158" fill="#333333" font-family="Microsoft YaHei, Arial, sans-serif" font-size="22"+ font-weight="bold">{{TOC_ITEM_1_TITLE}}</text>+ <text x="120" y="192" fill="#666666" font-family="Microsoft YaHei, Arial, sans-serif"+ font-size="14">{{TOC_ITEM_1_DESC}}</text>++ <!-- 目录项 02 -->+ <rect x="660" y="115" width="540" height="95" fill="#FDF2F4" rx="8" />+ <rect x="660" y="115" width="5" height="95" fill="#C41230" rx="2" />+ <text x="700" y="165" fill="#C41230" font-family="Microsoft YaHei, Arial, sans-serif" font-size="36"+ font-weight="bold">02</text>+ <text x="770" y="158" fill="#333333" font-family="Microsoft YaHei, Arial, sans-serif" font-size="22"+ font-weight="bold">{{TOC_ITEM_2_TITLE}}</text>+ <text x="700" y="192" fill="#666666" font-family="Microsoft YaHei, Arial, sans-serif"+ font-size="14">{{TOC_ITEM_2_DESC}}</text>++ <!-- 目录项 03 -->+ <rect x="80" y="235" width="540" height="95" fill="#F5F0EB" rx="8" />+ <rect x="80" y="235" width="5" height="95" fill="#C9A962" rx="2" />+ <text x="120" y="285" fill="#C41230" font-family="Microsoft YaHei, Arial, sans-serif" font-size="36"+ font-weight="bold">03</text>+ <text x="190" y="278" fill="#333333" font-family="Microsoft YaHei, Arial, sans-serif" font-size="22"+ font-weight="bold">{{TOC_ITEM_3_TITLE}}</text>+ <text x="120" y="312" fill="#666666" font-family="Microsoft YaHei, Arial, sans-serif"+ font-size="14">{{TOC_ITEM_3_DESC}}</text>++ <!-- 目录项 04 -->+ <rect x="660" y="235" width="540" height="95" fill="#F5F0EB" rx="8" />+ <rect x="660" y="235" width="5" height="95" fill="#C9A962" rx="2" />+ <text x="700" y="285" fill="#C41230" font-family="Microsoft YaHei, Arial, sans-serif" font-size="36"+ font-weight="bold">04</text>+ <text x="770" y="278" fill="#333333" font-family="Microsoft YaHei, Arial, sans-serif" font-size="22"+ font-weight="bold">{{TOC_ITEM_4_TITLE}}</text>+ <text x="700" y="312" fill="#666666" font-family="Microsoft YaHei, Arial, sans-serif"+ font-size="14">{{TOC_ITEM_4_DESC}}</text>++ <!-- 目录项 05(可选) -->+ <rect x="80" y="355" width="540" height="95" fill="none" stroke="#E5E5E5" stroke-width="1" stroke-dasharray="4,4"+ rx="8" />+ <text x="350" y="410" text-anchor="middle" fill="#999999" font-family="Microsoft YaHei, Arial, sans-serif"+ font-size="16">{{TOC_ITEM_5}}</text>++ <!-- 目录项 06(可选) -->+ <rect x="660" y="355" width="540" height="95" fill="none" stroke="#E5E5E5" stroke-width="1" stroke-dasharray="4,4"+ rx="8" />+ <text x="930" y="410" text-anchor="middle" fill="#999999" font-family="Microsoft YaHei, Arial, sans-serif"+ font-size="16">{{TOC_ITEM_6}}</text>++ <!-- ==================== 装饰元素 ==================== -->+ <!-- 右下角金色装饰 -->+ <circle cx="1180" cy="550" r="60" fill="none" stroke="#C9A962" stroke-width="1" stroke-opacity="0.2" />+ <circle cx="1180" cy="550" r="40" fill="none" stroke="#C9A962" stroke-width="1" stroke-opacity="0.15" />++ <!-- ==================== 页脚区域 ==================== -->+ <line x1="40" y1="665" x2="1240" y2="665" stroke="#F5F0EB" stroke-width="1" />+ <text x="40" y="695" fill="#999999" font-family="Microsoft YaHei, Arial, sans-serif" font-size="12">+ {{INSTITUTION}}+ </text>+ <text x="1220" y="695" text-anchor="end" fill="#999999" font-family="Microsoft YaHei, Arial, sans-serif"+ font-size="14">{{PAGE_NUM}}</text>+</svg>\ No newline at end of filediff --git a/templates/layouts/cmb_bank/03_content.svg b/templates/layouts/cmb_bank/03_content.svgnew file mode 100644index 00000000..74d8695d--- /dev/null+++ b/templates/layouts/cmb_bank/03_content.svg@@ -0,0 +1,77 @@+<?xml version="1.0" encoding="UTF-8"?>+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1280 720">+ <!-- 背景 -->+ <rect width="1280" height="720" fill="#FFFFFF" />++ <!-- ==================== 页眉区域 ==================== -->+ <!-- 招行红页眉背景 -->+ <rect x="0" y="0" width="1280" height="70" fill="#C41230" />+ <!-- 金色底部装饰线 -->+ <rect x="0" y="66" width="1280" height="4" fill="#C9A962" />++ <!-- 章节编号 + 页面标题 -->+ <text x="40" y="44" fill="#FFFFFF" font-family="Microsoft YaHei, Arial, sans-serif" font-size="26"+ font-weight="bold">+ {{SECTION_NUM}} {{PAGE_TITLE}}+ </text>++ <!-- 右上角 Logo -->+ <text x="1220" y="42" text-anchor="end" fill="#FFFFFF" font-family="Microsoft YaHei, Arial, sans-serif"+ font-size="16" font-weight="bold">+ {{LOGO}}+ </text>++ <!-- ==================== 核心观点条 ==================== -->+ <rect x="0" y="70" width="1280" height="50" fill="#F5F0EB" />+ <rect x="0" y="70" width="5" height="50" fill="#C41230" />+ <text x="40" y="102" fill="#333333" font-family="Microsoft YaHei, Arial, sans-serif" font-size="18">+ {{KEY_MESSAGE}}+ </text>++ <!-- ==================== 内容区域 ==================== -->+ <!--+ AI 灵活布局区+ 可用空间: x=40, y=135, width=1200, height=515+ 适用布局:数据卡片、KPI 展示、图表分析、业务流程等+ -->+ <rect x="40" y="135" width="1200" height="515" fill="#FFFFFF" rx="4" />+ <rect x="40" y="135" width="1200" height="515" fill="none" stroke="#E5E5E5" stroke-width="1" rx="4"+ stroke-dasharray="8,4" />++ <!-- 内容区域占位符 -->+ <text x="640" y="385" text-anchor="middle" fill="#CBD5E1" font-family="Microsoft YaHei, Arial, sans-serif"+ font-size="16">+ {{CONTENT_AREA}}+ </text>++ <!-- 布局说明 -->+ <text x="640" y="415" text-anchor="middle" fill="#CBD5E1" font-family="Microsoft YaHei, Arial, sans-serif"+ font-size="14">+ 可用布局:KPI卡片、业绩图表、产品介绍、服务流程等+ </text>++ <!-- 示例数据卡片区域(虚线框) -->+ <rect x="80" y="180" width="200" height="110" fill="none" stroke="#E5E5E5" stroke-width="1" stroke-dasharray="4,4"+ rx="8" />+ <text x="180" y="240" text-anchor="middle" fill="#E5E5E5" font-family="Microsoft YaHei, Arial, sans-serif"+ font-size="12">KPI卡片</text>++ <rect x="300" y="180" width="200" height="110" fill="none" stroke="#E5E5E5" stroke-width="1" stroke-dasharray="4,4"+ rx="8" />+ <text x="400" y="240" text-anchor="middle" fill="#E5E5E5" font-family="Microsoft YaHei, Arial, sans-serif"+ font-size="12">KPI卡片</text>++ <!-- ==================== 页脚区域 ==================== -->+ <line x1="40" y1="665" x2="1240" y2="665" stroke="#F5F0EB" stroke-width="1" />+ <text x="40" y="695" fill="#999999" font-family="Microsoft YaHei, Arial, sans-serif" font-size="12">+ 数据来源:{{SOURCE}}+ </text>+ <text x="640" y="695" text-anchor="middle" fill="#999999" font-family="Microsoft YaHei, Arial, sans-serif"+ font-size="12">+ {{SECTION_NAME}}+ </text>+ <text x="1220" y="695" text-anchor="end" fill="#666666" font-family="Microsoft YaHei, Arial, sans-serif"+ font-size="14">+ {{PAGE_NUM}}+ </text>+</svg>\ No newline at end of filediff --git a/templates/layouts/cmb_bank/04_ending.svg b/templates/layouts/cmb_bank/04_ending.svgnew file mode 100644index 00000000..6a22be4e--- /dev/null+++ b/templates/layouts/cmb_bank/04_ending.svg@@ -0,0 +1,80 @@+<?xml version="1.0" encoding="UTF-8"?>+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1280 720">+ <!-- 背景 -->+ <rect width="1280" height="720" fill="#FFFFFF" />++ <!-- ==================== 顶部装饰区域 ==================== -->+ <rect x="0" y="0" width="1280" height="100" fill="#C41230" />+ <!-- 金色底部装饰线 -->+ <rect x="0" y="96" width="1280" height="4" fill="#C9A962" />++ <!-- 左上角装饰(向日葵抽象元素) -->+ <circle cx="80" cy="50" r="30" fill="none" stroke="#C9A962" stroke-width="2" stroke-opacity="0.3" />+ <circle cx="80" cy="50" r="18" fill="none" stroke="#C9A962" stroke-width="1" stroke-opacity="0.2" />++ <!-- 右上角 Logo -->+ <text x="1200" y="58" text-anchor="end" fill="#FFFFFF" font-family="Microsoft YaHei, Arial, sans-serif"+ font-size="16" font-weight="bold">+ {{LOGO}}+ </text>++ <!-- ==================== 主内容区域 ==================== -->+ <!-- 感谢语 -->+ <text x="640" y="280" text-anchor="middle" fill="#C41230" font-family="Microsoft YaHei, Arial, sans-serif"+ font-size="48" font-weight="bold">+ {{THANK_YOU}}+ </text>++ <!-- 副标语 -->+ <text x="640" y="340" text-anchor="middle" fill="#666666" font-family="Microsoft YaHei, Arial, sans-serif"+ font-size="22">+ {{TAGLINE}}+ </text>++ <!-- 金色装饰分割线 -->+ <line x1="460" y1="380" x2="820" y2="380" stroke="#C9A962" stroke-width="2" />+ <circle cx="640" cy="380" r="6" fill="#C9A962" />+ <circle cx="460" cy="380" r="4" fill="#C41230" />+ <circle cx="820" cy="380" r="4" fill="#C41230" />++ <!-- ==================== 联系信息区域 ==================== -->+ <rect x="340" y="420" width="600" height="150" fill="#F5F0EB" rx="8" />+ <!-- 左侧红色装饰条 -->+ <rect x="340" y="420" width="5" height="150" fill="#C41230" rx="2" />++ <!-- 联系信息 -->+ <text x="640" y="470" text-anchor="middle" fill="#C41230" font-family="Microsoft YaHei, Arial, sans-serif"+ font-size="20" font-weight="bold">+ {{INSTITUTION}}+ </text>+ <text x="640" y="510" text-anchor="middle" fill="#333333" font-family="Microsoft YaHei, Arial, sans-serif"+ font-size="16">+ {{DEPARTMENT}}+ </text>+ <text x="640" y="545" text-anchor="middle" fill="#666666" font-family="Microsoft YaHei, Arial, sans-serif"+ font-size="14">+ {{CONTACT_INFO}}+ </text>++ <!-- ==================== 装饰元素 ==================== -->+ <!-- 左侧金色装饰 -->+ <circle cx="150" cy="400" r="50" fill="none" stroke="#C9A962" stroke-width="1" stroke-opacity="0.2" />+ <circle cx="150" cy="400" r="30" fill="none" stroke="#C9A962" stroke-width="1" stroke-opacity="0.15" />++ <!-- 右侧金色装饰 -->+ <circle cx="1130" cy="400" r="50" fill="none" stroke="#C9A962" stroke-width="1" stroke-opacity="0.2" />+ <circle cx="1130" cy="400" r="30" fill="none" stroke="#C9A962" stroke-width="1" stroke-opacity="0.15" />++ <!-- ==================== 底部信息 ==================== -->+ <rect x="0" y="665" width="1280" height="55" fill="#F5F0EB" />+ <rect x="0" y="665" width="1280" height="3" fill="#C41230" />++ <text x="640" y="700" text-anchor="middle" fill="#999999" font-family="Microsoft YaHei, Arial, sans-serif"+ font-size="14">+ {{COPYRIGHT}}+ </text>+ <text x="1220" y="700" text-anchor="end" fill="#999999" font-family="Microsoft YaHei, Arial, sans-serif"+ font-size="14">+ {{PAGE_NUM}}+ </text>+</svg>\ No newline at end of filediff --git a/templates/layouts/cmb_bank/design_spec.md b/templates/layouts/cmb_bank/design_spec.mdnew file mode 100644index 00000000..52bf2408--- /dev/null+++ b/templates/layouts/cmb_bank/design_spec.md@@ -0,0 +1,308 @@+# 招商银行模板 (CMB Bank Style) - 设计规范++> 适用于招商银行及金融机构的工作汇报、业务展示、年度报告、客户服务等场景。++---++## 一、模板概述++| 属性 | 描述 |+| ------------ | ---------------------------------------------------- |+| **模板名称** | cmb_bank(招商银行模板) |+| **适用场景** | 工作汇报、业务展示、年度报告、产品推介、客户服务培训 |+| **设计调性** | 稳重、专业、可信赖、现代金融、服务至上 |+| **主题模式** | 亮色主题(白色背景 + 招行红标题条 + 金色点缀) |+| **适用机构** | 招商银行各分支机构、金融服务企业 |++---++## 二、画布规范++| 属性 | 值 |+| -------------- | -------------------------- |+| **格式** | 标准 16:9 |+| **尺寸** | 1280 × 720 px |+| **viewBox** | `0 0 1280 720` |+| **页面边距** | 左右 40px,上 0px,下 35px |+| **内容安全区** | x: 40-1240, y: 70-665 |++---++## 三、配色方案++### 主色系++| 角色 | 色值 | 备注 |+| ------------ | --------- | ---------------------------- |+| **招行红** | `#C41230` | 页眉背景、章节标题、主要强调 |+| **深红** | `#9A0E26` | 章节页背景、重点强调 |+| **辅助金** | `#C9A962` | 装饰点缀、高端元素、数据高亮 |+| **暖灰** | `#F5F0EB` | 核心观点背景条、卡片内区块 |+| **背景白** | `#FFFFFF` | 页面主背景 |+| **浅红背景** | `#FDF2F4` | 重点信息区块、数据卡片 |++### 文字色系++| 角色 | 色值 | 用途 |+| -------------- | --------- | ---------------- |+| **白色文字** | `#FFFFFF` | 深色背景上的文字 |+| **主文字** | `#333333` | 正文内容 |+| **辅助文字** | `#666666` | 说明文字、标注 |+| **弱灰** | `#999999` | 页脚、辅助信息 |+| **招行红文字** | `#C41230` | 强调文字、标题 |++### 中性色++| 角色 | 色值 | 用途 |+| ---------- | --------- | -------------------- |+| **卡片灰** | `#F8F8F8` | 卡片内背景、信息区块 |+| **边框灰** | `#E5E5E5` | 卡片边框、分割线 |++### 功能色++| 用途 | 色值 | 说明 |+| -------- | --------- | ------------------ |+| **成功** | `#28A745` | 正向指标、增长数据 |+| **警示** | `#FFC107` | 注意事项、提醒 |+| **危险** | `#DC3545` | 风险提示、负增长 |+| **信息** | `#17A2B8` | 信息提示、参考数据 |++### 配色变体方案++如需调整为其他金融机构配色,可替换主色系中的对应色值:++| 机构类型 | 主导色 | 辅助色 | 强调色 | 适用场景 |+| -------- | --------- | --------- | --------- | -------------- |+| 招商银行 | `#C41230` | `#C9A962` | `#9A0E26` | 招行各分支机构 |+| 工商银行 | `#C41230` | `#FFFFFF` | `#9A0E26` | 工行红白配色 |+| 建设银行 | `#004B87` | `#FFFFFF` | `#003366` | 建行蓝色系 |+| 农业银行 | `#00A651` | `#FFFFFF` | `#008040` | 农行绿色系 |+| 中国银行 | `#C41230` | `#FFFFFF` | `#9A0E26` | 中行红色系 |+| 交通银行 | `#003399` | `#FFFFFF` | `#002266` | 交行蓝色系 |++> **使用方法**:在所有 SVG 模板文件中全局替换主色系色值即可快速切换配色方案。++---++## 四、排版体系++### 字体方案++**字体栈**: `"Microsoft YaHei", "微软雅黑", Arial, sans-serif`++### 字号层级++| 层级 | 用途 | 字号 | 字重 |+| ---- | ---------- | ---- | ------- |+| H1 | 封面主标题 | 48px | Bold |+| H2 | 页面标题 | 28px | Bold |+| H3 | 章节标题 | 48px | Bold |+| H4 | 卡片标题 | 22px | Bold |+| P | 正文内容 | 18px | Regular |+| High | 强调数据 | 36px | Bold |+| Sub | 注释/来源 | 14px | Regular |+| XS | 页码/版权 | 12px | Regular |++---++## 五、页面结构++### 通用布局++| 区域 | 位置/高度 | 内容说明 |+| ---------- | -------------- | ---------------------------------- |+| **页眉** | y=0, h=70px | 招行红背景 + 金色装饰线 + 页面标题 |+| **观点条** | y=70, h=50px | 核心观点/摘要区域(暖灰背景) |+| **内容区** | y=135, h=515px | 主要内容区域 |+| **页脚** | y=665, h=55px | 数据来源、机构名称、页码 |++### 装饰设计++- **金色装饰线**: 辅助金 (`#C9A962`),用于页眉底部、分隔线+- **红色渐变**: 从招行红到深红的渐变效果+- **向日葵元素**: 可选的品牌装饰图案+- **圆角矩形**: 卡片使用 8px 圆角,体现现代感++---++## 六、页面类型++### 1. 封面页 (01_cover.svg)++- 白色背景+- 招行红顶部横条 + 金色底部装饰线+- 右上角 Logo/品牌标识占位区域+- 居中主标题 + 副标题+- 金色装饰分隔线+- 汇报人信息区域+- 底部暖灰信息区(日期)++### 2. 目录页 (02_toc.svg)++- 白色背景+- 标准页眉(招行红 + 金色线)+- 卡片式目录项布局(2列)+- 暖灰/浅红背景卡片 + 左侧红色竖条+- 可选项使用虚线边框++### 3. 章节页 (02_chapter.svg)++- 深红色全屏背景 (`#9A0E26`)+- 右侧几何图形装饰(金融主题)+- 左侧金色竖条装饰+- 大号半透明背景编号+- 醒目白色章节标题+- 金色装饰线++### 4. 内容页 (03_content.svg)++- 白色背景+- 标准页眉(招行红 + 金色线)+- 核心观点条(暖灰背景 + 红色左侧竖条)+- 灵活内容区域+- 页脚:数据来源、机构名称、页码++### 5. 结束页 (04_ending.svg)++- 白色背景+- 招行红顶部横条 + 金色装饰+- 居中感谢语+- 联系信息区域+- 品牌 Logo 区域++---++## 七、布局模式(推荐)++### 适用于金融报告的常见布局++| 布局名称 | 适用场景 | 特点 |+| ------------ | ------------------ | ------------------ |+| **单栏居中** | 核心观点、主要结论 | 突出重点、层次清晰 |+| **双栏对比** | 业绩对比、方案比较 | 左右对称、便于比较 |+| **数据卡片** | KPI 展示、业务指标 | 多指标并列展示 |+| **图表混排** | 财务分析、趋势展示 | 数据可视化 |+| **时间线** | 发展历程、里程碑 | 时间顺序清晰 |+| **流程图** | 业务流程、服务流程 | 步骤明确、逻辑清晰 |++---++## 八、间距规范++| 间距类型 | 值 | 用途 |+| ------------ | ---- | -------------------- |+| **页面边距** | 40px | 内容到页面边缘的距离 |+| **卡片间距** | 24px | 卡片之间的间距 |+| **元素间距** | 16px | 卡片内元素间的间距 |+| **文字行距** | 1.5 | 正文行高倍数 |+| **段落间距** | 20px | 段落之间的间距 |++---++## 九、SVG 技术约束++### 必须遵守++- viewBox 固定为 `0 0 1280 720`+- 背景使用 `<rect>` 元素+- 使用 `<tspan>` 进行文本换行+- 所有颜色使用 HEX 格式(不使用 rgba)+- 透明度使用 `fill-opacity` / `stroke-opacity`++### 禁用元素(PPT 不兼容)++| 禁用项 | 替代方案 |+| ------------------ | ---------------------- |+| `clipPath` | 不使用裁剪 |+| `mask` | 不使用遮罩 |+| `<style>` | 使用内联样式 |+| `class` / `id` | 使用内联属性 |+| `foreignObject` | 使用 `<tspan>` 换行 |+| `textPath` | 使用普通 `<text>` |+| `animate*` / `set` | 不使用动画 |+| `marker-end` | 使用 `<polygon>` 箭头 |+| `<g opacity>` | 每个元素单独设置透明度 |++---++## 十、占位符规范++| 占位符 | 用途 |+| ------------------- | -------------------- |+| `{{LOGO}}` | 品牌标识 |+| `{{TITLE}}` | 主标题 |+| `{{SUBTITLE}}` | 副标题 |+| `{{AUTHOR}}` | 汇报人姓名 |+| `{{DEPARTMENT}}` | 部门/分行 |+| `{{INSTITUTION}}` | 机构名称 |+| `{{DATE}}` | 日期 |+| `{{CHAPTER_NUM}}` | 章节编号 |+| `{{CHAPTER_TITLE}}` | 章节标题 |+| `{{CHAPTER_DESC}}` | 章节描述 |+| `{{PAGE_TITLE}}` | 页面标题 |+| `{{KEY_MESSAGE}}` | 核心观点 |+| `{{CONTENT_AREA}}` | 内容区域 |+| `{{SOURCE}}` | 数据来源 |+| `{{PAGE_NUM}}` | 页码 |+| `{{SECTION_NAME}}` | 章节名称(页脚) |+| `{{TOC_ITEM_N}}` | 目录项(N=1,2,3...) |++---++## 十一、使用说明++### 1. 复制模板到项目++```bash+cp templates/layouts/cmb_bank/* projects/<项目>/templates/+```++### 2. Logo 放置建议++- 封面页:右上角,尺寸约 160×50px+- 内容页:右上角页眉内,尺寸约 120×35px+- 结束页:可放大展示,居中或配合联系信息++---++## 十二、金融内容专用组件++### 数据卡片(KPI)++```xml+<rect x="x" y="y" width="200" height="110" fill="#FDF2F4" rx="8"/>+<rect x="x" y="y" width="4" height="110" fill="#C41230" rx="2"/>+<text x="x+100" y="y+35" text-anchor="middle" fill="#666666" font-size="14">存款余额</text>+<text x="x+100" y="y+75" text-anchor="middle" fill="#C41230" font-size="32" font-weight="bold">¥128.5亿</text>+<text x="x+100" y="y+98" text-anchor="middle" fill="#28A745" font-size="12">↑ 12.5%</text>+```++### 增长指标++```xml+<text fill="#28A745" font-size="14">↑ 15.2%</text> <!-- 正增长 -->+<text fill="#DC3545" font-size="14">↓ 3.8%</text> <!-- 负增长 -->+```++### 服务等级标签++```xml+<rect x="x" y="y" width="80" height="28" fill="#C9A962" rx="4"/>+<text x="x+40" y="y+19" text-anchor="middle" fill="#FFFFFF" font-size="14">金葵花</text>+```++### 风险等级标签++```xml+<!-- 低风险 -->+<rect x="x" y="y" width="60" height="24" fill="#28A745" rx="4"/>+<text x="x+30" y="y+17" text-anchor="middle" fill="#FFFFFF" font-size="12">低风险</text>++<!-- 中风险 -->+<rect x="x" y="y" width="60" height="24" fill="#FFC107" rx="4"/>+<text x="x+30" y="y+17" text-anchor="middle" fill="#333333" font-size="12">中风险</text>++<!-- 高风险 -->+<rect x="x" y="y" width="60" height="24" fill="#DC3545" rx="4"/>+<text x="x+30" y="y+17" text-anchor="middle" fill="#FFFFFF" font-size="12">高风险</text>+```diff --git "a/templates/layouts/cmb_bank/\346\213\233\345\225\206\351\223\266\350\241\214\345\205\254\345\217\270\351\207\221\350\236\215.png" "b/templates/layouts/cmb_bank/\346\213\233\345\225\206\351\223\266\350\241\214\345\205\254\345\217\270\351\207\221\350\236\215.png"new file mode 100644index 00000000..939e0c73Binary files /dev/null and "b/templates/layouts/cmb_bank/\346\213\233\345\225\206\351\223\266\350\241\214\345\205\254\345\217\270\351\207\221\350\236\215.png" differdiff --git a/templates/layouts/consultant/02_toc.svg b/templates/layouts/consultant/02_toc.svgnew file mode 100644index 00000000..b1a783c1--- /dev/null+++ b/templates/layouts/consultant/02_toc.svg@@ -0,0 +1,62 @@+<?xml version="1.0" encoding="UTF-8"?>+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1280 720">+ <!-- 模板: 目录页 - 咨询顾问风格 -->++ <!-- 深色背景 -->+ <rect x="0" y="0" width="1280" height="720" fill="#0A1628"/>++ <!-- 左侧装饰条 -->+ <rect x="0" y="0" width="8" height="720" fill="#0066CC"/>++ <!-- 金色装饰线 -->+ <line x1="80" y1="80" x2="300" y2="80" stroke="#D4AF37" stroke-width="3"/>++ <!-- 页面标题 -->+ <text x="80" y="140" font-family="Arial, sans-serif" font-size="42" font-weight="bold" fill="#FFFFFF">CONTENTS</text>+ <text x="80" y="175" font-family="Arial, sans-serif" font-size="18" fill="#64748B">目 录</text>++ <!-- 目录项 01 -->+ <g>+ <rect x="80" y="220" width="520" height="100" fill="#0F2840" rx="4"/>+ <rect x="80" y="220" width="6" height="100" fill="#0066CC"/>+ <text x="120" y="275" font-family="Arial, sans-serif" font-size="48" font-weight="bold" fill="#0066CC">01</text>+ <text x="200" y="265" font-family="Arial, sans-serif" font-size="22" font-weight="bold" fill="#FFFFFF">{{CHAPTER_01_TITLE}}</text>+ <text x="200" y="295" font-family="Arial, sans-serif" font-size="14" fill="#94A3B8">{{CHAPTER_01_DESC}}</text>+ </g>++ <!-- 目录项 02 -->+ <g>+ <rect x="80" y="340" width="520" height="100" fill="#0F2840" rx="4"/>+ <rect x="80" y="340" width="6" height="100" fill="#D4AF37"/>+ <text x="120" y="395" font-family="Arial, sans-serif" font-size="48" font-weight="bold" fill="#D4AF37">02</text>+ <text x="200" y="385" font-family="Arial, sans-serif" font-size="22" font-weight="bold" fill="#FFFFFF">{{CHAPTER_02_TITLE}}</text>+ <text x="200" y="415" font-family="Arial, sans-serif" font-size="14" fill="#94A3B8">{{CHAPTER_02_DESC}}</text>+ </g>++ <!-- 目录项 03 -->+ <g>+ <rect x="80" y="460" width="520" height="100" fill="#0F2840" rx="4"/>+ <rect x="80" y="460" width="6" height="100" fill="#0066CC"/>+ <text x="120" y="515" font-family="Arial, sans-serif" font-size="48" font-weight="bold" fill="#0066CC">03</text>+ <text x="200" y="505" font-family="Arial, sans-serif" font-size="22" font-weight="bold" fill="#FFFFFF">{{CHAPTER_03_TITLE}}</text>+ <text x="200" y="535" font-family="Arial, sans-serif" font-size="14" fill="#94A3B8">{{CHAPTER_03_DESC}}</text>+ </g>++ <!-- 目录项 04 -->+ <g>+ <rect x="80" y="580" width="520" height="100" fill="#0F2840" rx="4"/>+ <rect x="80" y="580" width="6" height="100" fill="#D4AF37"/>+ <text x="120" y="635" font-family="Arial, sans-serif" font-size="48" font-weight="bold" fill="#D4AF37">04</text>+ <text x="200" y="625" font-family="Arial, sans-serif" font-size="22" font-weight="bold" fill="#FFFFFF">{{CHAPTER_04_TITLE}}</text>+ <text x="200" y="655" font-family="Arial, sans-serif" font-size="14" fill="#94A3B8">{{CHAPTER_04_DESC}}</text>+ </g>++ <!-- 右侧几何装饰 -->+ <rect x="700" y="200" width="480" height="420" fill="none" stroke="#0066CC" stroke-width="1" stroke-opacity="0.2"/>+ <rect x="750" y="250" width="380" height="320" fill="none" stroke="#0066CC" stroke-width="1" stroke-opacity="0.15"/>+ <rect x="800" y="300" width="280" height="220" fill="none" stroke="#D4AF37" stroke-width="1" stroke-opacity="0.1"/>++ <!-- 右下角 Logo 区域 -->+ <text x="1200" y="680" text-anchor="end" font-family="Arial, sans-serif" font-size="14" fill="#64748B">{{LOGO}}</text>++</svg>diff --git a/templates/layouts/consultant/design_spec.md b/templates/layouts/consultant/design_spec.mdnew file mode 100644index 00000000..127afe0c--- /dev/null+++ b/templates/layouts/consultant/design_spec.md@@ -0,0 +1,215 @@+# 咨询顾问模板 (Consultant Style) - 设计规范++> 适用于商业咨询、战略分析、项目汇报、企业培训等场景。++---++## 一、模板概述++| 属性 | 描述 |+| -------------- | ------------------------------------------------------ |+| **模板名称** | consultant(咨询顾问模板) |+| **适用场景** | 商业咨询、战略分析、项目汇报、企业培训 |+| **设计调性** | 专业、简约、商务、现代 |+| **主题模式** | 深色主题(深蓝背景 + 蓝色强调色 + 金色点缀) |++---++## 二、画布规范++| 属性 | 值 |+| -------------- | ----------------------------- |+| **格式** | 标准 16:9 |+| **尺寸** | 1280 × 720 px |+| **viewBox** | `0 0 1280 720` |+| **页面边距** | 左右 60px,上 40px,下 40px |+| **内容安全区** | x: 60-1220, y: 80-660 |++---++## 三、配色方案++### 主色系++| 角色 | 色值 | 备注 |+| -------------- | ----------- | -------------------------------- |+| **主背景深蓝** | `#0A1628` | 封面、章节页、结束页背景 |+| **内容页白** | `#FFFFFF` | 内容页主背景 |+| **强调蓝** | `#0066CC` | 装饰条、按钮、标题强调 |+| **金色点缀** | `#D4AF37` | 分隔线、高亮装饰 |+| **辅助灰** | `#F1F5F9` | 卡片背景、核心观点区域 |++### 文字色系++| 角色 | 色值 | 用途 |+| -------------- | ----------- | ---------------------- |+| **白色文字** | `#FFFFFF` | 深色背景上的主要文字 |+| **主文字** | `#0A1628` | 亮色背景正文 |+| **辅助文字** | `#94A3B8` | 副标题、描述文字 |+| **次要文字** | `#64748B` | 页脚、时间、来源 |++### 功能色++| 用途 | 色值 | 说明 |+| -------- | ----------- | -------------- |+| **成功** | `#22C55E` | 正向指标 |+| **警示** | `#EF4444` | 风险提示 |+| **信息** | `#3B82F6` | 一般信息 |++---++## 四、排版体系++### 字体方案++**字体栈**: `Arial, "Helvetica Neue", sans-serif`++### 字号层级++| 层级 | 用途 | 字号 | 字重 |+| ---- | ---------------- | ---- | ------- |+| H1 | 封面主标题 | 52px | Bold |+| H2 | 页面大标题 | 28px | Bold |+| H3 | 章节标题 | 42px | Bold |+| H4 | 卡片标题 | 20px | Bold |+| P | 正文内容 | 16px | Regular |+| High | 强调数据 | 36px | Bold |+| Sub | 辅助说明 | 14px | Regular |++---++## 五、页面结构++### 通用布局++| 区域 | 位置/高度 | 内容说明 |+| ---------- | ------------- | -------------------------------------- |+| **左侧** | x=0, w=8px | 蓝色装饰竖条 |+| **页眉** | y=0, h=60px | 页面标题、Logo |+| **内容区** | y=80, h=540px | 主要内容区域 |+| **页脚** | y=660, h=60px | 数据来源、页码 |++### 装饰设计++- **左侧装饰条**: 蓝色 (`#0066CC`),宽度 8px,贯穿整页+- **金色分隔线**: 金色 (`#D4AF37`),宽度 2-3px,用于标题装饰+- **几何装饰**: 透明边框矩形,营造现代感++---++## 六、页面类型++### 1. 封面页 (01_cover.svg)++- 深色背景 (`#0A1628`)+- 左侧蓝色装饰条+- 金色装饰线+- 主标题 + 副标题+- 右侧几何装饰+- 底部日期、作者信息++### 2. 目录页 (02_toc.svg)++- 深色背景+- 双竖线分隔符 `||` 设计+- 最多支持5个章节+- 左侧装饰竖线+- 右侧几何装饰++### 3. 章节页 (02_chapter.svg)++- 深色背景+- 蓝色章节编号块+- 章节标题 + 金色分隔线+- 右侧几何装饰++### 4. 内容页 (03_content.svg)++- 白色背景+- 深色页眉条+- 核心观点区(灰色背景 + 金色左侧装饰)+- 灵活内容区域+- 页脚包含数据来源和页码++### 5. 结束页 (04_ending.svg)++- 深色背景+- 居中感谢语+- 金色分隔线+- 联系信息+- 机密标识++---++## 七、布局模式++| 模式 | 适用场景 |+| ------------------ | -------------------------- |+| **单栏居中** | 封面、结语、重要观点 |+| **左右分栏 (5:5)** | 对比展示 |+| **左右分栏 (4:6)** | 图文混排 |+| **上下分栏** | 流程说明 |+| **三栏卡片** | 项目列表 |+| **表格** | 数据对比 |++---++## 八、间距规范++| 元素 | 数值 |+| ------------ | ------ |+| 卡片间距 | 24px |+| 内容块间距 | 32px |+| 卡片内边距 | 20px |+| 卡片圆角 | 4px |+| 图标与文字 | 12px |++---++## 九、SVG 技术约束++### 必须遵守++1. viewBox: `0 0 1280 720`+2. 背景使用 `<rect>` 元素+3. 文本换行使用 `<tspan>`(禁止 `<foreignObject>`)+4. 透明度使用 `fill-opacity` / `stroke-opacity`,禁止 `rgba()`+5. 禁止使用:`clipPath`、`mask`、`filter`、`<style>`、`class`、`foreignObject`+6. 禁止使用:`textPath`、`animate*`、`script`、`marker`/`marker-end`+7. 箭头使用 `<polygon>` 三角形替代 `<marker>`++### PPT 兼容性规则++- 禁止 `<g opacity="...">`(组透明度),每个子元素单独设置+- 图片透明度使用遮罩层替代+- 仅使用内联样式,禁止外部 CSS 和 `@font-face`++---++## 十、占位符规范++模板使用 `{{PLACEHOLDER}}` 格式的占位符,常用占位符:++| 占位符 | 说明 |+| ------------------ | ------------------ |+| `{{TITLE}}` | 主标题 |+| `{{SUBTITLE}}` | 副标题 |+| `{{AUTHOR}}` | 作者 |+| `{{DATE}}` | 日期 |+| `{{PAGE_TITLE}}` | 页面标题 |+| `{{CHAPTER_NUM}}` | 章节编号 |+| `{{CHAPTER_TITLE}}`| 章节标题 |+| `{{KEY_MESSAGE}}` | 核心观点 |+| `{{PAGE_NUM}}` | 页码 |+| `{{SOURCE}}` | 数据来源 |+| `{{CONFIDENTIAL}}` | 机密标识 |+| `{{LOGO}}` | Logo文字 |++---++## 十一、使用说明++1. 复制模板到项目目录+2. 根据内容需求选择合适的页面模板+3. 使用占位符标记需要替换的内容+4. 通过 Executor 角色生成最终 SVGdiff --git a/templates/layouts/consultant_top/02_toc.svg b/templates/layouts/consultant_top/02_toc.svgnew file mode 100644index 00000000..dcbb2b71--- /dev/null+++ b/templates/layouts/consultant_top/02_toc.svg@@ -0,0 +1,82 @@+<?xml version="1.0" encoding="UTF-8"?>+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1280 720">+ <!-- 模板: 目录页 - 顶级咨询风格 (Exhibit Style) -->++ <!-- 深色背景 -->+ <rect x="0" y="0" width="1280" height="720" fill="#0D1117"/>++ <!-- 顶部渐变条 -->+ <defs>+ <linearGradient id="top-gradient" x1="0%" y1="0%" x2="100%" y2="0%">+ <stop offset="0%" style="stop-color:#1E40AF"/>+ <stop offset="100%" style="stop-color:#7C3AED"/>+ </linearGradient>+ </defs>+ <rect x="0" y="0" width="1280" height="6" fill="url(#top-gradient)"/>++ <!-- Exhibit 标题条 -->+ <rect x="40" y="30" width="1200" height="60" fill="#1F2937"/>+ <rect x="40" y="30" width="6" height="60" fill="#D4AF37"/>+ <text x="70" y="70" font-family="Arial, sans-serif" font-size="24" font-weight="bold" fill="#FFFFFF" letter-spacing="2">AGENDA</text>+ <text x="220" y="70" font-family="Arial, sans-serif" font-size="16" fill="#9CA3AF">汇报提纲</text>++ <!-- 目录网格 - 2x2 布局 -->+ <!-- 目录项 01 -->+ <g>+ <rect x="60" y="120" width="560" height="130" fill="#1F2937" rx="8"/>+ <text x="100" y="175" font-family="Arial, sans-serif" font-size="64" font-weight="bold" fill="#1E40AF" fill-opacity="0.3">01</text>+ <text x="180" y="170" font-family="Arial, sans-serif" font-size="20" font-weight="bold" fill="#FFFFFF" letter-spacing="1">{{CHAPTER_01_TITLE}}</text>+ <text x="180" y="200" font-family="Arial, sans-serif" font-size="14" fill="#9CA3AF">{{CHAPTER_01_DESC}}</text>+ <line x1="180" y1="220" x2="560" y2="220" stroke="#374151" stroke-width="1"/>+ </g>++ <!-- 目录项 02 -->+ <g>+ <rect x="660" y="120" width="560" height="130" fill="#1F2937" rx="8"/>+ <text x="700" y="175" font-family="Arial, sans-serif" font-size="64" font-weight="bold" fill="#7C3AED" fill-opacity="0.3">02</text>+ <text x="780" y="170" font-family="Arial, sans-serif" font-size="20" font-weight="bold" fill="#FFFFFF" letter-spacing="1">{{CHAPTER_02_TITLE}}</text>+ <text x="780" y="200" font-family="Arial, sans-serif" font-size="14" fill="#9CA3AF">{{CHAPTER_02_DESC}}</text>+ <line x1="780" y1="220" x2="1160" y2="220" stroke="#374151" stroke-width="1"/>+ </g>++ <!-- 目录项 03 -->+ <g>+ <rect x="60" y="270" width="560" height="130" fill="#1F2937" rx="8"/>+ <text x="100" y="325" font-family="Arial, sans-serif" font-size="64" font-weight="bold" fill="#1E40AF" fill-opacity="0.3">03</text>+ <text x="180" y="320" font-family="Arial, sans-serif" font-size="20" font-weight="bold" fill="#FFFFFF" letter-spacing="1">{{CHAPTER_03_TITLE}}</text>+ <text x="180" y="350" font-family="Arial, sans-serif" font-size="14" fill="#9CA3AF">{{CHAPTER_03_DESC}}</text>+ <line x1="180" y1="370" x2="560" y2="370" stroke="#374151" stroke-width="1"/>+ </g>++ <!-- 目录项 04 -->+ <g>+ <rect x="660" y="270" width="560" height="130" fill="#1F2937" rx="8"/>+ <text x="700" y="325" font-family="Arial, sans-serif" font-size="64" font-weight="bold" fill="#7C3AED" fill-opacity="0.3">04</text>+ <text x="780" y="320" font-family="Arial, sans-serif" font-size="20" font-weight="bold" fill="#FFFFFF" letter-spacing="1">{{CHAPTER_04_TITLE}}</text>+ <text x="780" y="350" font-family="Arial, sans-serif" font-size="14" fill="#9CA3AF">{{CHAPTER_04_DESC}}</text>+ <line x1="780" y1="370" x2="1160" y2="370" stroke="#374151" stroke-width="1"/>+ </g>++ <!-- 目录项 05 (可选) -->+ <g>+ <rect x="60" y="420" width="560" height="130" fill="none" stroke="#374151" stroke-width="1" stroke-dasharray="4,4" rx="8"/>+ <text x="100" y="475" font-family="Arial, sans-serif" font-size="64" font-weight="bold" fill="#374151" fill-opacity="0.3">05</text>+ <text x="180" y="490" font-family="Arial, sans-serif" font-size="16" fill="#6B7280">{{CHAPTER_05}}</text>+ </g>++ <!-- 目录项 06 (可选) -->+ <g>+ <rect x="660" y="420" width="560" height="130" fill="none" stroke="#374151" stroke-width="1" stroke-dasharray="4,4" rx="8"/>+ <text x="700" y="475" font-family="Arial, sans-serif" font-size="64" font-weight="bold" fill="#374151" fill-opacity="0.3">06</text>+ <text x="780" y="490" font-family="Arial, sans-serif" font-size="16" fill="#6B7280">{{CHAPTER_06}}</text>+ </g>++ <!-- 底部分隔线 -->+ <line x1="60" y1="600" x2="1220" y2="600" stroke="#374151" stroke-width="1"/>++ <!-- 底部信息 -->+ <text x="60" y="680" font-family="Arial, sans-serif" font-size="12" fill="#6B7280">{{DATE}}</text>+ <text x="640" y="680" text-anchor="middle" font-family="Arial, sans-serif" font-size="11" fill="#D4AF37">CONFIDENTIAL</text>+ <text x="1220" y="680" text-anchor="end" font-family="Arial, sans-serif" font-size="12" fill="#6B7280">{{PAGE_NUM}}</text>++</svg>diff --git a/templates/layouts/consultant_top/design_spec.md b/templates/layouts/consultant_top/design_spec.mdnew file mode 100644index 00000000..b769eec9--- /dev/null+++ b/templates/layouts/consultant_top/design_spec.md@@ -0,0 +1,242 @@+# 顶级咨询模板 (Top Consultant Style) - 设计规范++> 适用于顶级咨询公司风格的战略汇报、高管演示、投资分析等高端场景。++---++## 一、模板概述++| 属性 | 描述 |+| -------------- | ------------------------------------------------------ |+| **模板名称** | consultant_top(顶级咨询模板) |+| **适用场景** | 战略规划、高管汇报、投资分析、董事会演示 |+| **设计调性** | 高端、精致、权威、数据驱动 |+| **主题模式** | 深色主题(暗黑背景 + 渐变强调 + 金色点缀) |++---++## 二、画布规范++| 属性 | 值 |+| -------------- | ----------------------------- |+| **格式** | 标准 16:9 |+| **尺寸** | 1280 × 720 px |+| **viewBox** | `0 0 1280 720` |+| **页面边距** | 左右 40px,上 20px,下 40px |+| **内容安全区** | x: 40-1240, y: 40-680 |++---++## 三、配色方案++### 主色系++| 角色 | 色值 | 备注 |+| -------------- | ----------- | -------------------------------- |+| **主背景暗黑** | `#0D1117` | 封面、章节页、结束页背景 |+| **内容页白** | `#FFFFFF` | 内容页主背景 |+| **渐变起点蓝** | `#1E40AF` | 顶部渐变条起点 |+| **渐变终点紫** | `#7C3AED` | 顶部渐变条终点 |+| **金色强调** | `#D4AF37` | 分隔线、高亮装饰 |+| **紫蓝强调** | `#6366F1` | 章节编号、次级强调 |++### 文字色系++| 角色 | 色值 | 用途 |+| -------------- | ----------- | ---------------------- |+| **白色文字** | `#FFFFFF` | 深色背景上的主要文字 |+| **浅灰文字** | `#9CA3AF` | 描述文字、副标题 |+| **次要文字** | `#6B7280` | 页脚、时间 |+| **正文黑** | `#111827` | 亮色背景正文 |++### 中性色++| 角色 | 色值 | 用途 |+| -------------- | ----------- | ---------------------- |+| **卡片背景** | `#1F2937` | 深色卡片背景 |+| **分割线** | `#E5E7EB` | 亮色背景分割线 |+| **边框灰** | `#374151` | 深色背景边框 |++---++## 四、排版体系++### 字体方案++**字体栈**: `Arial, "Helvetica Neue", sans-serif`++### 字号层级++| 层级 | 用途 | 字号 | 字重 | 字间距 |+| ---- | ---------------- | ---- | ------- | ------- |+| H1 | 封面主标题 | 56px | Bold | 2px |+| H2 | 页面大标题 | 28px | Bold | 1px |+| H3 | 章节标题 | 48px | Bold | 2px |+| H4 | 卡片标题 | 18px | Bold | 1px |+| P | 正文内容 | 14px | Regular | - |+| High | 强调数据 | 40px | Bold | - |+| Sub | 辅助说明 | 12px | Regular | - |++---++## 五、页面结构++### 通用布局++| 区域 | 位置/高度 | 内容说明 |+| ---------- | ------------- | -------------------------------------- |+| **顶部** | y=0, h=6px | 渐变装饰条(蓝-紫渐变) |+| **页眉** | y=20, h=60px | 核心观点/页面标题 |+| **内容区** | y=100, h=520px| 主要内容区域 |+| **页脚** | y=660, h=60px | 数据来源、机密标识、页码 |++### 装饰设计++- **顶部渐变条**: 蓝紫渐变 (`#1E40AF` → `#7C3AED`),高度 4-6px+- **左侧金色线**: 金色 (`#D4AF37`),宽度 4px,用于章节页装饰+- **网格装饰**: 低透明度线条网格,营造数据/精密感++---++## 六、页面类型++### 1. 封面页 (01_cover.svg)++- 暗黑背景 (`#0D1117`)+- 顶部渐变装饰条+- 左侧金色竖线装饰+- 主标题 + 副标题 + 项目编号+- 右侧网格装饰+- 底部日期、机密标识、作者信息++### 2. 目录页 (02_toc.svg)++- 暗黑背景+- 顶部渐变条+- 双竖线分隔符 `||` 设计(金色)+- 章节编号使用紫蓝色+- 右侧网格装饰+- 机密标识++### 3. 章节页 (02_chapter.svg)++- 暗黑背景+- 顶部渐变条+- 左侧金色竖线+- 大号半透明背景编号+- 章节标题 + 描述+- 右侧网格装饰++### 4. 内容页 (03_content.svg)++- 白色背景+- 顶部渐变细条+- 深色核心观点条(金色左侧装饰)+- 灵活内容区域+- 页脚:数据来源、机密标识、页码++### 5. 结束页 (04_ending.svg)++- 暗黑背景+- 顶部渐变条+- 网格装饰背景+- 居中感谢语+- 金色分隔线+- 联系信息卡片+- 机密标识 + 版权++---++## 七、布局模式++| 模式 | 适用场景 |+| ------------------ | -------------------------- |+| **单栏居中** | 封面、结语 |+| **左右分栏 (5:5)** | 数据对比 |+| **左右分栏 (3:7)** | 图表+文字 |+| **矩阵网格** | 多维分析 |+| **瀑布图** | 财务分析 |+| **表格** | 数据汇总 |++---++## 八、间距规范++| 元素 | 数值 |+| ------------ | ------ |+| 卡片间距 | 20px |+| 内容块间距 | 24px |+| 卡片内边距 | 24px |+| 卡片圆角 | 8px |+| 图标与文字 | 10px |++---++## 九、SVG 技术约束++### 必须遵守++1. viewBox: `0 0 1280 720`+2. 背景使用 `<rect>` 元素+3. 文本换行使用 `<tspan>`(禁止 `<foreignObject>`)+4. 透明度使用 `fill-opacity` / `stroke-opacity`,禁止 `rgba()`+5. 禁止使用:`clipPath`、`mask`、`filter`、`<style>`、`class`、`foreignObject`+6. 禁止使用:`textPath`、`animate*`、`script`、`marker`/`marker-end`+7. 箭头使用 `<polygon>` 三角形替代 `<marker>`+8. 渐变使用 `<defs>` 定义 `<linearGradient>`++### PPT 兼容性规则++- 禁止 `<g opacity="...">`(组透明度),每个子元素单独设置+- 图片透明度使用遮罩层替代+- 仅使用内联样式,禁止外部 CSS 和 `@font-face`++---++## 十、占位符规范++模板使用 `{{PLACEHOLDER}}` 格式的占位符,常用占位符:++| 占位符 | 说明 |+| ------------------ | ------------------ |+| `{{TITLE}}` | 主标题 |+| `{{SUBTITLE}}` | 副标题 |+| `{{PROJECT_ID}}` | 项目编号 |+| `{{AUTHOR}}` | 作者 |+| `{{DATE}}` | 日期 |+| `{{PAGE_TITLE}}` | 页面标题 |+| `{{KEY_MESSAGE}}` | 核心观点(Exhibit)|+| `{{CHAPTER_NUM}}` | 章节编号 |+| `{{CHAPTER_TITLE}}`| 章节标题 |+| `{{PAGE_NUM}}` | 页码 |+| `{{SOURCE}}` | 数据来源 |+| `{{CONTACT_NAME}}` | 联系人姓名 |+| `{{CONTACT_INFO}}` | 联系方式 |+| `{{COPYRIGHT}}` | 版权信息 |+| `{{LOGO}}` | Logo文字 |++---++## 十一、特色设计元素++### 机密标识++所有页面底部居中显示 `CONFIDENTIAL` 标识,金色文字。++### Exhibit 标题条++内容页顶部使用深色背景 + 金色左侧装饰的核心观点条,类似咨询公司的 "Exhibit" 风格。++### 网格背景++章节页和结束页使用低透明度的网格线条装饰,营造专业数据分析氛围。++---++## 十二、使用说明++1. 复制模板到项目目录+2. 根据内容需求选择合适的页面模板+3. 使用占位符标记需要替换的内容+4. 确保机密标识正确显示+5. 通过 Executor 角色生成最终 SVGdiff --git a/templates/layouts/general/02_toc.svg b/templates/layouts/general/02_toc.svgnew file mode 100644index 00000000..e28a2ed0--- /dev/null+++ b/templates/layouts/general/02_toc.svg@@ -0,0 +1,91 @@+<?xml version="1.0" encoding="UTF-8"?>+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1280 720">+ <!-- 模板: 目录页 - 通用模板风格 -->++ <!-- 浅色背景 -->+ <rect x="0" y="0" width="1280" height="720" fill="#F8FAFC"/>++ <!-- 页眉区域 -->+ <rect x="0" y="0" width="1280" height="70" fill="#FFFFFF"/>+ <line x1="0" y1="70" x2="1280" y2="70" stroke="#E2E8F0" stroke-width="1"/>++ <!-- 页面标题 -->+ <rect x="40" y="20" width="6" height="30" fill="#1E3A5F" rx="2"/>+ <text x="60" y="46" font-family="Microsoft YaHei, Arial, sans-serif" font-size="28" font-weight="bold" fill="#1E3A5F">目 录</text>+ <text x="160" y="46" font-family="Arial, sans-serif" font-size="16" fill="#94A3B8">CONTENTS</text>++ <!-- 装饰圆 -->+ <circle cx="1150" cy="180" r="120" fill="#6366F1" fill-opacity="0.05"/>+ <circle cx="100" cy="600" r="100" fill="#22D3EE" fill-opacity="0.05"/>++ <!-- 目录卡片区域 -->+ <!-- 第1章 -->+ <g>+ <rect x="80" y="110" width="540" height="120" fill="#FFFFFF" rx="8"/>+ <rect x="80" y="110" width="540" height="120" fill="none" stroke="#E2E8F0" stroke-width="1" rx="8"/>+ <circle cx="140" cy="170" r="30" fill="#1E3A5F"/>+ <text x="140" y="178" text-anchor="middle" font-family="Arial, sans-serif" font-size="24" font-weight="bold" fill="#FFFFFF">01</text>+ <text x="190" y="160" font-family="Microsoft YaHei, Arial, sans-serif" font-size="20" font-weight="bold" fill="#1E3A5F">{{CHAPTER_01_TITLE}}</text>+ <text x="190" y="190" font-family="Microsoft YaHei, Arial, sans-serif" font-size="14" fill="#64748B">{{CHAPTER_01_DESC}}</text>+ </g>++ <!-- 第2章 -->+ <g>+ <rect x="660" y="110" width="540" height="120" fill="#FFFFFF" rx="8"/>+ <rect x="660" y="110" width="540" height="120" fill="none" stroke="#E2E8F0" stroke-width="1" rx="8"/>+ <circle cx="720" cy="170" r="30" fill="#6366F1"/>+ <text x="720" y="178" text-anchor="middle" font-family="Arial, sans-serif" font-size="24" font-weight="bold" fill="#FFFFFF">02</text>+ <text x="770" y="160" font-family="Microsoft YaHei, Arial, sans-serif" font-size="20" font-weight="bold" fill="#1E3A5F">{{CHAPTER_02_TITLE}}</text>+ <text x="770" y="190" font-family="Microsoft YaHei, Arial, sans-serif" font-size="14" fill="#64748B">{{CHAPTER_02_DESC}}</text>+ </g>++ <!-- 第3章 -->+ <g>+ <rect x="80" y="255" width="540" height="120" fill="#FFFFFF" rx="8"/>+ <rect x="80" y="255" width="540" height="120" fill="none" stroke="#E2E8F0" stroke-width="1" rx="8"/>+ <circle cx="140" cy="315" r="30" fill="#22D3EE"/>+ <text x="140" y="323" text-anchor="middle" font-family="Arial, sans-serif" font-size="24" font-weight="bold" fill="#FFFFFF">03</text>+ <text x="190" y="305" font-family="Microsoft YaHei, Arial, sans-serif" font-size="20" font-weight="bold" fill="#1E3A5F">{{CHAPTER_03_TITLE}}</text>+ <text x="190" y="335" font-family="Microsoft YaHei, Arial, sans-serif" font-size="14" fill="#64748B">{{CHAPTER_03_DESC}}</text>+ </g>++ <!-- 第4章 -->+ <g>+ <rect x="660" y="255" width="540" height="120" fill="#FFFFFF" rx="8"/>+ <rect x="660" y="255" width="540" height="120" fill="none" stroke="#E2E8F0" stroke-width="1" rx="8"/>+ <circle cx="720" cy="315" r="30" fill="#1E3A5F"/>+ <text x="720" y="323" text-anchor="middle" font-family="Arial, sans-serif" font-size="24" font-weight="bold" fill="#FFFFFF">04</text>+ <text x="770" y="305" font-family="Microsoft YaHei, Arial, sans-serif" font-size="20" font-weight="bold" fill="#1E3A5F">{{CHAPTER_04_TITLE}}</text>+ <text x="770" y="335" font-family="Microsoft YaHei, Arial, sans-serif" font-size="14" fill="#64748B">{{CHAPTER_04_DESC}}</text>+ </g>++ <!-- 第5章 (可选) -->+ <g>+ <rect x="80" y="400" width="540" height="120" fill="#FFFFFF" rx="8"/>+ <rect x="80" y="400" width="540" height="120" fill="none" stroke="#E2E8F0" stroke-width="1" stroke-dasharray="4,4" rx="8"/>+ <circle cx="140" cy="460" r="30" fill="#E2E8F0"/>+ <text x="140" y="468" text-anchor="middle" font-family="Arial, sans-serif" font-size="24" font-weight="bold" fill="#94A3B8">05</text>+ <text x="190" y="465" font-family="Microsoft YaHei, Arial, sans-serif" font-size="16" fill="#CBD5E1">{{CHAPTER_05}}</text>+ </g>++ <!-- 第6章 (可选) -->+ <g>+ <rect x="660" y="400" width="540" height="120" fill="#FFFFFF" rx="8"/>+ <rect x="660" y="400" width="540" height="120" fill="none" stroke="#E2E8F0" stroke-width="1" stroke-dasharray="4,4" rx="8"/>+ <circle cx="720" cy="460" r="30" fill="#E2E8F0"/>+ <text x="720" y="468" text-anchor="middle" font-family="Arial, sans-serif" font-size="24" font-weight="bold" fill="#94A3B8">06</text>+ <text x="770" y="465" font-family="Microsoft YaHei, Arial, sans-serif" font-size="16" fill="#CBD5E1">{{CHAPTER_06}}</text>+ </g>++ <!-- 页脚区域 -->+ <rect x="0" y="660" width="1280" height="60" fill="#FFFFFF"/>+ <line x1="0" y1="660" x2="1280" y2="660" stroke="#E2E8F0" stroke-width="1"/>++ <!-- 章节标识 -->+ <rect x="40" y="678" width="4" height="20" fill="#1E3A5F" rx="2"/>+ <text x="56" y="694" fill="#64748B" font-family="Microsoft YaHei, Arial, sans-serif" font-size="12">目录</text>++ <!-- 页码 -->+ <text x="1220" y="694" text-anchor="end" fill="#94A3B8" font-family="Microsoft YaHei, Arial, sans-serif" font-size="14">{{PAGE_NUM}}</text>++</svg>diff --git a/templates/layouts/general/design_spec.md b/templates/layouts/general/design_spec.mdnew file mode 100644index 00000000..9c89c1ce--- /dev/null+++ b/templates/layouts/general/design_spec.md@@ -0,0 +1,220 @@+# 通用模板 (General Style) - 设计规范++> 适用于各类通用演示场景,包括工作汇报、项目介绍、产品展示等。++---++## 一、模板概述++| 属性 | 描述 |+| -------------- | ------------------------------------------------------ |+| **模板名称** | general(通用模板) |+| **适用场景** | 工作汇报、项目介绍、产品展示、培训演示 |+| **设计调性** | 现代、清新、专业、通用 |+| **主题模式** | 混合主题(深色封面/章节页 + 浅色内容页) |++---++## 二、画布规范++| 属性 | 值 |+| -------------- | ----------------------------- |+| **格式** | 标准 16:9 |+| **尺寸** | 1280 × 720 px |+| **viewBox** | `0 0 1280 720` |+| **页面边距** | 左右 40px,上 10px,下 60px |+| **内容安全区** | x: 40-1240, y: 90-660 |++---++## 三、配色方案++### 主色系++| 角色 | 色值 | 备注 |+| -------------- | ----------- | -------------------------------- |+| **深蓝主色** | `#1E3A5F` | 封面、章节页背景、标题 |+| **深蓝暗色** | `#0F1C2E` | 渐变终点 |+| **内容背景** | `#F8FAFC` | 内容页主背景 |+| **卡片白** | `#FFFFFF` | 卡片背景 |+| **紫色强调** | `#6366F1` | 章节编号、装饰圆、强调元素 |+| **青色强调** | `#22D3EE` | 辅助装饰圆 |++### 文字色系++| 角色 | 色值 | 用途 |+| -------------- | ----------- | ---------------------- |+| **白色文字** | `#FFFFFF` | 深色背景上的主要文字 |+| **主文字** | `#333333` | 卡片内正文 |+| **标题深蓝** | `#1E3A5F` | 亮色背景标题 |+| **辅助文字** | `#94A3B8` | 副标题、描述 |+| **次要文字** | `#64748B` | 页脚、章节标识 |++### 中性色++| 角色 | 色值 | 用途 |+| -------------- | ----------- | ---------------------- |+| **边框灰** | `#E2E8F0` | 分割线、卡片边框 |+| **浅灰背景** | `#CBD5E1` | 占位符文字 |++---++## 四、排版体系++### 字体方案++**字体栈**: `"Microsoft YaHei", "微软雅黑", Arial, sans-serif`++### 字号层级++| 层级 | 用途 | 字号 | 字重 |+| ---- | ---------------- | ---- | ------- |+| H1 | 封面主标题 | 48px | Bold |+| H2 | 页面标题 | 24px | Bold |+| H3 | 章节标题 | 48px | Bold |+| H4 | 卡片标题 | 20px | Bold |+| P | 正文内容 | 16px | Regular |+| High | 强调数据 | 36px | Bold |+| Sub | 辅助说明 | 14px | Regular |+| XS | 页码、版权 | 12px | Regular |++---++## 五、页面结构++### 通用布局++| 区域 | 位置/高度 | 内容说明 |+| ---------- | ------------- | -------------------------------------- |+| **页眉** | y=0, h=70px | 白色背景 + 底部分隔线 + 页面标题 |+| **内容区** | y=90, h=550px | 主要内容区域(白色卡片) |+| **页脚** | y=660, h=60px | 白色背景 + 章节标识 + 页码 |++### 装饰设计++- **装饰圆**: 低透明度渐变圆形,紫色和青色+- **左侧标识竖条**: 深蓝色 (`#1E3A5F`),宽度 4-6px+- **分隔线**: 浅灰色 (`#E2E8F0`),宽度 1px++---++## 六、页面类型++### 1. 封面页 (01_cover.svg)++- 深色渐变背景 (`#1E3A5F` → `#0F1C2E`)+- 右上角装饰圆(紫色、青色,低透明度)+- 左侧装饰白线+- 主标题 + 副标题+- 底部半透明信息区(日期、作者)++### 2. 目录页 (02_toc.svg)++- 浅色背景+- 白色页眉 + 深蓝标题+- 卡片式目录项布局+- 双竖线分隔符 `||` 设计+- 不同颜色左侧装饰条区分章节+- 装饰圆点缀++### 3. 章节页 (02_chapter.svg)++- 深色纯色背景 (`#1E3A5F`)+- 装饰圆(紫色、青色,低透明度)+- 大号半透明背景编号+- 居中章节标题+- 分隔线 + 章节描述++### 4. 内容页 (03_content.svg)++- 浅灰背景 (`#F8FAFC`)+- 白色页眉 + 底部分隔线+- 白色内容卡片(圆角 8px)+- 白色页脚 + 顶部分隔线+- 左侧深蓝竖条章节标识++### 5. 结束页 (04_ending.svg)++- 深色渐变背景+- 装饰圆+- 居中感谢语+- 分隔线 + 口号+- 联系信息+- 底部版权++---++## 七、布局模式++| 模式 | 适用场景 |+| ------------------ | -------------------------- |+| **单栏居中** | 封面、结语 |+| **卡片式双列** | 目录页 |+| **左右分栏 (5:5)** | 对比展示 |+| **左右分栏 (4:6)** | 图文混排 |+| **网格卡片** | 项目列表 |+| **表格** | 数据汇总 |++---++## 八、间距规范++| 元素 | 数值 |+| ------------ | ------ |+| 卡片间距 | 20px |+| 内容块间距 | 24px |+| 卡片内边距 | 20px |+| 卡片圆角 | 8px |+| 图标与文字 | 12px |++---++## 九、SVG 技术约束++### 必须遵守++1. viewBox: `0 0 1280 720`+2. 背景使用 `<rect>` 元素+3. 文本换行使用 `<tspan>`(禁止 `<foreignObject>`)+4. 透明度使用 `fill-opacity` / `stroke-opacity`,禁止 `rgba()`+5. 禁止使用:`clipPath`、`mask`、`filter`、`<style>`、`class`、`foreignObject`+6. 禁止使用:`textPath`、`animate*`、`script`、`marker`/`marker-end`+7. 箭头使用 `<polygon>` 三角形替代 `<marker>`+8. 渐变使用 `<defs>` 定义 `<linearGradient>`++### PPT 兼容性规则++- 禁止 `<g opacity="...">`(组透明度),每个子元素单独设置+- 图片透明度使用遮罩层替代+- 仅使用内联样式,禁止外部 CSS 和 `@font-face`++---++## 十、占位符规范++模板使用 `{{PLACEHOLDER}}` 格式的占位符,常用占位符:++| 占位符 | 说明 |+| ------------------ | ------------------ |+| `{{TITLE}}` | 主标题 |+| `{{SUBTITLE}}` | 副标题 |+| `{{AUTHOR}}` | 作者 |+| `{{DATE}}` | 日期 |+| `{{PAGE_TITLE}}` | 页面标题 |+| `{{CHAPTER_NUM}}` | 章节编号 |+| `{{CHAPTER_TITLE}}`| 章节标题 |+| `{{CHAPTER_DESC}}` | 章节描述 |+| `{{SECTION_NAME}}` | 章节名称(页脚) |+| `{{PAGE_NUM}}` | 页码 |+| `{{CONTACT_INFO}}` | 联系信息 |+| `{{COPYRIGHT}}` | 版权信息 |+| `{{LOGO}}` | Logo文字 |++---++## 十一、使用说明++1. 复制模板到项目目录+2. 根据内容需求选择合适的页面模板+3. 使用占位符标记需要替换的内容+4. 通过 Executor 角色生成最终 SVGdiff --git a/templates/layouts/google_style/01_cover.svg b/templates/layouts/google_style/01_cover.svgnew file mode 100644index 00000000..c8e7bde6--- /dev/null+++ b/templates/layouts/google_style/01_cover.svg@@ -0,0 +1,79 @@+<?xml version="1.0" encoding="UTF-8"?>+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1280 720">+ <!-- 模板: 封面页 - Google 风格 -->++ <defs>+ <!-- 背景渐变 -->+ <linearGradient id="bgGradient" x1="0%" y1="0%" x2="100%" y2="100%">+ <stop offset="0%" style="stop-color:#E8F0FE;stop-opacity:1" />+ <stop offset="50%" style="stop-color:#FFFFFF;stop-opacity:1" />+ <stop offset="100%" style="stop-color:#E8F5E9;stop-opacity:1" />+ </linearGradient>++ <!-- 标题渐变 -->+ <linearGradient id="titleGradient" x1="0%" y1="0%" x2="100%" y2="0%">+ <stop offset="0%" style="stop-color:#1A73E8;stop-opacity:1" />+ <stop offset="100%" style="stop-color:#0D47A1;stop-opacity:1" />+ </linearGradient>+ </defs>++ <!-- 背景 -->+ <rect width="1280" height="720" fill="url(#bgGradient)" />++ <!-- 装饰圆形 - 增加视觉层次 -->+ <circle cx="150" cy="150" r="120" fill="#4285F4" fill-opacity="0.08" />+ <circle cx="1130" cy="570" r="150" fill="#34A853" fill-opacity="0.08" />+ <rect x="900" y="80" width="180" height="180" rx="20" fill="#FBBC04" fill-opacity="0.06" transform="rotate(15 990 170)" />++ <!-- 左侧四色竖条 -->+ <rect x="0" y="0" width="10" height="180" fill="#4285F4" />+ <rect x="0" y="180" width="10" height="180" fill="#EA4335" />+ <rect x="0" y="360" width="10" height="180" fill="#FBBC04" />+ <rect x="0" y="540" width="10" height="180" fill="#34A853" />++ <!-- 中央内容卡片 -->+ <rect x="280" y="180" width="720" height="360" rx="24" fill="#FFFFFF" stroke="#E8EAED" stroke-width="1" />++ <!-- 主标题 -->+ <text x="640" y="280" font-family="system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif" font-size="52" font-weight="700" fill="url(#titleGradient)" text-anchor="middle">+ {{TITLE}}+ </text>++ <!-- 副标题 -->+ <text x="640" y="335" font-family="system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif" font-size="22" font-weight="500" fill="#5F6368" text-anchor="middle">+ {{SUBTITLE}}+ </text>++ <!-- 四色分隔线 -->+ <line x1="380" y1="380" x2="530" y2="380" stroke="#4285F4" stroke-width="3" stroke-linecap="round" />+ <line x1="550" y1="380" x2="620" y2="380" stroke="#EA4335" stroke-width="3" stroke-linecap="round" />+ <line x1="640" y1="380" x2="710" y2="380" stroke="#FBBC04" stroke-width="3" stroke-linecap="round" />+ <line x1="730" y1="380" x2="900" y2="380" stroke="#34A853" stroke-width="3" stroke-linecap="round" />++ <!-- 演讲者姓名 -->+ <text x="640" y="440" font-family="system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif" font-size="32" font-weight="700" fill="#1A237E" text-anchor="middle">+ {{SPEAKER_NAME}}+ </text>++ <!-- 演讲者职位 -->+ <text x="640" y="478" font-family="system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif" font-size="20" font-weight="400" fill="#5F6368" text-anchor="middle">+ {{SPEAKER_TITLE}}+ </text>++ <!-- 日期 -->+ <g transform="translate(640, 510)">+ <circle cx="0" cy="0" r="3" fill="#4285F4" />+ <text x="0" y="25" font-family="system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif" font-size="18" font-weight="500" fill="#5F6368" text-anchor="middle">+ {{DATE}}+ </text>+ </g>++ <!-- 底部四色圆点装饰 -->+ <circle cx="520" cy="630" r="12" fill="#4285F4" fill-opacity="0.9" />+ <circle cx="570" cy="630" r="10" fill="#EA4335" fill-opacity="0.9" />+ <circle cx="610" cy="630" r="14" fill="#FBBC04" fill-opacity="0.9" />+ <circle cx="660" cy="630" r="10" fill="#34A853" fill-opacity="0.9" />+ <circle cx="700" cy="630" r="12" fill="#4285F4" fill-opacity="0.9" />+ <circle cx="750" cy="630" r="10" fill="#EA4335" fill-opacity="0.9" />++</svg>diff --git a/templates/layouts/google_style/02_chapter.svg b/templates/layouts/google_style/02_chapter.svgnew file mode 100644index 00000000..1d9c21ca--- /dev/null+++ b/templates/layouts/google_style/02_chapter.svg@@ -0,0 +1,62 @@+<?xml version="1.0" encoding="UTF-8"?>+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1280 720">+ <!-- 模板: 章节页 - Google 风格 -->++ <defs>+ <!-- 深色背景渐变 -->+ <linearGradient id="bgDarkGradient" x1="0%" y1="0%" x2="100%" y2="100%">+ <stop offset="0%" style="stop-color:#1A237E;stop-opacity:1" />+ <stop offset="100%" style="stop-color:#0D47A1;stop-opacity:1" />+ </linearGradient>++ <!-- 章节编号渐变 -->+ <linearGradient id="numGradient" x1="0%" y1="0%" x2="100%" y2="100%">+ <stop offset="0%" style="stop-color:#4285F4;stop-opacity:1" />+ <stop offset="100%" style="stop-color:#1A73E8;stop-opacity:1" />+ </linearGradient>+ </defs>++ <!-- 深色渐变背景 -->+ <rect width="1280" height="720" fill="url(#bgDarkGradient)" />++ <!-- 装饰圆形 - 增加视觉层次 -->+ <circle cx="1100" cy="150" r="200" fill="#FFFFFF" fill-opacity="0.03" />+ <circle cx="1150" cy="600" r="250" fill="#FFFFFF" fill-opacity="0.02" />+ <circle cx="100" cy="650" r="150" fill="#FFFFFF" fill-opacity="0.02" />++ <!-- 左侧四色竖条装饰 -->+ <rect x="60" y="200" width="8" height="80" fill="#4285F4" />+ <rect x="60" y="290" width="8" height="80" fill="#EA4335" />+ <rect x="60" y="380" width="8" height="80" fill="#FBBC04" />+ <rect x="60" y="470" width="8" height="80" fill="#34A853" />++ <!-- 大号章节编号 -->+ <text x="120" y="380" font-family="system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif" font-size="180" font-weight="700" fill="url(#numGradient)" fill-opacity="0.9">+ {{CHAPTER_NUM}}+ </text>++ <!-- 章节标题 -->+ <text x="120" y="500" font-family="system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif" font-size="48" font-weight="700" fill="#FFFFFF">+ {{CHAPTER_TITLE}}+ </text>++ <!-- 英文副标题 -->+ <text x="120" y="560" font-family="system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif" font-size="24" font-weight="400" fill="#FFFFFF" fill-opacity="0.7">+ {{CHAPTER_TITLE_EN}}+ </text>++ <!-- 底部四色圆点装饰 -->+ <g transform="translate(640, 680)">+ <circle cx="-60" cy="0" r="6" fill="#4285F4" />+ <circle cx="-30" cy="0" r="6" fill="#EA4335" />+ <circle cx="0" cy="0" r="6" fill="#FBBC04" />+ <circle cx="30" cy="0" r="6" fill="#34A853" />+ <circle cx="60" cy="0" r="6" fill="#4285F4" />+ </g>++ <!-- 右下角装饰线 -->+ <line x1="1000" y1="650" x2="1100" y2="650" stroke="#4285F4" stroke-width="3" stroke-linecap="round" stroke-opacity="0.6" />+ <line x1="1110" y1="650" x2="1160" y2="650" stroke="#EA4335" stroke-width="3" stroke-linecap="round" stroke-opacity="0.6" />+ <line x1="1170" y1="650" x2="1220" y2="650" stroke="#34A853" stroke-width="3" stroke-linecap="round" stroke-opacity="0.6" />++</svg>diff --git a/templates/layouts/google_style/02_toc.svg b/templates/layouts/google_style/02_toc.svgnew file mode 100644index 00000000..006af844--- /dev/null+++ b/templates/layouts/google_style/02_toc.svg@@ -0,0 +1,89 @@+<?xml version="1.0" encoding="UTF-8"?>+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1280 720">+ <!-- 模板: 目录页 - Google 风格 -->++ <defs>+ <!-- 顶部四色渐变条 -->+ <linearGradient id="topGradient" x1="0%" y1="0%" x2="100%" y2="0%">+ <stop offset="0%" style="stop-color:#4285F4;stop-opacity:1" />+ <stop offset="33%" style="stop-color:#EA4335;stop-opacity:1" />+ <stop offset="66%" style="stop-color:#FBBC04;stop-opacity:1" />+ <stop offset="100%" style="stop-color:#34A853;stop-opacity:1" />+ </linearGradient>+ </defs>++ <!-- 白色背景 -->+ <rect width="1280" height="720" fill="#FFFFFF" />++ <!-- 顶部四色渐变条 -->+ <rect x="0" y="0" width="1280" height="6" fill="url(#topGradient)" />++ <!-- 页面标题 -->+ <text x="60" y="85" font-family="system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif" font-size="46" font-weight="700" fill="#1A237E">+ Contents+ </text>++ <!-- 蓝色标题下划线 -->+ <rect x="60" y="100" width="120" height="4" rx="2" fill="#4285F4" />++ <!-- 章节列表区域 -->+ <g transform="translate(60, 160)">+ <!-- 章节 1 -->+ <g transform="translate(0, 0)">+ <circle cx="20" cy="30" r="16" fill="#4285F4" />+ <text x="20" y="36" font-family="system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif" font-size="18" font-weight="700" fill="#FFFFFF" text-anchor="middle">01</text>+ <text x="55" y="38" font-family="system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif" font-size="24" font-weight="600" fill="#1A237E">{{TOC_ITEM_1}}</text>+ </g>++ <!-- 章节 2 -->+ <g transform="translate(0, 80)">+ <circle cx="20" cy="30" r="16" fill="#EA4335" />+ <text x="20" y="36" font-family="system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif" font-size="18" font-weight="700" fill="#FFFFFF" text-anchor="middle">02</text>+ <text x="55" y="38" font-family="system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif" font-size="24" font-weight="600" fill="#1A237E">{{TOC_ITEM_2}}</text>+ </g>++ <!-- 章节 3 -->+ <g transform="translate(0, 160)">+ <circle cx="20" cy="30" r="16" fill="#FBBC04" />+ <text x="20" y="36" font-family="system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif" font-size="18" font-weight="700" fill="#1A237E" text-anchor="middle">03</text>+ <text x="55" y="38" font-family="system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif" font-size="24" font-weight="600" fill="#1A237E">{{TOC_ITEM_3}}</text>+ </g>++ <!-- 章节 4 -->+ <g transform="translate(0, 240)">+ <circle cx="20" cy="30" r="16" fill="#34A853" />+ <text x="20" y="36" font-family="system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif" font-size="18" font-weight="700" fill="#FFFFFF" text-anchor="middle">04</text>+ <text x="55" y="38" font-family="system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif" font-size="24" font-weight="600" fill="#1A237E">{{TOC_ITEM_4}}</text>+ </g>++ <!-- 章节 5 (可选) -->+ <g transform="translate(0, 320)">+ <circle cx="20" cy="30" r="16" fill="#4285F4" />+ <text x="20" y="36" font-family="system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif" font-size="18" font-weight="700" fill="#FFFFFF" text-anchor="middle">05</text>+ <text x="55" y="38" font-family="system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif" font-size="24" font-weight="600" fill="#1A237E">{{TOC_ITEM_5}}</text>+ </g>+ </g>++ <!-- 右侧装饰区域 - 可用于放置统计数据或装饰图形 -->+ <g transform="translate(750, 180)">+ <!-- 装饰圆形 -->+ <circle cx="200" cy="150" r="180" fill="#4285F4" fill-opacity="0.05" />+ <circle cx="220" cy="180" r="120" fill="#34A853" fill-opacity="0.05" />+ <circle cx="180" cy="220" r="80" fill="#FBBC04" fill-opacity="0.08" />++ <!-- 可选:右侧统计信息 -->+ <rect x="60" y="300" width="400" height="150" rx="12" fill="#F8F9FA" />+ <text x="260" y="350" font-family="system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif" font-size="16" font-weight="500" fill="#5F6368" text-anchor="middle">{{STATS_AREA}}</text>+ <text x="260" y="400" font-family="system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif" font-size="14" font-weight="400" fill="#9AA0A6" text-anchor="middle">(可选统计区域)</text>+ </g>++ <!-- 底部四色圆点装饰 -->+ <g transform="translate(640, 680)">+ <circle cx="-60" cy="0" r="6" fill="#4285F4" />+ <circle cx="-30" cy="0" r="6" fill="#EA4335" />+ <circle cx="0" cy="0" r="6" fill="#FBBC04" />+ <circle cx="30" cy="0" r="6" fill="#34A853" />+ <circle cx="60" cy="0" r="6" fill="#4285F4" />+ </g>++</svg>diff --git a/templates/layouts/google_style/03_content.svg b/templates/layouts/google_style/03_content.svgnew file mode 100644index 00000000..72d2f592--- /dev/null+++ b/templates/layouts/google_style/03_content.svg@@ -0,0 +1,72 @@+<?xml version="1.0" encoding="UTF-8"?>+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1280 720">+ <!-- 模板: 内容页 - Google 风格 -->++ <defs>+ <!-- 顶部四色渐变条 -->+ <linearGradient id="topGradient" x1="0%" y1="0%" x2="100%" y2="0%">+ <stop offset="0%" style="stop-color:#4285F4;stop-opacity:1" />+ <stop offset="33%" style="stop-color:#EA4335;stop-opacity:1" />+ <stop offset="66%" style="stop-color:#FBBC04;stop-opacity:1" />+ <stop offset="100%" style="stop-color:#34A853;stop-opacity:1" />+ </linearGradient>+ </defs>++ <!-- 白色背景 -->+ <rect width="1280" height="720" fill="#FFFFFF" />++ <!-- 顶部四色渐变条 -->+ <rect x="0" y="0" width="1280" height="6" fill="url(#topGradient)" />++ <!-- 页面标题 -->+ <text x="60" y="85" font-family="system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif" font-size="46" font-weight="700" fill="#1A237E">+ {{PAGE_TITLE}}+ </text>++ <!-- 蓝色标题下划线 -->+ <rect x="60" y="100" width="120" height="4" rx="2" fill="#4285F4" />++ <!-- 内容区域 - 灵活布局占位 -->+ <!--+ 可使用的布局模式:+ - KPI 网格 (2×2 或 2×3)+ - 左文右图 / 左图右文+ - 三栏卡片+ - 四象限+ - 上下分区+ - Dashboard 风格+ - 列表 + 说明+ -->+ <rect x="60" y="130" width="1160" height="520" fill="none" stroke="#E8EAED" stroke-width="2" stroke-dasharray="8,8" />+ <text x="640" y="380" text-anchor="middle" fill="#9AA0A6" font-size="18" font-family="system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif">+ {{CONTENT_AREA}}+ </text>+ <text x="640" y="420" text-anchor="middle" fill="#9AA0A6" font-size="14" font-family="system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif">+ (由 Executor 根据实际内容自由布局)+ </text>++ <!-- 常用设计元素参考 -->+ <!--+ KPI 卡片: <rect rx="16" stroke="#4285F4" stroke-width="3" fill="#FFFFFF"/>+ 浅灰背景块: <rect rx="12" fill="#F8F9FA"/>+ 品牌色圆点: <circle r="12" fill="#4285F4"/>+ 分隔线: <line stroke="#E8EAED" stroke-width="1"/>+ 数据数字: font-size="56" font-weight="700" fill="#4285F4"+ 数据标签: font-size="16" font-weight="500" fill="#5F6368"+ -->++ <!-- 底部四色圆点装饰 -->+ <g transform="translate(640, 680)">+ <circle cx="-60" cy="0" r="6" fill="#4285F4" />+ <circle cx="-30" cy="0" r="6" fill="#EA4335" />+ <circle cx="0" cy="0" r="6" fill="#FBBC04" />+ <circle cx="30" cy="0" r="6" fill="#34A853" />+ <circle cx="60" cy="0" r="6" fill="#4285F4" />+ </g>++ <!-- 页码(可选) -->+ <text x="1220" y="695" text-anchor="end" font-family="system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif" font-size="14" fill="#9AA0A6">+ {{PAGE_NUM}}+ </text>++</svg>diff --git a/templates/layouts/google_style/04_ending.svg b/templates/layouts/google_style/04_ending.svgnew file mode 100644index 00000000..56a44c62--- /dev/null+++ b/templates/layouts/google_style/04_ending.svg@@ -0,0 +1,97 @@+<?xml version="1.0" encoding="UTF-8"?>+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1280 720">+ <!-- 模板: 结束页 - Google 风格 -->++ <defs>+ <!-- 背景渐变 -->+ <linearGradient id="bgGradient" x1="0%" y1="0%" x2="100%" y2="100%">+ <stop offset="0%" style="stop-color:#FFFFFF;stop-opacity:1" />+ <stop offset="50%" style="stop-color:#F8F9FA;stop-opacity:1" />+ <stop offset="100%" style="stop-color:#E8F5E9;stop-opacity:0.5" />+ </linearGradient>++ <!-- 标题渐变 -->+ <linearGradient id="textGradient" x1="0%" y1="0%" x2="100%" y2="0%">+ <stop offset="0%" style="stop-color:#1A73E8;stop-opacity:1" />+ <stop offset="100%" style="stop-color:#0D47A1;stop-opacity:1" />+ </linearGradient>+ </defs>++ <!-- 渐变背景 -->+ <rect width="1280" height="720" fill="url(#bgGradient)" />++ <!-- 装饰圆形 -->+ <circle cx="100" cy="100" r="60" fill="#4285F4" fill-opacity="0.12" />+ <circle cx="1180" cy="100" r="45" fill="#EA4335" fill-opacity="0.12" />+ <circle cx="100" cy="620" r="50" fill="#FBBC04" fill-opacity="0.12" />+ <circle cx="1180" cy="620" r="55" fill="#34A853" fill-opacity="0.12" />++ <!-- 中央内容卡片 -->+ <rect x="240" y="140" width="800" height="440" rx="24" fill="#FFFFFF" stroke="#E8EAED" stroke-width="1" />++ <!-- Thank You 标题 -->+ <text x="640" y="240" font-family="system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif" font-size="64" font-weight="700" fill="url(#textGradient)" text-anchor="middle">+ Thank You!+ </text>++ <!-- 副标题 -->+ <text x="640" y="290" font-family="system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif" font-size="20" font-weight="400" fill="#5F6368" text-anchor="middle">+ {{ENDING_SUBTITLE}}+ </text>++ <!-- 四色分隔线 -->+ <g transform="translate(640, 320)">+ <line x1="-120" y1="0" x2="-40" y2="0" stroke="#4285F4" stroke-width="4" stroke-linecap="round" />+ <line x1="-30" y1="0" x2="30" y2="0" stroke="#EA4335" stroke-width="4" stroke-linecap="round" />+ <line x1="40" y1="0" x2="120" y2="0" stroke="#34A853" stroke-width="4" stroke-linecap="round" />+ </g>++ <!-- 感谢列表 -->+ <g transform="translate(300, 370)">+ <!-- 感谢项 1 -->+ <circle cx="20" cy="0" r="10" fill="#4285F4" />+ <text x="45" y="5" font-family="system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif" font-size="18" font-weight="600" fill="#1A237E">+ {{THANKS_PERSON_1}}+ </text>+ <text x="45" y="28" font-family="system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif" font-size="15" font-weight="400" fill="#5F6368">+ {{THANKS_REASON_1}}+ </text>+ </g>++ <g transform="translate(300, 450)">+ <!-- 感谢项 2 -->+ <circle cx="20" cy="0" r="10" fill="#34A853" />+ <text x="45" y="5" font-family="system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif" font-size="18" font-weight="600" fill="#1A237E">+ {{THANKS_PERSON_2}}+ </text>+ <text x="45" y="28" font-family="system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif" font-size="15" font-weight="400" fill="#5F6368">+ {{THANKS_REASON_2}}+ </text>+ </g>++ <g transform="translate(300, 530)">+ <!-- 感谢项 3 -->+ <circle cx="20" cy="0" r="10" fill="#FBBC04" />+ <text x="45" y="5" font-family="system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif" font-size="18" font-weight="600" fill="#1A237E">+ {{THANKS_PERSON_3}}+ </text>+ <text x="45" y="28" font-family="system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif" font-size="15" font-weight="400" fill="#5F6368">+ {{THANKS_REASON_3}}+ </text>+ </g>++ <!-- 结语 -->+ <text x="640" y="650" font-family="system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif" font-size="18" font-weight="500" fill="#5F6368" text-anchor="middle">+ {{CLOSING_MESSAGE}}+ </text>++ <!-- 底部四色圆点装饰 -->+ <g transform="translate(640, 690)">+ <circle cx="-60" cy="0" r="6" fill="#4285F4" />+ <circle cx="-30" cy="0" r="6" fill="#EA4335" />+ <circle cx="0" cy="0" r="6" fill="#FBBC04" />+ <circle cx="30" cy="0" r="6" fill="#34A853" />+ <circle cx="60" cy="0" r="6" fill="#4285F4" />+ </g>++</svg>diff --git a/templates/layouts/google_style/design_spec.md b/templates/layouts/google_style/design_spec.mdnew file mode 100644index 00000000..f70679d4--- /dev/null+++ b/templates/layouts/google_style/design_spec.md@@ -0,0 +1,299 @@+# Google 风格模板 (Google Style) - 设计规范++> 适用于科技公司年度报告、工作汇报、技术分享、数据展示等场景。++---++## 一、模板概述++| 属性 | 描述 |+| -------------- | ---------------------------------------------------------- |+| **模板名称** | google_style(谷歌风格模板) |+| **适用场景** | 年度工作汇报、技术分享、项目成果展示、数据驱动型演示 |+| **设计调性** | 专业、现代、简洁克制、数据驱动、充足留白 |+| **主题模式** | 亮色主题(白色/浅灰背景 + Google 品牌色强调) |++---++## 二、画布规范++| 属性 | 值 |+| -------------- | ----------------------------- |+| **格式** | 标准 16:9 |+| **尺寸** | 1280 × 720 px |+| **viewBox** | `0 0 1280 720` |+| **页面边距** | 左右 60px,上 50px,下 50px |+| **内容安全区** | x: 60-1220, y: 50-670 |++---++## 三、配色方案++### Google 品牌四色++| 角色 | 色值 | 备注 |+| ---------------- | ----------- | ------------------------------------ |+| **Google Blue** | `#4285F4` | 主要标题、关键数据、主按钮 |+| **Google Red** | `#EA4335` | 重要强调、警示信息 |+| **Google Yellow**| `#FBBC04` | 辅助图标、次要强调 |+| **Google Green** | `#34A853` | 成功指标、正向数据 |++### 专业配色++| 角色 | 色值 | 用途 |+| -------------- | ----------- | ------------------------------------ |+| **深蓝色** | `#1A237E` | 标题、核心文本、深色强调 |+| **深蓝渐变起** | `#1A73E8` | 渐变标题起点 |+| **深蓝渐变止** | `#0D47A1` | 渐变标题终点 |+| **主背景白** | `#FFFFFF` | 页面主背景 |+| **浅灰背景** | `#F8F9FA` | 卡片内背景、辅助区域 |+| **边框浅灰** | `#E8EAED` | 分割线、边框、网格线 |++### 文字色系++| 角色 | 色值 | 用途 |+| -------------- | ----------- | ------------------------------------ |+| **主文字** | `#1A237E` | 标题、重点文字 |+| **正文文字** | `#5F6368` | 正文、说明文字 |+| **辅助文字** | `#9AA0A6` | 注释、页码、提示 |+| **白色文字** | `#FFFFFF` | 深色背景上的文字 |++### 图表配色(按顺序使用)++| 序号 | 色值 | 备注 |+| ---- | ----------- | -------------- |+| 1 | `#4285F4` | Google Blue |+| 2 | `#34A853` | Google Green |+| 3 | `#FBBC04` | Google Yellow |+| 4 | `#EA4335` | Google Red |++---++## 四、排版体系++### 字体方案++**字体栈**: `system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif`++> 使用系统 UI 字体栈确保跨平台一致性和最佳渲染效果。++### 字号层级++| 层级 | 用途 | 字号 | 字重 |+| ------ | -------------------- | ------ | ----------- |+| H1 | 封面主标题 | 52px | 700 (Bold) |+| H2 | 页面大标题 | 46px | 700 (Bold) |+| H3 | 模块标题/章节标题 | 28px | 600 |+| H4 | 卡片标题/小标题 | 24px | 600 |+| P | 正文内容 | 20px | 400 |+| Data | 大号数据数字 | 56px | 700 (Bold) |+| Label | 数据标签/说明 | 16px | 500 |+| Sub | 辅助说明/页码 | 14px | 400 |++---++## 五、页面结构++### 通用布局++| 区域 | 位置/高度 | 内容说明 |+| -------------- | --------------- | -------------------------------------- |+| **顶部装饰条** | y=0, h=6px | 四色渐变横条,贯穿整页 |+| **标题区域** | y=50, h=60px | 页面标题 + 标题下划线 |+| **内容区** | y=130, h=500px | 主要内容区域 |+| **页脚** | y=660, h=60px | 四色圆点装饰 + 可选页码 |++### 特色设计元素++#### 1. 四色渐变顶部条+```+linearGradient: #4285F4 → #EA4335 → #FBBC04 → #34A853+height: 6px, width: 100%+```++#### 2. 标题下划线(四色分段)+```+Blue: 150px → Red: 70px → Yellow: 70px → Green: 170px+stroke-width: 4px, y: 标题下方20px+```++#### 3. KPI 数据卡片+```+尺寸: 280×140px+圆角: 16px+边框: 3px, 使用对应品牌色+阴影: 微阴影增加层次感+```++#### 4. 四色圆点装饰+```+用于页脚或分隔+radius: 6-14px (变化)+间距: 30-50px+```++#### 5. 左侧四色竖条+```+封面页专用+width: 10px, 分4段, 各180px高+颜色顺序: Blue → Red → Yellow → Green+```++---++## 六、页面类型++### 1. 封面页 (01_cover.svg)++- 浅色渐变背景(白色到淡蓝/淡绿)+- 左侧四色竖条装饰+- 中央圆角白色内容卡片(带微阴影)+- 渐变主标题 + 副标题+- 四色分段分隔线+- 演讲者信息(姓名、职位、日期)+- 底部四色圆点装饰++### 2. 目录页 (02_toc.svg)++- 白色背景 + 顶部四色渐变条+- 页面标题 + 蓝色下划线+- 章节列表(左侧品牌色圆点 + 编号 + 标题)+- 可选:右侧装饰图形或数据统计++### 3. 章节页 (02_chapter.svg)++- 深色渐变背景(深蓝到更深蓝)+- 大号章节编号(渐变色或白色)+- 章节标题(白色,大字号)+- 英文副标题(白色半透明)+- 四色装饰元素++### 4. 内容页 (03_content.svg)++- 白色背景+- 顶部四色渐变条+- 页面标题 + 蓝色下划线+- 灵活内容区域(支持多种布局)+- 底部四色圆点装饰++### 5. 结束页 (04_ending.svg)++- 浅色渐变背景+- 中央圆角白色内容卡片+- 渐变 "Thank You!" 标题+- 四色分隔线+- 感谢列表(品牌色圆点 + 人员/事项)+- 结语 + 底部四色圆点++---++## 七、布局模式++| 模式 | 适用场景 |+| ---------------------- | ---------------------------------- |+| **居中卡片式** | 封面页、结束页、重要观点 |+| **左文右图** | 文字描述 + 图表/KPI区 |+| **KPI 网格 (2×2/2×3)** | 数据概览、关键指标展示 |+| **三栏卡片** | 项目列表、功能介绍 |+| **四象限** | 分类展示、SWOT分析 |+| **上下分区** | 两个相关主题并列展示 |+| **时间轴** | 发展历程、规划展示 |+| **Dashboard 风格** | 多指标数据看板 |++---++## 八、间距规范++| 元素 | 数值 |+| ------------------ | -------- |+| 页面边距 | 60px |+| 标题与内容间距 | 30-40px |+| 模块间距 | 60-80px |+| 卡片间距 | 20-24px |+| 卡片内边距 | 20px |+| 卡片圆角 | 16px |+| 图标与文字间距 | 15px |++---++## 九、SVG 技术约束++### 必须遵守++1. viewBox: `0 0 1280 720`+2. 背景使用 `<rect>` 元素+3. 文本换行使用 `<tspan>`(禁止 `<foreignObject>`)+4. 透明度使用 `fill-opacity` / `stroke-opacity`+5. 渐变使用 `<linearGradient>` 定义在 `<defs>` 中++### 禁用元素++禁止使用以下 SVG 特性(PPT 不兼容):++- `clipPath`、`mask`+- `<style>` 标签、`class` 属性+- `foreignObject`+- `textPath`+- `animate*` 动画元素+- `script`+- `marker`、`marker-end`+- `rgba()` 颜色格式(使用 HEX + opacity 替代)++### 阴影实现++由于 `filter` 可能影响 PPT 兼容性,建议:+- 使用微妙的边框颜色变化模拟阴影+- 或接受 `filter` 在 PPT 中会被忽略++---++## 十、占位符规范++模板使用 `{{PLACEHOLDER}}` 格式的占位符:++| 占位符 | 说明 |+| -------------------- | ------------------------ |+| `{{TITLE}}` | 主标题 |+| `{{SUBTITLE}}` | 副标题/部门信息 |+| `{{SPEAKER_NAME}}` | 演讲者姓名 |+| `{{SPEAKER_TITLE}}` | 演讲者职位 |+| `{{DATE}}` | 日期 |+| `{{PAGE_TITLE}}` | 页面标题 |+| `{{CHAPTER_NUM}}` | 章节编号 |+| `{{CHAPTER_TITLE}}` | 章节标题 |+| `{{CHAPTER_TITLE_EN}}`| 章节英文副标题 |+| `{{PAGE_NUM}}` | 页码 |+| `{{CONTENT_AREA}}` | 内容区域占位 |++---++## 十一、示例配色应用++### KPI 卡片配色规则++| 卡片顺序 | 边框色 | 数字色 | 适用内容 |+| -------- | ---------- | ---------- | -------------- |+| 第1个 | `#4285F4` | `#4285F4` | 核心项目/主指标|+| 第2个 | `#34A853` | `#34A853` | 成本/效率指标 |+| 第3个 | `#EA4335` | `#EA4335` | 可靠性/风险 |+| 第4个 | `#FBBC04` | `#FBBC04` | 性能/增长 |++### 列表项配色++- 使用品牌四色循环作为列表圆点颜色+- 保持文字为统一的深蓝色 `#1A237E`++---++## 十二、使用说明++1. 复制模板到项目目录 `templates/`+2. 根据内容需求选择合适的页面类型+3. 使用占位符标记需要替换的内容+4. 配色严格遵循 Google 品牌四色规范+5. 保持充足留白,突出核心信息+6. 数据驱动:用大号数字 + 小号标签展示 KPI++---++_本规范基于 Google Material Design 理念,适配 PPT Master 项目要求_diff --git a/templates/layouts/government_blue/01_cover.svg b/templates/layouts/government_blue/01_cover.svgnew file mode 100644index 00000000..75067241--- /dev/null+++ b/templates/layouts/government_blue/01_cover.svg@@ -0,0 +1,93 @@+<?xml version="1.0" encoding="UTF-8"?>+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1280 720">+ <!-- 模板: 封面页 - 政府蓝风格 (优化版) -->++ <defs>+ <!-- 深蓝渐变背景 -->+ <linearGradient id="coverBgGrad" x1="0%" y1="0%" x2="100%" y2="100%">+ <stop offset="0%" style="stop-color:#0050B3;stop-opacity:1" />+ <stop offset="40%" style="stop-color:#003D8F;stop-opacity:1" />+ <stop offset="100%" style="stop-color:#001F4D;stop-opacity:1" />+ </linearGradient>+ <!-- 顶部装饰渐变 -->+ <linearGradient id="topGrad" x1="0%" y1="0%" x2="100%" y2="0%">+ <stop offset="0%" style="stop-color:#00B4D8;stop-opacity:1" />+ <stop offset="100%" style="stop-color:#0050B3;stop-opacity:1" />+ </linearGradient>+ <!-- 左侧装饰渐变 -->+ <linearGradient id="sideGrad" x1="0%" y1="0%" x2="0%" y2="100%">+ <stop offset="0%" style="stop-color:#00B4D8;stop-opacity:1" />+ <stop offset="50%" style="stop-color:#0077B6;stop-opacity:1" />+ <stop offset="100%" style="stop-color:#00B4D8;stop-opacity:1" />+ </linearGradient>+ <!-- 网格图案 -->+ <pattern id="gridPattern" width="60" height="60" patternUnits="userSpaceOnUse">+ <path d="M 60 0 L 0 0 0 60" fill="none" stroke="#FFFFFF" stroke-width="0.5" stroke-opacity="0.08"/>+ </pattern>+ </defs>++ <!-- 背景 -->+ <rect x="0" y="0" width="1280" height="720" fill="url(#coverBgGrad)" />++ <!-- 科技网格纹理 -->+ <rect x="0" y="0" width="1280" height="720" fill="url(#gridPattern)" />++ <!-- 装饰元素 - 几何图案 -->+ <circle cx="1150" cy="120" r="200" fill="#FFFFFF" fill-opacity="0.03" />+ <circle cx="1200" cy="80" r="120" fill="#00B4D8" fill-opacity="0.05" />+ <circle cx="150" cy="600" r="250" fill="#FFFFFF" fill-opacity="0.02" />+ <circle cx="80" cy="650" r="150" fill="#00B4D8" fill-opacity="0.04" />++ <!-- 对角线装饰 -->+ <line x1="900" y1="0" x2="1280" y2="380" stroke="#00B4D8" stroke-width="1" stroke-opacity="0.15" />+ <line x1="950" y1="0" x2="1280" y2="330" stroke="#00B4D8" stroke-width="1" stroke-opacity="0.1" />++ <!-- 顶部渐变装饰线 -->+ <rect x="0" y="0" width="1280" height="6" fill="url(#topGrad)" />++ <!-- 左侧装饰竖条 -->+ <rect x="0" y="180" width="8" height="360" fill="url(#sideGrad)" />+ <rect x="16" y="220" width="3" height="280" fill="#00B4D8" fill-opacity="0.5" />++ <!-- 主标题区域背景 -->+ <rect x="0" y="260" width="900" height="180" fill="#000000" fill-opacity="0.25" />+ <rect x="0" y="260" width="8" height="180" fill="#00B4D8" />++ <!-- 主标题 -->+ <text x="60" y="340" font-family="Microsoft YaHei, SimHei, sans-serif" font-size="52" font-weight="bold" fill="#FFFFFF">+ {{TITLE}}+ </text>++ <!-- 副标题 -->+ <text x="60" y="400" font-family="Microsoft YaHei, Arial, sans-serif" font-size="26" fill="#90E0EF">+ {{SUBTITLE}}+ </text>++ <!-- 分隔线 -->+ <line x1="60" y1="480" x2="400" y2="480" stroke="#00B4D8" stroke-width="2" stroke-opacity="0.8" />++ <!-- 汇报人信息 -->+ <text x="60" y="530" font-family="Microsoft YaHei, sans-serif" font-size="20" fill="#FFFFFF" fill-opacity="0.9">+ 汇报人:{{PRESENTER}}+ </text>++ <!-- 单位名称 -->+ <text x="60" y="570" font-family="Microsoft YaHei, sans-serif" font-size="18" fill="#FFFFFF" fill-opacity="0.7">+ {{ORGANIZATION}}+ </text>++ <!-- 日期 -->+ <text x="60" y="610" font-family="Arial, Microsoft YaHei, sans-serif" font-size="16" fill="#90E0EF" fill-opacity="0.8">+ {{DATE}}+ </text>++ <!-- 底部装饰区域 -->+ <rect x="0" y="700" width="1280" height="20" fill="#003366" />+ <rect x="0" y="700" width="400" height="20" fill="url(#topGrad)" fill-opacity="0.6" />++ <!-- 右下角Logo区域 -->+ <text x="1200" y="680" text-anchor="end" font-family="Arial, sans-serif" font-size="14" fill="#FFFFFF" fill-opacity="0.5">+ {{ORG_SHORT}}+ </text>++</svg>diff --git a/templates/layouts/government_blue/02_chapter.svg b/templates/layouts/government_blue/02_chapter.svgnew file mode 100644index 00000000..e2693e19--- /dev/null+++ b/templates/layouts/government_blue/02_chapter.svg@@ -0,0 +1,82 @@+<?xml version="1.0" encoding="UTF-8"?>+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1280 720">+ <!-- 模板: 章节页 - 政府蓝风格 (优化版) -->++ <defs>+ <!-- 深蓝背景渐变 -->+ <linearGradient id="gradChapter" x1="0%" y1="0%" x2="100%" y2="100%">+ <stop offset="0%" style="stop-color:#0050B3;stop-opacity:1" />+ <stop offset="50%" style="stop-color:#003D8F;stop-opacity:1" />+ <stop offset="100%" style="stop-color:#001F4D;stop-opacity:1" />+ </linearGradient>+ <!-- 顶部装饰渐变 -->+ <linearGradient id="topGrad" x1="0%" y1="0%" x2="100%" y2="0%">+ <stop offset="0%" style="stop-color:#00B4D8;stop-opacity:1" />+ <stop offset="100%" style="stop-color:#0050B3;stop-opacity:1" />+ </linearGradient>+ <!-- 径向光晕 -->+ <radialGradient id="glowGrad" cx="80%" cy="20%" r="60%">+ <stop offset="0%" style="stop-color:#00B4D8;stop-opacity:0.15" />+ <stop offset="100%" style="stop-color:#00B4D8;stop-opacity:0" />+ </radialGradient>+ </defs>++ <!-- 背景 -->+ <rect width="1280" height="720" fill="url(#gradChapter)"/>++ <!-- 径向光晕装饰 -->+ <rect width="1280" height="720" fill="url(#glowGrad)"/>++ <!-- 装饰元素 - 几何图案 -->+ <circle cx="1200" cy="100" r="300" fill="#FFFFFF" fill-opacity="0.02"/>+ <circle cx="100" cy="620" r="250" fill="#FFFFFF" fill-opacity="0.02"/>+ <circle cx="1100" cy="150" r="150" fill="#00B4D8" fill-opacity="0.03"/>++ <!-- 顶部渐变装饰线 -->+ <rect x="0" y="0" width="1280" height="6" fill="url(#topGrad)"/>++ <!-- 网格装饰线 -->+ <line x1="0" y1="240" x2="1280" y2="240" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.05"/>+ <line x1="0" y1="480" x2="1280" y2="480" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.05"/>+ <line x1="426" y1="0" x2="426" y2="720" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.05"/>+ <line x1="854" y1="0" x2="854" y2="720" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.05"/>++ <!-- 左侧装饰竖条 -->+ <rect x="80" y="260" width="6" height="200" fill="#00B4D8"/>+ <rect x="92" y="280" width="3" height="160" fill="#90E0EF" fill-opacity="0.6"/>++ <!-- 章节内容 -->+ <g transform="translate(640, 360)">+ <!-- 章节编号 - 大号半透明背景 -->+ <text x="0" y="-50" text-anchor="middle" font-family="Arial" font-size="180" font-weight="bold" fill="#FFFFFF" fill-opacity="0.05">+ 0{{CHAPTER_NUM}}+ </text>++ <!-- 章节编号描边效果 -->+ <text x="0" y="-50" text-anchor="middle" font-family="Arial" font-size="180" font-weight="bold" fill="none" stroke="#00B4D8" stroke-width="1" stroke-opacity="0.2">+ 0{{CHAPTER_NUM}}+ </text>++ <!-- 装饰方块 -->+ <rect x="-60" y="10" width="120" height="6" fill="#00B4D8"/>+ <rect x="-40" y="22" width="80" height="3" fill="#90E0EF" fill-opacity="0.6"/>++ <!-- 章节标题 -->+ <text x="0" y="80" text-anchor="middle" font-family="Microsoft YaHei, SimHei, sans-serif" font-size="48" font-weight="bold" fill="#FFFFFF">+ {{CHAPTER_TITLE}}+ </text>++ <!-- 英文标题/副标题 -->+ <text x="0" y="130" text-anchor="middle" font-family="Arial" font-size="22" fill="#90E0EF" letter-spacing="4">+ {{CHAPTER_SUBTITLE}}+ </text>+ </g>++ <!-- 底部装饰 -->+ <rect x="0" y="680" width="1280" height="40" fill="#001F4D" fill-opacity="0.5"/>+ <rect x="0" y="680" width="400" height="40" fill="url(#topGrad)" fill-opacity="0.3"/>+ <text x="640" y="707" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="14" fill="#FFFFFF" fill-opacity="0.6">+ {{ORGANIZATION}}+ </text>++</svg>diff --git a/templates/layouts/government_blue/02_toc.svg b/templates/layouts/government_blue/02_toc.svgnew file mode 100644index 00000000..97270187--- /dev/null+++ b/templates/layouts/government_blue/02_toc.svg@@ -0,0 +1,107 @@+<?xml version="1.0" encoding="UTF-8"?>+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1280 720">+ <!-- 模板: 目录页 - 政府蓝风格 (优化版) -->++ <defs>+ <!-- 顶部装饰渐变 -->+ <linearGradient id="topGrad" x1="0%" y1="0%" x2="100%" y2="0%">+ <stop offset="0%" style="stop-color:#00B4D8;stop-opacity:1" />+ <stop offset="100%" style="stop-color:#0050B3;stop-opacity:1" />+ </linearGradient>+ <!-- 左侧装饰渐变 -->+ <linearGradient id="sideGrad" x1="0%" y1="0%" x2="0%" y2="100%">+ <stop offset="0%" style="stop-color:#00B4D8;stop-opacity:1" />+ <stop offset="100%" style="stop-color:#0050B3;stop-opacity:1" />+ </linearGradient>+ <!-- 背景渐变 -->+ <linearGradient id="bgGrad" x1="0%" y1="0%" x2="100%" y2="100%">+ <stop offset="0%" style="stop-color:#F0F9FF;stop-opacity:1" />+ <stop offset="100%" style="stop-color:#E6F4FF;stop-opacity:1" />+ </linearGradient>+ </defs>++ <!-- 背景 -->+ <rect x="0" y="0" width="1280" height="720" fill="url(#bgGrad)"/>++ <!-- 顶部渐变装饰线 -->+ <rect x="0" y="0" width="1280" height="6" fill="url(#topGrad)"/>++ <!-- 左侧装饰区域 -->+ <path d="M 0 0 L 280 0 L 200 720 L 0 720 Z" fill="#0050B3" fill-opacity="0.03"/>+ <rect x="0" y="0" width="8" height="720" fill="url(#sideGrad)"/>+ <rect x="16" y="100" width="3" height="520" fill="#00B4D8" fill-opacity="0.4"/>++ <!-- 页面标题 -->+ <text x="80" y="85" font-family="Microsoft YaHei, SimHei, sans-serif" font-size="38" font-weight="bold" fill="#0050B3">+ 目 录+ </text>+ <text x="80" y="115" font-family="Arial, sans-serif" font-size="18" fill="#00B4D8" letter-spacing="3">+ CONTENTS+ </text>++ <!-- 装饰分隔线 -->+ <line x1="80" y1="135" x2="220" y2="135" stroke="#0050B3" stroke-width="3"/>+ <line x1="220" y1="135" x2="280" y2="135" stroke="#00B4D8" stroke-width="2"/>++ <!-- 目录项容器 -->+ <!-- 目录项 1 -->+ <g>+ <circle cx="350" cy="200" r="32" fill="#FFFFFF" stroke="#0050B3" stroke-width="3"/>+ <text x="350" y="210" text-anchor="middle" font-family="Arial, sans-serif" font-size="24" font-weight="bold" fill="#0050B3">01</text>+ <line x1="390" y1="200" x2="1180" y2="200" stroke="#E4E7EB" stroke-width="2"/>+ <circle cx="390" cy="200" r="5" fill="#00B4D8"/>+ <text x="420" y="195" font-family="Microsoft YaHei, sans-serif" font-size="22" font-weight="bold" fill="#1A1A1A">{{CHAPTER_01_TITLE}}</text>+ <text x="420" y="220" font-family="Microsoft YaHei, sans-serif" font-size="14" fill="#718096">{{CHAPTER_01_DESC}}</text>+ </g>++ <!-- 目录项 2 -->+ <g>+ <circle cx="350" cy="300" r="32" fill="#FFFFFF" stroke="#0050B3" stroke-width="3"/>+ <text x="350" y="310" text-anchor="middle" font-family="Arial, sans-serif" font-size="24" font-weight="bold" fill="#0050B3">02</text>+ <line x1="390" y1="300" x2="1180" y2="300" stroke="#E4E7EB" stroke-width="2"/>+ <circle cx="390" cy="300" r="5" fill="#00B4D8"/>+ <text x="420" y="295" font-family="Microsoft YaHei, sans-serif" font-size="22" font-weight="bold" fill="#1A1A1A">{{CHAPTER_02_TITLE}}</text>+ <text x="420" y="320" font-family="Microsoft YaHei, sans-serif" font-size="14" fill="#718096">{{CHAPTER_02_DESC}}</text>+ </g>++ <!-- 目录项 3 -->+ <g>+ <circle cx="350" cy="400" r="32" fill="#FFFFFF" stroke="#0050B3" stroke-width="3"/>+ <text x="350" y="410" text-anchor="middle" font-family="Arial, sans-serif" font-size="24" font-weight="bold" fill="#0050B3">03</text>+ <line x1="390" y1="400" x2="1180" y2="400" stroke="#E4E7EB" stroke-width="2"/>+ <circle cx="390" cy="400" r="5" fill="#00B4D8"/>+ <text x="420" y="395" font-family="Microsoft YaHei, sans-serif" font-size="22" font-weight="bold" fill="#1A1A1A">{{CHAPTER_03_TITLE}}</text>+ <text x="420" y="420" font-family="Microsoft YaHei, sans-serif" font-size="14" fill="#718096">{{CHAPTER_03_DESC}}</text>+ </g>++ <!-- 目录项 4 -->+ <g>+ <circle cx="350" cy="500" r="32" fill="#FFFFFF" stroke="#0050B3" stroke-width="3"/>+ <text x="350" y="510" text-anchor="middle" font-family="Arial, sans-serif" font-size="24" font-weight="bold" fill="#0050B3">04</text>+ <line x1="390" y1="500" x2="1180" y2="500" stroke="#E4E7EB" stroke-width="2"/>+ <circle cx="390" cy="500" r="5" fill="#00B4D8"/>+ <text x="420" y="495" font-family="Microsoft YaHei, sans-serif" font-size="22" font-weight="bold" fill="#1A1A1A">{{CHAPTER_04_TITLE}}</text>+ <text x="420" y="520" font-family="Microsoft YaHei, sans-serif" font-size="14" fill="#718096">{{CHAPTER_04_DESC}}</text>+ </g>++ <!-- 目录项 5 -->+ <g>+ <circle cx="350" cy="600" r="32" fill="#FFFFFF" stroke="#0050B3" stroke-width="3"/>+ <text x="350" y="610" text-anchor="middle" font-family="Arial, sans-serif" font-size="24" font-weight="bold" fill="#0050B3">05</text>+ <line x1="390" y1="600" x2="1180" y2="600" stroke="#E4E7EB" stroke-width="2"/>+ <circle cx="390" cy="600" r="5" fill="#00B4D8"/>+ <text x="420" y="595" font-family="Microsoft YaHei, sans-serif" font-size="22" font-weight="bold" fill="#1A1A1A">{{CHAPTER_05_TITLE}}</text>+ <text x="420" y="620" font-family="Microsoft YaHei, sans-serif" font-size="14" fill="#718096">{{CHAPTER_05_DESC}}</text>+ </g>++ <!-- 右侧装饰 -->+ <circle cx="1200" cy="120" r="80" fill="#0050B3" fill-opacity="0.03"/>+ <circle cx="1220" cy="600" r="100" fill="#00B4D8" fill-opacity="0.03"/>++ <!-- 底部装饰线 -->+ <rect x="0" y="716" width="1280" height="4" fill="#0050B3"/>++ <!-- 页码 -->+ <text x="640" y="695" text-anchor="middle" font-family="Arial, sans-serif" font-size="14" fill="#718096">{{PAGE_NUM}}</text>++</svg>diff --git a/templates/layouts/government_blue/03_content.svg b/templates/layouts/government_blue/03_content.svgnew file mode 100644index 00000000..5b96e06e--- /dev/null+++ b/templates/layouts/government_blue/03_content.svg@@ -0,0 +1,78 @@+<?xml version="1.0" encoding="UTF-8"?>+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 1280 720">+ <!-- 模板: 内容页 - 政府蓝风格 (优化版) -->++ <defs>+ <!-- 顶部装饰渐变 -->+ <linearGradient id="topGrad" x1="0%" y1="0%" x2="100%" y2="0%">+ <stop offset="0%" style="stop-color:#00B4D8;stop-opacity:1" />+ <stop offset="100%" style="stop-color:#0050B3;stop-opacity:1" />+ </linearGradient>+ <!-- 序号块渐变 -->+ <linearGradient id="numGrad" x1="0%" y1="0%" x2="100%" y2="100%">+ <stop offset="0%" style="stop-color:#0077B6;stop-opacity:1" />+ <stop offset="100%" style="stop-color:#0050B3;stop-opacity:1" />+ </linearGradient>+ <!-- 背景渐变 -->+ <linearGradient id="bgGrad" x1="0%" y1="0%" x2="0%" y2="100%">+ <stop offset="0%" style="stop-color:#F8FCFF;stop-opacity:1" />+ <stop offset="100%" style="stop-color:#FFFFFF;stop-opacity:1" />+ </linearGradient>+ </defs>++ <!-- 背景 -->+ <rect x="0" y="0" width="1280" height="720" fill="url(#bgGrad)" />++ <!-- 顶部渐变装饰线 -->+ <rect x="0" y="0" width="1280" height="6" fill="url(#topGrad)" />++ <!-- 页眉导航栏 -->+ <!-- 章节序号块 -->+ <rect x="60" y="30" width="50" height="50" rx="6" fill="url(#numGrad)" />+ <text x="85" y="65" text-anchor="middle" font-family="Arial, sans-serif" font-size="24" font-weight="bold" fill="#FFFFFF">{{CHAPTER_NUM}}</text>++ <!-- 页面标题 -->+ <text x="130" y="65" font-family="Microsoft YaHei, SimHei, sans-serif" font-size="28" font-weight="bold" fill="#1A1A1A">{{PAGE_TITLE}}</text>++ <!-- 右上角单位标识 -->+ <text x="1220" y="50" text-anchor="end" font-family="Microsoft YaHei, sans-serif" font-size="12" fill="#718096">{{ORG_SHORT}}</text>+ <rect x="1100" y="58" width="120" height="2" fill="url(#topGrad)" fill-opacity="0.4"/>++ <!-- 分隔线 -->+ <line x1="60" y1="95" x2="1220" y2="95" stroke="#E4E7EB" stroke-width="1" stroke-dasharray="6,4"/>++ <!-- 内容区域 - 灵活布局,由 Executor 根据实际内容自由设计 -->+ <!-- 可使用的布局模式:+ - 单栏文字列表+ - 左右双栏对比+ - 卡片式分块(如 2×2 四宫格)+ - 图文混排(左图右文、上图下文、通栏图)+ - 表格+ - 时间轴+ - 流程图+ -->+ <rect x="60" y="110" width="1160" height="550" fill="none" stroke="#E4E7EB" stroke-width="2" stroke-dasharray="8,8" />+ <text x="640" y="365" text-anchor="middle" fill="#CBD5E1" font-size="18" font-family="Microsoft YaHei, sans-serif">+ {{CONTENT_AREA}}+ </text>+ <text x="640" y="400" text-anchor="middle" fill="#CBD5E1" font-size="14" font-family="Microsoft YaHei, sans-serif">+ (由 Executor 根据实际内容自由布局)+ </text>++ <!-- 常用设计元素参考 -->+ <!-- 色块容器: <rect fill="#F0F9FF" rx="8"/> -->+ <!-- 强调色块: <rect fill="#0050B3"/> -->+ <!-- 辅助色块: <rect fill="#00B4D8"/> -->+ <!-- 圆点列表: <circle r="5" fill="#0050B3"/> -->+ <!-- 分隔线: <line stroke="#E4E7EB" stroke-width="1"/> -->++ <!-- 底部装饰线 -->+ <rect x="0" y="716" width="1280" height="4" fill="#0050B3" />++ <!-- 页码 -->+ <text x="640" y="695" text-anchor="middle" font-family="Arial, sans-serif" font-size="14" fill="#718096">{{PAGE_NUM}}</text>++ <!-- 底部单位名称 -->+ <text x="1220" y="695" text-anchor="end" font-family="Microsoft YaHei, sans-serif" font-size="12" fill="#718096" fill-opacity="0.6">{{ORG_SHORT}}</text>++</svg>diff --git a/templates/layouts/government_blue/04_ending.svg b/templates/layouts/government_blue/04_ending.svgnew file mode 100644index 00000000..8ac235cd--- /dev/null+++ b/templates/layouts/government_blue/04_ending.svg@@ -0,0 +1,81 @@+<?xml version="1.0" encoding="UTF-8"?>+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1280 720">+ <!-- 模板: 结束页 - 政府蓝风格 (优化版) -->++ <defs>+ <!-- 深蓝背景渐变 -->+ <linearGradient id="endBgGrad" x1="0%" y1="0%" x2="100%" y2="100%">+ <stop offset="0%" style="stop-color:#0050B3;stop-opacity:1" />+ <stop offset="50%" style="stop-color:#003D8F;stop-opacity:1" />+ <stop offset="100%" style="stop-color:#001F4D;stop-opacity:1" />+ </linearGradient>+ <!-- 顶部装饰渐变 -->+ <linearGradient id="topGrad" x1="0%" y1="0%" x2="100%" y2="0%">+ <stop offset="0%" style="stop-color:#00B4D8;stop-opacity:1" />+ <stop offset="100%" style="stop-color:#0050B3;stop-opacity:1" />+ </linearGradient>+ </defs>++ <!-- 背景 -->+ <rect x="0" y="0" width="1280" height="720" fill="url(#endBgGrad)" />++ <!-- 装饰元素 - 几何图案 -->+ <circle cx="100" cy="120" r="200" fill="#FFFFFF" fill-opacity="0.02" />+ <circle cx="1180" cy="600" r="250" fill="#FFFFFF" fill-opacity="0.02" />+ <circle cx="640" cy="360" r="350" fill="#00B4D8" fill-opacity="0.02" />++ <!-- 顶部渐变装饰线 -->+ <rect x="0" y="0" width="1280" height="6" fill="url(#topGrad)" />++ <!-- 网格装饰 -->+ <line x1="0" y1="180" x2="1280" y2="180" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.03" />+ <line x1="0" y1="360" x2="1280" y2="360" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.03" />+ <line x1="0" y1="540" x2="1280" y2="540" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.03" />+ <line x1="320" y1="0" x2="320" y2="720" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.03" />+ <line x1="640" y1="0" x2="640" y2="720" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.03" />+ <line x1="960" y1="0" x2="960" y2="720" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.03" />++ <!-- 波浪曲线装饰 -->+ <path d="M 0 580 Q 320 620 640 580 T 1280 580" fill="none" stroke="#00B4D8" stroke-width="2" stroke-opacity="0.2"/>+ <path d="M 0 600 Q 320 640 640 600 T 1280 600" fill="none" stroke="#00B4D8" stroke-width="1" stroke-opacity="0.15"/>+ <path d="M 0 620 Q 320 660 640 620 T 1280 620" fill="none" stroke="#90E0EF" stroke-width="1" stroke-opacity="0.1"/>++ <!-- 左侧装饰竖条 -->+ <rect x="100" y="240" width="6" height="240" fill="#00B4D8" fill-opacity="0.6" />+ <rect x="112" y="260" width="3" height="200" fill="#90E0EF" fill-opacity="0.4" />++ <!-- 感谢语(中文) -->+ <text x="640" y="300" text-anchor="middle" font-family="Microsoft YaHei, SimHei, sans-serif" font-size="64" font-weight="bold" fill="#FFFFFF" letter-spacing="8">+ {{THANK_YOU}}+ </text>++ <!-- 感谢语(英文) -->+ <text x="640" y="360" text-anchor="middle" font-family="Arial, sans-serif" font-size="26" fill="#90E0EF" letter-spacing="6">+ {{THANK_YOU_EN}}+ </text>++ <!-- 分隔线 -->+ <line x1="490" y1="400" x2="600" y2="400" stroke="#00B4D8" stroke-width="2"/>+ <circle cx="640" cy="400" r="4" fill="#00B4D8"/>+ <line x1="680" y1="400" x2="790" y2="400" stroke="#00B4D8" stroke-width="2"/>++ <!-- 欢迎指正 -->+ <text x="640" y="460" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="28" fill="#FFFFFF" fill-opacity="0.9">+ 欢迎批评指正+ </text>++ <!-- 单位信息 -->+ <text x="640" y="520" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="18" fill="#FFFFFF" fill-opacity="0.7">+ {{ORGANIZATION}}+ </text>++ <!-- 联系信息 -->+ <text x="640" y="560" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="14" fill="#90E0EF" fill-opacity="0.8">+ {{CONTACT_INFO}}+ </text>++ <!-- 底部装饰区域 -->+ <rect x="0" y="680" width="1280" height="40" fill="#001F4D" fill-opacity="0.6" />+ <rect x="0" y="680" width="400" height="40" fill="url(#topGrad)" fill-opacity="0.3" />++</svg>diff --git a/templates/layouts/government_blue/design_spec.md b/templates/layouts/government_blue/design_spec.mdnew file mode 100644index 00000000..b502a7c6--- /dev/null+++ b/templates/layouts/government_blue/design_spec.md@@ -0,0 +1,231 @@+# 政府蓝模板 (Government Blue Style) - 设计规范++> 适用于各级政府机构政务汇报、重点项目推介、规划方案汇报、招商引资等场景。++---++## 一、模板概述++| 属性 | 描述 |+| -------------- | ------------------------------------------------------------ |+| **模板名称** | government_blue(政府蓝模板) |+| **适用场景** | 重点项目汇报、十四五规划、工作总结、招商引资、政策解读 |+| **设计调性** | 大气、科技感、现代化、专业政务风格 |+| **主题模式** | 亮色主题(白色背景 + 蓝色渐变装饰) |++---++## 二、画布规范++| 属性 | 值 |+| -------------- | ----------------------------- |+| **格式** | 标准 16:9 |+| **尺寸** | 1280 × 720 px |+| **viewBox** | `0 0 1280 720` |+| **页面边距** | 左右 60px,上 80px,下 40px |+| **内容安全区** | x: 60-1220, y: 80-680 |++---++## 三、配色方案++### 主色系++| 角色 | 色值 | 备注 |+| -------------- | ----------- | ---------------------------------- |+| **主导深蓝** | `#0050B3` | 标题、核心边框、序号块 |+| **科技亮蓝** | `#00B4D8` | 装饰元素、强调色、渐变亮部 |+| **深海蓝** | `#003366` | 章节页背景、渐变暗部 |+| **辅助浅蓝** | `#E6F4FF` | 背景底色、弱化区块 |+| **天际蓝** | `#90E0EF` | 点缀装饰、次级强调 |++### 文字色系++| 角色 | 色值 | 用途 |+| -------------- | ----------- | ---------------------- |+| **主文字** | `#1A1A1A` | 正文、标题 |+| **白色文字** | `#FFFFFF` | 深色色块上的文字 |+| **辅助文字** | `#4A5568` | 置灰章节、辅助说明 |+| **浅色辅助** | `#718096` | 注释、页码、提示 |++### 功能色++| 用途 | 色值 | 说明 |+| -------- | ----------- | -------------- |+| **成功** | `#38A169` | 完成/达标 |+| **警示** | `#E53E3E` | 注意/预警 |+| **信息** | `#3182CE` | 一般说明 |++---++## 四、排版体系++### 字体方案++**字体栈**: `"Microsoft YaHei", "微软雅黑", "SimHei", "Source Han Sans SC", Arial, sans-serif`++### 字号层级++| 层级 | 用途 | 字号 | 字重 |+| ---- | ---------------- | ---- | ------- |+| H1 | 封面主标题 | 52px | Bold |+| H2 | 页面大标题 | 28px | Bold |+| H3 | 模块标题/小标题 | 24px | Bold |+| P | 正文内容 | 18px | Regular |+| High | 强调数据 | 36px | Bold |+| Sub | 辅助说明 | 14px | Regular |++---++## 五、页面结构++### 通用布局++| 区域 | 位置/高度 | 内容说明 |+| ---------- | ------------- | -------------------------------------- |+| **顶部** | y=0, h=6px | 蓝色渐变横条(亮蓝→深蓝),贯穿整页 |+| **标题栏** | y=30, h=50px | 章节序号块 + 标题文字 + 右上角徽标 |+| **内容区** | y=100, h=560px | 主要内容区域 |+| **页脚** | y=680, h=40px | 页码、单位名称、底部装饰线 |++### 导航栏设计++- **顶部装饰线**: 蓝色渐变(`#00B4D8` → `#0050B3`),高度 6px,贯穿整页+- **底部装饰线**: 深蓝色 (`#0050B3`),高度 4px,y=716+- **标题栏** (y=30):+ - 章节序号块: 深蓝色正方形 (50×50px),白色数字居中+ - 标题文字: 距序号块 20px,28px 字号,`#1A1A1A`+ - 右上角徽标: 固定于 x=1107,尺寸 113×50px++---++## 六、页面类型++### 1. 封面页 (01_cover.svg)++- 深蓝渐变背景 + 科技网格纹理+- 左侧亮蓝装饰条+- 主标题 + 副标题(白色)+- 汇报人/单位信息+- 底部日期区域+- 几何装饰圆形++### 2. 目录页 (02_toc.svg)++- 浅蓝渐变背景+- 左侧装饰梯形 + 渐变竖条+- 最多支持5个章节+- 圆形编号 + 连接线设计+- 悬浮卡片效果(使用纯色模拟)++### 3. 章节页 (02_chapter.svg)++- 深蓝色渐变背景+- 径向光晕装饰+- 大号章节编号(半透明 + 描边效果)+- 章节标题 + 英文副标题+- 亮蓝装饰条++### 4. 内容页 (03_content.svg)++- 浅色渐变背景+- 渐变序号块+- 虚线分隔线+- 灵活内容区域+- 支持多种布局模式++### 5. 结束页 (04_ending.svg)++- 深蓝渐变背景+- 波浪曲线装饰+- 居中感谢语(中英文)+- 亮蓝分隔线+- 联系信息++---++## 七、布局模式++| 模式 | 适用场景 |+| ------------------ | -------------------------- |+| **单栏居中** | 封面、结语、重要观点 |+| **左右分栏 (5:5)** | 对比展示 |+| **左右分栏 (4:6)** | 图文混排 |+| **上下分栏** | 流程说明、政策列表 |+| **三栏卡片** | 项目列表、数据展示 |+| **矩阵网格** | 分类展示 |+| **表格** | 数据对比、规范列表 |++---++## 八、间距规范++| 元素 | 数值 |+| ------------ | ------ |+| 卡片间距 | 24px |+| 内容块间距 | 32px |+| 卡片内边距 | 24px |+| 卡片圆角 | 8px |+| 图标与文字 | 12px |++---++## 九、SVG 技术约束++### 必须遵守++1. viewBox: `0 0 1280 720`+2. 背景使用 `<rect>` 元素+3. 文本换行使用 `<tspan>`(禁止 `<foreignObject>`)+4. 透明度使用 `fill-opacity` / `stroke-opacity`,禁止 `rgba()`+5. 禁止使用:`clipPath`、`mask`、`filter`、`<style>`、`class`、`foreignObject`+6. 禁止使用:`textPath`、`animate*`、`script`、`marker`/`marker-end`+7. 箭头使用 `<polygon>` 三角形替代 `<marker>`++### PPT 兼容性规则++- 禁止 `<g opacity="...">`(组透明度),每个子元素单独设置+- 图片透明度使用遮罩层替代+- 仅使用内联样式,禁止外部 CSS 和 `@font-face`++---++## 十、占位符规范++模板使用 `{{PLACEHOLDER}}` 格式的占位符,常用占位符:++| 占位符 | 说明 |+| ------------------ | ------------------ |+| `{{TITLE}}` | 主标题 |+| `{{SUBTITLE}}` | 副标题 |+| `{{AUTHOR}}` | 单位名称(中文) |+| `{{AUTHOR_EN}}` | 单位名称(英文) |+| `{{PRESENTER}}` | 汇报人 |+| `{{PAGE_TITLE}}` | 页面标题 |+| `{{CHAPTER_NUM}}` | 章节编号 |+| `{{PAGE_NUM}}` | 页码 |+| `{{DATE}}` | 日期 |+| `{{ORGANIZATION}}` | 单位全称 |+| `{{ORG_SHORT}}` | 单位简称 |+| `{{CONTACT_INFO}}` | 联系信息 |+| `{{LOGO_HEADER}}` | 页眉徽标文件名 |++---++## 十一、使用说明++1. 复制模板到项目目录+2. 替换 images 目录中的徽标文件(如有)+3. 根据内容需求选择合适的页面模板+4. 使用占位符标记需要替换的内容+5. 通过 Executor 角色生成最终 SVG++---++## 十二、设计亮点++- **科技感渐变**: 亮蓝到深蓝的渐变体现现代科技风格+- **几何装饰元素**: 圆形、网格增添科技氛围+- **波浪曲线**: 结束页动感装饰+- **悬浮卡片效果**: 目录页现代化设计+- **清晰视觉层级**: 确保信息传达效率diff --git a/templates/layouts/government_red/01_cover.svg b/templates/layouts/government_red/01_cover.svgnew file mode 100644index 00000000..a593c454--- /dev/null+++ b/templates/layouts/government_red/01_cover.svg@@ -0,0 +1,73 @@+<?xml version="1.0" encoding="UTF-8"?>+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 1280 720">+ <!-- 模板: 封面页 - 重庆两江新区发改委风格 -->++ <defs>+ <!-- 深蓝渐变背景 -->+ <linearGradient id="coverBgGrad" x1="0%" y1="0%" x2="100%" y2="100%">+ <stop offset="0%" style="stop-color:#003366;stop-opacity:1" />+ <stop offset="50%" style="stop-color:#002244;stop-opacity:1" />+ <stop offset="100%" style="stop-color:#001a33;stop-opacity:1" />+ </linearGradient>+ <!-- 顶部装饰渐变 -->+ <linearGradient id="topDecoGrad" x1="0%" y1="0%" x2="100%" y2="0%">+ <stop offset="0%" style="stop-color:#8B0000;stop-opacity:1" />+ <stop offset="100%" style="stop-color:#DAA520;stop-opacity:1" />+ </linearGradient>+ </defs>++ <!-- 背景 -->+ <rect x="0" y="0" width="1280" height="720" fill="url(#coverBgGrad)" />++ <!-- 装饰元素 - 几何图案 -->+ <circle cx="1200" cy="100" r="300" fill="#FFFFFF" fill-opacity="0.02" />+ <circle cx="80" cy="650" r="200" fill="#FFFFFF" fill-opacity="0.02" />+ <circle cx="640" cy="360" r="450" fill="#FFFFFF" fill-opacity="0.015" />++ <!-- 网格装饰线 -->+ <line x1="0" y1="180" x2="1280" y2="180" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.05" />+ <line x1="0" y1="540" x2="1280" y2="540" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.05" />+ <line x1="320" y1="0" x2="320" y2="720" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.05" />+ <line x1="960" y1="0" x2="960" y2="720" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.05" />++ <!-- 顶部金色装饰线 -->+ <rect x="0" y="0" width="1280" height="6" fill="url(#topDecoGrad)" />++ <!-- 左侧装饰竖条 -->+ <rect x="60" y="200" width="6" height="320" fill="#DAA520" fill-opacity="0.6" />++ <!-- 主标题区域 -->+ <text x="640" y="300" text-anchor="middle" font-family="Microsoft YaHei, SimHei, sans-serif" font-size="52" font-weight="bold" fill="#FFFFFF">+ {{TITLE}}+ </text>++ <!-- 副标题 -->+ <text x="640" y="370" text-anchor="middle" font-family="Microsoft YaHei, Arial, sans-serif" font-size="28" fill="#FFFFFF" fill-opacity="0.85">+ {{SUBTITLE}}+ </text>++ <!-- 分隔线 -->+ <line x1="440" y1="420" x2="840" y2="420" stroke="#DAA520" stroke-width="2" stroke-opacity="0.8" />++ <!-- 单位名称(中文) -->+ <text x="640" y="490" text-anchor="middle" font-family="Microsoft YaHei, Arial, sans-serif" font-size="24" fill="#FFFFFF" fill-opacity="0.9">+ {{AUTHOR}}+ </text>++ <!-- 单位名称(英文) -->+ <text x="640" y="530" text-anchor="middle" font-family="Arial, sans-serif" font-size="16" fill="#FFFFFF" fill-opacity="0.6">+ {{AUTHOR_EN}}+ </text>++ <!-- 日期 -->+ <text x="640" y="620" text-anchor="middle" font-family="Arial, Microsoft YaHei, sans-serif" font-size="18" fill="#FFFFFF" fill-opacity="0.7">+ {{DATE}}+ </text>++ <!-- 底部装饰区域 -->+ <rect x="0" y="690" width="1280" height="30" fill="#8B0000" fill-opacity="0.8" />+ <text x="640" y="712" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="14" fill="#FFFFFF" fill-opacity="0.8">+ {{ORGANIZATION}}+ </text>++</svg>diff --git a/templates/layouts/government_red/02_chapter.svg b/templates/layouts/government_red/02_chapter.svgnew file mode 100644index 00000000..6941357e--- /dev/null+++ b/templates/layouts/government_red/02_chapter.svg@@ -0,0 +1,66 @@+<?xml version="1.0" encoding="UTF-8"?>+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1280 720">+ <!-- 模板: 章节页 - 重庆两江新区发改委风格 -->++ <defs>+ <!-- 深蓝背景渐变 -->+ <linearGradient id="gradChapter" x1="0%" y1="0%" x2="100%" y2="100%">+ <stop offset="0%" style="stop-color:#003366;stop-opacity:1" />+ <stop offset="50%" style="stop-color:#002244;stop-opacity:1" />+ <stop offset="100%" style="stop-color:#001a33;stop-opacity:1" />+ </linearGradient>+ <!-- 顶部装饰渐变 -->+ <linearGradient id="topDecoGrad" x1="0%" y1="0%" x2="100%" y2="0%">+ <stop offset="0%" style="stop-color:#8B0000;stop-opacity:1" />+ <stop offset="100%" style="stop-color:#DAA520;stop-opacity:1" />+ </linearGradient>+ </defs>++ <!-- 背景 -->+ <rect width="1280" height="720" fill="url(#gradChapter)"/>++ <!-- 装饰元素 - 几何图案 -->+ <circle cx="1200" cy="100" r="250" fill="#FFFFFF" fill-opacity="0.02"/>+ <circle cx="80" cy="620" r="300" fill="#FFFFFF" fill-opacity="0.02"/>+ <circle cx="640" cy="360" r="400" fill="#FFFFFF" fill-opacity="0.015"/>++ <!-- 顶部金红渐变装饰线 -->+ <rect x="0" y="0" width="1280" height="6" fill="url(#topDecoGrad)"/>++ <!-- 网格装饰线 -->+ <line x1="0" y1="240" x2="1280" y2="240" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.05"/>+ <line x1="0" y1="480" x2="1280" y2="480" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.05"/>+ <line x1="426" y1="0" x2="426" y2="720" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.05"/>+ <line x1="854" y1="0" x2="854" y2="720" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.05"/>++ <!-- 左侧装饰竖条 -->+ <rect x="100" y="260" width="6" height="200" fill="#DAA520" fill-opacity="0.8"/>++ <!-- 章节内容 -->+ <g transform="translate(640, 360)">+ <!-- 章节编号 - 大号半透明背景 -->+ <text x="0" y="-60" text-anchor="middle" font-family="Arial" font-size="160" font-weight="bold" fill="#FFFFFF" fill-opacity="0.06">+ 0{{CHAPTER_NUM}}+ </text>++ <!-- 装饰方块 -->+ <rect x="-50" y="0" width="100" height="6" fill="#DAA520"/>++ <!-- 章节标题 -->+ <text x="0" y="70" text-anchor="middle" font-family="Microsoft YaHei, SimHei, sans-serif" font-size="48" font-weight="bold" fill="#FFFFFF">+ {{CHAPTER_TITLE}}+ </text>++ <!-- 英文标题/副标题 -->+ <text x="0" y="120" text-anchor="middle" font-family="Arial" font-size="22" fill="#FFFFFF" fill-opacity="0.6" letter-spacing="3">+ {{CHAPTER_SUBTITLE}}+ </text>+ </g>++ <!-- 底部装饰 -->+ <rect x="0" y="680" width="1280" height="40" fill="#8B0000" fill-opacity="0.6"/>+ <text x="640" y="707" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="14" fill="#FFFFFF" fill-opacity="0.8">+ {{ORGANIZATION}}+ </text>++</svg>diff --git a/templates/layouts/government_red/02_toc.svg b/templates/layouts/government_red/02_toc.svgnew file mode 100644index 00000000..31bfaa51--- /dev/null+++ b/templates/layouts/government_red/02_toc.svg@@ -0,0 +1,88 @@+<?xml version="1.0" encoding="UTF-8"?>+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 1280 720">+ <!-- 模板: 目录页 - 重庆两江新区发改委风格 -->++ <defs>+ <!-- 顶部装饰渐变 -->+ <linearGradient id="topGrad" x1="0%" y1="0%" x2="100%" y2="0%">+ <stop offset="0%" style="stop-color:#8B0000;stop-opacity:1" />+ <stop offset="100%" style="stop-color:#003366;stop-opacity:1" />+ </linearGradient>+ </defs>++ <!-- 白色背景 -->+ <rect x="0" y="0" width="1280" height="720" fill="#FFFFFF"/>++ <!-- 顶部渐变装饰线 -->+ <rect x="0" y="0" width="1280" height="6" fill="url(#topGrad)"/>++ <!-- 导航栏区域 -->+ <rect x="60" y="30" width="50" height="50" fill="#8B0000"/>+ <text x="85" y="65" text-anchor="middle" font-family="Arial, sans-serif" font-size="24" font-weight="bold" fill="#FFFFFF">目</text>+ <text x="130" y="65" font-family="Microsoft YaHei, SimHei, sans-serif" font-size="28" font-weight="bold" fill="#1A1A1A">目 录</text>+ <text x="130" y="85" font-family="Arial, sans-serif" font-size="14" fill="#718096">CONTENTS</text>++ <!-- 左侧装饰竖线 -->+ <rect x="280" y="140" width="4" height="480" fill="#8B0000"/>+ <rect x="288" y="140" width="2" height="480" fill="#DAA520" fill-opacity="0.5"/>++ <!-- 目录项 - 第1章 -->+ <g>+ <rect x="310" y="160" width="40" height="40" fill="#8B0000"/>+ <text x="330" y="190" text-anchor="middle" font-family="Arial, sans-serif" font-size="20" font-weight="bold" fill="#FFFFFF">01</text>+ <text x="370" y="185" font-family="Microsoft YaHei, sans-serif" font-size="22" font-weight="bold" fill="#1A1A1A">{{CHAPTER_01_TITLE}}</text>+ <text x="370" y="210" font-family="Microsoft YaHei, sans-serif" font-size="14" fill="#718096">{{CHAPTER_01_DESC}}</text>+ </g>++ <!-- 目录项 - 第2章 -->+ <g>+ <rect x="310" y="250" width="40" height="40" fill="#8B0000"/>+ <text x="330" y="280" text-anchor="middle" font-family="Arial, sans-serif" font-size="20" font-weight="bold" fill="#FFFFFF">02</text>+ <text x="370" y="275" font-family="Microsoft YaHei, sans-serif" font-size="22" font-weight="bold" fill="#1A1A1A">{{CHAPTER_02_TITLE}}</text>+ <text x="370" y="300" font-family="Microsoft YaHei, sans-serif" font-size="14" fill="#718096">{{CHAPTER_02_DESC}}</text>+ </g>++ <!-- 目录项 - 第3章 -->+ <g>+ <rect x="310" y="340" width="40" height="40" fill="#8B0000"/>+ <text x="330" y="370" text-anchor="middle" font-family="Arial, sans-serif" font-size="20" font-weight="bold" fill="#FFFFFF">03</text>+ <text x="370" y="365" font-family="Microsoft YaHei, sans-serif" font-size="22" font-weight="bold" fill="#1A1A1A">{{CHAPTER_03_TITLE}}</text>+ <text x="370" y="390" font-family="Microsoft YaHei, sans-serif" font-size="14" fill="#718096">{{CHAPTER_03_DESC}}</text>+ </g>++ <!-- 目录项 - 第4章 -->+ <g>+ <rect x="310" y="430" width="40" height="40" fill="#8B0000"/>+ <text x="330" y="460" text-anchor="middle" font-family="Arial, sans-serif" font-size="20" font-weight="bold" fill="#FFFFFF">04</text>+ <text x="370" y="455" font-family="Microsoft YaHei, sans-serif" font-size="22" font-weight="bold" fill="#1A1A1A">{{CHAPTER_04_TITLE}}</text>+ <text x="370" y="480" font-family="Microsoft YaHei, sans-serif" font-size="14" fill="#718096">{{CHAPTER_04_DESC}}</text>+ </g>++ <!-- 目录项 - 第5章 -->+ <g>+ <rect x="310" y="520" width="40" height="40" fill="#8B0000"/>+ <text x="330" y="550" text-anchor="middle" font-family="Arial, sans-serif" font-size="20" font-weight="bold" fill="#FFFFFF">05</text>+ <text x="370" y="545" font-family="Microsoft YaHei, sans-serif" font-size="22" font-weight="bold" fill="#1A1A1A">{{CHAPTER_05_TITLE}}</text>+ <text x="370" y="570" font-family="Microsoft YaHei, sans-serif" font-size="14" fill="#718096">{{CHAPTER_05_DESC}}</text>+ </g>++ <!-- 右侧装饰区域 -->+ <rect x="880" y="160" width="320" height="440" fill="#F5F7FA" rx="8"/>+ <rect x="880" y="160" width="6" height="440" fill="#003366"/>++ <!-- 右侧统计数据展示 -->+ <text x="1040" y="280" text-anchor="middle" font-family="Arial, sans-serif" font-size="72" font-weight="bold" fill="#003366" fill-opacity="0.15">{{STAT_NUMBER_1}}</text>+ <text x="1040" y="320" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="16" fill="#4A5568">{{STAT_LABEL_1}}</text>++ <line x1="920" y1="360" x2="1160" y2="360" stroke="#E4E7EB" stroke-width="1"/>++ <text x="1040" y="440" text-anchor="middle" font-family="Arial, sans-serif" font-size="48" font-weight="bold" fill="#8B0000" fill-opacity="0.2">{{STAT_NUMBER_2}}</text>+ <text x="1040" y="480" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="16" fill="#4A5568">{{STAT_LABEL_2}}</text>++ <!-- 底部装饰线 -->+ <rect x="0" y="716" width="1280" height="4" fill="#8B0000"/>++ <!-- 页码 -->+ <text x="640" y="695" text-anchor="middle" font-family="Arial, sans-serif" font-size="14" fill="#718096">{{PAGE_NUM}}</text>++</svg>diff --git a/templates/layouts/government_red/03_content.svg b/templates/layouts/government_red/03_content.svgnew file mode 100644index 00000000..5f09d858--- /dev/null+++ b/templates/layouts/government_red/03_content.svg@@ -0,0 +1,66 @@+<?xml version="1.0" encoding="UTF-8"?>+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 1280 720">+ <!-- 模板: 内容页 - 重庆两江新区发改委风格 -->++ <defs>+ <!-- 顶部装饰渐变 -->+ <linearGradient id="topGrad" x1="0%" y1="0%" x2="100%" y2="0%">+ <stop offset="0%" style="stop-color:#8B0000;stop-opacity:1" />+ <stop offset="100%" style="stop-color:#003366;stop-opacity:1" />+ </linearGradient>+ </defs>++ <!-- 白色背景 -->+ <rect x="0" y="0" width="1280" height="720" fill="#FFFFFF" />++ <!-- 顶部渐变装饰线 -->+ <rect x="0" y="0" width="1280" height="6" fill="url(#topGrad)" />++ <!-- 页眉导航栏 -->+ <!-- 章节序号块 - 政府红正方形 -->+ <rect x="60" y="30" width="50" height="50" fill="#8B0000" />+ <text x="85" y="65" text-anchor="middle" font-family="Arial, sans-serif" font-size="24" font-weight="bold" fill="#FFFFFF">{{CHAPTER_NUM}}</text>++ <!-- 页面标题 -->+ <text x="130" y="65" font-family="Microsoft YaHei, SimHei, sans-serif" font-size="28" font-weight="bold" fill="#1A1A1A">{{PAGE_TITLE}}</text>++ <!-- 右上角单位标识 -->+ <text x="1220" y="55" text-anchor="end" font-family="Microsoft YaHei, sans-serif" font-size="12" fill="#718096">{{ORG_SHORT}}</text>+ <rect x="1107" y="60" width="113" height="2" fill="#8B0000" fill-opacity="0.3"/>++ <!-- 内容区域 - 灵活布局,由 Executor 根据实际内容自由设计 -->+ <!-- 可使用的布局模式:+ - 单栏文字列表+ - 左右双栏对比+ - 卡片式分块(如 2×2 四宫格)+ - 图文混排(左图右文、上图下文、通栏图)+ - 表格+ - 时间轴+ - 流程图+ -->+ <rect x="60" y="100" width="1160" height="560" fill="none" stroke="#E4E7EB" stroke-width="2" stroke-dasharray="8,8" />+ <text x="640" y="360" text-anchor="middle" fill="#CBD5E1" font-size="18" font-family="Microsoft YaHei, sans-serif">+ {{CONTENT_AREA}}+ </text>+ <text x="640" y="395" text-anchor="middle" fill="#CBD5E1" font-size="14" font-family="Microsoft YaHei, sans-serif">+ (由 Executor 根据实际内容自由布局)+ </text>++ <!-- 常用设计元素参考 -->+ <!-- 色块容器: <rect fill="#F5F7FA" rx="8"/> -->+ <!-- 强调色块: <rect fill="#8B0000"/> -->+ <!-- 辅助色块: <rect fill="#003366"/> -->+ <!-- 圆点列表: <circle r="5" fill="#8B0000"/> -->+ <!-- 分隔线: <line stroke="#E4E7EB" stroke-width="1"/> -->+ <!-- 金色点缀: <rect fill="#DAA520"/> -->++ <!-- 底部装饰线 -->+ <rect x="0" y="716" width="1280" height="4" fill="#8B0000" />++ <!-- 页码 -->+ <text x="640" y="695" text-anchor="middle" font-family="Arial, sans-serif" font-size="14" fill="#718096">{{PAGE_NUM}}</text>++ <!-- 底部单位名称 -->+ <text x="1220" y="695" text-anchor="end" font-family="Microsoft YaHei, sans-serif" font-size="12" fill="#718096" fill-opacity="0.6">{{ORG_SHORT}}</text>++</svg>diff --git a/templates/layouts/government_red/04_ending.svg b/templates/layouts/government_red/04_ending.svgnew file mode 100644index 00000000..ee1267e4--- /dev/null+++ b/templates/layouts/government_red/04_ending.svg@@ -0,0 +1,75 @@+<?xml version="1.0" encoding="UTF-8"?>+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 1280 720">+ <!-- 模板: 结束页 - 重庆两江新区发改委风格 -->++ <defs>+ <!-- 深蓝背景渐变 -->+ <linearGradient id="endingBgGrad" x1="0%" y1="0%" x2="100%" y2="100%">+ <stop offset="0%" style="stop-color:#003366;stop-opacity:1" />+ <stop offset="50%" style="stop-color:#002244;stop-opacity:1" />+ <stop offset="100%" style="stop-color:#001a33;stop-opacity:1" />+ </linearGradient>+ <!-- 顶部装饰渐变 -->+ <linearGradient id="topDecoGrad" x1="0%" y1="0%" x2="100%" y2="0%">+ <stop offset="0%" style="stop-color:#8B0000;stop-opacity:1" />+ <stop offset="100%" style="stop-color:#DAA520;stop-opacity:1" />+ </linearGradient>+ </defs>++ <!-- 深蓝色背景 -->+ <rect x="0" y="0" width="1280" height="720" fill="url(#endingBgGrad)" />++ <!-- 装饰元素 - 几何图案(低透明度圆形) -->+ <circle cx="100" cy="100" r="250" fill="#FFFFFF" fill-opacity="0.02" />+ <circle cx="1200" cy="600" r="350" fill="#FFFFFF" fill-opacity="0.02" />+ <circle cx="640" cy="360" r="450" fill="#FFFFFF" fill-opacity="0.015" />++ <!-- 顶部金红渐变装饰线 -->+ <rect x="0" y="0" width="1280" height="6" fill="url(#topDecoGrad)" />++ <!-- 网格装饰 - 营造专业氛围 -->+ <line x1="0" y1="180" x2="1280" y2="180" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.03" />+ <line x1="0" y1="360" x2="1280" y2="360" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.03" />+ <line x1="0" y1="540" x2="1280" y2="540" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.03" />+ <line x1="320" y1="0" x2="320" y2="720" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.03" />+ <line x1="640" y1="0" x2="640" y2="720" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.03" />+ <line x1="960" y1="0" x2="960" y2="720" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.03" />++ <!-- 左侧装饰竖条 -->+ <rect x="100" y="220" width="6" height="280" fill="#DAA520" fill-opacity="0.6" />++ <!-- 感谢语(中文) -->+ <text x="640" y="300" text-anchor="middle" font-family="Microsoft YaHei, SimHei, sans-serif" font-size="64" font-weight="bold" fill="#FFFFFF">+ {{THANK_YOU}}+ </text>++ <!-- 感谢语(英文) -->+ <text x="640" y="360" text-anchor="middle" font-family="Arial, Georgia, serif" font-size="26" fill="#FFFFFF" fill-opacity="0.6" letter-spacing="4">+ {{THANK_YOU_EN}}+ </text>++ <!-- 分隔线 -->+ <line x1="490" y1="400" x2="790" y2="400" stroke="#DAA520" stroke-width="2" stroke-opacity="0.8" />++ <!-- 单位信息(中文) -->+ <text x="640" y="470" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="22" fill="#FFFFFF" fill-opacity="0.9">+ {{AUTHOR}}+ </text>++ <!-- 单位信息(英文) -->+ <text x="640" y="510" text-anchor="middle" font-family="Arial, sans-serif" font-size="16" fill="#FFFFFF" fill-opacity="0.5">+ {{AUTHOR_EN}}+ </text>++ <!-- 联系信息 -->+ <text x="640" y="570" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="14" fill="#FFFFFF" fill-opacity="0.6">+ {{CONTACT_INFO}}+ </text>++ <!-- 底部信息区 -->+ <rect x="0" y="680" width="1280" height="40" fill="#8B0000" fill-opacity="0.8" />+ <text x="640" y="707" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="14" fill="#FFFFFF" fill-opacity="0.9">+ {{TAGLINE}}+ </text>++</svg>diff --git a/templates/layouts/government_red/design_spec.md b/templates/layouts/government_red/design_spec.mdnew file mode 100644index 00000000..79f25514--- /dev/null+++ b/templates/layouts/government_red/design_spec.md@@ -0,0 +1,223 @@+# 政府红模板 (Government Red Style) - 设计规范++> 适用于各级政府机构政务汇报、政策宣讲、工作总结、项目推介等场景。++---++## 一、模板概述++| 属性 | 描述 |+| -------------- | ------------------------------------------------------------ |+| **模板名称** | government_red(政府红模板) |+| **适用场景** | 政务汇报、政策解读、工作总结、项目推介、招商引资 |+| **设计调性** | 权威、庄重、专业、现代化政务风格 |+| **主题模式** | 亮色主题(白色背景 + 政府红/蓝强调色) |++---++## 二、画布规范++| 属性 | 值 |+| -------------- | ----------------------------- |+| **格式** | 标准 16:9 |+| **尺寸** | 1280 × 720 px |+| **viewBox** | `0 0 1280 720` |+| **页面边距** | 左右 60px,上 80px,下 40px |+| **内容安全区** | x: 60-1220, y: 80-680 |++---++## 三、配色方案++### 主色系++| 角色 | 色值 | 备注 |+| -------------- | ----------- | ---------------------------------- |+| **政府红** | `#8B0000` | 主色调,标题栏、强调色块、装饰条 |+| **政府蓝** | `#003366` | 辅助强调色,章节页背景 |+| **背景白** | `#FFFFFF` | 页面主背景 |+| **辅助浅灰** | `#F5F7FA` | 非重点内容背景块 |+| **边框灰** | `#E4E7EB` | 分割线、边框 |+| **金色点缀** | `#DAA520` | 点缀装饰、重要数据高亮 |++### 文字色系++| 角色 | 色值 | 用途 |+| -------------- | ----------- | ---------------------- |+| **主文字** | `#1A1A1A` | 正文、标题 |+| **白色文字** | `#FFFFFF` | 深色色块上的文字 |+| **辅助文字** | `#4A5568` | 置灰章节、辅助说明 |+| **浅色辅助** | `#718096` | 注释、页码、提示 |++### 功能色++| 用途 | 色值 | 说明 |+| -------- | ----------- | -------------- |+| **成功** | `#38A169` | 完成/达标 |+| **警示** | `#E53E3E` | 注意/预警 |+| **信息** | `#3182CE` | 一般说明 |++---++## 四、排版体系++### 字体方案++**字体栈**: `"Microsoft YaHei", "微软雅黑", "SimHei", "Source Han Sans SC", Arial, sans-serif`++### 字号层级++| 层级 | 用途 | 字号 | 字重 |+| ---- | ---------------- | ---- | ------- |+| H1 | 封面主标题 | 48px | Bold |+| H2 | 页面大标题 | 28px | Bold |+| H3 | 模块标题/小标题 | 24px | Bold |+| P | 正文内容 | 18px | Regular |+| High | 强调数据 | 36px | Bold |+| Sub | 辅助说明 | 14px | Regular |++---++## 五、页面结构++### 通用布局++| 区域 | 位置/高度 | 内容说明 |+| ---------- | ------------- | -------------------------------------- |+| **顶部** | y=0, h=6px | 双色渐变横条(红+蓝),贯穿整页 |+| **标题栏** | y=30, h=50px | 章节序号块 + 标题文字 + 右上角徽标 |+| **内容区** | y=100, h=560px | 主要内容区域 |+| **页脚** | y=680, h=40px | 页码、单位名称、底部装饰线 |++### 导航栏设计++- **顶部装饰线**: 双色渐变(`#8B0000` → `#003366`),高度 6px,贯穿整页+- **底部装饰线**: 政府红 (`#8B0000`),高度 4px,y=716+- **标题栏** (y=30):+ - 章节序号块: 政府红正方形 (50×50px),白色数字居中+ - 标题文字: 距序号块 20px,28px 字号,`#1A1A1A`+ - 右上角徽标: 固定于 x=1107,尺寸 113×50px++---++## 六、页面类型++### 1. 封面页 (01_cover.svg)++- 深色渐变背景(政府蓝为主)+- 顶部金色装饰线+- 主标题 + 副标题(居中白色)+- 单位名称:重庆两江新区发展和改革委员会+- 底部日期区域++### 2. 目录页 (02_toc.svg)++- 白色背景 + 左侧红色竖条装饰+- 最多支持5个章节+- 编号采用中国红方块 + 白色数字+- 右侧可选数据展示区++### 3. 章节页 (02_chapter.svg)++- 深蓝色渐变背景+- 大号章节编号(半透明装饰)+- 章节标题 + 英文副标题+- 几何装饰元素++### 4. 内容页 (03_content.svg)++- 白色背景+- 标准导航栏(红色序号块)+- 灵活内容区域+- 支持多种布局模式++### 5. 结束页 (04_ending.svg)++- 深蓝色背景+- 居中感谢语+- 单位全称+- 联系方式/地址信息++---++## 七、布局模式++| 模式 | 适用场景 |+| ------------------ | -------------------------- |+| **单栏居中** | 封面、结语、重要观点 |+| **左右分栏 (5:5)** | 对比展示 |+| **左右分栏 (4:6)** | 图文混排 |+| **上下分栏** | 流程说明、政策列表 |+| **三栏卡片** | 项目列表、数据展示 |+| **矩阵网格** | 分类展示 |+| **表格** | 数据对比、规范列表 |++---++## 八、间距规范++| 元素 | 数值 |+| ------------ | ------ |+| 卡片间距 | 24px |+| 内容块间距 | 32px |+| 卡片内边距 | 24px |+| 卡片圆角 | 8px |+| 图标与文字 | 12px |++---++## 九、SVG 技术约束++### 必须遵守++1. viewBox: `0 0 1280 720`+2. 背景使用 `<rect>` 元素+3. 文本换行使用 `<tspan>`(禁止 `<foreignObject>`)+4. 透明度使用 `fill-opacity` / `stroke-opacity`,禁止 `rgba()`+5. 禁止使用:`clipPath`、`mask`、`filter`、`<style>`、`class`、`foreignObject`+6. 禁止使用:`textPath`、`animate*`、`script`、`marker`/`marker-end`+7. 箭头使用 `<polygon>` 三角形替代 `<marker>`++### PPT 兼容性规则++- 禁止 `<g opacity="...">`(组透明度),每个子元素单独设置+- 图片透明度使用遮罩层替代+- 仅使用内联样式,禁止外部 CSS 和 `@font-face`++---++## 十、占位符规范++模板使用 `{{PLACEHOLDER}}` 格式的占位符,常用占位符:++| 占位符 | 说明 |+| ------------------ | ------------------ |+| `{{TITLE}}` | 主标题 |+| `{{SUBTITLE}}` | 副标题 |+| `{{AUTHOR}}` | 单位名称(中文) |+| `{{AUTHOR_EN}}` | 单位名称(英文) |+| `{{PAGE_TITLE}}` | 页面标题 |+| `{{CHAPTER_NUM}}` | 章节编号 |+| `{{PAGE_NUM}}` | 页码 |+| `{{DATE}}` | 日期 |+| `{{LOGO_HEADER}}` | 页眉徽标文件名 |+| `{{COVER_BG_IMAGE}}`| 封面背景图文件名 |++---++## 十一、使用说明++1. 复制模板到项目目录+2. 替换 images 目录中的徽标文件(如有)+3. 根据内容需求选择合适的页面模板+4. 使用占位符标记需要替换的内容+5. 通过 Executor 角色生成最终 SVG++---++## 十二、设计亮点++- **双色渐变顶部装饰**: 红蓝渐变体现政务风格+- **金色点缀元素**: 增添庄重感+- **几何装饰图案**: 现代化政务风格+- **清晰的视觉层级**: 确保信息传达效率diff --git a/templates/layouts/mckinsey/01_cover.svg b/templates/layouts/mckinsey/01_cover.svgnew file mode 100644index 00000000..f7106b17--- /dev/null+++ b/templates/layouts/mckinsey/01_cover.svg@@ -0,0 +1,84 @@+<?xml version="1.0" encoding="UTF-8"?>+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1280 720">+ <!-- 模板: 封面页 - 麦肯锡风格 (精装版) -->++ <defs>+ <!-- 顶部渐变条 -->+ <linearGradient id="headerGrad" x1="0%" y1="0%" x2="100%" y2="0%">+ <stop offset="0%" style="stop-color:#005587"/>+ <stop offset="100%" style="stop-color:#0076A8"/>+ </linearGradient>+ <!-- 装饰渐变 -->+ <linearGradient id="decoGrad" x1="0%" y1="0%" x2="100%" y2="100%">+ <stop offset="0%" style="stop-color:#005587;stop-opacity:0.12"/>+ <stop offset="100%" style="stop-color:#0076A8;stop-opacity:0.04"/>+ </linearGradient>+ </defs>++ <!-- 白色背景 -->+ <rect width="1280" height="720" fill="#FFFFFF"/>++ <!-- 左侧主装饰条 -->+ <rect x="0" y="0" width="12" height="720" fill="url(#headerGrad)"/>++ <!-- 左侧副装饰条 -->+ <rect x="12" y="0" width="3" height="720" fill="#F5A623"/>++ <!-- 左上角装饰组合 -->+ <rect x="60" y="55" width="180" height="5" fill="#005587"/>+ <rect x="60" y="65" width="100" height="3" fill="#0076A8" fill-opacity="0.5"/>++ <!-- 右侧大面积装饰区 -->+ <rect x="780" y="0" width="500" height="720" fill="url(#decoGrad)"/>++ <!-- 几何装饰元素 -->+ <rect x="850" y="120" width="360" height="360" fill="none" stroke="#005587" stroke-width="1" stroke-opacity="0.15"/>+ <rect x="900" y="170" width="260" height="260" fill="none" stroke="#005587" stroke-width="1" stroke-opacity="0.1"/>+ <rect x="950" y="220" width="160" height="160" fill="#005587" fill-opacity="0.03"/>++ <!-- 三角装饰 -->+ <path d="M 1050,140 L 1220,140 L 1135,320 Z" fill="#005587" fill-opacity="0.06"/>+ <path d="M 880,400 L 1000,400 L 940,520 Z" fill="#0076A8" fill-opacity="0.05"/>++ <!-- 主标题区域 -->+ <text x="60" y="260" font-family="Arial, sans-serif" font-size="56" font-weight="bold" fill="#2C3E50" letter-spacing="-1">+ {{TITLE}}+ </text>+ <text x="60" y="330" font-family="Arial, sans-serif" font-size="56" font-weight="bold" fill="#2C3E50" letter-spacing="-1">+ {{TITLE_LINE2}}+ </text>++ <!-- 副标题 -->+ <text x="60" y="400" font-family="Arial, sans-serif" font-size="26" fill="#5D6D7E" letter-spacing="0.5">+ {{SUBTITLE}}+ </text>++ <!-- 分隔线组合 -->+ <line x1="60" y1="450" x2="500" y2="450" stroke="#ECF0F1" stroke-width="2"/>+ <line x1="60" y1="456" x2="200" y2="456" stroke="#005587" stroke-width="2"/>++ <!-- 项目信息区 -->+ <rect x="60" y="520" width="400" height="100" fill="#F8F9FA" rx="4"/>+ <rect x="60" y="520" width="4" height="100" fill="#005587" rx="2"/>++ <text x="84" y="555" font-family="Arial, sans-serif" font-size="14" fill="#7F8C8D">PROJECT CODE</text>+ <text x="84" y="580" font-family="Arial, sans-serif" font-size="18" font-weight="bold" fill="#2C3E50">{{PROJECT_CODE}}</text>++ <line x1="260" y1="535" x2="260" y2="605" stroke="#ECF0F1" stroke-width="1"/>++ <text x="284" y="555" font-family="Arial, sans-serif" font-size="14" fill="#7F8C8D">DATE</text>+ <text x="284" y="580" font-family="Arial, sans-serif" font-size="18" font-weight="bold" fill="#2C3E50">{{DATE}}</text>++ <!-- 底部装饰线 -->+ <line x1="60" y1="680" x2="1220" y2="680" stroke="#ECF0F1" stroke-width="1"/>++ <!-- 机密标识 -->+ <rect x="1080" y="655" width="140" height="28" fill="#005587" fill-opacity="0.08" rx="4"/>+ <text x="1150" y="675" text-anchor="middle" font-family="Arial, sans-serif" font-size="12" font-weight="bold" fill="#005587" letter-spacing="1">+ CONFIDENTIAL+ </text>++ <!-- 页码 -->+ <text x="60" y="700" font-family="Arial, sans-serif" font-size="14" fill="#7F8C8D">{{PAGE_NUM}}</text>++</svg>diff --git a/templates/layouts/mckinsey/02_chapter.svg b/templates/layouts/mckinsey/02_chapter.svgnew file mode 100644index 00000000..23ea3275--- /dev/null+++ b/templates/layouts/mckinsey/02_chapter.svg@@ -0,0 +1,76 @@+<?xml version="1.0" encoding="UTF-8"?>+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1280 720">+ <!-- 模板: 章节页 - 麦肯锡风格 (精装版) -->++ <defs>+ <!-- 背景渐变 -->+ <linearGradient id="bgGrad" x1="0%" y1="0%" x2="100%" y2="100%">+ <stop offset="0%" style="stop-color:#005587"/>+ <stop offset="50%" style="stop-color:#004A75"/>+ <stop offset="100%" style="stop-color:#003A5C"/>+ </linearGradient>+ <!-- 光晕效果 -->+ <radialGradient id="glowGrad" cx="50%" cy="50%" r="50%">+ <stop offset="0%" style="stop-color:#FFFFFF;stop-opacity:0.08"/>+ <stop offset="100%" style="stop-color:#FFFFFF;stop-opacity:0"/>+ </radialGradient>+ </defs>++ <!-- 渐变背景 -->+ <rect width="1280" height="720" fill="url(#bgGrad)"/>++ <!-- 装饰网格线 -->+ <line x1="0" y1="180" x2="1280" y2="180" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.03"/>+ <line x1="0" y1="360" x2="1280" y2="360" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.03"/>+ <line x1="0" y1="540" x2="1280" y2="540" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.03"/>+ <line x1="320" y1="0" x2="320" y2="720" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.03"/>+ <line x1="640" y1="0" x2="640" y2="720" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.03"/>+ <line x1="960" y1="0" x2="960" y2="720" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.03"/>++ <!-- 装饰圆形 -->+ <circle cx="1100" cy="120" r="180" fill="url(#glowGrad)"/>+ <circle cx="180" cy="600" r="220" fill="url(#glowGrad)"/>++ <!-- 装饰几何 -->+ <rect x="1050" y="450" width="150" height="150" fill="#FFFFFF" fill-opacity="0.02" rx="4"/>+ <rect x="80" y="100" width="100" height="100" fill="#FFFFFF" fill-opacity="0.02" rx="4"/>++ <!-- 左侧金色装饰线 -->+ <rect x="60" y="280" width="5" height="160" fill="#F5A623"/>++ <!-- 章节编号背景 -->+ <text x="640" y="320" text-anchor="middle" font-family="Arial, sans-serif" font-size="280" font-weight="bold" fill="#FFFFFF" fill-opacity="0.05">+ {{CHAPTER_NUM}}+ </text>++ <!-- 章节编号前缀 -->+ <text x="640" y="300" text-anchor="middle" font-family="Arial, sans-serif" font-size="18" font-weight="bold" fill="#F5A623" letter-spacing="4">+ SECTION {{CHAPTER_NUM}}+ </text>++ <!-- 装饰横线组 -->+ <line x1="500" y1="340" x2="620" y2="340" stroke="#FFFFFF" stroke-width="2" stroke-opacity="0.4"/>+ <line x1="660" y1="340" x2="780" y2="340" stroke="#FFFFFF" stroke-width="2" stroke-opacity="0.4"/>+ <circle cx="640" cy="340" r="6" fill="#F5A623"/>++ <!-- 章节标题 -->+ <text x="640" y="420" text-anchor="middle" font-family="Arial, sans-serif" font-size="48" font-weight="bold" fill="#FFFFFF" letter-spacing="1">+ {{CHAPTER_TITLE}}+ </text>++ <!-- 章节副标题 -->+ <text x="640" y="475" text-anchor="middle" font-family="Arial, sans-serif" font-size="20" fill="#FFFFFF" fill-opacity="0.65" letter-spacing="0.5">+ {{CHAPTER_DESC}}+ </text>++ <!-- 底部装饰条 -->+ <rect x="0" y="680" width="1280" height="40" fill="#FFFFFF" fill-opacity="0.05"/>+ <line x1="0" y1="680" x2="1280" y2="680" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.1"/>++ <!-- 页码 -->+ <text x="60" y="705" font-family="Arial, sans-serif" font-size="14" fill="#FFFFFF" fill-opacity="0.5">{{PAGE_NUM}}</text>++ <!-- 项目标识 -->+ <text x="1220" y="705" text-anchor="end" font-family="Arial, sans-serif" font-size="12" fill="#FFFFFF" fill-opacity="0.4" letter-spacing="1">{{PROJECT_CODE}}</text>++</svg>diff --git a/templates/layouts/mckinsey/02_toc.svg b/templates/layouts/mckinsey/02_toc.svgnew file mode 100644index 00000000..243c8d4d--- /dev/null+++ b/templates/layouts/mckinsey/02_toc.svg@@ -0,0 +1,91 @@+<?xml version="1.0" encoding="UTF-8"?>+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1280 720">+ <!-- 模板: 目录页 - 麦肯锡风格 (精装版) -->++ <defs>+ <linearGradient id="headerGrad" x1="0%" y1="0%" x2="100%" y2="0%">+ <stop offset="0%" style="stop-color:#005587"/>+ <stop offset="100%" style="stop-color:#0076A8"/>+ </linearGradient>+ </defs>++ <!-- 白色背景 -->+ <rect width="1280" height="720" fill="#FFFFFF"/>++ <!-- 顶部渐变装饰条 -->+ <rect x="0" y="0" width="1280" height="6" fill="url(#headerGrad)"/>++ <!-- 页面标题区 -->+ <text x="60" y="75" font-family="Arial, sans-serif" font-size="14" font-weight="bold" fill="#005587" letter-spacing="3">CONTENTS</text>+ <text x="60" y="115" font-family="Arial, sans-serif" font-size="40" font-weight="bold" fill="#2C3E50">Agenda</text>+ <line x1="60" y1="135" x2="160" y2="135" stroke="#005587" stroke-width="4"/>+ <line x1="165" y1="135" x2="220" y2="135" stroke="#F5A623" stroke-width="4"/>++ <!-- 目录卡片区域 -->+ <!-- 第1章 -->+ <g>+ <rect x="60" y="170" width="560" height="110" fill="#FFFFFF" stroke="#E5E7EB" stroke-width="1.5" rx="6"/>+ <rect x="60" y="170" width="6" height="110" fill="#005587" rx="3"/>+ <rect x="80" y="190" width="60" height="60" fill="#005587" fill-opacity="0.08" rx="4"/>+ <text x="110" y="232" text-anchor="middle" font-family="Arial, sans-serif" font-size="28" font-weight="bold" fill="#005587">01</text>+ <text x="165" y="218" font-family="Arial, sans-serif" font-size="20" font-weight="bold" fill="#2C3E50">{{CHAPTER_01_TITLE}}</text>+ <text x="165" y="248" font-family="Arial, sans-serif" font-size="14" fill="#5D6D7E">{{CHAPTER_01_DESC}}</text>+ </g>++ <!-- 第2章 -->+ <g>+ <rect x="660" y="170" width="560" height="110" fill="#FFFFFF" stroke="#E5E7EB" stroke-width="1.5" rx="6"/>+ <rect x="660" y="170" width="6" height="110" fill="#0076A8" rx="3"/>+ <rect x="680" y="190" width="60" height="60" fill="#0076A8" fill-opacity="0.08" rx="4"/>+ <text x="710" y="232" text-anchor="middle" font-family="Arial, sans-serif" font-size="28" font-weight="bold" fill="#0076A8">02</text>+ <text x="765" y="218" font-family="Arial, sans-serif" font-size="20" font-weight="bold" fill="#2C3E50">{{CHAPTER_02_TITLE}}</text>+ <text x="765" y="248" font-family="Arial, sans-serif" font-size="14" fill="#5D6D7E">{{CHAPTER_02_DESC}}</text>+ </g>++ <!-- 第3章 -->+ <g>+ <rect x="60" y="300" width="560" height="110" fill="#FFFFFF" stroke="#E5E7EB" stroke-width="1.5" rx="6"/>+ <rect x="60" y="300" width="6" height="110" fill="#004D5C" rx="3"/>+ <rect x="80" y="320" width="60" height="60" fill="#004D5C" fill-opacity="0.08" rx="4"/>+ <text x="110" y="362" text-anchor="middle" font-family="Arial, sans-serif" font-size="28" font-weight="bold" fill="#004D5C">03</text>+ <text x="165" y="348" font-family="Arial, sans-serif" font-size="20" font-weight="bold" fill="#2C3E50">{{CHAPTER_03_TITLE}}</text>+ <text x="165" y="378" font-family="Arial, sans-serif" font-size="14" fill="#5D6D7E">{{CHAPTER_03_DESC}}</text>+ </g>++ <!-- 第4章 -->+ <g>+ <rect x="660" y="300" width="560" height="110" fill="#FFFFFF" stroke="#E5E7EB" stroke-width="1.5" rx="6"/>+ <rect x="660" y="300" width="6" height="110" fill="#F5A623" rx="3"/>+ <rect x="680" y="320" width="60" height="60" fill="#F5A623" fill-opacity="0.08" rx="4"/>+ <text x="710" y="362" text-anchor="middle" font-family="Arial, sans-serif" font-size="28" font-weight="bold" fill="#F5A623">04</text>+ <text x="765" y="348" font-family="Arial, sans-serif" font-size="20" font-weight="bold" fill="#2C3E50">{{CHAPTER_04_TITLE}}</text>+ <text x="765" y="378" font-family="Arial, sans-serif" font-size="14" fill="#5D6D7E">{{CHAPTER_04_DESC}}</text>+ </g>++ <!-- 第5章 (可选) -->+ <g>+ <rect x="60" y="430" width="560" height="110" fill="#FAFAFA" stroke="#E5E7EB" stroke-width="1" stroke-dasharray="6,4" rx="6"/>+ <rect x="80" y="450" width="60" height="60" fill="#E5E7EB" fill-opacity="0.5" rx="4"/>+ <text x="110" y="492" text-anchor="middle" font-family="Arial, sans-serif" font-size="28" font-weight="bold" fill="#BDC3C7">05</text>+ <text x="165" y="488" font-family="Arial, sans-serif" font-size="18" fill="#95A5A6">{{CHAPTER_05}}</text>+ </g>++ <!-- 第6章 (可选) -->+ <g>+ <rect x="660" y="430" width="560" height="110" fill="#FAFAFA" stroke="#E5E7EB" stroke-width="1" stroke-dasharray="6,4" rx="6"/>+ <rect x="680" y="450" width="60" height="60" fill="#E5E7EB" fill-opacity="0.5" rx="4"/>+ <text x="710" y="492" text-anchor="middle" font-family="Arial, sans-serif" font-size="28" font-weight="bold" fill="#BDC3C7">06</text>+ <text x="765" y="488" font-family="Arial, sans-serif" font-size="18" fill="#95A5A6">{{CHAPTER_06}}</text>+ </g>++ <!-- 底部装饰 -->+ <rect x="60" y="580" width="1160" height="60" fill="#F8F9FA" rx="6"/>+ <text x="100" y="618" font-family="Arial, sans-serif" font-size="14" font-weight="bold" fill="#005587">💡 KEY FOCUS</text>+ <text x="230" y="618" font-family="Arial, sans-serif" font-size="14" fill="#5D6D7E">{{KEY_FOCUS}}</text>++ <!-- 页脚 -->+ <line x1="60" y1="665" x2="1220" y2="665" stroke="#ECF0F1" stroke-width="1"/>+ <text x="60" y="695" font-family="Arial, sans-serif" font-size="14" fill="#7F8C8D">{{PAGE_NUM}}</text>+ <text x="1160" y="695" text-anchor="end" font-family="Arial, sans-serif" font-size="12" font-weight="bold" fill="#005587" letter-spacing="1">CONFIDENTIAL</text>++</svg>diff --git a/templates/layouts/mckinsey/03_content.svg b/templates/layouts/mckinsey/03_content.svgnew file mode 100644index 00000000..10813ac7--- /dev/null+++ b/templates/layouts/mckinsey/03_content.svg@@ -0,0 +1,92 @@+<?xml version="1.0" encoding="UTF-8"?>+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1280 720">+ <!-- 模板: 内容页 - 麦肯锡风格 (精装版) -->++ <defs>+ <linearGradient id="headerGrad" x1="0%" y1="0%" x2="100%" y2="0%">+ <stop offset="0%" style="stop-color:#005587"/>+ <stop offset="100%" style="stop-color:#0076A8"/>+ </linearGradient>+ </defs>++ <!-- 白色背景 -->+ <rect width="1280" height="720" fill="#FFFFFF"/>++ <!-- 顶部渐变装饰条 -->+ <rect x="0" y="0" width="1280" height="5" fill="url(#headerGrad)"/>++ <!-- 页眉区域 -->+ <rect x="0" y="5" width="1280" height="75" fill="#FAFBFC"/>+ <line x1="0" y1="80" x2="1280" y2="80" stroke="#E5E7EB" stroke-width="1"/>++ <!-- 章节编号标签 -->+ <rect x="60" y="22" width="50" height="40" fill="#005587" rx="4"/>+ <text x="85" y="50" text-anchor="middle" font-family="Arial, sans-serif" font-size="18" font-weight="bold" fill="#FFFFFF">{{SECTION_NUM}}</text>++ <!-- 页面标题 -->+ <text x="130" y="52" font-family="Arial, sans-serif" font-size="28" font-weight="bold" fill="#2C3E50">+ {{PAGE_TITLE}}+ </text>++ <!-- 右侧章节指示 -->+ <text x="1160" y="52" text-anchor="end" font-family="Arial, sans-serif" font-size="14" fill="#7F8C8D">{{SECTION_NAME}}</text>++ <!-- 核心观点条 (Key Insight Bar) -->+ <rect x="60" y="100" width="1160" height="50" fill="#FFF8E1" stroke="#F5A623" stroke-width="1" rx="4"/>+ <rect x="60" y="100" width="5" height="50" fill="#F5A623" rx="2"/>+ <text x="85" y="132" font-family="Arial, sans-serif" font-size="14" font-weight="bold" fill="#E89207">💡 KEY INSIGHT</text>+ <text x="220" y="132" font-family="Arial, sans-serif" font-size="15" fill="#5D6D7E">{{KEY_MESSAGE}}</text>++ <!-- 内容区域 - 灵活布局 -->+ <!--+ AI 灵活布局区+ 可用空间: x=60, y=170, width=1160, height=450++ 常用布局模式:+ - 左右分栏 (520+520 或 400+640)+ - 上下分栏+ - 2×2 矩阵 (280×210 每格)+ - 数据卡片组合 (150×120 每个)+ - 漏斗图/时间轴+ - 表格 (带边框)+ -->+ <rect x="60" y="170" width="1160" height="450" fill="none" stroke="#E5E7EB" stroke-width="1.5" stroke-dasharray="8,6" rx="6"/>+ <text x="640" y="385" text-anchor="middle" fill="#BDC3C7" font-family="Arial, sans-serif" font-size="18">+ {{CONTENT_AREA}}+ </text>+ <text x="640" y="415" text-anchor="middle" fill="#D5DBDB" font-family="Arial, sans-serif" font-size="14">+ Content Area: 1160 × 450 px+ </text>++ <!-- 常用设计元素指南 -->+ <!--+ 数据卡片:+ <rect fill="#FFFFFF" stroke="#E5E7EB" stroke-width="1.5" rx="6"/>+ <rect x="" y="" width="4" fill="#005587"/> (左侧装饰条)++ 关键数据:+ <text fill="#F5A623" font-size="44" font-weight="bold"/> (正向)+ <text fill="#E74C3C" font-size="44" font-weight="bold"/> (负向)++ 问题标注圆点:+ <circle r="8" fill="#E74C3C"/>++ 分隔线:+ <line stroke="#ECF0F1" stroke-width="1"/>+ -->++ <!-- 页脚区域 -->+ <rect x="0" y="640" width="1280" height="80" fill="#FAFBFC"/>+ <line x1="0" y1="640" x2="1280" y2="640" stroke="#E5E7EB" stroke-width="1"/>++ <!-- 数据来源 -->+ <text x="60" y="675" font-family="Arial, sans-serif" font-size="12" fill="#95A5A6">Source: {{SOURCE}}</text>++ <!-- 备注区 -->+ <text x="60" y="700" font-family="Arial, sans-serif" font-size="11" fill="#BDC3C7">{{NOTE}}</text>++ <!-- 页码 -->+ <rect x="1140" y="655" width="80" height="30" fill="#005587" rx="4"/>+ <text x="1180" y="676" text-anchor="middle" font-family="Arial, sans-serif" font-size="14" font-weight="bold" fill="#FFFFFF">{{PAGE_NUM}}</text>++</svg>diff --git a/templates/layouts/mckinsey/04_ending.svg b/templates/layouts/mckinsey/04_ending.svgnew file mode 100644index 00000000..92ab657d--- /dev/null+++ b/templates/layouts/mckinsey/04_ending.svg@@ -0,0 +1,87 @@+<?xml version="1.0" encoding="UTF-8"?>+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1280 720">+ <!-- 模板: 结束页 - 麦肯锡风格 (精装版) -->++ <defs>+ <linearGradient id="headerGrad" x1="0%" y1="0%" x2="100%" y2="0%">+ <stop offset="0%" style="stop-color:#005587"/>+ <stop offset="100%" style="stop-color:#0076A8"/>+ </linearGradient>+ <linearGradient id="cardGrad" x1="0%" y1="0%" x2="0%" y2="100%">+ <stop offset="0%" style="stop-color:#FAFBFC"/>+ <stop offset="100%" style="stop-color:#F1F3F4"/>+ </linearGradient>+ </defs>++ <!-- 白色背景 -->+ <rect width="1280" height="720" fill="#FFFFFF"/>++ <!-- 顶部渐变装饰条 -->+ <rect x="0" y="0" width="1280" height="6" fill="url(#headerGrad)"/>++ <!-- 背景装饰 -->+ <rect x="0" y="0" width="400" height="720" fill="#005587" fill-opacity="0.02"/>+ <rect x="880" y="0" width="400" height="720" fill="#005587" fill-opacity="0.02"/>++ <!-- 几何装饰 -->+ <rect x="80" y="100" width="180" height="180" fill="none" stroke="#005587" stroke-width="1" stroke-opacity="0.08"/>+ <rect x="120" y="140" width="100" height="100" fill="#005587" fill-opacity="0.03"/>++ <rect x="1020" y="420" width="180" height="180" fill="none" stroke="#005587" stroke-width="1" stroke-opacity="0.08"/>+ <rect x="1060" y="460" width="100" height="100" fill="#005587" fill-opacity="0.03"/>++ <!-- 主感谢语 -->+ <text x="640" y="230" text-anchor="middle" font-family="Arial, sans-serif" font-size="18" font-weight="bold" fill="#005587" letter-spacing="4">+ THANK YOU+ </text>++ <text x="640" y="300" text-anchor="middle" font-family="Arial, sans-serif" font-size="52" font-weight="bold" fill="#2C3E50">+ {{THANK_YOU}}+ </text>++ <!-- 装饰分隔线 -->+ <line x1="480" y1="340" x2="600" y2="340" stroke="#005587" stroke-width="3"/>+ <circle cx="640" cy="340" r="8" fill="#F5A623"/>+ <line x1="680" y1="340" x2="800" y2="340" stroke="#005587" stroke-width="3"/>++ <!-- 副标语 -->+ <text x="640" y="390" text-anchor="middle" font-family="Arial, sans-serif" font-size="20" fill="#5D6D7E">+ {{TAGLINE}}+ </text>++ <!-- 联系信息卡片 -->+ <rect x="390" y="440" width="500" height="150" fill="url(#cardGrad)" stroke="#E5E7EB" stroke-width="1.5" rx="8"/>+ <rect x="390" y="440" width="6" height="150" fill="#005587" rx="3"/>++ <!-- 联系人信息 -->+ <text x="640" y="485" text-anchor="middle" font-family="Arial, sans-serif" font-size="20" font-weight="bold" fill="#2C3E50">+ {{CONTACT_NAME}}+ </text>+ <text x="640" y="515" text-anchor="middle" font-family="Arial, sans-serif" font-size="14" fill="#7F8C8D">+ {{CONTACT_TITLE}}+ </text>++ <line x1="480" y1="535" x2="800" y2="535" stroke="#E5E7EB" stroke-width="1"/>++ <text x="560" y="565" text-anchor="middle" font-family="Arial, sans-serif" font-size="14" fill="#005587">📧 {{CONTACT_EMAIL}}</text>+ <text x="760" y="565" text-anchor="middle" font-family="Arial, sans-serif" font-size="14" fill="#005587">📞 {{CONTACT_PHONE}}</text>++ <!-- 底部信息区 -->+ <rect x="0" y="640" width="1280" height="80" fill="#FAFBFC"/>+ <line x1="0" y1="640" x2="1280" y2="640" stroke="#E5E7EB" stroke-width="1"/>++ <!-- 版权信息 -->+ <text x="640" y="675" text-anchor="middle" font-family="Arial, sans-serif" font-size="12" fill="#95A5A6">+ {{COPYRIGHT}}+ </text>++ <!-- 机密标识 -->+ <rect x="1080" y="655" width="140" height="28" fill="#005587" fill-opacity="0.08" rx="4"/>+ <text x="1150" y="675" text-anchor="middle" font-family="Arial, sans-serif" font-size="12" font-weight="bold" fill="#005587" letter-spacing="1">+ CONFIDENTIAL+ </text>++ <!-- 页码 -->+ <text x="60" y="705" font-family="Arial, sans-serif" font-size="14" fill="#7F8C8D">{{PAGE_NUM}}</text>++</svg>diff --git a/templates/layouts/mckinsey/design_spec.md b/templates/layouts/mckinsey/design_spec.mdnew file mode 100644index 00000000..9a71934f--- /dev/null+++ b/templates/layouts/mckinsey/design_spec.md@@ -0,0 +1,261 @@+# 麦肯锡风格模板 (McKinsey Style) - 设计规范++> 适用于战略咨询、高管汇报、投资分析、商业提案等高端商务场景。++---++## 一、模板概述++| 属性 | 描述 |+| -------------- | ------------------------------------------------------ |+| **模板名称** | mckinsey(麦肯锡风格模板) |+| **适用场景** | 战略咨询、高管汇报、投资分析、商业提案 |+| **设计调性** | 数据驱动、结构化思维、专业留白、极简高端 |+| **主题模式** | 亮色主题(白色背景 + McKinsey Blue 强调) |++---++## 二、画布规范++| 属性 | 值 |+| -------------- | ----------------------------- |+| **格式** | 标准 16:9 |+| **尺寸** | 1280 × 720 px |+| **viewBox** | `0 0 1280 720` |+| **页面边距** | 左右 60px,上 60px,下 40px |+| **内容安全区** | x: 60-1220, y: 60-680 |+| **网格基准** | 40px |++---++## 三、配色方案++### 主色系++| 角色 | 色值 | 备注 |+| ---------------- | ----------- | -------------------------------- |+| **McKinsey Blue**| `#005587` | 主色调,标题栏、强调元素 |+| **Deep Teal** | `#004D5C` | 辅助蓝色,渐变终点 |+| **背景白** | `#FFFFFF` | 页面主背景 |+| **浅灰背景** | `#ECF0F1` | 分隔、次级背景 |++### 文字色系++| 角色 | 色值 | 用途 |+| -------------- | ----------- | ---------------------- |+| **标题深灰** | `#2C3E50` | 主标题、卡片标题 |+| **正文灰** | `#5D6D7E` | 正文内容、说明文字 |+| **辅助灰** | `#7F8C8D` | 注释、来源、页脚 |+| **白色文字** | `#FFFFFF` | 蓝色背景上的文字 |++### 强调色++| 用途 | 色值 | 说明 |+| ---------------- | ----------- | ---------------------- |+| **数据强调** | `#F5A623` | Amber,关键数据高亮 |+| **警示/问题** | `#E74C3C` | Coral,问题点、负向指标|+| **成功/正向** | `#27AE60` | 绿色,正向指标 |+| **信息蓝** | `#0076A8` | 辅助信息、图表渐变 |++---++## 四、排版体系++### 字体方案++**字体栈**: `Arial, "Helvetica Neue", "Segoe UI", sans-serif`++### 字号层级++| 层级 | 用途 | 字号 | 字重 |+| -------- | ---------------- | ------ | ------- |+| H1 | 封面主标题 | 52px | Bold |+| H2 | 页面标题 | 36px | Bold |+| H3 | 模块标题 | 22-24px| Bold |+| H4 | 卡片标题 | 16-18px| Bold |+| P | 正文内容 | 14-16px| Regular |+| Data | 数据强调 | 44px | Bold |+| Sub | 图表标签/注释 | 12-14px| Regular |++---++## 五、核心设计原则++### 麦肯锡风格特色++1. **数据驱动**: 以关键数据与洞察为核心,强化论据支撑+2. **结构化思维**: MECE 原则,清晰的逻辑框架+3. **信息可视化**: 图表、矩阵、漏斗模型优先+4. **专业留白**: 充足的呼吸感,内容占比 < 65%+5. **网格对齐**: 40px 基准网格,精确对齐+6. **极简图标**: 几何形状,避免花哨装饰+7. **专业配色**: 避免花哨渐变,保持克制++---++## 六、页面结构++### 通用布局++| 区域 | 位置/高度 | 内容说明 |+| ---------- | ------------- | -------------------------------------- |+| **顶部** | y=0, h=4px | McKinsey Blue 横条装饰 |+| **标题区** | y=40, h=60px | 页面标题(左对齐,大号粗体) |+| **内容区** | y=120, h=520px| 主要内容区域 |+| **页脚** | y=680, h=40px | 页码(左)、数据来源/机密标识(右) |++### 装饰设计++- **左侧装饰条**: McKinsey Blue (`#005587`),宽度 8px(封面页)+- **顶部装饰线**: McKinsey Blue (`#005587`),高度 4px+- **卡片边框**: 浅灰 (`#ECF0F1`),宽度 2px+- **几何装饰**: 低透明度蓝色几何图案(封面页右侧)++---++## 七、页面类型++### 1. 封面页 (01_cover.svg)++- 白色背景+- 左侧蓝色装饰窄条 (8px)+- 左上角短横线装饰+- 主标题 + 副标题(左对齐)+- 底部项目代码、日期+- 右侧低透明度几何装饰+- 右下角机密标识++### 2. 目录页 (02_toc.svg)++- 白色背景+- 顶部蓝色装饰条+- 标题区 "Agenda" / "Contents"+- 章节列表(编号 + 标题)+- 简洁线条分隔++### 3. 章节页 (02_chapter.svg)++- McKinsey Blue 全屏背景+- 居中大号章节标题+- 白色文字+- 极简设计++### 4. 内容页 (03_content.svg)++- 白色背景+- 顶部蓝色装饰条+- 左对齐页面标题+- 灵活内容区域+- 页脚:页码、数据来源++### 5. 结束页 (04_ending.svg)++- 白色背景+- 居中感谢语+- 联系信息+- 机密标识++---++## 八、常用图表规范++### 图表尺寸建议++| 图表类型 | 建议尺寸 |+| ------------ | ------------------ |+| 条形图 | 500-700 × 400-500px|+| 饼图 | 直径 300-400px |+| 数据卡片 | 150 × 120px |+| 矩阵 | 240-280px / 单元格 |+| 漏斗图 | 500 × 400px |++### 图表配色++- 主系列: `#005587`, `#0076A8`, `#4A90A4`+- 强调: `#F5A623`+- 警示: `#E74C3C`++---++## 九、间距规范++| 元素 | 数值 |+| ------------ | ------ |+| 页面边距 | 60px |+| 标题区高度 | 80-100px |+| 图表间距 | 40-60px |+| 卡片内边距 | 20-24px |+| 文字行距 | 1.6 |+| 网格基准 | 40px |++---++## 十、SVG 技术约束++### 必须遵守++1. viewBox: `0 0 1280 720`+2. 背景使用 `<rect>` 元素+3. 文本换行使用 `<tspan>`(禁止 `<foreignObject>`)+4. 透明度使用 `fill-opacity` / `stroke-opacity`,禁止 `rgba()`+5. 禁止使用:`clipPath`、`mask`、`<style>`、`class`、`foreignObject`+6. 禁止使用:`textPath`、`animate*`、`script`、`marker`/`marker-end`+7. 箭头使用 `<polygon>` 三角形替代 `<marker>`+8. 渐变使用 `<defs>` 定义 `<linearGradient>`++### PPT 兼容性规则++- 禁止 `<g opacity="...">`(组透明度),每个子元素单独设置+- 图片透明度使用遮罩层替代+- 仅使用内联样式,禁止外部 CSS 和 `@font-face`++---++## 十一、占位符规范++模板使用 `{{PLACEHOLDER}}` 格式的占位符,常用占位符:++| 占位符 | 说明 |+| ------------------ | ------------------ |+| `{{TITLE}}` | 主标题 |+| `{{SUBTITLE}}` | 副标题 |+| `{{PROJECT_CODE}}` | 项目代码 |+| `{{DATE}}` | 日期 |+| `{{PAGE_TITLE}}` | 页面标题 |+| `{{CHAPTER_NUM}}` | 章节编号 |+| `{{CHAPTER_TITLE}}`| 章节标题 |+| `{{PAGE_NUM}}` | 页码 |+| `{{SOURCE}}` | 数据来源 |+| `{{CONFIDENTIAL}}` | 机密标识 |++---++## 十二、质量核对清单++### 生成前++- [ ] 每页核心观点明确+- [ ] 数据支撑充分+- [ ] 逻辑结构清晰++### 生成后++- [ ] viewBox = `0 0 1280 720`+- [ ] McKinsey Blue 一致应用+- [ ] 关键数据突出显示(Amber/Coral)+- [ ] 图表坐标轴完整标注+- [ ] 文字可读性良好(对比度 > 4.5:1)+- [ ] 元素对齐精准(网格对齐)+- [ ] 页码/页脚信息完整+- [ ] 无 `<foreignObject>`+- [ ] 所有文本使用 `<tspan>` 换行++---++## 十三、使用说明++1. 复制模板到项目目录+2. 根据汇报内容需求选择合适的页面模板+3. 使用占位符标记需要替换的内容+4. 数据图表优先,文字简洁+5. 通过 Executor 角色生成最终 SVGdiff --git a/templates/layouts/medical_university/01_cover.svg b/templates/layouts/medical_university/01_cover.svgnew file mode 100644index 00000000..da938449--- /dev/null+++ b/templates/layouts/medical_university/01_cover.svg@@ -0,0 +1,71 @@+<?xml version="1.0" encoding="UTF-8"?>+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1280 720">+ <!-- 背景 -->+ <rect width="1280" height="720" fill="#FFFFFF" />++ <!-- ==================== 顶部装饰区域 ==================== -->+ <!-- 医学蓝主横条 -->+ <rect x="0" y="0" width="1280" height="100" fill="#0066B3" />+ <!-- 左侧橙色竖条装饰 -->+ <rect x="0" y="0" width="6" height="100" fill="#FF6B35" />++ <!-- 顶部装饰:心电图波形线(医疗元素) -->+ <path d="M40 50 L100 50 L120 20 L140 80 L160 40 L180 60 L200 50 L280 50" stroke="#FFFFFF" stroke-width="2"+ stroke-opacity="0.3" fill="none" />++ <!-- 右上角 Logo/校徽区域占位 -->+ <rect x="1080" y="25" width="160" height="50" fill="none" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.3"+ rx="4" />+ <text x="1160" y="58" text-anchor="middle" fill="#FFFFFF" font-family="Microsoft YaHei, Arial, sans-serif"+ font-size="16" font-weight="bold">+ {{LOGO}}+ </text>++ <!-- ==================== 主内容区域 ==================== -->+ <!-- 主标题 -->+ <text x="640" y="320" text-anchor="middle" fill="#004080" font-family="Microsoft YaHei, Arial, sans-serif"+ font-size="52" font-weight="bold">+ {{TITLE}}+ </text>++ <!-- 副标题 -->+ <text x="640" y="385" text-anchor="middle" fill="#666666" font-family="Microsoft YaHei, Arial, sans-serif"+ font-size="26">+ {{SUBTITLE}}+ </text>++ <!-- 装饰分割线 -->+ <line x1="420" y1="425" x2="860" y2="425" stroke="#0066B3" stroke-width="2" />+ <circle cx="640" cy="425" r="6" fill="#00A86B" />+ <!-- 左右装饰小圆点 -->+ <circle cx="420" cy="425" r="4" fill="#0066B3" />+ <circle cx="860" cy="425" r="4" fill="#0066B3" />++ <!-- ==================== 汇报人信息区域 ==================== -->+ <!-- 汇报人 -->+ <text x="640" y="490" text-anchor="middle" fill="#333333" font-family="Microsoft YaHei, Arial, sans-serif"+ font-size="22">+ 汇报人:{{AUTHOR}}+ </text>++ <!-- 科室/导师 -->+ <text x="640" y="528" text-anchor="middle" fill="#666666" font-family="Microsoft YaHei, Arial, sans-serif"+ font-size="18">+ {{DEPARTMENT}} | 指导老师:{{ADVISOR}}+ </text>++ <!-- 机构名称 -->+ <text x="640" y="570" text-anchor="middle" fill="#0066B3" font-family="Microsoft YaHei, Arial, sans-serif"+ font-size="20" font-weight="bold">+ {{INSTITUTION}}+ </text>++ <!-- ==================== 底部信息 ==================== -->+ <rect x="0" y="665" width="1280" height="55" fill="#F5F7FA" />+ <!-- 底部装饰线 -->+ <rect x="0" y="665" width="1280" height="3" fill="#0066B3" />+ <text x="640" y="700" text-anchor="middle" fill="#999999" font-family="Microsoft YaHei, Arial, sans-serif"+ font-size="14">+ {{DATE}}+ </text>+</svg>\ No newline at end of filediff --git a/templates/layouts/medical_university/02_chapter.svg b/templates/layouts/medical_university/02_chapter.svgnew file mode 100644index 00000000..251091c6--- /dev/null+++ b/templates/layouts/medical_university/02_chapter.svg@@ -0,0 +1,50 @@+<?xml version="1.0" encoding="UTF-8"?>+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1280 720">+ <!-- 背景:深医学蓝,营造专业感和过渡感 -->+ <rect width="1280" height="720" fill="#004080" />++ <!-- 背景装饰:右侧几何图形,医疗主题 -->+ <path d="M850 0 L1280 0 L1280 720 L650 720 Z" fill="#0066B3" fill-opacity="0.3" />+ <rect x="1200" y="0" width="80" height="720" fill="#003366" fill-opacity="0.3" />++ <!-- 右侧装饰:抽象医疗十字 -->+ <rect x="1050" y="280" width="120" height="30" fill="#FFFFFF" fill-opacity="0.08" rx="4" />+ <rect x="1095" y="235" width="30" height="120" fill="#FFFFFF" fill-opacity="0.08" rx="4" />++ <!-- 右下角装饰:DNA 双螺旋简化 -->+ <circle cx="1180" cy="550" r="40" fill="none" stroke="#00A86B" stroke-width="2" stroke-opacity="0.2" />+ <circle cx="1180" cy="550" r="25" fill="none" stroke="#00A86B" stroke-width="2" stroke-opacity="0.15" />+ <circle cx="1180" cy="550" r="10" fill="#00A86B" fill-opacity="0.1" />++ <!-- 左侧橙色装饰条 -->+ <rect x="0" y="260" width="12" height="200" fill="#FF6B35" />++ <!-- ==================== 章节信息区域 ==================== -->+ <!-- 章节编号:大号数字,半透明背景字 -->+ <text x="120" y="480" fill="#FFFFFF" fill-opacity="0.08" font-family="Microsoft YaHei, Arial, sans-serif"+ font-size="280" font-weight="bold">+ {{CHAPTER_NUM}}+ </text>++ <!-- 装饰线条 -->+ <line x1="380" y1="275" x2="520" y2="275" stroke="#FF6B35" stroke-width="6" />+ <circle cx="530" cy="275" r="6" fill="#00A86B" />++ <!-- 章节标题:醒目白色 -->+ <text x="380" y="360" fill="#FFFFFF" font-family="Microsoft YaHei, Arial, sans-serif" font-size="52"+ font-weight="bold">+ {{CHAPTER_TITLE}}+ </text>++ <!-- 章节描述/摘要:浅色 -->+ <text x="380" y="420" fill="#E6F3FA" font-family="Microsoft YaHei, Arial, sans-serif" font-size="22">+ {{CHAPTER_DESC}}+ </text>++ <!-- ==================== 底部信息 ==================== -->+ <line x1="40" y1="665" x2="1240" y2="665" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.1" />+ <text x="1240" y="690" text-anchor="end" fill="#FFFFFF" fill-opacity="0.4"+ font-family="Microsoft YaHei, Arial, sans-serif" font-size="16">+ {{INSTITUTION}}+ </text>+</svg>\ No newline at end of filediff --git a/templates/layouts/medical_university/02_toc.svg b/templates/layouts/medical_university/02_toc.svgnew file mode 100644index 00000000..62dfde14--- /dev/null+++ b/templates/layouts/medical_university/02_toc.svg@@ -0,0 +1,97 @@+<?xml version="1.0" encoding="UTF-8"?>+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1280 720">+ <!-- 背景 -->+ <rect width="1280" height="720" fill="#FFFFFF" />++ <!-- ==================== 页眉区域 ==================== -->+ <rect x="0" y="0" width="1280" height="70" fill="#0066B3" />+ <rect x="0" y="0" width="6" height="70" fill="#FF6B35" />++ <!-- 页面标题 -->+ <text x="40" y="46" fill="#FFFFFF" font-family="Microsoft YaHei, Arial, sans-serif" font-size="28"+ font-weight="bold">+ 目 录+ </text>++ <!-- 英文副标题 -->+ <text x="130" y="46" fill="#FFFFFF" fill-opacity="0.7" font-family="Microsoft YaHei, Arial, sans-serif"+ font-size="16">+ CONTENTS+ </text>++ <!-- 右上角 Logo -->+ <text x="1200" y="46" text-anchor="end" fill="#FFFFFF" font-family="Microsoft YaHei, Arial, sans-serif"+ font-size="16" font-weight="bold">+ {{LOGO}}+ </text>++ <!-- ==================== 目录内容区域 ==================== -->+ <!-- 目录项容器 -->+ <rect x="80" y="100" width="1120" height="520" fill="none" />++ <!-- 目录项 01 -->+ <rect x="80" y="115" width="540" height="95" fill="#E6F3FA" rx="8" />+ <rect x="80" y="115" width="6" height="95" fill="#0066B3" rx="3" />+ <text x="120" y="165" fill="#004080" font-family="Microsoft YaHei, Arial, sans-serif" font-size="36"+ font-weight="bold">01</text>+ <text x="190" y="158" fill="#004080" font-family="Microsoft YaHei, Arial, sans-serif" font-size="22"+ font-weight="bold">{{TOC_ITEM_1_TITLE}}</text>+ <text x="120" y="192" fill="#666666" font-family="Microsoft YaHei, Arial, sans-serif"+ font-size="14">{{TOC_ITEM_1_DESC}}</text>++ <!-- 目录项 02 -->+ <rect x="660" y="115" width="540" height="95" fill="#E6F3FA" rx="8" />+ <rect x="660" y="115" width="6" height="95" fill="#0066B3" rx="3" />+ <text x="700" y="165" fill="#004080" font-family="Microsoft YaHei, Arial, sans-serif" font-size="36"+ font-weight="bold">02</text>+ <text x="770" y="158" fill="#004080" font-family="Microsoft YaHei, Arial, sans-serif" font-size="22"+ font-weight="bold">{{TOC_ITEM_2_TITLE}}</text>+ <text x="700" y="192" fill="#666666" font-family="Microsoft YaHei, Arial, sans-serif"+ font-size="14">{{TOC_ITEM_2_DESC}}</text>++ <!-- 目录项 03 -->+ <rect x="80" y="235" width="540" height="95" fill="#E8F5EE" rx="8" />+ <rect x="80" y="235" width="6" height="95" fill="#00A86B" rx="3" />+ <text x="120" y="285" fill="#004080" font-family="Microsoft YaHei, Arial, sans-serif" font-size="36"+ font-weight="bold">03</text>+ <text x="190" y="278" fill="#004080" font-family="Microsoft YaHei, Arial, sans-serif" font-size="22"+ font-weight="bold">{{TOC_ITEM_3_TITLE}}</text>+ <text x="120" y="312" fill="#666666" font-family="Microsoft YaHei, Arial, sans-serif"+ font-size="14">{{TOC_ITEM_3_DESC}}</text>++ <!-- 目录项 04 -->+ <rect x="660" y="235" width="540" height="95" fill="#E8F5EE" rx="8" />+ <rect x="660" y="235" width="6" height="95" fill="#00A86B" rx="3" />+ <text x="700" y="285" fill="#004080" font-family="Microsoft YaHei, Arial, sans-serif" font-size="36"+ font-weight="bold">04</text>+ <text x="770" y="278" fill="#004080" font-family="Microsoft YaHei, Arial, sans-serif" font-size="22"+ font-weight="bold">{{TOC_ITEM_4_TITLE}}</text>+ <text x="700" y="312" fill="#666666" font-family="Microsoft YaHei, Arial, sans-serif"+ font-size="14">{{TOC_ITEM_4_DESC}}</text>++ <!-- 目录项 05(可选) -->+ <rect x="80" y="355" width="540" height="95" fill="none" stroke="#D0D7E0" stroke-width="1" stroke-dasharray="4,4"+ rx="8" />+ <text x="350" y="410" text-anchor="middle" fill="#999999" font-family="Microsoft YaHei, Arial, sans-serif"+ font-size="16">{{TOC_ITEM_5}}</text>++ <!-- 目录项 06(可选) -->+ <rect x="660" y="355" width="540" height="95" fill="none" stroke="#D0D7E0" stroke-width="1" stroke-dasharray="4,4"+ rx="8" />+ <text x="930" y="410" text-anchor="middle" fill="#999999" font-family="Microsoft YaHei, Arial, sans-serif"+ font-size="16">{{TOC_ITEM_6}}</text>++ <!-- ==================== 装饰元素 ==================== -->+ <!-- 底部医疗图标装饰 -->+ <!-- 十字符号 -->+ <rect x="600" y="520" width="80" height="20" fill="#00A86B" fill-opacity="0.2" rx="3" />+ <rect x="630" y="490" width="20" height="80" fill="#00A86B" fill-opacity="0.2" rx="3" />++ <!-- ==================== 页脚区域 ==================== -->+ <line x1="40" y1="665" x2="1240" y2="665" stroke="#E6F3FA" stroke-width="1" />+ <text x="40" y="695" fill="#999999" font-family="Microsoft YaHei, Arial, sans-serif" font-size="12">+ {{INSTITUTION}}+ </text>+ <text x="1220" y="695" text-anchor="end" fill="#999999" font-family="Microsoft YaHei, Arial, sans-serif"+ font-size="14">{{PAGE_NUM}}</text>+</svg>\ No newline at end of filediff --git a/templates/layouts/medical_university/03_content.svg b/templates/layouts/medical_university/03_content.svgnew file mode 100644index 00000000..f40a0dc3--- /dev/null+++ b/templates/layouts/medical_university/03_content.svg@@ -0,0 +1,78 @@+<?xml version="1.0" encoding="UTF-8"?>+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1280 720">+ <!-- 背景 -->+ <rect width="1280" height="720" fill="#FFFFFF" />++ <!-- ==================== 页眉区域 ==================== -->+ <!-- 医学蓝页眉背景 -->+ <rect x="0" y="0" width="1280" height="70" fill="#0066B3" />+ <!-- 左侧橙色竖条装饰 -->+ <rect x="0" y="0" width="6" height="70" fill="#FF6B35" />++ <!-- 章节编号 + 页面标题 -->+ <text x="40" y="46" fill="#FFFFFF" font-family="Microsoft YaHei, Arial, sans-serif" font-size="26"+ font-weight="bold">+ {{SECTION_NUM}} {{PAGE_TITLE}}+ </text>++ <!-- 右上角 Logo -->+ <rect x="1100" y="20" width="140" height="30" fill="none" />+ <text x="1220" y="46" text-anchor="end" fill="#FFFFFF" font-family="Microsoft YaHei, Arial, sans-serif"+ font-size="16" font-weight="bold">+ {{LOGO}}+ </text>++ <!-- ==================== 核心观点条 ==================== -->+ <rect x="0" y="70" width="1280" height="50" fill="#E6F3FA" />+ <rect x="0" y="70" width="6" height="50" fill="#00A86B" />+ <text x="40" y="102" fill="#333333" font-family="Microsoft YaHei, Arial, sans-serif" font-size="18">+ {{KEY_MESSAGE}}+ </text>++ <!-- ==================== 内容区域 ==================== -->+ <!--+ AI 灵活布局区+ 可用空间: x=40, y=135, width=1200, height=515+ 适用布局:病例展示、数据卡片、图文混排、时间线、流程图等+ -->+ <rect x="40" y="135" width="1200" height="515" fill="#FFFFFF" rx="4" />+ <rect x="40" y="135" width="1200" height="515" fill="none" stroke="#D0D7E0" stroke-width="1" rx="4"+ stroke-dasharray="8,4" />++ <!-- 内容区域占位符 -->+ <text x="640" y="385" text-anchor="middle" fill="#CBD5E1" font-family="Microsoft YaHei, Arial, sans-serif"+ font-size="16">+ {{CONTENT_AREA}}+ </text>++ <!-- 布局说明 -->+ <text x="640" y="415" text-anchor="middle" fill="#CBD5E1" font-family="Microsoft YaHei, Arial, sans-serif"+ font-size="14">+ 可用布局:病例展示、检验结果、影像资料、治疗方案、数据图表等+ </text>++ <!-- 示例数据卡片区域(虚线框) -->+ <rect x="80" y="180" width="180" height="100" fill="none" stroke="#D0D7E0" stroke-width="1" stroke-dasharray="4,4"+ rx="8" />+ <text x="170" y="235" text-anchor="middle" fill="#D0D7E0" font-family="Microsoft YaHei, Arial, sans-serif"+ font-size="12">数据卡片</text>++ <rect x="280" y="180" width="180" height="100" fill="none" stroke="#D0D7E0" stroke-width="1" stroke-dasharray="4,4"+ rx="8" />+ <text x="370" y="235" text-anchor="middle" fill="#D0D7E0" font-family="Microsoft YaHei, Arial, sans-serif"+ font-size="12">数据卡片</text>++ <!-- ==================== 页脚区域 ==================== -->+ <line x1="40" y1="665" x2="1240" y2="665" stroke="#E6F3FA" stroke-width="1" />+ <text x="40" y="695" fill="#999999" font-family="Microsoft YaHei, Arial, sans-serif" font-size="12">+ 数据来源:{{SOURCE}}+ </text>+ <text x="640" y="695" text-anchor="middle" fill="#999999" font-family="Microsoft YaHei, Arial, sans-serif"+ font-size="12">+ {{SECTION_NAME}}+ </text>+ <text x="1220" y="695" text-anchor="end" fill="#666666" font-family="Microsoft YaHei, Arial, sans-serif"+ font-size="14">+ {{PAGE_NUM}}+ </text>+</svg>\ No newline at end of filediff --git a/templates/layouts/medical_university/04_ending.svg b/templates/layouts/medical_university/04_ending.svgnew file mode 100644index 00000000..8d31c8aa--- /dev/null+++ b/templates/layouts/medical_university/04_ending.svg@@ -0,0 +1,79 @@+<?xml version="1.0" encoding="UTF-8"?>+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1280 720">+ <!-- 背景 -->+ <rect width="1280" height="720" fill="#FFFFFF" />++ <!-- ==================== 顶部装饰区域 ==================== -->+ <rect x="0" y="0" width="1280" height="100" fill="#0066B3" />+ <rect x="0" y="0" width="6" height="100" fill="#FF6B35" />++ <!-- 顶部装饰:心电图波形 -->+ <path d="M40 50 L100 50 L120 20 L140 80 L160 40 L180 60 L200 50 L280 50" stroke="#FFFFFF" stroke-width="2"+ stroke-opacity="0.3" fill="none" />++ <!-- 右上角 Logo -->+ <text x="1200" y="58" text-anchor="end" fill="#FFFFFF" font-family="Microsoft YaHei, Arial, sans-serif"+ font-size="16" font-weight="bold">+ {{LOGO}}+ </text>++ <!-- ==================== 主内容区域 ==================== -->+ <!-- 感谢语 -->+ <text x="640" y="280" text-anchor="middle" fill="#004080" font-family="Microsoft YaHei, Arial, sans-serif"+ font-size="52" font-weight="bold">+ {{THANK_YOU}}+ </text>++ <!-- 副标语 -->+ <text x="640" y="340" text-anchor="middle" fill="#666666" font-family="Microsoft YaHei, Arial, sans-serif"+ font-size="22">+ {{TAGLINE}}+ </text>++ <!-- 装饰分割线 -->+ <line x1="460" y1="380" x2="820" y2="380" stroke="#0066B3" stroke-width="2" />+ <circle cx="640" cy="380" r="6" fill="#00A86B" />+ <circle cx="460" cy="380" r="4" fill="#0066B3" />+ <circle cx="820" cy="380" r="4" fill="#0066B3" />++ <!-- ==================== 联系信息区域 ==================== -->+ <rect x="340" y="420" width="600" height="150" fill="#F5F7FA" rx="8" />+ <!-- 左侧装饰条 -->+ <rect x="340" y="420" width="6" height="150" fill="#0066B3" rx="3" />++ <!-- 联系信息 -->+ <text x="640" y="470" text-anchor="middle" fill="#004080" font-family="Microsoft YaHei, Arial, sans-serif"+ font-size="20" font-weight="bold">+ {{INSTITUTION}}+ </text>+ <text x="640" y="510" text-anchor="middle" fill="#333333" font-family="Microsoft YaHei, Arial, sans-serif"+ font-size="16">+ {{DEPARTMENT}}+ </text>+ <text x="640" y="545" text-anchor="middle" fill="#666666" font-family="Microsoft YaHei, Arial, sans-serif"+ font-size="14">+ {{CONTACT_INFO}}+ </text>++ <!-- ==================== 装饰元素 ==================== -->+ <!-- 左侧医疗十字装饰 -->+ <rect x="120" y="380" width="60" height="15" fill="#00A86B" fill-opacity="0.15" rx="3" />+ <rect x="142" y="358" width="15" height="60" fill="#00A86B" fill-opacity="0.15" rx="3" />++ <!-- 右侧医疗十字装饰 -->+ <rect x="1100" y="380" width="60" height="15" fill="#00A86B" fill-opacity="0.15" rx="3" />+ <rect x="1122" y="358" width="15" height="60" fill="#00A86B" fill-opacity="0.15" rx="3" />++ <!-- ==================== 底部信息 ==================== -->+ <rect x="0" y="665" width="1280" height="55" fill="#F5F7FA" />+ <rect x="0" y="665" width="1280" height="3" fill="#0066B3" />++ <text x="640" y="700" text-anchor="middle" fill="#999999" font-family="Microsoft YaHei, Arial, sans-serif"+ font-size="14">+ {{COPYRIGHT}}+ </text>+ <text x="1220" y="700" text-anchor="end" fill="#999999" font-family="Microsoft YaHei, Arial, sans-serif"+ font-size="14">+ {{PAGE_NUM}}+ </text>+</svg>\ No newline at end of filediff --git a/templates/layouts/medical_university/design_spec.md b/templates/layouts/medical_university/design_spec.mdnew file mode 100644index 00000000..6787e05c--- /dev/null+++ b/templates/layouts/medical_university/design_spec.md@@ -0,0 +1,289 @@+# 医院/医科大学模板 (Medical University Style) - 设计规范++> 适用于医院、医科大学、附属医院、医学研究机构的学术报告、病例汇报、科研成果展示等场景。++---++## 一、模板概述++| 属性 | 描述 |+| ------------ | ------------------------------------------------------------ |+| **模板名称** | medical_university(医院/医科大学模板) |+| **适用场景** | 医学学术报告、病例讨论、科研汇报、医院工作汇报、医学教育培训 |+| **设计调性** | 专业、严谨、生命感、科技感、可信赖 |+| **主题模式** | 亮色主题(白色背景 + 医学蓝标题条 + 生命绿点缀) |+| **适用机构** | 各类医疗机构(医院、医科大学、附属医院、医学研究机构) |++---++## 二、画布规范++| 属性 | 值 |+| -------------- | -------------------------- |+| **格式** | 标准 16:9 |+| **尺寸** | 1280 × 720 px |+| **viewBox** | `0 0 1280 720` |+| **页面边距** | 左右 40px,上 0px,下 35px |+| **内容安全区** | x: 40-1240, y: 70-665 |++---++## 三、配色方案++### 主色系++| 角色 | 色值 | 备注 |+| -------------- | --------- | --------------------------------- |+| **主导医学蓝** | `#0066B3` | 页眉背景、章节标题、主要标题 |+| **深医学蓝** | `#004080` | 章节页背景、重点强调 |+| **辅助绿** | `#00A86B` | 卡片边框、生命/健康相关内容、图标 |+| **强调橙** | `#FF6B35` | 重点高亮、关键数据、左侧装饰条 |+| **浅蓝背景** | `#E6F3FA` | 核心观点背景条、卡片内区块 |+| **浅绿背景** | `#E8F5EE` | 医疗相关卡片、健康数据区块 |+| **背景白** | `#FFFFFF` | 页面主背景 |++### 文字色系++| 角色 | 色值 | 用途 |+| ------------ | --------- | ---------------- |+| **白色文字** | `#FFFFFF` | 深色背景上的文字 |+| **主文字** | `#333333` | 正文内容 |+| **辅助文字** | `#666666` | 说明文字、标注 |+| **弱灰** | `#999999` | 页脚、辅助信息 |++### 中性色++| 角色 | 色值 | 用途 |+| ---------- | --------- | -------------------- |+| **卡片灰** | `#F5F7FA` | 卡片内背景、信息区块 |+| **边框灰** | `#D0D7E0` | 卡片边框、分割线 |++### 功能色++| 用途 | 色值 | 说明 |+| -------- | --------- | ------------------ |+| **成功** | `#28A745` | 正向指标、康复数据 |+| **警示** | `#FFC107` | 注意事项、提醒 |+| **危险** | `#DC3545` | 危急值、风险提示 |+| **信息** | `#17A2B8` | 信息提示、参考数据 |++### 配色变体方案++如需调整为其他医疗机构配色,可替换主色系中的对应色值:++| 机构类型 | 主导色 | 辅助色 | 强调色 | 适用场景 |+| ---------- | --------- | --------- | --------- | ---------------------- |+| 默认医学蓝 | `#0066B3` | `#00A86B` | `#FF6B35` | 综合医院、医科大学 |+| 儿童医院 | `#0099CC` | `#66CC99` | `#FF9933` | 儿童医院、儿科专科 |+| 中医院 | `#8B4513` | `#228B22` | `#DAA520` | 中医院、中医药研究机构 |+| 妇幼保健院 | `#E91E8C` | `#9C27B0` | `#FF5722` | 妇幼保健院、妇产科 |++> **使用方法**:在所有 SVG 模板文件中全局替换主色系色值即可快速切换配色方案。++---++## 四、排版体系++### 字体方案++**字体栈**: `"Microsoft YaHei", "微软雅黑", Arial, sans-serif`++### 字号层级++| 层级 | 用途 | 字号 | 字重 |+| ---- | ---------- | ---- | ------- |+| H1 | 封面主标题 | 52px | Bold |+| H2 | 页面标题 | 28px | Bold |+| H3 | 章节标题 | 52px | Bold |+| H4 | 卡片标题 | 24px | Bold |+| P | 正文内容 | 18px | Regular |+| High | 强调数据 | 36px | Bold |+| Sub | 注释/来源 | 14px | Regular |+| XS | 页码/版权 | 12px | Regular |++---++## 五、页面结构++### 通用布局++| 区域 | 位置/高度 | 内容说明 |+| ---------- | -------------- | ------------------------------------ |+| **页眉** | y=0, h=70px | 医学蓝背景 + 橙色左侧竖条 + 页面标题 |+| **观点条** | y=70, h=50px | 核心观点/摘要区域(浅蓝背景) |+| **内容区** | y=135, h=515px | 主要内容区域 |+| **页脚** | y=665, h=55px | 数据来源、机构名称、页码 |++### 装饰设计++- **左侧橙色竖条**: 强调橙 (`#FF6B35`),宽度 6px,用于页眉和卡片装饰+- **医学蓝边框**: 主导蓝 (`#0066B3`),用于卡片边框+- **绿色点缀**: 辅助绿 (`#00A86B`),用于健康/生命相关元素+- **十字/心电图装饰**: 医疗主题几何装饰元素++---++## 六、页面类型++### 1. 封面页 (01_cover.svg)++- 白色背景+- 医学蓝顶部横条 + 橙色左侧竖条装饰+- 右上角 Logo/校徽占位区域+- 居中主标题 + 副标题+- 装饰分隔线(蓝色 + 绿色圆点)+- 汇报人信息区域(姓名、科室/导师、机构)+- 底部灰色信息区(日期)++### 2. 目录页 (02_toc.svg)++- 白色背景+- 标准页眉(医学蓝 + 橙色竖条)+- 卡片式目录项布局(2列)+- 浅蓝/浅绿背景卡片 + 左侧彩色竖条+- 可选项使用虚线边框++### 3. 章节页 (02_chapter.svg)++- 深医学蓝全屏背景 (`#004080`)+- 右侧几何图形装饰(医疗主题)+- 左侧橙色竖条装饰+- 大号半透明背景编号+- 醒目白色章节标题+- 浅蓝章节描述++### 4. 内容页 (03_content.svg)++- 白色背景+- 标准页眉(医学蓝 + 橙色竖条)+- 核心观点条(浅蓝背景 + 蓝色左侧竖条)+- 灵活内容区域+- 页脚:数据来源、机构名称、页码++### 5. 结束页 (04_ending.svg)++- 白色背景+- 医学蓝顶部横条+- 居中感谢语+- 科室/联系信息+- 机构 Logo 区域++---++## 七、布局模式(推荐)++### 适用于医学报告的常见布局++| 布局名称 | 适用场景 | 特点 |+| ------------ | ---------------------- | ------------------ |+| **单栏居中** | 病例概述、主要结论 | 突出重点、层次清晰 |+| **双栏对比** | 治疗前后对比、方案比较 | 左右对称、便于比较 |+| **图文混排** | 影像资料展示、病理图片 | 图片配文字说明 |+| **数据卡片** | 检验结果、生命体征 | 多指标并列展示 |+| **时间线** | 病程记录、治疗过程 | 时间顺序清晰 |+| **流程图** | 诊疗流程、操作规范 | 步骤明确、逻辑清晰 |++---++## 八、间距规范++| 间距类型 | 值 | 用途 |+| ------------ | ---- | -------------------- |+| **页面边距** | 40px | 内容到页面边缘的距离 |+| **卡片间距** | 24px | 卡片之间的间距 |+| **元素间距** | 16px | 卡片内元素间的间距 |+| **文字行距** | 1.5 | 正文行高倍数 |+| **段落间距** | 20px | 段落之间的间距 |++---++## 九、SVG 技术约束++### 必须遵守++- viewBox 固定为 `0 0 1280 720`+- 背景使用 `<rect>` 元素+- 使用 `<tspan>` 进行文本换行+- 所有颜色使用 HEX 格式(不使用 rgba)+- 透明度使用 `fill-opacity` / `stroke-opacity`++### 禁用元素(PPT 不兼容)++| 禁用项 | 替代方案 |+| ------------------ | ---------------------- |+| `clipPath` | 不使用裁剪 |+| `mask` | 不使用遮罩 |+| `<style>` | 使用内联样式 |+| `class` / `id` | 使用内联属性 |+| `foreignObject` | 使用 `<tspan>` 换行 |+| `textPath` | 使用普通 `<text>` |+| `animate*` / `set` | 不使用动画 |+| `marker-end` | 使用 `<polygon>` 箭头 |+| `<g opacity>` | 每个元素单独设置透明度 |++---++## 十、占位符规范++| 占位符 | 用途 |+| ------------------- | -------------------- |+| `{{LOGO}}` | 校徽/院徽 |+| `{{TITLE}}` | 主标题 |+| `{{SUBTITLE}}` | 副标题 |+| `{{AUTHOR}}` | 汇报人姓名 |+| `{{DEPARTMENT}}` | 科室/院系 |+| `{{ADVISOR}}` | 指导老师 |+| `{{INSTITUTION}}` | 机构名称 |+| `{{DATE}}` | 日期 |+| `{{CHAPTER_NUM}}` | 章节编号 |+| `{{CHAPTER_TITLE}}` | 章节标题 |+| `{{CHAPTER_DESC}}` | 章节描述 |+| `{{PAGE_TITLE}}` | 页面标题 |+| `{{KEY_MESSAGE}}` | 核心观点 |+| `{{CONTENT_AREA}}` | 内容区域 |+| `{{SOURCE}}` | 数据来源 |+| `{{PAGE_NUM}}` | 页码 |+| `{{SECTION_NAME}}` | 章节名称(页脚) |+| `{{TOC_ITEM_N}}` | 目录项(N=1,2,3...) |++---++## 十一、使用说明++### 1. 复制模板到项目++```bash+cp templates/layouts/medical_university/* projects/<项目>/templates/+```++### 2. Logo 放置建议++- 封面页:右上角,尺寸约 160×50px+- 内容页:右上角页眉内,尺寸约 120×35px+- 结束页:可放大展示,居中或配合联系信息++---++## 十二、医学内容专用组件++### 数据卡片(生命体征)++```xml+<rect x="x" y="y" width="180" height="100" fill="#E8F5EE" rx="8"/>+<text x="x+90" y="y+35" text-anchor="middle" fill="#333333" font-size="14">体温</text>+<text x="x+90" y="y+70" text-anchor="middle" fill="#00A86B" font-size="28" font-weight="bold">36.5°C</text>+```++### 警示标签++```xml+<rect x="x" y="y" width="80" height="28" fill="#FFC107" rx="4"/>+<text x="x+40" y="y+19" text-anchor="middle" fill="#333333" font-size="14">注意</text>+```++### 危急值标签++```xml+<rect x="x" y="y" width="80" height="28" fill="#DC3545" rx="4"/>+<text x="x+40" y="y+19" text-anchor="middle" fill="#FFFFFF" font-size="14">危急值</text>+```diff --git a/templates/layouts/pixel_retro/01_cover.svg b/templates/layouts/pixel_retro/01_cover.svgnew file mode 100644index 00000000..6769b566--- /dev/null+++ b/templates/layouts/pixel_retro/01_cover.svg@@ -0,0 +1,138 @@+<?xml version="1.0" encoding="UTF-8"?>+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1280 720" width="1280" height="720">+ <!-- 模板: 封面页 - 像素复古风格 -->++ <defs>+ <!-- 霓虹绿发光效果 -->+ <filter id="glowGreen" x="-50%" y="-50%" width="200%" height="200%">+ <feGaussianBlur stdDeviation="4" result="blur" />+ <feMerge>+ <feMergeNode in="blur" />+ <feMergeNode in="SourceGraphic" />+ </feMerge>+ </filter>+ <!-- 赛博粉发光效果 -->+ <filter id="glowPink" x="-50%" y="-50%" width="200%" height="200%">+ <feGaussianBlur stdDeviation="3" result="blur" />+ <feMerge>+ <feMergeNode in="blur" />+ <feMergeNode in="SourceGraphic" />+ </feMerge>+ </filter>+ <!-- 电光蓝发光效果 -->+ <filter id="glowBlue" x="-50%" y="-50%" width="200%" height="200%">+ <feGaussianBlur stdDeviation="3" result="blur" />+ <feMerge>+ <feMergeNode in="blur" />+ <feMergeNode in="SourceGraphic" />+ </feMerge>+ </filter>+ </defs>++ <!-- 深空黑背景 -->+ <rect width="1280" height="720" fill="#0D1117" />++ <!-- 扫描线网格背景(低透明度) -->+ <line x1="0" y1="60" x2="1280" y2="60" stroke="#39FF14" stroke-width="1" stroke-opacity="0.1" />+ <line x1="0" y1="120" x2="1280" y2="120" stroke="#39FF14" stroke-width="1" stroke-opacity="0.1" />+ <line x1="0" y1="180" x2="1280" y2="180" stroke="#39FF14" stroke-width="1" stroke-opacity="0.1" />+ <line x1="0" y1="540" x2="1280" y2="540" stroke="#39FF14" stroke-width="1" stroke-opacity="0.1" />+ <line x1="0" y1="600" x2="1280" y2="600" stroke="#39FF14" stroke-width="1" stroke-opacity="0.1" />+ <line x1="0" y1="660" x2="1280" y2="660" stroke="#39FF14" stroke-width="1" stroke-opacity="0.1" />+ <line x1="60" y1="0" x2="60" y2="720" stroke="#39FF14" stroke-width="1" stroke-opacity="0.1" />+ <line x1="1220" y1="0" x2="1220" y2="720" stroke="#39FF14" stroke-width="1" stroke-opacity="0.1" />++ <!-- 顶部装饰线(霓虹双线) -->+ <rect x="40" y="30" width="1200" height="8" fill="#39FF14" fill-opacity="0.8" />+ <rect x="40" y="42" width="1200" height="4" fill="#39FF14" fill-opacity="0.4" />++ <!-- 左上角像素装饰 -->+ <rect x="40" y="60" width="16" height="16" fill="#39FF14" />+ <rect x="60" y="60" width="16" height="16" fill="#39FF14" fill-opacity="0.6" />+ <rect x="80" y="60" width="16" height="16" fill="#39FF14" fill-opacity="0.3" />++ <!-- 右上角像素装饰 -->+ <rect x="1184" y="60" width="16" height="16" fill="#FF2E97" fill-opacity="0.3" />+ <rect x="1204" y="60" width="16" height="16" fill="#FF2E97" fill-opacity="0.6" />+ <rect x="1224" y="60" width="16" height="16" fill="#FF2E97" />++ <!-- 中央像素风控制台图形 -->+ <g transform="translate(540, 140)">+ <!-- 控制台外壳 -->+ <rect x="0" y="0" width="200" height="80" fill="#161B22" stroke="#39FF14" stroke-width="3" rx="8" />+ <!-- 左侧按钮(绿色发光) -->+ <rect x="25" y="20" width="40" height="40" fill="#0D1117" stroke="#8B949E" stroke-width="2" rx="4" />+ <circle cx="45" cy="40" r="12" fill="#39FF14" filter="url(#glowGreen)" />+ <!-- 右侧按钮(粉色方块) -->+ <rect x="135" y="20" width="40" height="40" fill="#0D1117" stroke="#8B949E" stroke-width="2" rx="4" />+ <rect x="147" y="32" width="16" height="16" fill="#FF2E97" />+ <!-- 中间连接条 -->+ <rect x="85" y="35" width="30" height="10" fill="#00D4FF" rx="2" />+ </g>++ <!-- 主标题(霓虹发光) -->+ <text x="640" y="320" text-anchor="middle" font-family="Consolas, Monaco, monospace" font-size="52" font-weight="bold" fill="#39FF14" filter="url(#glowGreen)">+ {{TITLE}}+ </text>++ <!-- 副标题 -->+ <text x="640" y="380" text-anchor="middle" font-family="-apple-system, BlinkMacSystemFont, Segoe UI, Microsoft YaHei, sans-serif" font-size="28" fill="#E6EDF3">+ {{SUBTITLE}}+ </text>++ <!-- 分隔线 -->+ <rect x="440" y="410" width="400" height="3" fill="#00D4FF" fill-opacity="0.8" />++ <!-- 功能按钮组 -->+ <g transform="translate(290, 460)">+ <rect x="0" y="0" width="140" height="40" fill="#161B22" stroke="#39FF14" stroke-width="2" />+ <text x="70" y="27" text-anchor="middle" font-family="Consolas, monospace" font-size="16" fill="#39FF14">💾 SAVE</text>+ </g>+ <g transform="translate(450, 460)">+ <rect x="0" y="0" width="140" height="40" fill="#161B22" stroke="#00D4FF" stroke-width="2" />+ <text x="70" y="27" text-anchor="middle" font-family="Consolas, monospace" font-size="16" fill="#00D4FF">🔀 BRANCH</text>+ </g>+ <g transform="translate(610, 460)">+ <rect x="0" y="0" width="140" height="40" fill="#161B22" stroke="#FF2E97" stroke-width="2" />+ <text x="70" y="27" text-anchor="middle" font-family="Consolas, monospace" font-size="16" fill="#FF2E97">⏪ REVERT</text>+ </g>+ <g transform="translate(770, 460)">+ <rect x="0" y="0" width="140" height="40" fill="#161B22" stroke="#FFD700" stroke-width="2" />+ <text x="70" y="27" text-anchor="middle" font-family="Consolas, monospace" font-size="16" fill="#FFD700">🤝 COLLAB</text>+ </g>++ <!-- 底部提示语 -->+ <text x="640" y="580" text-anchor="middle" font-family="Consolas, Monaco, monospace" font-size="24" fill="#8B949E">+ ▶ PRESS START TO LEARN ◀+ </text>++ <!-- 作者/单位信息 -->+ <text x="640" y="620" text-anchor="middle" font-family="-apple-system, Microsoft YaHei, sans-serif" font-size="18" fill="#8B949E">+ {{AUTHOR}}+ </text>++ <!-- 左下角像素装饰 -->+ <rect x="40" y="640" width="12" height="12" fill="#39FF14" />+ <rect x="56" y="640" width="12" height="12" fill="#39FF14" fill-opacity="0.6" />+ <rect x="72" y="640" width="12" height="12" fill="#39FF14" fill-opacity="0.3" />++ <!-- 右下角像素装饰 -->+ <rect x="1196" y="640" width="12" height="12" fill="#FF2E97" fill-opacity="0.3" />+ <rect x="1212" y="640" width="12" height="12" fill="#FF2E97" fill-opacity="0.6" />+ <rect x="1228" y="640" width="12" height="12" fill="#FF2E97" />++ <!-- 版本号 -->+ <text x="1200" y="660" text-anchor="end" font-family="Consolas, monospace" font-size="14" fill="#8B949E">+ {{VERSION}}+ </text>++ <!-- 页码 -->+ <text x="60" y="660" font-family="Consolas, monospace" font-size="14" fill="#8B949E">+ 01/{{TOTAL_PAGES}}+ </text>++ <!-- 底部装饰线(霓虹双线) -->+ <rect x="40" y="680" width="1200" height="4" fill="#39FF14" fill-opacity="0.4" />+ <rect x="40" y="688" width="1200" height="8" fill="#39FF14" fill-opacity="0.8" />++</svg>diff --git a/templates/layouts/pixel_retro/02_chapter.svg b/templates/layouts/pixel_retro/02_chapter.svgnew file mode 100644index 00000000..96216446--- /dev/null+++ b/templates/layouts/pixel_retro/02_chapter.svg@@ -0,0 +1,130 @@+<?xml version="1.0" encoding="UTF-8"?>+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1280 720" width="1280" height="720">+ <!-- 模板: 章节页 - 像素复古风格 -->++ <defs>+ <filter id="glowGreen" x="-50%" y="-50%" width="200%" height="200%">+ <feGaussianBlur stdDeviation="6" result="blur" />+ <feMerge>+ <feMergeNode in="blur" />+ <feMergeNode in="SourceGraphic" />+ </feMerge>+ </filter>+ <filter id="glowBlue" x="-50%" y="-50%" width="200%" height="200%">+ <feGaussianBlur stdDeviation="4" result="blur" />+ <feMerge>+ <feMergeNode in="blur" />+ <feMergeNode in="SourceGraphic" />+ </feMerge>+ </filter>+ </defs>++ <!-- 深空黑背景 -->+ <rect width="1280" height="720" fill="#0D1117" />++ <!-- 背景扫描线(低透明度) -->+ <line x1="0" y1="100" x2="1280" y2="100" stroke="#39FF14" stroke-width="1" stroke-opacity="0.05" />+ <line x1="0" y1="200" x2="1280" y2="200" stroke="#39FF14" stroke-width="1" stroke-opacity="0.05" />+ <line x1="0" y1="300" x2="1280" y2="300" stroke="#39FF14" stroke-width="1" stroke-opacity="0.05" />+ <line x1="0" y1="400" x2="1280" y2="400" stroke="#39FF14" stroke-width="1" stroke-opacity="0.05" />+ <line x1="0" y1="500" x2="1280" y2="500" stroke="#39FF14" stroke-width="1" stroke-opacity="0.05" />+ <line x1="0" y1="600" x2="1280" y2="600" stroke="#39FF14" stroke-width="1" stroke-opacity="0.05" />++ <!-- 顶部装饰线(粗) -->+ <rect x="0" y="0" width="1280" height="8" fill="#39FF14" fill-opacity="0.8" />+ <rect x="0" y="8" width="1280" height="4" fill="#39FF14" fill-opacity="0.4" />++ <!-- 左侧装饰竖线 -->+ <rect x="60" y="100" width="4" height="520" fill="#39FF14" fill-opacity="0.3" />+ <rect x="80" y="150" width="2" height="420" fill="#00D4FF" fill-opacity="0.2" />++ <!-- 大号章节编号区域 -->+ <g transform="translate(150, 200)">+ <!-- 编号背景框 -->+ <rect x="0" y="0" width="200" height="200" fill="#161B22" stroke="#39FF14" stroke-width="4" />+ <!-- 像素角装饰 -->+ <rect x="-8" y="-8" width="24" height="8" fill="#39FF14" />+ <rect x="-8" y="-8" width="8" height="24" fill="#39FF14" />+ <rect x="184" y="-8" width="24" height="8" fill="#39FF14" />+ <rect x="200" y="-8" width="8" height="24" fill="#39FF14" />+ <rect x="-8" y="200" width="24" height="8" fill="#39FF14" />+ <rect x="-8" y="184" width="8" height="24" fill="#39FF14" />+ <rect x="184" y="200" width="24" height="8" fill="#39FF14" />+ <rect x="200" y="184" width="8" height="24" fill="#39FF14" />+ <!-- 章节编号 -->+ <text x="100" y="140" text-anchor="middle" font-family="Consolas, Monaco, monospace" font-size="96" font-weight="bold" fill="#39FF14" filter="url(#glowGreen)">+ {{CHAPTER_NUM}}+ </text>+ </g>++ <!-- 章节标题区域 -->+ <g transform="translate(420, 240)">+ <!-- 标题标签 -->+ <rect x="0" y="0" width="120" height="30" fill="#39FF14" />+ <text x="60" y="22" text-anchor="middle" font-family="Consolas, monospace" font-size="14" font-weight="bold" fill="#0D1117">CHAPTER</text>++ <!-- 主标题 -->+ <text x="0" y="90" font-family="Consolas, Monaco, monospace" font-size="48" font-weight="bold" fill="#FFFFFF">+ {{CHAPTER_TITLE}}+ </text>++ <!-- 英文副标题 -->+ <text x="0" y="140" font-family="-apple-system, BlinkMacSystemFont, Segoe UI, sans-serif" font-size="24" fill="#8B949E">+ {{CHAPTER_TITLE_EN}}+ </text>++ <!-- 装饰线 -->+ <rect x="0" y="160" width="400" height="3" fill="#00D4FF" fill-opacity="0.6" />+ </g>++ <!-- 右侧装饰元素 -->+ <g transform="translate(1000, 150)">+ <!-- 像素方块矩阵 -->+ <rect x="0" y="0" width="20" height="20" fill="#39FF14" fill-opacity="0.8" />+ <rect x="25" y="0" width="20" height="20" fill="#39FF14" fill-opacity="0.5" />+ <rect x="50" y="0" width="20" height="20" fill="#39FF14" fill-opacity="0.3" />+ <rect x="0" y="25" width="20" height="20" fill="#39FF14" fill-opacity="0.5" />+ <rect x="25" y="25" width="20" height="20" fill="#39FF14" fill-opacity="0.3" />+ <rect x="0" y="50" width="20" height="20" fill="#39FF14" fill-opacity="0.3" />++ <!-- 粉色像素矩阵 -->+ <rect x="150" y="300" width="20" height="20" fill="#FF2E97" fill-opacity="0.3" />+ <rect x="175" y="300" width="20" height="20" fill="#FF2E97" fill-opacity="0.5" />+ <rect x="200" y="300" width="20" height="20" fill="#FF2E97" fill-opacity="0.8" />+ <rect x="175" y="325" width="20" height="20" fill="#FF2E97" fill-opacity="0.3" />+ <rect x="200" y="325" width="20" height="20" fill="#FF2E97" fill-opacity="0.5" />+ <rect x="200" y="350" width="20" height="20" fill="#FF2E97" fill-opacity="0.3" />+ </g>++ <!-- 底部信息栏 -->+ <g transform="translate(60, 580)">+ <!-- 进度条背景 -->+ <rect x="0" y="0" width="1160" height="40" fill="#161B22" stroke="#30363D" stroke-width="1" />+ <!-- 进度填充(示例为章节1,20%) -->+ <rect x="2" y="2" width="232" height="36" fill="#39FF14" fill-opacity="0.3" />+ <!-- 章节指示器 -->+ <circle cx="116" cy="20" r="8" fill="#39FF14" />+ <text x="116" y="24" text-anchor="middle" font-family="Consolas, monospace" font-size="10" fill="#0D1117" font-weight="bold">1</text>++ <circle cx="348" cy="20" r="8" fill="#30363D" />+ <text x="348" y="24" text-anchor="middle" font-family="Consolas, monospace" font-size="10" fill="#8B949E">2</text>++ <circle cx="580" cy="20" r="8" fill="#30363D" />+ <text x="580" y="24" text-anchor="middle" font-family="Consolas, monospace" font-size="10" fill="#8B949E">3</text>++ <circle cx="812" cy="20" r="8" fill="#30363D" />+ <text x="812" y="24" text-anchor="middle" font-family="Consolas, monospace" font-size="10" fill="#8B949E">4</text>++ <circle cx="1044" cy="20" r="8" fill="#30363D" />+ <text x="1044" y="24" text-anchor="middle" font-family="Consolas, monospace" font-size="10" fill="#8B949E">5</text>+ </g>++ <!-- 底部装饰线 -->+ <rect x="0" y="712" width="1280" height="4" fill="#39FF14" fill-opacity="0.4" />+ <rect x="0" y="716" width="1280" height="4" fill="#39FF14" fill-opacity="0.8" />++ <!-- 页码 -->+ <text x="60" y="680" font-family="Consolas, monospace" font-size="14" fill="#8B949E">{{PAGE_NUM}}/{{TOTAL_PAGES}}</text>+ <text x="1220" y="680" text-anchor="end" font-family="Consolas, monospace" font-size="14" fill="#39FF14">LOADING...</text>++</svg>diff --git a/templates/layouts/pixel_retro/02_toc.svg b/templates/layouts/pixel_retro/02_toc.svgnew file mode 100644index 00000000..5164f600--- /dev/null+++ b/templates/layouts/pixel_retro/02_toc.svg@@ -0,0 +1,130 @@+<?xml version="1.0" encoding="UTF-8"?>+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1280 720" width="1280" height="720">+ <!-- 模板: 目录页 - 像素复古风格 -->++ <defs>+ <filter id="glowGreen" x="-50%" y="-50%" width="200%" height="200%">+ <feGaussianBlur stdDeviation="3" result="blur" />+ <feMerge>+ <feMergeNode in="blur" />+ <feMergeNode in="SourceGraphic" />+ </feMerge>+ </filter>+ </defs>++ <!-- 深空黑背景 -->+ <rect width="1280" height="720" fill="#0D1117" />++ <!-- 顶部装饰线 -->+ <rect x="0" y="0" width="1280" height="4" fill="#39FF14" fill-opacity="0.8" />+ <rect x="0" y="4" width="1280" height="2" fill="#39FF14" fill-opacity="0.4" />++ <!-- 页面标题 -->+ <text x="60" y="70" font-family="Consolas, Monaco, monospace" font-size="36" font-weight="bold" fill="#39FF14" filter="url(#glowGreen)">+ 📍 {{PAGE_TITLE}}+ </text>+ <text x="60" y="100" font-family="-apple-system, BlinkMacSystemFont, Segoe UI, Microsoft YaHei, sans-serif" font-size="18" fill="#8B949E">+ {{PAGE_TITLE_EN}}+ </text>++ <!-- 分隔线 -->+ <rect x="60" y="120" width="200" height="2" fill="#30363D" />++ <!-- 目录区域 -->+ <g transform="translate(60, 160)">++ <!-- 第一章节 - 关键必学 -->+ <g transform="translate(0, 0)">+ <rect x="0" y="0" width="560" height="80" fill="#161B22" stroke="#39FF14" stroke-width="2" />+ <!-- 重要度标签 -->+ <rect x="0" y="0" width="100" height="24" fill="#FF2E97" />+ <text x="50" y="17" text-anchor="middle" font-family="Consolas, monospace" font-size="12" fill="#FFFFFF" font-weight="bold">🔴 关键必学</text>+ <!-- 章节序号 -->+ <rect x="20" y="35" width="40" height="40" fill="#39FF14" />+ <text x="40" y="62" text-anchor="middle" font-family="Consolas, monospace" font-size="24" font-weight="bold" fill="#0D1117">01</text>+ <!-- 章节标题 -->+ <text x="80" y="60" font-family="-apple-system, Microsoft YaHei, sans-serif" font-size="20" fill="#E6EDF3">{{TOC_ITEM_1}}</text>+ </g>++ <!-- 第二章节 -->+ <g transform="translate(0, 100)">+ <rect x="0" y="0" width="560" height="80" fill="#161B22" stroke="#00D4FF" stroke-width="2" />+ <rect x="0" y="0" width="100" height="24" fill="#FF2E97" />+ <text x="50" y="17" text-anchor="middle" font-family="Consolas, monospace" font-size="12" fill="#FFFFFF" font-weight="bold">🔴 关键必学</text>+ <rect x="20" y="35" width="40" height="40" fill="#00D4FF" />+ <text x="40" y="62" text-anchor="middle" font-family="Consolas, monospace" font-size="24" font-weight="bold" fill="#0D1117">02</text>+ <text x="80" y="60" font-family="-apple-system, Microsoft YaHei, sans-serif" font-size="20" fill="#E6EDF3">{{TOC_ITEM_2}}</text>+ </g>++ <!-- 第三章节 - 建议了解 -->+ <g transform="translate(0, 200)">+ <rect x="0" y="0" width="560" height="80" fill="#161B22" stroke="#FFD700" stroke-width="2" />+ <rect x="0" y="0" width="100" height="24" fill="#FFD700" />+ <text x="50" y="17" text-anchor="middle" font-family="Consolas, monospace" font-size="12" fill="#0D1117" font-weight="bold">🟡 建议了解</text>+ <rect x="20" y="35" width="40" height="40" fill="#FFD700" />+ <text x="40" y="62" text-anchor="middle" font-family="Consolas, monospace" font-size="24" font-weight="bold" fill="#0D1117">03</text>+ <text x="80" y="60" font-family="-apple-system, Microsoft YaHei, sans-serif" font-size="20" fill="#E6EDF3">{{TOC_ITEM_3}}</text>+ </g>++ <!-- 第四章节 - 可选内容 -->+ <g transform="translate(0, 300)">+ <rect x="0" y="0" width="560" height="80" fill="#161B22" stroke="#8B949E" stroke-width="2" />+ <rect x="0" y="0" width="100" height="24" fill="#238636" />+ <text x="50" y="17" text-anchor="middle" font-family="Consolas, monospace" font-size="12" fill="#FFFFFF" font-weight="bold">🟢 可选内容</text>+ <rect x="20" y="35" width="40" height="40" fill="#238636" />+ <text x="40" y="62" text-anchor="middle" font-family="Consolas, monospace" font-size="24" font-weight="bold" fill="#FFFFFF">04</text>+ <text x="80" y="60" font-family="-apple-system, Microsoft YaHei, sans-serif" font-size="20" fill="#8B949E">{{TOC_ITEM_4}}</text>+ </g>++ </g>++ <!-- 右侧装饰区域 -->+ <g transform="translate(680, 160)">+ <rect x="0" y="0" width="540" height="380" fill="#161B22" stroke="#30363D" stroke-width="2" stroke-dasharray="8 4" />++ <!-- 进度指示 -->+ <text x="270" y="50" text-anchor="middle" font-family="Consolas, monospace" font-size="20" fill="#00D4FF">📊 学习进度</text>++ <!-- 进度条 -->+ <rect x="40" y="80" width="460" height="30" fill="#0D1117" stroke="#30363D" stroke-width="1" />+ <rect x="42" y="82" width="0" height="26" fill="#39FF14" fill-opacity="0.8" />+ <text x="270" y="102" text-anchor="middle" font-family="Consolas, monospace" font-size="14" fill="#8B949E">0% 完成</text>++ <!-- 统计信息 -->+ <g transform="translate(40, 140)">+ <rect x="0" y="0" width="140" height="80" fill="#0D1117" stroke="#39FF14" stroke-width="2" />+ <text x="70" y="35" text-anchor="middle" font-family="Consolas, monospace" font-size="32" font-weight="bold" fill="#39FF14">{{STAT_1}}</text>+ <text x="70" y="60" text-anchor="middle" font-family="-apple-system, Microsoft YaHei, sans-serif" font-size="14" fill="#8B949E">关键内容</text>+ </g>+ <g transform="translate(160, 140)">+ <rect x="0" y="0" width="140" height="80" fill="#0D1117" stroke="#FFD700" stroke-width="2" />+ <text x="70" y="35" text-anchor="middle" font-family="Consolas, monospace" font-size="32" font-weight="bold" fill="#FFD700">{{STAT_2}}</text>+ <text x="70" y="60" text-anchor="middle" font-family="-apple-system, Microsoft YaHei, sans-serif" font-size="14" fill="#8B949E">建议了解</text>+ </g>+ <g transform="translate(320, 140)">+ <rect x="0" y="0" width="140" height="80" fill="#0D1117" stroke="#238636" stroke-width="2" />+ <text x="70" y="35" text-anchor="middle" font-family="Consolas, monospace" font-size="32" font-weight="bold" fill="#238636">{{STAT_3}}</text>+ <text x="70" y="60" text-anchor="middle" font-family="-apple-system, Microsoft YaHei, sans-serif" font-size="14" fill="#8B949E">可选内容</text>+ </g>++ <!-- 提示信息 -->+ <text x="270" y="280" text-anchor="middle" font-family="Consolas, monospace" font-size="14" fill="#8B949E">+ █ 点击章节开始学习+ </text>++ <!-- 开始按钮 -->+ <g transform="translate(170, 300)">+ <rect x="0" y="0" width="200" height="50" fill="#39FF14" />+ <text x="100" y="33" text-anchor="middle" font-family="Consolas, monospace" font-size="18" font-weight="bold" fill="#0D1117">▶ START</text>+ </g>+ </g>++ <!-- 底部装饰线 -->+ <rect x="0" y="712" width="1280" height="4" fill="#39FF14" fill-opacity="0.4" />+ <rect x="0" y="716" width="1280" height="4" fill="#39FF14" fill-opacity="0.8" />++ <!-- 页码 -->+ <text x="60" y="690" font-family="Consolas, monospace" font-size="14" fill="#8B949E">02/{{TOTAL_PAGES}}</text>+ <text x="1220" y="690" text-anchor="end" font-family="Consolas, monospace" font-size="14" fill="#8B949E">Table of Contents</text>++</svg>diff --git a/templates/layouts/pixel_retro/03_content.svg b/templates/layouts/pixel_retro/03_content.svgnew file mode 100644index 00000000..f33c29a5--- /dev/null+++ b/templates/layouts/pixel_retro/03_content.svg@@ -0,0 +1,46 @@+<?xml version="1.0" encoding="UTF-8"?>+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1280 720" width="1280" height="720">+ <!-- 模板: 内容页 - 像素复古风格 -->+ <!-- 内容区域保持开放,供 Executor 自由发挥 -->++ <defs>+ <filter id="glowGreen" x="-50%" y="-50%" width="200%" height="200%">+ <feGaussianBlur stdDeviation="3" result="blur" />+ <feMerge>+ <feMergeNode in="blur" />+ <feMergeNode in="SourceGraphic" />+ </feMerge>+ </filter>+ </defs>++ <!-- 深空黑背景 -->+ <rect width="1280" height="720" fill="#0D1117" />++ <!-- 顶部装饰线 -->+ <rect x="0" y="0" width="1280" height="4" fill="#39FF14" fill-opacity="0.6" />++ <!-- 页面标题 -->+ <text x="60" y="70" font-family="Consolas, Monaco, monospace" font-size="36" font-weight="bold" fill="#39FF14" filter="url(#glowGreen)">+ {{PAGE_TITLE}}+ </text>+ <text x="60" y="100" font-family="-apple-system, BlinkMacSystemFont, Segoe UI, Microsoft YaHei, sans-serif" font-size="18" fill="#8B949E">+ {{PAGE_TITLE_EN}}+ </text>++ <!-- 分隔线 -->+ <rect x="60" y="120" width="200" height="2" fill="#30363D" />++ <!-- ============================================ -->+ <!-- 内容区域: y=140 到 y=670, x=60 到 x=1220 -->+ <!-- 宽度: 1160px, 高度: 530px -->+ <!-- 此区域由 Executor 自由设计内容 -->+ <!-- ============================================ -->++ <!-- 底部装饰线 -->+ <rect x="0" y="716" width="1280" height="4" fill="#39FF14" fill-opacity="0.6" />++ <!-- 页码 -->+ <text x="60" y="690" font-family="Consolas, monospace" font-size="14" fill="#8B949E">{{PAGE_NUM}}/{{TOTAL_PAGES}}</text>+ <text x="1220" y="690" text-anchor="end" font-family="Consolas, monospace" font-size="14" fill="#8B949E">{{PAGE_SUBTITLE}}</text>++</svg>diff --git a/templates/layouts/pixel_retro/04_ending.svg b/templates/layouts/pixel_retro/04_ending.svgnew file mode 100644index 00000000..772b55e9--- /dev/null+++ b/templates/layouts/pixel_retro/04_ending.svg@@ -0,0 +1,167 @@+<?xml version="1.0" encoding="UTF-8"?>+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1280 720" width="1280" height="720">+ <!-- 模板: 结束页 - 像素复古风格 -->++ <defs>+ <filter id="glowGreen" x="-50%" y="-50%" width="200%" height="200%">+ <feGaussianBlur stdDeviation="4" result="blur" />+ <feMerge>+ <feMergeNode in="blur" />+ <feMergeNode in="SourceGraphic" />+ </feMerge>+ </filter>+ <filter id="glowYellow" x="-50%" y="-50%" width="200%" height="200%">+ <feGaussianBlur stdDeviation="3" result="blur" />+ <feMerge>+ <feMergeNode in="blur" />+ <feMergeNode in="SourceGraphic" />+ </feMerge>+ </filter>+ </defs>++ <!-- 深空黑背景 -->+ <rect width="1280" height="720" fill="#0D1117" />++ <!-- 顶部装饰线(加粗) -->+ <rect x="0" y="0" width="1280" height="4" fill="#39FF14" fill-opacity="0.8" />+ <rect x="0" y="4" width="1280" height="2" fill="#39FF14" fill-opacity="0.4" />++ <!-- 背景扫描线 -->+ <line x1="0" y1="120" x2="1280" y2="120" stroke="#39FF14" stroke-width="1" stroke-opacity="0.05" />+ <line x1="0" y1="240" x2="1280" y2="240" stroke="#39FF14" stroke-width="1" stroke-opacity="0.05" />+ <line x1="0" y1="360" x2="1280" y2="360" stroke="#39FF14" stroke-width="1" stroke-opacity="0.05" />+ <line x1="0" y1="480" x2="1280" y2="480" stroke="#39FF14" stroke-width="1" stroke-opacity="0.05" />+ <line x1="0" y1="600" x2="1280" y2="600" stroke="#39FF14" stroke-width="1" stroke-opacity="0.05" />++ <!-- 主标题(霓虹发光) -->+ <text x="640" y="80" text-anchor="middle" font-family="Consolas, Monaco, monospace" font-size="48" font-weight="bold" fill="#39FF14" filter="url(#glowGreen)">+ 🎯 {{END_TITLE}}+ </text>+ <text x="640" y="115" text-anchor="middle" font-family="-apple-system, BlinkMacSystemFont, Segoe UI, Microsoft YaHei, sans-serif" font-size="20" fill="#8B949E">+ {{END_SUBTITLE}}+ </text>++ <!-- 三栏总结卡片 -->++ <!-- 卡片 1 -->+ <g transform="translate(60, 160)">+ <rect x="0" y="0" width="380" height="280" fill="#161B22" stroke="#39FF14" stroke-width="3" />+ <!-- 序号方块 -->+ <rect x="0" y="0" width="60" height="60" fill="#39FF14" />+ <text x="30" y="42" text-anchor="middle" font-family="Consolas, monospace" font-size="32" font-weight="bold" fill="#0D1117">1</text>+ <!-- 标题 -->+ <text x="80" y="40" font-family="Consolas, monospace" font-size="22" font-weight="bold" fill="#39FF14">{{SUMMARY_1_TITLE}}</text>+ <!-- 分隔线 -->+ <rect x="20" y="70" width="340" height="2" fill="#30363D" />+ <!-- 内容 -->+ <text x="30" y="110" font-family="-apple-system, Microsoft YaHei, sans-serif" font-size="18" fill="#E6EDF3">{{SUMMARY_1_LINE_1}}</text>+ <text x="30" y="145" font-family="-apple-system, Microsoft YaHei, sans-serif" font-size="18" fill="#E6EDF3">{{SUMMARY_1_LINE_2}}</text>+ <text x="30" y="180" font-family="-apple-system, Microsoft YaHei, sans-serif" font-size="18" fill="#E6EDF3">{{SUMMARY_1_LINE_3}}</text>+ <!-- 进度条 -->+ <rect x="30" y="220" width="320" height="25" fill="#0D1117" stroke="#30363D" stroke-width="1" />+ <rect x="32" y="222" width="288" height="21" fill="#39FF14" fill-opacity="0.8" />+ <text x="300" y="239" font-family="Consolas, monospace" font-size="14" fill="#0D1117" font-weight="bold">90%</text>+ <text x="30" y="260" font-family="Consolas, monospace" font-size="12" fill="#8B949E">{{SUMMARY_1_STAT}}</text>+ </g>++ <!-- 卡片 2 -->+ <g transform="translate(460, 160)">+ <rect x="0" y="0" width="380" height="280" fill="#161B22" stroke="#00D4FF" stroke-width="3" />+ <rect x="0" y="0" width="60" height="60" fill="#00D4FF" />+ <text x="30" y="42" text-anchor="middle" font-family="Consolas, monospace" font-size="32" font-weight="bold" fill="#0D1117">2</text>+ <text x="80" y="40" font-family="Consolas, monospace" font-size="22" font-weight="bold" fill="#00D4FF">{{SUMMARY_2_TITLE}}</text>+ <rect x="20" y="70" width="340" height="2" fill="#30363D" />+ <!-- 功能列表 -->+ <g transform="translate(30, 90)">+ <rect x="0" y="0" width="320" height="35" fill="#0D1117" stroke="#30363D" stroke-width="1" />+ <text x="15" y="24" font-family="-apple-system, Microsoft YaHei, sans-serif" font-size="16" fill="#E6EDF3">{{FEATURE_1}}</text>++ <rect x="0" y="42" width="320" height="35" fill="#0D1117" stroke="#30363D" stroke-width="1" />+ <text x="15" y="66" font-family="-apple-system, Microsoft YaHei, sans-serif" font-size="16" fill="#E6EDF3">{{FEATURE_2}}</text>++ <rect x="0" y="84" width="320" height="35" fill="#0D1117" stroke="#30363D" stroke-width="1" />+ <text x="15" y="108" font-family="-apple-system, Microsoft YaHei, sans-serif" font-size="16" fill="#E6EDF3">{{FEATURE_3}}</text>++ <rect x="0" y="126" width="320" height="35" fill="#0D1117" stroke="#30363D" stroke-width="1" />+ <text x="15" y="150" font-family="-apple-system, Microsoft YaHei, sans-serif" font-size="16" fill="#E6EDF3">{{FEATURE_4}}</text>+ </g>+ </g>++ <!-- 卡片 3 -->+ <g transform="translate(860, 160)">+ <rect x="0" y="0" width="380" height="280" fill="#161B22" stroke="#FF2E97" stroke-width="3" />+ <rect x="0" y="0" width="60" height="60" fill="#FF2E97" />+ <text x="30" y="42" text-anchor="middle" font-family="Consolas, monospace" font-size="32" font-weight="bold" fill="#0D1117">3</text>+ <text x="80" y="40" font-family="Consolas, monospace" font-size="22" font-weight="bold" fill="#FF2E97">{{SUMMARY_3_TITLE}}</text>+ <rect x="20" y="70" width="340" height="2" fill="#30363D" />+ <!-- 对比表格 -->+ <g transform="translate(30, 90)">+ <!-- 表头 -->+ <rect x="0" y="0" width="155" height="35" fill="#39FF14" fill-opacity="0.2" />+ <text x="77" y="24" text-anchor="middle" font-family="Consolas, monospace" font-size="16" fill="#39FF14" font-weight="bold">{{COMPARE_A}}</text>+ <rect x="165" y="0" width="155" height="35" fill="#FF2E97" fill-opacity="0.2" />+ <text x="242" y="24" text-anchor="middle" font-family="Consolas, monospace" font-size="16" fill="#FF2E97" font-weight="bold">{{COMPARE_B}}</text>+ <!-- 行 1 -->+ <rect x="0" y="42" width="155" height="35" fill="#0D1117" stroke="#30363D" stroke-width="1" />+ <text x="77" y="66" text-anchor="middle" font-family="-apple-system, Microsoft YaHei, sans-serif" font-size="14" fill="#E6EDF3">{{ROW_1_A}}</text>+ <rect x="165" y="42" width="155" height="35" fill="#0D1117" stroke="#30363D" stroke-width="1" />+ <text x="242" y="66" text-anchor="middle" font-family="-apple-system, Microsoft YaHei, sans-serif" font-size="14" fill="#E6EDF3">{{ROW_1_B}}</text>+ <!-- 行 2 -->+ <rect x="0" y="84" width="155" height="35" fill="#0D1117" stroke="#30363D" stroke-width="1" />+ <text x="77" y="108" text-anchor="middle" font-family="-apple-system, Microsoft YaHei, sans-serif" font-size="14" fill="#E6EDF3">{{ROW_2_A}}</text>+ <rect x="165" y="84" width="155" height="35" fill="#0D1117" stroke="#30363D" stroke-width="1" />+ <text x="242" y="108" text-anchor="middle" font-family="-apple-system, Microsoft YaHei, sans-serif" font-size="14" fill="#E6EDF3">{{ROW_2_B}}</text>+ <!-- 行 3 -->+ <rect x="0" y="126" width="155" height="35" fill="#0D1117" stroke="#30363D" stroke-width="1" />+ <text x="77" y="150" text-anchor="middle" font-family="-apple-system, Microsoft YaHei, sans-serif" font-size="14" fill="#E6EDF3">{{ROW_3_A}}</text>+ <rect x="165" y="126" width="155" height="35" fill="#0D1117" stroke="#30363D" stroke-width="1" />+ <text x="242" y="150" text-anchor="middle" font-family="-apple-system, Microsoft YaHei, sans-serif" font-size="14" fill="#E6EDF3">{{ROW_3_B}}</text>+ </g>+ </g>++ <!-- 结束语卡片 -->+ <g transform="translate(60, 480)">+ <rect x="0" y="0" width="1160" height="120" fill="#161B22" stroke="#FFD700" stroke-width="3" />+ <!-- 顶部高亮条 -->+ <rect x="0" y="0" width="1160" height="50" fill="#FFD700" fill-opacity="0.1" />+ <text x="580" y="35" text-anchor="middle" font-family="Consolas, monospace" font-size="24" fill="#FFD700" filter="url(#glowYellow)">+ 🎮 {{CTA_TEXT}}+ </text>+ <!-- 说明文字 -->+ <text x="580" y="80" text-anchor="middle" font-family="-apple-system, Microsoft YaHei, sans-serif" font-size="18" fill="#E6EDF3">+ {{CTA_DESCRIPTION}}+ </text>+ <!-- 按钮组 -->+ <g transform="translate(400, 90)">+ <rect x="0" y="0" width="180" height="25" fill="#39FF14" stroke="#39FF14" stroke-width="2" />+ <text x="90" y="18" text-anchor="middle" font-family="Consolas, monospace" font-size="14" fill="#0D1117" font-weight="bold">GAME SAVED ✓</text>+ </g>+ <g transform="translate(600, 90)">+ <rect x="0" y="0" width="180" height="25" fill="#0D1117" stroke="#39FF14" stroke-width="2" />+ <text x="90" y="18" text-anchor="middle" font-family="Consolas, monospace" font-size="14" fill="#39FF14">CONTINUE →</text>+ </g>+ </g>++ <!-- 底部装饰线 -->+ <rect x="0" y="712" width="1280" height="4" fill="#39FF14" fill-opacity="0.4" />+ <rect x="0" y="716" width="1280" height="4" fill="#39FF14" fill-opacity="0.8" />++ <!-- 左下角像素装饰 -->+ <rect x="40" y="640" width="12" height="12" fill="#39FF14" />+ <rect x="56" y="640" width="12" height="12" fill="#39FF14" fill-opacity="0.6" />+ <rect x="72" y="640" width="12" height="12" fill="#39FF14" fill-opacity="0.3" />++ <!-- 右下角像素装饰 -->+ <rect x="1196" y="640" width="12" height="12" fill="#FF2E97" fill-opacity="0.3" />+ <rect x="1212" y="640" width="12" height="12" fill="#FF2E97" fill-opacity="0.6" />+ <rect x="1228" y="640" width="12" height="12" fill="#FF2E97" />++ <!-- 页码 -->+ <text x="60" y="690" font-family="Consolas, monospace" font-size="14" fill="#8B949E">{{PAGE_NUM}}/{{TOTAL_PAGES}}</text>++ <!-- 结束标识 -->+ <text x="1220" y="690" text-anchor="end" font-family="Consolas, monospace" font-size="14" fill="#39FF14">+ THE END - Thank You! 🎉+ </text>++</svg>diff --git a/templates/layouts/pixel_retro/design_spec.md b/templates/layouts/pixel_retro/design_spec.mdnew file mode 100644index 00000000..b7b96ece--- /dev/null+++ b/templates/layouts/pixel_retro/design_spec.md@@ -0,0 +1,304 @@+# 像素复古模板 (Pixel Retro Style) - 设计规范++> 适用于技术分享、编程教学、游戏相关演示、极客风格内容展示等场景。++---++## 一、模板概述++| 属性 | 描述 |+| -------------- | ------------------------------------------------------ |+| **模板名称** | pixel_retro(像素复古模板) |+| **适用场景** | 技术分享、编程教学、游戏介绍、极客风格展示 |+| **设计调性** | 复古游戏、霓虹赛博、极客科技、8-bit 风格 |+| **主题模式** | 暗色主题(深空黑背景 + 霓虹强调色) |++---++## 二、画布规范++| 属性 | 值 |+| -------------- | ----------------------------- |+| **格式** | 标准 16:9 |+| **尺寸** | 1280 × 720 px |+| **viewBox** | `0 0 1280 720` |+| **页面边距** | 左右 60px,上 50px,下 40px |+| **内容安全区** | x: 60-1220, y: 50-680 |++---++## 三、配色方案++### 背景色系++| 角色 | 色值 | 备注 |+| -------------- | ----------- | -------------------------------- |+| **深空黑** | `#0D1117` | 主背景色 |+| **星夜蓝** | `#161B22` | 卡片/区块背景 |+| **暗边框** | `#30363D` | 边框/分隔线 |++### 强调色系(霓虹系)++| 角色 | 色值 | 用途 |+| -------------- | ----------- | -------------------------------- |+| **霓虹绿** | `#39FF14` | 主强调色、成功、存档点、Git |+| **赛博粉** | `#FF2E97` | 第二强调色、警示、对比、GitHub |+| **电光蓝** | `#00D4FF` | 第三强调色、链接、信息、流程 |+| **金黄色** | `#FFD700` | 第四强调色、历史、时间线、高亮 |++### 辅助色系++| 角色 | 色值 | 用途 |+| -------------- | ----------- | -------------------------------- |+| **暗绿** | `#238636` | 成功状态柔和版本 |+| **暗粉** | `#8B2252` | 柔和粉色 |+| **暗蓝** | `#1F6FEB` | 柔和蓝色 |++### 文字色系++| 角色 | 色值 | 用途 |+| -------------- | ----------- | ---------------------- |+| **月光白** | `#E6EDF3` | 主要文字 |+| **灰雾色** | `#8B949E` | 次要说明文字 |+| **纯白** | `#FFFFFF` | 强调标题 |++---++## 四、排版体系++### 字体方案++**标题字体**: `"Consolas", "Monaco", "Courier New", monospace` - 像素/代码感++**正文字体**: `-apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif`++**代码字体**: `"Cascadia Code", "Fira Code", "Consolas", monospace`++### 字号层级++| 层级 | 用途 | 字号 | 字重 |+| ---- | ---------------- | ---- | ------- |+| H1 | 封面主标题 | 52px | Bold |+| H2 | 页面大标题 | 36px | Bold |+| H3 | 模块标题/小标题 | 22px | 600 |+| P | 正文内容 | 18px | Regular |+| High | 强调数据 | 48px | Bold |+| Sub | 辅助说明 | 14px | Regular |+| Code | 代码文字 | 16px | Regular |++---++## 五、页面结构++### 通用布局++| 区域 | 位置/高度 | 内容说明 |+| ---------- | ------------- | -------------------------------------- |+| **顶部** | y=0, h=4-6px | 霓虹绿装饰线(双线效果) |+| **标题区** | y=50, h=70px | 页面标题 + 英文副标题 |+| **内容区** | y=130, h=510px| 主要内容区域 |+| **页脚** | y=680, h=40px | 页码、装饰线、进度指示 |++### 装饰元素++- **顶部装饰线**: 霓虹绿双线(主线 4px + 辅助线 2px)+- **底部装饰线**: 霓虹绿双线(辅助线 4px + 主线 4px)+- **像素方块**: 角落使用递减透明度的方块装饰(100%→60%→30%)+- **扫描线网格**: 可选的低透明度背景网格线++---++## 六、页面类型++### 1. 封面页 (01_cover.svg)++- 深空黑背景+- 顶部/底部霓虹装饰线+- 像素风控制台图形(可选)+- 主标题(霓虹绿发光效果)+- 副标题(月光白)+- 功能按钮组(横向排列)+- 底部提示语(如 "PRESS START")++### 2. 目录页 (02_toc.svg)++- 深空黑背景+- 标准顶部装饰+- 章节列表(带重要度标签)+ - 🔴 关键必学+ - 🟡 建议了解+ - 🟢 可选内容+- 像素风列表样式++### 3. 章节页 (02_chapter.svg)++- 深空黑背景+- 全屏霓虹效果+- 大号章节编号(发光效果)+- 章节标题 + 英文副标题+- 像素风装饰框++### 4. 内容页 (03_content.svg)++- 深空黑背景+- 标准顶部装饰+- 页面标题(霓虹绿 + 发光)+- 英文副标题(灰雾色)+- **内容区域完全开放**(y=140 到 y=670,宽度 1160px)+- 底部页码++> ⚠️ **设计原则**: 内容页模板仅提供页面框架(标题区 + 页脚),内容区域由 Executor 根据实际内容自由设计。可使用的布局包括但不限于:卡片、进度条、表格、时间线、对比图等。++### 5. 结束页 (04_ending.svg)++- 深空黑背景+- 霓虹发光主标题+- 总结卡片组+- "GAME SAVED" 视觉效果+- 进度按钮组++---++## 七、布局模式++| 模式 | 适用场景 |+| ------------------ | -------------------------- |+| **单栏居中** | 封面、结语、重要观点 |+| **左右分栏 (5:5)** | 对比展示(如 Git vs GitHub)|+| **双列卡片** | 功能列表、特性对比 |+| **三栏卡片** | 要点总结、项目列表 |+| **进度条展示** | 数据统计、使用率 |+| **时间线** | 历史、流程、工作流 |++---++## 八、间距规范++| 元素 | 数值 |+| ------------ | ------ |+| 卡片间距 | 20-30px|+| 内容块间距 | 30px |+| 卡片内边距 | 20-24px|+| 卡片圆角 | 0px(方块感)或 4px |+| 边框宽度 | 2-3px |+| 图标与文字 | 12px |++---++## 九、视觉特效++### 像素风格特征++- 方块化图标和装饰+- 使用 █ ▓ ░ ▀ ▄ ◼ ◻ 等字符装饰+- 进度条使用方块填充+- 边框使用双线或点状模拟+- 卡片角落添加像素装饰块++### 霓虹发光效果++对关键文字/元素添加发光滤镜:++```xml+<defs>+ <filter id="glowGreen" x="-50%" y="-50%" width="200%" height="200%">+ <feGaussianBlur stdDeviation="3-4" result="blur" />+ <feMerge>+ <feMergeNode in="blur" />+ <feMergeNode in="SourceGraphic" />+ </feMerge>+ </filter>+</defs>++<!-- 使用方式 -->+<text filter="url(#glowGreen)" fill="#39FF14">发光文字</text>+```++> ⚠️ **注意**: `filter` 效果在 PPT 中可能不完全兼容,但不会导致渲染失败。++### Emoji 使用++- 🎮 游戏/存档+- 💾 保存+- 🔀 分支/合并+- 📁 文件夹+- 📝 文档+- 🚀 发布+- ⏪ 回退+- 👾 开发者+- 🌐 网络/云端+- ✅ 确认/成功+- 🎯 目标/要点+- 🤔 问题/思考++---++## 十、SVG 技术约束++### 必须遵守++1. viewBox: `0 0 1280 720`+2. 背景使用 `<rect>` 元素+3. 文本换行使用 `<tspan>`(禁止 `<foreignObject>`)+4. 透明度使用 `fill-opacity` / `stroke-opacity`,禁止 `rgba()`+5. 禁止使用:`clipPath`、`mask`、`<style>`、`class`、`foreignObject`+6. 禁止使用:`textPath`、`animate*`、`script`、`marker`/`marker-end`+7. 箭头使用 `<polygon>` 三角形替代 `<marker>`++### PPT 兼容性规则++- 禁止 `<g opacity="...">`(组透明度),每个子元素单独设置+- 图片透明度使用遮罩层替代+- 仅使用内联样式,禁止外部 CSS 和 `@font-face`+- `filter` 效果作为增强(警告级别),不影响基础显示++---++## 十一、占位符规范++模板使用 `{{PLACEHOLDER}}` 格式的占位符,常用占位符:++| 占位符 | 说明 |+| ------------------ | ------------------ |+| `{{TITLE}}` | 主标题 |+| `{{SUBTITLE}}` | 副标题 |+| `{{AUTHOR}}` | 作者/单位 |+| `{{PAGE_TITLE}}` | 页面标题 |+| `{{PAGE_TITLE_EN}}`| 页面英文标题 |+| `{{CHAPTER_NUM}}` | 章节编号 |+| `{{PAGE_NUM}}` | 页码 |+| `{{TOTAL_PAGES}}` | 总页数 |+| `{{VERSION}}` | 版本号 |++---++## 十二、使用说明++1. 复制模板到项目 `templates/` 目录+2. 根据内容需求选择合适的页面模板+3. 使用占位符标记需要替换的内容+4. 通过 Executor 角色生成最终 SVG+5. 发光效果使用 `filter` 定义(在 `<defs>` 中)+6. 注意保持霓虹色系的一致性++---++## 十三、配色快速参考++```+背景层:+ 主背景 #0D1117 深空黑+ 卡片背景 #161B22 星夜蓝+ 边框 #30363D 暗边框++强调色(按顺序使用):+ 主强调 #39FF14 霓虹绿 ████+ 第二强调 #FF2E97 赛博粉 ████+ 第三强调 #00D4FF 电光蓝 ████+ 第四强调 #FFD700 金黄色 ████++文字:+ 主文字 #E6EDF3 月光白+ 辅助文字 #8B949E 灰雾色+ 强调文字 #FFFFFF 纯白+```diff --git a/templates/layouts/powerchina/01_cover.svg b/templates/layouts/powerchina/01_cover.svgnew file mode 100644index 00000000..a6d0bb83--- /dev/null+++ b/templates/layouts/powerchina/01_cover.svg@@ -0,0 +1,100 @@+<?xml version="1.0" encoding="UTF-8"?>+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1280 720">+ <!-- 模板: 封面页 - 中国电建经典风格 -->++ <defs>+ <!-- 深蓝渐变背景 -->+ <linearGradient id="coverBgGrad" x1="0%" y1="0%" x2="100%" y2="100%">+ <stop offset="0%" style="stop-color:#00418D;stop-opacity:1" />+ <stop offset="40%" style="stop-color:#003270;stop-opacity:1" />+ <stop offset="100%" style="stop-color:#001F45;stop-opacity:1" />+ </linearGradient>+ <!-- 顶部装饰渐变 -->+ <linearGradient id="topGrad" x1="0%" y1="0%" x2="100%" y2="0%">+ <stop offset="0%" style="stop-color:#4A90D9;stop-opacity:1" />+ <stop offset="100%" style="stop-color:#00418D;stop-opacity:1" />+ </linearGradient>+ <!-- 左侧装饰渐变 -->+ <linearGradient id="sideGrad" x1="0%" y1="0%" x2="0%" y2="100%">+ <stop offset="0%" style="stop-color:#4A90D9;stop-opacity:1" />+ <stop offset="50%" style="stop-color:#0066CC;stop-opacity:1" />+ <stop offset="100%" style="stop-color:#4A90D9;stop-opacity:1" />+ </linearGradient>+ <!-- 斜线图案 - 工程感 -->+ <pattern id="diagLines" width="40" height="40" patternUnits="userSpaceOnUse" patternTransform="rotate(45)">+ <line x1="0" y1="0" x2="0" y2="40" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.03"/>+ </pattern>+ </defs>++ <!-- 背景 -->+ <rect x="0" y="0" width="1280" height="720" fill="url(#coverBgGrad)" />++ <!-- 工程感斜线纹理 -->+ <rect x="0" y="0" width="1280" height="720" fill="url(#diagLines)" />++ <!-- 装饰元素 - 几何图案 -->+ <circle cx="1150" cy="150" r="250" fill="#FFFFFF" fill-opacity="0.02" />+ <circle cx="1200" cy="100" r="150" fill="#4A90D9" fill-opacity="0.04" />+ <circle cx="100" cy="620" r="200" fill="#FFFFFF" fill-opacity="0.02" />++ <!-- 对角线装饰 -->+ <line x1="800" y1="0" x2="1280" y2="480" stroke="#4A90D9" stroke-width="1" stroke-opacity="0.1" />+ <line x1="850" y1="0" x2="1280" y2="430" stroke="#4A90D9" stroke-width="1" stroke-opacity="0.08" />+ <line x1="900" y1="0" x2="1280" y2="380" stroke="#4A90D9" stroke-width="1" stroke-opacity="0.06" />++ <!-- 顶部渐变装饰线 -->+ <rect x="0" y="0" width="1280" height="6" fill="url(#topGrad)" />++ <!-- 左侧装饰竖条组 -->+ <rect x="0" y="150" width="10" height="420" fill="url(#sideGrad)" />+ <rect x="18" y="180" width="4" height="360" fill="#4A90D9" fill-opacity="0.5" />+ <rect x="28" y="210" width="2" height="300" fill="#4A90D9" fill-opacity="0.3" />++ <!-- 企业英文名称 - 顶部 -->+ <text x="1220" y="50" text-anchor="end" font-family="Arial, sans-serif" font-size="16" font-weight="bold" fill="#FFFFFF" fill-opacity="0.6" letter-spacing="4">+ POWERCHINA+ </text>++ <!-- 主标题区域背景 -->+ <rect x="0" y="280" width="950" height="160" fill="#000000" fill-opacity="0.2" />+ <rect x="0" y="280" width="10" height="160" fill="#C41E3A" />++ <!-- 主标题 -->+ <text x="60" y="350" font-family="Microsoft YaHei, SimHei, sans-serif" font-size="48" font-weight="bold" fill="#FFFFFF">+ {{TITLE}}+ </text>++ <!-- 副标题 -->+ <text x="60" y="410" font-family="Microsoft YaHei, Arial, sans-serif" font-size="24" fill="#4A90D9">+ {{SUBTITLE}}+ </text>++ <!-- 分隔线 -->+ <line x1="60" y1="480" x2="300" y2="480" stroke="#4A90D9" stroke-width="2" />+ <line x1="300" y1="480" x2="400" y2="480" stroke="#C41E3A" stroke-width="2" />++ <!-- 汇报单位 -->+ <text x="60" y="530" font-family="Microsoft YaHei, sans-serif" font-size="18" fill="#FFFFFF" fill-opacity="0.9">+ {{AUTHOR}}+ </text>++ <!-- 汇报人 -->+ <text x="60" y="565" font-family="Microsoft YaHei, sans-serif" font-size="16" fill="#FFFFFF" fill-opacity="0.7">+ 汇报人:{{PRESENTER}}+ </text>++ <!-- 日期 -->+ <text x="60" y="600" font-family="Arial, Microsoft YaHei, sans-serif" font-size="16" fill="#4A90D9" fill-opacity="0.8">+ {{DATE}}+ </text>++ <!-- 底部装饰区域 -->+ <rect x="0" y="690" width="1280" height="30" fill="#002B5C" />+ <rect x="0" y="690" width="200" height="30" fill="#C41E3A" />++ <!-- 底部企业名称 -->+ <text x="640" y="712" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="14" fill="#FFFFFF" fill-opacity="0.8">+ 中国电力建设集团有限公司 POWERCHINA+ </text>++</svg>diff --git a/templates/layouts/powerchina/02_chapter.svg b/templates/layouts/powerchina/02_chapter.svgnew file mode 100644index 00000000..df17d51b--- /dev/null+++ b/templates/layouts/powerchina/02_chapter.svg@@ -0,0 +1,81 @@+<?xml version="1.0" encoding="UTF-8"?>+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1280 720">+ <!-- 模板: 章节页 - 中国电建经典风格 -->++ <defs>+ <!-- 深蓝背景渐变 -->+ <linearGradient id="gradChapter" x1="0%" y1="0%" x2="100%" y2="100%">+ <stop offset="0%" style="stop-color:#00418D;stop-opacity:1" />+ <stop offset="50%" style="stop-color:#003270;stop-opacity:1" />+ <stop offset="100%" style="stop-color:#001F45;stop-opacity:1" />+ </linearGradient>+ <!-- 顶部装饰渐变 -->+ <linearGradient id="topGrad" x1="0%" y1="0%" x2="100%" y2="0%">+ <stop offset="0%" style="stop-color:#4A90D9;stop-opacity:1" />+ <stop offset="100%" style="stop-color:#00418D;stop-opacity:1" />+ </linearGradient>+ <!-- 斜线图案 -->+ <pattern id="diagLines" width="60" height="60" patternUnits="userSpaceOnUse" patternTransform="rotate(45)">+ <line x1="0" y1="0" x2="0" y2="60" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.02"/>+ </pattern>+ </defs>++ <!-- 背景 -->+ <rect width="1280" height="720" fill="url(#gradChapter)"/>++ <!-- 工程感斜线纹理 -->+ <rect width="1280" height="720" fill="url(#diagLines)"/>++ <!-- 装饰元素 - 几何图案 -->+ <circle cx="1200" cy="100" r="300" fill="#FFFFFF" fill-opacity="0.02"/>+ <circle cx="100" cy="620" r="250" fill="#FFFFFF" fill-opacity="0.02"/>+ <circle cx="1100" cy="150" r="150" fill="#4A90D9" fill-opacity="0.03"/>++ <!-- 顶部渐变装饰线 -->+ <rect x="0" y="0" width="1280" height="6" fill="url(#topGrad)"/>++ <!-- 网格装饰线 -->+ <line x1="0" y1="240" x2="1280" y2="240" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.04"/>+ <line x1="0" y1="480" x2="1280" y2="480" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.04"/>+ <line x1="426" y1="0" x2="426" y2="720" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.04"/>+ <line x1="854" y1="0" x2="854" y2="720" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.04"/>++ <!-- 左侧装饰竖条 -->+ <rect x="80" y="260" width="8" height="200" fill="#4A90D9"/>+ <rect x="94" y="280" width="3" height="160" fill="#C41E3A" fill-opacity="0.8"/>++ <!-- 章节内容 -->+ <g transform="translate(640, 360)">+ <!-- 章节编号 - 大号半透明背景 -->+ <text x="0" y="-50" text-anchor="middle" font-family="Arial" font-size="200" font-weight="bold" fill="#FFFFFF" fill-opacity="0.04">+ 0{{CHAPTER_NUM}}+ </text>++ <!-- 章节编号描边效果 -->+ <text x="0" y="-50" text-anchor="middle" font-family="Arial" font-size="200" font-weight="bold" fill="none" stroke="#4A90D9" stroke-width="1" stroke-opacity="0.15">+ 0{{CHAPTER_NUM}}+ </text>++ <!-- 装饰方块组 -->+ <rect x="-80" y="10" width="160" height="6" fill="#4A90D9"/>+ <rect x="-60" y="22" width="120" height="3" fill="#C41E3A" fill-opacity="0.8"/>++ <!-- 章节标题 -->+ <text x="0" y="80" text-anchor="middle" font-family="Microsoft YaHei, SimHei, sans-serif" font-size="48" font-weight="bold" fill="#FFFFFF">+ {{CHAPTER_TITLE}}+ </text>++ <!-- 英文标题/副标题 -->+ <text x="0" y="130" text-anchor="middle" font-family="Arial" font-size="22" fill="#4A90D9" letter-spacing="4">+ {{CHAPTER_SUBTITLE}}+ </text>+ </g>++ <!-- 底部装饰 -->+ <rect x="0" y="680" width="1280" height="40" fill="#001F45" fill-opacity="0.6"/>+ <rect x="0" y="680" width="200" height="40" fill="#C41E3A" fill-opacity="0.8"/>+ <text x="640" y="707" text-anchor="middle" font-family="Arial, Microsoft YaHei, sans-serif" font-size="14" fill="#FFFFFF" fill-opacity="0.7">+ POWERCHINA · 中国电力建设集团有限公司+ </text>++</svg>diff --git a/templates/layouts/powerchina/02_toc.svg b/templates/layouts/powerchina/02_toc.svgnew file mode 100644index 00000000..3de2b560--- /dev/null+++ b/templates/layouts/powerchina/02_toc.svg@@ -0,0 +1,112 @@+<?xml version="1.0" encoding="UTF-8"?>+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1280 720">+ <!-- 模板: 目录页 - 中国电建经典风格 -->++ <defs>+ <!-- 顶部装饰渐变 -->+ <linearGradient id="topGrad" x1="0%" y1="0%" x2="100%" y2="0%">+ <stop offset="0%" style="stop-color:#4A90D9;stop-opacity:1" />+ <stop offset="100%" style="stop-color:#00418D;stop-opacity:1" />+ </linearGradient>+ <!-- 左侧装饰渐变 -->+ <linearGradient id="sideGrad" x1="0%" y1="0%" x2="0%" y2="100%">+ <stop offset="0%" style="stop-color:#4A90D9;stop-opacity:1" />+ <stop offset="100%" style="stop-color:#00418D;stop-opacity:1" />+ </linearGradient>+ </defs>++ <!-- 白色背景 -->+ <rect x="0" y="0" width="1280" height="720" fill="#FFFFFF"/>++ <!-- 顶部渐变装饰线 -->+ <rect x="0" y="0" width="1280" height="6" fill="url(#topGrad)"/>++ <!-- 左侧装饰区域 -->+ <rect x="0" y="0" width="280" height="720" fill="#00418D" fill-opacity="0.03"/>+ <rect x="0" y="0" width="8" height="720" fill="url(#sideGrad)"/>+ <rect x="16" y="100" width="3" height="520" fill="#4A90D9" fill-opacity="0.5"/>++ <!-- 页面标题 -->+ <text x="60" y="80" font-family="Microsoft YaHei, SimHei, sans-serif" font-size="36" font-weight="bold" fill="#00418D">+ 目 录+ </text>+ <text x="60" y="110" font-family="Arial, sans-serif" font-size="16" fill="#4A90D9" letter-spacing="3">+ CONTENTS+ </text>++ <!-- 装饰分隔线 -->+ <line x1="60" y1="130" x2="180" y2="130" stroke="#00418D" stroke-width="3"/>+ <line x1="180" y1="130" x2="220" y2="130" stroke="#C41E3A" stroke-width="2"/>++ <!-- 目录项 1 -->+ <g>+ <text x="320" y="200" font-family="Arial, sans-serif" font-size="48" font-weight="bold" fill="#00418D">01</text>+ <rect x="390" y="175" width="3" height="40" fill="#00418D"/>+ <text x="410" y="195" font-family="Microsoft YaHei, sans-serif" font-size="22" font-weight="bold" fill="#1A1A1A">{{CHAPTER_01_TITLE}}</text>+ <text x="410" y="220" font-family="Microsoft YaHei, sans-serif" font-size="14" fill="#718096">{{CHAPTER_01_DESC}}</text>+ <line x1="410" y1="235" x2="800" y2="235" stroke="#E4E7EB" stroke-width="1"/>+ </g>++ <!-- 目录项 2 -->+ <g>+ <text x="320" y="300" font-family="Arial, sans-serif" font-size="48" font-weight="bold" fill="#00418D">02</text>+ <rect x="390" y="275" width="3" height="40" fill="#00418D"/>+ <text x="410" y="295" font-family="Microsoft YaHei, sans-serif" font-size="22" font-weight="bold" fill="#1A1A1A">{{CHAPTER_02_TITLE}}</text>+ <text x="410" y="320" font-family="Microsoft YaHei, sans-serif" font-size="14" fill="#718096">{{CHAPTER_02_DESC}}</text>+ <line x1="410" y1="335" x2="800" y2="335" stroke="#E4E7EB" stroke-width="1"/>+ </g>++ <!-- 目录项 3 -->+ <g>+ <text x="320" y="400" font-family="Arial, sans-serif" font-size="48" font-weight="bold" fill="#00418D">03</text>+ <rect x="390" y="375" width="3" height="40" fill="#00418D"/>+ <text x="410" y="395" font-family="Microsoft YaHei, sans-serif" font-size="22" font-weight="bold" fill="#1A1A1A">{{CHAPTER_03_TITLE}}</text>+ <text x="410" y="420" font-family="Microsoft YaHei, sans-serif" font-size="14" fill="#718096">{{CHAPTER_03_DESC}}</text>+ <line x1="410" y1="435" x2="800" y2="435" stroke="#E4E7EB" stroke-width="1"/>+ </g>++ <!-- 目录项 4 -->+ <g>+ <text x="320" y="500" font-family="Arial, sans-serif" font-size="48" font-weight="bold" fill="#00418D">04</text>+ <rect x="390" y="475" width="3" height="40" fill="#00418D"/>+ <text x="410" y="495" font-family="Microsoft YaHei, sans-serif" font-size="22" font-weight="bold" fill="#1A1A1A">{{CHAPTER_04_TITLE}}</text>+ <text x="410" y="520" font-family="Microsoft YaHei, sans-serif" font-size="14" fill="#718096">{{CHAPTER_04_DESC}}</text>+ <line x1="410" y1="535" x2="800" y2="535" stroke="#E4E7EB" stroke-width="1"/>+ </g>++ <!-- 目录项 5 -->+ <g>+ <text x="320" y="600" font-family="Arial, sans-serif" font-size="48" font-weight="bold" fill="#00418D">05</text>+ <rect x="390" y="575" width="3" height="40" fill="#00418D"/>+ <text x="410" y="595" font-family="Microsoft YaHei, sans-serif" font-size="22" font-weight="bold" fill="#1A1A1A">{{CHAPTER_05_TITLE}}</text>+ <text x="410" y="620" font-family="Microsoft YaHei, sans-serif" font-size="14" fill="#718096">{{CHAPTER_05_DESC}}</text>+ </g>++ <!-- 右侧数据展示区 -->+ <rect x="880" y="160" width="340" height="460" fill="#F4F6F8" rx="8"/>+ <rect x="880" y="160" width="6" height="460" fill="#00418D"/>++ <!-- 企业数据 -->+ <text x="1050" y="260" text-anchor="middle" font-family="Arial, sans-serif" font-size="72" font-weight="bold" fill="#00418D" fill-opacity="0.15">{{STAT_1}}</text>+ <text x="1050" y="300" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="16" fill="#4A5568">{{STAT_1_LABEL}}</text>++ <line x1="920" y1="340" x2="1180" y2="340" stroke="#E4E7EB" stroke-width="1"/>++ <text x="1050" y="420" text-anchor="middle" font-family="Arial, sans-serif" font-size="72" font-weight="bold" fill="#C41E3A" fill-opacity="0.15">{{STAT_2}}</text>+ <text x="1050" y="460" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="16" fill="#4A5568">{{STAT_2_LABEL}}</text>++ <line x1="920" y1="500" x2="1180" y2="500" stroke="#E4E7EB" stroke-width="1"/>++ <text x="1050" y="570" text-anchor="middle" font-family="Arial, sans-serif" font-size="48" font-weight="bold" fill="#00418D" fill-opacity="0.12">{{STAT_3}}</text>+ <text x="1050" y="600" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="14" fill="#4A5568">{{STAT_3_LABEL}}</text>++ <!-- 底部装饰线 -->+ <rect x="0" y="716" width="1280" height="4" fill="#00418D"/>++ <!-- 页码 -->+ <text x="640" y="695" text-anchor="middle" font-family="Arial, sans-serif" font-size="14" fill="#718096">{{PAGE_NUM}}</text>++ <!-- 企业标识 -->+ <text x="1220" y="695" text-anchor="end" font-family="Arial, sans-serif" font-size="12" fill="#718096">POWERCHINA</text>++</svg>diff --git a/templates/layouts/powerchina/03_content.svg b/templates/layouts/powerchina/03_content.svgnew file mode 100644index 00000000..d1934052--- /dev/null+++ b/templates/layouts/powerchina/03_content.svg@@ -0,0 +1,57 @@+<?xml version="1.0" encoding="UTF-8"?>+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1280 720">+ <!-- 模板: 内容页 - 中国电建经典风格 -->++ <defs>+ <!-- 顶部装饰渐变 -->+ <linearGradient id="topGrad" x1="0%" y1="0%" x2="100%" y2="0%">+ <stop offset="0%" style="stop-color:#4A90D9;stop-opacity:1" />+ <stop offset="100%" style="stop-color:#00418D;stop-opacity:1" />+ </linearGradient>+ <!-- 序号块渐变 -->+ <linearGradient id="numGrad" x1="0%" y1="0%" x2="100%" y2="100%">+ <stop offset="0%" style="stop-color:#0066CC;stop-opacity:1" />+ <stop offset="100%" style="stop-color:#00418D;stop-opacity:1" />+ </linearGradient>+ </defs>++ <!-- 白色背景 -->+ <rect x="0" y="0" width="1280" height="720" fill="#FFFFFF" />++ <!-- 顶部渐变装饰线 -->+ <rect x="0" y="0" width="1280" height="6" fill="url(#topGrad)" />++ <!-- 页眉导航栏 -->+ <!-- 章节序号块 -->+ <rect x="60" y="30" width="50" height="50" rx="4" fill="url(#numGrad)" />+ <text x="85" y="65" text-anchor="middle" font-family="Arial, sans-serif" font-size="24" font-weight="bold" fill="#FFFFFF">{{CHAPTER_NUM}}</text>++ <!-- 页面标题 -->+ <text x="130" y="65" font-family="Microsoft YaHei, SimHei, sans-serif" font-size="28" font-weight="bold" fill="#1A1A1A">{{PAGE_TITLE}}</text>++ <!-- 右上角企业标识 -->+ <text x="1220" y="50" text-anchor="end" font-family="Arial, sans-serif" font-size="12" font-weight="bold" fill="#00418D" fill-opacity="0.6">POWERCHINA</text>+ <rect x="1100" y="58" width="120" height="2" fill="url(#topGrad)" fill-opacity="0.4"/>++ <!-- 分隔线 -->+ <line x1="60" y1="95" x2="1220" y2="95" stroke="#E4E7EB" stroke-width="1"/>++ <!-- 内容区域占位 -->+ <rect x="60" y="110" width="1160" height="550" fill="none" stroke="#E4E7EB" stroke-width="2" stroke-dasharray="8,8" />+ <text x="640" y="365" text-anchor="middle" fill="#CBD5E1" font-size="18" font-family="Microsoft YaHei, sans-serif">+ {{CONTENT_AREA}}+ </text>+ <text x="640" y="400" text-anchor="middle" fill="#CBD5E1" font-size="14" font-family="Microsoft YaHei, sans-serif">+ (由 Executor 根据实际内容自由布局)+ </text>++ <!-- 底部装饰线 -->+ <rect x="0" y="716" width="1280" height="4" fill="#00418D" />++ <!-- 页码 -->+ <text x="640" y="695" text-anchor="middle" font-family="Arial, sans-serif" font-size="14" fill="#718096">{{PAGE_NUM}}</text>++ <!-- 底部企业名称 -->+ <text x="1220" y="695" text-anchor="end" font-family="Arial, sans-serif" font-size="12" fill="#718096" fill-opacity="0.6">POWERCHINA</text>++</svg>diff --git a/templates/layouts/powerchina/04_ending.svg b/templates/layouts/powerchina/04_ending.svgnew file mode 100644index 00000000..06695248--- /dev/null+++ b/templates/layouts/powerchina/04_ending.svg@@ -0,0 +1,92 @@+<?xml version="1.0" encoding="UTF-8"?>+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1280 720">+ <!-- 模板: 结束页 - 中国电建经典风格 -->++ <defs>+ <!-- 深蓝背景渐变 -->+ <linearGradient id="endBgGrad" x1="0%" y1="0%" x2="100%" y2="100%">+ <stop offset="0%" style="stop-color:#00418D;stop-opacity:1" />+ <stop offset="50%" style="stop-color:#003270;stop-opacity:1" />+ <stop offset="100%" style="stop-color:#001F45;stop-opacity:1" />+ </linearGradient>+ <!-- 顶部装饰渐变 -->+ <linearGradient id="topGrad" x1="0%" y1="0%" x2="100%" y2="0%">+ <stop offset="0%" style="stop-color:#4A90D9;stop-opacity:1" />+ <stop offset="100%" style="stop-color:#00418D;stop-opacity:1" />+ </linearGradient>+ <!-- 斜线图案 -->+ <pattern id="diagLines" width="60" height="60" patternUnits="userSpaceOnUse" patternTransform="rotate(45)">+ <line x1="0" y1="0" x2="0" y2="60" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.02"/>+ </pattern>+ </defs>++ <!-- 背景 -->+ <rect x="0" y="0" width="1280" height="720" fill="url(#endBgGrad)" />++ <!-- 工程感斜线纹理 -->+ <rect x="0" y="0" width="1280" height="720" fill="url(#diagLines)" />++ <!-- 装饰元素 - 几何图案 -->+ <circle cx="100" cy="120" r="200" fill="#FFFFFF" fill-opacity="0.02" />+ <circle cx="1180" cy="600" r="250" fill="#FFFFFF" fill-opacity="0.02" />+ <circle cx="640" cy="360" r="350" fill="#4A90D9" fill-opacity="0.02" />++ <!-- 顶部渐变装饰线 -->+ <rect x="0" y="0" width="1280" height="6" fill="url(#topGrad)" />++ <!-- 网格装饰 -->+ <line x1="0" y1="180" x2="1280" y2="180" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.03" />+ <line x1="0" y1="360" x2="1280" y2="360" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.03" />+ <line x1="0" y1="540" x2="1280" y2="540" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.03" />+ <line x1="320" y1="0" x2="320" y2="720" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.03" />+ <line x1="640" y1="0" x2="640" y2="720" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.03" />+ <line x1="960" y1="0" x2="960" y2="720" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.03" />++ <!-- 左侧装饰竖条 -->+ <rect x="100" y="220" width="8" height="280" fill="#4A90D9" fill-opacity="0.6" />+ <rect x="114" y="240" width="3" height="240" fill="#C41E3A" fill-opacity="0.5" />++ <!-- 企业Logo区域占位 -->+ <rect x="490" y="140" width="300" height="80" fill="#FFFFFF" fill-opacity="0.1" rx="4"/>+ <text x="640" y="190" text-anchor="middle" font-family="Arial, sans-serif" font-size="28" font-weight="bold" fill="#FFFFFF" letter-spacing="6">+ POWERCHINA+ </text>++ <!-- 感谢语(中文) -->+ <text x="640" y="320" text-anchor="middle" font-family="Microsoft YaHei, SimHei, sans-serif" font-size="64" font-weight="bold" fill="#FFFFFF" letter-spacing="8">+ {{THANK_YOU}}+ </text>++ <!-- 感谢语(英文) -->+ <text x="640" y="380" text-anchor="middle" font-family="Arial, sans-serif" font-size="26" fill="#4A90D9" letter-spacing="6">+ {{THANK_YOU_EN}}+ </text>++ <!-- 分隔线 -->+ <line x1="490" y1="420" x2="580" y2="420" stroke="#4A90D9" stroke-width="2"/>+ <rect x="590" y="415" width="100" height="10" fill="#C41E3A"/>+ <line x1="700" y1="420" x2="790" y2="420" stroke="#4A90D9" stroke-width="2"/>++ <!-- 欢迎指正 -->+ <text x="640" y="480" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="26" fill="#FFFFFF" fill-opacity="0.9">+ 欢迎批评指正+ </text>++ <!-- 单位信息 -->+ <text x="640" y="540" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="18" fill="#FFFFFF" fill-opacity="0.7">+ {{AUTHOR}}+ </text>++ <!-- 联系信息 -->+ <text x="640" y="580" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="14" fill="#4A90D9" fill-opacity="0.8">+ {{CONTACT_INFO}}+ </text>++ <!-- 底部装饰区域 -->+ <rect x="0" y="680" width="1280" height="40" fill="#001F45" fill-opacity="0.6" />+ <rect x="0" y="680" width="200" height="40" fill="#C41E3A" fill-opacity="0.8" />+ <text x="640" y="707" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="14" fill="#FFFFFF" fill-opacity="0.7">+ 中国电力建设集团有限公司+ </text>++</svg>diff --git a/templates/layouts/powerchina/design_spec.md b/templates/layouts/powerchina/design_spec.mdnew file mode 100644index 00000000..9de0f998--- /dev/null+++ b/templates/layouts/powerchina/design_spec.md@@ -0,0 +1,164 @@+# 中国电建模板 (POWERCHINA Style) - 设计规范++> 适用于中国电力建设集团有限公司项目汇报、工程展示、商务洽谈、企业宣传等场景。++---++## 一、模板概述++| 属性 | 描述 |+| -------------- | ------------------------------------------------------------ |+| **模板名称** | powerchina(中国电建模板) |+| **适用场景** | 工程项目汇报、技术方案展示、商务洽谈、企业宣传、年度总结 |+| **设计调性** | 专业、稳重、国际化、央企风范 |+| **主题模式** | 亮色主题(白色背景 + 电建蓝强调色) |++---++## 二、画布规范++| 属性 | 值 |+| -------------- | ----------------------------- |+| **格式** | 标准 16:9 |+| **尺寸** | 1280 × 720 px |+| **viewBox** | `0 0 1280 720` |+| **页面边距** | 左右 60px,上 80px,下 40px |+| **内容安全区** | x: 60-1220, y: 80-680 |++---++## 三、配色方案++### 主色系(电建品牌色)++| 角色 | 色值 | 备注 |+| -------------- | ----------- | ---------------------------------- |+| **电建蓝** | `#00418D` | 主色调,标题栏、强调色块、装饰条 |+| **深邃蓝** | `#002B5C` | 章节页背景、渐变暗部 |+| **活力蓝** | `#0066CC` | 辅助强调、图表色 |+| **天际蓝** | `#4A90D9` | 装饰点缀、次级强调 |+| **背景白** | `#FFFFFF` | 页面主背景 |+| **辅助浅灰** | `#F4F6F8` | 非重点内容背景块 |++### 辅助色(中国红点缀)++| 角色 | 色值 | 备注 |+| -------------- | ----------- | ---------------------------------- |+| **中国红** | `#C41E3A` | 重要数据强调、点缀装饰 |+| **金色** | `#C9A227` | 荣誉、成就展示 |++### 文字色系++| 角色 | 色值 | 用途 |+| -------------- | ----------- | ---------------------- |+| **主文字** | `#1A1A1A` | 正文、标题 |+| **白色文字** | `#FFFFFF` | 深色色块上的文字 |+| **辅助文字** | `#4A5568` | 置灰章节、辅助说明 |+| **浅色辅助** | `#718096` | 注释、页码、提示 |++---++## 四、排版体系++### 字体方案++**字体栈**: `"Microsoft YaHei", "微软雅黑", "SimHei", Arial, sans-serif`++### 字号层级++| 层级 | 用途 | 字号 | 字重 |+| ---- | ---------------- | ---- | ------- |+| H1 | 封面主标题 | 48px | Bold |+| H2 | 页面大标题 | 28px | Bold |+| H3 | 模块标题/小标题 | 24px | Bold |+| P | 正文内容 | 18px | Regular |+| High | 强调数据 | 36px | Bold |+| Sub | 辅助说明 | 14px | Regular |++---++## 五、页面结构++### 通用布局++| 区域 | 位置/高度 | 内容说明 |+| ---------- | ------------- | -------------------------------------- |+| **顶部** | y=0, h=6px | 电建蓝渐变横条,贯穿整页 |+| **标题栏** | y=30, h=50px | 章节序号块 + 标题文字 + 右上角Logo |+| **内容区** | y=100, h=560px | 主要内容区域 |+| **页脚** | y=680, h=40px | 页码、企业名称、底部装饰线 |++---++## 六、页面类型++### 1. 封面页 (01_cover.svg)++- 深蓝渐变背景 + 工程感斜线纹理+- 左侧品牌蓝装饰条+- 主标题 + 副标题(白色)+- 企业英文名称 POWERCHINA+- 底部红色装饰条++### 2. 目录页 (02_toc.svg)++- 白色背景 + 左侧蓝色装饰区+- 最多支持5个章节+- 数字编号 + 竖线分隔设计+- 右侧可放置企业数据++### 3. 章节页 (02_chapter.svg)++- 深蓝色渐变背景+- 大号章节编号+- 章节标题 + 英文副标题+- 几何网格装饰++### 4. 内容页 (03_content.svg)++- 白色背景+- 标准导航栏+- 灵活内容区域+- 支持多种布局模式++### 5. 结束页 (04_ending.svg)++- 深蓝渐变背景+- 企业Logo区域+- 感谢语(中英文)+- 企业信息++---++## 七、SVG 技术约束++### 必须遵守++1. viewBox: `0 0 1280 720`+2. 背景使用 `<rect>` 元素+3. 透明度使用 `fill-opacity` / `stroke-opacity`+4. 禁止使用:`clipPath`、`mask`、`filter`、`<style>`、`class`+5. 禁止使用:`textPath`、`animate*`、`script`、`marker`++---++## 八、占位符规范++| 占位符 | 说明 |+| ------------------ | ------------------ |+| `{{TITLE}}` | 主标题 |+| `{{SUBTITLE}}` | 副标题 |+| `{{AUTHOR}}` | 汇报单位 |+| `{{PRESENTER}}` | 汇报人 |+| `{{CHAPTER_NUM}}` | 章节编号 |+| `{{PAGE_NUM}}` | 页码 |+| `{{DATE}}` | 日期 |++---++## 九、设计亮点++- **电建品牌蓝**: 专业稳重的品牌色系+- **工程感斜线**: 体现建设行业特色+- **中国红点缀**: 央企身份的体现+- **几何网格装饰**: 现代化工程感diff --git "a/templates/layouts/powerchina/\344\270\255\345\233\275\346\260\264\345\212\241logo.png" "b/templates/layouts/powerchina/\344\270\255\345\233\275\346\260\264\345\212\241logo.png"new file mode 100644index 00000000..23d4ee76Binary files /dev/null and "b/templates/layouts/powerchina/\344\270\255\345\233\275\346\260\264\345\212\241logo.png" differdiff --git "a/templates/layouts/powerchina/\345\215\216\344\270\234\351\231\242logo.png" "b/templates/layouts/powerchina/\345\215\216\344\270\234\351\231\242logo.png"new file mode 100644index 00000000..78379c3aBinary files /dev/null and "b/templates/layouts/powerchina/\345\215\216\344\270\234\351\231\242logo.png" differdiff --git "a/templates/layouts/powerchina/\346\260\264\347\224\265\344\270\211\345\261\200logo.png" "b/templates/layouts/powerchina/\346\260\264\347\224\265\344\270\211\345\261\200logo.png"new file mode 100644index 00000000..0743cde0Binary files /dev/null and "b/templates/layouts/powerchina/\346\260\264\347\224\265\344\270\211\345\261\200logo.png" differdiff --git "a/templates/layouts/powerchina/\347\224\265\345\273\272logo.png" "b/templates/layouts/powerchina/\347\224\265\345\273\272logo.png"new file mode 100644index 00000000..c11cc4faBinary files /dev/null and "b/templates/layouts/powerchina/\347\224\265\345\273\272logo.png" differdiff --git a/templates/layouts/psychology_attachment/01_cover.svg b/templates/layouts/psychology_attachment/01_cover.svgnew file mode 100644index 00000000..c737c8e3--- /dev/null+++ b/templates/layouts/psychology_attachment/01_cover.svg@@ -0,0 +1,78 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1280 720">+ <defs>+ <linearGradient id="coverGradient" x1="0%" y1="0%" x2="100%" y2="100%">+ <stop offset="0%" style="stop-color:#1E3A5F" />+ <stop offset="50%" style="stop-color:#2E5C8E" />+ <stop offset="100%" style="stop-color:#3D8B7A" />+ </linearGradient>+ </defs>++ <!-- 背景渐变 -->+ <rect width="1280" height="720" fill="url(#coverGradient)" />++ <!-- 可选:背景图片(使用时替换 {{COVER_BG_IMAGE}}) -->+ <!-- <image href="{{COVER_BG_IMAGE}}" x="0" y="0" width="1280" height="720" preserveAspectRatio="xMidYMid slice" opacity="0.25"/> -->++ <!-- 装饰圆形 -->+ <circle cx="1100" cy="150" r="200" fill="none" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.1" />+ <circle cx="1100" cy="150" r="150" fill="none" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.1" />+ <circle cx="1100" cy="150" r="100" fill="none" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.1" />+ <circle cx="180" cy="600" r="120" fill="none" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.1" />+ <circle cx="180" cy="600" r="80" fill="none" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.1" />++ <!-- 装饰斜线 -->+ <line x1="0" y1="200" x2="300" y2="350" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.15" />+ <line x1="0" y1="250" x2="250" y2="400" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.15" />+ <line x1="980" y1="720" x2="1280" y2="520" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.15" />+ <line x1="1030" y1="720" x2="1280" y2="570" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.15" />++ <!-- 主标题 -->+ <text x="640" y="280" font-family="PingFang SC, Microsoft YaHei, sans-serif" font-size="52" font-weight="bold"+ fill="#FFFFFF" text-anchor="middle">+ {{TITLE}}+ </text>++ <!-- 副标题 -->+ <text x="640" y="340" font-family="PingFang SC, Microsoft YaHei, sans-serif" font-size="28" fill="#E5E7EB"+ text-anchor="middle">+ {{SUBTITLE}}+ </text>++ <!-- 英文标题 -->+ <text x="640" y="385" font-family="system-ui, sans-serif" font-size="20" fill="#94A3B8" text-anchor="middle">+ {{TITLE_EN}}+ </text>++ <!-- 装饰线 -->+ <rect x="540" y="410" width="200" height="3" rx="1.5" fill="#E07843" />++ <!-- 引言卡片 -->+ <rect x="240" y="460" width="800" height="100" rx="12" fill="#FFFFFF" fill-opacity="0.1" />+ <rect x="240" y="460" width="4" height="100" rx="2" fill="#3D8B7A" />++ <text x="270" y="500" font-family="PingFang SC, Microsoft YaHei, sans-serif" font-size="18" fill="#E5E7EB"+ font-style="italic">+ "{{QUOTE}}"+ </text>+ <text x="270" y="535" font-family="system-ui, sans-serif" font-size="14" fill="#94A3B8">+ —— {{QUOTE_AUTHOR}}+ </text>++ <!-- 关键词标签 -->+ <g font-family="PingFang SC, Microsoft YaHei, sans-serif" font-size="14" fill="#CBD5E1">+ <rect x="420" y="590" width="80" height="28" rx="14" fill="#FFFFFF" fill-opacity="0.1" />+ <text x="460" y="609" text-anchor="middle">{{TAG_1}}</text>++ <rect x="520" y="590" width="80" height="28" rx="14" fill="#FFFFFF" fill-opacity="0.1" />+ <text x="560" y="609" text-anchor="middle">{{TAG_2}}</text>++ <rect x="620" y="590" width="80" height="28" rx="14" fill="#FFFFFF" fill-opacity="0.1" />+ <text x="660" y="609" text-anchor="middle">{{TAG_3}}</text>++ <rect x="720" y="590" width="100" height="28" rx="14" fill="#FFFFFF" fill-opacity="0.1" />+ <text x="770" y="609" text-anchor="middle">{{TAG_4}}</text>+ </g>++ <!-- 页码 -->+ <text x="1220" y="685" font-family="system-ui, sans-serif" font-size="14" fill="#64748B" text-anchor="end">01</text>+</svg>\ No newline at end of filediff --git a/templates/layouts/psychology_attachment/02_chapter.svg b/templates/layouts/psychology_attachment/02_chapter.svgnew file mode 100644index 00000000..ce3f0364--- /dev/null+++ b/templates/layouts/psychology_attachment/02_chapter.svg@@ -0,0 +1,82 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1280 720">+ <defs>+ <linearGradient id="chapterGradient" x1="0%" y1="0%" x2="100%" y2="100%">+ <stop offset="0%" style="stop-color:#2E5C8E" />+ <stop offset="100%" style="stop-color:#1E3A5F" />+ </linearGradient>+ </defs>++ <!-- 背景渐变 -->+ <rect width="1280" height="720" fill="url(#chapterGradient)" />++ <!-- 装饰同心圆 -->+ <circle cx="1100" cy="150" r="200" fill="none" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.1" />+ <circle cx="1100" cy="150" r="150" fill="none" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.1" />+ <circle cx="1100" cy="150" r="100" fill="none" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.1" />+ <circle cx="180" cy="600" r="120" fill="none" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.1" />+ <circle cx="180" cy="600" r="80" fill="none" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.1" />++ <!-- 装饰斜线 -->+ <line x1="0" y1="200" x2="300" y2="350" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.2" />+ <line x1="0" y1="250" x2="250" y2="400" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.2" />+ <line x1="980" y1="720" x2="1280" y2="520" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.2" />+ <line x1="1030" y1="720" x2="1280" y2="570" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.2" />++ <!-- 大号章节编号(背景) -->+ <text x="640" y="220" font-family="system-ui, sans-serif" font-size="120" font-weight="bold" fill="#FFFFFF"+ fill-opacity="0.15" text-anchor="middle">+ {{CHAPTER_NUM}}+ </text>++ <!-- 章节标签 -->+ <rect x="560" y="280" width="160" height="40" rx="20" fill="#FFFFFF" fill-opacity="0.2" />+ <text x="640" y="307" font-family="PingFang SC, Microsoft YaHei, sans-serif" font-size="16" fill="#FFFFFF"+ text-anchor="middle">+ CHAPTER {{CHAPTER_NUM}}+ </text>++ <!-- 章节标题 -->+ <text x="640" y="390" font-family="PingFang SC, Microsoft YaHei, sans-serif" font-size="48" font-weight="bold"+ fill="#FFFFFF" text-anchor="middle">+ {{CHAPTER_TITLE}}+ </text>++ <!-- 英文副标题 -->+ <text x="640" y="440" font-family="system-ui, sans-serif" font-size="24" fill="#94A3B8" text-anchor="middle">+ {{CHAPTER_EN}}+ </text>++ <!-- 装饰线 -->+ <rect x="540" y="470" width="200" height="3" rx="1.5" fill="#E07843" />++ <!-- 引言卡片 -->+ <rect x="240" y="510" width="800" height="100" rx="12" fill="#FFFFFF" fill-opacity="0.1" />+ <rect x="240" y="510" width="4" height="100" rx="2" fill="#3D8B7A" />++ <text x="270" y="550" font-family="PingFang SC, Microsoft YaHei, sans-serif" font-size="18" fill="#E5E7EB"+ font-style="italic">+ "{{QUOTE}}"+ </text>+ <text x="270" y="585" font-family="system-ui, sans-serif" font-size="14" fill="#94A3B8">+ —— {{QUOTE_AUTHOR}}+ </text>++ <!-- 关键词标签 -->+ <g font-family="PingFang SC, Microsoft YaHei, sans-serif" font-size="14" fill="#CBD5E1">+ <rect x="390" y="640" width="100" height="28" rx="14" fill="#FFFFFF" fill-opacity="0.1" />+ <text x="440" y="659" text-anchor="middle">{{TAG_1}}</text>++ <rect x="510" y="640" width="80" height="28" rx="14" fill="#FFFFFF" fill-opacity="0.1" />+ <text x="550" y="659" text-anchor="middle">{{TAG_2}}</text>++ <rect x="610" y="640" width="100" height="28" rx="14" fill="#FFFFFF" fill-opacity="0.1" />+ <text x="660" y="659" text-anchor="middle">{{TAG_3}}</text>++ <rect x="730" y="640" width="120" height="28" rx="14" fill="#FFFFFF" fill-opacity="0.1" />+ <text x="790" y="659" text-anchor="middle">{{TAG_4}}</text>+ </g>++ <!-- 页码 -->+ <text x="1220" y="685" font-family="system-ui, sans-serif" font-size="14" fill="#64748B"+ text-anchor="end">{{PAGE_NUM}}</text>+</svg>\ No newline at end of filediff --git a/templates/layouts/psychology_attachment/02_toc.svg b/templates/layouts/psychology_attachment/02_toc.svgnew file mode 100644index 00000000..f118ab6c--- /dev/null+++ b/templates/layouts/psychology_attachment/02_toc.svg@@ -0,0 +1,115 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1280 720">+ <!-- 背景 -->+ <rect width="1280" height="720" fill="#F8FAFC" />++ <!-- 左侧装饰条 -->+ <rect x="0" y="0" width="8" height="720" fill="#2E5C8E" />++ <!-- 标题 -->+ <text x="60" y="80" font-family="PingFang SC, Microsoft YaHei, sans-serif" font-size="32" font-weight="bold"+ fill="#1E293B">+ 内容概览+ </text>+ <text x="60" y="110" font-family="system-ui, sans-serif" font-size="16" fill="#64748B">+ Contents Overview+ </text>++ <!-- 分隔线 -->+ <line x1="60" y1="130" x2="400" y2="130" stroke="#E5E7EB" stroke-width="2" />++ <!-- 章节列表 -->+ <g font-family="PingFang SC, Microsoft YaHei, sans-serif">+ <!-- 章节1 -->+ <g transform="translate(60, 170)">+ <path fill="#2E5C8E"+ d="M8,0 H42 A8,8 0 0 1 50,8 V42 A8,8 0 0 1 42,50 H8 A8,8 0 0 1 0,42 V8 A8,8 0 0 1 8,0 Z" />+ <text x="25" y="33" font-size="20" font-weight="bold" fill="#FFFFFF" text-anchor="middle">Ⅰ</text>+ <text x="70" y="22" font-size="20" font-weight="600" fill="#1E293B">{{CHAPTER_1_TITLE}}</text>+ <text x="70" y="44" font-size="14" fill="#64748B">{{CHAPTER_1_DESC}}</text>+ </g>++ <!-- 章节2 -->+ <g transform="translate(60, 250)">+ <path fill="#3D8B7A"+ d="M8,0 H42 A8,8 0 0 1 50,8 V42 A8,8 0 0 1 42,50 H8 A8,8 0 0 1 0,42 V8 A8,8 0 0 1 8,0 Z" />+ <text x="25" y="33" font-size="20" font-weight="bold" fill="#FFFFFF" text-anchor="middle">Ⅱ</text>+ <text x="70" y="22" font-size="20" font-weight="600" fill="#1E293B">{{CHAPTER_2_TITLE}}</text>+ <text x="70" y="44" font-size="14" fill="#64748B">{{CHAPTER_2_DESC}}</text>+ </g>++ <!-- 章节3 -->+ <g transform="translate(60, 330)">+ <path fill="#E07843"+ d="M8,0 H42 A8,8 0 0 1 50,8 V42 A8,8 0 0 1 42,50 H8 A8,8 0 0 1 0,42 V8 A8,8 0 0 1 8,0 Z" />+ <text x="25" y="33" font-size="20" font-weight="bold" fill="#FFFFFF" text-anchor="middle">Ⅲ</text>+ <text x="70" y="22" font-size="20" font-weight="600" fill="#1E293B">{{CHAPTER_3_TITLE}}</text>+ <text x="70" y="44" font-size="14" fill="#64748B">{{CHAPTER_3_DESC}}</text>+ </g>++ <!-- 章节4 -->+ <g transform="translate(60, 410)">+ <path fill="#64748B"+ d="M8,0 H42 A8,8 0 0 1 50,8 V42 A8,8 0 0 1 42,50 H8 A8,8 0 0 1 0,42 V8 A8,8 0 0 1 8,0 Z" />+ <text x="25" y="33" font-size="20" font-weight="bold" fill="#FFFFFF" text-anchor="middle">Ⅳ</text>+ <text x="70" y="22" font-size="20" font-weight="600" fill="#1E293B">{{CHAPTER_4_TITLE}}</text>+ <text x="70" y="44" font-size="14" fill="#64748B">{{CHAPTER_4_DESC}}</text>+ </g>++ <!-- 章节5 -->+ <g transform="translate(60, 490)">+ <path fill="#B54545"+ d="M8,0 H42 A8,8 0 0 1 50,8 V42 A8,8 0 0 1 42,50 H8 A8,8 0 0 1 0,42 V8 A8,8 0 0 1 8,0 Z" />+ <text x="25" y="33" font-size="20" font-weight="bold" fill="#FFFFFF" text-anchor="middle">Ⅴ</text>+ <text x="70" y="22" font-size="20" font-weight="600" fill="#1E293B">{{CHAPTER_5_TITLE}}</text>+ <text x="70" y="44" font-size="14" fill="#64748B">{{CHAPTER_5_DESC}}</text>+ </g>+ </g>++ <!-- 中间分隔线 -->+ <line x1="620" y1="150" x2="620" y2="600" stroke="#E5E7EB" stroke-width="1" stroke-dasharray="6,4" />++ <!-- 右侧学习目标卡片 -->+ <g transform="translate(680, 170)" font-family="PingFang SC, Microsoft YaHei, sans-serif">+ <text x="0" y="0" font-size="18" font-weight="600" fill="#2E5C8E">+ 📎 学习目标+ </text>++ <!-- 卡片背景 -->+ <rect x="0" y="20" width="520" height="420" rx="12" fill="#FFFFFF" stroke="#E5E7EB" stroke-width="1" />++ <!-- 目标1 -->+ <g transform="translate(30, 60)">+ <circle cx="8" cy="8" r="8" fill="#3D8B7A" />+ <text x="8" y="12" font-size="12" fill="#FFFFFF" text-anchor="middle">1</text>+ <text x="30" y="12" font-size="17" fill="#374151">{{GOAL_1}}</text>+ <text x="30" y="38" font-size="14" fill="#6B7280">{{GOAL_1_DESC}}</text>+ </g>++ <!-- 目标2 -->+ <g transform="translate(30, 130)">+ <circle cx="8" cy="8" r="8" fill="#3D8B7A" />+ <text x="8" y="12" font-size="12" fill="#FFFFFF" text-anchor="middle">2</text>+ <text x="30" y="12" font-size="17" fill="#374151">{{GOAL_2}}</text>+ <text x="30" y="38" font-size="14" fill="#6B7280">{{GOAL_2_DESC}}</text>+ </g>++ <!-- 目标3 -->+ <g transform="translate(30, 200)">+ <circle cx="8" cy="8" r="8" fill="#3D8B7A" />+ <text x="8" y="12" font-size="12" fill="#FFFFFF" text-anchor="middle">3</text>+ <text x="30" y="12" font-size="17" fill="#374151">{{GOAL_3}}</text>+ <text x="30" y="38" font-size="14" fill="#6B7280">{{GOAL_3_DESC}}</text>+ </g>++ <!-- 目标4 -->+ <g transform="translate(30, 270)">+ <circle cx="8" cy="8" r="8" fill="#3D8B7A" />+ <text x="8" y="12" font-size="12" fill="#FFFFFF" text-anchor="middle">4</text>+ <text x="30" y="12" font-size="17" fill="#374151">{{GOAL_4}}</text>+ <text x="30" y="38" font-size="14" fill="#6B7280">{{GOAL_4_DESC}}</text>+ </g>+ </g>++ <!-- 页码 -->+ <text x="1220" y="685" font-family="system-ui, sans-serif" font-size="14" fill="#9CA3AF" text-anchor="end">02</text>+</svg>\ No newline at end of filediff --git a/templates/layouts/psychology_attachment/03_content.svg b/templates/layouts/psychology_attachment/03_content.svgnew file mode 100644index 00000000..84e714ee--- /dev/null+++ b/templates/layouts/psychology_attachment/03_content.svg@@ -0,0 +1,41 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1280 720">+ <!-- 背景 -->+ <rect width="1280" height="720" fill="#F8FAFC" />++ <!-- 左侧装饰条 -->+ <rect x="0" y="0" width="8" height="720" fill="#2E5C8E" />++ <!-- 标题区域 -->+ <text x="60" y="75" font-family="PingFang SC, Microsoft YaHei, sans-serif" font-size="28" font-weight="bold"+ fill="#1E293B">+ {{TITLE}}+ </text>+ <text x="60" y="105" font-family="system-ui, sans-serif" font-size="16" fill="#64748B">+ {{TITLE_EN}}+ </text>++ <!-- 分隔线 -->+ <line x1="60" y1="125" x2="500" y2="125" stroke="#E5E7EB" stroke-width="2" />++ <!-- ==================== 内容区域 ==================== -->+ <!--+ AI 灵活布局区+ 可用空间: x=60, y=140, width=1180, height=490+ 请根据实际内容选择合适的布局模式:+ - 三栏并列(每栏 360px + 间距 40px)+ - 左右分栏(左 560px + 间距 60px + 右 580px)+ - 垂直堆叠(层级结构)+ - 四格对比(依恋类型)+ - 单栏居中+ -->+ <rect x="60" y="140" width="1180" height="490" fill="none" stroke="#E5E7EB" stroke-width="1" stroke-dasharray="8,4"+ rx="8" />+ <text x="650" y="390" text-anchor="middle" fill="#CBD5E1" font-family="PingFang SC, Microsoft YaHei, sans-serif"+ font-size="14">+ {{CONTENT_AREA}}+ </text>++ <!-- 页码 -->+ <text x="1220" y="700" font-family="system-ui, sans-serif" font-size="14" fill="#9CA3AF"+ text-anchor="end">{{PAGE_NUM}}</text>+</svg>\ No newline at end of filediff --git a/templates/layouts/psychology_attachment/04_ending.svg b/templates/layouts/psychology_attachment/04_ending.svgnew file mode 100644index 00000000..912aa2dd--- /dev/null+++ b/templates/layouts/psychology_attachment/04_ending.svg@@ -0,0 +1,100 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1280 720">+ <defs>+ <linearGradient id="endGradient" x1="0%" y1="0%" x2="100%" y2="100%">+ <stop offset="0%" style="stop-color:#1E3A5F" />+ <stop offset="50%" style="stop-color:#2E5C8E" />+ <stop offset="100%" style="stop-color:#3D8B7A" />+ </linearGradient>+ </defs>++ <!-- 背景渐变 -->+ <rect width="1280" height="720" fill="url(#endGradient)" />++ <!-- 装饰网络图 - 中心点 -->+ <circle cx="640" cy="360" r="8" fill="#FFFFFF" fill-opacity="0.2" />++ <!-- 外围节点 -->+ <circle cx="350" cy="200" r="5" fill="#FFFFFF" fill-opacity="0.2" />+ <circle cx="450" cy="150" r="4" fill="#FFFFFF" fill-opacity="0.2" />+ <circle cx="550" cy="180" r="5" fill="#FFFFFF" fill-opacity="0.2" />+ <circle cx="730" cy="160" r="4" fill="#FFFFFF" fill-opacity="0.2" />+ <circle cx="830" cy="200" r="5" fill="#FFFFFF" fill-opacity="0.2" />+ <circle cx="920" cy="250" r="4" fill="#FFFFFF" fill-opacity="0.2" />++ <circle cx="280" cy="350" r="4" fill="#FFFFFF" fill-opacity="0.2" />+ <circle cx="320" cy="480" r="5" fill="#FFFFFF" fill-opacity="0.2" />+ <circle cx="450" cy="540" r="4" fill="#FFFFFF" fill-opacity="0.2" />+ <circle cx="580" cy="580" r="5" fill="#FFFFFF" fill-opacity="0.2" />+ <circle cx="700" cy="560" r="4" fill="#FFFFFF" fill-opacity="0.2" />+ <circle cx="830" cy="520" r="5" fill="#FFFFFF" fill-opacity="0.2" />+ <circle cx="950" cy="450" r="4" fill="#FFFFFF" fill-opacity="0.2" />+ <circle cx="1000" cy="350" r="5" fill="#FFFFFF" fill-opacity="0.2" />++ <!-- 连接线 - 从中心辐射 -->+ <line x1="640" y1="360" x2="350" y2="200" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.2" />+ <line x1="640" y1="360" x2="450" y2="150" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.2" />+ <line x1="640" y1="360" x2="550" y2="180" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.2" />+ <line x1="640" y1="360" x2="730" y2="160" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.2" />+ <line x1="640" y1="360" x2="830" y2="200" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.2" />+ <line x1="640" y1="360" x2="920" y2="250" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.2" />++ <line x1="640" y1="360" x2="280" y2="350" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.2" />+ <line x1="640" y1="360" x2="320" y2="480" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.2" />+ <line x1="640" y1="360" x2="450" y2="540" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.2" />+ <line x1="640" y1="360" x2="580" y2="580" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.2" />+ <line x1="640" y1="360" x2="700" y2="560" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.2" />+ <line x1="640" y1="360" x2="830" y2="520" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.2" />+ <line x1="640" y1="360" x2="950" y2="450" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.2" />+ <line x1="640" y1="360" x2="1000" y2="350" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.2" />++ <!-- 连接线 - 外围连接 -->+ <line x1="350" y1="200" x2="450" y2="150" stroke="#FFFFFF" stroke-width="0.5" stroke-opacity="0.15" />+ <line x1="450" y1="150" x2="550" y2="180" stroke="#FFFFFF" stroke-width="0.5" stroke-opacity="0.15" />+ <line x1="730" y1="160" x2="830" y2="200" stroke="#FFFFFF" stroke-width="0.5" stroke-opacity="0.15" />+ <line x1="320" y1="480" x2="450" y2="540" stroke="#FFFFFF" stroke-width="0.5" stroke-opacity="0.15" />+ <line x1="580" y1="580" x2="700" y2="560" stroke="#FFFFFF" stroke-width="0.5" stroke-opacity="0.15" />+ <line x1="830" y1="520" x2="950" y2="450" stroke="#FFFFFF" stroke-width="0.5" stroke-opacity="0.15" />++ <!-- 主标题 -->+ <text x="640" y="260" font-family="PingFang SC, Microsoft YaHei, sans-serif" font-size="56" font-weight="bold"+ fill="#FFFFFF" text-anchor="middle">+ {{TITLE}}+ </text>++ <!-- 副标题 -->+ <text x="640" y="320" font-family="PingFang SC, Microsoft YaHei, sans-serif" font-size="28" fill="#E5E7EB"+ text-anchor="middle">+ {{SUBTITLE}}+ </text>++ <!-- 英文标题 -->+ <text x="640" y="360" font-family="system-ui, sans-serif" font-size="18" fill="#94A3B8" text-anchor="middle">+ {{TITLE_EN}}+ </text>++ <!-- 装饰线 -->+ <rect x="490" y="400" width="300" height="4" rx="2" fill="#E07843" />++ <!-- 感谢语 -->+ <text x="640" y="470" font-family="PingFang SC, Microsoft YaHei, sans-serif" font-size="32" fill="#FFFFFF"+ text-anchor="middle">+ {{THANKS_TEXT}}+ </text>++ <!-- 信息卡片 -->+ <rect x="440" y="520" width="400" height="100" rx="12" fill="#FFFFFF" fill-opacity="0.1" />++ <text x="640" y="560" font-family="PingFang SC, Microsoft YaHei, sans-serif" font-size="16" fill="#E5E7EB"+ text-anchor="middle">+ {{CONTACT_LINE_1}}+ </text>+ <text x="640" y="590" font-family="PingFang SC, Microsoft YaHei, sans-serif" font-size="14" fill="#94A3B8"+ text-anchor="middle">+ {{CONTACT_LINE_2}}+ </text>++ <!-- 底部版权 -->+ <text x="640" y="680" font-family="system-ui, sans-serif" font-size="12" fill="#64748B" text-anchor="middle">+ {{COPYRIGHT}}+ </text>+</svg>\ No newline at end of filediff --git a/templates/layouts/psychology_attachment/design_spec.md b/templates/layouts/psychology_attachment/design_spec.mdnew file mode 100644index 00000000..52707fec--- /dev/null+++ b/templates/layouts/psychology_attachment/design_spec.md@@ -0,0 +1,388 @@+# 心理疗愈模板 (Psychology Attachment Style) - 设计规范++> 适用于心理学、心理治疗、咨询培训、学术分享等专业场景。++---++## 一、模板概述++| 属性 | 描述 |+| ------------ | ------------------------------------------------ |+| **模板名称** | psychology_attachment(心理疗愈模板) |+| **适用场景** | 心理治疗培训、学术讲座、咨询案例分析、专业分享 |+| **设计调性** | 专业、温暖、疗愈、信任感 |+| **主题模式** | 浅色主题(云白背景 + 蓝绿渐变强调 + 多彩语义色) |++### 核心视觉隐喻++采用"**安全基地**"作为核心视觉隐喻:++- **结构稳固**:页面布局如同安全的依恋关系,有清晰的边界和可预期的模式+- **层次分明**:信息层级如同依恋系统的组织——从生物本能到高阶反思+- **温暖专业**:色彩既体现专业权威,又传递治愈温暖++---++## 二、画布规范++| 属性 | 值 |+| -------------- | --------------------------- |+| **格式** | 标准 16:9 |+| **尺寸** | 1280 × 720 px |+| **viewBox** | `0 0 1280 720` |+| **页面边距** | 左右 40px,上 60px,下 40px |+| **内容安全区** | x: 40-1240, y: 60-680 |++### 页面分区++| 区域 | Y坐标范围 | 高度 | 用途 |+| ---------- | --------- | ----- | ------------------ |+| 顶部标题区 | 60-120 | 60px | 页面标题、章节标识 |+| 主内容区 | 130-640 | 510px | 核心内容展示 |+| 底部信息区 | 650-680 | 30px | 页码、章节导航 |++---++## 三、配色方案++### 主色系++| 语义角色 | 颜色名称 | HEX | RGB | 使用说明 |+| ----------- | -------- | --------- | ----------- | ------------------------ |+| **主导色** | 安全蓝 | `#2E5C8E` | 46,92,142 | 标题、关键框架、安全依恋 |+| **背景色** | 云白 | `#F8FAFC` | 248,250,252 | 页面背景 |+| **强调色A** | 温暖橙 | `#E07843` | 224,120,67 | 活现、情感、矛盾型 |+| **强调色B** | 疗愈绿 | `#3D8B7A` | 61,139,122 | 成长、整合、安全型 |+| **强调色C** | 冷漠灰蓝 | `#64748B` | 100,116,139 | 回避型、冷漠型 |+| **警示色** | 创伤红 | `#B54545` | 181,69,69 | 混乱型、未解决创伤 |++### 依恋类型专属配色++| 依恋类型 | 主色 | 辅色 | 象征 |+| --------------- | --------- | --------- | ---------- |+| 安全型/自主型 | `#3D8B7A` | `#D4EDDA` | 成长、协调 |+| 回避型/冷漠型 | `#64748B` | `#E2E8F0` | 疏离、抑制 |+| 矛盾型/迷恋型 | `#E07843` | `#FED7AA` | 焦虑、放大 |+| 混乱型/未解决型 | `#B54545` | `#FECACA` | 创伤、碎片 |++### 文字色系++| 角色 | 色值 | 用途 |+| ------------ | --------- | ----------------------- |+| **主标题** | `#1E293B` | 深墨蓝,封面/页面主标题 |+| **副标题** | `#2E5C8E` | 安全蓝,强调性副标题 |+| **正文** | `#374151` | 深灰,正文内容 |+| **辅助文本** | `#6B7280` | 中灰,注释说明 |+| **次要文本** | `#64748B` | 灰蓝,页码等 |+| **白色文字** | `#FFFFFF` | 深色背景上的文字 |+| **浅色文字** | `#E5E7EB` | 深色背景上的副文字 |+| **英文灰** | `#94A3B8` | 英文副标题 |++### 渐变色++| 名称 | 起点 | 中点 | 终点 | 用途 |+| ---------- | --------- | --------- | --------- | --------------- |+| 封面渐变 | `#1E3A5F` | `#2E5C8E` | `#3D8B7A` | 封面/章节页背景 |+| 结束页渐变 | `#1E3A5F` | `#2E5C8E` | `#3D8B7A` | 结束页背景 |++---++## 四、排版体系++### 字体方案++**中文字体栈**: `"PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif`++**英文字体栈**: `system-ui, -apple-system, sans-serif`++### 字号层级++| 层级 | 用途 | 字号 | 字重 | 行高 |+| ----- | ---------- | ---- | -------- | ---- |+| H1 | 封面主标题 | 52px | Bold | 1.2 |+| H2 | 页面主标题 | 32px | Bold | 1.3 |+| H3 | 章节副标题 | 24px | SemiBold | 1.3 |+| H4 | 卡片标题 | 20px | SemiBold | 1.4 |+| Body | 正文内容 | 18px | Regular | 1.5 |+| Small | 注释说明 | 14px | Regular | 1.4 |++### 间距系统++| 用途 | 间距值 |+| ---------- | ------------------------- |+| 基础单位 | 8px |+| 元素间距 | 16px / 24px / 32px / 48px |+| 段落间距 | 24px |+| 列表项间距 | 12px |+| 卡片内边距 | 24px |++---++## 五、页面结构++### 通用布局++| 区域 | 位置/高度 | 内容说明 |+| ---------- | ---------- | -------------------------- |+| **左装饰** | x=0, w=8px | 主导色垂直装饰条(内容页) |+| **顶部** | y=60-120 | 页面标题 + 英文副标题 |+| **分隔线** | y=125-130 | 装饰分隔线 |+| **内容区** | y=130-640 | 主要内容区域(510px高) |+| **页脚** | y=650-700 | 页码、章节信息 |++### 装饰设计++- **左侧装饰条**: 主导色 (`#2E5C8E`),宽度 8px,贯穿全页+- **分隔线**: 浅灰色 (`#E5E7EB`),宽度 1-2px+- **圆形装饰**: 低透明度圆形,用于章节页/封面背景++---++## 六、页面类型++### 1. 封面页 (01_cover.svg)++- **背景**: 蓝绿渐变 (`#1E3A5F` → `#2E5C8E` → `#3D8B7A`)+- **装饰**: 可选背景图片(opacity=0.25)+- **标题区**: 居中,主标题 52px + 副标题 28px+- **英文标题**: 浅灰色,24px+- **装饰线**: 温暖橙色细线,200px 宽+- **底部**: 引言卡片(半透明背景 + 疗愈绿左边框)+- **标签**: 关键词标签(半透明胶囊)+- **页码**: 右下角,14px++### 2. 目录页 (02_toc.svg)++- **背景**: 云白 (`#F8FAFC`)+- **左装饰**: 主导色 8px 竖条+- **标题**: "内容概览" + "Contents Overview"+- **左侧**: 五章节列表(彩色编号方块 + 标题 + 描述)+ - 章节1: 主导蓝 `#2E5C8E`+ - 章节2: 疗愈绿 `#3D8B7A`+ - 章节3: 温暖橙 `#E07843`+ - 章节4: 冷漠灰蓝 `#64748B`+ - 章节5: 创伤红 `#B54545`+- **右侧**: 学习目标卡片+- **中间**: 虚线分隔++### 3. 章节页 (02_chapter.svg)++- **背景**: 蓝绿渐变+- **装饰**: 多个低透明度同心圆、斜线装饰+- **大号编号**: 120px,半透明白色居中+- **章节标签**: 胶囊形状 "CHAPTER X"+- **标题**: 48px 白色粗体+- **副标题**: 24px 浅灰英文+- **装饰线**: 温暖橙色细线,200px+- **引言**: 半透明引言卡片+- **关键词**: 底部标签组+- **页码**: 右下角++### 4. 内容页 (03_content.svg)++- **背景**: 云白+- **左装饰**: 主导蓝 8px 竖条+- **标题区**: 主标题 28px + 英文副标题 16px+- **分隔线**: 标题下方装饰线+- **内容区**: 灵活布局(三栏/左右分栏/单栏)+- **卡片样式**:+ - 白色背景 + 浅灰边框+ - 圆角 12-16px+ - 彩色顶部条 / 彩色左边框+- **底部提示**: 浅灰背景提示条(可选)+- **页码**: 右下角++### 5. 结束页 (04_ending.svg)++- **背景**: 蓝绿渐变+- **装饰**: 网络连接图(圆点 + 连线)+- **标题**: 主标题 56px + 副标题 28px+- **英文**: 浅灰英文标题+- **装饰线**: 温暖橙色细线,300px+- **信息区**: 半透明信息卡片+- **底部**: 版权信息++---++## 七、布局模式++### 7.1 三栏并列(对比/发现)++```+[卡片1: 360px] [间距: 40px] [卡片2: 360px] [间距: 40px] [卡片3: 360px]+```++- 每卡片: 彩色顶部条 + 图标 + 编号 + 标题 + 内容 + 底部标签+- 适用于: 三个发现、三种类型对比++### 7.2 左右分栏++```+[左栏: 560px] [间距: 60px] [右栏: 580px]+```++- 左侧: 概念/理论+- 右侧: 应用/实践+- 适用于: 概念解释、治疗关系++### 7.3 垂直堆叠(层级结构)++```+┌─────────────────────────────────┐+│ 顶层:元认知 │+├─────────────────────────────────┤+│ 表征层 │+├─────────────────────────────────┤+│ 情感层 │+├─────────────────────────────────┤+│ 躯体层 │+└─────────────────────────────────┘+```++- 适用于: 自我发展层级、理论框架++### 7.4 依恋类型四格++| 安全型 (绿) | 回避型 (灰蓝) |+| 矛盾型 (橙) | 混乱型 (红) |++- 各卡片使用对应的依恋类型配色++---++## 八、视觉元素规范++### 8.1 卡片样式++```xml+<!-- 标准信息卡片 -->+<rect rx="12" fill="#FFFFFF" stroke="#E5E7EB" stroke-width="1"/>++<!-- 强调卡片(带左边框) -->+<rect rx="12" fill="#FFFFFF"/>+<rect x="0" width="4" fill="#2E5C8E" rx="2"/>++<!-- 彩色顶部卡片 -->+<rect rx="16" fill="#FFFFFF" stroke="#E5E7EB" stroke-width="1"/>+<rect rx="16" width="100%" height="80" fill="#2E5C8E"/> <!-- 顶部色块 -->+```++### 8.2 编号方块++```xml+<path fill="#2E5C8E" d="M8,0 H42 A8,8 0 0 1 50,8 V42 A8,8 0 0 1 42,50 H8 A8,8 0 0 1 0,42 V8 A8,8 0 0 1 8,0 Z"/>+<text x="25" y="33" font-size="20" font-weight="bold" fill="#FFFFFF" text-anchor="middle">1</text>+```++### 8.3 标签样式++```xml+<!-- 胶囊标签 -->+<path fill="#E0F2FE" d="M33,0 H107 A13,13 0 0 1 120,13 V13 A13,13 0 0 1 107,26 H33 A13,13 0 0 1 20,13 V13 A13,13 0 0 1 33,0 Z"/>+<text x="70" y="18" font-size="13" fill="#2E5C8E" text-anchor="middle">标签文字</text>+```++### 8.4 引言卡片++```xml+<!-- 半透明引言卡片 -->+<path fill="#FFFFFF" fill-opacity="0.1" d="..."/>+<path fill="#3D8B7A" d="..." rx="2"/> <!-- 左侧装饰条 -->+<text font-style="italic" fill="#E5E7EB">引言内容</text>+```++### 8.5 分隔线++```xml+<line x1="60" y1="Y" x2="1240" y2="Y" stroke="#E5E7EB" stroke-width="2"/>+```++---++## 九、图标使用++### 占位符格式++```xml+<use data-icon="icon-name" x="X" y="Y" width="32" height="32" fill="COLOR"/>+```++### 常用图标映射++| 概念 | 图标 |+| --------- | ----------------------- |+| 依恋/联结 | `heart`, `link` |+| 安全基地 | `home`, `shield-check` |+| 心智化 | `brain`, `lightbulb` |+| 情感调节 | `activity`, `sliders` |+| 觉察 | `eye`, `compass` |+| 创伤 | `alert-triangle`, `zap` |+| 修复 | `refresh-cw`, `tool` |+| 发展 | `trending-up`, `layers` |++---++## 十、SVG 技术约束++### viewBox 规范++```xml+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1280 720">+```++### 禁用功能(黑名单)++| 分类 | 禁用项 |+| ------------- | ------------------------------- |+| **裁剪/遮罩** | ❌ `clipPath`, `mask` |+| **样式系统** | ❌ `<style>`, `class`, `id` |+| **结构/嵌套** | ❌ `<foreignObject>` |+| **文本/字体** | ❌ `textPath`, `@font-face` |+| **动画/交互** | ❌ `<animate*>`, `<set>`, `on*` |+| **标记/箭头** | ❌ `marker`, `marker-end` |++### PPT 兼容性规则++| ❌ 禁止 | ✅ 正确替代 |+| ------------------------------ | --------------------------------------------- |+| `fill="rgba(255,255,255,0.1)"` | `fill="#FFFFFF" fill-opacity="0.1"` |+| `stroke="rgba(0,0,0,0.5)"` | `stroke="#000000" stroke-opacity="0.5"` |+| `<g opacity="0.2">...</g>` | 每个子元素单独设置 `opacity` / `fill-opacity` |++---++## 十一、占位符规范++| 占位符 | 用途 |+| -------------------- | -------------- |+| `{{TITLE}}` | 主标题 |+| `{{SUBTITLE}}` | 副标题 |+| `{{TITLE_EN}}` | 英文标题 |+| `{{CHAPTER_NUM}}` | 章节编号 |+| `{{CHAPTER_TITLE}}` | 章节标题 |+| `{{CHAPTER_EN}}` | 章节英文标题 |+| `{{QUOTE}}` | 引言内容 |+| `{{QUOTE_AUTHOR}}` | 引言作者 |+| `{{PAGE_NUM}}` | 页码 |+| `{{COVER_BG_IMAGE}}` | 封面背景图路径 |++---++## 十二、使用说明++### 模板使用步骤++1. **复制模板**: 将模板文件复制到项目 `templates/` 目录+2. **替换占位符**: 使用实际内容替换 `{{}}` 占位符+3. **调整配色**: 根据主题微调配色方案+4. **生成内容**: 使用 Executor 角色生成具体页面+5. **后处理**: 运行 `finalize_svg.py` 完成图片嵌入++### 适用主题++- 心理治疗与咨询+- 依恋理论研究+- 发展心理学+- 临床案例分析+- 学术培训讲座+- 心理学课程教学diff --git a/templates/layouts/zhongqiyan/01_cover.svg b/templates/layouts/zhongqiyan/01_cover.svgnew file mode 100644index 00000000..8a7aa636--- /dev/null+++ b/templates/layouts/zhongqiyan/01_cover.svg@@ -0,0 +1,49 @@+<?xml version="1.0" encoding="UTF-8"?>+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 1280 720">+ <!-- 模板: 封面页 - 中汽研风格 -->++ <!-- 背景层 - 使用封面背景图(AI生成或用户提供) -->+ <image href="../images/{{COVER_BG_IMAGE}}" x="0" y="0" width="1280" height="720"+ preserveAspectRatio="xMidYMid slice" />++ <!-- 半透明遮罩层 - 增强文字可读性 -->+ <rect x="0" y="0" width="1280" height="720" fill="#001F4D" fill-opacity="0.4" />++ <!-- 顶部装饰线 -->+ <rect x="0" y="0" width="1280" height="4" fill="#FFFFFF" fill-opacity="0.3" />++ <!-- 大型Logo - 居中偏上 -->+ <image href="../images/{{LOGO_LARGE}}" x="344" y="120" width="592" height="238"+ preserveAspectRatio="xMidYMid meet" />++ <!-- 主标题区域 -->+ <text x="640" y="440" text-anchor="middle" font-family="Microsoft YaHei, SimHei, sans-serif" font-size="48"+ font-weight="bold" fill="#FFFFFF">+ {{TITLE}}+ </text>++ <!-- 副标题 -->+ <text x="640" y="500" text-anchor="middle" font-family="Microsoft YaHei, Arial, sans-serif" font-size="26"+ fill="#FFFFFF" fill-opacity="0.85">+ {{SUBTITLE}}+ </text>++ <!-- 分隔线 -->+ <line x1="440" y1="540" x2="840" y2="540" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.4" />++ <!-- 单位名称(中文) -->+ <text x="640" y="590" text-anchor="middle" font-family="Microsoft YaHei, Arial, sans-serif" font-size="22"+ fill="#FFFFFF" fill-opacity="0.9">+ {{AUTHOR}}+ </text>++ <!-- 单位名称(英文) - 可选 -->+ <text x="640" y="625" text-anchor="middle" font-family="Arial, sans-serif" font-size="16" fill="#FFFFFF"+ fill-opacity="0.7">+ {{AUTHOR_EN}}+ </text>++ <!-- 底部装饰线 -->+ <rect x="0" y="716" width="1280" height="4" fill="#004098" />++</svg>diff --git a/templates/layouts/zhongqiyan/02_chapter.svg b/templates/layouts/zhongqiyan/02_chapter.svgnew file mode 100644index 00000000..3b68bdd9--- /dev/null+++ b/templates/layouts/zhongqiyan/02_chapter.svg@@ -0,0 +1,47 @@+<?xml version="1.0" encoding="UTF-8"?>+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1280 720">+ <!-- 模板: 章节页 - 中汽研风格 -->++ <defs>+ <!-- 深蓝背景渐变 -->+ <linearGradient id="gradChapter" x1="0%" y1="0%" x2="100%" y2="100%">+ <stop offset="0%" style="stop-color:#004098;stop-opacity:1" />+ <stop offset="100%" style="stop-color:#002A55;stop-opacity:1" />+ </linearGradient>+ </defs>++ <!-- 背景 -->+ <rect width="1280" height="720" fill="url(#gradChapter)"/>++ <!-- 装饰元素 - 几何图案 -->+ <circle cx="1200" cy="100" r="200" fill="#FFFFFF" fill-opacity="0.03"/>+ <circle cx="100" cy="620" r="250" fill="#FFFFFF" fill-opacity="0.03"/>++ <!-- 水平装饰线 -->+ <line x1="100" y1="360" x2="1180" y2="360" stroke="white" stroke-width="1" stroke-opacity="0.1"/>++ <!-- 章节内容 -->+ <g transform="translate(640, 360)">+ <!-- 章节编号 - 大号半透明背景 -->+ <text x="0" y="-40" text-anchor="middle" font-family="Arial" font-size="120" font-weight="bold" fill="white" fill-opacity="0.08">+ 0{{CHAPTER_NUM}}+ </text>++ <!-- 装饰方块 -->+ <rect x="-40" y="10" width="80" height="6" fill="#FFFFFF"/>++ <!-- 章节标题 -->+ <text x="0" y="80" text-anchor="middle" font-family="Microsoft YaHei, SimHei, sans-serif" font-size="48" font-weight="bold" fill="white">+ {{CHAPTER_TITLE}}+ </text>++ <!-- 英文标题/副标题 -->+ <text x="0" y="130" text-anchor="middle" font-family="Arial" font-size="24" fill="#FFFFFF" fill-opacity="0.7" letter-spacing="2">+ {{CHAPTER_SUBTITLE}}+ </text>+ </g>++ <!-- 底部装饰线 -->+ <rect x="0" y="716" width="1280" height="4" fill="#FFFFFF" fill-opacity="0.3"/>++</svg>diff --git a/templates/layouts/zhongqiyan/02_toc.svg b/templates/layouts/zhongqiyan/02_toc.svgnew file mode 100644index 00000000..567613cc--- /dev/null+++ b/templates/layouts/zhongqiyan/02_toc.svg@@ -0,0 +1,73 @@+<?xml version="1.0" encoding="UTF-8"?>+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 1280 720">+ <!-- 模板: 目录页 - 中汽研风格 -->++ <!-- 白色背景 -->+ <rect x="0" y="0" width="1280" height="720" fill="#FFFFFF"/>++ <!-- 顶部深蓝色装饰线 -->+ <rect x="0" y="0" width="1280" height="4" fill="#004098"/>++ <!-- 导航栏区域 -->+ <rect x="60" y="30" width="50" height="50" fill="#004098"/>+ <text x="85" y="65" text-anchor="middle" font-family="Arial, sans-serif" font-size="24" font-weight="bold" fill="#FFFFFF">目</text>+ <text x="130" y="65" font-family="Microsoft YaHei, SimHei, sans-serif" font-size="28" font-weight="bold" fill="#333333">目 录</text>+ <image href="../images/{{LOGO_HEADER}}" x="1107" y="30" width="113" height="50" preserveAspectRatio="xMidYMid meet"/>++ <!-- 左侧装饰竖线 -->+ <rect x="300" y="140" width="4" height="480" fill="#004098"/>++ <!-- 目录项 - 第1章 -->+ <g>+ <text x="330" y="195" font-family="Microsoft YaHei, sans-serif" font-size="24" font-weight="bold" fill="#004098">{{CHAPTER_01_NUM}}</text>+ <text x="385" y="195" font-family="Microsoft YaHei, sans-serif" font-size="24" font-weight="bold" fill="#004098">||</text>+ <text x="430" y="195" font-family="Microsoft YaHei, sans-serif" font-size="24" font-weight="bold" fill="#333333">{{CHAPTER_01_TITLE}}</text>+ <text x="430" y="228" font-family="Microsoft YaHei, sans-serif" font-size="16" fill="#666666">{{CHAPTER_01_DESC}}</text>+ </g>++ <!-- 目录项 - 第2章 -->+ <g>+ <text x="330" y="295" font-family="Microsoft YaHei, sans-serif" font-size="24" font-weight="bold" fill="#004098">{{CHAPTER_02_NUM}}</text>+ <text x="385" y="295" font-family="Microsoft YaHei, sans-serif" font-size="24" font-weight="bold" fill="#004098">||</text>+ <text x="430" y="295" font-family="Microsoft YaHei, sans-serif" font-size="24" font-weight="bold" fill="#333333">{{CHAPTER_02_TITLE}}</text>+ <text x="430" y="328" font-family="Microsoft YaHei, sans-serif" font-size="16" fill="#666666">{{CHAPTER_02_DESC}}</text>+ </g>++ <!-- 目录项 - 第3章 -->+ <g>+ <text x="330" y="395" font-family="Microsoft YaHei, sans-serif" font-size="24" font-weight="bold" fill="#004098">{{CHAPTER_03_NUM}}</text>+ <text x="385" y="395" font-family="Microsoft YaHei, sans-serif" font-size="24" font-weight="bold" fill="#004098">||</text>+ <text x="430" y="395" font-family="Microsoft YaHei, sans-serif" font-size="24" font-weight="bold" fill="#333333">{{CHAPTER_03_TITLE}}</text>+ <text x="430" y="428" font-family="Microsoft YaHei, sans-serif" font-size="16" fill="#666666">{{CHAPTER_03_DESC}}</text>+ </g>++ <!-- 目录项 - 第4章 -->+ <g>+ <text x="330" y="495" font-family="Microsoft YaHei, sans-serif" font-size="24" font-weight="bold" fill="#004098">{{CHAPTER_04_NUM}}</text>+ <text x="385" y="495" font-family="Microsoft YaHei, sans-serif" font-size="24" font-weight="bold" fill="#004098">||</text>+ <text x="430" y="495" font-family="Microsoft YaHei, sans-serif" font-size="24" font-weight="bold" fill="#333333">{{CHAPTER_04_TITLE}}</text>+ <text x="430" y="528" font-family="Microsoft YaHei, sans-serif" font-size="16" fill="#666666">{{CHAPTER_04_DESC}}</text>+ </g>++ <!-- 目录项 - 第5章 -->+ <g>+ <text x="330" y="595" font-family="Microsoft YaHei, sans-serif" font-size="24" font-weight="bold" fill="#004098">{{CHAPTER_05_NUM}}</text>+ <text x="385" y="595" font-family="Microsoft YaHei, sans-serif" font-size="24" font-weight="bold" fill="#004098">||</text>+ <text x="430" y="595" font-family="Microsoft YaHei, sans-serif" font-size="24" font-weight="bold" fill="#333333">{{CHAPTER_05_TITLE}}</text>+ <text x="430" y="628" font-family="Microsoft YaHei, sans-serif" font-size="16" fill="#666666">{{CHAPTER_05_DESC}}</text>+ </g>++ <!-- 右侧装饰元素(可选统计区) -->+ <rect x="900" y="180" width="280" height="400" fill="#F5F5F5" fill-opacity="0.5" rx="8"/>+ <text x="1040" y="360" text-anchor="middle" font-family="Arial, sans-serif" font-size="120" font-weight="bold" fill="#004098" fill-opacity="0.1">{{STAT_NUMBER_1}}</text>+ <text x="1040" y="400" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="18" fill="#666666">{{STAT_LABEL_1}}</text>+ <text x="1040" y="450" text-anchor="middle" font-family="Arial, sans-serif" font-size="48" font-weight="bold" fill="#004098" fill-opacity="0.15">{{STAT_NUMBER_2}}</text>+ <text x="1040" y="480" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="16" fill="#666666">{{STAT_LABEL_2}}</text>++ <!-- 底部装饰线 -->+ <rect x="0" y="716" width="1280" height="4" fill="#004098"/>++ <!-- 页码 -->+ <text x="640" y="695" text-anchor="middle" font-family="Arial, sans-serif" font-size="14" fill="#999999">{{PAGE_NUM}}</text>++</svg>diff --git a/templates/layouts/zhongqiyan/03_content.svg b/templates/layouts/zhongqiyan/03_content.svgnew file mode 100644index 00000000..24785c6a--- /dev/null+++ b/templates/layouts/zhongqiyan/03_content.svg@@ -0,0 +1,57 @@+<?xml version="1.0" encoding="UTF-8"?>+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 1280 720">+ <!-- 模板: 内容页 - 中汽研风格 -->++ <!-- 白色背景 -->+ <rect x="0" y="0" width="1280" height="720" fill="#FFFFFF" />++ <!-- 顶部深蓝色装饰线 -->+ <rect x="0" y="0" width="1280" height="4" fill="#004098" />++ <!-- 页眉导航栏 -->+ <!-- 章节序号块 - 深蓝色正方形 -->+ <rect x="60" y="30" width="50" height="50" fill="#004098" />+ <text x="85" y="65" text-anchor="middle" font-family="Arial, sans-serif" font-size="24" font-weight="bold"+ fill="#FFFFFF">{{CHAPTER_NUM}}</text>++ <!-- 页面标题 -->+ <text x="130" y="65" font-family="Microsoft YaHei, SimHei, sans-serif" font-size="28" font-weight="bold"+ fill="#333333">{{PAGE_TITLE}}</text>++ <!-- 右上角Logo -->+ <image href="../images/{{LOGO_HEADER}}" x="1107" y="30" width="113" height="50"+ preserveAspectRatio="xMidYMid meet" />++ <!-- 内容区域 - 灵活布局,由 Executor 根据实际内容自由设计 -->+ <!-- 可使用的布局模式:+ - 单栏文字列表+ - 左右双栏对比+ - 卡片式分块(如 2×2 四宫格)+ - 图文混排(左图右文、上图下文、通栏图)+ - 表格+ - 时间轴+ - 流程图+ -->+ <rect x="60" y="100" width="1160" height="570" fill="none" stroke="#E0E0E0" stroke-width="2"+ stroke-dasharray="8,8" />+ <text x="640" y="365" text-anchor="middle" fill="#CBD5E1" font-size="18" font-family="Microsoft YaHei, sans-serif">+ {{CONTENT_AREA}}+ </text>+ <text x="640" y="400" text-anchor="middle" fill="#CBD5E1" font-size="14" font-family="Microsoft YaHei, sans-serif">+ (由 Executor 根据实际内容自由布局)+ </text>++ <!-- 常用设计元素参考 -->+ <!-- 色块容器: <rect fill="#F5F5F5" rx="4"/> -->+ <!-- 强调色块: <rect fill="#004098"/> -->+ <!-- 圆点列表: <circle r="5" fill="#004098"/> -->+ <!-- 分隔线: <line stroke="#E0E0E0" stroke-width="1"/> -->++ <!-- 底部装饰线 -->+ <rect x="0" y="716" width="1280" height="4" fill="#004098" />++ <!-- 页码 -->+ <text x="640" y="695" text-anchor="middle" font-family="Arial, sans-serif" font-size="14"+ fill="#999999">{{PAGE_NUM}}</text>++</svg>diff --git a/templates/layouts/zhongqiyan/04_ending.svg b/templates/layouts/zhongqiyan/04_ending.svgnew file mode 100644index 00000000..988c807b--- /dev/null+++ b/templates/layouts/zhongqiyan/04_ending.svg@@ -0,0 +1,62 @@+<?xml version="1.0" encoding="UTF-8"?>+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 1280 720">+ <!-- 模板: 结束页 - 中汽研风格 -->++ <!-- 深蓝色背景 -->+ <rect x="0" y="0" width="1280" height="720" fill="#004098" />++ <!-- 装饰元素 - 几何图案(低透明度圆形) -->+ <circle cx="100" cy="100" r="200" fill="#FFFFFF" fill-opacity="0.03" />+ <circle cx="1200" cy="600" r="300" fill="#FFFFFF" fill-opacity="0.03" />+ <circle cx="640" cy="360" r="400" fill="#FFFFFF" fill-opacity="0.02" />++ <!-- 顶部装饰线 -->+ <rect x="0" y="0" width="1280" height="4" fill="#FFFFFF" fill-opacity="0.3" />++ <!-- 网格装饰 - 营造专业氛围 -->+ <line x1="0" y1="180" x2="1280" y2="180" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.05" />+ <line x1="0" y1="360" x2="1280" y2="360" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.05" />+ <line x1="0" y1="540" x2="1280" y2="540" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.05" />+ <line x1="320" y1="0" x2="320" y2="720" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.05" />+ <line x1="640" y1="0" x2="640" y2="720" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.05" />+ <line x1="960" y1="0" x2="960" y2="720" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.05" />++ <!-- 大型Logo - 居中 -->+ <image href="../images/{{LOGO_LARGE}}" x="344" y="160" width="592" height="238"+ preserveAspectRatio="xMidYMid meet" />++ <!-- 感谢语(中文) -->+ <text x="640" y="480" text-anchor="middle" font-family="Microsoft YaHei, SimHei, sans-serif" font-size="56"+ font-weight="bold" fill="#FFFFFF">+ {{THANK_YOU}}+ </text>++ <!-- 感谢语(英文) -->+ <text x="640" y="530" text-anchor="middle" font-family="Arial, Georgia, serif" font-size="24" fill="#FFFFFF"+ fill-opacity="0.7">+ {{THANK_YOU_EN}}+ </text>++ <!-- 分隔线 -->+ <line x1="540" y1="560" x2="740" y2="560" stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.3" />++ <!-- 单位信息(中文) -->+ <text x="640" y="610" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="18" fill="#FFFFFF"+ fill-opacity="0.85">+ {{AUTHOR}}+ </text>++ <!-- 单位信息(英文) -->+ <text x="640" y="640" text-anchor="middle" font-family="Arial, sans-serif" font-size="14" fill="#FFFFFF"+ fill-opacity="0.6">+ {{AUTHOR_EN}}+ </text>++ <!-- 底部信息区 -->+ <rect x="0" y="680" width="1280" height="40" fill="#FFFFFF" fill-opacity="0.1" />+ <text x="640" y="707" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="14" fill="#FFFFFF"+ fill-opacity="0.6">+ {{TAGLINE}}+ </text>++</svg>diff --git a/templates/layouts/zhongqiyan/design_spec.md b/templates/layouts/zhongqiyan/design_spec.mdnew file mode 100644index 00000000..39abfd4e--- /dev/null+++ b/templates/layouts/zhongqiyan/design_spec.md@@ -0,0 +1,222 @@+# 中汽研模板 (CATARC Style) - 设计规范++> 适用于中汽研产品认证、测评认证、技术展示、商务拜访等场景。++---++## 一、模板概述++| 属性 | 描述 |+| -------------- | ------------------------------------------------------ |+| **模板名称** | zhongqiyan(中汽研模板) |+| **适用场景** | 产品认证展示、测评认证介绍、技术推介、商务拜访 |+| **设计调性** | 专业、权威、可信赖、咨询风格 |+| **主题模式** | 亮色主题(白色背景 + 深蓝强调色) |++---++## 二、画布规范++| 属性 | 值 |+| -------------- | ----------------------------- |+| **格式** | 标准 16:9 |+| **尺寸** | 1280 × 720 px |+| **viewBox** | `0 0 1280 720` |+| **页面边距** | 左右 60px,上 80px,下 40px |+| **内容安全区** | x: 60-1220, y: 80-680 |++---++## 三、配色方案++### 主色系++| 角色 | 色值 | 备注 |+| -------------- | ----------- | -------------------------------- |+| **主导深蓝** | `#004098` | 标题栏、导航条、章节序号块、装饰条 |+| **背景白** | `#FFFFFF` | 页面主背景 |+| **辅助浅灰** | `#F5F5F5` | 非重点内容背景块 |+| **边框灰** | `#E0E0E0` | 分割线、边框 |+| **强调红** | `#CC0000` | 关键信息高亮 |++### 文字色系++| 角色 | 色值 | 用途 |+| -------------- | ----------- | ---------------------- |+| **主文字** | `#333333` | 正文、标题 |+| **白色文字** | `#FFFFFF` | 深蓝色块上的文字 |+| **辅助文字** | `#666666` | 置灰章节、辅助说明 |+| **浅色辅助** | `#999999` | 注释、页码、提示 |++### 功能色++| 用途 | 色值 | 说明 |+| -------- | ----------- | -------------- |+| **成功** | `#4CAF50` | 通过/认证 |+| **警示** | `#CC0000` | 不合格/注意 |++---++## 四、排版体系++### 字体方案++**字体栈**: `"Microsoft YaHei", "微软雅黑", "SimHei", Arial, Calibri, sans-serif`++### 字号层级++| 层级 | 用途 | 字号 | 字重 |+| ---- | ---------------- | ---- | ------- |+| H1 | 封面主标题 | 48px | Bold |+| H2 | 页面大标题 | 28px | Bold |+| H3 | 模块标题/小标题 | 24px | Bold |+| P | 正文内容 | 18px | Regular |+| High | 强调数据 | 36px | Bold |+| Sub | 辅助说明 | 14px | Regular |++---++## 五、页面结构++### 通用布局++| 区域 | 位置/高度 | 内容说明 |+| ---------- | ------------- | -------------------------------------- |+| **顶部** | y=0, h=4px | 深蓝色横条,贯穿整页 |+| **标题栏** | y=30, h=50px | 章节序号块 + 标题文字 + 右上角Logo |+| **内容区** | y=100, h=560px | 主要内容区域 |+| **页脚** | y=680, h=40px | 页码、底部装饰线 |++### 导航栏设计++- **顶部装饰线**: 深蓝色 (`#004098`),高度 4px,贯穿整页+- **底部装饰线**: 深蓝色 (`#004098`),高度 4px,y=716+- **标题栏** (y=30):+ - 章节序号块: 深蓝色正方形 (50×50px),白色数字/文字居中+ - 标题文字: 距序号块 20px,28px 字号,`#333333`+ - 右上角 Logo: 固定于 x=1107,尺寸 113×50px++---++## 六、页面类型++### 1. 封面页 (01_cover.svg)++- 支持背景图(AI生成/用户提供)+- 半透明遮罩层增强文字可读性+- 居中大型Logo+- 主标题 + 副标题+- 单位名称(中英文)++### 2. 目录页 (02_toc.svg)++- 双竖线分隔符 `||` 设计+- 最多支持5个章节+- 左侧装饰竖线+- 右侧可选统计数据展示区++### 3. 章节页 (02_chapter.svg)++- 深蓝色渐变背景+- 大号章节编号+- 章节标题 + 英文副标题++### 4. 内容页 (03_content.svg)++- 白色背景+- 标准导航栏+- 灵活内容区域+- 支持多种布局模式++### 5. 结束页 (04_ending.svg)++- 深蓝色纯色背景+- 居中Logo+- 感谢语+- 单位信息++---++## 七、布局模式++| 模式 | 适用场景 |+| ------------------ | -------------------------- |+| **单栏居中** | 封面、结语、重要观点 |+| **左右分栏 (5:5)** | 对比展示 |+| **左右分栏 (4:6)** | 图文混排 |+| **上下分栏** | 流程说明、标准列表 |+| **三栏卡片** | 项目列表 |+| **矩阵网格** | 分类展示 |+| **表格** | 数据对比、规范列表 |++---++## 八、间距规范++| 元素 | 数值 |+| ------------ | ------ |+| 卡片间距 | 24px |+| 内容块间距 | 32px |+| 卡片内边距 | 24px |+| 卡片圆角 | 8px |+| 图标与文字 | 12px |++---++## 九、SVG 技术约束++### 必须遵守++1. viewBox: `0 0 1280 720`+2. 背景使用 `<rect>` 元素+3. 文本换行使用 `<tspan>`(禁止 `<foreignObject>`)+4. 透明度使用 `fill-opacity` / `stroke-opacity`,禁止 `rgba()`+5. 禁止使用:`clipPath`、`mask`、`filter`、`<style>`、`class`、`foreignObject`+6. 禁止使用:`textPath`、`animate*`、`script`、`marker`/`marker-end`+7. 箭头使用 `<polygon>` 三角形替代 `<marker>`++### PPT 兼容性规则++- 禁止 `<g opacity="...">`(组透明度),每个子元素单独设置+- 图片透明度使用遮罩层替代+- 仅使用内联样式,禁止外部 CSS 和 `@font-face`++---++## 十、占位符规范++模板使用 `{{PLACEHOLDER}}` 格式的占位符,常用占位符:++| 占位符 | 说明 |+| ------------------ | ------------------ |+| `{{TITLE}}` | 主标题 |+| `{{SUBTITLE}}` | 副标题 |+| `{{AUTHOR}}` | 作者/单位(中文) |+| `{{AUTHOR_EN}}` | 作者/单位(英文) |+| `{{PAGE_TITLE}}` | 页面标题 |+| `{{CHAPTER_NUM}}` | 章节编号 |+| `{{PAGE_NUM}}` | 页码 |+| `{{LOGO_LARGE}}` | 大型Logo文件名 |+| `{{LOGO_HEADER}}` | 页眉Logo文件名 |+| `{{COVER_BG_IMAGE}}`| 封面背景图文件名 |++---++## 十一、图片资源++模板目录可包含以下图片文件:++| 文件名 | 尺寸 | 用途 |+| ---------------- | ---------- | ------------------ |+| 右上角 logo.png | 113×50 | 页眉Logo |+| 大型 logo.png | 592×238 | 封面/结束页Logo |++---++## 十二、使用说明++1. 复制模板到项目目录+2. 替换 images 目录中的 Logo 文件+3. 根据内容需求选择合适的页面模板+4. 使用占位符标记需要替换的内容+5. 通过 Executor 角色生成最终 SVGdiff --git "a/templates/layouts/zhongqiyan/\345\217\263\344\270\212\350\247\222 logo.png" "b/templates/layouts/zhongqiyan/\345\217\263\344\270\212\350\247\222 logo.png"new file mode 100644index 00000000..8ee1e679Binary files /dev/null and "b/templates/layouts/zhongqiyan/\345\217\263\344\270\212\350\247\222 logo.png" differdiff --git "a/templates/layouts/zhongqiyan/\345\244\247\345\236\213 logo.png" "b/templates/layouts/zhongqiyan/\345\244\247\345\236\213 logo.png"new file mode 100644index 00000000..2d2e4c53Binary files /dev/null and "b/templates/layouts/zhongqiyan/\345\244\247\345\236\213 logo.png" differ