*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei","Noto Sans CJK SC",sans-serif}
button,input{font:inherit}
button{cursor:pointer;color:inherit;border:1px solid var(--line);background:var(--paper);border-radius:8px;padding:9px 13px;transition:background .15s,border-color .15s}
button:hover{border-color:var(--accent);background:var(--accent-bg)}
button:focus-visible,input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
button[disabled]{opacity:.4;cursor:default}
button.active,button[aria-pressed=true]{color:var(--accent);background:var(--accent-bg);border-color:transparent}
svg{flex-shrink:0}
.topbar{position:sticky;top:0;z-index:5;height:70px;background:var(--paper);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 28px;gap:16px}
.brand{display:flex;align-items:center;gap:12px;min-width:0}
.brand-icon{width:38px;height:38px;border-radius:11px;background:var(--accent);color:var(--paper);display:grid;place-items:center}
.brand h1{font-size:18px;margin:0;letter-spacing:.02em}
.brand small{font-size:11px;color:var(--muted);letter-spacing:.08em}
.tools{display:flex;align-items:center;gap:8px}
.tools button{white-space:nowrap;font-size:13px;display:flex;align-items:center;gap:6px}
.layout{display:grid;grid-template-columns:328px minmax(0,1fr);min-height:calc(100vh - 70px)}
aside{height:calc(100dvh - 70px);position:sticky;top:70px;background:var(--side);border-right:1px solid var(--line);display:flex;flex-direction:column;min-height:0}
.sidebar-head{padding:22px 18px 12px}
.eyebrow{font-size:11px;font-weight:700;color:var(--muted);letter-spacing:.13em;margin:0 0 10px}
.doc-buttons{display:grid;gap:7px;margin-bottom:19px}
.doc-button{display:flex;text-align:left;justify-content:space-between;align-items:center;gap:8px;padding:13px 12px;font-weight:600;font-size:14px}
.doc-button small{font-size:11px;font-weight:500;white-space:nowrap;color:var(--muted)}
.progress-head{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:var(--muted);margin-bottom:7px}
.progress-track{height:4px;border-radius:10px;background:var(--line);overflow:hidden;margin-bottom:18px}
.progress-fill{height:100%;background:var(--accent);transition:width .2s}
.search{display:flex;align-items:center;gap:9px;padding:10px 12px;background:var(--paper);border:1px solid var(--line);border-radius:8px;color:var(--muted)}
.search input{border:none;background:transparent;color:var(--ink);width:100%;outline:none;font-size:14px}
.search input:focus-visible{outline:none}
.filter-row{display:flex;justify-content:space-between;align-items:center;margin-top:15px;font-size:12px;color:var(--muted)}
.filter-row button{padding:5px 8px;font-size:12px;border:0;background:transparent}
.filter-row button.active{background:var(--accent-bg)}
.question-list{padding:0 11px 18px;overflow-y:auto;flex:1;scrollbar-width:thin}
.q-link{width:100%;display:flex;align-items:flex-start;text-align:left;gap:10px;padding:11px 10px;border:none;background:transparent;border-radius:8px;font-size:13px;line-height:1.55;margin-bottom:3px}
.q-link.current{background:var(--accent-bg);color:var(--accent);font-weight:600}
.q-no{font-variant-numeric:tabular-nums;font-size:12px;color:var(--muted);padding-top:1px;flex:none;width:25px}
.q-label{flex:1;min-width:0;overflow-wrap:anywhere}
.q-status{width:12px;height:12px;border:1px solid var(--line);border-radius:50%;margin-top:4px;flex:none}
.q-status.done{background:var(--accent);border-color:var(--accent)}
.q-status.done:after{content:'✓';display:block;text-align:center;font-size:9px;line-height:11px;color:var(--paper)}
main{min-width:0;padding:36px 38px 70px}
.reader{max-width:940px;margin:0 auto}
.reader-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}
.breadcrumb{font-size:13px;color:var(--muted);display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.breadcrumb strong{color:var(--ink);font-weight:600}
.view-switch{display:flex;gap:3px;border:1px solid var(--line);border-radius:9px;padding:3px;background:var(--paper)}
.view-switch button{border:0;font-size:13px;padding:7px 12px;background:transparent;white-space:nowrap}
.view-switch button.active{background:var(--accent-bg)}
.question-card{background:var(--paper);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);padding:36px 40px;margin-bottom:18px;min-width:0}
.q-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:20px}
.q-kicker{font-size:12px;font-weight:700;color:var(--accent);letter-spacing:.1em;font-variant-numeric:tabular-nums}
.done-btn{font-size:12px;padding:7px 10px}
.question-title{font-size:clamp(21px,2.4vw,28px);font-weight:700;line-height:1.55;letter-spacing:.005em;margin:0;overflow-wrap:anywhere}
.answer{border-top:1px solid var(--line);margin-top:26px;padding-top:24px;font-size:var(--reading);line-height:1.95;overflow-wrap:anywhere}
.paragraph{margin:0 0 13px;white-space:pre-wrap}
.paragraph:last-child{margin-bottom:0}
.list-line{display:flex;align-items:baseline;gap:8px;white-space:normal}
.list-line>.list-prefix{flex:none}
.list-line{display:block;padding-left:22px;text-indent:-22px}
.original-bold{font-weight:700}
.original-italic{font-style:italic}
.original-underline{text-decoration:underline}
.hl-yellow{background:var(--yellow);border-radius:2px;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.ink-blue{color:var(--blue)}
.ink-cyan{color:var(--cyan)}
.ink-red{color:var(--red)}
.no-marks .hl-yellow{background:transparent}
.no-marks .ink-red,.no-marks .ink-blue,.no-marks .ink-cyan{color:inherit}
.source-diagram{margin:20px 0 24px;display:flex;justify-content:center}
.diagram-button{padding:0;background:white;border:1px solid var(--line);overflow:hidden;max-width:100%;border-radius:8px;cursor:zoom-in}
.diagram-button img{display:block;width:min(440px,100%);height:auto}
.reveal{display:flex;justify-content:center;padding:26px 0 6px;border-top:1px solid var(--line);margin-top:26px}
.reveal button{padding:12px 24px;background:var(--accent-bg);border-color:transparent;color:var(--accent);font-weight:600}
.pager{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:19px}
.pager button{display:flex;align-items:center;gap:8px;font-size:14px;padding:10px 16px}
.pager span{font-size:13px;color:var(--muted);font-variant-numeric:tabular-nums}
.empty{text-align:center;padding:60px 15px;color:var(--muted)}
.menu-toggle{display:none}
.overlay{display:none}
.lightbox{position:fixed;inset:0;background:#101820dc;display:none;z-index:30;align-items:center;justify-content:center;padding:20px}
.lightbox.open{display:flex}
.lightbox-panel{background:var(--paper);padding:12px;border-radius:12px;width:min(900px,100%);max-height:94dvh;display:flex;flex-direction:column}
.lightbox-tools{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-bottom:10px}
.zoom-scroll{overflow:auto;min-height:0;max-height:75dvh;background:#fff;border-radius:6px}
.zoom-scroll img{display:block;width:100%;height:auto;max-width:none;margin:auto}
.lightbox-tools span{font-size:13px;color:var(--muted)}
.mobile-title{display:none}

.question-card{scroll-margin-top:88px}
