:root {
  --bg: #0d1117; --bg-sidebar: #161b22; --bg-card: #1c2128;
  --border: #30363d; --text: #c9d1d9; --text-muted: #8b949e;
  --accent: #58a6ff; --accent-hover: #79c0ff;
  --code-bg: #161b22; --radius: 6px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; font-size: 15px; }
.wiki-layout { display: flex; min-height: 100vh; }
.sidebar { width: 260px; min-width: 260px; background: var(--bg-sidebar); border-right: 1px solid var(--border); padding: 20px 16px; overflow-y: auto; position: sticky; top: 0; height: 100vh; }
.sidebar-brand a { font-size: 18px; font-weight: 700; color: var(--accent); text-decoration: none; display: block; margin-bottom: 24px; }
.sidebar-section { margin-bottom: 20px; }
.sidebar-section h3 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 6px; }
.sidebar-section ul { list-style: none; }
.sidebar-section li { margin: 2px 0; }
.sidebar-section a { color: var(--text); text-decoration: none; font-size: 13px; display: block; padding: 3px 8px; border-radius: var(--radius); }
.sidebar-section a:hover { background: var(--bg-card); color: var(--accent-hover); }
.content { flex: 1; padding: 40px 48px; max-width: 900px; }
article h1 { font-size: 28px; margin-bottom: 8px; color: #f0f6fc; }
article h2 { font-size: 20px; margin: 32px 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
article h3 { font-size: 16px; margin: 24px 0 8px; }
article p { margin: 8px 0; }
article a { color: var(--accent); }
article ul, article ol { margin: 8px 0 8px 24px; }
article li { margin: 4px 0; }
article code { background: var(--code-bg); padding: 2px 6px; border-radius: 3px; font-size: 13px; font-family: "SF Mono", "Fira Code", monospace; }
article pre { background: var(--code-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; overflow-x: auto; margin: 12px 0; font-size: 13px; }
article pre code { background: none; padding: 0; }
article table { width: 100%; border-collapse: collapse; margin: 16px 0; }
article th, article td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; font-size: 13px; }
article th { background: var(--bg-sidebar); font-weight: 600; }
article blockquote { border-left: 3px solid var(--accent); padding: 8px 16px; margin: 12px 0; color: var(--text-muted); background: var(--bg-card); border-radius: 0 var(--radius) var(--radius) 0; }
article hr { border: none; border-top: 1px solid var(--border); margin: 24px 0; }
.mermaid { margin: 16px 0; }
.mermaid svg { max-width: 100%; }
.page-footer { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-muted); }
.hero { padding: 20px 0 32px; }
.hero h1 { font-size: 36px; margin-bottom: 12px; }
.hero p { font-size: 16px; color: var(--text-muted); max-width: 600px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 24px 0; }
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.card h3 { margin: 0 0 8px; font-size: 15px; }
.card p { font-size: 13px; color: var(--text-muted); margin: 0; }
.card a { text-decoration: none; color: inherit; }
.card:hover { border-color: var(--accent); }
@media (max-width: 768px) { .wiki-layout { flex-direction: column; } .sidebar { width: 100%; min-width: 0; height: auto; position: relative; border-right: none; border-bottom: 1px solid var(--border); } .content { padding: 20px; } }
