:root{--bg:#f8f7f3;--surface:#fffefa;--ink:#292e2a;--muted:#7b8078;--line:#e2e4dc;--accent:#2d6b50;--soft:#eaf0e6;--serif:Georgia,"Songti SC","Noto Serif CJK SC","STSong",serif;--sans:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color-scheme:light;--pagefind-ui-scale:.85;--pagefind-ui-primary:var(--accent);--pagefind-ui-text:var(--ink);--pagefind-ui-background:var(--surface);--pagefind-ui-border:var(--line);--pagefind-ui-tag:var(--soft);--pagefind-ui-font:var(--sans)}:root[data-theme=dark]{--bg:#171c19;--surface:#1d241f;--ink:#e4e7de;--muted:#a0aa9e;--line:#323d33;--accent:#a3cfaa;--soft:#29392d;color-scheme:dark}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:35px}body{background:var(--bg);color:var(--ink);font:15px/1.7 var(--sans);-webkit-font-smoothing:antialiased;margin:0}a{color:inherit;text-decoration:none}button,input{font:inherit}button{color:inherit;cursor:pointer}button:disabled{cursor:wait}a,button{-webkit-tap-highlight-color:transparent}button{background:0 0;border:0}button:focus-visible,a:focus-visible,summary:focus-visible,img:focus-visible{outline:2px solid var(--accent);outline-offset:5px}::selection{color:#17241b;background:#bdcfaf}svg{flex-shrink:0}img{max-width:100%;height:auto}h1,h2,h3,p{margin-top:0}h1,h2,h3{font-weight:550}.shell{width:min(1120px,100% - 96px);margin-inline:auto}.skip-link{background:var(--accent);color:var(--bg);z-index:100;padding:12px;position:fixed;top:-80px;left:20px}.skip-link:focus{top:10px}.site-header{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:32px;min-height:114px;display:flex}.brand{font:600 25px/1.2 var(--serif);letter-spacing:-.7px;align-items:center;gap:13px;display:flex}.brand small{font:9px/1 var(--sans);letter-spacing:2.15px;color:var(--muted);margin-top:9px;display:block}.brand-mark{background:var(--accent);color:var(--bg);width:43px;height:45px;font:bold 35px/1 var(--serif);border-radius:10px 10px 10px 2px;justify-content:center;align-items:center;display:flex}.brand-mark span{align-self:flex-end;margin-bottom:4px;font-size:28px}.site-header nav{align-self:stretch;align-items:center;gap:34px;margin-left:auto;margin-right:34px;display:flex}.site-header nav>a{color:var(--muted);align-items:center;height:100%;font-size:14px;display:flex;position:relative}.site-header nav>a:hover,.site-header nav>a.active{color:var(--accent)}.site-header nav>a.active:after{content:"";background:var(--accent);border-radius:50%;width:4px;height:4px;position:absolute;bottom:25px;left:calc(50% - 2px)}.header-tools{align-items:center;gap:18px;display:flex}.icon-button{border-radius:7px;justify-content:center;align-items:center;gap:11px;padding:7px;display:inline-flex}.icon-button:hover{background:var(--soft)}kbd{font:10px var(--sans);border:1px solid var(--line);color:var(--muted);border-radius:4px;padding:2px 4px}.tool-divider{background:var(--line);width:1px;height:18px}.moon,[data-theme=dark] .sun{display:none}[data-theme=dark] .moon,.sun{display:inline-flex}.home-hero{border-bottom:1px solid var(--line);grid-template-columns:1.6fr 1fr;align-items:center;gap:65px;padding:80px 0 76px;display:grid}.eyebrow{letter-spacing:2px;color:var(--accent);align-items:center;gap:9px;font-size:11px;font-weight:500;display:flex}.status-dot{background:var(--accent);width:6px;height:6px;box-shadow:0 0 0 4px var(--soft);border-radius:50%}.hero-copy h1{font-family:var(--serif);letter-spacing:1.2px;margin:23px 0 18px;font-size:51px;font-weight:500;line-height:1.5}.hero-emphasis{color:var(--accent)}.hero-copy>p{color:var(--muted);margin-bottom:24px;font-size:14px;line-height:2.1}.text-link{color:var(--accent);align-items:center;gap:10px;padding:0;font-size:13px;display:inline-flex}.text-link svg,.read-link svg{transition:transform .2s}.text-link:hover svg,.read-link:hover svg{transform:translate(4px)}.hero-note{border:1px solid var(--line);background:var(--surface);background-image:radial-gradient(var(--line) .7px,transparent .7px);width:100%;max-width:330px;box-shadow:8px 10px 0 -1px var(--bg),8px 10px 0 0 var(--line);background-size:12px 12px;border-radius:2px;justify-self:end;padding:25px 25px 31px;position:relative;transform:rotate(3deg)}.note-index{font:9px/1 var(--sans);letter-spacing:1.7px;color:var(--muted);justify-content:space-between;display:flex}.orbit-art{width:100%;height:190px;color:var(--accent);stroke:currentColor;stroke-width:.65px;opacity:.8;margin:12px 0 6px}.orbit-core{fill:var(--soft);stroke-width:1px}.orbit-dot{fill:var(--accent);stroke:none}.orbit-cross{stroke-width:1.2px}.hero-note>p{font-family:var(--serif);letter-spacing:3px;text-align:center;margin:0 0 10px;font-size:19px}.hero-note>small{text-align:center;letter-spacing:1.5px;color:var(--muted);font-size:7px;display:block}.note-corner{border-bottom:1px solid var(--accent);border-right:1px solid var(--accent);opacity:.5;width:14px;height:14px;position:absolute;bottom:9px;right:9px}.home-content{grid-template-columns:minmax(0,1fr) 240px;gap:74px;margin-top:44px;display:grid}.section-top{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;padding-bottom:20px;display:flex}.section-top h2{letter-spacing:.5px;margin:0;font-size:17px}.section-top h2>span{font:11px var(--sans);color:var(--muted);margin-left:10px}.section-top>a{color:var(--muted);align-items:center;gap:8px;font-size:11px;display:flex}.post-card{border-bottom:1px solid var(--line);animation:.5s both appear;animation-delay:calc(var(--order,0)*60ms);padding:31px 0 29px}.post-card-meta{font:11px/1.5 var(--sans);color:var(--muted);letter-spacing:.3px;align-items:center;gap:9px;display:flex}.meta-dot{opacity:.5}.featured-label{color:var(--accent);border:1px solid var(--line);border-radius:3px;margin-left:auto;padding:1px 6px;font-size:10px}.post-card h2{font:500 23px/1.6 var(--serif);letter-spacing:.3px;margin:13px 0 10px}.post-card h2 a:hover{color:var(--accent)}.post-card>p{color:var(--muted);margin-bottom:23px;font-size:13px;line-height:1.95}.post-card-bottom{justify-content:space-between;align-items:center;gap:15px;display:flex}.post-tags{flex-wrap:wrap;gap:8px;display:flex}.post-tags>a{color:var(--accent);background:var(--soft);border-radius:4px;padding:2px 8px;font-size:10px;line-height:1.8}.post-tags>a:hover{box-shadow:inset 0 0 0 1px var(--accent)}.read-link{color:var(--muted);white-space:nowrap;align-items:center;gap:8px;font-size:11px;display:flex}.home-aside{padding-top:6px}.aside-section{border-bottom:1px solid var(--line);margin-bottom:28px;padding-bottom:28px}.aside-label{letter-spacing:1.8px;color:var(--muted);font-size:9px}.avatar-mark{font:500 35px/1 var(--serif);border:1px solid var(--line);background:var(--soft);width:57px;height:57px;color:var(--accent);border-radius:50%;justify-content:center;align-items:center;margin:24px 0 17px;display:flex}.avatar-mark>span{align-self:flex-end;margin-bottom:9px}.aside-section>h2{font:500 16px var(--serif);margin-bottom:12px}.aside-section>p{color:var(--muted);margin-bottom:18px;font-size:12px;line-height:2}.aside-section .text-link{font-size:11px}.aside-heading{justify-content:space-between;align-items:center;margin-bottom:15px;display:flex}.aside-heading h3{margin:0;font-size:12px}.aside-heading>span{letter-spacing:1px;color:var(--muted);font-size:8px}.topic-list>a{justify-content:space-between;align-items:center;padding:9px 0;font-size:12px;display:flex}.topic-list>a:hover{color:var(--accent)}.topic-list>a>span+span{font:10px var(--sans);color:var(--muted);align-items:center;gap:13px;display:flex}.subscribe-note{border:1px solid var(--line);color:var(--accent);border-radius:5px;align-items:center;gap:11px;padding:18px 13px;display:flex}.subscribe-note strong{font-size:11px;font-weight:500}.subscribe-note p{color:var(--muted);margin:3px 0 0;font-size:10px}.subscribe-note>svg:last-child{margin-left:auto}.subscribe-note:hover{background:var(--soft)}.site-footer{border-top:1px solid var(--line);justify-content:space-between;gap:24px;margin-top:84px;padding:33px 0 30px;display:flex}.footer-wordmark{font:600 18px var(--serif);letter-spacing:-.4px}.footer-wordmark>span{color:var(--accent);margin-left:2px}.site-footer p{color:var(--muted);letter-spacing:1px;margin:8px 0 0;font-size:10px}.footer-right{text-align:right}.footer-right>div{justify-content:flex-end;gap:22px;margin-bottom:9px;display:flex}.footer-right a{color:var(--muted);align-items:center;gap:7px;font-size:10px;display:flex}.footer-right a:hover{color:var(--accent)}.footer-right small{color:var(--muted);font-size:9px}.page-heading{padding:64px 0 40px}.page-heading h1{font:500 39px/1.5 var(--serif);letter-spacing:1px;margin:20px 0 14px}.page-heading h1>span{color:var(--accent)}.page-heading>p{color:var(--muted);font-size:14px}.archive-list{max-width:850px}.archive-list section{margin:8px 0 40px}.archive-list h2{font:500 27px var(--serif);border-bottom:1px solid var(--line);align-items:center;gap:18px;margin:0;padding:0 0 20px;display:flex}.archive-list h2>span{font:11px var(--sans);color:var(--muted)}.archive-row{border-bottom:1px solid var(--line);align-items:center;gap:24px;padding:23px 0;display:flex}.archive-row>time{font:12px var(--sans);color:var(--muted);min-width:40px}.archive-row>span{font:500 18px/1.6 var(--serif)}.archive-row>svg{color:var(--muted);margin-left:auto}.archive-row:hover>span{color:var(--accent)}.tag-grid{grid-template-columns:repeat(3,1fr);gap:20px;margin-bottom:60px;display:grid}.tag-grid>a{border:1px solid var(--line);border-radius:4px;padding:25px;transition:background .2s}.tag-grid>a:hover{background:var(--soft)}.tag-number{font:11px var(--sans);color:var(--muted)}.tag-grid h2{font:500 24px var(--serif);margin:22px 0}.tag-grid>a>div{color:var(--muted);justify-content:space-between;align-items:center;font-size:11px;display:flex}.narrow-list{max-width:800px}.about-layout{max-width:780px;margin:0 auto}.about-prose{max-width:680px}.button-primary{background:var(--accent);color:var(--bg);border-radius:4px;align-items:center;gap:10px;padding:11px 20px;font-size:13px;display:inline-flex}.not-found{min-height:65vh;padding:100px 0 60px}.not-found h1{font:500 46px/1.6 var(--serif);margin:25px 0}.not-found p{color:var(--muted);margin-bottom:30px}.empty-state{text-align:center;color:var(--muted);padding:60px 20px}.empty-state>h3{font:24px var(--serif);margin-top:20px}.reading-progress{background:var(--accent);z-index:20;width:0;height:2px;position:fixed;top:0;left:0}.article-grid{grid-template-columns:minmax(0,760px) minmax(150px,1fr);gap:70px;display:grid}.article-header{border-bottom:1px solid var(--line);margin-bottom:35px;padding:45px 0 30px}.back-link{color:var(--muted);margin-bottom:28px;font-size:12px;display:inline-block}.back-link:hover{color:var(--accent)}.article-header h1{font:500 38px/1.55 var(--serif);letter-spacing:.4px;margin:19px 0 14px}.article-description{color:var(--muted);margin-bottom:22px;font-size:15px;line-height:1.9}.article-meta{color:var(--muted);flex-wrap:wrap;gap:10px;font-size:11px;display:flex}.article-toc{padding-top:86px}.toc-sticky{position:sticky;top:40px}.toc-sticky h2{margin:12px 0 17px;font-size:12px}.toc-sticky nav{border-left:1px solid var(--line);flex-direction:column;display:flex}.toc-sticky nav>a{color:var(--muted);padding:6px 0 6px 15px;font-size:11px;line-height:1.8;position:relative}.toc-sticky nav>a.nested{padding-left:25px;font-size:10px}.toc-sticky nav>a.active{color:var(--accent)}.toc-sticky nav>a.active:before{content:"";background:var(--accent);width:2px;position:absolute;top:6px;bottom:6px;left:-1px}.back-top{color:var(--muted);margin:24px 0 0 15px;font-size:10px;display:inline-block}.prose{overflow-wrap:anywhere;font-size:16px;line-height:2.05}.prose>p{margin-bottom:1.5em}.prose h2{font:550 27px/1.6 var(--serif);letter-spacing:.4px;margin:2.2em 0 .85em}.prose h3{font:550 21px/1.6 var(--serif);margin:1.8em 0 .7em}.prose h4{margin:1.5em 0 .6em;font-size:17px}.prose a{color:var(--accent);text-decoration:underline;text-decoration-color:var(--line);text-underline-offset:5px}.prose a:hover{text-decoration-color:var(--accent)}.prose strong{font-weight:600}.prose ul,.prose ol{margin-bottom:1.5em;padding-left:1.5em}.prose li{margin-bottom:.4em;padding-left:.25em}.prose li::marker{color:var(--accent)}.prose blockquote{border-left:2px solid var(--accent);background:var(--soft);color:var(--muted);font-family:var(--serif);margin:1.7em 0;padding:10px 23px}.prose blockquote p:last-child{margin-bottom:0}.prose blockquote p:first-child{margin-top:0}.prose hr{border:0;border-top:1px solid var(--line);margin:2.5em 0}.prose img{object-fit:contain;cursor:zoom-in;background:var(--surface);border-radius:5px;max-height:650px;margin:28px auto;display:block}.prose :not(pre)>code{background:var(--soft);overflow-wrap:anywhere;border-radius:4px;padding:3px 5px;font:.85em/1.6 SFMono-Regular,Consolas,monospace}.prose pre{border:1px solid var(--line);border-radius:6px;margin:25px 0;padding:39px 22px 22px;font:12px/1.9 SFMono-Regular,Consolas,monospace;position:relative;overflow-x:auto}.prose pre:before{content:attr(data-label);color:var(--muted);font:9px var(--sans);text-transform:uppercase;letter-spacing:1px;position:absolute;top:10px;left:20px}.prose pre code{font:inherit;white-space:pre}.copy-code{font:10px/1.8 var(--sans);border:1px solid var(--line);background:var(--surface);color:var(--muted);border-radius:4px;padding:3px 8px;position:absolute;top:7px;right:10px}[data-theme=dark] .astro-code,[data-theme=dark] .astro-code span{color:var(--shiki-dark)!important;background-color:var(--shiki-dark-bg)!important}.prose .callout{border:1px solid var(--line);border-left:3px solid var(--accent);background:var(--soft);border-radius:4px;margin:25px 0;padding:17px 21px;font-size:14px}.callout-title{margin-bottom:7px;font-weight:600}.callout p:last-child{margin-bottom:0}.callout summary{cursor:pointer}.prose .callout-warning{border-left-color:#b2863c}.prose table{border-collapse:collapse;width:100%;margin:25px 0;font-size:13px;display:block;overflow-x:auto}.prose td,.prose th{border:1px solid var(--line);text-align:left;padding:10px 16px}.prose th{background:var(--soft);font-weight:500}.prose .katex-display{padding:12px 0;font-size:1em;overflow:auto hidden}.prose .katex{font-size:1.1em}.prose .footnotes{border-top:1px solid var(--line);color:var(--muted);margin-top:40px;font-size:12px}.prose .mermaid-source{white-space:pre-wrap;background:var(--surface);font-size:12px}.diagram{border:1px solid var(--line);background:var(--surface);border-radius:6px;margin:28px 0;overflow:hidden}.diagram-toolbar{border-bottom:1px solid var(--line);font:10px/1.5 var(--sans);color:var(--muted);align-items:center;gap:5px;padding:7px 10px;display:flex}.diagram-toolbar>span{letter-spacing:1px;margin-right:auto}.diagram-toolbar button{font:11px var(--sans);border:1px solid var(--line);border-radius:3px;padding:5px 8px}.diagram-viewport{cursor:grab;touch-action:pan-x pan-y;min-height:180px;padding:25px;position:relative;overflow:auto}.diagram-viewport:active{cursor:grabbing}.diagram-canvas{transform-origin:0 0;min-width:100%}.diagram-canvas svg{width:auto;height:auto;margin:0 auto;display:block;max-width:none!important}.diagram:fullscreen{background:var(--surface);flex-direction:column;height:100dvh;display:flex}.diagram:fullscreen .diagram-viewport{flex:1}.diagram-error{color:var(--muted);padding:12px 20px;font-size:13px}.article-end{border-top:1px solid var(--line);color:var(--muted);justify-content:space-between;gap:20px;margin-top:45px;padding:26px 0;font-size:12px;display:flex}.related{margin-top:30px}.related h2{font-size:14px}.related>a{border-bottom:1px solid var(--line);font:17px var(--serif);justify-content:space-between;padding:18px 0;display:flex}.related>a:hover{color:var(--accent)}dialog{color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:0}dialog::backdrop{backdrop-filter:blur(5px);background:#111a13a6}.search-dialog{width:min(680px,100% - 32px);max-height:80dvh;margin:10dvh auto auto}.dialog-header{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;padding:18px 24px;display:flex}.dialog-header h2{font:20px var(--serif);margin:0}.search-content{min-height:200px;padding:24px}.search-content>p{color:var(--muted);font-size:13px}.image-dialog{background:var(--bg);width:96vw;max-width:none;height:94dvh;max-height:none}.viewer-toolbar{border-bottom:1px solid var(--line);color:var(--muted);justify-content:space-between;align-items:center;padding:9px 20px;font-size:11px;display:flex}.image-stage{justify-content:center;align-items:center;height:calc(100% - 100px);padding:20px;display:flex;overflow:auto}.image-stage img{object-fit:contain;cursor:zoom-in;max-width:100%;max-height:100%}.image-stage.zoomed{display:block}.image-stage.zoomed img{cursor:zoom-out;max-width:none;max-height:none}.image-dialog>p{text-align:center;color:var(--muted);margin:5px 20px;font-size:12px}.toast{background:var(--ink);color:var(--bg);z-index:100;border-radius:5px;padding:8px 17px;font-size:12px;position:fixed;bottom:25px;left:50%;transform:translate(-50%)}@keyframes appear{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}@media (width>=1600px){.shell{width:1160px}.home-hero{padding:95px 0}.hero-copy h1{font-size:56px}}@media (width<=1000px){.shell{width:calc(100% - 64px)}.site-header{gap:20px}.site-header nav{gap:25px;margin-right:10px}.home-hero{gap:30px;padding:60px 0}.hero-copy h1{font-size:41px}.hero-note{max-width:285px}.home-content{grid-template-columns:minmax(0,1fr) 205px;gap:40px}.article-grid{grid-template-columns:minmax(0,1fr) 165px;gap:35px}.article-header h1{font-size:33px}}@media (width<=760px){.shell{width:calc(100% - 40px)}.site-header{flex-wrap:wrap;gap:0;min-height:95px;padding:18px 0 0}.brand{gap:9px;font-size:21px}.brand-mark{width:35px;height:37px;font-size:29px}.brand small{letter-spacing:1.8px;margin-top:6px;font-size:7px}.header-tools{gap:9px;margin-left:auto}.tool-divider,kbd{display:none}.site-header nav{order:3;justify-content:center;gap:27px;width:100%;height:44px;margin:7px 0 0}.site-header nav>a{font-size:12px}.site-header nav>a.active:after{bottom:4px}.home-hero{grid-template-columns:1fr;gap:15px;padding:43px 0 37px}.eyebrow{letter-spacing:1.5px;font-size:9px}.hero-copy h1{margin:20px 0 14px;font-size:37px;line-height:1.6}.hero-copy>p{margin-bottom:18px;font-size:12px}.hero-note{display:none}.home-content{grid-template-columns:1fr;gap:40px;margin-top:30px}.home-aside{grid-template-columns:1fr 1fr;gap:20px;display:grid}.aside-section{margin:0;padding:0 0 20px}.subscribe-note{grid-column:1/-1}.aside-section>h2{font-size:15px}.aside-section>p{font-size:11px}.avatar-mark{margin:18px 0 13px}.section-top{padding-bottom:16px}.section-top h2{font-size:15px}.post-card{padding:25px 0}.post-card h2{font-size:21px}.post-card>p{margin-bottom:18px;font-size:12px}.post-card-meta{font-size:10px}.post-tags>a{font-size:9px}.read-link{font-size:10px}.site-footer{align-items:flex-start;margin-top:50px;padding:24px 0}.footer-wordmark{font-size:16px}.site-footer p{font-size:9px}.footer-right small{max-width:150px;font-size:8px;display:block}.footer-right>div{gap:13px}.footer-right a{font-size:9px}.page-heading{padding:42px 0 24px}.page-heading h1{font-size:30px}.page-heading>p{font-size:12px}.archive-row{gap:17px}.archive-row>span{font-size:16px}.tag-grid{grid-template-columns:repeat(2,1fr);gap:12px}.tag-grid>a{padding:20px}.tag-grid h2{font-size:21px}.article-grid{display:block}.article-toc{display:none}.article-header{margin-bottom:26px;padding-top:28px}.article-header h1{font-size:29px}.article-description{font-size:13px}.article-meta{font-size:10px}.prose{font-size:15px;line-height:2}.prose h2{font-size:23px}.prose h3{font-size:19px}.prose pre{padding-inline:15px;font-size:11px}.article-end{font-size:10px}.article-end .text-link{font-size:11px}.diagram-viewport{padding:15px}.diagram-toolbar{gap:3px}.diagram-toolbar button{padding:5px 6px;font-size:10px}.viewer-toolbar>span{max-width:75%;font-size:10px}.not-found h1{font-size:34px}.search-content{padding:17px}}@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,:before,:after{transition:none!important;animation:none!important}}
