:root{--bg:#f5f7fb;--surface:#fff;--surface-2:#f0f3f8;--text:#1a2233;--muted:#5d6879;--border:#e1e6ee;--accent:#2563eb;--accent-soft:#eaf1fe;--on-accent:#fff;--ok:#15803d;--ok-soft:#e8f6ec;--bad:#c2410c;--bad-soft:#fdf0e7;--warn:#a16207;--warn-soft:#fdf6e3;--teal:#0f766e;--s1:#16a34a;--s2:#2563eb;--s3:#7c3aed;--s4:#ea580c;--s5:#db2777;--radius:14px;--shadow:0 1px 2px #1018280a, 0 1px 3px #1018280d;--shadow-lift:0 2px 4px #1018280a, 0 12px 24px -8px #10182829;--header-h:64px;color-scheme:light}@media (prefers-color-scheme:dark){:root{--bg:#0e131c;--surface:#161c27;--surface-2:#1f2633;--text:#e6eaf1;--muted:#9aa4b4;--border:#2b3445;--accent:#6ea8ff;--accent-soft:#16284a;--on-accent:#0b1220;--ok:#4ade80;--ok-soft:#13301f;--bad:#fb923c;--bad-soft:#35210f;--warn:#facc15;--warn-soft:#332b0c;--teal:#2dd4bf;--s1:#4ade80;--s2:#6ea8ff;--s3:#a78bfa;--s4:#fb923c;--s5:#f472b6;--shadow:0 1px 2px #0000004d;--shadow-lift:0 2px 4px #0000004d, 0 12px 24px -8px #0009;color-scheme:dark}}*{box-sizing:border-box}html{scroll-padding-top:16px}body{background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0;font:17px/1.85 -apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Noto Sans SC,Noto Sans CJK SC,Microsoft YaHei,sans-serif}html:lang(en) body{line-height:1.7}a{color:var(--accent)}.site-header{z-index:30;height:var(--header-h);background:var(--surface);border-bottom:1px solid var(--border);position:relative}.site-header .inner{justify-content:space-between;align-items:center;gap:12px;height:100%;padding:0 16px;display:flex}.logo{min-width:0;color:var(--text);align-items:center;gap:10px;text-decoration:none;display:inline-flex}.logo-mark{width:34px;height:34px;color:var(--accent);flex:none}.logo-text{flex-direction:column;min-width:0;line-height:1.25;display:flex}.logo-name{white-space:nowrap;font-size:18px;font-weight:700}.logo-name span{color:var(--accent);margin-left:6px;font-weight:600}.logo-tag{color:var(--muted);white-space:nowrap;font-size:12.5px}@media (width<=480px){.logo-mark{width:28px;height:28px}.logo-name span,.logo-tag{display:none}}.header-right{flex:none;align-items:center;gap:14px;display:flex}.lang-switch{background:var(--surface-2);border-radius:999px;gap:2px;padding:3px;font-size:13px;line-height:1.6;display:inline-flex}.lang-switch a,.lang-switch span{color:var(--muted);white-space:nowrap;border-radius:999px;padding:2px 11px;text-decoration:none}.lang-switch a:hover{color:var(--text)}.lang-switch .active{background:var(--accent);color:var(--on-accent);font-weight:600}main{min-width:0;max-width:820px;margin:0 auto;padding:28px 20px 96px}main.wide{max-width:1080px}.tab-bar{z-index:30;padding:0 4px env(safe-area-inset-bottom);background:color-mix(in srgb, var(--surface) 94%, transparent);backdrop-filter:blur(12px);border-top:1px solid var(--border);justify-content:center;display:flex;position:fixed;inset:auto 0 0}.tab-bar a{min-width:0;max-width:120px;color:var(--muted);-webkit-tap-highlight-color:transparent;flex-direction:column;flex:1;align-items:center;gap:2px;padding:7px 2px 6px;font-size:11.5px;font-weight:500;line-height:1.3;text-decoration:none;display:flex}.tab-bar a[aria-current]{color:var(--accent);font-weight:600}.tab-icon{display:grid;position:relative}.tab-icon .icon{width:22px;height:22px}.tab-label{text-overflow:ellipsis;white-space:nowrap;max-width:100%;overflow:hidden}.tab-badge{background:var(--bad);min-width:17px;color:var(--surface);text-align:center;font-variant-numeric:tabular-nums;border-radius:999px;padding:0 4px;font-size:10.5px;font-weight:700;line-height:17px;position:absolute;top:-5px;left:14px}.tab-badge[hidden]{display:none}@media (width<=1023.98px){body{padding-bottom:calc(56px + env(safe-area-inset-bottom))}}@media (width>=1024px){.tab-bar{display:none}}.sidebar{display:none}@media (width>=1024px){html{scroll-padding-top:calc(var(--header-h) + 16px)}.site-header{position:sticky;top:0}.site-header .inner{padding:0 28px 0 22px}.shell{grid-template-columns:252px minmax(0,1fr);display:grid}.sidebar{top:var(--header-h);height:calc(100vh - var(--header-h));overscroll-behavior:contain;background:var(--surface);border-right:1px solid var(--border);flex-direction:column;padding:18px 14px;display:flex;position:sticky;overflow-y:auto}main{width:100%;padding:32px 36px 96px}}.side-nav{flex-direction:column;gap:2px;display:flex}.side-link{color:var(--text);border-radius:10px;align-items:center;gap:12px;padding:8px 12px;font-size:15px;font-weight:500;line-height:1.35;text-decoration:none;display:flex}.side-link>.icon{color:var(--muted)}.side-link:hover{background:var(--surface-2)}.side-link[aria-current]{background:var(--accent-soft);color:var(--accent);font-weight:600}.side-link[aria-current]>.icon{color:var(--accent)}.side-badge{background:var(--bad-soft);min-width:1.7em;color:var(--bad);text-align:center;font-variant-numeric:tabular-nums;border-radius:999px;margin-left:auto;padding:0 7px;font-size:12px;font-weight:600;line-height:1.7}.side-badge[hidden]{display:none}.side-label{letter-spacing:.04em;color:var(--muted);margin:14px 12px 4px;font-size:12px;font-weight:600}.side-icon{background:color-mix(in srgb, var(--c,var(--accent)) 13%, transparent);width:30px;height:30px;color:var(--c,var(--accent));border-radius:9px;flex:none;place-items:center;display:grid}.side-icon .icon{width:18px;height:18px}.side-stage{padding-block:6px}.side-stage-text{flex-direction:column;min-width:0;display:flex}.side-stage-text small{color:var(--muted);font-size:12px;font-weight:500}.side-stage.is-current{background:color-mix(in srgb, var(--c) 10%, transparent);font-weight:600}.side-sep{border:0;border-top:1px solid var(--border);margin:10px 12px}.side-quote{color:var(--muted);margin:auto 0 0;padding:28px 12px 4px;font-size:13.5px;line-height:1.6}.side-quote .side-icon{margin-bottom:10px}.side-quote-text{white-space:pre-line}html:lang(en) .side-quote-text{font-style:italic}.crumbs{color:var(--muted);flex-wrap:wrap;gap:2px 8px;font-size:13.5px;line-height:1.6;display:flex}.crumbs a{color:inherit;text-decoration:none}.crumbs a:hover{color:var(--accent);text-underline-offset:3px;text-decoration:underline}h1{margin:10px 0 14px;font-size:clamp(28px,6.4vw,36px);line-height:1.25}html:lang(en) h1{letter-spacing:-.015em}h1 .alt{letter-spacing:0;color:var(--muted);margin-top:8px;font-size:16px;font-weight:500;display:block}.chips{flex-wrap:wrap;gap:8px;display:flex}.chip{background:var(--surface-2);color:var(--muted);border-radius:999px;padding:3px 11px;font-size:13px;font-weight:500;line-height:1.6}.chip.accent{background:var(--accent-soft);color:var(--accent)}.meta-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);grid-template-columns:1fr 1fr;gap:12px 32px;margin:24px 0 8px;padding:20px 24px;display:grid}.meta-card h2{align-items:center;gap:8px;margin:0 0 6px;font-size:15px;display:flex}.meta-card h2 .icon{width:18px;height:18px;color:var(--accent)}.meta-card ul{margin:0;padding-left:1.2em;font-size:16px;line-height:1.75}.meta-card li::marker{color:var(--accent)}@media (width<=640px){.meta-card{grid-template-columns:1fr;padding:18px 20px}}.prose{container-type:inline-size}.prose h2{margin:52px 0 14px;padding-left:16px;font-size:24px;line-height:1.4;position:relative}.prose h2:before{content:"";background:var(--accent);border-radius:3px;width:5px;height:.9em;position:absolute;top:.25em;left:0}.prose h3{margin:32px 0 8px;font-size:19px;line-height:1.45}.prose a{text-underline-offset:3px;text-decoration-thickness:1px}.prose a:hover{text-decoration-thickness:2px}.prose>ul>li::marker,.prose>ol>li::marker{color:var(--accent)}.prose table{border-collapse:collapse;width:100%;margin:12px 0;font-size:15px}.prose th,.prose td{border:1px solid var(--border);text-align:left;padding:6px 12px}.prose th{background:var(--surface-2)}.prose>table{border-collapse:separate;border-spacing:0;border:1px solid var(--border);background:var(--surface);border-radius:12px;margin:16px 0;overflow:hidden}.prose>table th,.prose>table td{border:0;border-top:1px solid var(--border);padding:8px 14px}.prose>table tr:first-child>*{border-top:0}.prose>table th{font-size:14px;font-weight:600}.prose blockquote{border-left:4px solid color-mix(in srgb, var(--accent) 45%, transparent);border-radius:0 var(--radius) var(--radius) 0;background:var(--surface-2);margin:16px 0;padding:10px 18px}.prose blockquote p{margin:0}.katex-display{padding:4px 0;overflow:auto hidden}@media (width<=640px){:where(.prose p){margin-block:calc(1em - 4px);padding-bottom:4px;overflow:auto hidden}}@container (width<=760px){.prose>table,.prose .callout>table{width:max-content;max-width:100%;display:block;overflow-x:auto}}.callout{--c:var(--accent);--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5M12 7.6v.1'/%3E%3C/svg%3E");border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);margin:18px 0;padding:12px 18px 12px 48px;position:relative}.callout:before{content:"";background:var(--c);width:20px;height:20px;-webkit-mask:var(--icon) center / contain no-repeat;mask:var(--icon) center / contain no-repeat;position:absolute;top:calc(.5lh + 6px);left:16px}.callout p{margin:4px 0}.callout>p:first-child>strong:first-child{color:var(--c)}.callout.warn{--c:var(--warn);--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.3 3.9 2.4 18a2 2 0 0 0 1.7 3h15.8a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0z'/%3E%3Cpath d='M12 9.5v4M12 17v.1'/%3E%3C/svg%3E");border-color:color-mix(in srgb, var(--warn) 22%, transparent);background:var(--warn-soft)}.callout.ap{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m2 9 10-5 10 5-10 5z'/%3E%3Cpath d='M6 11v5c0 1.7 2.7 3 6 3s6-1.3 6-3v-5M22 9v5.5'/%3E%3C/svg%3E");border-color:color-mix(in srgb, var(--accent) 20%, transparent);background:var(--accent-soft)}.callout.ap-later>summary{color:var(--c);cursor:pointer;align-items:center;gap:8px;margin:0;padding:4px 0;font-weight:700;list-style:none;display:flex}.callout.ap-later>summary::-webkit-details-marker{display:none}.callout.ap-later>summary:after{content:"";border-bottom:2px solid;border-right:2px solid;width:7px;height:7px;margin-left:2px;transform:rotate(-45deg)}.callout.ap-later[open]>summary:after{transform:translateY(-2px)rotate(45deg)}.callout.ap-later>summary:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:6px}.callout.ap-later[open]>summary{margin-bottom:4px}@media (width<=480px){.callout{padding-left:44px}.callout:before{left:14px}}.mol{display:inline-flex}.atom{border-radius:50%;place-items:center;width:24px;height:24px;font-size:10px;font-weight:700;line-height:1;display:grid;box-shadow:inset 0 0 0 1px #0003}.mol .atom+.atom{margin-left:-6px}.term small{color:var(--muted);margin-left:4px;font-size:.8em;font-weight:400}.prose .chapter-map{flex-wrap:wrap;align-items:center;gap:8px 22px;margin:10px 0 6px;padding:0;list-style:none;display:flex}.prose .chapter-map li{border:1px solid var(--border);background:var(--surface-2);white-space:nowrap;border-radius:999px;padding:3px 11px;font-size:14px;line-height:1.6;position:relative}.prose .chapter-map li:not(:last-child):after{content:"→";color:var(--muted);position:absolute;right:-18px}.prose .chapter-map small{color:var(--muted);margin-left:4px;font-size:12px}.prose .chapter-map li[aria-current]{border-color:var(--accent);background:var(--accent);color:var(--on-accent);font-weight:600}.prose .chapter-map li[aria-current] small{color:inherit;opacity:.85}.prose .data-sources{border-top:1px solid var(--border);color:var(--muted);margin:28px 0 0;padding-top:10px;font-size:13px;line-height:1.6}.bohr{width:100%;height:auto;display:block}.bohr-shell{fill:none;stroke:var(--border);stroke-width:1.5px}.bohr-shell.bohr-outer{stroke:var(--accent);stroke-width:2px;stroke-dasharray:5 4}.bohr-e{fill:#3b6fe0;stroke:var(--surface);stroke-width:1px}.bohr-p{fill:#e5484d;stroke:#00000040;stroke-width:.8px}.bohr-n{fill:#9ca3af;stroke:#00000040;stroke-width:.8px}.bohr-nucleus{fill:#e5484d}.bohr-z{fill:#fff;font-size:15px;font-weight:700}.bohr-shell.bohr-slot{stroke-dasharray:3 5}.struct{max-width:100%;height:auto;display:block}.struct-nucleus{fill:none;stroke:var(--text);stroke-width:1.5px}.struct-z{fill:var(--text);font-size:13px;font-weight:700}.struct-arc{fill:none;stroke:var(--text);stroke-width:1.5px}.struct-arc.struct-slot{stroke:var(--muted);stroke-dasharray:3 4;opacity:.5}.struct-n{fill:var(--text);paint-order:stroke;stroke:var(--surface);stroke-width:4px;font-size:13px;font-weight:700}.struct-arc.struct-outer{stroke:var(--accent)}.struct-n.struct-outer{fill:var(--accent)}.shell-hit{fill:#0000;stroke:#0000;stroke-width:16px;cursor:pointer}circle.shell-hit{fill:none}rect.shell-hit{stroke:none}.lewis{max-width:100%;height:auto;display:block}.lewis-sym{fill:var(--text);font-size:32px;font-weight:600}.lewis-dot{fill:var(--text)}.lewis-br{fill:none;stroke:var(--text);stroke-width:1.8px}.lewis-q{fill:var(--text);font-size:16px;font-weight:700}.lewis-hit{fill:#0000;cursor:pointer}.lewis-hit:hover{fill:var(--accent-soft)}.lws{display:block;overflow:visible}.lws-sym{fill:var(--text);font-size:23px;font-weight:600}.lws-sym.ok{fill:var(--ok)}.lws-sym.bad{fill:var(--bad)}.lws-dot{fill:var(--text)}.lws-bond{stroke:var(--text);stroke-width:2.2px;stroke-linecap:round}.lws-bond.part{stroke-dasharray:4 4}.lws-hit{stroke:#0000;stroke-width:22px;cursor:pointer}.lws-hit:hover{stroke:var(--accent-soft)}.lws-br{fill:none;stroke:var(--text);stroke-width:1.8px}.lws-q,.lws-fc{fill:var(--text);font-size:14px;font-weight:700}.lws-fc{fill:var(--accent);font-size:13px}.shp-bond{stroke:#9aa3ad;stroke-width:6px;stroke-linecap:round}.shp-bond.part{stroke-dasharray:7 6}.shp-domain{stroke:var(--accent);stroke-width:1.6px;stroke-dasharray:4 4}.shp-lone{fill:#9370db47;stroke:#9370dbb3;stroke-width:1.2px}.shp-ldot{fill:#6d4fc2}.shp-atom circle:first-child{stroke:#00000059;stroke-width:1px}.shp-shine{fill:#ffffff73}.shp-atom text{pointer-events:none;font-weight:700}.shp-arc{fill:none;stroke:var(--bad);stroke-width:2px}.shp-arctext{fill:var(--bad);paint-order:stroke;stroke:var(--surface);stroke-width:4px;font-size:15px;font-weight:700}.dip line{stroke-width:2.4px;stroke-linecap:round}.dip.bond line{stroke:var(--teal)}.dip.bond path{fill:var(--teal)}.dip.net line{stroke:var(--bad);stroke-width:4px}.dip.net path{fill:var(--bad)}
