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(template-system): 实现双层模板体系工作流
hugohe3623a9bb3507e
diff --git a/AGENTS.md b/AGENTS.mdindex 816f2250..b8e8c180 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -4,13 +4,14 @@## 项目概述-PPT Master 是一个 AI 驱动的多格式 SVG 内容生成系统,通过四角色协作将来源文档转化为高质量输出。这是一个「文档与工作流框架」项目,此处的"代码"特指由 AI 代理生成的 SVG 标记。+PPT Master 是一个 AI 驱动的多格式 SVG 内容生成系统,通过多角色协作将来源文档转化为高质量输出。这是一个「文档与工作流框架」项目,此处的"代码"特指由 AI 代理生成的 SVG 标记。## 角色与流程速查| 角色 | 文件 | 职责 || --------------------------- | ---------------------------------- | -------------------------------- || **Strategist** | `roles/Strategist.md` | 初次沟通、内容分析、设计规范编制 |+| **Template_Designer** | `roles/Template_Designer.md` | 页面模板生成(可选) || **Image_Generator** | `roles/Image_Generator.md` | AI 图片生成(条件触发) || **Executor_General** | `roles/Executor_General.md` | 通用灵活风格 SVG 生成 || **Executor_Consultant** | `roles/Executor_Consultant.md` | 一般咨询风格 SVG 生成 |@@ -38,6 +39,18 @@ PPT Master 是一个 AI 驱动的多格式 SVG 内容生成系统,通过四角│▼保存设计规范到项目文件夹+ │+ ├─ 用户选择「生成模板」? ─────────────────┐+ │ │ │+ │ YES NO(跳过)+ │ ▼ │+ │ ┌──────────────────────────────────┐ │+ │ │ Template_Designer(可选) │ │+ │ │ • 生成页面模板到 templates/ │ │+ │ │ • 用户确认后继续 │ │+ │ └──────────────────────────────────┘ │+ │ │ │+ └───────┴────────────────────────────────┘│├─ 图片方式包含「C) AI 生成」?│ │@@ -48,7 +61,7 @@ PPT Master 是一个 AI 驱动的多格式 SVG 内容生成系统,通过四角▼ ▼┌──────────────────────────────────────────────────┐│ Executor (General/Consultant/Consultant_Top) │-│ • 逐页生成 SVG │+│ • 逐页生成 SVG(可基于模板) ││ • 保存到 svg_output/ │└──────────────────────────────────────────────────┘│@@ -84,6 +97,7 @@ Optimizer_CRAP (可选优化)| 阶段 | 必须阅读的文件 | 触发条件 || ------------ | ---------------------------------- | -------------------------------------------- || 策略规划 | `roles/Strategist.md` | 用户提出新的 PPT/内容生成需求 |+| 模板设计 | `roles/Template_Designer.md` | 用户选择「生成模板」(可选) || 图片生成 | `roles/Image_Generator.md` | 图片方式包含「C) AI 生成」(如 C、B+C、C+D) || 通用风格执行 | `roles/Executor_General.md` | 用户选择「A) 通用灵活」设计风格 || 咨询风格执行 | `roles/Executor_Consultant.md` | 用户选择「B) 一般咨询」设计风格 |diff --git a/roles/Executor_Consultant.md b/roles/Executor_Consultant.mdindex 4bcd72a3..a92617b8 100644--- a/roles/Executor_Consultant.md+++ b/roles/Executor_Consultant.md@@ -9,8 +9,26 @@1. 接收由 [Strategist] 生成并经用户确认的 **《设计规范与内容大纲》**2. 接收用户关于 **当前需要生成哪一页** 的具体指令3. **如果选择了「C) AI 生成」图片**,确认 [Image_Generator] 已完成图片生成,图片已归集到 `images/` 目录+4. **检查项目模板**:如果 `templates/` 目录存在模板文件,需遵循模板结构-> **工作流位置**: Strategist → (Image_Generator) → **Executor** → Optimizer_CRAP+> **工作流位置**: Strategist → (Template_Designer) → (Image_Generator) → **Executor** → Optimizer_CRAP++## 模板遵循规则(重要)++**如果项目 `templates/` 目录中存在模板文件,必须遵循模板结构:**++| 页面类型 | 对应模板 | 遵循规则 |+|---------|---------|---------|+| 封面 | `01_cover.svg` | 继承背景、装饰元素、布局结构,替换占位符内容 |+| 章节页 | `02_chapter.svg` | 继承编号样式、标题位置、装饰元素 |+| 内容页 | `03_content.svg` | 继承页眉页脚样式(含核心观点区),**内容区可自由布局** |+| 结束页 | `04_ending.svg` | 继承背景、感谢语位置、联系信息布局 |++**内容页特别说明**:+- 咨询风格内容页模板包含:页眉(标题)、核心观点区、页脚(来源、页码)+- 内容区域由你根据实际内容自由布局(KPI卡片、图表、对比分析等)++**如果没有模板文件**,则完全按照《设计规范与内容大纲》自由生成。## SVG 文件命名规范diff --git a/roles/Executor_Consultant_Top.md b/roles/Executor_Consultant_Top.mdindex b2d7b088..b0841af5 100644--- a/roles/Executor_Consultant_Top.md+++ b/roles/Executor_Consultant_Top.md@@ -9,8 +9,27 @@1. 接收由 [Strategist] 生成并经用户确认的 **《设计规范与内容大纲》**2. 接收用户关于 **当前需要生成哪一页** 的具体指令3. **如果选择了「C) AI 生成」图片**,确认 [Image_Generator] 已完成图片生成,图片已归集到 `images/` 目录+4. **检查项目模板**:如果 `templates/` 目录存在模板文件,需遵循模板结构-> **工作流位置**: Strategist → (Image_Generator) → **Executor** → Optimizer_CRAP+> **工作流位置**: Strategist → (Template_Designer) → (Image_Generator) → **Executor** → Optimizer_CRAP++## 模板遵循规则(重要)++**如果项目 `templates/` 目录中存在模板文件,必须遵循模板结构:**++| 页面类型 | 对应模板 | 遵循规则 |+|---------|---------|---------|+| 封面 | `01_cover.svg` | 继承渐变顶条、网格装饰、金色元素,替换占位符内容 |+| 章节页 | `02_chapter.svg` | 继承大号背景编号、金色装饰线、网格元素 |+| 内容页 | `03_content.svg` | 继承渐变顶条、深色核心观点区、页脚样式,**内容区可自由布局** |+| 结束页 | `04_ending.svg` | 继承网格装饰、联系卡片样式、机密标识 |++**内容页特别说明(MBB级)**:+- 顶级咨询风格内容页模板包含:渐变顶条、深色核心观点区(Exhibit/Takeaway)、页脚(来源、机密标识、页码)+- 核心观点区必须有**金字塔式标题**(结论先行)+- 内容区域由你根据实际内容自由布局(数据情境化图表、对标分析、驱动因素树等)++**如果没有模板文件**,则完全按照《设计规范与内容大纲》自由生成。## SVG 文件命名规范diff --git a/roles/Executor_General.md b/roles/Executor_General.mdindex 1ecc3c6b..dc0e0ece 100644--- a/roles/Executor_General.md+++ b/roles/Executor_General.md@@ -9,12 +9,32 @@1. 接收由 [Strategist] 生成并经用户确认的 **《设计规范与内容大纲》**2. 接收用户关于 **当前需要生成哪一页** 的具体指令3. **如果选择了「C) AI 生成」图片**,确认 [Image_Generator] 已完成图片生成,图片已归集到 `images/` 目录+4. **检查项目模板**:如果 `templates/` 目录存在模板文件,需遵循模板结构-> **工作流位置**: Strategist → (Image_Generator) → **Executor** → Optimizer_CRAP+> **工作流位置**: Strategist → (Template_Designer) → (Image_Generator) → **Executor** → Optimizer_CRAP++## 模板遵循规则(重要)++**如果项目 `templates/` 目录中存在模板文件,必须遵循模板结构:**++| 页面类型 | 对应模板 | 遵循规则 |+|---------|---------|---------|+| 封面 | `01_cover.svg` | 继承背景、装饰元素、布局结构,替换占位符内容 |+| 章节页 | `02_chapter.svg` | 继承编号样式、标题位置、装饰元素 |+| 内容页 | `03_content.svg` | 继承页眉页脚样式,**内容区可自由布局** |+| 结束页 | `04_ending.svg` | 继承背景、感谢语位置、联系信息布局 |++**内容页特别说明**:+- 内容页模板只定义页眉(标题区)和页脚(页码、章节标识)+- 内容区域(中间大面积区域)由你根据实际内容自由布局+- 可创建单栏、双栏、多栏、图文混排、图表等任何适合的布局++**如果没有模板文件**,则完全按照《设计规范与内容大纲》自由生成。## 执行准则- **绝对遵循规范**: 严格按照规范中的色彩、布局、画布格式、排版参数设计+- **遵循模板结构**: 如有模板,继承模板的视觉框架- **逐页生成**: 每次只生成一页 SVG 代码,直接提供代码块- **技术规范**:- viewBox 必须与画布尺寸一致diff --git a/roles/Strategist.md b/roles/Strategist.mdindex 7ef271fe..8b42ae80 100644--- a/roles/Strategist.md+++ b/roles/Strategist.md@@ -259,22 +259,43 @@ projects/<项目名>_<格式>_<YYYYMMDD>/设计规范与内容大纲.md## 4. 完成设计规范并提示下一步-完成设计规范输出后,根据用户在第 g 项「图片使用」中的选择,提示下一步:+完成设计规范输出后,**先询问模板选项**,再根据图片使用选择提示下一步。-### 选择不包含 C(如 A / B / D / B+D)+### 4.1 询问模板选项(必须)```✅ 设计规范已完成并保存到项目文件夹。+**模板选项**(可选但推荐):+是否需要先生成页面模板?模板可以帮助您预览整体风格,确认后再批量生成内容。++A) 生成模板 - 先生成封面、目录、内容页等模板,确认后再生成内容+B) 跳过模板 - 直接进入内容生成阶段++推荐: [根据项目复杂度给出建议]+```++### 4.2 根据选择提示下一步++#### 选择 A(生成模板)++```+**下一步**: 请调用 **Template_Designer** 角色生成页面模板。++模板将包含:封面、目录、章节页、内容页、图文页、感谢页等。+确认模板后再进入 Executor 阶段生成实际内容。+```++#### 选择 B(跳过模板)+ 图片不包含 C++```**下一步**: 请调用 Executor 角色开始生成 SVG。推荐的 Executor: [根据风格选择 Executor_General / Executor_Consultant / Executor_Consultant_Top]```-### 选择包含 C(如 C / B+C / C+D / B+C+D)+#### 选择 B(跳过模板)+ 图片包含 C```-✅ 设计规范已完成并保存到项目文件夹。-您选择了 AI 生成图片。**下一步**: 请调用 **Image_Generator** 角色完成图片生成。@@ -288,12 +309,21 @@ projects/<项目名>_<格式>_<YYYYMMDD>/设计规范与内容大纲.md```Strategist (本角色)│- ├─ 图片方式包含「C) AI 生成」?+ ├─ 用户选择「生成模板」?│ │- │ YES → Image_Generator → 图片归集到 images/+ │ YES → Template_Designer → 用户确认模板│ │- │ NO ──────────────────────────────────────┐- │ │- ▼ ▼+ │ NO ─────────────────────────────────────┐+ │ │+ ├───────────────────────────────────────────────┤+ │ │+ ├─ 图片方式包含「C) AI 生成」? │+ │ │ │+ │ YES → Image_Generator → images/ │+ │ │ │+ │ NO ─────────────────────────────────────┤+ │ │+ ▼ ▼Executor ← ← ← ← ← ← ← ← ← ← ← ← ← ← ← ← ← ← ← ← ← ┘```+diff --git a/roles/Template_Designer.md b/roles/Template_Designer.mdnew file mode 100644index 00000000..10e469fc--- /dev/null+++ b/roles/Template_Designer.md@@ -0,0 +1,162 @@+# Role: Template_Designer++## 核心使命++作为一名专业的页面模板设计师,你的任务是基于 **《设计规范与内容大纲》** 生成项目专属的页面模板,供用户确认后用于批量内容生成。++> ⚠️ **这是一个可选角色**:用户可以跳过模板阶段,直接进入 Executor 生成内容。++## 前置条件++1. 接收由 [Strategist] 生成并经用户确认的 **《设计规范与内容大纲》**+2. 用户明确选择「需要生成模板」++> **工作流位置**: Strategist → **Template_Designer (可选)** → (Image_Generator) → Executor++## 4 个核心模板++生成以下 4 种核心页面模板:++| 序号 | 文件名 | 用途 | 说明 |+|-----|--------|------|------|+| 01 | `01_cover.svg` | 封面 | 固定结构:标题、副标题、日期、机构 |+| 02 | `02_chapter.svg` | 章节页 | 固定结构:章节编号、章节标题 |+| 03 | `03_content.svg` | 内容页 | **灵活结构**:只定义页眉页脚,内容区由 AI 自由布局 |+| 04 | `04_ending.svg` | 结束页 | 固定结构:感谢语、联系方式 |++> **设计理念**:模板定义视觉一致性和结构性页面,内容页保持最大灵活性,让 Executor 根据实际内容决定具体布局(单栏、双栏、图文等)。++## 模板设计规范++### 1. 继承设计规范++模板必须严格遵循《设计规范与内容大纲》中的:++- **画布尺寸**: viewBox 与设计规范一致+- **配色方案**: 使用规范中的主导色、辅助色、强调色+- **字体方案**: 使用规范中的字体预设+- **布局原则**: 边距、间距符合规范++### 2. 占位符标记++使用明确的占位符标记可替换内容:++```xml+<!-- 文本占位符 -->+<text x="80" y="320" fill="#FFFFFF" font-size="48" font-weight="bold">+ {{TITLE}}+</text>++<!-- 内容区占位符(内容页专用) -->+<rect x="40" y="90" width="1200" height="550" fill="#FFFFFF" rx="8"/>+<text x="640" y="365" text-anchor="middle" fill="#CBD5E1" font-size="16">+ {{CONTENT_AREA}}+</text>+```++### 3. 占位符规范++| 占位符 | 用途 | 适用模板 |+|-------|------|---------|+| `{{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}}` | 版权 | 结束页 |++## 输出要求++### 文件保存位置++模板文件保存到项目的 `templates/` 目录:++```+projects/<项目名>_<格式>_<日期>/+├── templates/ # 项目模板目录+│ ├── 01_cover.svg+│ ├── 02_chapter.svg+│ ├── 03_content.svg+│ └── 04_ending.svg+├── svg_output/ # 生成的内容页面+├── svg_final/ # 最终版本+└── ...+```++### 模板预览++每个模板生成后,提供简要说明:++```markdown+## 模板预览++| 模板 | 说明 | 状态 |+|------|------|------|+| `01_cover.svg` | 封面 - 深蓝渐变背景,左侧标题布局 | ✅ 已生成 |+| `02_chapter.svg` | 章节页 - 居中大号编号 | ✅ 已生成 |+| `03_content.svg` | 内容页 - 页眉页脚框架,内容区灵活 | ✅ 已生成 |+| `04_ending.svg` | 结束页 - 感谢语居中布局 | ✅ 已生成 |+```++## 阶段完成检查点++```markdown+## ✅ Template_Designer 阶段完成++- [x] 已阅读 `roles/Template_Designer.md`+- [x] 已生成 4 个核心页面模板+- [x] 所有模板已保存到 `templates/` 目录+- [x] 模板遵循设计规范(配色、字体、布局)+- [x] 占位符标记清晰规范+- [ ] **下一步**: 请用户确认模板++### 用户确认++请预览以下模板文件,确认是否符合预期:++1. 封面: `templates/01_cover.svg`+2. 章节页: `templates/02_chapter.svg`+3. 内容页: `templates/03_content.svg`+4. 结束页: `templates/04_ending.svg`++确认后将进入 Executor 阶段,基于这些模板生成实际内容。+```++## 使用预置模板库(可选)++如果 `templates/layouts/` 中存在适合的预置模板,可以:++1. **复制预置模板**: 将预置模板复制到项目 `templates/` 目录+2. **调整配色**: 根据项目设计规范修改颜色+3. **自定义修改**: 根据项目特点进行个性化调整++**预置模板库结构**:++```+templates/layouts/+├── general/ # 通用灵活风格+├── consultant/ # 咨询风格+└── consultant_top/ # 顶级咨询风格(MBB级)+```++## 技术约束++遵循与 Executor 相同的 SVG 技术约束:++- **viewBox**: 与画布尺寸一致+- **禁止**: `clipPath`, `mask`, `filter`, `<style>`, `class`, `foreignObject`+- **PPT 兼容**: 无 `rgba()`、无 `<g opacity>`、图片用遮罩层+- **字体**: 使用系统字体栈++详见 [AGENTS.md](../AGENTS.md) 中的「SVG 技术约束」章节。diff --git a/templates/layouts/README.md b/templates/layouts/README.mdnew file mode 100644index 00000000..d2f7dcf6--- /dev/null+++ b/templates/layouts/README.md@@ -0,0 +1,66 @@+# 页面布局模板库++预置的页面布局模板,按设计风格分类。++## 目录结构++```+templates/layouts/+├── general/ # 通用灵活风格+├── consultant/ # 咨询风格+└── consultant_top/ # 顶级咨询风格(MBB级)+```++## 4 个核心模板++每种风格包含 4 个核心模板,保持精简同时覆盖必要的结构性页面:++| 序号 | 文件名 | 用途 | 说明 |+|-----|--------|------|------|+| 01 | `01_cover.svg` | 封面 | 固定结构:标题、副标题、日期、机构 |+| 02 | `02_chapter.svg` | 章节页 | 固定结构:章节编号、章节标题 |+| 03 | `03_content.svg` | 内容页 | **灵活结构**:只定义页眉页脚,内容区由 AI 自由布局 |+| 04 | `04_ending.svg` | 结束页 | 固定结构:感谢语、联系方式 |++> **设计理念**:模板定义视觉一致性和结构性页面,内容页保持最大灵活性,让 AI 根据实际内容决定布局。++## 风格特点++| 风格 | 配色 | 特点 |+|------|------|------|+| **general** | 深蓝渐变 + 靛蓝紫 | 现代简洁,适合商业演示 |+| **consultant** | 深蓝 + 金色线 + 左侧装饰条 | 专业严谨,咨询报告风格 |+| **consultant_top** | 渐变顶条 + 网格 + 金色点缀 | MBB级,核心观点区 + 机密标识 |++## 占位符规范++模板中使用以下占位符标记可替换内容:++| 占位符 | 用途 | 适用模板 |+|-------|------|---------|+| `{{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}}` | 版权信息 | 结束页 |++## 使用方式++Template_Designer 角色可从此处复制模板到项目 `templates/` 目录,并根据设计规范调整配色。++```bash+# 复制通用风格模板到项目+cp templates/layouts/general/* projects/<项目>/templates/+```diff --git a/templates/layouts/consultant/01_cover.svg b/templates/layouts/consultant/01_cover.svgnew file mode 100644index 00000000..d17f32e6--- /dev/null+++ b/templates/layouts/consultant/01_cover.svg@@ -0,0 +1,31 @@+<?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="#0A1628"/>++ <!-- 左侧装饰条 -->+ <rect x="0" y="0" width="8" height="720" fill="#0066CC"/>++ <!-- 金色装饰线 -->+ <line x1="80" y1="200" x2="400" y2="200" stroke="#D4AF37" stroke-width="3"/>++ <!-- 主标题 -->+ <text x="80" y="300" fill="#FFFFFF" font-family="Arial, sans-serif" font-size="52" font-weight="bold">+ {{TITLE}}+ </text>++ <!-- 副标题 -->+ <text x="80" y="360" fill="#94A3B8" font-family="Arial, sans-serif" font-size="24">+ {{SUBTITLE}}+ </text>++ <!-- 右侧几何装饰 -->+ <rect x="850" y="150" width="350" height="350" fill="none" stroke="#0066CC" stroke-width="1" stroke-opacity="0.3"/>+ <rect x="900" y="200" width="250" height="250" fill="none" stroke="#0066CC" stroke-width="1" stroke-opacity="0.2"/>++ <!-- 底部信息 -->+ <line x1="80" y1="620" x2="1200" y2="620" stroke="#1E3A5F" stroke-width="1"/>+ <text x="80" y="680" fill="#64748B" font-family="Arial, sans-serif" font-size="16">{{DATE}}</text>+ <text x="640" y="680" text-anchor="middle" fill="#D4AF37" font-family="Arial, sans-serif" font-size="12">{{CONFIDENTIAL}}</text>+ <text x="1200" y="680" text-anchor="end" fill="#64748B" font-family="Arial, sans-serif" font-size="16">{{AUTHOR}}</text>+</svg>diff --git a/templates/layouts/consultant/02_chapter.svg b/templates/layouts/consultant/02_chapter.svgnew file mode 100644index 00000000..79c7c6bc--- /dev/null+++ b/templates/layouts/consultant/02_chapter.svg@@ -0,0 +1,30 @@+<?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="#0A1628"/>++ <!-- 左侧装饰条 -->+ <rect x="0" y="0" width="8" height="720" fill="#0066CC"/>++ <!-- 章节编号块 -->+ <rect x="80" y="280" width="120" height="120" fill="#0066CC"/>+ <text x="140" y="365" text-anchor="middle" fill="#FFFFFF" font-family="Arial, sans-serif" font-size="64" font-weight="bold">+ {{CHAPTER_NUM}}+ </text>++ <!-- 章节标题 -->+ <text x="240" y="340" fill="#FFFFFF" font-family="Arial, sans-serif" font-size="42" font-weight="bold">+ {{CHAPTER_TITLE}}+ </text>++ <!-- 金色分隔线 -->+ <line x1="240" y1="370" x2="600" y2="370" stroke="#D4AF37" stroke-width="2"/>++ <!-- 章节描述 -->+ <text x="240" y="420" fill="#94A3B8" font-family="Arial, sans-serif" font-size="18">+ {{CHAPTER_DESC}}+ </text>++ <!-- 右侧几何装饰 -->+ <rect x="900" y="200" width="300" height="300" fill="none" stroke="#0066CC" stroke-width="1" stroke-opacity="0.3"/>+</svg>diff --git a/templates/layouts/consultant/03_content.svg b/templates/layouts/consultant/03_content.svgnew file mode 100644index 00000000..51169533--- /dev/null+++ b/templates/layouts/consultant/03_content.svg@@ -0,0 +1,37 @@+<?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="60" fill="#0A1628"/>+ <text x="60" y="40" fill="#FFFFFF" font-family="Arial, sans-serif" font-size="20" font-weight="bold">+ {{PAGE_TITLE}}+ </text>++ <!-- 左侧装饰条 -->+ <rect x="0" y="60" width="8" height="660" fill="#0066CC"/>++ <!-- 核心观点区域 -->+ <rect x="40" y="80" width="1200" height="50" fill="#F1F5F9"/>+ <rect x="40" y="80" width="6" height="50" fill="#D4AF37"/>+ <text x="60" y="112" fill="#0A1628" font-family="Arial, sans-serif" font-size="16" font-weight="bold">+ {{KEY_MESSAGE}}+ </text>++ <!-- ==================== 内容区域 ==================== -->+ <!--+ AI 灵活布局区+ 可用空间: x=40, y=150, width=1200, height=470+ -->+ <rect x="40" y="150" width="1200" height="470" fill="#FFFFFF" rx="4"/>+ <rect x="40" y="150" width="1200" height="470" fill="none" stroke="#E2E8F0" stroke-width="1" rx="4" stroke-dasharray="8,4"/>+ <text x="640" y="390" text-anchor="middle" fill="#CBD5E1" font-family="Arial, sans-serif" font-size="14">+ {{CONTENT_AREA}}+ </text>++ <!-- ==================== 页脚区域 ==================== -->+ <line x1="40" y1="660" x2="1240" y2="660" stroke="#E2E8F0" stroke-width="1"/>+ <text x="40" y="695" fill="#94A3B8" font-family="Arial, sans-serif" font-size="10">Source: {{SOURCE}}</text>+ <text x="1220" y="695" text-anchor="end" fill="#64748B" font-family="Arial, sans-serif" font-size="12">{{PAGE_NUM}}</text>+</svg>diff --git a/templates/layouts/consultant/04_ending.svg b/templates/layouts/consultant/04_ending.svgnew file mode 100644index 00000000..57d140ba--- /dev/null+++ b/templates/layouts/consultant/04_ending.svg@@ -0,0 +1,39 @@+<?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="#0A1628"/>++ <!-- 左侧装饰条 -->+ <rect x="0" y="0" width="8" height="720" fill="#0066CC"/>++ <!-- 右侧几何装饰 -->+ <rect x="900" y="100" width="300" height="300" fill="none" stroke="#0066CC" stroke-width="1" stroke-opacity="0.2"/>++ <!-- 感谢语 -->+ <text x="640" y="280" text-anchor="middle" fill="#FFFFFF" font-family="Arial, sans-serif" font-size="52" font-weight="bold">+ {{THANK_YOU}}+ </text>++ <!-- 金色分隔线 -->+ <line x1="520" y1="320" x2="760" y2="320" stroke="#D4AF37" stroke-width="2"/>++ <!-- 口号 -->+ <text x="640" y="380" text-anchor="middle" fill="#94A3B8" font-family="Arial, sans-serif" font-size="20">+ {{TAGLINE}}+ </text>++ <!-- 联系信息 -->+ <text x="640" y="480" text-anchor="middle" fill="#64748B" font-family="Arial, sans-serif" font-size="14">+ {{CONTACT_INFO}}+ </text>++ <!-- 机密标识 -->+ <text x="640" y="600" text-anchor="middle" fill="#D4AF37" font-family="Arial, sans-serif" font-size="11">+ {{CONFIDENTIAL}}+ </text>++ <!-- 版权 -->+ <text x="640" y="688" text-anchor="middle" fill="#475569" font-family="Arial, sans-serif" font-size="11">+ {{COPYRIGHT}}+ </text>+</svg>diff --git a/templates/layouts/consultant_top/01_cover.svg b/templates/layouts/consultant_top/01_cover.svgnew file mode 100644index 00000000..93309b03--- /dev/null+++ b/templates/layouts/consultant_top/01_cover.svg@@ -0,0 +1,49 @@+<?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="#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)"/>++ <!-- 左侧金色装饰线 -->+ <line x1="120" y1="240" x2="120" y2="480" stroke="#D4AF37" stroke-width="4"/>++ <!-- 主标题 -->+ <text x="160" y="320" fill="#FFFFFF" font-family="Arial, sans-serif" font-size="56" font-weight="bold" letter-spacing="2">+ {{TITLE}}+ </text>++ <!-- 副标题 -->+ <text x="160" y="380" fill="#9CA3AF" font-family="Arial, sans-serif" font-size="24" letter-spacing="1">+ {{SUBTITLE}}+ </text>++ <!-- 项目编号 -->+ <text x="160" y="440" fill="#6366F1" font-family="Arial, sans-serif" font-size="16" letter-spacing="2">+ {{PROJECT_ID}}+ </text>++ <!-- 右侧网格装饰 -->+ <g stroke="#1E40AF" stroke-width="0.5" stroke-opacity="0.3">+ <line x1="800" y1="150" x2="800" y2="550"/>+ <line x1="900" y1="150" x2="900" y2="550"/>+ <line x1="1000" y1="150" x2="1000" y2="550"/>+ <line x1="1100" y1="150" x2="1100" y2="550"/>+ <line x1="750" y1="250" x2="1150" y2="250"/>+ <line x1="750" y1="350" x2="1150" y2="350"/>+ <line x1="750" y1="450" x2="1150" y2="450"/>+ </g>++ <!-- 底部信息 -->+ <line x1="120" y1="620" x2="1160" y2="620" stroke="#1F2937" stroke-width="1"/>+ <text x="120" y="670" fill="#6B7280" font-family="Arial, sans-serif" font-size="14">{{DATE}}</text>+ <text x="640" y="670" text-anchor="middle" fill="#D4AF37" font-family="Arial, sans-serif" font-size="12">CONFIDENTIAL</text>+ <text x="1160" y="670" text-anchor="end" fill="#6B7280" font-family="Arial, sans-serif" font-size="14">{{AUTHOR}}</text>+</svg>diff --git a/templates/layouts/consultant_top/02_chapter.svg b/templates/layouts/consultant_top/02_chapter.svgnew file mode 100644index 00000000..3b77051b--- /dev/null+++ b/templates/layouts/consultant_top/02_chapter.svg@@ -0,0 +1,43 @@+<?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="#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)"/>++ <!-- 左侧金色装饰线 -->+ <line x1="100" y1="280" x2="100" y2="440" stroke="#D4AF37" stroke-width="4"/>++ <!-- 章节编号(大号背景) -->+ <text x="140" y="380" fill="#FFFFFF" fill-opacity="0.08" font-family="Arial, sans-serif" font-size="180" font-weight="bold">+ {{CHAPTER_NUM}}+ </text>++ <!-- 章节标题 -->+ <text x="160" y="360" fill="#FFFFFF" font-family="Arial, sans-serif" font-size="48" font-weight="bold" letter-spacing="2">+ {{CHAPTER_TITLE}}+ </text>++ <!-- 章节描述 -->+ <text x="160" y="420" fill="#9CA3AF" font-family="Arial, sans-serif" font-size="20">+ {{CHAPTER_DESC}}+ </text>++ <!-- 右侧网格装饰 -->+ <g stroke="#1E40AF" stroke-width="0.5" stroke-opacity="0.2">+ <line x1="850" y1="200" x2="850" y2="520"/>+ <line x1="950" y1="200" x2="950" y2="520"/>+ <line x1="1050" y1="200" x2="1050" y2="520"/>+ <line x1="1150" y1="200" x2="1150" y2="520"/>+ <line x1="800" y1="260" x2="1200" y2="260"/>+ <line x1="800" y1="360" x2="1200" y2="360"/>+ <line x1="800" y1="460" x2="1200" y2="460"/>+ </g>+</svg>diff --git a/templates/layouts/consultant_top/03_content.svg b/templates/layouts/consultant_top/03_content.svgnew file mode 100644index 00000000..74ef3f29--- /dev/null+++ b/templates/layouts/consultant_top/03_content.svg@@ -0,0 +1,38 @@+<?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"/>++ <!-- 顶部渐变条 -->+ <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="4" fill="url(#top-gradient)"/>++ <!-- ==================== 核心观点区域 (Exhibit/Takeaway) ==================== -->+ <rect x="40" y="20" width="1200" height="60" fill="#0D1117"/>+ <rect x="40" y="20" width="6" height="60" fill="#D4AF37"/>+ <text x="60" y="58" fill="#FFFFFF" font-family="Arial, sans-serif" font-size="18" font-weight="bold" letter-spacing="1">+ {{KEY_MESSAGE}}+ </text>++ <!-- ==================== 内容区域 ==================== -->+ <!--+ AI 灵活布局区+ 可用空间: x=40, y=100, width=1200, height=520+ -->+ <rect x="40" y="100" width="1200" height="520" fill="#FFFFFF" rx="4"/>+ <rect x="40" y="100" width="1200" height="520" fill="none" stroke="#E5E7EB" stroke-width="1" rx="4" stroke-dasharray="8,4"/>+ <text x="640" y="370" text-anchor="middle" fill="#D1D5DB" font-family="Arial, sans-serif" font-size="14">+ {{CONTENT_AREA}}+ </text>++ <!-- ==================== 页脚区域 ==================== -->+ <line x1="40" y1="660" x2="1240" y2="660" stroke="#E5E7EB" stroke-width="1"/>+ <text x="40" y="695" fill="#9CA3AF" font-family="Arial, sans-serif" font-size="10">Source: {{SOURCE}}</text>+ <text x="640" y="695" text-anchor="middle" fill="#D4AF37" font-family="Arial, sans-serif" font-size="10">CONFIDENTIAL</text>+ <text x="1220" y="695" text-anchor="end" fill="#6B7280" font-family="Arial, sans-serif" font-size="12">{{PAGE_NUM}}</text>+</svg>diff --git a/templates/layouts/consultant_top/04_ending.svg b/templates/layouts/consultant_top/04_ending.svgnew file mode 100644index 00000000..b1b87968--- /dev/null+++ b/templates/layouts/consultant_top/04_ending.svg@@ -0,0 +1,54 @@+<?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="#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)"/>++ <!-- 网格装饰背景 -->+ <g stroke="#1E40AF" stroke-width="0.5" stroke-opacity="0.1">+ <line x1="200" y1="100" x2="200" y2="620"/>+ <line x1="400" y1="100" x2="400" y2="620"/>+ <line x1="600" y1="100" x2="600" y2="620"/>+ <line x1="800" y1="100" x2="800" y2="620"/>+ <line x1="1000" y1="100" x2="1000" y2="620"/>+ <line x1="100" y1="200" x2="1180" y2="200"/>+ <line x1="100" y1="360" x2="1180" y2="360"/>+ <line x1="100" y1="520" x2="1180" y2="520"/>+ </g>++ <!-- 感谢语 -->+ <text x="640" y="280" text-anchor="middle" fill="#FFFFFF" font-family="Arial, sans-serif" font-size="56" font-weight="bold" letter-spacing="4">+ {{THANK_YOU}}+ </text>++ <!-- 金色分隔线 -->+ <line x1="500" y1="320" x2="780" y2="320" stroke="#D4AF37" stroke-width="3"/>++ <!-- 口号 -->+ <text x="640" y="380" text-anchor="middle" fill="#9CA3AF" font-family="Arial, sans-serif" font-size="22" letter-spacing="2">+ {{TAGLINE}}+ </text>++ <!-- 联系信息卡片 -->+ <rect x="440" y="440" width="400" height="100" fill="#1F2937" rx="8"/>+ <text x="640" y="490" text-anchor="middle" fill="#FFFFFF" font-family="Arial, sans-serif" font-size="16" font-weight="bold">+ {{CONTACT_NAME}}+ </text>+ <text x="640" y="520" text-anchor="middle" fill="#9CA3AF" font-family="Arial, sans-serif" font-size="14">+ {{CONTACT_INFO}}+ </text>++ <!-- 底部 -->+ <line x1="200" y1="640" x2="1080" y2="640" stroke="#1F2937" stroke-width="1"/>+ <text x="640" y="680" text-anchor="middle" fill="#D4AF37" font-family="Arial, sans-serif" font-size="11">+ CONFIDENTIAL · {{COPYRIGHT}}+ </text>+</svg>diff --git a/templates/layouts/general/01_cover.svg b/templates/layouts/general/01_cover.svgnew file mode 100644index 00000000..34f73ca8--- /dev/null+++ b/templates/layouts/general/01_cover.svg@@ -0,0 +1,35 @@+<?xml version="1.0" encoding="UTF-8"?>+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1280 720">+ <!-- 背景渐变 -->+ <defs>+ <linearGradient id="bg-gradient" x1="0%" y1="0%" x2="100%" y2="100%">+ <stop offset="0%" style="stop-color:#1E3A5F"/>+ <stop offset="100%" style="stop-color:#0F1C2E"/>+ </linearGradient>+ </defs>+ <rect width="1280" height="720" fill="url(#bg-gradient)"/>++ <!-- 装饰元素 -->+ <circle cx="1100" cy="150" r="200" fill="#6366F1" fill-opacity="0.15"/>+ <circle cx="1150" cy="100" r="120" fill="#22D3EE" fill-opacity="0.1"/>+ <line x1="80" y1="400" x2="280" y2="400" stroke="#FFFFFF" stroke-width="2" stroke-opacity="0.3"/>++ <!-- 主标题 -->+ <text x="80" y="320" fill="#FFFFFF" font-family="Microsoft YaHei, Arial, sans-serif" font-size="48" font-weight="bold">+ {{TITLE}}+ </text>++ <!-- 副标题 -->+ <text x="80" y="380" fill="#94A3B8" font-family="Microsoft YaHei, Arial, sans-serif" font-size="24">+ {{SUBTITLE}}+ </text>++ <!-- 底部信息 -->+ <rect x="0" y="640" width="1280" height="80" fill="#0F1C2E" fill-opacity="0.5"/>+ <text x="80" y="688" fill="#64748B" font-family="Microsoft YaHei, Arial, sans-serif" font-size="16">+ {{DATE}}+ </text>+ <text x="1200" y="688" text-anchor="end" fill="#64748B" font-family="Microsoft YaHei, Arial, sans-serif" font-size="16">+ {{AUTHOR}}+ </text>+</svg>diff --git a/templates/layouts/general/02_chapter.svg b/templates/layouts/general/02_chapter.svgnew file mode 100644index 00000000..1c1311b5--- /dev/null+++ b/templates/layouts/general/02_chapter.svg@@ -0,0 +1,27 @@+<?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="#1E3A5F"/>++ <!-- 装饰圆 -->+ <circle cx="200" cy="600" r="300" fill="#6366F1" fill-opacity="0.1"/>+ <circle cx="1100" cy="200" r="250" fill="#22D3EE" fill-opacity="0.08"/>++ <!-- 章节编号(大号背景) -->+ <text x="640" y="280" text-anchor="middle" fill="#FFFFFF" fill-opacity="0.1" font-family="Arial, sans-serif" font-size="200" font-weight="bold">+ {{CHAPTER_NUM}}+ </text>++ <!-- 章节标题 -->+ <text x="640" y="400" text-anchor="middle" fill="#FFFFFF" font-family="Microsoft YaHei, Arial, sans-serif" font-size="48" font-weight="bold">+ {{CHAPTER_TITLE}}+ </text>++ <!-- 分隔线 -->+ <line x1="520" y1="440" x2="760" y2="440" stroke="#FFFFFF" stroke-width="3" stroke-opacity="0.5"/>++ <!-- 章节描述(可选) -->+ <text x="640" y="500" text-anchor="middle" fill="#94A3B8" font-family="Microsoft YaHei, Arial, sans-serif" font-size="20">+ {{CHAPTER_DESC}}+ </text>+</svg>diff --git a/templates/layouts/general/03_content.svg b/templates/layouts/general/03_content.svgnew file mode 100644index 00000000..aa2e3d5a--- /dev/null+++ b/templates/layouts/general/03_content.svg@@ -0,0 +1,44 @@+<?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="#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"/>++ <!-- 页面标题 -->+ <text x="60" y="46" fill="#1E3A5F" font-family="Microsoft YaHei, Arial, sans-serif" font-size="24" font-weight="bold">+ {{PAGE_TITLE}}+ </text>++ <!-- ==================== 内容区域 ==================== -->+ <!--+ 此区域为 AI 灵活布局区+ 可用空间: x=40, y=90, width=1200, height=550+ AI 可在此区域自由创建:单栏、双栏、多栏、图文、图表等任何布局+ -->+ <rect x="40" y="90" width="1200" height="550" fill="#FFFFFF" rx="8"/>+ <rect x="40" y="90" width="1200" height="550" fill="none" stroke="#E2E8F0" stroke-width="1" rx="8" stroke-dasharray="8,4"/>+ <text x="640" y="365" text-anchor="middle" fill="#CBD5E1" font-family="Microsoft YaHei, Arial, sans-serif" font-size="16">+ {{CONTENT_AREA}}+ </text>+ <text x="640" y="395" text-anchor="middle" fill="#E2E8F0" font-family="Microsoft YaHei, Arial, sans-serif" font-size="12">+ AI 灵活布局区 · 1200×550+ </text>++ <!-- ==================== 页脚区域 ==================== -->+ <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">+ {{SECTION_NAME}}+ </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/04_ending.svg b/templates/layouts/general/04_ending.svgnew file mode 100644index 00000000..a92f028d--- /dev/null+++ b/templates/layouts/general/04_ending.svg@@ -0,0 +1,38 @@+<?xml version="1.0" encoding="UTF-8"?>+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1280 720">+ <!-- 背景渐变 -->+ <defs>+ <linearGradient id="ending-gradient" x1="0%" y1="0%" x2="100%" y2="100%">+ <stop offset="0%" style="stop-color:#1E3A5F"/>+ <stop offset="100%" style="stop-color:#0F1C2E"/>+ </linearGradient>+ </defs>+ <rect width="1280" height="720" fill="url(#ending-gradient)"/>++ <!-- 装饰圆 -->+ <circle cx="150" cy="150" r="200" fill="#6366F1" fill-opacity="0.1"/>+ <circle cx="1100" cy="550" r="250" fill="#22D3EE" fill-opacity="0.08"/>++ <!-- 感谢语 -->+ <text x="640" y="300" text-anchor="middle" fill="#FFFFFF" font-family="Microsoft YaHei, Arial, sans-serif" font-size="56" font-weight="bold">+ {{THANK_YOU}}+ </text>++ <!-- 分隔线 -->+ <line x1="520" y1="340" x2="760" y2="340" stroke="#FFFFFF" stroke-width="2" stroke-opacity="0.3"/>++ <!-- 口号/副标题 -->+ <text x="640" y="400" text-anchor="middle" fill="#94A3B8" font-family="Microsoft YaHei, Arial, sans-serif" font-size="24">+ {{TAGLINE}}+ </text>++ <!-- 联系信息 -->+ <text x="640" y="500" text-anchor="middle" fill="#64748B" font-family="Microsoft YaHei, Arial, sans-serif" font-size="16">+ {{CONTACT_INFO}}+ </text>++ <!-- 版权 -->+ <text x="640" y="688" text-anchor="middle" fill="#475569" font-family="Microsoft YaHei, Arial, sans-serif" font-size="12">+ {{COPYRIGHT}}+ </text>+</svg>diff --git a/tools/project_manager.py b/tools/project_manager.pyindex 531cd923..2e8dd4e0 100644--- a/tools/project_manager.py+++ b/tools/project_manager.py@@ -94,6 +94,7 @@ class ProjectManager:(project_path / 'svg_final').mkdir(exist_ok=True) # 最终版本(后处理完成)(project_path / 'images').mkdir(exist_ok=True) # 图片资源(project_path / 'notes').mkdir(exist_ok=True) # 演讲备注+ (project_path / 'templates').mkdir(exist_ok=True) # 项目页面模板(可选)# 获取画布格式信息canvas_info = self.CANVAS_FORMATS.get(