:root{--bg:#faf7ef;--surface:#faf7ef;--surface-2:#f2eee4;--text:#202936;--text-2:#485261;--text-3:#656c76;--accent:#315f73;--accent-soft:#dceef4;--line:#d4d0c7;--line-strong:#202936;--shadow:4px 4px 0 #202936;--shadow-lg:5px 5px 0 #202936;--font:'PingFang SC','Microsoft YaHei',system-ui,sans-serif}*{box-sizing:border-box}body{margin:0;color:#202936;background:#faf7ef;font-family:var(--font)}a{color:inherit}button,a,input,select{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #28799b;outline-offset:4px}.preview-header{display:flex;justify-content:space-between;align-items:center;padding:24px 5%;border-bottom:2px solid #202936;gap:20px}.brand{font-size:26px;font-weight:800;text-decoration:none}.preview-header nav{display:flex;gap:24px}.preview-header nav a{padding:12px 0;text-decoration:none}.preview-label{padding:12px 5%;font-size:14px;color:#656c76}.map-home{height:48px;display:flex;align-items:center;gap:24px;padding:0 24px;border-bottom:2px solid #202936;font-size:14px}.map-home a{font-weight:700;text-decoration:none;padding:12px 0}.map-home span{color:#656c76}.map-page .topbar{height:auto;min-height:84px;flex-wrap:wrap}.map-page .layout{height:calc(100vh - 190px)}.map-page .card,.map-page .ov-node{border-color:#202936!important;box-shadow:3px 3px 0 #202936}.map-page .panel{border-left:2px solid #202936;background:#faf7ef}.map-page button,.map-page select{min-height:44px}.map-page .search input{min-height:44px}.reader-bar{display:flex;gap:20px;align-items:center;padding:18px 28px;border-bottom:2px solid #202936}.reader-bar a{text-decoration:none;padding:10px 0}.reader-bar span{margin-left:auto;font-size:14px;color:#656c76}.reader-layout{max-width:1500px;margin:auto;display:grid;grid-template-columns:235px minmax(0,760px) 200px;gap:40px;padding:32px 28px}.reader-nav,.reader-toc{position:sticky;top:24px;align-self:start;max-height:85vh;overflow:auto}.reader-nav a,.reader-toc a{display:block;padding:12px 10px;border-radius:6px;text-decoration:none;font-size:14px;line-height:1.6}.reader-nav a.active{background:#dceef4;border-left:4px solid #202936}.reader-nav h2,.reader-toc h2{font-size:16px}.article{min-width:0;line-height:1.85;font-size:17px}.article h1{font-size:30px;line-height:1.4;margin:12px 0 24px}.article h2{font-size:23px;margin:36px 0 14px;scroll-margin-top:24px}.article h3{font-size:19px}.article p{overflow-wrap:anywhere}.article pre{overflow:auto;background:#f0ece3;border:1px solid #d4d0c7;border-radius:9px;padding:20px;font-size:14px;line-height:1.7}.article .meta{font-size:14px;color:#656c76}.article .notice{background:#e8e2f1;padding:12px 16px;border-left:3px solid #202936;font-size:14px;margin:24px 0}.mobile-nav{display:none}.reader-toc a{border-left:1px solid #d4d0c7}.article table{border-collapse:collapse;font-size:14px;display:block;overflow:auto}.article td{border:1px solid #d4d0c7;padding:8px}.reader-nav summary{font-weight:bold;padding:12px 0;cursor:pointer}@media(max-width:1050px){.reader-layout{grid-template-columns:200px minmax(0,1fr);gap:24px}.reader-toc{display:none}}@media(max-width:760px){.preview-header{padding:16px;flex-wrap:wrap}.preview-header nav{gap:20px}.brand{font-size:23px}.map-home{padding:0 12px;height:auto;min-height:48px;flex-wrap:wrap;gap:4px 12px}.map-home span{font-size:12px}.map-page .topbar{padding:12px}.map-page .layout{height:calc(100dvh - 250px)}.map-page .panel{max-width:100vw}.reader-bar{padding:10px 16px;flex-wrap:wrap;gap:4px 20px}.reader-bar span{width:100%;margin:0}.reader-layout{display:block;padding:16px}.reader-nav{position:static;max-height:300px;margin-bottom:24px;border-bottom:1px solid #d4d0c7}.article h1{font-size:26px}.article{font-size:16px}.reader-nav details:not([open]){max-height:50px}.preview-label{padding:12px 16px}}
.formula{padding:24px 16px;margin:24px 0;background:#f2eee4;border-radius:8px;overflow:auto}.formula math{font-size:22px}.article table{width:100%;margin:20px 0}.article tr:first-child{background:#dceef4;font-weight:600}
.article blockquote{margin:24px 0;padding:12px 20px;border-left:4px solid #5b8596;background:#eaf3f4;border-radius:0 8px 8px 0;color:#344553}.article blockquote p{margin:6px 0}
/* Shared account-aware shell; all state is explicitly a static preview. */
[data-notes-header]{position:relative;z-index:40;background:#faf7ef;color:#202936;border-bottom:2px solid #202936;font:16px/1.6 var(--font)}.notes-header-bar{display:flex;align-items:center;gap:28px;padding:20px 5%;min-height:88px}.notes-brand{font-size:26px;font-weight:800;text-decoration:none;white-space:nowrap}.notes-header-bar nav{display:flex;align-items:center;gap:24px;margin-left:auto}.notes-header-bar nav a{display:flex;align-items:center;min-height:44px;text-decoration:none}.notes-header-bar button,.notes-preview-dialog button{font:inherit;min-height:44px;padding:8px 18px;border:2px solid #202936;background:#faf7ef;color:#202936;border-radius:8px;box-shadow:3px 3px 0 #202936;cursor:pointer}.notes-account-wrap{position:relative}#notes-account{min-width:92px}#notes-account-menu{position:absolute;right:0;top:calc(100% + 12px);width:160px;padding:6px;background:#faf7ef;border:2px solid #202936;box-shadow:4px 4px 0 #202936;border-radius:8px;z-index:50}#notes-account-menu[hidden]{display:none}#notes-account-menu button{display:block;width:100%;text-align:left;border:0;box-shadow:none;border-radius:4px;padding:8px 12px}#notes-account-menu button:hover{background:#dceef4}#notes-nav-toggle{display:none}.notes-preview-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:0 5% 12px;color:#656c76;font-size:12px}.notes-preview-controls label{margin-left:auto}.notes-preview-controls select{font:inherit;color:#485261;background:#f2eee4;border:1px solid #b6b4af;border-radius:5px;min-height:32px;padding:4px 8px}.notes-preview-controls #notes-preview-status:empty{display:none}.notes-preview-dialog{max-width:480px;width:calc(100% - 40px);padding:24px;border:2px solid #202936;border-radius:12px;box-shadow:5px 5px 0 #202936;background:#faf7ef;color:#202936;font:16px/1.7 var(--font)}.notes-preview-dialog::backdrop{background:#20293670}.notes-preview-dialog h2{font-size:24px;margin-top:0}.notes-preview-dialog p{overflow-wrap:anywhere}.map-page .layout{height:calc(100dvh - 277px);min-height:360px}@media(max-width:760px){.notes-header-bar{padding:14px 16px;gap:12px;flex-wrap:wrap;min-height:76px}.notes-brand{font-size:21px;margin-right:auto}#notes-nav-toggle{display:block;padding:6px 10px;order:2}.notes-account-wrap{order:3}.notes-header-bar nav{order:4;width:100%;display:none;margin:0;gap:20px;flex-wrap:wrap}.notes-header-bar nav.is-open{display:flex}.notes-header-bar button{padding:6px 10px}#notes-account{min-width:76px}.notes-preview-controls{padding:0 16px 10px;gap:6px 10px}.notes-preview-controls label{margin-left:0}.notes-preview-controls select{min-height:44px}.notes-preview-controls>span:first-child{width:100%}.map-page .layout{height:calc(100dvh - 332px);min-height:340px}}
.article img{max-width:100%;height:auto}.article math[display=block]{display:block;overflow-x:auto;padding:20px;background:#f2eee4;font-size:1.25em}.unavailable,.missing-image{color:#765c42}.missing-image{display:block;border:1px dashed #9c8e7c;padding:20px}.article code{font-size:.9em}.article ul,.article ol{padding-left:24px}.article table{border-collapse:collapse;display:block;overflow:auto}.article th{background:#dceef4}.article th,.article td{border:1px solid #d4d0c7;padding:10px}.notes-map .layout{height:calc(100dvh - 230px);min-height:350px}.notes-map .topbar{height:auto;min-height:84px;flex-wrap:wrap}.notes-map .panel{background:#faf7ef}.notes-map button,.notes-map select{min-height:44px}.notes-map .card{border-color:#202936;box-shadow:3px 3px #202936}
