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
feat(templates): 新增图表/布局模板 JSON 索引,优化 AI 选型路径
hugohe36fbd405306e6
diff --git a/AGENTS.md b/AGENTS.mdindex a4409ab0..0e65119d 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -84,6 +84,8 @@ python3 tools/project_manager.py init <项目名称> --format <格式>### A) 使用已有模板+若选择 A) 使用已有模板,先查询 `templates/layouts/layouts_index.json` 确认可用模板、适用场景和资源文件,再决定复制哪一套模板。+**情况 1:模板在 repo 内**(如 `templates/layouts/` 下)检查模板目录内容,按类型分别复制:diff --git a/roles/Executor_Consultant.md b/roles/Executor_Consultant.mdindex 9a8e64a5..4b3d4756 100644--- a/roles/Executor_Consultant.md+++ b/roles/Executor_Consultant.md@@ -171,7 +171,7 @@| 战略定位 | `matrix_2x2.svg` || 发展历程 | `timeline.svg` |-完整图表目录和选择指南:[templates/charts/README.md](../templates/charts/README.md)+完整图表目录和选择指南:[templates/charts/charts_index.json](../templates/charts/charts_index.json)> 📖 **建议**:当页面涉及图表时,建议先阅读对应的模板 SVG 文件(如 `templates/charts/bar_chart.svg`),了解其结构和布局,以便绘制出更高质量的图表。@@ -334,4 +334,3 @@ python3 tools/finalize_svg.py <项目路径># 3. 导出 PPTXpython3 tools/svg_to_pptx.py <项目路径> -s final```-diff --git a/roles/Executor_Consultant_Top.md b/roles/Executor_Consultant_Top.mdindex 4cb2d4a8..bc4c0c39 100644--- a/roles/Executor_Consultant_Top.md+++ b/roles/Executor_Consultant_Top.md@@ -259,7 +259,7 @@| 战略定位 | `matrix_2x2.svg` | 双维度分析 || 发展历程 | `timeline.svg` | 里程碑展示 |-完整图表目录和选择指南:[templates/charts/README.md](../templates/charts/README.md)+完整图表目录和选择指南:[templates/charts/charts_index.json](../templates/charts/charts_index.json)> 📖 **建议**:当页面涉及图表时,建议先阅读对应的模板 SVG 文件(如 `templates/charts/bar_chart.svg`),了解其结构和布局,以便绘制出更高质量的图表。diff --git a/roles/Executor_General.md b/roles/Executor_General.mdindex 10af84eb..0d8febee 100644--- a/roles/Executor_General.md+++ b/roles/Executor_General.md@@ -204,7 +204,7 @@位于 [templates/charts/](../templates/charts/):`kpi_cards` `bar_chart` `line_chart` `donut_chart` `funnel_chart` `matrix_2x2` `timeline` `process_flow`-完整图表目录和选择指南:[templates/charts/README.md](../templates/charts/README.md)+完整图表目录和选择指南:[templates/charts/charts_index.json](../templates/charts/charts_index.json)> 📖 **建议**:当页面涉及图表时,建议先阅读对应的模板 SVG 文件(如 `templates/charts/bar_chart.svg`),了解其结构和布局,以便绘制出更高质量的图表。@@ -331,4 +331,3 @@ python3 tools/finalize_svg.py <项目路径># 3. 导出 PPTXpython3 tools/svg_to_pptx.py <项目路径> -s final```-diff --git a/roles/Template_Designer.md b/roles/Template_Designer.mdindex 36c50b88..3d474933 100644--- a/roles/Template_Designer.md+++ b/roles/Template_Designer.md@@ -174,7 +174,7 @@ templates/layouts/<模板名称>/1. **用户自备模板**: 已有的模板文件2. **其他项目模板**: 从现有项目复制3. **外部来源模板**: 网络下载、设计师提供等-4. **示例库参考**: `templates/layouts/` 目录下的预置模板+4. **示例库参考**: 优先查询 `templates/layouts/layouts_index.json`**使用步骤**:diff --git a/templates/README.md b/templates/README.mdindex 7efd0a0a..8259355c 100644--- a/templates/README.md+++ b/templates/README.md@@ -1,7 +1,5 @@# 模板资源--## 📝 设计规范与大纲参考`design_spec_reference.md` 是一个全能型的参考模板,用于定义项目的:@@ -20,11 +18,12 @@- **Consultant Top**: 顶级咨询风格(MBB级)- **Academic Defense**: 学术答辩风格,专业科研(新增 ✨)-[查看布局模板说明](./layouts/README.md)+- **人工浏览**:[layouts/README.md](./layouts/README.md)+- **AI / 程序查询**:[layouts/layouts_index.json](./layouts/layouts_index.json)## 📊 图表模板-`charts/` 目录包含 13 种常用图表模板:+`charts/` 目录包含 33 种常用图表模板:- KPI 卡片- 柱状图 / 堆叠柱状图@@ -38,10 +37,12 @@- 流程图- 组织结构图-[查看图表模板说明](./charts/README.md)+- **人工浏览**:[charts/README.md](./charts/README.md)+- **AI / 程序查询**:[charts/charts_index.json](./charts/charts_index.json)## 🎨 图标库`icons/` 目录包含 640+ 矢量图标,来源于 [SVG Repo](https://www.svgrepo.com/)。-[查看图标库说明](./icons/README.md)+- **人工浏览**:[icons/README.md](./icons/README.md)+- **AI / 程序查询**:[icons/icons_index.json](./icons/icons_index.json)diff --git a/templates/charts/README.md b/templates/charts/README.mdindex 431ea877..1ba47cba 100644--- a/templates/charts/README.md+++ b/templates/charts/README.md@@ -1,9 +1,16 @@# SVG 图表模板库(33 种)-本目录包含 33 种标准化 SVG 图表模板。生成图表页面前,建议先阅读对应模板文件了解其结构和布局。+本目录提供 **33 种标准化 SVG 图表模板**,可直接作为 PPT Master 的图表选型参考。++- **完整索引**:[README.md](./README.md)(人工浏览)+- **JSON 索引**:[charts_index.json](./charts_index.json)(AI / 程序优先读取)++生成图表页面前,建议先阅读对应模板文件了解其结构和布局。## 快速选择+> 🤖 **AI / 程序选型建议**:优先读取 `charts_index.json`;人工浏览和快速比对时使用本 README。+| 我想展示... | 推荐模板 | 文件名 ||------------|---------|--------|| 关键数字指标 | KPI 卡片 | `kpi_cards.svg` |diff --git a/templates/charts/charts_index.json b/templates/charts/charts_index.jsonnew file mode 100644index 00000000..60c96633--- /dev/null+++ b/templates/charts/charts_index.json@@ -0,0 +1,980 @@+{+ "meta": {+ "total": 33,+ "defaultViewBox": "0 0 1280 720",+ "formats": [+ "ppt169"+ ],+ "updated": "2026-03-07"+ },+ "categories": {+ "comparison": {+ "label": "对比类",+ "charts": [+ "bar_chart",+ "horizontal_bar_chart",+ "grouped_bar_chart",+ "stacked_bar_chart",+ "butterfly_chart",+ "bullet_chart",+ "dumbbell_chart",+ "waterfall_chart"+ ]+ },+ "trend": {+ "label": "趋势类",+ "charts": [+ "line_chart",+ "area_chart",+ "stacked_area_chart",+ "dual_axis_line_chart"+ ]+ },+ "composition": {+ "label": "占比类",+ "charts": [+ "pie_chart",+ "donut_chart",+ "treemap_chart"+ ]+ },+ "metrics": {+ "label": "指标类",+ "charts": [+ "kpi_cards",+ "gauge_chart",+ "progress_bar_chart"+ ]+ },+ "analysis": {+ "label": "分析类",+ "charts": [+ "radar_chart",+ "scatter_chart",+ "funnel_chart",+ "matrix_2x2",+ "bubble_chart",+ "heatmap_chart",+ "pareto_chart",+ "box_plot_chart"+ ]+ },+ "process": {+ "label": "项目管理 / 关系类",+ "charts": [+ "gantt_chart",+ "timeline",+ "process_flow",+ "org_chart",+ "sankey_chart"+ ]+ },+ "strategy": {+ "label": "战略框架类",+ "charts": [+ "swot_analysis",+ "porter_five_forces"+ ]+ }+ },+ "quickLookup": {+ "ranking": [+ "horizontal_bar_chart",+ "bar_chart",+ "pareto_chart"+ ],+ "comparison": [+ "bar_chart",+ "grouped_bar_chart",+ "butterfly_chart",+ "dumbbell_chart"+ ],+ "trend": [+ "line_chart",+ "area_chart",+ "stacked_area_chart",+ "dual_axis_line_chart"+ ],+ "composition": [+ "donut_chart",+ "pie_chart",+ "treemap_chart"+ ],+ "kpi": [+ "kpi_cards",+ "bullet_chart",+ "gauge_chart",+ "progress_bar_chart"+ ],+ "conversion": [+ "funnel_chart",+ "sankey_chart",+ "waterfall_chart"+ ],+ "distribution": [+ "box_plot_chart",+ "heatmap_chart",+ "scatter_chart",+ "bubble_chart"+ ],+ "correlation": [+ "scatter_chart",+ "bubble_chart",+ "radar_chart"+ ],+ "roadmap": [+ "gantt_chart",+ "timeline",+ "process_flow"+ ],+ "relationship": [+ "org_chart",+ "sankey_chart",+ "matrix_2x2"+ ],+ "flow": [+ "process_flow",+ "sankey_chart",+ "waterfall_chart"+ ],+ "strategy": [+ "swot_analysis",+ "porter_five_forces",+ "matrix_2x2"+ ]+ },+ "charts": {+ "area_chart": {+ "file": "area_chart.svg",+ "label": "面积图",+ "category": "trend",+ "summary": "趋势变化与累积数据展示",+ "useCases": [+ "流量趋势",+ "销售累积",+ "库存变化",+ "用户增长"+ ],+ "bestFor": [+ "强调总量变化",+ "1-2 个系列的累积趋势",+ "连续时间序列"+ ],+ "avoidFor": [+ "精确类别排名",+ "超过 2 个系列叠加"+ ],+ "keywords": [+ "趋势",+ "累积",+ "面积图",+ "时间序列"+ ]+ },+ "bar_chart": {+ "file": "bar_chart.svg",+ "label": "柱状图",+ "category": "comparison",+ "summary": "类别数值对比",+ "useCases": [+ "销售额对比",+ "区域排名",+ "年度数据对比"+ ],+ "bestFor": [+ "3-8 个类别",+ "单系列对比",+ "直观展示高低差异"+ ],+ "avoidFor": [+ "时间趋势",+ "超过 12 个长标签"+ ],+ "keywords": [+ "对比",+ "排名",+ "类别",+ "柱状图"+ ]+ },+ "box_plot_chart": {+ "file": "box_plot_chart.svg",+ "label": "箱线图",+ "category": "analysis",+ "summary": "数据分布与异常值分析",+ "useCases": [+ "薪资分布",+ "成绩分析",+ "质量控制",+ "异常值检测"+ ],+ "bestFor": [+ "多组分布对比",+ "展示中位数与离散程度",+ "统计分析页面"+ ],+ "avoidFor": [+ "普通业务汇报的单值对比",+ "读者不熟悉统计图形时的首页展示"+ ],+ "keywords": [+ "分布",+ "统计",+ "异常值",+ "箱线图"+ ]+ },+ "bubble_chart": {+ "file": "bubble_chart.svg",+ "label": "气泡图",+ "category": "analysis",+ "summary": "三维数据展示",+ "useCases": [+ "市场规模 vs 增长率 vs 份额",+ "风险评估",+ "竞品分析"+ ],+ "bestFor": [+ "同时展示 3 个维度",+ "样本数中等的散点分布"+ ],+ "avoidFor": [+ "精确读数要求高的场景",+ "样本点过多导致重叠"+ ],+ "keywords": [+ "相关性",+ "三维",+ "气泡图",+ "竞品"+ ]+ },+ "bullet_chart": {+ "file": "bullet_chart.svg",+ "label": "子弹图",+ "category": "comparison",+ "summary": "目标值与实际值对比",+ "useCases": [+ "KPI 达成",+ "销售目标",+ "预算执行",+ "绩效评估"+ ],+ "bestFor": [+ "目标 vs 实际",+ "多指标并行展示",+ "空间有限的仪表盘"+ ],+ "avoidFor": [+ "构成占比分析",+ "复杂时间序列"+ ],+ "keywords": [+ "目标",+ "实际",+ "绩效",+ "子弹图"+ ]+ },+ "butterfly_chart": {+ "file": "butterfly_chart.svg",+ "label": "蝴蝶图",+ "category": "comparison",+ "summary": "左右双向对比",+ "useCases": [+ "人口金字塔",+ "AB 测试",+ "男女对比",+ "收支对比"+ ],+ "bestFor": [+ "双侧镜像对比",+ "同一类别的两组数据"+ ],+ "avoidFor": [+ "单侧排名",+ "超过 2 组数据比较"+ ],+ "keywords": [+ "双向对比",+ "蝴蝶图",+ "镜像",+ "人口结构"+ ]+ },+ "donut_chart": {+ "file": "donut_chart.svg",+ "label": "环形图",+ "category": "composition",+ "summary": "占比和构成分析",+ "useCases": [+ "市场份额",+ "预算分配",+ "结构分析"+ ],+ "bestFor": [+ "3-6 个部分构成",+ "需要中心强调核心数字"+ ],+ "avoidFor": [+ "类别过多的细分占比",+ "需要精确排序"+ ],+ "keywords": [+ "占比",+ "构成",+ "环形图",+ "份额"+ ]+ },+ "dual_axis_line_chart": {+ "file": "dual_axis_line_chart.svg",+ "label": "双轴折线图",+ "category": "trend",+ "summary": "双 Y 轴不同量纲趋势对比",+ "useCases": [+ "销量与利润率",+ "流量与转化率"+ ],+ "bestFor": [+ "两个量纲差异较大的趋势",+ "同时间轴下的双指标分析"+ ],+ "avoidFor": [+ "超过 2 个核心指标",+ "读者容易误读双轴时"+ ],+ "keywords": [+ "双轴",+ "折线图",+ "趋势",+ "量纲"+ ]+ },+ "dumbbell_chart": {+ "file": "dumbbell_chart.svg",+ "label": "哑铃图",+ "category": "comparison",+ "summary": "多维度得分或前后状态对比",+ "useCases": [+ "竞品评估",+ "综合指数",+ "前后测比较"+ ],+ "bestFor": [+ "两组数值差异展示",+ "指标前后变化"+ ],+ "avoidFor": [+ "三组以上并列对比",+ "精细时间序列"+ ],+ "keywords": [+ "差异",+ "前后对比",+ "哑铃图",+ "评估"+ ]+ },+ "funnel_chart": {+ "file": "funnel_chart.svg",+ "label": "漏斗图",+ "category": "analysis",+ "summary": "阶段转化与流失分析",+ "useCases": [+ "销售漏斗",+ "用户转化",+ "流程筛选"+ ],+ "bestFor": [+ "3-5 个阶段的转化过程",+ "强调流失点"+ ],+ "avoidFor": [+ "非顺序型类别比较",+ "阶段特别多的长流程"+ ],+ "keywords": [+ "转化",+ "漏斗",+ "流失",+ "阶段"+ ]+ },+ "gantt_chart": {+ "file": "gantt_chart.svg",+ "label": "甘特图",+ "category": "process",+ "summary": "项目排期与任务管理",+ "useCases": [+ "项目管理",+ "产品路线图",+ "交付排期"+ ],+ "bestFor": [+ "6-12 个任务的排期",+ "展示时间跨度与依赖关系"+ ],+ "avoidFor": [+ "纯里程碑展示",+ "任务数量过多"+ ],+ "keywords": [+ "排期",+ "甘特图",+ "项目",+ "路线图"+ ]+ },+ "gauge_chart": {+ "file": "gauge_chart.svg",+ "label": "仪表盘",+ "category": "metrics",+ "summary": "目标达成度展示",+ "useCases": [+ "KPI 完成率",+ "性能监控",+ "进度看板"+ ],+ "bestFor": [+ "单指标达成度",+ "强调目标完成状态"+ ],+ "avoidFor": [+ "多类别比较",+ "精确排名分析"+ ],+ "keywords": [+ "达成度",+ "仪表盘",+ "KPI",+ "进度"+ ]+ },+ "grouped_bar_chart": {+ "file": "grouped_bar_chart.svg",+ "label": "分组柱状图",+ "category": "comparison",+ "summary": "多系列分组对比",+ "useCases": [+ "季度产品线对比",+ "同比环比",+ "多区域多指标对比"+ ],+ "bestFor": [+ "2-4 个系列对比",+ "类别与系列同时存在"+ ],+ "avoidFor": [+ "系列过多",+ "标签过长且类别过多"+ ],+ "keywords": [+ "分组",+ "多系列",+ "柱状图",+ "同比"+ ]+ },+ "heatmap_chart": {+ "file": "heatmap_chart.svg",+ "label": "热力图",+ "category": "analysis",+ "summary": "矩阵强度与模式识别",+ "useCases": [+ "用户活跃时段",+ "相关性矩阵",+ "区域密度分析"+ ],+ "bestFor": [+ "二维矩阵数据",+ "强弱模式识别"+ ],+ "avoidFor": [+ "需要精确单元格数值时",+ "维度标签过多难以阅读"+ ],+ "keywords": [+ "热力图",+ "矩阵",+ "相关性",+ "强度"+ ]+ },+ "horizontal_bar_chart": {+ "file": "horizontal_bar_chart.svg",+ "label": "水平条形图",+ "category": "comparison",+ "summary": "长标签排名与类别对比",+ "useCases": [+ "品牌排行",+ "满意度评分",+ "长名称列表比较"+ ],+ "bestFor": [+ "5-12 条排名",+ "长标签类别"+ ],+ "avoidFor": [+ "时间趋势",+ "双量纲分析"+ ],+ "keywords": [+ "排名",+ "水平条形图",+ "长标签",+ "对比"+ ]+ },+ "kpi_cards": {+ "file": "kpi_cards.svg",+ "label": "KPI 卡片",+ "category": "metrics",+ "summary": "关键数字指标总览",+ "useCases": [+ "财务总览",+ "业务看板",+ "高管摘要"+ ],+ "bestFor": [+ "2x2 或 1x4 指标总览",+ "首页摘要页"+ ],+ "avoidFor": [+ "趋势变化展示",+ "复杂维度关联分析"+ ],+ "keywords": [+ "KPI",+ "指标卡",+ "总览",+ "仪表盘"+ ]+ },+ "line_chart": {+ "file": "line_chart.svg",+ "label": "折线图",+ "category": "trend",+ "summary": "时间趋势展示",+ "useCases": [+ "时间序列",+ "增长趋势",+ "月度变化"+ ],+ "bestFor": [+ "连续时间轴",+ "1-3 个系列趋势对比"+ ],+ "avoidFor": [+ "离散类别排名",+ "单页过多系列"+ ],+ "keywords": [+ "趋势",+ "折线图",+ "增长",+ "时间序列"+ ]+ },+ "matrix_2x2": {+ "file": "matrix_2x2.svg",+ "label": "四象限矩阵",+ "category": "analysis",+ "summary": "双维度定位与优先级分析",+ "useCases": [+ "波士顿矩阵",+ "优先级分析",+ "战略定位"+ ],+ "bestFor": [+ "两个核心维度",+ "战略取舍或分类定位"+ ],+ "avoidFor": [+ "单维度排序",+ "需要精确数值读数的页面"+ ],+ "keywords": [+ "矩阵",+ "四象限",+ "优先级",+ "定位"+ ]+ },+ "org_chart": {+ "file": "org_chart.svg",+ "label": "组织结构图",+ "category": "process",+ "summary": "组织层级与汇报关系展示",+ "useCases": [+ "公司架构",+ "部门分工",+ "汇报关系"+ ],+ "bestFor": [+ "2-4 层组织结构",+ "关系链清晰展示"+ ],+ "avoidFor": [+ "流程步骤说明",+ "大量节点的复杂网络图"+ ],+ "keywords": [+ "组织",+ "结构图",+ "层级",+ "汇报关系"+ ]+ },+ "pareto_chart": {+ "file": "pareto_chart.svg",+ "label": "帕累托图",+ "category": "analysis",+ "summary": "80/20 贡献分析",+ "useCases": [+ "质量归因",+ "销售贡献",+ "问题优先级"+ ],+ "bestFor": [+ "排序后找关键少数",+ "柱线结合展示累计贡献"+ ],+ "avoidFor": [+ "无明显头部集中的数据",+ "纯时间趋势"+ ],+ "keywords": [+ "帕累托",+ "80/20",+ "累计贡献",+ "优先级"+ ]+ },+ "pie_chart": {+ "file": "pie_chart.svg",+ "label": "饼图",+ "category": "composition",+ "summary": "基础占比构成",+ "useCases": [+ "市场份额",+ "预算分配",+ "类别构成"+ ],+ "bestFor": [+ "3-6 个部分占比",+ "单层构成分析"+ ],+ "avoidFor": [+ "部分太多或差异很小",+ "需要精确比较细微差距"+ ],+ "keywords": [+ "占比",+ "饼图",+ "构成",+ "份额"+ ]+ },+ "porter_five_forces": {+ "file": "porter_five_forces.svg",+ "label": "波特五力模型",+ "category": "strategy",+ "summary": "行业竞争结构分析",+ "useCases": [+ "行业分析",+ "市场进入评估",+ "竞争策略"+ ],+ "bestFor": [+ "战略报告",+ "行业进入与竞争格局分析"+ ],+ "avoidFor": [+ "运营层面的细节流程",+ "纯数据排名页"+ ],+ "keywords": [+ "战略",+ "五力模型",+ "行业分析",+ "竞争"+ ]+ },+ "process_flow": {+ "file": "process_flow.svg",+ "label": "流程图",+ "category": "process",+ "summary": "流程步骤与阶段关系展示",+ "useCases": [+ "业务流程",+ "操作指南",+ "方法论步骤"+ ],+ "bestFor": [+ "3-8 个步骤",+ "顺序型流程说明"+ ],+ "avoidFor": [+ "复杂网状关系",+ "精细排期"+ ],+ "keywords": [+ "流程",+ "步骤",+ "流程图",+ "方法论"+ ]+ },+ "progress_bar_chart": {+ "file": "progress_bar_chart.svg",+ "label": "进度条图",+ "category": "metrics",+ "summary": "多项进度与完成度对比",+ "useCases": [+ "OKR 进度",+ "项目完成度",+ "任务状态"+ ],+ "bestFor": [+ "多项任务并排比较",+ "完成率展示"+ ],+ "avoidFor": [+ "精细时间趋势",+ "复杂构成分析"+ ],+ "keywords": [+ "进度",+ "完成率",+ "进度条",+ "OKR"+ ]+ },+ "radar_chart": {+ "file": "radar_chart.svg",+ "label": "雷达图",+ "category": "analysis",+ "summary": "多维能力评估",+ "useCases": [+ "能力评估",+ "竞品对比",+ "综合指数"+ ],+ "bestFor": [+ "4-8 个维度",+ "轮廓型综合对比"+ ],+ "avoidFor": [+ "维度特别多",+ "需要精确排序"+ ],+ "keywords": [+ "雷达图",+ "多维评估",+ "能力",+ "竞品"+ ]+ },+ "sankey_chart": {+ "file": "sankey_chart.svg",+ "label": "桑基图",+ "category": "process",+ "summary": "流量或资源流向展示",+ "useCases": [+ "预算流向",+ "用户转化路径",+ "资源分配"+ ],+ "bestFor": [+ "三层级流向",+ "强调流量去向与损耗"+ ],+ "avoidFor": [+ "节点特别多的复杂网络",+ "精确排名页"+ ],+ "keywords": [+ "流向",+ "桑基图",+ "转化路径",+ "资源分配"+ ]+ },+ "scatter_chart": {+ "file": "scatter_chart.svg",+ "label": "散点图",+ "category": "analysis",+ "summary": "相关性与分布分析",+ "useCases": [+ "投入产出",+ "价格需求",+ "样本分布"+ ],+ "bestFor": [+ "X/Y 双维度关系",+ "寻找聚类与离群点"+ ],+ "avoidFor": [+ "顺序型流程",+ "简单单维排名"+ ],+ "keywords": [+ "散点图",+ "相关性",+ "分布",+ "离群点"+ ]+ },+ "stacked_area_chart": {+ "file": "stacked_area_chart.svg",+ "label": "堆叠面积图",+ "category": "trend",+ "summary": "多系列堆叠趋势",+ "useCases": [+ "营收来源",+ "流量来源变化",+ "构成随时间变化"+ ],+ "bestFor": [+ "总量与构成同时变化",+ "2-4 个系列趋势"+ ],+ "avoidFor": [+ "系列过多导致难读",+ "精确比较中间层细微变化"+ ],+ "keywords": [+ "堆叠",+ "面积图",+ "趋势",+ "构成变化"+ ]+ },+ "stacked_bar_chart": {+ "file": "stacked_bar_chart.svg",+ "label": "堆叠柱状图",+ "category": "comparison",+ "summary": "构成与总量并行对比",+ "useCases": [+ "收入构成",+ "市场份额变化",+ "分项贡献比较"+ ],+ "bestFor": [+ "类别总量 + 构成展示",+ "2-4 个构成部分"+ ],+ "avoidFor": [+ "需要比较中间段微小差异",+ "类别和部分都过多"+ ],+ "keywords": [+ "堆叠柱状图",+ "构成",+ "贡献",+ "总量"+ ]+ },+ "swot_analysis": {+ "file": "swot_analysis.svg",+ "label": "SWOT 分析",+ "category": "strategy",+ "summary": "优势劣势机会威胁分析",+ "useCases": [+ "战略规划",+ "竞品分析",+ "业务诊断"+ ],+ "bestFor": [+ "四象限战略分析",+ "高层沟通与策略讨论"+ ],+ "avoidFor": [+ "纯定量数据排名",+ "细化到执行排期"+ ],+ "keywords": [+ "SWOT",+ "战略",+ "优势劣势",+ "机会威胁"+ ]+ },+ "timeline": {+ "file": "timeline.svg",+ "label": "时间轴",+ "category": "process",+ "summary": "里程碑与历史演进展示",+ "useCases": [+ "里程碑",+ "历史演进",+ "发展阶段"+ ],+ "bestFor": [+ "3-8 个关键节点",+ "按时间顺序讲故事"+ ],+ "avoidFor": [+ "详细任务排期",+ "复杂关系网络"+ ],+ "keywords": [+ "时间轴",+ "里程碑",+ "历史",+ "演进"+ ]+ },+ "treemap_chart": {+ "file": "treemap_chart.svg",+ "label": "矩形树图",+ "category": "composition",+ "summary": "层级面积占比展示",+ "useCases": [+ "预算分配",+ "市场份额构成",+ "层级资源占比"+ ],+ "bestFor": [+ "层级型占比数据",+ "同时比较大小与分组"+ ],+ "avoidFor": [+ "时间趋势",+ "需要严格排序的类别"+ ],+ "keywords": [+ "矩形树图",+ "面积占比",+ "层级",+ "构成"+ ]+ },+ "waterfall_chart": {+ "file": "waterfall_chart.svg",+ "label": "瀑布图",+ "category": "comparison",+ "summary": "增减变化分解",+ "useCases": [+ "利润分解",+ "预算变化",+ "业绩桥分析"+ ],+ "bestFor": [+ "起点到终点的变化拆解",+ "展示正负向贡献"+ ],+ "avoidFor": [+ "时间趋势折线分析",+ "纯占比构成页"+ ],+ "keywords": [+ "瀑布图",+ "变化分解",+ "贡献",+ "桥分析"+ ]+ }+ }+}diff --git a/templates/layouts/README.md b/templates/layouts/README.mdindex d15a95f1..5903fe3e 100644--- a/templates/layouts/README.md+++ b/templates/layouts/README.md@@ -1,7 +1,12 @@-# 页面布局模板库+# 页面布局模板库(21 套)预置的 PPT 页面布局模板,支持多种风格和使用场景。+- **完整索引**:[README.md](./README.md)(人工浏览)+- **JSON 索引**:[layouts_index.json](./layouts_index.json)(AI / 程序优先读取)++> 🤖 **AI / 程序选型建议**:优先读取 `layouts_index.json`;人工浏览和快速比对时使用本 README。+---## 模板快速索引@@ -247,4 +252,3 @@ cp templates/layouts/government_red/* projects/<项目>/templates/| `<g opacity="...">` | 每个子元素单独设置透明度 |----diff --git a/templates/layouts/layouts_index.json b/templates/layouts/layouts_index.jsonnew file mode 100644index 00000000..bc49ce19--- /dev/null+++ b/templates/layouts/layouts_index.json@@ -0,0 +1,739 @@+{+ "meta": {+ "total": 21,+ "defaultViewBox": "0 0 1280 720",+ "formats": [+ "ppt169"+ ],+ "standardFiles": [+ "design_spec.md",+ "01_cover.svg",+ "02_toc.svg",+ "02_chapter.svg",+ "03_content.svg",+ "04_ending.svg"+ ],+ "updated": "2026-03-07"+ },+ "categories": {+ "brand": {+ "label": "品牌风格模板",+ "layouts": [+ "google_style",+ "mckinsey",+ "anthropic",+ "中汽研_常规",+ "中汽研_商务",+ "中汽研_现代",+ "中国电建_常规",+ "中国电建_现代",+ "招商银行"+ ]+ },+ "general": {+ "label": "通用风格模板",+ "layouts": [+ "consultant",+ "consultant_top",+ "general",+ "科技蓝商务",+ "smart_red"+ ]+ },+ "scenario": {+ "label": "场景专用模板",+ "layouts": [+ "academic_defense",+ "psychology_attachment",+ "medical_university",+ "重庆大学"+ ]+ },+ "government": {+ "label": "政企风格模板",+ "layouts": [+ "government_red",+ "government_blue"+ ]+ },+ "special": {+ "label": "特殊风格模板",+ "layouts": [+ "pixel_retro"+ ]+ }+ },+ "quickLookup": {+ "strategy": [+ "consultant_top",+ "mckinsey",+ "consultant"+ ],+ "board": [+ "consultant_top",+ "mckinsey",+ "招商银行"+ ],+ "general_business": [+ "general",+ "科技蓝商务",+ "consultant"+ ],+ "technology": [+ "anthropic",+ "google_style",+ "smart_red",+ "general"+ ],+ "government": [+ "government_red",+ "government_blue"+ ],+ "academic": [+ "academic_defense",+ "重庆大学"+ ],+ "medical": [+ "medical_university"+ ],+ "psychology": [+ "psychology_attachment"+ ],+ "finance": [+ "招商银行",+ "consultant_top",+ "mckinsey"+ ],+ "certification": [+ "中汽研_常规",+ "中汽研_商务",+ "中汽研_现代"+ ],+ "energy": [+ "中国电建_常规",+ "中国电建_现代"+ ],+ "creative": [+ "pixel_retro",+ "smart_red"+ ]+ },+ "layouts": {+ "academic_defense": {+ "dir": "academic_defense",+ "label": "学术答辩模板",+ "category": "scenario",+ "summary": "适用于学术答辩、研究汇报与课题申请的规范型模板",+ "useCases": [+ "毕业答辩",+ "学术汇报",+ "研究进展报告",+ "课题申请"+ ],+ "tone": "专业、严谨、科研感、清晰层次",+ "themeMode": "亮色主题(白色背景 + 深蓝标题条)",+ "pageTypes": [+ "cover",+ "toc",+ "chapter",+ "content",+ "ending"+ ],+ "assets": [],+ "keywords": [+ "学术",+ "答辩",+ "科研",+ "规范"+ ]+ },+ "anthropic": {+ "dir": "anthropic",+ "label": "Anthropic 风格模板",+ "category": "brand",+ "summary": "适用于 AI / LLM 技术分享与产品发布的科技感模板",+ "useCases": [+ "AI 技术分享",+ "开发者大会",+ "技术培训",+ "产品发布"+ ],+ "tone": "科技感、专业、现代、结论先行",+ "themeMode": "混合主题(深色封面/章节 + 亮色内容页)",+ "pageTypes": [+ "cover",+ "toc",+ "chapter",+ "content",+ "ending"+ ],+ "assets": [],+ "keywords": [+ "AI",+ "LLM",+ "开发者",+ "科技"+ ]+ },+ "consultant": {+ "dir": "consultant",+ "label": "咨询顾问模板",+ "category": "general",+ "summary": "适用于商业咨询、战略分析和项目汇报的专业模板",+ "useCases": [+ "商业咨询",+ "战略分析",+ "项目汇报",+ "企业培训"+ ],+ "tone": "专业、简约、商务、现代",+ "themeMode": "深色主题(深蓝背景 + 蓝色强调色 + 金色点缀)",+ "pageTypes": [+ "cover",+ "toc",+ "chapter",+ "content",+ "ending"+ ],+ "assets": [],+ "keywords": [+ "咨询",+ "商务",+ "战略",+ "汇报"+ ]+ },+ "consultant_top": {+ "dir": "consultant_top",+ "label": "顶级咨询模板",+ "category": "general",+ "summary": "适用于董事会和高管级战略汇报的 MBB 风格模板",+ "useCases": [+ "战略规划",+ "高管汇报",+ "投资分析",+ "董事会演示"+ ],+ "tone": "高端、精致、权威、数据驱动",+ "themeMode": "深色主题(暗黑背景 + 渐变强调 + 金色点缀)",+ "pageTypes": [+ "cover",+ "toc",+ "chapter",+ "content",+ "ending"+ ],+ "assets": [],+ "keywords": [+ "MBB",+ "董事会",+ "高管",+ "战略"+ ]+ },+ "general": {+ "dir": "general",+ "label": "通用模板",+ "category": "general",+ "summary": "适用于多数工作汇报和项目介绍的通用模板",+ "useCases": [+ "工作汇报",+ "项目介绍",+ "产品展示",+ "培训演示"+ ],+ "tone": "现代、清新、专业、通用",+ "themeMode": "混合主题(深色封面/章节页 + 浅色内容页)",+ "pageTypes": [+ "cover",+ "toc",+ "chapter",+ "content",+ "ending"+ ],+ "assets": [],+ "keywords": [+ "通用",+ "商业演示",+ "工作汇报",+ "项目介绍"+ ]+ },+ "google_style": {+ "dir": "google_style",+ "label": "Google 风格模板",+ "category": "brand",+ "summary": "适用于年度汇报和技术分享的 Google 品牌风格模板",+ "useCases": [+ "年度工作汇报",+ "技术分享",+ "项目成果展示",+ "数据驱动型演示"+ ],+ "tone": "专业、现代、简洁克制、数据驱动、充足留白",+ "themeMode": "亮色主题(白色/浅灰背景 + Google 品牌色强调)",+ "pageTypes": [+ "cover",+ "toc",+ "chapter",+ "content",+ "ending"+ ],+ "assets": [],+ "keywords": [+ "Google",+ "品牌风格",+ "技术分享",+ "年度报告"+ ]+ },+ "government_blue": {+ "dir": "government_blue",+ "label": "政府蓝模板",+ "category": "government",+ "summary": "适用于智慧政务与数字化转型汇报的蓝色政务模板",+ "useCases": [+ "重点项目汇报",+ "十四五规划",+ "工作总结",+ "招商引资",+ "政策解读"+ ],+ "tone": "大气、科技感、现代化、专业政务风格",+ "themeMode": "亮色主题(白色背景 + 蓝色渐变装饰)",+ "pageTypes": [+ "cover",+ "toc",+ "chapter",+ "content",+ "ending"+ ],+ "assets": [],+ "keywords": [+ "政务",+ "政府蓝",+ "智慧城市",+ "数字化"+ ]+ },+ "government_red": {+ "dir": "government_red",+ "label": "政府红模板",+ "category": "government",+ "summary": "适用于政务汇报与党建场景的红色政务模板",+ "useCases": [+ "政务汇报",+ "政策解读",+ "工作总结",+ "项目推介",+ "招商引资"+ ],+ "tone": "权威、庄重、专业、现代化政务风格",+ "themeMode": "亮色主题(白色背景 + 政府红/蓝强调色)",+ "pageTypes": [+ "cover",+ "toc",+ "chapter",+ "content",+ "ending"+ ],+ "assets": [],+ "keywords": [+ "政务",+ "党建",+ "政府红",+ "权威"+ ]+ },+ "mckinsey": {+ "dir": "mckinsey",+ "label": "麦肯锡风格模板",+ "category": "brand",+ "summary": "适用于战略咨询和投资分析的麦肯锡风格模板",+ "useCases": [+ "战略咨询",+ "高管汇报",+ "投资分析",+ "商业提案"+ ],+ "tone": "数据驱动、结构化思维、专业留白、极简高端",+ "themeMode": "亮色主题(白色背景 + McKinsey Blue 强调)",+ "pageTypes": [+ "cover",+ "toc",+ "chapter",+ "content",+ "ending"+ ],+ "assets": [],+ "keywords": [+ "麦肯锡",+ "咨询",+ "结构化",+ "高管汇报"+ ]+ },+ "medical_university": {+ "dir": "medical_university",+ "label": "医院/医科大学模板",+ "category": "scenario",+ "summary": "适用于医学报告、病例讨论与科研汇报的专业模板",+ "useCases": [+ "医学学术报告",+ "病例讨论",+ "科研汇报",+ "医院工作汇报",+ "医学教育培训"+ ],+ "tone": "专业、严谨、生命感、科技感、可信赖",+ "themeMode": "亮色主题(白色背景 + 医学蓝标题条 + 生命绿点缀)",+ "pageTypes": [+ "cover",+ "toc",+ "chapter",+ "content",+ "ending"+ ],+ "assets": [],+ "keywords": [+ "医学",+ "医院",+ "病例",+ "科研"+ ]+ },+ "pixel_retro": {+ "dir": "pixel_retro",+ "label": "像素复古模板",+ "category": "special",+ "summary": "适用于技术分享和游戏主题内容的像素风模板",+ "useCases": [+ "技术分享",+ "编程教学",+ "游戏介绍",+ "极客风格展示"+ ],+ "tone": "复古游戏、霓虹赛博、极客科技、8-bit 风格",+ "themeMode": "暗色主题(深空黑背景 + 霓虹强调色)",+ "pageTypes": [+ "cover",+ "toc",+ "chapter",+ "content",+ "ending"+ ],+ "assets": [],+ "keywords": [+ "像素风",+ "复古游戏",+ "赛博朋克",+ "技术"+ ]+ },+ "psychology_attachment": {+ "dir": "psychology_attachment",+ "label": "心理疗愈模板",+ "category": "scenario",+ "summary": "适用于心理治疗培训和咨询讲座的温暖专业模板",+ "useCases": [+ "心理治疗培训",+ "学术讲座",+ "咨询案例分析",+ "专业分享"+ ],+ "tone": "专业、温暖、疗愈、信任感",+ "themeMode": "浅色主题(云白背景 + 蓝绿渐变强调 + 多彩语义色)",+ "pageTypes": [+ "cover",+ "toc",+ "chapter",+ "content",+ "ending"+ ],+ "assets": [],+ "keywords": [+ "心理学",+ "疗愈",+ "咨询",+ "温暖"+ ]+ },+ "smart_red": {+ "dir": "smart_red",+ "label": "智慧红橙商务模板",+ "category": "general",+ "summary": "适用于科技企业介绍和教育解决方案的活力商务模板",+ "useCases": [+ "企业介绍",+ "产品发布",+ "解决方案演示",+ "教育行业课件"+ ],+ "tone": "现代、活力、专业、几何感",+ "themeMode": "混合主题(深色/彩色封面 + 浅色内容页)",+ "pageTypes": [+ "cover",+ "toc",+ "chapter",+ "content",+ "ending"+ ],+ "assets": [],+ "keywords": [+ "红橙商务",+ "科技企业",+ "教育",+ "活力"+ ]+ },+ "中国电建_常规": {+ "dir": "中国电建_常规",+ "label": "中国电建常规模板",+ "category": "brand",+ "summary": "适用于工程建设和央企汇报的稳健品牌模板",+ "useCases": [+ "工程项目汇报",+ "技术方案展示",+ "商务洽谈",+ "企业宣传",+ "年度总结"+ ],+ "tone": "专业、稳重、国际化、央企风范",+ "themeMode": "亮色主题(白色背景 + 电建蓝强调色)",+ "pageTypes": [+ "cover",+ "toc",+ "chapter",+ "content",+ "ending"+ ],+ "assets": [+ "中国水务logo.png",+ "华东院logo.png",+ "水电三局logo.png",+ "电建logo.png"+ ],+ "keywords": [+ "中国电建",+ "央企",+ "工程",+ "能源"+ ]+ },+ "中国电建_现代": {+ "dir": "中国电建_现代",+ "label": "中国电建现代模板",+ "category": "brand",+ "summary": "适用于重大工程和国际业务展示的现代工程模板",+ "useCases": [+ "重大工程汇报",+ "国际市场推介",+ "科技成果展示",+ "高端商务洽谈"+ ],+ "tone": "宏大叙事、现代精工、数字科技、国际视野",+ "themeMode": "深蓝科技渐变 + 精密网格纹理",+ "pageTypes": [+ "cover",+ "toc",+ "chapter",+ "content",+ "ending"+ ],+ "assets": [+ "中国水务logo.png",+ "华东院logo.png",+ "水电三局logo.png",+ "电建logo.png"+ ],+ "keywords": [+ "中国电建",+ "国际工程",+ "现代工程",+ "科技"+ ]+ },+ "中汽研_商务": {+ "dir": "中汽研_商务",+ "label": "中汽研商务模板",+ "category": "brand",+ "summary": "适用于认证展示和高端商务汇报的中汽研品牌模板",+ "useCases": [+ "产品认证展示",+ "测评认证介绍",+ "技术推介",+ "高端商务汇报"+ ],+ "tone": "现代科技、权威专业、沉稳大气",+ "themeMode": "深蓝科技渐变 + 清爽白底内容页",+ "pageTypes": [+ "cover",+ "toc",+ "chapter",+ "content",+ "ending"+ ],+ "assets": [+ "右上角 logo.png",+ "大型 logo.png"+ ],+ "keywords": [+ "中汽研",+ "认证",+ "商务",+ "科技"+ ]+ },+ "中汽研_常规": {+ "dir": "中汽研_常规",+ "label": "中汽研常规模板",+ "category": "brand",+ "summary": "适用于认证和测评场景的中汽研常规模板",+ "useCases": [+ "产品认证展示",+ "测评认证介绍",+ "技术推介",+ "商务拜访"+ ],+ "tone": "专业、权威、可信赖、咨询风格",+ "themeMode": "亮色主题(白色背景 + 深蓝强调色)",+ "pageTypes": [+ "cover",+ "toc",+ "chapter",+ "content",+ "ending"+ ],+ "assets": [+ "右上角 logo.png",+ "大型 logo.png"+ ],+ "keywords": [+ "中汽研",+ "认证",+ "测评",+ "权威"+ ]+ },+ "中汽研_现代": {+ "dir": "中汽研_现代",+ "label": "中汽研现代模板",+ "category": "brand",+ "summary": "适用于前瞻技术展示和高端发布的未来科技模板",+ "useCases": [+ "前瞻技术展示",+ "战略发布",+ "高端商务汇报"+ ],+ "tone": "未来感、科技、深邃、精致",+ "themeMode": "沉浸式深色封面/过渡页 + 清爽微灰内容页",+ "pageTypes": [+ "cover",+ "toc",+ "chapter",+ "content",+ "ending"+ ],+ "assets": [+ "右上角 logo.png",+ "大型 logo.png"+ ],+ "keywords": [+ "中汽研",+ "未来科技",+ "前瞻技术",+ "发布会"+ ]+ },+ "招商银行": {+ "dir": "招商银行",+ "label": "招商银行模板",+ "category": "brand",+ "summary": "适用于金融机构高端汇报和年度报告的品牌模板",+ "useCases": [+ "高端工作汇报",+ "业务展示",+ "年度报告",+ "产品推介"+ ],+ "tone": "极简轻奢、精致、多层次、现代金融",+ "themeMode": "亮色主题(微纹理背景 + 招行红/金精细装饰)",+ "pageTypes": [+ "cover",+ "toc",+ "chapter",+ "content",+ "ending"+ ],+ "assets": [+ "招商银行公司金融.png"+ ],+ "keywords": [+ "招商银行",+ "金融",+ "高端汇报",+ "年度报告"+ ]+ },+ "科技蓝商务": {+ "dir": "科技蓝商务",+ "label": "科技蓝商务模板",+ "category": "general",+ "summary": "适用于企业汇报与方案提案的科技商务模板",+ "useCases": [+ "企业汇报",+ "产品发布",+ "方案提案",+ "流程规范",+ "培训材料"+ ],+ "tone": "科技、商务、专业、简洁",+ "themeMode": "混合主题(深蓝/科技蓝封面 + 浅色内容页)",+ "pageTypes": [+ "cover",+ "toc",+ "chapter",+ "content",+ "ending"+ ],+ "assets": [],+ "keywords": [+ "科技蓝",+ "商务",+ "方案提案",+ "企业汇报"+ ]+ },+ "重庆大学": {+ "dir": "重庆大学",+ "label": "重庆大学模板",+ "category": "scenario",+ "summary": "适用于学术答辩与科研汇报的高校专属模板",+ "useCases": [+ "学术答辩",+ "科研汇报",+ "教学展示",+ "学术交流"+ ],+ "tone": "学术稳重、山城气韵、现代简约",+ "themeMode": "学术蓝主色 + 山城层叠意象",+ "pageTypes": [+ "cover",+ "toc",+ "chapter",+ "content",+ "ending"+ ],+ "assets": [+ "重庆大学logo.png",+ "重庆大学logo2.png"+ ],+ "keywords": [+ "重庆大学",+ "学术",+ "答辩",+ "高校"+ ]+ }+ }+}