.post-content h1,.post-content h2,.post-content h3,.post-content h4{scroll-margin-top:72px}:root{--primary-color: #3b82f6;--primary-hover: #2563eb;--secondary-color: #64748b;--bg-color: #f8fafc;--surface-color: #ffffff;--surface-hover: #f1f5f9;--text-primary: #0f172a;--text-secondary: #475569;--text-tertiary: #94a3b8;--border-color: #e2e8f0;--code-bg: #1e293b;--code-text: #e2e8f0;--spacing-xs: .25rem;--spacing-sm: .5rem;--spacing-md: 1rem;--spacing-lg: 1.5rem;--spacing-xl: 2rem;--spacing-2xl: 3rem;--font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--font-mono: "JetBrains Mono", "Fira Code", Consolas, Monaco, "Andale Mono", monospace;--shadow-sm: 0 1px 2px 0 rgb(0 0 0 / .05);--shadow-md: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--radius-sm: .375rem;--radius-md: .5rem;--radius-lg: .75rem}@media (prefers-color-scheme: dark){:root{--bg-color: #0f172a;--surface-color: #1e293b;--surface-hover: #334155;--text-primary: #f8fafc;--text-secondary: #cbd5e1;--text-tertiary: #64748b;--border-color: #334155}}*{margin:0;padding:0;box-sizing:border-box}body{font-family:var(--font-sans);line-height:1.6;color:var(--text-primary);background-color:var(--bg-color);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{color:#06c;text-decoration:none;transition:color .2s ease}a:hover{color:#049}.layout{min-height:100vh;display:flex;flex-direction:column;background-color:var(--bg-color)}.main{flex:1;max-width:1200px;margin:0 auto;padding:var(--spacing-xl) var(--spacing-md);width:100%}.header{background:#fffc;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-bottom:1px solid var(--border-color);position:sticky;top:0;z-index:100}@media (prefers-color-scheme: dark){.header{background:#0f172acc}}.nav{max-width:1200px;margin:0 auto;padding:0 var(--spacing-md);display:flex;justify-content:space-between;align-items:center;height:64px}.logo{display:flex;align-items:center;gap:var(--spacing-sm);text-decoration:none;color:var(--text-primary);font-weight:700;font-size:1.25rem;transition:opacity .2s}.logo:hover{opacity:.8}.logo-icon{display:flex;align-items:center;justify-content:center;width:32px;height:32px;background:var(--primary-color);border-radius:var(--radius-md);padding:4px}.logo-icon img{width:100%;height:100%;filter:brightness(0) invert(1)}.nav-links{display:flex;list-style:none;gap:var(--spacing-lg)}.nav-links a{color:var(--text-secondary);font-weight:500;font-size:.95rem;padding:.5rem 0;transition:color .2s ease;position:relative}.nav-links a:hover,.nav-links a.active{color:var(--primary-color)}.nav-links a.active:after{content:"";position:absolute;bottom:0;left:0;width:100%;height:2px;background-color:var(--primary-color);border-radius:2px}.footer{background:var(--surface-color);border-top:1px solid var(--border-color);padding:var(--spacing-2xl) var(--spacing-md);margin-top:auto}.footer-content{max-width:1200px;margin:0 auto;display:flex;flex-direction:column;align-items:center;gap:var(--spacing-md);text-align:center}.footer-logo{font-weight:700;font-size:1.25rem;color:var(--text-primary)}.footer-desc{color:var(--text-secondary);max-width:400px;font-size:.95rem}.footer-links{color:var(--text-tertiary);font-size:.875rem;margin-top:var(--spacing-md)}.hero-section{display:flex;align-items:center;justify-content:space-between;gap:var(--spacing-2xl);padding:var(--spacing-2xl) 0;margin-bottom:var(--spacing-2xl)}@media (max-width: 768px){.hero-section{flex-direction:column-reverse;text-align:center;padding:var(--spacing-xl) 0}}.hero-content{flex:1}.hero-title{font-size:clamp(2.5rem,6vw,4rem);line-height:1.1;font-weight:800;color:var(--text-primary);margin-bottom:var(--spacing-lg);letter-spacing:-.03em}.hero-title .highlight{color:var(--primary-color);position:relative;display:inline-block}.hero-title .highlight:after{content:"";position:absolute;bottom:.1em;left:0;width:100%;height:.3em;background:var(--primary-color);opacity:.2;z-index:-1;border-radius:4px}.hero-subtitle{font-size:1.25rem;color:var(--text-secondary);margin-bottom:var(--spacing-xl);max-width:500px;line-height:1.6}@media (max-width: 768px){.hero-subtitle{margin-left:auto;margin-right:auto}}.hero-actions{display:flex;gap:var(--spacing-md);flex-wrap:wrap}@media (max-width: 768px){.hero-actions{justify-content:center}}.btn{display:inline-flex;align-items:center;justify-content:center;padding:.75rem 1.5rem;border-radius:var(--radius-md);font-weight:600;transition:all .2s ease;font-size:1rem}.btn-primary{background:var(--primary-color);color:#fff}.btn-primary:hover{background:var(--primary-hover);transform:translateY(-2px);box-shadow:var(--shadow-md)}.btn-secondary{background:var(--surface-color);border:1px solid var(--border-color);color:var(--text-primary)}.btn-secondary:hover{background:var(--surface-hover);border-color:var(--text-tertiary)}.hero-visual{flex:1;display:flex;justify-content:center;align-items:center}.hero-card{transform:rotate(-3deg);transition:transform .3s ease}.hero-card:hover{transform:rotate(0) scale(1.02)}.section-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:var(--spacing-xl)}.section-header h2{font-size:2rem;font-weight:700;color:var(--text-primary);letter-spacing:-.02em}.view-all-link{color:var(--primary-color);font-weight:600;transition:color .2s ease}.view-all-link:hover{color:var(--primary-hover);text-decoration:underline}.post-list h1{margin-bottom:var(--spacing-xl);font-size:2rem;color:var(--text-primary);font-weight:700;letter-spacing:-.02em}.posts-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:var(--spacing-xl);margin-bottom:var(--spacing-2xl)}.post-card{background:var(--surface-color);border:1px solid var(--border-color);border-radius:var(--radius-lg);overflow:hidden;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;height:100%}.post-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-lg);border-color:var(--primary-color)}.post-link{display:flex;flex-direction:column;height:100%;color:inherit}.post-card-image-container{width:100%;aspect-ratio:16 / 9;overflow:hidden;background:var(--surface-hover);position:relative}.post-card-image{width:100%;height:100%;object-fit:cover;transition:transform .3s ease}.post-card:hover .post-card-image{transform:scale(1.05)}.post-card-placeholder{width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:linear-gradient(45deg,var(--surface-hover),var(--border-color));color:var(--text-tertiary);font-weight:600}.post-card-content{padding:var(--spacing-lg);flex:1;display:flex;flex-direction:column}.post-meta{display:flex;align-items:center;gap:var(--spacing-sm);margin-bottom:var(--spacing-sm);font-size:.875rem;color:var(--text-tertiary)}.post-date{font-family:var(--font-mono)}.post-tag{background:var(--surface-hover);color:var(--primary-color);padding:2px 8px;border-radius:var(--radius-sm);font-size:.75rem;font-weight:600;text-transform:uppercase}.post-title{font-size:1.25rem;margin-bottom:var(--spacing-sm);color:var(--text-primary);line-height:1.4;font-weight:700}.post-description{color:var(--text-secondary);margin-bottom:var(--spacing-lg);line-height:1.6;font-size:.95rem;display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;flex:1}.post-footer{margin-top:auto;display:flex;align-items:center}.read-more{font-size:.875rem;font-weight:600;color:var(--primary-color);display:flex;align-items:center;gap:4px}.view-more{text-align:center;margin-top:var(--spacing-2xl)}.view-more-link{display:inline-flex;align-items:center;justify-content:center;padding:var(--spacing-sm) var(--spacing-xl);background:var(--surface-color);border:1px solid var(--border-color);border-radius:var(--radius-md);color:var(--text-primary);font-weight:600;transition:all .2s ease}.view-more-link:hover{background:var(--surface-hover);border-color:var(--text-tertiary)}.post-page{max-width:100%}.post-layout{display:flex;gap:var(--spacing-2xl);align-items:flex-start}.post-main{flex:1;min-width:0}.post-sidebar{width:300px;position:sticky;top:80px;flex-shrink:0}@media (max-width: 1024px){.post-sidebar{display:none}}.post-header{margin-bottom:var(--spacing-2xl);text-align:center}.post-header-content{max-width:800px;margin:0 auto var(--spacing-xl)}.post-meta-top{display:flex;align-items:center;justify-content:center;gap:var(--spacing-md);margin-bottom:var(--spacing-md);flex-wrap:wrap}.post-header .post-title{font-size:clamp(2rem,5vw,3rem);margin-bottom:var(--spacing-md);line-height:1.2;font-weight:800;letter-spacing:-.02em;color:var(--text-primary)}.post-author-line{display:flex;align-items:center;justify-content:center;gap:var(--spacing-xs);color:var(--text-secondary);font-size:.95rem}.author-label{color:var(--text-tertiary)}.post-image-container{width:100%;border-radius:var(--radius-lg);overflow:hidden;box-shadow:var(--shadow-lg);margin-bottom:var(--spacing-xl)}.post-image{width:100%;height:auto;display:block}.post-content{background:var(--surface-color);padding:var(--spacing-2xl);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm);border:1px solid var(--border-color)}@media (max-width: 768px){.post-content{padding:var(--spacing-lg)}}.html-content{line-height:1.8;font-size:1.05rem;color:var(--text-secondary)}.html-content h1,.html-content h2,.html-content h3,.html-content h4{color:var(--text-primary);font-weight:700;line-height:1.3;margin-top:2.5rem;margin-bottom:1rem;letter-spacing:-.01em}.html-content h1{font-size:2.25rem;border-bottom:1px solid var(--border-color);padding-bottom:.5rem}.html-content h2{font-size:1.75rem}.html-content h3{font-size:1.5rem}.html-content h4{font-size:1.25rem}.html-content p{margin-bottom:1.5rem}.html-content code{background:var(--surface-hover);padding:.2em .4em;border-radius:var(--radius-sm);font-family:var(--font-mono);font-size:.85em;color:var(--primary-color);border:1px solid var(--border-color)}.html-content pre{background:var(--code-bg)!important;color:var(--code-text);padding:1.5rem;border-radius:var(--radius-md);overflow-x:auto;margin:2rem 0;font-family:var(--font-mono);line-height:1.6;font-size:.9rem;border:1px solid var(--border-color)}.html-content pre code{background:transparent;padding:0;color:inherit;border:none;font-size:inherit}.html-content blockquote{border-left:4px solid var(--primary-color);background:var(--surface-hover);padding:1.5rem;margin:2rem 0;border-radius:0 var(--radius-md) var(--radius-md) 0;font-style:italic;color:var(--text-secondary)}.html-content blockquote:before{content:none}.html-content ul,.html-content ol{margin:1.5rem 0;padding-left:2rem}.html-content li{margin-bottom:.5rem}.html-content a{color:var(--primary-color);text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:2px;text-decoration-color:#3b82f64d;transition:all .2s ease}.html-content a:hover{text-decoration-color:var(--primary-color);color:var(--primary-hover)}.html-content img{max-width:100%;height:auto;border-radius:var(--radius-md);margin:2rem 0;box-shadow:var(--shadow-md)}.html-content table{width:100%;border-collapse:collapse;margin:2rem 0;border:1px solid var(--border-color);border-radius:var(--radius-md);overflow:hidden}.html-content th,.html-content td{padding:1rem;text-align:left;border-bottom:1px solid var(--border-color)}.html-content th{background:var(--surface-hover);font-weight:600;color:var(--text-primary)}.html-content hr{border:none;border-top:1px solid var(--border-color);margin:3rem 0}.html-content pre .shiki{background:transparent!important;color:inherit}.html-content pre .shiki code{background:transparent!important;color:inherit;padding:0}.html-content pre.shiki,.html-content pre:has(.shiki){background:#1e1e1e!important}.html-content .language-javascript,.html-content .language-js{border-left-color:#f7df1e}.html-content .language-typescript,.html-content .language-ts{border-left-color:#3178c6}.html-content .language-jsx,.html-content .language-tsx{border-left-color:#61dafb}.html-content .language-bash,.html-content .language-sh,.html-content .language-shell{border-left-color:#4eaa25}.html-content .language-css{border-left-color:#1572b6}.html-content .language-html{border-left-color:#e34f26}.html-content .language-python,.html-content .language-py{border-left-color:#3776ab}.html-content .language-json{border-left-color:#000}.html-content .language-java{border-left-color:#ed8b00}.html-content .language-go{border-left-color:#00add8}.html-content .language-rust{border-left-color:#dea584}.html-content pre .shiki{background:transparent!important}.html-content pre .shiki code{background:transparent;color:inherit}.code-block-wrapper{position:relative;margin:1rem 0}.code-block-wrapper pre{margin:0;padding-top:2.75rem}.copy-button{position:absolute;top:.75rem;right:.75rem;background:#0f172a40;border:1px solid rgba(148,163,184,.25);color:#e2e8f0;padding:.45rem .75rem;border-radius:6px;font-size:.8rem;cursor:pointer;transition:all .2s ease;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);font-family:inherit;display:inline-flex;align-items:center;gap:.35rem;z-index:10;line-height:1}.copy-button:hover:not([disabled]){background:#0f172a59;border-color:#94a3b866;transform:translateY(-1px)}.copy-button:active:not([disabled]){transform:translateY(0)}.copy-button:focus-visible{outline:2px solid rgba(96,165,250,.75);outline-offset:2px}.copy-button[disabled]{cursor:not-allowed;opacity:.6}.copy-button.is-success{background:#22c55e2e;border-color:#22c55e73;color:#4ade80}.copy-button.is-error{background:#f871712e;border-color:#f8717173;color:#f87171}.copy-button.is-info{background:#60a5fa2e;border-color:#60a5fa73;color:#93c5fd}.copy-button-text{display:inline-block}.copy-button-icon{width:14px;height:14px;fill:currentColor}.copy-feedback{position:absolute;top:3.05rem;right:.75rem;font-size:.75rem;color:#f8fafc;background:#0f172aeb;padding:.3rem .6rem;border-radius:9999px;opacity:0;transform:translateY(-6px);transition:opacity .2s ease,transform .2s ease;pointer-events:none;z-index:9;box-shadow:0 4px 12px #0f172a59;max-width:calc(100% - 1.5rem);text-align:right}.copy-feedback.is-visible{opacity:1;transform:translateY(0)}.copy-feedback.is-success{background:#22c55ed9;color:#022c22}.copy-feedback.is-error{background:#f87171e6;color:#450a0a}.copy-feedback.is-info{background:#3b82f6e6;color:#0b1120}@media (max-width: 640px){.code-block-wrapper pre{padding-top:2.5rem}.copy-button{top:.5rem;right:.5rem;padding:.4rem .65rem;font-size:.75rem}.copy-feedback{top:2.85rem;right:.5rem;font-size:.7rem}}.tags-page h1{margin-bottom:var(--spacing-lg);font-size:2.5rem;color:var(--text-primary);font-weight:700}.tags-page>p{margin-bottom:var(--spacing-2xl);color:var(--text-secondary);font-size:1.1rem}.tags-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:1rem}.tag-card{background:#fff;padding:1.5rem;border-radius:8px;box-shadow:0 2px 8px #0000001a;text-align:center;transition:transform .2s ease,box-shadow .2s ease;color:inherit}.tag-card:hover{transform:translateY(-2px);box-shadow:0 4px 16px #00000026}.tag-card h3{color:#06c;margin-bottom:.5rem;font-size:1.1rem}.tag-card p{color:#666;font-size:.9rem}.tag-header{margin-bottom:2rem;text-align:center}.tag-header h1{color:#06c;font-size:2.5rem;margin-bottom:.5rem}.tag-header p{color:#666;font-size:1.1rem}.not-found-page{text-align:center;padding:4rem 0}.not-found-content h1{font-size:6rem;color:#ddd;margin-bottom:1rem;font-weight:900}.not-found-content h2{font-size:2rem;margin-bottom:1rem;color:#333}.not-found-content p{color:#666;margin-bottom:2rem;font-size:1.1rem}.not-found-actions{display:flex;gap:1rem;justify-content:center;flex-wrap:wrap}.btn-primary,.btn-secondary{padding:1rem 2rem;border-radius:6px;font-weight:600;transition:all .2s ease}.btn-primary{background:#06c;color:#fff}.btn-primary:hover{background:#049;color:#fff}.btn-secondary{background:#f8f9fa;color:#333;border:1px solid #ddd}.btn-secondary:hover{background:#e9ecef;color:#333}.loading{text-align:center;padding:2rem;color:#666}.top{display:flex;justify-content:center;align-items:center;margin-bottom:2rem}.bounce-image{animation:sparkle 10s infinite;position:relative;filter:drop-shadow(0 0 10px rgba(255,215,0,.3))}@keyframes bounce{0%,20%,50%,80%,to{transform:translateY(0)}40%{transform:translateY(-30px)}60%{transform:translateY(-15px)}}@keyframes sparkle{0%,to{filter:drop-shadow(0 0 10px rgba(255,215,0,.3)) hue-rotate(0deg)}25%{filter:drop-shadow(0 0 20px rgba(255,215,0,.6)) hue-rotate(90deg)}50%{filter:drop-shadow(0 0 30px rgba(255,215,0,.8)) hue-rotate(180deg)}75%{filter:drop-shadow(0 0 20px rgba(255,215,0,.6)) hue-rotate(270deg)}}@media (max-width: 768px){.nav{flex-direction:column;height:auto;padding:1rem}.nav-links{margin-top:1rem;gap:1rem}.main{padding:2rem 0}.hero h1{font-size:2rem}.hero p{font-size:1rem}.hero{width:100%}.posts-grid{grid-template-columns:1fr}.post-header .post-title{font-size:2rem}.post-header .post-meta{flex-direction:column;gap:.5rem}.post-content{padding:2rem;width:100%;box-shadow:none}.mdx-h1{font-size:1.5rem}.mdx-h2{font-size:1.3rem}.mdx-pre{font-size:.8rem}.not-found-content h1{font-size:4rem}.not-found-actions{flex-direction:column;align-items:center}.tags-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}.top{flex-wrap:wrap}.main>div{padding:10px}}.post-layout{display:grid;grid-template-columns:1fr 280px;gap:2.5rem;align-items:start}.post-main{min-width:0}.post-sidebar{position:relative}.post-sidebar .sidebar{position:sticky;top:88px;max-height:calc(100vh - 100px);overflow-y:auto;padding:1.25rem 1rem 2rem;background:#fff;border:1px solid #e5e7eb;border-radius:12px;box-shadow:0 4px 12px #0000000d;display:flex;flex-direction:column;gap:1.75rem}.post-sidebar .sidebar::-webkit-scrollbar{width:8px}.post-sidebar .sidebar::-webkit-scrollbar-track{background:transparent}.post-sidebar .sidebar::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:4px}.post-sidebar .sidebar::-webkit-scrollbar-thumb:hover{background:#94a3b8}.sidebar-heading{font-size:.95rem;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:#475569;margin-bottom:.5rem}.sidebar-list{list-style:none;display:flex;flex-direction:column;gap:.35rem;font-size:.9rem}.sidebar-list li a{display:block;padding:.5rem .6rem;border-radius:6px;color:#334155;background:transparent;transition:background .15s ease,color .15s ease,box-shadow .15s ease;outline:none}.sidebar-list li a:hover{background:#f1f5f9;color:#0f172a}.sidebar-list li.active>a,.sidebar-list li a[aria-current=true]{background:#e0f2fe;color:#0369a1;font-weight:600;box-shadow:0 0 0 1px #38bdf8 inset}.sidebar-tags li a:before{content:"#";opacity:.5;margin-right:2px}.sidebar-months li a{font-variant-numeric:tabular-nums}.sidebar-list li a:focus-visible{box-shadow:0 0 0 2px #0ea5e9,0 0 0 4px #bae6fd;background:#f0f9ff}@media (max-width: 1100px){.post-layout{grid-template-columns:1fr 260px;gap:2rem}}@media (max-width: 920px){.post-layout{grid-template-columns:1fr 240px}.post-sidebar .sidebar{top:80px}}@media (max-width: 860px){.post-layout{display:block}.post-sidebar{display:none}}.post-sidebar .sidebar{animation:fadeInSidebar .25s ease}@keyframes fadeInSidebar{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}.post-layout .post-article{max-width:840px}.post-nav{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-top:2rem}.post-nav .prev-post,.post-nav .next-post{min-width:140px;text-align:center}.unified-sidebar{position:sticky;top:88px;max-height:70vh;overflow-y:auto;padding:1.25rem 1rem 2rem;background:#fff;border:1px solid #e5e7eb;border-radius:12px;box-shadow:0 4px 12px #0000000d;display:flex;flex-direction:column;gap:1.75rem;animation:fadeInSidebar .25s ease}.unified-sidebar .toc-list .level-2 a{padding-left:1.25rem}.unified-sidebar .toc-list .level-3 a{padding-left:2rem;font-size:.78rem}.unified-sidebar .toc-item.active>a{background:#e0f2fe;color:#0369a1;font-weight:600;box-shadow:0 0 0 1px #38bdf8 inset}.unified-sidebar .toc-list{overflow-anchor:none}.unified-sidebar .sidebar-heading-row{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.unified-sidebar .collapse-btn{background:transparent;border:none;cursor:pointer;font-size:1rem;line-height:1;padding:.25rem .4rem;border-radius:4px}.unified-sidebar .collapse-btn:hover{background:#f1f5f9}.unified-sidebar .filter-wrapper{margin:0 0 .5rem}.unified-sidebar .filter-input{width:100%;padding:.4rem .5rem;font-size:.75rem;border:1px solid #e2e8f0;border-radius:6px}.unified-sidebar .filter-input:focus{outline:2px solid #38bdf8;outline-offset:2px}.unified-sidebar .empty-placeholder{font-size:.75rem;opacity:.6;padding:.25rem .4rem}.unified-progress{position:relative;height:6px;background:#f1f5f9;border-radius:4px;margin-bottom:1rem;overflow:hidden}.unified-progress-bar{position:absolute;top:0;left:0;bottom:0;background:linear-gradient(90deg,#0ea5e9,#2563eb);transition:width .15s ease}@media (max-width: 860px){.unified-sidebar{display:none}}@media (min-width: 861px){.post-layout{grid-template-columns:1fr}.post-layout .post-main{margin-right:300px}.post-sidebar{display:contents}.unified-sidebar{position:fixed;top:88px;right:max(1rem,calc((100vw - 1200px)/2));width:280px;height:70vh;max-height:none;overflow-y:auto}}
