:root{color-scheme:light;--accent:#2799df;--accent-strong:#147bbd;--page:#f4f7fb;--panel:#fff;--ink:#25384b;--muted:#788796;--line:#e7edf4;--shadow:0 5px 20px #233a5710;--code:#202a3a;--radius:16px}
html[data-theme=dark]{color-scheme:dark;--accent:#62bcf3;--accent-strong:#90d0f7;--page:#121b26;--panel:#1c2836;--ink:#e6edf6;--muted:#9daec0;--line:#2b3b4c;--shadow:0 5px 20px #0002;--code:#111c29}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:90px}body{margin:0;background:var(--page);color:var(--ink);font-family:"Microsoft YaHei","PingFang SC",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:15px;line-height:1.75;transition:background .25s,color .25s}a{color:inherit;text-decoration:none}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:default}button,a,input{ -webkit-tap-highlight-color:transparent}a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #49b1f580;outline-offset:4px}button{color:inherit}svg{width:19px;height:19px;flex-shrink:0}img{max-width:100%}p,h1,h2,h3{margin-top:0}[hidden]{display:none!important}::selection{background:#49b1f54d}::-webkit-scrollbar{width:8px;height:7px}::-webkit-scrollbar-thumb{background:#9abbd0;border-radius:8px}::-webkit-scrollbar-track{background:transparent}
.site-header{position:sticky;top:0;z-index:30;background:var(--panel);border-bottom:1px solid var(--line)}.header-inner{max-width:1200px;margin:auto;padding:13px 24px;display:flex;justify-content:space-between;align-items:center;gap:24px}.site-brand{display:flex;align-items:center;gap:11px;min-width:0;font-size:17px;font-weight:700;letter-spacing:.01em}.site-brand img{padding:3px;background:#eaf6ff;border-radius:12px;object-fit:contain;flex-shrink:0}.site-header nav{display:flex;align-items:center;gap:31px;font-size:14px;white-space:nowrap}.site-header nav a{transition:color .2s}.site-header nav a:hover{color:var(--accent)}.icon-button{border:0;display:grid;place-items:center;background:var(--page);border-radius:11px;width:35px;height:35px;transition:background .2s,color .2s}.icon-button:hover{background:#49b1f524;color:var(--accent)}
.hero{position:relative;min-height:390px;overflow:hidden;color:#fff;isolation:isolate}.hero-background{position:absolute;inset:-15px;background:linear-gradient(105deg,#053c59aa,#0e59614f),url('/assets/hero.webp') center 43%/cover no-repeat;z-index:-2;animation:hero-drift 28s ease-in-out infinite alternate}.hero:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#093c4230,transparent 70%);z-index:-1}.hero-content{max-width:1050px;padding:64px 24px 82px;margin:auto;text-align:center}.hero-eyebrow{margin-bottom:13px;letter-spacing:.12em;font-size:13px;color:#e2f5ff}.hero h1{font-size:clamp(28px,4.5vw,46px);font-weight:700;letter-spacing:.025em;line-height:1.4;margin-bottom:13px;text-shadow:0 2px 16px #07344560}.hero-description{font-size:17px;color:#effaff;margin-bottom:25px;letter-spacing:.05em}.hero-actions{display:flex;justify-content:center;gap:13px}.hero-button{padding:10px 20px;border-radius:10px;display:flex;align-items:center;justify-content:center;gap:8px;font-size:14px;transition:transform .2s,background .2s}.hero-button:hover{transform:translateY(-3px)}.hero-button.primary{color:#17678b;background:#fff;box-shadow:0 6px 16px #08344b30}.hero-button.secondary{color:#fff;border:1px solid #ffffff70;background:#ffffff12;backdrop-filter:blur(6px)}.hero-waves{position:absolute;bottom:-2px;left:0;width:100%;height:48px}.hero-waves svg{width:100%;height:100%}.hero-waves use{animation:wave-drift 18s cubic-bezier(.55,.5,.45,.5) infinite;fill:var(--page)}.hero-waves use:nth-child(1){opacity:.3;animation-delay:-2s;animation-duration:9s}.hero-waves use:nth-child(2){opacity:.4;animation-delay:-3s;animation-duration:12s}.hero-waves use:nth-child(3){opacity:.6;animation-delay:-4s;animation-duration:15s}.hero-waves use:nth-child(4){animation-delay:-5s;animation-duration:20s}.hero-orbs i{position:absolute;left:10%;top:20%;width:11px;height:11px;background:#fff7;border-radius:50%;box-shadow:0 0 20px #fff6;animation:orb-float 8s ease-in-out infinite;pointer-events:none}.hero-orbs i:nth-child(2){left:84%;top:30%;width:7px;height:7px;animation-delay:-3s}.hero-orbs i:nth-child(3){left:75%;top:70%;width:5px;height:5px;animation-delay:-5s}
.home-layout{max-width:1200px;padding:35px 24px 68px;margin:auto;display:grid;grid-template-columns:minmax(0,1fr) 274px;gap:27px;align-items:start}.notes-column,.article-column{min-width:0}.notes-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}.section-eyebrow{font-size:12px;letter-spacing:.025em;color:var(--muted);margin-bottom:4px}.notes-heading h2{font-size:24px;margin:0;line-height:1.55;display:flex;align-items:center;gap:11px}.notes-heading h2 span{font-size:12px;font-weight:400;color:var(--muted);padding:2px 9px;background:var(--panel);border:1px solid var(--line);border-radius:20px}.search-field{width:270px;max-width:45%;display:flex;align-items:center;gap:9px;border:1px solid var(--line);background:var(--panel);padding:10px 13px;border-radius:11px;box-shadow:0 2px 7px #233a5705;color:var(--muted)}.search-field input{border:0;background:none;color:var(--ink);outline:none;width:100%;font-size:13px;min-width:0}.search-field:focus-within{border-color:#49b1f580;box-shadow:0 0 0 3px #49b1f510}.search-field input:focus-visible{outline:none}.search-field input::placeholder{color:var(--muted)}.category-filter{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:6px;scroll-margin-top:95px}.category-button{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:9px;background:var(--panel);padding:6px 11px;font-size:12px;transition:background .2s,color .2s,border-color .2s}.category-button span{font-size:11px;opacity:.7}.category-button:hover{border-color:var(--accent);color:var(--accent)}.category-button.active{background:var(--accent);color:#fff;border-color:var(--accent)}.search-status{font-size:12px;color:var(--muted);margin:11px 0 14px}.notes-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.panel{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.note-card{overflow:hidden;transition:transform .28s,box-shadow .28s,border-color .28s;animation:card-enter .5s both}.note-card:nth-child(2n){animation-delay:.06s}.note-card:hover{transform:translateY(-5px);box-shadow:0 12px 30px #1b668c20;border-color:#49b1f560}.note-cover{height:125px;position:relative;display:flex;align-items:center;overflow:hidden;padding:25px;color:#fff;background:linear-gradient(120deg,var(--cover-start),var(--cover-end));isolation:isolate}.cover-grid{position:absolute;inset:0;background-image:linear-gradient(#ffffff12 1px,transparent 1px),linear-gradient(90deg,#ffffff12 1px,transparent 1px);background-size:23px 23px;transform:skew(-12deg) scale(1.4);z-index:-1}.cover-code{font-family:"Segoe UI",Arial,sans-serif;font-size:28px;font-weight:650;letter-spacing:-.03em;max-width:90%;line-height:1.1;text-shadow:0 1px 8px #0001;z-index:1}.cover-number{position:absolute;right:17px;bottom:12px;font-family:monospace;font-size:11px;letter-spacing:.1em;opacity:.7}.cover-braces{position:absolute;right:21px;top:9px;opacity:.13;font-size:85px;line-height:1;font-family:monospace;transition:transform .5s}.note-card:hover .cover-braces{transform:rotate(9deg) translateX(-8px)}.note-card-content{padding:19px 21px 18px}.note-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;color:var(--muted);margin-bottom:9px}.note-meta span{color:var(--accent-strong);font-weight:500}.note-card h3{font-size:17px;line-height:1.6;margin-bottom:8px;min-height:27px}.note-card h3 a{transition:color .2s}.note-card h3 a:hover{color:var(--accent-strong)}.note-card-content>p{font-size:13px;color:var(--muted);line-height:1.8;margin-bottom:18px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:46px;overflow-wrap:anywhere}.note-card-bottom{border-top:1px solid var(--line);padding-top:13px;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:11px;color:var(--muted)}.note-card-bottom a{display:flex;align-items:center;gap:6px;color:var(--accent-strong);font-size:12px}.note-card-bottom svg{width:15px;height:15px}.search-empty{text-align:center;padding:45px 20px}.search-empty>svg{width:32px;height:32px;color:var(--accent);margin-bottom:12px}.search-empty h3{font-size:18px;margin-bottom:6px}.search-empty p{color:var(--muted);font-size:13px}.search-empty button{border:0;border-radius:9px;background:var(--accent);color:#fff;padding:9px 18px}
.home-sidebar{padding-top:2px;display:grid;gap:20px}.profile-card{overflow:hidden;position:relative;scroll-margin-top:90px}.profile-backdrop{height:72px;background:linear-gradient(115deg,#c7eaff,#d8f4e9);position:relative}.profile-backdrop:after{content:"";position:absolute;width:120px;height:120px;border:1px solid #ffffff80;border-radius:50%;right:-35px;top:-38px}.profile-avatar{position:absolute;top:37px;left:24px;width:65px;height:65px;display:grid;place-items:center;border:5px solid var(--panel);border-radius:50%;background:linear-gradient(140deg,#3ea1e2,#247da5);color:#fff;font-size:27px;font-weight:700;box-shadow:0 3px 10px #276d9515;transition:transform .3s}.profile-avatar:hover{transform:rotate(-10deg)}.profile-content{padding:41px 23px 23px}.profile-eyebrow{font-size:11px;color:var(--muted);margin-bottom:3px}.profile-content h2{font-size:21px;margin-bottom:12px}.profile-content>p:not(.profile-eyebrow){font-size:13px;line-height:1.9;color:var(--muted);margin-bottom:16px}.interest-tags{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:20px}.interest-tags span,.article-tags span{padding:3px 8px;font-size:11px;background:#49b1f512;color:var(--accent-strong);border-radius:6px}.profile-stats{display:grid;grid-template-columns:1fr 1fr;text-align:center;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:13px 0;margin-bottom:18px}.profile-stats a{display:flex;flex-direction:column;gap:2px}.profile-stats a:first-child{border-right:1px solid var(--line)}.profile-stats strong{font-size:21px;line-height:1.35}.profile-stats span{font-size:11px;color:var(--muted)}.email-button{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;font-size:12px;padding:10px 12px;border-radius:9px;background:var(--accent);color:#fff;transition:background .2s,transform .2s}.email-button:hover{background:var(--accent-strong);transform:translateY(-2px)}.email-button svg{width:16px;height:16px}.shelf-card{padding:21px 23px}.shelf-card h2{font-size:16px;margin:5px 0 16px}.shelf-card ul{list-style:none;padding:0;margin:0;color:var(--muted);font-size:12px}.shelf-card li{display:flex;align-items:center;gap:9px;margin:11px 0}.shelf-dot{width:6px;height:6px;border-radius:50%;background:var(--accent);flex-shrink:0}.shelf-footnote{border-top:1px solid var(--line);padding-top:13px;margin:16px 0 0;font-size:11px;color:var(--muted)}
.site-footer{padding:29px 24px 32px;border-top:1px solid var(--line);text-align:center;color:var(--muted);font-size:12px;background:var(--panel)}.site-footer p{margin:0 0 5px}.site-footer p:last-child{margin:0}.site-footer a:hover{color:var(--accent-strong)}.footer-dot{padding:0 9px;opacity:.5}.back-to-top{position:fixed;right:25px;bottom:27px;width:39px;height:39px;display:grid;place-items:center;background:var(--accent);color:#fff;border:0;border-radius:10px;box-shadow:0 4px 14px #2799df30;opacity:0;pointer-events:none;transform:translateY(12px);transition:opacity .2s,transform .2s;z-index:25}.back-to-top.visible{opacity:1;pointer-events:auto;transform:translateY(0)}
.article-heading{max-width:1120px;padding:37px 24px 27px;margin:auto}.breadcrumb{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--muted);margin-bottom:20px}.breadcrumb svg{width:15px;height:15px}.breadcrumb:hover{color:var(--accent)}.article-category{font-size:12px;color:var(--accent-strong);margin-bottom:9px}.article-heading h1{font-size:clamp(26px,3.3vw,36px);line-height:1.45;letter-spacing:-.025em;max-width:930px;margin-bottom:14px;overflow-wrap:anywhere}.article-meta{display:flex;align-items:center;gap:10px;font-size:12px;color:var(--muted);flex-wrap:wrap}.article-tags{display:flex;gap:7px;flex-wrap:wrap;margin-top:15px}.article-layout{max-width:1120px;padding:0 24px 65px;margin:auto;display:grid;grid-template-columns:minmax(0,1fr) 235px;gap:25px;align-items:start}.article-paper{padding:33px 38px;overflow:hidden}.note-content{font-size:15px;line-height:1.95;overflow-wrap:anywhere}.note-content h1,.note-content h2,.note-content h3,.note-content h4{line-height:1.5;margin:35px 0 16px;scroll-margin-top:93px}.note-content h1{font-size:26px}.note-content h2{font-size:22px;padding-bottom:9px;border-bottom:1px solid var(--line)}.note-content h3{font-size:18px}.note-content h4{font-size:16px}.note-content>:first-child{margin-top:0}.note-content p{margin-bottom:18px}.note-content li p{margin-bottom:9px}.note-content ul,.note-content ol{padding-left:24px}.note-content li{margin:5px 0}.note-content a{color:var(--accent-strong);text-decoration:underline;text-underline-offset:3px}.note-content blockquote{margin:21px 0;border-left:4px solid var(--accent);padding:14px 18px;background:#49b1f50d;border-radius:0 8px 8px 0;color:var(--muted)}.note-content blockquote p:last-child{margin:0}.note-content img{display:block;margin:22px auto;max-width:100%;height:auto;border-radius:8px}.note-content hr{height:1px;border:0;background:var(--line);margin:31px 0}.note-content table{display:block;border-collapse:collapse;max-width:100%;overflow-x:auto;margin:24px 0;font-size:13px}.note-content th,.note-content td{padding:10px 13px;border:1px solid var(--line);white-space:normal;min-width:85px}.note-content th{background:#49b1f50d}.note-content :not(pre)>code{font-family:Consolas,"Cascadia Code",monospace;font-size:.87em;background:#49b1f50e;color:var(--accent-strong);padding:3px 5px;border-radius:5px;overflow-wrap:anywhere}.code-block{background:var(--code);color:#dce7f4;border-radius:10px;margin:21px 0;overflow:hidden;font-family:Consolas,"Cascadia Code",monospace;line-height:1.65}.code-toolbar{display:flex;align-items:center;justify-content:space-between;padding:9px 15px;background:#ffffff07;border-bottom:1px solid #ffffff0d;font-size:11px;color:#92a6c0}.copy-code{background:transparent;border:0;color:#b7c8db;display:flex;align-items:center;gap:5px;font-size:11px;padding:2px 0}.copy-code svg{width:13px;height:13px}.copy-code:hover{color:#fff}.code-block pre{max-width:100%;overflow-x:auto;margin:0;padding:15px 17px;font-size:12px;tab-size:4}.code-block code{font-family:inherit;white-space:pre}.article-end{border-top:1px dashed var(--line);padding-top:24px;margin-top:40px;display:flex;justify-content:space-between;gap:15px;font-size:12px;color:var(--muted);flex-wrap:wrap}.article-end a{color:var(--accent-strong);display:flex;align-items:center;gap:5px}.article-end svg{width:14px;height:14px}.article-sidebar{position:sticky;top:91px;min-width:0}.toc-card{padding:20px 18px}.toc-card h2{font-size:14px;display:flex;align-items:center;gap:7px;margin-bottom:14px}.toc-card h2 svg{width:16px;height:16px}.toc-nav{display:flex;flex-direction:column;max-height:calc(100vh - 190px);overflow:auto;font-size:12px;gap:2px}.toc-link{padding:6px 8px;border-left:2px solid transparent;line-height:1.7;color:var(--muted);border-radius:0 5px 5px 0;overflow-wrap:anywhere}.toc-link:hover,.toc-link.active{border-color:var(--accent);color:var(--accent-strong);background:#49b1f50d}.toc-link.level-2{padding-left:15px}.toc-link.level-3{padding-left:22px}.related-notes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px;margin-top:21px}.related-card{display:grid;grid-template-columns:1fr 20px;gap:4px 12px;padding:17px 20px;transition:transform .2s,border-color .2s}.related-card:hover{transform:translateY(-3px);border-color:#49b1f580}.related-card span{grid-column:1;font-size:11px;color:var(--muted)}.related-card strong{font-size:13px;font-weight:500;line-height:1.6}.related-card svg{grid-column:2;grid-row:1/3;align-self:center;color:var(--accent)}.reading-progress{position:fixed;top:64px;left:0;width:100%;height:2px;z-index:31;pointer-events:none}.reading-progress span{display:block;height:100%;background:var(--accent);width:0}.not-found{max-width:580px;margin:90px auto;padding:50px 35px;text-align:center;min-height:350px}.not-found h1{font-size:28px}.not-found>p{color:var(--muted)}.not-found .email-button{width:max-content;margin:30px auto 0;padding:11px 22px}
@keyframes wave-drift{0%{transform:translate3d(-90px,0,0)}100%{transform:translate3d(85px,0,0)}}@keyframes hero-drift{from{transform:scale(1.01) translateY(0)}to{transform:scale(1.055) translateY(8px)}}@keyframes orb-float{0%,100%{transform:translateY(0);opacity:.2}50%{transform:translateY(-17px);opacity:.8}}@keyframes card-enter{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:1000px){.home-layout{grid-template-columns:minmax(0,1fr) 250px;gap:20px}.notes-grid{gap:16px}.note-cover{padding:21px}.note-card-content{padding:17px}.notes-heading{align-items:flex-start;flex-direction:column;gap:13px}.search-field{width:100%;max-width:none}.article-layout{grid-template-columns:minmax(0,1fr) 210px;gap:20px}.article-paper{padding:28px}}
@media(max-width:760px){.header-inner{padding:12px 18px;gap:12px;flex-wrap:wrap}.site-brand{font-size:15px;gap:8px}.site-brand img{width:32px;height:32px}.site-header nav{gap:18px;font-size:12px;margin-left:auto}.icon-button{width:30px;height:30px}.hero{min-height:350px}.hero-content{padding:52px 18px 75px}.hero h1{font-size:30px;letter-spacing:0}.hero-eyebrow{font-size:11px;letter-spacing:.055em}.hero-description{font-size:14px;margin-bottom:22px}.hero-actions{gap:10px}.hero-button{font-size:12px;padding:9px 14px}.hero-waves{height:35px}.home-layout{display:flex;flex-direction:column;padding:25px 18px 42px;gap:30px}.notes-column,.home-sidebar{width:100%}.notes-heading{flex-direction:column;align-items:stretch;gap:13px}.notes-heading h2{font-size:22px}.search-field{width:100%;max-width:none}.notes-grid{gap:15px}.note-cover{height:108px;padding:19px}.cover-code{font-size:24px}.note-card h3{font-size:15px}.note-card-content{padding:15px}.note-meta{font-size:10px}.note-card-bottom>span{font-size:10px}.note-card-bottom a{font-size:11px}.home-sidebar{grid-template-columns:1fr 1fr;align-items:start;gap:16px}.profile-content{padding-left:19px;padding-right:19px}.shelf-card{padding:21px 18px}.article-heading{padding:26px 18px 23px}.article-layout{display:flex;flex-direction:column-reverse;padding:0 18px 40px;gap:20px}.article-column,.article-sidebar{width:100%}.article-sidebar{position:static}.toc-card{padding:15px 18px}.toc-nav{max-height:180px}.article-paper{padding:23px 21px}.note-content{font-size:14px}.note-content h1{font-size:23px}.note-content h2{font-size:20px}.code-block pre{font-size:11px;padding:13px}.reading-progress{top:57px}.site-footer{padding:24px 18px;font-size:11px}.back-to-top{right:15px;bottom:17px;width:35px;height:35px}.not-found{margin:45px 18px}}
@media(max-width:500px){.site-header nav{gap:21px;margin-left:40px}.header-inner{row-gap:7px}.site-header{position:relative}.hero h1{font-size:28px;max-width:330px;margin-left:auto;margin-right:auto;line-height:1.5}.hero-content{padding-top:43px}.hero{min-height:338px}.hero-description{max-width:280px;margin-left:auto;margin-right:auto;line-height:1.8}.notes-grid{grid-template-columns:1fr;gap:18px}.note-cover{height:125px;padding:24px}.cover-code{font-size:31px}.note-card-content{padding:19px 21px}.note-card h3{font-size:17px}.note-meta{font-size:11px}.note-card-content>p{min-height:0}.note-card-bottom a{font-size:12px}.note-card-bottom>span{font-size:11px}.home-sidebar{grid-template-columns:1fr}.profile-content{padding-left:23px;padding-right:23px}.profile-content>p:not(.profile-eyebrow){font-size:14px}.shelf-card{padding:23px}.article-heading h1{font-size:26px}.article-paper{padding:22px 19px}.related-notes{grid-template-columns:1fr}.article-end{flex-direction:column;gap:8px}.site-footer p:last-child{display:flex;flex-direction:column;align-items:center;gap:5px}.site-footer p:last-child .footer-dot{display:none}.reading-progress{top:0}.category-button{font-size:11px;padding:6px 10px}.category-filter{gap:7px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important}.hero-background{inset:0}.note-card:hover,.hero-button:hover,.email-button:hover,.related-card:hover{transform:none}}
