<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Module Layers</title>
<link href="https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Geist:wght@400;500;600&family=Geist+Mono:wght@400;500;600&family=Noto+Sans+TC:wght@400;500;600&display=swap" rel="stylesheet">
<style>
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
--color-paper: #f5f5f5;
--color-ink: #1a2332;
--color-muted: #4a5568;
--color-accent: #c0392b;
--color-link: #2c5282;
--font-sans: 'Geist', 'Noto Sans TC', 'PingFang TC', 'Microsoft Jhei', sans-serif;
--font-serif: 'Instrument Serif', 'Noto Serif TC', serif;
--font-mono: 'Geist Mono', ui-monospace, monospace;
}
body {
font-family: var(--font-sans);
background: var(--color-paper);
color: var(--color-ink);
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
padding: 3rem 2rem;
}
.frame { max-width: 1000px; width: 100%; }
.diagram-container { width: 100%; overflow-x: auto; }
.eyebrow {
font-family: var(--font-mono);
font-size: 0.66rem;
font-weight: 500;
letter-spacing: 0.18em;
text-transform: uppercase;
color: var(--color-muted);
margin-bottom: 0.5rem;
}
h1 {
font-family: var(--font-serif);
font-size: clamp(1.5rem, 2.4vw + 0.75rem, 2rem);
font-weight: 400;
letter-spacing: -0.02em;
line-height: 1.15;
color: var(--color-ink);
margin-bottom: 1.5rem;
}
svg { width: 100%; min-width: 900px; display: block; }
@media print {
.diagram-container { overflow-x: visible; }
svg { min-width: 0; }
}
</style>
</head>
<body>
<div class="frame">
<p class="eyebrow">Layer Stack · Diagram Design</p>
<h1>模块分层结构</h1>
<div class="diagram-container">
<svg viewBox="0 0 900 520" xmlns="http://www.w3.org/2000/svg" role="img" aria-labelledby="mod-layers-title mod-layers-desc">
<title id="mod-layers-title">Garrison Module Layers</title>
<desc id="mod-layers-desc">Four-layer module structure showing always-on Core layer and feature-gated Protocol, Extension, Security, Server, Web, and Observability layers above Infrastructure.</desc>
<defs>
<marker id="arrow" markerWidth="8" markerHeight="6" refX="7" refY="3" orient="auto"><polygon points="0 0, 8 3, 0 6" fill="#4a5568"/></marker>
</defs>
<rect width="100%" height="100%" fill="#f5f5f5"/>
<text x="24" y="60" fill="#4a5568" font-size="8" font-family="'Geist Mono', monospace" letter-spacing="0.14em" transform="rotate(-90 24 60)">ABSTRACTION</text>
<line x1="28" y1="100" x2="28" y2="460" stroke="#4a5568" stroke-width="1" marker-end="url(#arrow)"/>
<rect x="60" y="40" width="800" height="48" rx="4" fill="#f5f5f5" stroke="rgba(26,35,50,0.12)" stroke-width="1"/>
<text x="76" y="68" fill="#4a5568" font-size="8" font-family="'Geist Mono', monospace" letter-spacing="0.14em">L7</text>
<text x="110" y="68" fill="#1a2332" font-size="14" font-weight="600" font-family="'Geist', 'Noto Sans TC', 'PingFang TC', 'Microsoft Jhei', sans-serif">Observability</text>
<text x="836" y="68" fill="#4a5568" font-size="9" font-family="'Geist Mono', monospace" text-anchor="end">listener · metrics · tracing · otlp — FEATURE-GATED</text>
<rect x="60" y="92" width="800" height="48" rx="4" fill="#f5f5f5" stroke="rgba(26,35,50,0.12)" stroke-width="1"/>
<text x="76" y="120" fill="#4a5568" font-size="8" font-family="'Geist Mono', monospace" letter-spacing="0.14em">L6</text>
<text x="110" y="120" fill="#1a2332" font-size="14" font-weight="600" font-family="'Geist', 'Noto Sans TC', 'PingFang TC', 'Microsoft Jhei', sans-serif">Web</text>
<text x="836" y="120" fill="#4a5568" font-size="9" font-family="'Geist Mono', monospace" text-anchor="end">axum · actix · warp · cors · csrf · waf — FEATURE-GATED</text>
<rect x="60" y="144" width="800" height="48" rx="4" fill="#f5f5f5" stroke="rgba(26,35,50,0.12)" stroke-width="1"/>
<text x="76" y="172" fill="#4a5568" font-size="8" font-family="'Geist Mono', monospace" letter-spacing="0.14em">L5</text>
<text x="110" y="172" fill="#1a2332" font-size="14" font-weight="600" font-family="'Geist', 'Noto Sans TC', 'PingFang TC', 'Microsoft Jhei', sans-serif">Server</text>
<text x="836" y="172" fill="#4a5568" font-size="9" font-family="'Geist Mono', monospace" text-anchor="end">auth-server · oauth2-server · grpc — FEATURE-GATED</text>
<rect x="60" y="196" width="800" height="48" rx="4" fill="#f5f5f5" stroke="rgba(26,35,50,0.12)" stroke-width="1"/>
<text x="76" y="224" fill="#4a5568" font-size="8" font-family="'Geist Mono', monospace" letter-spacing="0.14em">L4</text>
<text x="110" y="224" fill="#1a2332" font-size="14" font-weight="600" font-family="'Geist', 'Noto Sans TC', 'PingFang TC', 'Microsoft Jhei', sans-serif">Security</text>
<text x="836" y="224" fill="#4a5568" font-size="9" font-family="'Geist Mono', monospace" text-anchor="end">totp · sign · httpbasic · sms · email · xss — FEATURE-GATED</text>
<rect x="60" y="248" width="800" height="48" rx="4" fill="#f5f5f5" stroke="rgba(26,35,50,0.12)" stroke-width="1"/>
<text x="76" y="276" fill="#4a5568" font-size="8" font-family="'Geist Mono', monospace" letter-spacing="0.14em">L3</text>
<text x="110" y="276" fill="#1a2332" font-size="14" font-weight="600" font-family="'Geist', 'Noto Sans TC', 'PingFang TC', 'Microsoft Jhei', sans-serif">Extension</text>
<text x="836" y="276" fill="#4a5568" font-size="9" font-family="'Geist Mono', monospace" text-anchor="end">alone-cache · parameter-query — FEATURE-GATED</text>
<rect x="60" y="300" width="800" height="48" rx="4" fill="#f5f5f5" stroke="rgba(26,35,50,0.12)" stroke-width="1"/>
<text x="76" y="328" fill="#4a5568" font-size="8" font-family="'Geist Mono', monospace" letter-spacing="0.14em">L2</text>
<text x="110" y="328" fill="#1a2332" font-size="14" font-weight="600" font-family="'Geist', 'Noto Sans TC', 'PingFang TC', 'Microsoft Jhei', sans-serif">Protocol</text>
<text x="836" y="328" fill="#4a5568" font-size="9" font-family="'Geist Mono', monospace" text-anchor="end">jwt · oauth2 · sso · oidc · sign · apikey — FEATURE-GATED</text>
<rect x="60" y="352" width="800" height="56" rx="4" fill="rgba(192,57,43,0.08)" stroke="#c0392b" stroke-width="1.2"/>
<text x="76" y="384" fill="#c0392b" font-size="8" font-family="'Geist Mono', monospace" letter-spacing="0.14em">L1</text>
<text x="110" y="384" fill="#1a2332" font-size="14" font-weight="600" font-family="'Geist', 'Noto Sans TC', 'PingFang TC', 'Microsoft Jhei', sans-serif">Core</text>
<text x="836" y="380" fill="#4a5568" font-size="9" font-family="'Geist Mono', monospace" text-anchor="end">core · stp · dao · session · config · manager — ALWAYS ON</text>
<rect x="60" y="412" width="800" height="48" rx="4" fill="rgba(26,35,50,0.05)" stroke="#4a5568" stroke-width="1"/>
<text x="76" y="440" fill="#4a5568" font-size="8" font-family="'Geist Mono', monospace" letter-spacing="0.14em">L0</text>
<text x="110" y="440" fill="#1a2332" font-size="14" font-weight="600" font-family="'Geist', 'Noto Sans TC', 'PingFang TC', 'Microsoft Jhei', sans-serif">Infrastructure</text>
<text x="836" y="440" fill="#4a5568" font-size="9" font-family="'Geist Mono', monospace" text-anchor="end">oxcache · dbnexus · sdforge · trait-kit — EXTERNAL</text>
</svg>
</div>
</div>
</body>
</html>