[data-theme=light]{--bg:#f8f9fa;--bg-card:#fff;--text:#1a1a2e;--text-light:#64748b;--accent:#6366f1;--accent-hover:#4f46e5;--accent-light:#e0e7ff;--border:#e2e8f0;--code-bg:#f1f5f9;--success:#10b981;--shadow-sm:0 1px 3px #00000014;--shadow-md:0 4px 12px #0000001a;--header-bg:#ffffffe6}[data-theme=dark]{--bg:#0f0f1a;--bg-card:#1a1a2e;--text:#f1f5f9;--text-light:#94a3b8;--accent:#818cf8;--accent-hover:#6366f1;--accent-light:#312e81;--border:#334155;--code-bg:#1e293b;--success:#10b981;--shadow-sm:0 1px 3px #0000004d;--shadow-md:0 4px 12px #0006;--header-bg:#1a1a2ee6}:root{--radius:12px;--radius-sm:8px}*{box-sizing:border-box;margin:0;padding:0}html{scroll-behavior:smooth}body{background:var(--bg);color:var(--text);flex-direction:column;min-height:100vh;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;line-height:1.6;transition:background-color .3s,color .3s;display:flex}main{flex:1;width:100%;max-width:900px;margin:0 auto;padding:2rem 1.5rem}a{color:var(--accent);text-decoration:none;transition:color .2s}a:hover{color:var(--accent-hover)}.site-header{background:var(--header-bg);border-bottom:1px solid var(--border);padding:.75rem 1.5rem;position:relative}.site-header-inner{justify-content:space-between;align-items:center;max-width:900px;margin:0 auto;display:flex}.logo{color:var(--text);align-items:center;gap:.5rem;padding:.25rem 0;font-size:1.25rem;font-weight:700;display:flex}.logo:hover{color:var(--accent);text-decoration:none}.logo-icon{border-radius:6px;width:28px;height:28px;display:block}.logo-text{letter-spacing:-.02em}.nav-right{align-items:center;gap:1.25rem;display:flex}.nav-overlay{z-index:1040;opacity:0;pointer-events:none;background:#0006;transition:opacity .2s;display:none;position:fixed;inset:0}.nav-overlay.open{opacity:1;pointer-events:auto;display:block}.nav-toggle{background:var(--bg-card);border:1px solid var(--border);cursor:pointer;border-radius:8px;flex-direction:column;justify-content:center;gap:4px;width:38px;height:38px;padding:.5rem;display:none}.nav-toggle-bar{background:var(--text);border-radius:2px;width:18px;height:2px;transition:transform .25s,opacity .2s;display:block}.nav-toggle.open .nav-toggle-bar:first-child{transform:translateY(6px)rotate(45deg)}.nav-toggle.open .nav-toggle-bar:nth-child(2){opacity:0}.nav-toggle.open .nav-toggle-bar:nth-child(3){transform:translateY(-6px)rotate(-45deg)}.nav-right>a{color:var(--text-light);padding:.375rem 0;font-size:.9rem;font-weight:500;position:relative}.nav-right>a:after{content:"";background:var(--accent);width:0;height:2px;transition:width .2s;position:absolute;bottom:0;left:0}.nav-right>a:hover{color:var(--accent);text-decoration:none}.nav-right>a:hover:after{width:100%}.theme-toggle{cursor:pointer;background:0 0;border:none;align-items:center;padding:0;display:flex}.toggle-track{background:var(--border);border-radius:14px;justify-content:space-between;align-items:center;width:52px;height:28px;padding:0 6px;transition:background .25s;display:flex;position:relative}[data-theme=dark] .toggle-track{background:var(--accent)}.icon-moon-sm,.icon-sun-sm{color:var(--text-light);transition:opacity .2s;position:absolute;top:50%;left:7px;transform:translateY(-50%)}.icon-moon-sm{z-index:2}.icon-sun-sm{z-index:2;opacity:0;left:auto;right:7px}[data-theme=dark] .icon-moon-sm{opacity:0}[data-theme=dark] .icon-sun-sm{opacity:1}.toggle-thumb{z-index:1;background:#fff;border-radius:50%;width:22px;height:22px;transition:transform .25s;position:absolute;top:3px;left:3px;box-shadow:0 2px 4px #00000026}[data-theme=dark] .toggle-thumb{transform:translate(24px)}.theme-toggle:hover .toggle-track{background:var(--text-light)}[data-theme=dark] .theme-toggle:hover .toggle-track{background:var(--accent-hover)}.site-footer{background:var(--bg-card);border-top:1px solid var(--border);text-align:center;margin-top:auto;padding:1.5rem}.site-footer p{color:var(--text-light);font-size:.875rem}.footer-sub{opacity:.7;margin-top:.25rem;font-size:.75rem!important}h1,h2,h3,h4{color:var(--text);line-height:1.3}h1{font-size:2.25rem;font-weight:700}h2{font-size:1.5rem;font-weight:600}h3{font-size:1.25rem;font-weight:600}code{background:var(--code-bg);border-radius:6px;padding:.125rem .375rem;font-family:SF Mono,Fira Code,monospace;font-size:.9em}pre{background:var(--code-bg);border-radius:var(--radius);border:1px solid var(--border);margin:1rem 0;padding:1rem 2.5rem 1rem 1rem;overflow-x:auto}pre code{background:0 0;padding:0;font-size:.875rem;line-height:1.7}.code-wrapper{position:relative}.copy-button{background:var(--bg-card);border:1px solid var(--border);cursor:pointer;color:var(--text-light);border-radius:6px;justify-content:center;align-items:center;padding:.375rem;transition:all .2s;display:flex;position:absolute;top:.5rem;right:.5rem}.copy-button:hover{background:var(--accent);color:#fff;border-color:var(--accent)}.copy-button.copied{background:var(--success);color:#fff;border-color:var(--success)}img{border-radius:var(--radius);max-width:100%;height:auto}ul,ol{margin:1rem 0;padding-left:1.5rem}li{margin:.5rem 0}blockquote{border-left:4px solid var(--accent);background:var(--accent-light);border-radius:0 var(--radius-sm) var(--radius-sm) 0;color:var(--text);margin:1.25rem 0;padding:1rem 1.25rem}hr{border:none;border-top:1px solid var(--border);margin:2rem 0}::selection{background:var(--accent);color:#fff}.header-search{background:var(--code-bg);border:1px solid var(--border);border-radius:20px;align-items:center;gap:.375rem;padding:.375rem .75rem .375rem .625rem;transition:all .2s;display:flex;position:relative}.header-search:focus-within{background:var(--bg-card);border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-light)}.header-search-icon{color:var(--text-light);flex-shrink:0}#header-search-input{color:var(--text);background:0 0;border:none;outline:none;width:220px;font-family:inherit;font-size:.9rem}#header-search-input::placeholder{color:var(--text-light)}#header-search-input:disabled{opacity:.6}.header-search-results{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);width:440px;max-height:480px;box-shadow:var(--shadow-md);z-index:200;flex-direction:column;padding:.5rem;display:none;position:absolute;top:calc(100% + 8px);right:0;overflow-y:auto}.header-search-results.visible{display:flex}.header-result{border-radius:var(--radius-sm);color:var(--text);justify-content:space-between;align-items:center;gap:.875rem;padding:.75rem .875rem;text-decoration:none;transition:background .15s;display:flex}.header-result:hover{background:var(--accent-light);text-decoration:none}.header-result-main{flex-direction:column;flex:1;min-width:0;display:flex}.header-result-title{color:var(--text);white-space:nowrap;text-overflow:ellipsis;font-size:.95rem;font-weight:600;overflow:hidden}.header-result:hover .header-result-title{color:var(--accent)}.header-result-desc{color:var(--text-light);white-space:nowrap;text-overflow:ellipsis;margin-top:.2rem;font-size:.8rem;overflow:hidden}.header-no-results{text-align:center;color:var(--text-light);padding:1rem;font-size:.875rem}@media (width<=600px){.header-search{display:none}body{font-size:.9375rem;line-height:1.55}h1{font-size:1.875rem}h2{font-size:1.25rem}h3{font-size:1.0625rem}.nav-overlay{display:none}.nav-toggle{display:flex}.site-header-inner{flex-wrap:wrap}.nav-right{flex-direction:column;flex-basis:100%;order:3;align-items:stretch;gap:0;max-height:0;transition:max-height .3s;overflow:hidden}.nav-right.open{max-height:600px;margin-top:.75rem}.nav-right>a{border-bottom:1px solid var(--border);padding:.75rem .5rem;font-size:.95rem}.nav-right>a:after,.theme-toggle{display:none}}
