:root,[data-theme=light]{--bg-body:#f5f7fa;--bg-nav:#fffffff5;--bg-card:linear-gradient(145deg, #fff 0%, #f0f2f5 100%);--bg-section:#00000005;--bg-code:#0000000a;--bg-tag:#0000000a;--bg-hover:#00000005;--c-heading:#1a1a2e;--c-body:#333340;--c-secondary:#555568;--c-muted:#777790;--c-dim:#8888a0;--c-faint:#aaaabc;--c-ghost:#ccd;--c-nav:#555568;--c-nav-active:#1a1a2e;--c-footer:#999;--c-footer-link:#888;--c-footer-link-h:#333;--b-primary:#00000014;--b-subtle:#0000000d;--b-strong:#0000001f;--b-table:#0000000f;--b-tag:#00000014;--s-card:0 2px 12px #0000000f;--s-nav:0 1px 3px #0000000f;--footer-img-op:.5;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}[data-theme=dark]{--bg-body:#000;--bg-nav:#1c1c1eeb;--bg-card:#1c1c1e;--bg-section:#ffffff0a;--bg-code:#ffffff0f;--bg-tag:#ffffff14;--bg-hover:#ffffff0a;--c-heading:#fff;--c-body:#ebebf5e6;--c-secondary:#ebebf599;--c-muted:#ebebf573;--c-dim:#ebebf54d;--c-faint:#ebebf52e;--c-ghost:#ebebf51a;--c-nav:#ebebf5b8;--c-nav-active:#fff;--c-footer:#ebebf54d;--c-footer-link:#ebebf566;--c-footer-link-h:#fff;--b-primary:#54545880;--b-subtle:#5454584d;--b-strong:#545458a6;--b-table:#54545866;--b-tag:#54545880;--s-card:0 2px 16px #00000080;--s-nav:0 1px 0 #54545899;--footer-img-op:.5;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}html{background:var(--bg-body)}body{background:var(--bg-body);min-height:100vh;color:var(--c-body);margin:0;transition:background-color .2s,color .2s}.portal-shell,.module-shell{flex-direction:column;min-height:100vh;display:flex}.portal-shell__main,.module-shell__main{flex:1}.topbar,.g-nav{background:var(--bg-nav);z-index:1000;box-shadow:var(--s-nav);border-bottom:1px solid var(--b-subtle);flex-wrap:wrap;align-items:center;gap:0;padding:0 16px;display:flex;position:sticky;top:0}.topbar .brand,.g-nav .nav-brand{color:var(--c-heading);white-space:nowrap;align-items:center;gap:8px;margin-right:8px;padding:10px 16px 10px 0;font-size:13px;font-weight:700;line-height:1;text-decoration:none;display:flex}.g-nav .nav-brand{border-right:1px solid var(--b-strong)}.topbar .brand .nav-brand-logo,.g-nav .nav-brand .nav-brand-logo{object-fit:contain;flex-shrink:0;width:22px;height:22px;display:block}.topbar .brand .nav-brand-text,.g-nav .nav-brand .nav-brand-text{align-items:center;min-height:22px;display:inline-flex}.g-nav a{color:var(--c-nav);border-bottom:2px solid #0000;padding:10px 14px;font-size:12px;font-weight:500;text-decoration:none;transition:all .2s}.g-nav a:hover,.g-nav a.active{color:var(--c-nav-active)}.footer{text-align:center;border-top:1px solid var(--b-subtle);color:var(--c-footer);padding:30px 20px;font-size:11px}.footer img{height:28px;opacity:var(--footer-img-op);margin:0 auto 8px;display:block}.footer a{color:var(--c-footer-link);text-decoration:none}.footer a:hover{color:var(--c-footer-link-h)}html[data-theme]:not([data-theme=dark]) body{background:var(--bg-body);color:var(--c-body)}html[data-theme]:not([data-theme=dark]) .topbar{background:var(--bg-nav);border-bottom-color:var(--b-subtle)}html[data-theme]:not([data-theme=dark]) .topbar .brand{color:var(--c-heading)}html[data-theme]:not([data-theme=dark]) .g-nav{background:var(--bg-nav);border-bottom-color:var(--b-subtle);box-shadow:var(--s-nav)}html[data-theme]:not([data-theme=dark]) .g-nav .nav-brand{color:var(--c-heading);border-right-color:var(--b-strong)}html[data-theme]:not([data-theme=dark]) .g-nav a{color:var(--c-nav)}html[data-theme]:not([data-theme=dark]) .g-nav a:hover,html[data-theme]:not([data-theme=dark]) .g-nav a.active{color:var(--c-nav-active)}html[data-theme=light] .hero{background:radial-gradient(at 50% 0,#6482c80f 0%,#0000 70%)}html[data-theme]:not([data-theme=dark]) .hero h1{background:linear-gradient(135deg, var(--c-heading) 0%, var(--page-accent,#3b82f6) 100%);-webkit-text-fill-color:transparent;-webkit-background-clip:text;background-clip:text}html[data-theme]:not([data-theme=dark]) .hero p,html[data-theme]:not([data-theme=dark]) .hero .subtitle{color:var(--c-muted)}html[data-theme]:not([data-theme=dark]) .card{background:var(--bg-card);border-color:var(--b-primary)}html[data-theme]:not([data-theme=dark]) .card:hover{box-shadow:var(--s-card)}html[data-theme]:not([data-theme=dark]) .card h2{color:var(--c-heading)}html[data-theme]:not([data-theme=dark]) .card .desc{color:var(--c-muted)}html[data-theme]:not([data-theme=dark]) .card .tag{background:var(--bg-tag);border-color:var(--b-tag);color:var(--c-dim)}html[data-theme]:not([data-theme=dark]) .card .badge-soon{background:var(--bg-tag);color:var(--c-faint)}html[data-theme]:not([data-theme=dark]) .module-card{background:var(--bg-card);border-color:var(--b-primary)}html[data-theme]:not([data-theme=dark]) .module-card:hover{box-shadow:var(--s-card)}html[data-theme]:not([data-theme=dark]) .module-card h3{color:var(--c-heading)}html[data-theme]:not([data-theme=dark]) .module-card .desc{color:var(--c-muted)}html[data-theme]:not([data-theme=dark]) .knowledge-map{background:var(--bg-section);border-color:var(--b-primary)}html[data-theme]:not([data-theme=dark]) .km-section h4{color:var(--c-secondary)}html[data-theme]:not([data-theme=dark]) .km-item{color:var(--c-muted);border-left-color:var(--b-primary)}html[data-theme]:not([data-theme=dark]) .data-table td,html[data-theme]:not([data-theme=dark]) .compare-table td{color:var(--c-secondary);border-bottom-color:var(--b-table)}html[data-theme]:not([data-theme=dark]) .data-table tr:hover td,html[data-theme]:not([data-theme=dark]) .compare-table tr:hover td{background:var(--bg-hover)}html[data-theme]:not([data-theme=dark]) .chapter{background:var(--bg-section);border-color:var(--b-primary)}html[data-theme]:not([data-theme=dark]) .chapter p,html[data-theme]:not([data-theme=dark]) .chapter li{color:var(--c-secondary)}html[data-theme]:not([data-theme=dark]) .chapter strong{color:var(--c-heading)}html[data-theme]:not([data-theme=dark]) .toc{background:var(--bg-section);border-color:var(--b-primary)}html[data-theme]:not([data-theme=dark]) .toc a{color:var(--c-secondary)}html[data-theme]:not([data-theme=dark]) .arch-diagram{background:var(--bg-code);border-color:var(--b-primary);color:var(--c-secondary)}html[data-theme]:not([data-theme=dark]) .insight{color:var(--c-secondary)}html[data-theme]:not([data-theme=dark]) h2[style*="color:#fff"],html[data-theme]:not([data-theme=dark]) h2[style*="color: #fff"]{color:var(--c-heading)!important}html[data-theme]:not([data-theme=dark]) .tl-viewport::-webkit-scrollbar-thumb{background:rgba(var(--page-accent-rgb,139,92,246), .25)}html[data-theme]:not([data-theme=dark]) .res-card{background:var(--bg-card);border-color:var(--b-primary)}html[data-theme]:not([data-theme=dark]) .res-card:hover{box-shadow:var(--s-card)}html[data-theme]:not([data-theme=dark]) .res-card h4{color:var(--c-heading)}html[data-theme]:not([data-theme=dark]) .res-card p{color:var(--c-muted)}html[data-theme]:not([data-theme=dark]) .footer{border-top-color:var(--b-subtle);color:var(--c-footer)}html[data-theme]:not([data-theme=dark]) .footer img{opacity:var(--footer-img-op)}html[data-theme]:not([data-theme=dark]) .footer a{color:var(--c-footer-link)}html[data-theme]:not([data-theme=dark]) .footer a:hover{color:var(--c-footer-link-h)}html[data-theme]:not([data-theme=dark]) .llm-card{background:var(--bg-card);border-color:var(--b-primary)}html[data-theme]:not([data-theme=dark]) .llm-card:hover{box-shadow:var(--s-card)}html[data-theme]:not([data-theme=dark]) .llm-card .hd h3{color:var(--c-heading)}html[data-theme]:not([data-theme=dark]) .llm-card .hd .org{color:var(--c-dim)}html[data-theme]:not([data-theme=dark]) .llm-card .desc{color:var(--c-secondary)}html[data-theme]:not([data-theme=dark]) .llm-card .tag{background:rgba(var(--page-accent-rgb,139,92,246), .08);border-color:rgba(var(--page-accent-rgb,139,92,246), .18);color:var(--c-secondary)}html[data-theme]:not([data-theme=dark]) .res-card .name{color:var(--c-heading)}html[data-theme]:not([data-theme=dark]) .res-card .url{color:var(--c-dim)}html[data-theme]:not([data-theme=dark]) .res-card .rdesc{color:var(--c-muted)}html[data-theme]:not([data-theme=dark]) .nav-card{background:var(--bg-card);border-color:var(--b-primary)}html[data-theme]:not([data-theme=dark]) .nav-card:hover{box-shadow:var(--s-card)}html[data-theme]:not([data-theme=dark]) .nav-card .nc-body h3{color:var(--c-heading)}html[data-theme]:not([data-theme=dark]) .nav-card .nc-body p{color:var(--c-muted)}html[data-theme]:not([data-theme=dark]) .sec h3,html[data-theme]:not([data-theme=dark]) .chapter h3{color:var(--c-heading)}html[data-theme]:not([data-theme=dark]) .chapter code{background:rgba(var(--page-accent-rgb,139,92,246), .08);border-color:rgba(var(--page-accent-rgb,139,92,246), .18);color:#6d28d9}html[data-theme=light] .chapter code{color:#6d28d9}html[data-theme]:not([data-theme=dark]) .compare-table th{background:rgba(var(--page-accent-rgb,139,92,246), .08);color:var(--c-heading);border-bottom-color:var(--b-strong)}html[data-theme]:not([data-theme=dark]) .hero .meta span{background:rgba(var(--page-accent-rgb,139,92,246), .06);border-color:rgba(var(--page-accent-rgb,139,92,246), .15);color:var(--c-secondary)}html[data-theme]:not([data-theme=dark]) .era-marker{border-color:var(--bg-body)}html[data-theme]:not([data-theme=dark]) .era-label{color:var(--page-accent,#8b5cf6)}html[data-theme]:not([data-theme=dark]) .era-sub{color:var(--c-dim)}html[data-theme]:not([data-theme=dark]) .evt-title{color:var(--c-secondary)}html[data-theme]:not([data-theme=dark]) .evt-dot{border-color:rgba(var(--page-accent-rgb,139,92,246), .55)}html[data-theme]:not([data-theme=dark]) .detail-wrap{background:rgba(var(--page-accent-rgb,139,92,246), .04);border-color:var(--b-primary)}html[data-theme]:not([data-theme=dark]) .detail-head h3{color:var(--c-heading)}html[data-theme]:not([data-theme=dark]) .detail-body p{color:var(--c-secondary)}html[data-theme]:not([data-theme=dark]) .detail-body strong{color:var(--c-heading)}html[data-theme]:not([data-theme=dark]) .detail-close{border-color:var(--b-primary);color:var(--c-dim)}html[data-theme]:not([data-theme=dark]) .detail-hint{color:var(--c-dim)}html[data-theme]:not([data-theme=dark]) .sub-tl{border-left-color:var(--b-primary)}html[data-theme]:not([data-theme=dark]) .sub-tl .sub-item{color:var(--c-secondary)}html[data-theme]:not([data-theme=dark]) .tl-track:after{background:linear-gradient(90deg, transparent, var(--b-primary) 2%, var(--b-primary) 98%, transparent)}html[data-theme]:not([data-theme=dark]) .era-tab{background:rgba(var(--page-accent-rgb,139,92,246), .04);border-color:var(--b-primary);color:var(--c-dim)}html[data-theme]:not([data-theme=dark]) .era-tab.active{background:rgba(var(--page-accent-rgb,139,92,246), .08);color:var(--page-accent,#8b5cf6)}html[data-theme]:not([data-theme=dark]) .section{background:var(--bg-section);border-color:var(--b-primary)}html[data-theme]:not([data-theme=dark]) .section h3{color:var(--c-heading)}html[data-theme]:not([data-theme=dark]) .section p,html[data-theme]:not([data-theme=dark]) .section li{color:var(--c-secondary)}html[data-theme]:not([data-theme=dark]) .section strong{color:var(--c-heading)}html[data-theme]:not([data-theme=dark]) .dt th{background:rgba(var(--page-accent-rgb,245,158,11), .08);color:var(--c-heading);border-bottom-color:var(--b-strong)}html[data-theme]:not([data-theme=dark]) .dt td{color:var(--c-secondary);border-bottom-color:var(--b-table)}html[data-theme]:not([data-theme=dark]) .dt tr:hover td{background:var(--bg-hover)}html[data-theme]:not([data-theme=dark]) .data-table th{background:rgba(var(--page-accent-rgb,245,158,11), .08);color:var(--c-heading);border-bottom-color:var(--b-strong)}html[data-theme]:not([data-theme=dark]) .note{background:rgba(var(--page-accent-rgb,245,158,11), .04);color:var(--c-secondary)}html[data-theme]:not([data-theme=dark]) .module-card .topic{background:rgba(var(--page-accent-rgb,245,158,11), .06);border-color:rgba(var(--page-accent-rgb,245,158,11), .15);color:var(--c-secondary)}html[data-theme]:not([data-theme=dark]) .formula{background:var(--bg-code);border-color:var(--b-primary);color:var(--c-secondary)}html[data-theme]:not([data-theme=dark]) .status-tag.planned{background:var(--bg-tag);color:var(--c-dim)}html[data-theme]:not([data-theme=dark]) .arch-card{background:rgba(var(--page-accent-rgb,139,92,246), .03);border-color:rgba(var(--page-accent-rgb,139,92,246), .15)}html[data-theme]:not([data-theme=dark]) .arch-card h4{color:var(--page-accent,#8b5cf6)}html[data-theme]:not([data-theme=dark]) .arch-card p{color:var(--c-secondary)}html[data-theme]:not([data-theme=dark]) .vs-card{background:rgba(var(--page-accent-rgb,139,92,246), .03);border-color:rgba(var(--page-accent-rgb,139,92,246), .15)}html[data-theme]:not([data-theme=dark]) .vs-card h4{color:var(--page-accent,#8b5cf6)}html[data-theme]:not([data-theme=dark]) .vs-card p,html[data-theme]:not([data-theme=dark]) .flow-step{color:var(--c-secondary)}html[data-theme]:not([data-theme=dark]) .flow-step strong{color:var(--page-accent,#8b5cf6)}html[data-theme]:not([data-theme=dark]) .flow-arrow{color:rgba(var(--page-accent-rgb,139,92,246), .5)}html[data-theme=dark] .topbar,html[data-theme=dark] .g-nav{-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}html[data-theme=dark] .hero{background:radial-gradient(at 50% 0,#3b82f624 0%,#0000 72%)}html[data-theme=dark] .hero h1{background:linear-gradient(135deg, #f8fbff 0%, var(--page-accent,#60a5fa) 100%);-webkit-text-fill-color:transparent;-webkit-background-clip:text;background-clip:text}html[data-theme=dark] .hero p,html[data-theme=dark] .hero .subtitle{color:var(--c-muted)}html[data-theme=dark] :is(.card,.module-card,.knowledge-map,.chapter,.toc,.arch-diagram,.res-card,.nav-card,.llm-card,.section,.formula,.note,.arch-card,.vs-card,.detail-wrap){background:var(--bg-card);border-color:var(--b-primary);box-shadow:var(--s-card)}html[data-theme=dark] :is(.card h2,.module-card h3,.chapter h3,.res-card h4,.nav-card .nc-body h3,.llm-card .hd h3,.section h3,.arch-card h4,.vs-card h4,.detail-head h3){color:var(--c-heading)}html[data-theme=dark] :is(.card .desc,.module-card .desc,.chapter p,.chapter li,.res-card p,.nav-card .nc-body p,.llm-card .desc,.section p,.section li,.arch-card p,.vs-card p,.detail-body p,.detail-body strong,.detail-hint,.km-item,.km-section h4,.toc a,.insight,.flow-step,.flow-step strong,.evt-title,.era-sub,.sub-tl .sub-item){color:var(--c-secondary)}html[data-theme=dark] :is(.data-table th,.compare-table th,.dt th){color:var(--c-heading);border-bottom-color:var(--b-strong);background:#94a3b81f}html[data-theme=dark] :is(.data-table td,.compare-table td,.dt td){color:var(--c-secondary);border-bottom-color:var(--b-table)}html[data-theme=dark] :is(.data-table tr:hover td,.compare-table tr:hover td,.dt tr:hover td){background:var(--bg-hover)}html[data-theme=dark] .theme-switcher{background:var(--bg-nav);border-color:var(--b-primary);color:var(--c-muted)}html[data-theme=dark] .theme-switcher:hover{border-color:var(--b-strong);color:var(--c-heading)}.theme-switcher{z-index:9999;background:var(--bg-nav);border:1px solid var(--b-primary);cursor:pointer;color:var(--c-muted);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);-webkit-user-select:none;user-select:none;border-radius:24px;align-items:center;gap:6px;padding:8px 14px;font-family:inherit;transition:all .3s;display:flex;position:fixed;bottom:20px;right:20px;box-shadow:0 4px 16px #00000026}.theme-switcher:hover{border-color:var(--b-strong);color:var(--c-heading);transform:translateY(-2px);box-shadow:0 6px 24px #00000040}.theme-icon{font-size:16px;line-height:1}.theme-label{letter-spacing:.5px;font-size:11px;font-weight:500}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:0 0}::-webkit-scrollbar-thumb{background:var(--b-primary);border-radius:3px}::-webkit-scrollbar-thumb:hover{background:var(--b-strong)}@media (width<=640px){.theme-switcher{padding:6px 10px;bottom:12px;right:12px}.theme-label{display:none}}
