|
| 1 | +<!DOCTYPE html> |
| 2 | +<html lang="{{ page.lang | default: 'zh-CN' }}"> |
| 3 | +<head> |
| 4 | +<meta charset="utf-8"> |
| 5 | +<meta name="viewport" content="width=device-width, initial-scale=1"> |
| 6 | +<title>{{ page.title }} — agentenv</title> |
| 7 | +<style> |
| 8 | + *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } |
| 9 | + body { |
| 10 | + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", |
| 11 | + "Hiragino Sans GB", "Microsoft YaHei", "Inter", sans-serif; |
| 12 | + color: #1f2328; |
| 13 | + background: #fff; |
| 14 | + -webkit-font-smoothing: antialiased; |
| 15 | + } |
| 16 | + |
| 17 | + /* ── top bar ── */ |
| 18 | + .topbar { |
| 19 | + position: sticky; |
| 20 | + top: 0; |
| 21 | + z-index: 100; |
| 22 | + background: rgba(255,255,255,0.85); |
| 23 | + backdrop-filter: blur(12px); |
| 24 | + -webkit-backdrop-filter: blur(12px); |
| 25 | + border-bottom: 1px solid #eaecef; |
| 26 | + } |
| 27 | + .topbar-inner { |
| 28 | + max-width: 820px; |
| 29 | + margin: 0 auto; |
| 30 | + padding: 0 28px; |
| 31 | + height: 56px; |
| 32 | + display: flex; |
| 33 | + align-items: center; |
| 34 | + justify-content: space-between; |
| 35 | + } |
| 36 | + .topbar a { |
| 37 | + text-decoration: none; |
| 38 | + color: #57606a; |
| 39 | + font-size: 14px; |
| 40 | + transition: color .15s; |
| 41 | + } |
| 42 | + .topbar a:hover { color: #1f2328; } |
| 43 | + .topbar .logo { |
| 44 | + font-weight: 700; |
| 45 | + font-size: 17px; |
| 46 | + color: #1f2328; |
| 47 | + display: flex; |
| 48 | + align-items: center; |
| 49 | + gap: 8px; |
| 50 | + } |
| 51 | + .topbar .logo-dot { |
| 52 | + width: 8px; height: 8px; |
| 53 | + background: #38bdf8; |
| 54 | + border-radius: 50%; |
| 55 | + display: inline-block; |
| 56 | + } |
| 57 | + .topbar-links { |
| 58 | + display: flex; |
| 59 | + align-items: center; |
| 60 | + gap: 4px; |
| 61 | + } |
| 62 | + .topbar-links a { |
| 63 | + padding: 6px 14px; |
| 64 | + border-radius: 6px; |
| 65 | + font-weight: 500; |
| 66 | + } |
| 67 | + .topbar-links a:hover { background: #f6f8fa; } |
| 68 | + .topbar-links a.active { |
| 69 | + color: #1f2328; |
| 70 | + background: #f0f3f6; |
| 71 | + } |
| 72 | + .topbar-links .sep { |
| 73 | + color: #d0d7de; |
| 74 | + margin: 0 4px; |
| 75 | + user-select: none; |
| 76 | + } |
| 77 | + .topbar-links .gh { |
| 78 | + margin-left: 8px; |
| 79 | + padding: 6px 12px; |
| 80 | + border: 1px solid #d0d7de; |
| 81 | + border-radius: 6px; |
| 82 | + font-size: 13px; |
| 83 | + } |
| 84 | + .topbar-links .gh:hover { |
| 85 | + border-color: #afb8c1; |
| 86 | + background: #f6f8fa; |
| 87 | + } |
| 88 | + |
| 89 | + /* ── article area ── */ |
| 90 | + .article { |
| 91 | + max-width: 740px; |
| 92 | + margin: 0 auto; |
| 93 | + padding: 48px 28px 96px; |
| 94 | + line-height: 2.0; |
| 95 | + font-size: 17px; |
| 96 | + letter-spacing: .3px; |
| 97 | + } |
| 98 | + .article h1 { |
| 99 | + font-size: 32px; |
| 100 | + line-height: 1.35; |
| 101 | + font-weight: 800; |
| 102 | + margin: 0 0 12px; |
| 103 | + letter-spacing: -.3px; |
| 104 | + text-align: center; |
| 105 | + } |
| 106 | + .article-meta { |
| 107 | + text-align: center; |
| 108 | + color: #8b949e; |
| 109 | + font-size: 14px; |
| 110 | + margin-bottom: 48px; |
| 111 | + padding-bottom: 32px; |
| 112 | + border-bottom: 1px solid #eaecef; |
| 113 | + } |
| 114 | + .article h2 { |
| 115 | + font-size: 23px; |
| 116 | + font-weight: 700; |
| 117 | + margin: 56px 0 20px; |
| 118 | + padding-bottom: 10px; |
| 119 | + border-bottom: 2px solid #eaecef; |
| 120 | + } |
| 121 | + .article h3 { |
| 122 | + font-size: 19px; |
| 123 | + font-weight: 600; |
| 124 | + margin: 36px 0 14px; |
| 125 | + color: #24292f; |
| 126 | + } |
| 127 | + .article p { |
| 128 | + margin: 0 0 24px; |
| 129 | + text-indent: 2em; |
| 130 | + } |
| 131 | + .article li > p { text-indent: 0; } |
| 132 | + .article strong { font-weight: 600; color: #0b1f33; } |
| 133 | + .article a { |
| 134 | + color: #2563eb; |
| 135 | + text-decoration: none; |
| 136 | + border-bottom: 1px solid rgba(37,99,235,.25); |
| 137 | + transition: border-color .15s; |
| 138 | + } |
| 139 | + .article a:hover { border-bottom-color: #2563eb; } |
| 140 | + .article hr { |
| 141 | + border: none; |
| 142 | + border-top: 1px solid #eaecef; |
| 143 | + margin: 48px 0; |
| 144 | + } |
| 145 | + .article code { |
| 146 | + font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; |
| 147 | + font-size: .86em; |
| 148 | + background: #eff1f3; |
| 149 | + color: #c0341d; |
| 150 | + padding: 2px 7px; |
| 151 | + border-radius: 5px; |
| 152 | + } |
| 153 | + .article pre { |
| 154 | + background: #f6f8fa; |
| 155 | + border: 1px solid #d0d7de; |
| 156 | + border-radius: 8px; |
| 157 | + padding: 18px 22px; |
| 158 | + overflow-x: auto; |
| 159 | + font-size: 14px; |
| 160 | + line-height: 1.65; |
| 161 | + margin: 16px 0 28px; |
| 162 | + } |
| 163 | + .article pre code { |
| 164 | + background: none; |
| 165 | + color: inherit; |
| 166 | + padding: 0; |
| 167 | + font-size: inherit; |
| 168 | + } |
| 169 | + .article blockquote { |
| 170 | + margin: 16px 0 28px; |
| 171 | + padding: 4px 20px; |
| 172 | + color: #57606a; |
| 173 | + border-left: 4px solid #d0d7de; |
| 174 | + background: #f6f8fa; |
| 175 | + border-radius: 0 6px 6px 0; |
| 176 | + } |
| 177 | + .article table { |
| 178 | + width: 100%; |
| 179 | + border-collapse: collapse; |
| 180 | + margin: 16px 0 28px; |
| 181 | + font-size: 15px; |
| 182 | + } |
| 183 | + .article th, .article td { |
| 184 | + border: 1px solid #d0d7de; |
| 185 | + padding: 10px 14px; |
| 186 | + text-align: left; |
| 187 | + } |
| 188 | + .article th { |
| 189 | + background: #f6f8fa; |
| 190 | + font-weight: 600; |
| 191 | + font-size: 14px; |
| 192 | + } |
| 193 | + .article ul, .article ol { |
| 194 | + padding-left: 2em; |
| 195 | + margin: 0 0 24px; |
| 196 | + } |
| 197 | + .article li { margin-bottom: 6px; } |
| 198 | + .mermaid { |
| 199 | + text-align: center; |
| 200 | + margin: 28px 0; |
| 201 | + background: #f8f9fb; |
| 202 | + padding: 24px; |
| 203 | + border-radius: 10px; |
| 204 | + border: 1px solid #eaecef; |
| 205 | + } |
| 206 | + |
| 207 | + /* ── footer ── */ |
| 208 | + .article-footer { |
| 209 | + max-width: 740px; |
| 210 | + margin: 0 auto; |
| 211 | + padding: 0 28px 64px; |
| 212 | + text-align: center; |
| 213 | + } |
| 214 | + .article-footer .back { |
| 215 | + display: inline-flex; |
| 216 | + align-items: center; |
| 217 | + gap: 6px; |
| 218 | + color: #57606a; |
| 219 | + text-decoration: none; |
| 220 | + font-size: 14px; |
| 221 | + padding: 8px 20px; |
| 222 | + border: 1px solid #d0d7de; |
| 223 | + border-radius: 8px; |
| 224 | + transition: all .15s; |
| 225 | + } |
| 226 | + .article-footer .back:hover { |
| 227 | + background: #f6f8fa; |
| 228 | + border-color: #afb8c1; |
| 229 | + color: #24292f; |
| 230 | + } |
| 231 | + |
| 232 | + @media (max-width: 640px) { |
| 233 | + .article { padding: 32px 18px 64px; font-size: 16px; } |
| 234 | + .article h1 { font-size: 26px; } |
| 235 | + .article h2 { font-size: 20px; } |
| 236 | + .topbar-inner { padding: 0 16px; } |
| 237 | + .topbar-links .gh { display: none; } |
| 238 | + } |
| 239 | +</style> |
| 240 | +<script src="https://cdn.jsdelivr.net/npm/mermaid@10/dist/mermaid.min.js"></script> |
| 241 | +</head> |
| 242 | +<body> |
| 243 | + |
| 244 | +<header class="topbar"> |
| 245 | + <div class="topbar-inner"> |
| 246 | + <a class="logo" href="{{ '/' | relative_url }}"><span class="logo-dot"></span>agentenv</a> |
| 247 | + <div class="topbar-links"> |
| 248 | + <a href="{{ '/zh/' | relative_url }}" {% if page.lang == 'zh-CN' %}class="active"{% endif %}>中文</a> |
| 249 | + <span class="sep">/</span> |
| 250 | + <a href="{{ '/en/' | relative_url }}" {% if page.lang == 'en' %}class="active"{% endif %}>English</a> |
| 251 | + <a class="gh" href="https://github.com/css521/agentenv">GitHub</a> |
| 252 | + </div> |
| 253 | + </div> |
| 254 | +</header> |
| 255 | + |
| 256 | +<main class="article"> |
| 257 | +{{ content }} |
| 258 | +</main> |
| 259 | + |
| 260 | +<div class="article-footer"> |
| 261 | + <a class="back" href="{{ '/' | relative_url }}">← Back to Home</a> |
| 262 | +</div> |
| 263 | + |
| 264 | +<script> |
| 265 | +document.addEventListener("DOMContentLoaded", function() { |
| 266 | + document.querySelectorAll('.language-mermaid pre code, pre code.language-mermaid').forEach(function(codeEl) { |
| 267 | + var container = codeEl.closest('.language-mermaid') || codeEl.closest('pre'); |
| 268 | + var div = document.createElement('div'); |
| 269 | + div.className = 'mermaid'; |
| 270 | + div.textContent = codeEl.textContent; |
| 271 | + container.parentElement.replaceChild(div, container); |
| 272 | + }); |
| 273 | + mermaid.initialize({ startOnLoad: true, theme: "default", flowchart: { curve: "basis" } }); |
| 274 | +}); |
| 275 | +</script> |
| 276 | + |
| 277 | +</body> |
| 278 | +</html> |
0 commit comments