<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="720" viewBox="0 0 1200 720">
  <rect x="0" y="0" width="1200" height="720" fill="#f6f9ff"/>
  <rect x="40" y="30" width="1120" height="660" rx="22" fill="#ffffff" stroke="#d8e2f1"/>
  <text x="600" y="78" text-anchor="middle" font-family="Arial, sans-serif" font-size="32" fill="#1f2d3d">LLM 应用分层架构（Flat Illustration）</text>

  <rect x="90" y="110" width="1020" height="110" rx="16" fill="#3f73ff"/>
  <text x="600" y="160" text-anchor="middle" font-family="Arial, sans-serif" font-size="30" fill="#ffffff">模型层：LM Core（Transformer）</text>
  <text x="600" y="195" text-anchor="middle" font-family="Arial, sans-serif" font-size="19" fill="#dbe7ff">Pretraining / Fine-tuning / Next-Token Prediction</text>

  <rect x="90" y="250" width="240" height="120" rx="16" fill="#ffca7a"/>
  <text x="210" y="302" text-anchor="middle" font-family="Arial, sans-serif" font-size="25" fill="#1f2d3d">Token</text>
  <text x="210" y="330" text-anchor="middle" font-family="Arial, sans-serif" font-size="17" fill="#36485f">Tokenizer + Token ID</text>
  <text x="210" y="353" text-anchor="middle" font-family="Arial, sans-serif" font-size="17" fill="#36485f">计费与延迟基准</text>

  <rect x="350" y="250" width="240" height="120" rx="16" fill="#7be5cc"/>
  <text x="470" y="302" text-anchor="middle" font-family="Arial, sans-serif" font-size="25" fill="#1f2d3d">Context</text>
  <text x="470" y="330" text-anchor="middle" font-family="Arial, sans-serif" font-size="17" fill="#36485f">System/User History</text>
  <text x="470" y="353" text-anchor="middle" font-family="Arial, sans-serif" font-size="17" fill="#36485f">Context Window 限制</text>

  <rect x="610" y="250" width="240" height="120" rx="16" fill="#ffe188"/>
  <text x="730" y="302" text-anchor="middle" font-family="Arial, sans-serif" font-size="25" fill="#1f2d3d">Prompt</text>
  <text x="730" y="330" text-anchor="middle" font-family="Arial, sans-serif" font-size="17" fill="#36485f">Instruction + Constraints</text>
  <text x="730" y="353" text-anchor="middle" font-family="Arial, sans-serif" font-size="17" fill="#36485f">Output Format 约束</text>

  <rect x="870" y="250" width="240" height="120" rx="16" fill="#ffb4c4"/>
  <text x="990" y="302" text-anchor="middle" font-family="Arial, sans-serif" font-size="25" fill="#1f2d3d">Tool</text>
  <text x="990" y="330" text-anchor="middle" font-family="Arial, sans-serif" font-size="17" fill="#36485f">Function Calling / API</text>
  <text x="990" y="353" text-anchor="middle" font-family="Arial, sans-serif" font-size="17" fill="#36485f">外部状态读写</text>

  <line x1="330" y1="310" x2="350" y2="310" stroke="#8aa0bf" stroke-width="4"/>
  <line x1="590" y1="310" x2="610" y2="310" stroke="#8aa0bf" stroke-width="4"/>
  <line x1="850" y1="310" x2="870" y2="310" stroke="#8aa0bf" stroke-width="4"/>

  <rect x="90" y="410" width="500" height="120" rx="16" fill="#c9dafd"/>
  <text x="340" y="458" text-anchor="middle" font-family="Arial, sans-serif" font-size="29" fill="#1f2d3d">协议层：MCP</text>
  <text x="340" y="488" text-anchor="middle" font-family="Arial, sans-serif" font-size="18" fill="#33465e">统一 Tool Schema / Transport / Capability Discovery</text>
  <text x="340" y="513" text-anchor="middle" font-family="Arial, sans-serif" font-size="18" fill="#33465e">降低多平台接入和迁移成本</text>

  <rect x="610" y="410" width="500" height="120" rx="16" fill="#c9f3e8"/>
  <text x="860" y="458" text-anchor="middle" font-family="Arial, sans-serif" font-size="29" fill="#1f2d3d">执行层：Agent + Skill</text>
  <text x="860" y="488" text-anchor="middle" font-family="Arial, sans-serif" font-size="18" fill="#33465e">Plan -> Act -> Observe -> Refine</text>
  <text x="860" y="513" text-anchor="middle" font-family="Arial, sans-serif" font-size="18" fill="#33465e">按需加载 SKILL.md，沉淀任务策略</text>

  <rect x="90" y="560" width="1020" height="96" rx="14" fill="#eef3fb"/>
  <text x="600" y="604" text-anchor="middle" font-family="Arial, sans-serif" font-size="21" fill="#34475f">端到端链路：LM -> Token -> Context -> Prompt -> Tool -> MCP -> Agent -> Skill</text>
  <text x="600" y="634" text-anchor="middle" font-family="Arial, sans-serif" font-size="18" fill="#5b6f88">工程关注点：正确性（Quality）/ 延迟（Latency）/ 成本（Cost）/ 可观测性（Observability）</text>
</svg>
