:root{--bg:#f6f7f2;--paper:#fff;--ink:#21382f;--muted:#7d877f;--green:#285443;--light:#e9efe6;--line:#e4e8df;--accent:#dfe9b1;--danger:#b75548;--text-size:17px;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button{border:0;background:none;color:inherit}a{color:var(--green);text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #b7c965;outline-offset:3px}button:disabled{opacity:.45;cursor:default}svg{width:22px;height:22px;flex-shrink:0}h1,h2,h3,p{margin:0}header{height:88px;max-width:1152px;margin:auto;display:flex;align-items:center;justify-content:space-between;padding:0 34px}.brand{display:flex;align-items:center;gap:12px}.brand-mark{background:var(--green);color:#e6efc7;width:42px;height:42px;border-radius:14px;display:grid;place-items:center}.brand-mark svg{width:26px;height:26px}.brand-name{font-size:23px;font-weight:750;letter-spacing:2px}.brand small{margin-left:13px;color:var(--muted);font-size:12px;letter-spacing:1px}.header-right{display:flex;align-items:center;gap:20px;font-size:12px;color:var(--muted)}.local-badge{display:flex;align-items:center;gap:6px}.local-badge i{width:6px;height:6px;border-radius:100%;background:#74935d}.icon-btn{width:42px;height:42px;display:inline-grid;place-items:center;border:1px solid var(--line);border-radius:50%;background:#fff}.app-layout{max-width:1152px;margin:auto;display:grid;grid-template-columns:172px 1fr;gap:32px;padding:20px 34px 50px}.nav{display:flex;flex-direction:column;gap:10px;position:sticky;top:30px;align-self:start}.nav button{display:flex;align-items:center;gap:13px;text-align:left;height:50px;padding:0 16px;border-radius:12px;color:#7a857c;font-size:14px}.nav button.active{background:var(--green);color:white}.nav-note{border-top:1px solid var(--line);margin:30px 8px 0;padding-top:22px;font-size:11px;line-height:1.9;color:#9aA096}.nav-note strong{color:#6f7d6c;display:block;font-weight:500}.page{min-width:0}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:650;text-transform:uppercase;color:var(--muted)}.page-heading{display:flex;justify-content:space-between;align-items:center;margin:0 0 23px}.page-heading h1{font-size:24px;letter-spacing:.5px}.page-heading p{color:var(--muted);font-size:12px;margin-top:8px}.date-chip{font-size:11px;color:#7f8b7c}.hero{position:relative;overflow:hidden;background:#285443;color:#fff;border-radius:22px;padding:32px;margin-bottom:20px;min-height:235px}.hero-copy{position:relative;z-index:1;max-width:65%}.hero .eyebrow{color:#bdcdb6;font-size:10px;letter-spacing:2.4px}.hero h2{font-size:30px;line-height:1.5;letter-spacing:1px;font-weight:600;margin:12px 0 8px}.hero p{font-size:12px;color:#b9cdbf;line-height:1.8}.hero .primary{background:#e3edbc;color:#294832;padding:13px 19px;margin-top:23px;font-size:13px}.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;gap:12px;border-radius:10px;font-weight:600;min-height:46px;padding:12px 20px;font-size:14px}.primary{background:var(--green);color:white}.secondary{background:#f1f4ed;color:var(--green);border:1px solid var(--line)}.primary svg{width:17px;height:17px}.scenery{position:absolute;right:-5px;bottom:0;width:300px;height:235px;opacity:.8}.scenery svg{width:100%;height:100%}.stats-strip{display:grid;grid-template-columns:repeat(3,1fr);background:#fff;border:1px solid var(--line);border-radius:16px;margin-bottom:31px;padding:22px 0}.stat{text-align:center;border-right:1px solid var(--line)}.stat:last-child{border:0}.stat strong{font-size:25px;letter-spacing:-.7px;font-weight:650}.stat small{font-size:11px;color:var(--muted);margin-left:4px}.stat p{font-size:11px;color:var(--muted);margin-top:7px}.section-head{display:flex;align-items:center;justify-content:space-between;margin:22px 0 17px}.section-head h2{font-size:18px;font-weight:650}.section-head span{font-size:11px;color:var(--muted)}.tool-row{display:flex;gap:10px;margin-bottom:16px}.search{position:relative;flex:1;min-width:0}.search svg{position:absolute;top:13px;left:13px;color:#94a08f;width:17px;height:17px}.search input{width:100%;height:44px;border:1px solid var(--line);background:#fff;border-radius:10px;padding:0 14px 0 39px;outline-offset:0;font-size:12px;color:var(--ink)}select{height:44px;border:1px solid var(--line);background:#fff;border-radius:10px;padding:0 11px;color:#687764;font-size:12px;max-width:125px}.years{display:flex;gap:7px;overflow-x:auto;scrollbar-width:none;margin:0 0 18px;padding:1px 0 3px}.chip{white-space:nowrap;border:1px solid var(--line);background:#fff;border-radius:8px;padding:8px 13px;font-size:12px;color:#7b8578}.chip.active{background:#e7eddc;border-color:#e1e8d5;color:#375b36;font-weight:650}.paper-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.paper-card{display:flex;flex-direction:column;text-align:left;background:#fff;border:1px solid var(--line);border-radius:15px;padding:20px;transition:border-color .2s,transform .2s}.paper-card:hover{transform:translateY(-2px);border-color:#afc29d}.paper-top{display:flex;justify-content:space-between;align-items:center}.paper-icon{background:#eff3e8;color:#628251;border-radius:10px;display:grid;place-items:center;width:38px;height:40px}.paper-icon svg{width:21px;height:21px}.tag{font-size:10px;color:#8b987d;background:#f2f5ec;padding:5px 7px;border-radius:5px}.paper-card h3{font-size:16px;font-weight:650;margin:16px 0 9px}.paper-desc{font-size:11px;color:#899183;line-height:1.8}.paper-bottom{display:flex;align-items:center;justify-content:space-between;margin-top:20px;font-size:11px;color:#87917d}.paper-bottom svg{width:17px;height:17px;color:#637b50}.mini-progress{height:3px;background:#edf0e8;border-radius:9px;margin-top:11px;overflow:hidden}.mini-progress i{display:block;height:100%;background:#8bA46e}.footer-note{font-size:11px;color:#929b8e;text-align:center;padding:28px 0 0;line-height:1.9}.empty{background:white;border:1px dashed #d6dfcc;border-radius:18px;text-align:center;padding:48px 22px;color:#8a9482;line-height:1.9;font-size:13px}.empty svg{width:42px;height:42px;color:#8ca478;margin-bottom:15px}.empty h3{color:var(--ink);font-size:18px;margin-bottom:8px}.empty button{margin-top:22px}.continue-card{background:#eaf0df;border:1px solid #dde6ce;border-radius:13px;display:flex;align-items:center;justify-content:space-between;text-align:left;width:100%;padding:16px 18px;margin:0 0 20px;gap:15px}.continue-card strong{font-size:13px;display:block;margin-bottom:6px}.continue-card small{font-size:11px;color:#7f8a70}.record-list{display:grid;gap:12px}.record{background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px;text-align:left;width:100%}.record-top{display:flex;justify-content:space-between;color:#8a947f;font-size:10px;margin-bottom:10px;gap:10px}.record-stem{font-size:14px;line-height:1.8;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.record-bottom{font-size:11px;color:#9ca490;margin-top:12px;display:flex;justify-content:space-between}.danger{color:var(--danger)}.success{color:#428265}.row-actions{display:flex;gap:10px;margin-bottom:20px}.row-actions>*{flex:1}.quiz-wrap{max-width:760px;margin:0 auto;padding:22px 24px 100px}.quiz-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:25px;gap:10px}.quiz-header h1{font-size:14px;text-align:center;line-height:1.7}.text-btn{display:flex;align-items:center;gap:6px;color:#77866e;font-size:12px;min-height:44px}.quiz-progress-row{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#8a967f;margin-bottom:10px}.progress{background:#e3e9dc;height:4px;border-radius:4px;overflow:hidden}.progress i{display:block;height:100%;background:var(--green);transition:width .2s}.question-panel{background:#fff;border:1px solid var(--line);border-radius:20px;padding:28px;margin-top:24px}.question-label{display:flex;align-items:center;gap:9px;margin-bottom:20px}.type-tag{background:#e9efdf;color:#688153;padding:5px 9px;font-size:11px;border-radius:6px}.question-label small{font-size:11px;color:#95a08c}.question-stem{font-size:calc(var(--text-size) + 1px);line-height:1.95;font-weight:550;margin-bottom:28px;overflow-wrap:anywhere}.options{display:grid;gap:12px}.option{display:flex;align-items:flex-start;gap:14px;padding:15px 16px;border:1px solid #e1e7da;background:#fcfdf9;border-radius:12px;text-align:left;line-height:1.8;font-size:var(--text-size);width:100%;transition:background .15s}.option .letter{width:28px;height:28px;display:grid;place-items:center;flex-shrink:0;border:1px solid #dbe3d2;border-radius:50%;font-size:12px;color:#849477;margin-top:2px}.option.selected{background:#edf2e5;border-color:#708b58}.option.selected .letter{background:var(--green);color:#fff;border-color:var(--green)}.option.correct{background:#eef6ec;border-color:#6e9e65}.option.wrong{background:#fff3ef;border-color:#c77a68}.option.correct .letter{background:#578653;border-color:#578653;color:#fff}.option.wrong .letter{background:#b97564;border-color:#b97564;color:#fff}.option:disabled{opacity:1}.quiz-controls{display:flex;gap:12px;margin-top:24px}.quiz-controls .primary{flex:1}.answer-panel{border-top:1px solid var(--line);margin-top:24px;padding-top:24px;line-height:1.9}.answer-result{font-size:17px;font-weight:650;margin-bottom:10px}.answer-details{font-size:13px;color:#7c8971}.answer-details strong{color:var(--green);margin-right:14px}.source-links{display:flex;flex-wrap:wrap;gap:14px;font-size:11px;margin-top:18px;color:#7c8a70}.source-note{font-size:11px;color:#a0834b;line-height:1.9;margin-top:12px;background:#faf7e9;padding:10px;border-radius:8px}.quiz-note{font-size:11px;color:#95a08b;text-align:center;margin-top:18px;line-height:1.8}.quiz-toolbar{display:flex;justify-content:space-between;align-items:center;margin-top:16px}.loading,.boot{padding:80px 24px;text-align:center;color:#7a8970}.settings-card{background:#fff;border:1px solid var(--line);padding:24px;border-radius:17px;margin-bottom:16px}.settings-card h2{font-size:16px;margin-bottom:12px}.settings-card p{font-size:12px;line-height:1.9;color:#8a957e}.settings-card .row-actions{margin:20px 0 0}.db-state{display:flex;align-items:center;gap:8px;font-size:12px;color:#6b8556;margin:16px 0}.dot{width:7px;height:7px;background:#7e9c65;border-radius:50%}.settings-card ul{padding-left:18px;font-size:12px;line-height:2;color:#859377}.answer-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:9px;margin-top:20px;max-height:48vh;overflow:auto;padding:3px}.answer-grid button{aspect-ratio:1;border-radius:8px;background:#f0f3eb;color:#7d8e6e;font-size:12px}.answer-grid .done{background:#dfebd6;color:#527246}.answer-grid .bad{background:#f6dfd7;color:#ac6e5c}.answer-grid .current{outline:2px solid var(--green);outline-offset:1px}dialog{border:0;border-radius:20px;padding:26px;max-width:450px;width:calc(100% - 36px);color:var(--ink);box-shadow:0 20px 90px #243a3333}dialog::backdrop{background:#1d302c66;backdrop-filter:blur(3px)}.modal-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.modal-title h2{font-size:18px}.modal-body{font-size:13px;line-height:2;color:#859279}.dialog-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:24px}#toast{position:fixed;bottom:95px;left:50%;transform:translateX(-50%) translateY(10px);padding:12px 20px;max-width:90vw;border-radius:12px;background:#223e32;color:white;font-size:12px;z-index:100;opacity:0;pointer-events:none;transition:.2s;text-align:center}#toast.show{opacity:1;transform:translateX(-50%) translateY(0)}.history-date{font-size:12px;font-weight:600;color:#768669;margin:20px 0 12px}.history-score{font-size:12px;min-width:44px;text-align:right;line-height:1.7}.error-banner{background:#fff0e7;color:#955b3f;border:1px solid #f0c8b3;border-radius:12px;padding:16px;font-size:13px;line-height:1.8}.summary{background:#fff;border:1px solid var(--line);border-radius:20px;padding:45px 24px;text-align:center}.summary .big-score{font-size:64px;font-weight:650;margin:20px 0 7px;color:var(--green)}.summary h1{font-size:24px}.summary p{font-size:13px;color:#8c9880;line-height:1.9}.summary .stats-strip{margin:25px 0;border:0}.summary .row-actions{margin:25px 0 0}.notice{color:#8f9b82;font-size:11px;line-height:1.9;margin:15px 0}.results-badge{font-size:11px;background:#edf2e6;border-radius:5px;padding:4px 7px;color:#76886a}.search-results{display:grid;gap:12px}.save-error{margin-bottom:15px}.match-mark{color:var(--green)}
@media(min-width:1100px){.hero{min-height:248px}.hero h2{font-size:32px}.scenery{width:335px;height:250px}}
@media(max-width:760px){header{height:77px;padding:0 22px}.brand-name{font-size:21px}.brand-mark{width:37px;height:37px;border-radius:12px}.brand small{display:none}.header-right{gap:13px}.header-right .local-badge{font-size:10px}.icon-btn{width:36px;height:36px}.icon-btn svg{width:18px;height:18px}.app-layout{display:block;padding:12px 20px 115px}.nav{position:fixed;bottom:0;left:0;right:0;top:auto;z-index:20;flex-direction:row;justify-content:space-around;gap:0;background:#fffefa;border-top:1px solid var(--line);padding:9px 9px calc(10px + env(safe-area-inset-bottom));backdrop-filter:blur(12px)}.nav button{flex:1;display:flex;flex-direction:column;gap:5px;height:49px;padding:3px 0;font-size:10px;border-radius:0;justify-content:center}.nav button.active{color:var(--green);background:none;font-weight:700}.nav button.active svg{background:#e8edda;box-shadow:0 0 0 6px #e8edda;border-radius:4px}.nav button svg{width:21px;height:21px}.nav-note{display:none}.page-heading{margin:2px 0 21px}.page-heading h1{font-size:22px}.page-heading p{font-size:11px}.date-chip{font-size:10px}.hero{padding:25px 23px;min-height:238px;border-radius:19px;margin-bottom:16px}.hero-copy{max-width:82%}.hero h2{font-size:26px;line-height:1.55;margin-top:12px}.hero p{font-size:11px;max-width:215px}.hero .primary{font-size:12px;padding:11px 16px;margin-top:21px;min-height:42px}.scenery{width:230px;height:215px;right:-60px;opacity:.55}.hero .eyebrow{font-size:9px}.stats-strip{padding:20px 0;margin-bottom:27px;border-radius:14px}.stat strong{font-size:24px}.stat p{font-size:10px;margin-top:6px}.section-head{margin-bottom:16px}.section-head h2{font-size:17px}.tool-row{gap:8px}.tool-row input,select{font-size:11px}.paper-grid{gap:11px}.paper-card{padding:15px 13px;border-radius:13px}.paper-card h3{font-size:14px;margin-top:14px;line-height:1.7}.paper-icon{width:32px;height:35px}.tag{font-size:9px;padding:4px 5px}.paper-desc{font-size:9px;line-height:1.9}.paper-bottom{margin-top:16px;font-size:9px}.chip{font-size:11px;padding:8px 12px}.years{gap:6px}.footer-note{font-size:10px}.quiz-wrap{padding:14px 17px 45px}.quiz-header{margin-bottom:18px}.question-panel{padding:22px 18px;border-radius:17px;margin-top:20px}.question-stem{font-size:var(--text-size);line-height:1.95;margin-bottom:23px}.option{padding:13px 12px;font-size:calc(var(--text-size) - 1px);gap:11px}.option .letter{width:26px;height:26px;font-size:11px}.quiz-controls{gap:8px}.quiz-controls .secondary{padding:12px 15px}.settings-card{padding:20px}.row-actions .primary,.row-actions .secondary{font-size:12px;padding:12px}.summary{padding:35px 16px}.summary .stat strong{font-size:21px}.continue-card{padding:15px}.continue-card strong{font-size:12px}.continue-card small{font-size:10px}}
@media(max-width:355px){.app-layout{padding-left:14px;padding-right:14px}.paper-grid{grid-template-columns:1fr}.hero h2{font-size:24px}.header-right .local-badge{display:none}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
