@import url('vendor/katex/katex.min.css');
:root{--bg:#f8f9f7;--paper:#fff;--ink:#253b38;--muted:#85928c;--line:#e8ede8;--green:#34856a;--soft:#eaf3ee;--ds:#4a9b80;--co:#df9c58;--os:#8292cd;--cn:#d17c94}*{box-sizing:border-box}body{margin:0;font-family:Inter,"Noto Sans CJK SC","Microsoft YaHei",system-ui,sans-serif;background:var(--bg);color:var(--ink);font-size:13px}button,input,select{font:inherit}button{cursor:pointer;border:0;background:transparent;color:inherit}button,input,select{outline-offset:4px}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--green)}button{transition:background .15s,transform .15s}button:hover{background:#edf3ee}a{color:inherit;text-decoration:none}.topbar{height:76px;display:flex;align-items:center;border-bottom:1px solid var(--line);background:#fff;padding:0 30px;gap:45px}.brand{display:flex;align-items:center;gap:12px;min-width:190px}.brand-icon{width:35px;height:35px;display:grid;place-items:center;color:white;background:#2f725d;border-radius:11px;font-size:32px}.brand strong{font-size:23px;letter-spacing:3px}.brand strong span{font-size:10px;letter-spacing:1px;color:var(--muted);margin-left:10px}.breadcrumb{font-size:12px;color:#7a8880;flex:1}.breadcrumb span{color:#c4cdc6;margin:0 15px}.top-actions{display:flex;align-items:center;gap:23px}.snapshot{font-size:11px;color:var(--muted);letter-spacing:1px}.text-button{font-size:12px;padding:8px}.text-button span{margin-left:12px}.shell{display:grid;grid-template-columns:230px 1fr;min-height:calc(100vh - 76px)}.sidebar{padding:29px 20px;background:#fcfdfb;border-right:1px solid var(--line);position:relative}.sidebar-heading{font-size:11px;color:#8a968f;margin-bottom:16px;letter-spacing:1px;display:flex;justify-content:space-between}.sidebar-heading span{font-size:8px;color:#b2bcb5;letter-spacing:1.6px}.searchbox{display:flex;align-items:center;border:1px solid #e1e7e0;background:white;border-radius:8px;height:38px;margin-bottom:25px;padding:0 9px;gap:7px}.searchbox>span{font-size:21px;color:#8a9a8f}.searchbox input{min-width:0;width:100%;border:0;background:transparent;font-size:10px;color:var(--ink);outline:none}.searchbox kbd{color:#adb7af;border:1px solid var(--line);padding:1px 4px;border-radius:3px}.search-results{position:absolute;z-index:20;top:115px;left:15px;width:290px;max-height:400px;overflow:auto;background:white;box-shadow:0 10px 50px #24382e20;border:1px solid var(--line);border-radius:12px;padding:7px}.search-results button{display:block;text-align:left;width:100%;padding:10px;border-radius:6px}.search-results small{display:block;color:var(--muted);margin-top:5px}.all-subject,.subject-button{width:100%;display:flex;align-items:center;text-align:left;gap:10px;height:43px;border-radius:8px;margin:5px 0;font-size:12px}.all-subject{padding:0 13px;margin-bottom:12px}.all-subject.active,.subject-button.active{background:#eaf2ec;color:#377b60;font-weight:600}.all-subject span{font-size:20px}.all-subject small,.subject-button small{margin-left:auto;color:#9ba79f;font-weight:400;font-size:10px}.subject-button{padding:0 13px}.subject-button i{width:8px;height:8px;border-radius:50%;background:var(--color);box-shadow:0 0 0 4px color-mix(in srgb,var(--color) 10%,transparent)}.side-divider{height:1px;background:var(--line);margin:23px 0}.field-label{display:block;color:#89958e;font-size:11px;margin:18px 0 9px}.sidebar select{border:1px solid #e2e8e1;background:white;border-radius:7px;height:34px;padding:0 8px;width:100%;font-size:11px;color:#4b6053}.year-fields{display:flex;align-items:center;gap:6px}.year-fields select{width:80px}.year-fields span{color:#b0b9b2}.quick-years{display:flex;gap:5px;margin:10px 0 24px}.quick-years button{font-size:10px;color:#8a978e;background:#f1f4ee;padding:5px 9px;border-radius:4px}.quick-years button.active{background:#e4efe7;color:var(--green)}.toggle-row{display:flex;align-items:center;justify-content:space-between;margin:18px 0;font-size:11px;color:#6e8073;cursor:pointer}.toggle-row input{position:absolute;opacity:0}.switch{width:28px;height:16px;background:#dbe2db;border-radius:12px;position:relative}.switch:after{content:'';position:absolute;top:3px;left:3px;width:10px;height:10px;background:white;border-radius:50%;transition:transform .2s}.toggle-row input:checked+.switch{background:#669a7a}.toggle-row input:checked+.switch:after{transform:translateX(12px)}.toggle-row input:focus-visible+.switch{outline:2px solid #366d50}.side-note{margin-top:55px;border:1px solid #e7ece3;border-radius:10px;background:linear-gradient(145deg,#f3f6ef,#fafbf7);padding:17px;color:#7d927a}.side-note>span{font-size:24px}.side-note p{font-size:11px;line-height:2;margin:8px 0 0}.source-tag{margin:22px 0;font-size:9px;color:#96a294;display:flex;gap:6px;align-items:center}.source-tag i{width:5px;height:5px;border-radius:50%;background:#7aa480}main{min-width:0;padding:32px 32px 16px}.page-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.eyebrow{font-size:9px;letter-spacing:2px;font-weight:600;color:#8e9d91}h1{font-size:29px;letter-spacing:1px;font-weight:550;margin:12px 0 8px}h1 span{color:#6a9b77}p{color:var(--muted)}.page-heading p{font-size:11px;margin:0}.outline-button{border:1px solid #dfe7de;border-radius:7px;padding:10px 13px;font-size:11px;background:white}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:23px}.metric{background:#fff;border:1px solid var(--line);border-radius:11px;padding:17px 20px;position:relative}.metric-label{font-size:11px;color:#8b978e}.metric strong{display:block;margin:9px 0 5px;font-size:28px;font-weight:550;letter-spacing:-1px}.metric strong small{font-size:11px;letter-spacing:0;margin-left:8px;color:#a0aaa2;font-weight:400}.metric-foot{font-size:9px;color:#91a093}.metric-symbol{position:absolute;right:20px;top:17px;color:#8bad98;font-size:21px}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:17px;align-items:stretch}.explorer{min-width:0;background:#fff;border:1px solid var(--line);border-radius:13px;overflow:hidden}.viewbar{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid #edf0ea;gap:10px}.view-tabs{display:flex;gap:4px}.view-tabs button{font-size:11px;color:#94a092;border-radius:6px;padding:9px 12px;white-space:nowrap}.view-tabs button.active{background:#eaf2eb;color:#477c58}.viewbar>span{font-size:9px;color:#99a494;white-space:nowrap}.graph-wrap{height:550px;position:relative;background:radial-gradient(ellipse at 25% 35%,#f1f8f2a0,transparent 55%),radial-gradient(ellipse at 78% 64%,#f8f0e4a0,transparent 50%),#fcfdfa;overflow:hidden}.graph-wrap:fullscreen{height:100vh;background:#fcfdfa}canvas{width:100%;height:100%;display:block;cursor:grab;touch-action:none}canvas.dragging{cursor:grabbing}.graph-caption{pointer-events:none;position:absolute;left:21px;top:21px;color:#9aab99;font-size:10px;display:flex;align-items:center;gap:7px}.live-dot{height:5px;width:5px;border-radius:50%;background:#96b895}.graph-legend{position:absolute;bottom:50px;left:20px;display:flex;gap:14px;font-size:9px;color:#9ca99a;pointer-events:none}.graph-legend span{display:flex;align-items:center;gap:5px}.legend-topic{width:7px;height:7px;border-radius:50%;background:#8aaa8d}.legend-question{width:4px;height:4px;background:#c2cebc;border-radius:50%}.graph-controls{position:absolute;bottom:15px;right:16px;border:1px solid #e6ebe0;background:#fff;box-shadow:0 3px 10px #5e745508;display:flex;border-radius:7px;align-items:center;height:32px}.graph-controls button{font-size:17px;width:30px;height:30px}.graph-controls span{font-size:9px;color:#99a48e;padding:0 5px;min-width:38px;text-align:center}.graph-help{position:absolute;left:20px;bottom:25px;font-size:9px;color:#a4afa0;pointer-events:none}.workspace-footer{display:flex;justify-content:space-between;gap:8px;align-items:center;border-top:1px solid var(--line);padding:12px 16px;font-size:9px;color:#9aa697;min-height:42px}.workspace-footer button{font-size:9px;white-space:nowrap}.inspector{background:#fff;border:1px solid var(--line);border-radius:13px;padding:21px 20px;max-height:650px;overflow:auto}.panel-eyebrow{color:#9caa98;letter-spacing:1.5px;font-size:9px;margin-bottom:15px;display:flex;justify-content:space-between}.inspector h2{font-size:18px;font-weight:550;margin:0 0 8px}.inspector>p{font-size:10px;line-height:1.8;margin:0 0 18px}.rank-list{margin-top:16px}.rank-item{display:flex;align-items:center;width:100%;gap:10px;text-align:left;padding:11px 0;border-bottom:1px solid #f1f4ee}.rank-num{font-size:10px;color:#aab5a6;width:16px}.rank-info{min-width:0;flex:1}.rank-info strong{display:block;font-size:11px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.rank-track{height:3px;background:#f0f3ec;border-radius:2px;margin-top:8px;width:100%}.rank-track span{display:block;height:100%;background:var(--color);border-radius:2px}.rank-count{font-size:15px;color:#5a7562}.rank-count small{font-size:8px;color:#a0ae99;margin-left:3px}.insight-box{background:#f5f7f0;border:1px solid #ecf0e3;border-radius:9px;padding:12px;margin-top:19px}.insight-box strong{font-size:10px;color:#7a8f63}.insight-box p{font-size:10px;line-height:1.9;margin:6px 0 0;color:#8c997c}.panel-section-title{font-size:11px;margin:22px 0 12px;display:flex;justify-content:space-between}.panel-section-title span{font-size:9px;color:#a3aea0}.mini-stats{display:flex;gap:20px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:14px 0;margin:18px 0}.mini-stats strong{font-size:22px;font-weight:500;display:block}.mini-stats span{font-size:9px;color:#98a393}.year-bars{height:65px;display:flex;gap:3px;align-items:end}.year-bars button{flex:1;background:#d6e7d7;border-radius:2px 2px 0 0;min-height:3px;padding:0}.year-bars button:hover{background:#6d9c79}.year-bar-labels{display:flex;justify-content:space-between;margin-top:6px;font-size:8px;color:#a0ad98}.question-link{display:block;width:100%;text-align:left;padding:11px 0;border-bottom:1px solid #edf1e9}.question-link .q-meta{display:flex;justify-content:space-between;color:#7b9479;font-size:10px;margin-bottom:5px}.question-link p{margin:0;font-size:10px;line-height:1.7;color:#8b9784;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.topic-chip{font-size:10px;background:#edf3ec;color:#658769;border-radius:5px;padding:5px 8px;margin:4px 4px 4px 0;display:inline-block}.back-button{font-size:10px;color:#91a08b;margin-bottom:14px;padding:0}.tooltip{position:absolute;pointer-events:none;background:#fffffff5;backdrop-filter:blur(12px);border:1px solid #e2eadf;border-radius:11px;box-shadow:0 12px 35px #31482e15;max-width:265px;padding:15px;z-index:5}.tooltip strong{font-size:13px;font-weight:550}.tooltip p{margin:8px 0 0;font-size:11px;line-height:1.7}.tooltip small{color:#92a08b;font-size:9px}.bottom-insights{display:flex;gap:30px;margin:27px 0 20px;align-items:center}.bottom-insights>div:first-child{min-width:200px}.bottom-insights h2{font-size:16px;font-weight:500;margin:9px 0}.bottom-insights p{font-size:10px;line-height:1.8;max-width:230px}.pattern-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;flex:1}.pattern-card{border-left:1px solid #e0e7dd;padding:2px 17px;text-align:left}.pattern-card small{font-size:9px;color:#92a18a}.pattern-card strong{display:block;font-size:13px;font-weight:500;margin:8px 0}.pattern-card p{font-size:10px;line-height:1.8;margin:0;color:#96a08d}footer{border-top:1px solid var(--line);padding:17px 0;color:#a3ad9a;font-size:8px;letter-spacing:1.4px;display:flex;justify-content:space-between}footer span{font-size:9px;letter-spacing:0}.alternate-view{height:550px;overflow:auto;padding:22px}.alternate-view h3{font-size:16px;font-weight:500;margin:0 0 9px}.alternate-view>p{font-size:10px;margin-bottom:22px}.heat-table{border-collapse:separate;border-spacing:3px;width:100%;font-size:9px}.heat-table th{font-weight:400;color:#8b9c84;padding:4px;white-space:nowrap;position:sticky;top:0;background:#fff;z-index:1}.heat-table th:first-child{text-align:left;left:0;z-index:2;min-width:145px}.heat-table td{border-radius:3px;text-align:center;min-width:22px;height:25px}.heat-table td button{width:100%;height:100%;font-size:9px}.heat-table .row-label{text-align:left;background:#fff;position:sticky;left:0;min-width:145px;z-index:1}.heat-table .row-label button{text-align:left;font-size:10px;white-space:nowrap}.table-actions{display:flex;gap:12px;margin-bottom:20px}.table-actions select{border:1px solid var(--line);border-radius:6px;padding:5px;font-size:10px}.question-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.question-card{border:1px solid var(--line);border-radius:9px;padding:15px;text-align:left}.question-card .q-meta{font-size:10px;color:#8d9d83;display:flex;justify-content:space-between}.question-card p{font-size:11px;line-height:1.8;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;min-height:57px}.pager{display:flex;justify-content:center;gap:15px;align-items:center;margin-top:22px;font-size:11px}.pager button{padding:8px 12px;border:1px solid var(--line);border-radius:6px}.empty{padding:40px 15px;text-align:center;color:#97a48e;line-height:2}dialog{border:1px solid #e1e8dc;border-radius:17px;padding:28px;max-height:86vh;width:min(850px,92vw);color:var(--ink);box-shadow:0 30px 100px #1b352d30}dialog::backdrop{background:#243e3655;backdrop-filter:blur(5px)}.dialog-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.dialog-header h2{font-size:22px;font-weight:500;margin:8px 0}.close-button{font-size:28px;border-radius:50%;width:35px;height:35px;color:#899981}.question-tabs{display:flex;gap:10px;margin:15px 0;border-bottom:1px solid var(--line);padding-bottom:10px}.question-tabs button{font-size:12px;padding:8px 15px;border-radius:6px}.question-tabs button.active{background:#e8f1e7;color:#44784a}#questionBody{font-size:15px;line-height:1.9;padding:12px 4px;overflow-wrap:anywhere}#questionBody img,#questionBody svg{max-width:100%;height:auto}#questionBody pre{overflow:auto;padding:15px;border-radius:7px}#questionBody table{border-collapse:collapse;max-width:100%;display:block;overflow:auto}#questionBody td,#questionBody th{padding:8px;border:1px solid #dce5da}#questionBody .option{margin:12px 0;display:flex;gap:12px}#questionBody .katex{font-size:1.1em}#questionBody .katex-display{overflow-x:auto;overflow-y:hidden}#questionBody p{color:#455644}#questionBody h3{font-size:17px;margin-top:28px}#questionBody a{color:#427958}#methodBody{line-height:2;font-size:13px;color:#6d7c64}#methodBody strong{color:#345a3f}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%) translateY(100px);background:#345c45;color:white;padding:12px 20px;border-radius:9px;z-index:50;font-size:12px;transition:transform .2s}#toast.show{transform:translateX(-50%) translateY(0)}[hidden]{display:none!important}button:disabled{opacity:.4;cursor:not-allowed}.error-box{color:#8e533f;background:#faf1e9;padding:20px;border-radius:9px;line-height:2}
@media(min-width:1600px){main{padding:36px 40px}.workspace{grid-template-columns:minmax(0,1fr) 325px}.graph-wrap,.alternate-view{height:620px}.inspector{max-height:720px}}
@media(max-width:1200px){.shell{grid-template-columns:195px 1fr}.sidebar{padding:25px 14px}main{padding:25px 20px}.workspace{grid-template-columns:minmax(0,1fr) 250px;gap:12px}.inspector{padding:18px 15px}.metrics{gap:9px}.metric{padding:15px}.metric-symbol{display:none}.viewbar{padding:12px 8px}.view-tabs button{padding:8px}.viewbar>span{display:none}.graph-help{font-size:8px;max-width:155px;line-height:1.6;bottom:14px}.bottom-insights{gap:10px}.pattern-card{padding:2px 10px}}
@media(max-width:950px){.workspace{grid-template-columns:1fr}.inspector{max-height:430px}.rank-list{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.bottom-insights{display:block}.pattern-cards{margin-top:15px}.topbar{gap:10px}.snapshot{display:none}.brand{min-width:155px}.graph-help{max-width:none}.graph-wrap{height:500px}.metrics{grid-template-columns:repeat(2,1fr)}}
@media(max-width:650px){.topbar{padding:0 18px;height:62px}.breadcrumb{display:none}.top-actions{margin-left:auto}.shell{display:block}.sidebar{border-right:0;border-bottom:1px solid var(--line);padding:15px;display:flex;flex-wrap:wrap;gap:8px;align-items:center}.sidebar-heading,.side-divider,.side-note,.source-tag,.field-label,.quick-years,.toggle-row{display:none}.searchbox{width:100%;margin:0}.all-subject{width:auto;margin:0;padding:0 10px;height:32px;font-size:10px}.all-subject small{display:none}#subjects{display:flex;flex:1}.subject-button{font-size:9px;height:32px;padding:0 7px;gap:6px}.subject-button small{display:none}.sidebar>select{width:100px}.year-fields{margin-left:auto}.year-fields select{width:76px}.search-results{top:60px;left:15px}.sidebar #showQuestions{display:none}main{padding:22px 14px}.page-heading{gap:8px}h1{font-size:23px}.eyebrow{font-size:8px}.outline-button{font-size:9px;padding:9px}.metrics{gap:8px}.metric strong{font-size:24px}.graph-wrap{height:480px}.graph-caption{left:14px;font-size:9px}.graph-controls{right:8px}.graph-legend{font-size:8px;left:12px}.graph-help{max-width:150px;left:12px}.question-grid{grid-template-columns:1fr}.rank-list{gap:0 12px}.pattern-cards{grid-template-columns:1fr}.pattern-card{padding:10px 15px;border-left:2px solid #d6e2ce;margin:5px 0}.bottom-insights p{max-width:none}dialog{padding:18px}.dialog-header h2{font-size:18px}.alternate-view{padding:18px 12px}.workspace-footer{font-size:8px}.view-tabs button{font-size:10px}footer{font-size:7px}.snapshot{display:none}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
#toast{opacity:0;visibility:hidden}#toast.show{opacity:1;visibility:visible}
@media(max-width:650px){.sidebar{display:grid;grid-template-columns:1fr 1fr;gap:8px}.searchbox{grid-column:1/-1}.all-subject{grid-column:1/-1;justify-content:flex-start}.all-subject small{display:block;margin-left:auto}#subjects{display:grid;grid-template-columns:1fr 1fr;grid-column:1/-1;gap:3px 8px}.subject-button{white-space:nowrap;font-size:11px;height:34px;padding:0 12px;margin:0}.subject-button small{display:block}.sidebar>select{width:100%}.year-fields{margin-left:0;justify-content:flex-end}.sidebar .toggle-row{display:flex;font-size:10px;margin:8px 0}.graph-help{font-size:8px}.snapshot{display:none}}

.graph-toolbar{position:absolute;top:12px;right:14px;display:flex;gap:3px;background:#fffffff2;border:1px solid #e3eade;border-radius:8px;padding:4px;box-shadow:0 3px 12px #385c3c06}.graph-toolbar button{padding:6px 8px;border-radius:5px;color:#65815d;font-size:10px}.graph-caption{top:24px;max-width:48%;line-height:1.5}.branch-actions{display:flex;flex-direction:column;align-items:flex-start;gap:9px;margin:14px 0}.branch-actions button{border:1px solid #dbe7d7;background:#f2f7ef;color:#537d49;border-radius:6px;padding:8px 12px;font-size:11px}.branch-actions span{font-size:9px;color:#8c9b83}
@media(max-width:1200px){.graph-caption{top:58px;max-width:none}.graph-help{max-width:180px}}
@media(max-width:650px){.graph-toolbar{left:12px;right:auto;top:12px}.graph-toolbar button{font-size:10px;padding:6px 10px}.graph-caption{top:58px;font-size:9px}.graph-help{max-width:145px;bottom:11px}}

.graph-toolbar{gap:1px}.graph-toolbar button{padding:6px 7px}#togglePhysics[aria-pressed="true"]{background:#e8f2e6;color:#417e4d}.graph-caption{top:60px;max-width:none}.branch-actions{flex-direction:row;flex-wrap:wrap}.branch-actions span{order:3;flex-basis:100%}.branch-actions button[aria-pressed="true"]{background:#d9ebd6}@media(max-width:650px){.graph-toolbar{right:10px;left:10px;justify-content:space-between}.graph-toolbar button{font-size:9px;padding:6px 4px}.graph-caption{top:58px}}
