:root{font-family: -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:#233c38;background:#f5f6f2;font-synthesis:none;--green:#214f44;--muted:#7c8982;--line:#e4e8df;--lime:#d7ebae;--red:#a83e36}*{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:disabled{cursor:default;opacity:.45}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #80a4e0;outline-offset:3px}button{border:0}a{color:inherit}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:234px;padding:35px 25px;background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;z-index:10}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;font-weight:750;font-size:19px;letter-spacing:1px}.brand img{width:39px;height:39px}.brand small{display:block;color:var(--muted);font-size:10px;letter-spacing:2px;margin-top:4px;font-weight:500}.nav-caption{font-size:11px;letter-spacing:2px;color:#9baba3;margin:48px 14px 15px}.nav{display:flex;flex-direction:column;gap:9px}.nav a{display:flex;align-items:center;gap:13px;padding:14px;border-radius:9px;text-decoration:none;font-size:14px;color:#748079}.nav a.active{background:#edf3e8;color:var(--green);font-weight:650}.nav a b{margin-left:auto;font-size:11px;background:#e1e9d7;border-radius:5px;padding:2px 6px}.sidebar-note{margin-top:auto;border-top:1px solid var(--line);padding:22px 9px 0;color:#8d9790;font-size:11px;line-height:1.9}.sidebar-note strong{display:block;color:#68796e;font-size:12px;font-weight:500}.main{margin-left:234px;padding:0 52px 48px;max-width:1530px}.topbar{height:88px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);font-size:12px;color:#829087}.status{display:flex;align-items:center;gap:7px}.dot{width:6px;height:6px;background:#6b9864;border-radius:50%}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;margin:32px 0 25px;gap:15px}.eyebrow{font-size:10px;letter-spacing:2px;color:#859279;margin:0 0 9px}.page-heading h1{font-size:27px;letter-spacing:1px;margin:0;font-weight:650}.subtle{font-size:13px;line-height:1.8;color:var(--muted)}.page-heading p{margin:10px 0 0}.date-tag{font-size:12px;color:#869281;white-space:nowrap}.hero{background:#173c38;border-radius:14px;padding:32px 35px;color:#fff;display:flex;align-items:center;justify-content:space-between;gap:18px;position:relative;overflow:hidden;min-height:212px}.hero h2{font-size:25px;line-height:1.6;font-weight:550;letter-spacing:1px;margin:12px 0 8px}.hero p{color:#b7c9bf;font-size:12px;line-height:1.8;margin:0 0 20px}.pill{display:inline-block;border-radius:4px;background:#38574c;color:#d7e7c1;padding:4px 8px;font-size:10px;letter-spacing:1px}.primary,.secondary,.danger{display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:13px 21px;border-radius:7px;min-height:44px;font-size:13px;font-weight:600;text-decoration:none;background:var(--green);color:#fff}.hero .primary{background:var(--lime);color:#274633}.primary svg{width:17px;height:17px}.secondary{background:#fff;border:1px solid #dce3d6;color:#52634f}.danger{background:#fff1ee;color:var(--red)}.hero-art{width:200px;height:160px;position:relative;flex-shrink:0}.orbit{border:1px solid #47614f;width:160px;height:160px;position:absolute;right:0;border-radius:50%}.orbit:after{content:'';position:absolute;inset:20px;border-radius:50%;border:1px dashed #4c6655}.book-art{position:absolute;left:0;top:24px;width:128px;height:122px;border-radius:5px 12px 12px 5px;background:#e2ebd1;transform:rotate(-10deg);box-shadow:8px 7px 0 #77937a,12px 12px 0 #2d5044;display:flex;align-items:center;justify-content:center}.book-art:before{content:'';position:absolute;left:14px;top:0;bottom:0;border-left:1px solid #b4c3a5}.book-art svg{width:52px;height:52px;color:#4f6c52;stroke-width:1}.star-art{position:absolute;right:8px;bottom:16px;width:46px;height:46px;background:var(--lime);border-radius:50%;color:#315039;display:grid;place-items:center;box-shadow:0 0 0 8px #173c38}.stats{display:grid;grid-template-columns:repeat(4,1fr);margin:22px 0 31px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:22px 0}.stat{padding:0 24px;border-right:1px solid var(--line)}.stat:last-child{border:0}.stat span{font-size:11px;color:var(--muted);display:flex;align-items:center;gap:8px}.stat svg{width:16px;height:16px}.stat strong{display:block;font-size:29px;letter-spacing:-1px;font-weight:600;margin:10px 0 0}.stat small{font-size:11px;margin-left:6px;font-weight:400;color:#8a958b;letter-spacing:0}.section-head{display:flex;justify-content:space-between;align-items:center;margin:27px 0 16px;gap:15px}.section-head h2{font-size:17px;margin:0;font-weight:650}.text-button{background:none;color:#748269;font-size:12px;padding:8px 0}.chapter-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.chapter{background:#fff;border:1px solid var(--line);border-radius:11px;padding:22px;transition:border-color .2s,transform .2s}.chapter:hover{border-color:#a0b895;transform:translateY(-2px)}.chapter-top{display:flex;align-items:center;gap:14px}.chapter-icon{background:#f0f3e9;border-radius:9px;width:43px;height:43px;display:grid;place-items:center;color:#64795a}.chapter h3{font-size:15px;margin:0 0 7px;font-weight:600}.chapter .subtle{font-size:11px;margin:0}.chapter-bottom{display:flex;align-items:center;justify-content:space-between;margin-top:19px;font-size:11px;color:#8a9586}.chapter-bottom button{background:none;color:#45663f;display:flex;gap:6px;align-items:center;font-size:12px}.chapter-bottom svg{width:16px;height:16px}.track{height:4px;background:#f0f2eb;border-radius:4px;margin-top:12px;overflow:hidden}.track i{display:block;height:100%;background:#9fb982;border-radius:4px}.footer-note{font-size:11px;color:#8b978b;text-align:center;margin:28px 0 0;line-height:1.9}.toolbar{display:flex;gap:12px;flex-wrap:wrap;margin:22px 0}.toolbar input,.toolbar select{background:#fff;border:1px solid var(--line);padding:12px 14px;border-radius:7px;color:#3e5348;min-height:44px}.toolbar input{flex:1;min-width:180px}.toolbar select{max-width:100%;font-size:12px}.list{display:flex;flex-direction:column;gap:12px}.question-row{border:1px solid var(--line);background:#fff;border-radius:10px;padding:20px;display:flex;gap:15px;align-items:center;text-align:left;width:100%;color:inherit}.question-row:hover{border-color:#9eb193}.question-row .row-body{flex:1;min-width:0}.question-row p{margin:8px 0 0;font-size:14px;line-height:1.7}.question-row .row-meta{font-size:11px;color:#8a9586;display:flex;flex-wrap:wrap;align-items:center;gap:10px}.badge{display:inline-flex;font-size:10px;padding:4px 7px;border-radius:4px;background:#f0f4e9;color:#687b55;white-space:nowrap}.badge.multi{background:#eef0fa;color:#7473a0}.badge.tf{background:#edf4f3;color:#5f807b}.wrong-badge{color:#ae6b5f;font-size:11px}.empty{background:#fff;border:1px solid var(--line);border-radius:12px;text-align:center;padding:55px 20px}.empty svg{width:42px;height:42px;color:#9caf8b}.empty h2{font-size:20px}.empty p{font-size:13px;color:var(--muted);line-height:1.9}.quiz-head{display:flex;align-items:center;justify-content:space-between;margin:27px 0 15px;gap:12px}.quiz-head button{display:flex;align-items:center;gap:7px}.quiz-head p{font-size:12px;color:var(--muted);margin:0}.quiz-layout{display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:22px;align-items:start}.quiz-card{background:#fff;border:1px solid var(--line);border-radius:13px;padding:28px}.quiz-meta{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:11px;color:var(--muted)}.quiz-meta>span{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.icon-button{background:transparent;color:#86937e;padding:7px;border-radius:5px;display:inline-flex;align-items:center;justify-content:center;min-width:36px;min-height:36px;font-size:25px}.icon-button.saved{color:#b78b2e;background:#fcf6df}.question-title{font-size:19px;font-weight:550;line-height:1.85;margin:20px 0 15px;overflow-wrap:anywhere}.question-number{color:#729264;margin-right:8px}.question-hint{font-size:11px;color:#98a08f;margin:0 0 18px}.options{display:flex;flex-direction:column;gap:12px}.option{display:flex;align-items:flex-start;gap:13px;border:1px solid #e4e8df;border-radius:8px;padding:15px 17px;background:#fff;color:#455244;text-align:left;width:100%;line-height:1.7;font-size:14px;opacity:1!important}.option-key{border:1px solid #dde3d7;border-radius:5px;width:27px;height:27px;display:grid;place-items:center;font-size:12px;flex-shrink:0;line-height:1}.option.selected{background:#f0f5e7;border-color:#92ac79}.option.selected .option-key{background:#74905c;color:#fff;border-color:#74905c}.option.correct{border-color:#92b29a;background:#f0f8ee}.option.correct .option-key{background:#678866;color:white;border-color:#678866}.option.incorrect{border-color:#dbb0a4;background:#fff5f1}.option.incorrect .option-key{background:#bd7d6b;color:white;border-color:#bd7d6b}.option-text{flex:1;overflow-wrap:anywhere}.option-state{font-size:10px;color:#78916b;white-space:nowrap;align-self:center}.incorrect .option-state{color:#a76756}.quiz-submit{margin-top:22px;display:flex;justify-content:space-between;align-items:center;gap:10px}.answer-panel{background:#f6f8f0;border-radius:9px;padding:18px;margin-top:22px;font-size:13px;line-height:1.9}.answer-panel.wrong{background:#fff5ef}.answer-panel strong{color:#547349}.answer-panel.wrong strong{color:#a6604f}.answer-panel p{margin:6px 0;color:#6c7968;font-size:12px}.answer-panel .answer-line{font-size:14px;color:#4d6148}.answer-panel .text-button{text-decoration:underline;margin-right:14px}.quiz-controls{display:flex;justify-content:space-between;align-items:center;margin-top:20px;gap:10px}.quiz-controls .secondary{background:transparent}.question-map{background:#fff;border:1px solid var(--line);border-radius:12px;padding:18px}.question-map h3{font-size:13px;margin:0 0 8px}.question-map p{font-size:11px;color:var(--muted);line-height:1.8}.map-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;max-height:380px;overflow:auto;margin-top:15px}.map-grid button{padding:0;height:30px;border-radius:4px;background:#f2f4ed;font-size:10px;color:#829079;border:1px solid transparent}.map-grid button.current{border-color:#53763f}.map-grid button.right{background:#e2efda;color:#527e42}.map-grid button.wrong{background:#f9e5db;color:#b7725a}.legend{display:flex;gap:9px;font-size:10px;color:#94a089;flex-wrap:wrap;margin-top:15px}.legend span:before{content:'';display:inline-block;width:6px;height:6px;background:#e2efda;margin-right:4px}.legend span:last-child:before{background:#f9e5db}.page-controls{display:flex;justify-content:center;gap:20px;align-items:center;margin:25px 0;font-size:12px;color:var(--muted)}.settings-card{background:white;border:1px solid var(--line);border-radius:12px;padding:26px;margin:18px 0}.settings-card h2{font-size:16px;margin:0 0 12px}.settings-card p{font-size:13px;color:var(--muted);line-height:1.9}.button-group{display:flex;gap:12px;flex-wrap:wrap;margin-top:18px}.notice{padding:12px 16px;background:#fff1db;font-size:12px;color:#8b653a;border-radius:8px;margin:18px 0;line-height:1.8}.loading{padding:100px 25px;text-align:center;color:#69805c}#toast{position:fixed;left:50%;transform:translateX(-50%);bottom:35px;background:#243e36;color:#fff;padding:12px 20px;border-radius:8px;font-size:13px;z-index:100;max-width:90vw;opacity:0;pointer-events:none;transition:opacity .2s}#toast.show{opacity:1}dialog{max-width:1100px;width:95vw;max-height:93vh;border:0;border-radius:12px;padding:20px;background:#f6f6f1;color:#304e3f}dialog::backdrop{background:#10271fcc}dialog header{display:flex;justify-content:space-between;align-items:center}dialog p{font-size:12px;color:var(--muted)}#source-image{overflow:auto;max-height:75vh;text-align:center}#source-image img{width:100%;display:block}#source-image img.zoomed{width:2100px;max-width:none;cursor:zoom-out}#source-image img:not(.zoomed){cursor:zoom-in}.result-score{font-size:64px;color:var(--green);font-weight:600;margin:15px}.result-score small{font-size:16px;color:var(--muted)}.mobile-title{display:none}.question-scan{width:100%;border:1px solid var(--line);border-radius:6px;margin:8px 0 16px}.scan-note{font-size:11px;color:#a2774f;line-height:1.8}
@media(min-width:1500px){.main{margin-right:auto;margin-left:max(234px,calc((100vw - 1100px)/2));max-width:1150px}}
@media(max-width:1100px){.sidebar{width:195px;padding:30px 18px}.main{margin-left:195px;padding:0 30px 40px}.quiz-layout{grid-template-columns:minmax(0,1fr)}.question-map{margin-top:0}.map-grid{grid-template-columns:repeat(12,1fr);max-height:140px}.hero-art{width:155px}.hero{padding:27px}.stat{padding:0 18px}}
@media(max-width:760px){.sidebar{width:auto;inset:auto 0 0;padding:0 5px calc(6px + env(safe-area-inset-bottom));border:0;border-top:1px solid var(--line);background:#fff;display:block}.brand,.brand-caption,.nav-caption,.sidebar-note{display:none}.nav{flex-direction:row;gap:0;justify-content:space-around}.nav a{position:relative;flex:1;flex-direction:column;gap:4px;padding:10px 2px 5px;font-size:10px;border-radius:0;max-width:100px}.nav a.active{background:transparent;color:#376338}.nav a b{position:absolute;right:15px;top:4px;font-size:8px;padding:1px 4px;background:#e9eee3}.nav svg{width:21px;height:21px}.main{margin:0;padding:0 19px 105px}.topbar{height:64px;font-size:10px}.mobile-title{display:flex;align-items:center;gap:8px;font-weight:650;color:#375141;font-size:14px}.mobile-title img{width:28px;height:28px}.breadcrumb{display:none}.page-heading{margin:25px 0 20px;align-items:center}.page-heading h1{font-size:23px}.page-heading p{font-size:12px}.date-tag{display:none}.hero{padding:24px;min-height:220px}.hero h2{font-size:22px}.hero p{max-width:215px;font-size:11px}.hero-art{width:90px;height:130px;position:absolute;right:12px;top:45px;opacity:.6;pointer-events:none}.orbit{width:105px;height:105px;right:-10px}.book-art{width:77px;height:90px;top:24px;left:4px}.book-art svg{width:34px;height:34px}.star-art{width:31px;height:31px;bottom:0;right:-2px;box-shadow:0 0 0 4px #173c38}.hero>div:first-child{position:relative;z-index:1}.hero .primary{padding:11px 15px}.stats{padding:19px 0;margin:17px 0 26px}.stat{padding:0 10px}.stat span{font-size:10px;gap:4px}.stat svg{display:none}.stat strong{font-size:25px;margin-top:8px}.stat small{font-size:9px;margin-left:3px}.chapter-grid{grid-template-columns:1fr;gap:12px}.chapter{padding:18px}.chapter h3{font-size:14px}.chapter-bottom{margin-top:15px}.section-head{margin-top:23px}.section-head h2{font-size:16px}.quiz-card{padding:20px 17px}.quiz-layout{gap:18px}.question-title{font-size:17px;line-height:1.9}.option{padding:14px 12px;font-size:14px}.option-state{font-size:9px}.quiz-meta{font-size:10px}.quiz-head{margin-top:20px}.quiz-head p{font-size:10px;max-width:60%;text-align:right}.quiz-controls .primary,.quiz-controls .secondary{padding:12px 17px}.map-grid{grid-template-columns:repeat(8,1fr)}.toolbar{gap:8px}.toolbar input{flex-basis:100%}.toolbar select{flex:1;min-width:0;padding:11px;font-size:11px}.question-row{padding:16px}.page-heading .primary{padding:11px 13px;font-size:12px;white-space:nowrap}.settings-card{padding:20px}.answer-panel{padding:15px}.option-key{width:25px;height:25px}.footer-note{font-size:10px}#toast{bottom:90px;min-width:180px;text-align:center}dialog{padding:14px}.question-hint{font-size:10px}.eyebrow{font-size:9px}.question-map{padding:16px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

#confirm-dialog{max-width:430px;padding:26px}#confirm-dialog h2{font-size:18px;margin-top:0}#confirm-dialog p{font-size:14px;line-height:1.9}#confirm-dialog .button-group{justify-content:flex-end}
.auth-page{min-height:100vh;max-width:490px;margin:auto;padding:40px 22px}.auth-brand{display:flex;align-items:center;gap:10px;text-decoration:none;font-size:18px;font-weight:650;margin-bottom:32px}.auth-brand img{width:36px;height:36px}.auth-brand span{font-size:11px;color:var(--muted);margin-left:auto;font-weight:400}.auth-card{background:white;padding:32px;border:1px solid var(--line);border-radius:16px}.auth-card h1{font-size:25px;line-height:1.5;margin:12px 0}.auth-tabs{display:flex;border-bottom:1px solid var(--line);gap:24px;margin:24px 0}.auth-tabs button{background:none;padding:12px 6px;color:#849078;border-bottom:2px solid transparent;font-size:14px}.auth-tabs .active{color:var(--green);border-color:var(--green);font-weight:600}.auth-card label,.password-form label{display:flex;flex-direction:column;gap:8px;font-size:12px;margin:16px 0;color:#566b50}.auth-card input,.password-form input{width:100%;border:1px solid var(--line);border-radius:7px;padding:13px 12px;font-size:16px;color:#233c38;background:#fcfdf9;min-height:46px}.auth-submit{width:100%;font-size:14px}.auth-tip{font-size:11px;line-height:1.8;color:var(--muted);margin:20px 0 0}.form-error{font-size:12px;color:var(--red);line-height:1.8;min-height:18px}.password-form{max-width:380px}.status{max-width:45%;font-size:11px;overflow-wrap:anywhere}@media(max-width:480px){.auth-page{padding:26px 18px}.auth-card{padding:24px}.auth-card h1{font-size:23px}.auth-brand span{font-size:10px}.status{font-size:10px}}
