:root{--bg:#fafaf7;--text:#1f1f1f;--muted:#6b6b6b;--accent:#b3541e;--border:#e4e0d8;--card:#fff;--tag-bg:#f0e9df;--tag-text:#7a4a21;--hover:#f3efe7;--shadow:0 8px 30px #00000029;--afs:17.5px}html[data-theme=dark]{--bg:#232326;--text:#d8d8d3;--muted:#9d9d99;--accent:#e0a070;--border:#3d3d42;--card:#2b2b2f;--tag-bg:#3a3227;--tag-text:#d9a86c;--hover:#313136;--shadow:0 8px 30px #00000073}html[data-fs=s]{--afs:16px}html[data-fs=l]{--afs:19.5px}*{box-sizing:border-box}body{background:var(--bg);color:var(--text);margin:0;font-family:PingFang SC,Hiragino Sans GB,Microsoft YaHei,Noto Sans SC,-apple-system,sans-serif;font-size:17px;line-height:1.8}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}main{max-width:42rem;margin:0 auto;padding:24px 20px 64px}header.site{justify-content:space-between;align-items:flex-start;gap:12px;max-width:42rem;margin:0 auto;padding:28px 20px 0;display:flex}header.site h1{letter-spacing:.05em;margin:0 0 4px;font-size:26px}header.site h1 a{color:var(--text)}header.site p{color:var(--muted);margin:0;font-size:14px}.header-controls{flex-shrink:0;align-items:center;gap:8px;padding-top:4px;display:flex}.icon-btn{cursor:pointer;border:1px solid var(--border);background:var(--card);width:36px;height:36px;color:var(--text);border-radius:50%;justify-content:center;align-items:center;display:inline-flex}.icon-btn:hover{background:var(--hover)}.icon-btn svg{width:18px;height:18px}.icon-btn .icon-moon{display:none}html[data-theme=dark] .icon-btn .icon-moon{display:block}html[data-theme=dark] .icon-btn .icon-sun{display:none}.search-box{cursor:pointer;border:1px solid var(--border);background:var(--card);height:36px;color:var(--muted);border-radius:999px;align-items:center;gap:6px;padding:0 10px;font-family:inherit;font-size:14px;display:inline-flex}.search-box:hover{background:var(--hover)}.search-box svg{flex-shrink:0;width:15px;height:15px}.search-box kbd{color:var(--muted);border:1px solid var(--border);background:var(--bg);border-radius:4px;padding:1px 5px;font-family:inherit;font-size:11px}.filters{flex-wrap:wrap;gap:8px;margin:20px 0 8px;display:flex}.filters button{font:inherit;cursor:pointer;border:1px solid var(--border);background:var(--card);color:var(--text);border-radius:999px;padding:4px 14px;font-size:14px}.filters button.active{background:var(--text);color:var(--bg);border-color:var(--text)}.note-list{margin:8px 0 0;padding:0;list-style:none}.note-list li{background:var(--card);border:1px solid var(--border);border-radius:10px;margin:12px 0;padding:16px 18px}.note-list h2{margin:0 0 6px;font-size:19px;line-height:1.5}.note-list h2 a{color:var(--text)}.meta{color:var(--muted);font-size:14px;line-height:1.6}.tag{background:var(--tag-bg);color:var(--tag-text);border-radius:999px;margin-right:6px;padding:3px 8px;font-size:12px;line-height:1;display:inline-block}.desc{color:var(--muted);margin:6px 0 0;font-size:14px;line-height:1.6}.subtitle{color:var(--muted);margin:-6px 0 16px;font-size:15px}article{font-size:var(--afs);line-height:1.9}article h1{margin:8px 0 10px;font-size:25px;line-height:1.45}article h2{border-bottom:1px solid var(--border);margin:36px 0 10px;padding-bottom:6px;scroll-margin-top:64px;font-size:20px;line-height:1.5}article p{margin:0 0 16px}article blockquote{border-left:3px solid var(--border);color:var(--muted);margin:0 0 16px;padding:2px 16px}.back{margin-top:28px;font-size:15px;display:inline-block}.count{color:var(--muted);margin:4px 0 0;font-size:14px}.article-tools{align-items:center;gap:6px;margin:14px 0 4px;display:flex}.article-tools .tools-label{color:var(--muted);margin-right:2px;font-size:13px}.article-tools button{cursor:pointer;border:1px solid var(--border);background:var(--card);min-width:30px;height:28px;color:var(--text);border-radius:6px;padding:0 8px;font-family:inherit;font-size:13px}.article-tools button.active{background:var(--text);color:var(--bg);border-color:var(--text)}#progress-bar{background:var(--accent);z-index:60;width:0;height:3px;position:fixed;top:0;left:0}.toc-desktop{display:none}.toc-mobile{border:1px solid var(--border);background:var(--card);border-radius:10px;margin:16px 0 4px}.toc-mobile summary{cursor:pointer;color:var(--text);padding:10px 14px;font-size:15px;list-style:none}.toc-mobile summary::-webkit-details-marker{display:none}.toc-mobile summary:before{content:"▸ ";color:var(--muted)}.toc-mobile[open] summary:before{content:"▾ "}.toc-list{margin:0;padding:0 14px 10px;list-style:none}.toc-list li{margin:0}.toc-list a{color:var(--muted);border-left:2px solid #0000;padding:5px 0 5px 10px;font-size:14px;line-height:1.5;display:block}.toc-list a:hover{color:var(--text);text-decoration:none}.toc-list a.active{color:var(--accent);border-left-color:var(--accent)}@media (width>=1100px){.toc-mobile{display:none}.toc-desktop{width:240px;max-height:calc(100vh - 160px);font-size:14px;display:block;position:fixed;top:96px;right:max(24px,50vw - 21rem - 300px);overflow-y:auto}.toc-desktop .toc-title{color:var(--muted);margin:0 0 8px 12px;font-size:13px}.toc-desktop .toc-list{padding:0}}.prev-next{border-top:1px solid var(--border);gap:12px;margin-top:36px;padding-top:20px;display:flex}.prev-next a{border:1px solid var(--border);background:var(--card);color:var(--text);border-radius:10px;flex:1;padding:12px 14px;display:block}.prev-next a:hover{background:var(--hover);text-decoration:none}.prev-next .pn-label{color:var(--muted);margin-bottom:4px;font-size:12px;display:block}.prev-next .pn-title{font-size:15px;line-height:1.5}.prev-next a.next{text-align:right}.prev-next a:only-child{margin-left:auto}#back-to-top{z-index:50;cursor:pointer;border:1px solid var(--border);background:var(--card);width:44px;height:44px;color:var(--text);box-shadow:var(--shadow);opacity:0;pointer-events:none;border-radius:50%;font-size:18px;line-height:1;transition:opacity .2s;position:fixed;bottom:24px;right:20px}#back-to-top.visible{opacity:1;pointer-events:auto}.search-modal{z-index:100;background:#00000073;justify-content:center;align-items:flex-start;padding:12vh 16px 16px;display:flex;position:fixed;inset:0}.search-modal[hidden]{display:none}.search-panel{background:var(--card);border:1px solid var(--border);width:100%;max-width:560px;max-height:66vh;box-shadow:var(--shadow);border-radius:14px;padding:8px;overflow-y:auto}.search-input-row{align-items:center;gap:8px;padding:6px 8px;display:flex}.search-input-row svg{width:18px;height:18px;color:var(--muted);flex-shrink:0}.search-input-row input{color:var(--text);background:0 0;border:none;outline:none;flex:1;padding:6px 0;font-family:inherit;font-size:17px}.search-input-row input::placeholder{color:var(--muted)}.search-close{cursor:pointer;color:var(--muted);background:0 0;border:none;padding:4px 8px;font-size:18px}.search-results{border-top:1px solid var(--border)}.search-results a{color:var(--text);border-bottom:1px solid var(--border);padding:12px 10px;display:block}.search-results a:last-child{border-bottom:none}.search-results a:hover{background:var(--hover);text-decoration:none}.sr-title{font-size:16px;line-height:1.5}.sr-excerpt{color:var(--muted);margin-top:2px;font-size:14px;line-height:1.6}.sr-excerpt mark{color:var(--accent);background:0 0;font-weight:700}.sr-empty{color:var(--muted);padding:16px 10px;font-size:14px}.search-hint{color:var(--muted);margin:0;padding:8px 10px 6px;font-size:12px}mark.hl{color:inherit;cursor:pointer;border-radius:3px;padding:0 1px}mark.hl-yellow{background:#ffe97a}mark.hl-green{background:#b7f0c0}mark.hl-pink{background:#ffc2d6}html[data-theme=dark] mark.hl-yellow{background:#ffe05061}html[data-theme=dark] mark.hl-green{background:#6ed28259}html[data-theme=dark] mark.hl-pink{background:#ff96be59}mark.hl-flash{animation:1.4s hl-flash}@keyframes hl-flash{0%,to{box-shadow:none}30%{box-shadow:0 0 0 3px var(--accent)}}.hl-toolbar{z-index:80;background:var(--card);border:1px solid var(--border);box-shadow:var(--shadow);border-radius:999px;gap:6px;padding:5px;display:flex;position:fixed}.hl-toolbar[hidden]{display:none}.hl-toolbar button{font:inherit;cursor:pointer;border:1px solid var(--border);background:var(--card);color:var(--text);white-space:nowrap;border-radius:999px;padding:4px 12px;font-size:14px}.hl-toolbar button:hover{background:var(--hover)}.hl-popover{z-index:90;background:var(--card);border:1px solid var(--border);width:min(340px,100vw - 32px);box-shadow:var(--shadow);border-radius:12px;padding:14px;position:fixed}.hl-popover[hidden]{display:none}.hl-pop-quote{color:var(--muted);max-height:84px;margin-bottom:10px;font-size:14px;line-height:1.6;overflow:hidden}.hl-pop-label{color:var(--muted);font-size:13px}.hl-popover textarea{box-sizing:border-box;width:100%;font:inherit;color:var(--text);background:var(--bg);border:1px solid var(--border);resize:vertical;border-radius:8px;margin-top:4px;padding:8px;font-size:15px;line-height:1.6}.hl-pop-colors{gap:8px;margin:10px 0;display:flex}.hl-pop-colors button{cursor:pointer;border:2px solid #0000;border-radius:50%;width:26px;height:26px;padding:0}.hl-pop-colors button[data-color=yellow]{background:#ffe97a}.hl-pop-colors button[data-color=green]{background:#b7f0c0}.hl-pop-colors button[data-color=pink]{background:#ffc2d6}.hl-pop-colors button.active{border-color:var(--text)}.hl-pop-actions{justify-content:flex-end;gap:8px;display:flex}.hl-pop-actions button{font:inherit;cursor:pointer;border:1px solid var(--border);background:var(--card);color:var(--text);border-radius:8px;padding:5px 12px;font-size:14px}.hl-pop-actions button:hover{background:var(--hover)}.notes-panel{border-top:1px solid var(--border);margin-top:40px;padding-top:20px}.notes-panel h2{margin:0 0 4px;font-size:20px}.notes-sync{color:var(--muted);margin:0 0 12px;font-size:13px}.note-item{border:1px solid var(--border);background:var(--card);cursor:pointer;border-radius:10px;margin:10px 0;padding:12px 14px}.note-item:hover{background:var(--hover)}.note-quote{font-size:15px;line-height:1.6}.note-text{color:var(--muted);white-space:pre-wrap;margin-top:6px;font-size:14px;line-height:1.6}.note-none{opacity:.7}.note-meta{color:var(--muted);align-items:center;gap:8px;margin-top:8px;font-size:13px;display:flex}.note-dot{border-radius:50%;flex-shrink:0;width:10px;height:10px;display:inline-block}.dot-yellow{background:#ffe97a}.dot-green{background:#b7f0c0}.dot-pink{background:#ffc2d6}.note-actions{gap:6px;margin-left:auto;display:flex}.note-actions button{font:inherit;cursor:pointer;border:1px solid var(--border);background:var(--card);color:var(--text);border-radius:6px;padding:2px 8px;font-size:13px}.notes-empty{color:var(--muted);font-size:14px}.hl-toast{z-index:110;background:var(--text);color:var(--bg);box-shadow:var(--shadow);border-radius:999px;padding:8px 16px;font-size:14px;position:fixed;bottom:28px;left:50%;transform:translate(-50%)}.hl-toast[hidden]{display:none}@media (width<=520px){body{font-size:16px}header.site h1{font-size:23px}header.site p{display:none}article h1{font-size:22px}.search-box .search-label,.search-box kbd{display:none}.prev-next{flex-direction:column}.prev-next a.next{text-align:left}}
