:root{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Microsoft YaHei,sans-serif;color:#1b2733;background:#f4f6f9;font-synthesis:none;font-size:15px;--blue:#2f5d8c;--muted:#77879a;--line:#e7edf3;--pale:#eaf1f8}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select{touch-action:manipulation}button{cursor:pointer;border:0}button:disabled{opacity:.45;cursor:default}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #e0a458;outline-offset:3px}h1,h2,h3,p{margin:0}h2{font-size:18px}h3{font-size:16px}p{line-height:1.75}.app-shell{max-width:900px;margin:auto;min-height:100vh}.with-tabs{padding-bottom:calc(90px + env(safe-area-inset-bottom))}.app-header{height:58px;display:flex;align-items:center;justify-content:space-between;padding:0 18px;background:#fff;position:sticky;top:0;z-index:10;border-bottom:1px solid var(--line)}.app-header h1{font-size:17px;font-weight:600}.brand-dot{display:grid;place-items:center;width:28px;height:28px;background:var(--blue);border-radius:7px;color:#fff;font-size:15px}.header-space,.icon-button{width:30px}.icon-button{display:grid;place-items:center;background:transparent;color:var(--blue);padding:4px}.page{padding:18px 16px 24px}.stack{display:grid;gap:14px}.card{background:#fff;border-radius:14px;padding:18px;border:1px solid #eef1f5;box-shadow:0 3px 12px #1b273305}.section-title{display:flex;align-items:center;gap:7px;font-size:16px;margin:22px 0 12px;font-weight:600}.section-title:before{content:"";width:3px;height:14px;background:var(--blue);border-radius:2px}.muted{color:var(--muted);font-size:13px}.primary,.secondary,.danger{padding:12px 18px;border-radius:10px;display:inline-flex;justify-content:center;align-items:center;gap:7px;font-weight:600}.primary{background:var(--blue);color:#fff}.secondary{background:var(--pale);color:var(--blue)}.danger{background:#fcf0ee;color:#bb5446}.full{width:100%}.text-button{background:none;color:var(--blue);padding:8px}.error{color:#b64d42;font-size:14px}.error-banner{background:#fff0ed;border-radius:10px;padding:12px;line-height:1.7}.state{padding:36px 16px;text-align:center;color:var(--muted);line-height:1.8}.state button{margin-top:12px}.row{display:flex;align-items:center;gap:12px}.between{justify-content:space-between}.grow{flex:1;min-width:0}.badge{font-size:11px;padding:3px 7px;border-radius:5px;background:#e8f5ef;color:#3e9b7a;white-space:nowrap}.badge.vip{background:#fff4e6;color:#b78641}.chips{display:flex;gap:9px;overflow:auto;padding:0 0 4px;scrollbar-width:none}.chip{background:#fff;color:var(--muted);padding:8px 15px;border:1px solid var(--line);border-radius:22px;white-space:nowrap;font-size:13px}.chip.active{background:var(--blue);color:#fff;border-color:var(--blue)}.segmented{display:flex;padding:4px;background:var(--pale);border-radius:11px;margin:14px 0}.segmented button{flex:1;padding:10px;background:transparent;color:var(--muted);border-radius:8px;font-weight:600;font-size:14px}.segmented button.active{color:var(--blue);background:#fff;box-shadow:0 1px 4px #1b273308}.list-row{padding:16px 0;display:flex;align-items:center;gap:13px;border-bottom:1px solid var(--line)}.list-row:last-child{border-bottom:0}.list-row:first-child{padding-top:2px}.list-row:last-child{padding-bottom:2px}.list-row h3{font-size:15px;line-height:1.6;margin-bottom:5px}.cover{width:66px;height:66px;border-radius:10px;background:linear-gradient(135deg,#2f5d8c,#5187b5);display:grid;place-items:center;flex-shrink:0;color:#fff;object-fit:cover}.cover.teal{background:linear-gradient(135deg,#3c7a85,#60a2aa)}.cover.small{width:40px;height:44px;background:var(--pale);color:var(--blue)}.arrow{color:#9aa9ba;flex-shrink:0}.tabbar{display:flex;position:fixed;z-index:20;bottom:0;width:min(100%,900px);background:#fff;border-top:1px solid var(--line);padding:10px 10px calc(10px + env(safe-area-inset-bottom))}.tabbar a{flex:1;display:flex;align-items:center;flex-direction:column;gap:5px;color:#a6b2c0;font-size:11px}.tabbar a.active{color:var(--blue)}.welcome{background:linear-gradient(120deg,#2f5d8c,#417cac);color:#fff;border:0;padding:24px 20px}.welcome h2{font-size:25px;letter-spacing:.02em;margin-bottom:5px}.welcome p{color:#e2edf8;font-size:14px}.stats{display:flex;background:#ffffff16;border-radius:12px;margin-top:19px;padding:14px 0}.stats>div{flex:1;text-align:center;border-right:1px solid #ffffff25}.stats>div:last-child{border:0}.stats strong{display:block;font-size:23px;font-weight:600;font-variant-numeric:tabular-nums}.stats span{font-size:12px;opacity:.8;display:block;margin-top:5px}.entries{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}.entry{padding:16px 4px;border-radius:14px;background:#fff;box-shadow:0 2px 10px #1b273306;display:flex;align-items:center;flex-direction:column;gap:9px;font-size:13px;color:#1b2733}.entry .entry-icon{border-radius:12px;width:43px;height:43px;display:grid;place-items:center;background:#eaf1f8;color:var(--blue)}.entry:nth-child(2) .entry-icon{background:#fcf3e5;color:#bd8e47}.entry:nth-child(3) .entry-icon{background:#e8f4f6;color:#438491}.entry:nth-child(4) .entry-icon{background:#f3eaf4;color:#956a98}.tool-row{display:flex;align-items:center;gap:14px;padding:17px 16px;background:#fff;border-radius:13px}.tool-icon{width:38px;height:42px;border-radius:10px;background:var(--pale);color:var(--blue);display:grid;place-items:center}.form-label{display:block;font-size:13px;color:var(--muted);margin:14px 0 7px}.input{display:block;width:100%;border:1px solid #dce5ef;border-radius:10px;background:#fff;padding:12px 13px;color:#1b2733}.form-card{max-width:440px;margin:28px auto}.form-card h2{font-size:22px;margin-bottom:8px}.form-card .primary{margin-top:22px}.video-player{display:block;width:100%;aspect-ratio:16/9;background:#172737;border-radius:13px}.lesson{padding:14px 12px;border-radius:9px;background:#f7f9fb;display:flex;align-items:center;gap:10px;width:100%;text-align:left;color:#44596d}.lesson.active{color:var(--blue);background:var(--pale);font-weight:600}.lesson+.lesson{margin-top:8px}.article-body{white-space:pre-wrap;line-height:2;font-size:16px}.article-image{width:100%;border-radius:12px;max-height:340px;object-fit:cover}.answer-page{padding-bottom:120px}.question-material{white-space:pre-wrap;border-left:3px solid #c8d9e9;padding-left:14px;margin:16px 0;color:#4a6078;line-height:1.9}.question-stem{font-size:19px;line-height:1.85;font-weight:600;white-space:pre-wrap;margin:14px 0}.options{display:grid;gap:12px;margin-top:20px}.option{display:flex;align-items:flex-start;gap:13px;padding:16px;border-radius:12px;text-align:left;background:#fff;border:1px solid #e4ebf3;font-size:16px;line-height:1.65;color:#1b2733;width:100%}.option .letter{width:29px;height:29px;display:grid;place-items:center;border-radius:50%;background:#eef2f7;color:#77879a;flex-shrink:0;line-height:1}.option.selected{border-color:var(--blue);background:#f0f6fb}.option.selected .letter{background:var(--blue);color:#fff}.option.correct{border-color:#3e9b7a;background:#eef8f3}.option.incorrect{border-color:#e0705c;background:#fff4f1}.explanation{background:#f0f7f5;border-radius:12px;padding:17px;line-height:1.85;font-size:14px}.explanation h3{color:#3e9b7a;margin-bottom:6px}.question-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:9px}.question-grid button{padding:10px 0;border-radius:8px;color:var(--muted);background:#edf2f7}.question-grid button.answered{background:#dbeaf7;color:var(--blue)}.question-grid button.current{outline:2px solid var(--blue)}.answer-actions{position:fixed;bottom:0;left:50%;transform:translate(-50%);width:min(100%,900px);display:flex;gap:10px;padding:14px 16px calc(14px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--line);z-index:25}.answer-actions>button{flex:1;padding:13px 7px;font-size:14px}.progress-track{height:5px;background:#eaf0f6;border-radius:6px;overflow:hidden;margin-top:15px}.progress-track i{display:block;height:100%;background:var(--blue);border-radius:6px}.score{width:130px;height:130px;border-radius:50%;border:9px solid #d9e7f4;border-top-color:var(--blue);margin:12px auto 20px;display:grid;place-content:center;text-align:center}.score strong{font-size:34px;color:var(--blue)}.meta{display:flex;gap:16px;justify-content:center;color:var(--muted);font-size:13px}.record-row{display:flex;align-items:center;justify-content:space-between;gap:15px}.record-row strong{font-size:24px;color:var(--blue)}.profile-avatar{width:52px;height:52px;border-radius:50%;background:var(--pale);color:var(--blue);display:grid;place-items:center;font-size:24px;flex-shrink:0}.modal-overlay{position:fixed;inset:0;background:#132f4a66;z-index:40;display:flex;align-items:flex-end;justify-content:center}.modal-sheet{background:#fff;border-radius:20px 20px 0 0;padding:22px;width:min(100%,900px);max-height:75vh;overflow:auto}.modal-sheet h2{margin-bottom:18px}.space{height:12px}@media(min-width:720px){.page{padding:28px 32px}.entries{gap:15px}.entry{padding:22px}.welcome{padding:28px}.course-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.course-grid .list-row{padding:16px;border:1px solid var(--line);border-radius:12px}.course-grid.card{padding:16px}.answer-page{max-width:760px;margin:auto}.app-header{padding:0 32px}.question-stem{font-size:20px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}:root .list-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.list-filters .form-label{margin:0}.filter-actions{display:flex;gap:10px;align-items:end}.field-error{display:block;color:#b64d42;font-size:12px;line-height:1.6;margin-top:5px}@media(max-width:480px){:root .list-filters{grid-template-columns:1fr}.filter-actions button{flex:1}}html:has(dialog[open]),body:has(dialog[open]){overflow:hidden}.list-filter-button{position:relative;display:grid;place-items:center;min-width:44px;min-height:44px;border-radius:10px;background:#fff;color:var(--blue);border:1px solid var(--line)}.list-filter-button .filter-dot{position:absolute;right:7px;top:7px;width:6px;height:6px;border-radius:50%;background:var(--blue)}.list-filter-sheet{position:fixed;inset:auto 0 0;margin:0 auto;width:min(100%,540px);max-height:85dvh;overflow:auto;padding:20px 20px calc(24px + env(safe-area-inset-bottom));border:0;border-radius:18px 18px 0 0;background:#fff;color:inherit}.list-filter-sheet::backdrop{background:#13263866}.list-filter-sheet .filter-actions{margin-top:24px}.list-filter-sheet .filter-actions button{flex:1}.list-more{text-align:center;min-height:32px}
