/* 学习、测试和分层目录，共用首页色彩。 */
.home-mode-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.home-mode-actions .start-button{min-width:220px}
.home-mode-actions .test-entry{min-height:60px;min-width:155px;justify-content:space-between;gap:22px;border-color:#ccd8c5;background:#fff}
.mode-separator{margin:0 5px}
.mode-scope-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin:22px 0 35px}
.mode-scope-card{padding:25px 28px;background:#fff;border:1px solid var(--line);border-radius:15px}
.mode-scope-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:22px}
.mode-scope-head strong{display:flex;align-items:center;gap:9px;font-size:13px;font-weight:500;color:#75836d}
.mode-scope-head .ui-icon{width:17px}
.mode-scope-card h2{font-family:var(--serif);font-size:23px;font-weight:500;margin:0 0 9px}
.mode-scope-card p{color:var(--muted);margin:0 0 17px;font-size:12px}
.mode-scope-card p b{color:var(--green);font-size:19px;font-weight:500}
.mode-scope-card .chip{font-size:11px}
.scope-purpose-tabs{display:flex;gap:5px;background:#eaf0e3;border-radius:10px;width:fit-content;padding:4px;margin-bottom:22px}
.scope-purpose-tabs button{padding:9px 24px;border-radius:7px;font-size:13px;color:#77836d}
.scope-purpose-tabs button.active{background:#fff;color:var(--green);box-shadow:0 2px 7px #31452a08}
.scope-tree-panel .search{margin-bottom:20px}
.scope-module{border:1px solid #e2e8db;border-radius:10px;margin:12px 0;overflow:hidden;background:#fff}
.scope-module summary{list-style:none;display:flex;align-items:center;gap:12px;padding:15px 18px;cursor:pointer;background:#fafbf7}
.scope-module summary::-webkit-details-marker{display:none}
.scope-module summary::after{content:'⌄';color:#7c8c70;font-size:16px;transition:transform .2s}
.scope-module[open] summary::after{transform:rotate(180deg)}
.tree-check{display:flex;align-items:center;gap:12px;flex:1;min-width:0}
.tree-check strong{font-size:14px;font-weight:550;overflow-wrap:anywhere}
.module-number{font-size:10px;letter-spacing:1px;color:#91a180;font-variant-numeric:tabular-nums}
.tree-count{font-size:11px;color:#839076;white-space:nowrap}
.scope-section{padding:16px 18px 10px;border-top:1px solid #eaf0e3}
.section-check{display:flex;align-items:center;gap:11px;font-size:12px;margin-bottom:10px;color:#657459}
.section-check b{font-weight:550}.section-check span{margin-left:auto;font-size:10px;color:#94a087}
.scope-atoms{display:grid;gap:2px}
.scope-atom{display:flex;align-items:center;gap:10px;padding:10px 8px 10px 27px;border-radius:6px;min-width:0}
.scope-atom:hover{background:#f3f6ed}
.scope-atom>span{font-size:13px;flex:1;overflow-wrap:anywhere}
.scope-atom small{font-size:9px;color:#a4ac87;letter-spacing:1px;white-space:nowrap}
.scope-atom em{font-size:10px;color:#8a967e;font-style:normal;white-space:nowrap}
.scope-summary .summary-line{margin:0 0 20px;color:#87917e;font-size:12px;line-height:1.9}
.test-resume,.test-start-panel{display:flex;align-items:center;justify-content:space-between;gap:22px;flex-wrap:wrap}
.test-resume{background:#f0f4e9;border-color:#d9e2ca}
.test-resume h2,.test-start-panel h2{font-size:16px;margin:0 0 8px}
.test-resume p,.test-start-panel p{margin:0;color:#849078;font-size:12px}
.test-scope-number{font-size:36px;line-height:1.4;color:var(--green);font-family:var(--serif);margin:12px 0}
.test-scope-number span{font:12px var(--sans);color:#89947e}
.test-type-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:24px}
.test-type-card{border:1px solid var(--line);border-radius:13px;padding:24px;background:#fff}
.test-type-icon{display:flex;align-items:center;justify-content:center;background:#edf2e5;width:34px;height:34px;border-radius:9px;font-size:15px;color:#7b9360;margin-bottom:18px}
.test-type-card h2{font-size:13px;color:#7e8b72;font-weight:500;margin:0}
.test-type-card>div{font-family:var(--serif);font-size:32px;line-height:1.6;margin-top:8px}
.test-type-card>div span{font:11px var(--sans);color:#94a087}
.test-start-panel .error-msg{color:#a56950;flex-basis:100%;margin:0}
.test-start-panel .error-msg:empty{display:none}
.learning-ui .judgment-statement{margin:0 0 28px;padding:24px 26px;border-left:3px solid #a7bb8b;background:#f2f5ec;border-radius:0 10px 10px 0;font-size:18px;line-height:1.9;color:#3c5542}
.judgment-options{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:22px 0}
.judgment-choice{display:flex;align-items:center;justify-content:center;gap:12px;border:1px solid #dce5d2;border-radius:12px;background:#fcfdf9;padding:22px;font-size:16px}
.judgment-choice .ui-icon{width:20px}
.judgment-choice:hover,.judgment-choice.selected{border-color:#8da873;background:#edf3e4;color:#537741}
.judgment-choice.is-ok{border-color:#8da873;background:#edf3e4;color:#537741}
.judgment-choice.is-bad{border-color:#bf937a;background:#faeee5;color:#a46b4d}
.learning-ui .judgment-choice:disabled{opacity:1}
.learning-ui .short-answer-input{min-height:210px;font-size:16px;line-height:1.95;padding:20px 22px;border-color:#dce5d2;background:#fcfdf9}
.short-user-answer{background:#f5f7f1;border:1px solid #e5eadf;border-radius:10px;padding:19px 23px;margin:20px 0}
.short-user-answer h2,.short-user-answer h3{font-size:12px;font-weight:500;color:#88917e;margin:0 0 10px}
.short-user-answer p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.9}
.short-comparison{margin:23px 0;padding:0 1px}
.short-comparison>strong{font-size:14px;font-weight:500;color:#6f7f60}
.short-comparison>p{font-size:12px;color:#959c8c;margin:7px 0 16px}
.short-comparison ul{list-style:none;padding:0;margin:0}
.short-comparison li{display:flex;gap:12px;align-items:baseline;margin:12px 0;font-size:13px;color:#748269;line-height:1.9}
.short-comparison li span{background:#edf1e5;padding:2px 7px;border-radius:4px;color:#8d967c;font-size:10px;white-space:nowrap}
.learning-ui input.gap-input{display:inline-block;width:180px;max-width:100%;padding:4px 9px;font-size:14px}
.test-results{max-width:820px}
.test-score{padding:28px}.test-score>span{font-size:12px;color:#8d9981}
.test-score>strong{display:block;font:64px/1.4 var(--serif);color:#45683a}.test-score>strong small{font:22px var(--sans)}
.test-result-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;text-align:left}
.test-result-grid .panel{padding:20px}.test-result-grid h2{font-size:12px;color:#89937e}
.test-result-grid strong{font-size:25px;font-weight:500}.test-result-grid small,.test-result-grid p{font-size:11px;color:#8e9884}
.test-short-review{text-align:left}.test-short-review .panel>h2{font-size:17px;font-weight:500;line-height:1.8}
.test-short-review .answer-text{white-space:pre-wrap;line-height:1.9}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:900px){.scope-atom{padding-left:8px}.scope-atom small{display:none}.test-type-grid{gap:10px}.test-type-card{padding:19px}}
@media(max-width:700px){.mode-scope-grid{grid-template-columns:1fr;gap:14px;margin-top:28px}.mode-scope-card{padding:21px}.home-mode-actions .start-button{min-width:0;flex:1}.home-mode-actions .test-entry{min-width:135px}.test-type-grid,.test-result-grid{grid-template-columns:1fr 1fr}.test-type-card{padding:20px}.test-type-card>div{font-size:28px}.scope-module summary{padding:14px 11px;gap:7px}.tree-check{gap:8px}.module-number{display:none}.scope-section{padding:14px 10px 7px}.scope-atom{padding-left:0}.scope-atom em{font-size:9px}.tree-count{font-size:10px}.learning-ui .judgment-statement{padding:19px;font-size:16px}.judgment-options{gap:12px}.judgment-choice{padding:20px 10px}.learning-ui .short-answer-input{min-height:190px;font-size:15px}.test-start-panel .primary,.test-resume .secondary{width:100%}.short-user-answer{padding:16px}.short-comparison li{gap:8px}.test-results .result-actions{flex-wrap:wrap}.test-results .result-actions button{flex:1}}
@media(prefers-reduced-motion:reduce){.scope-module summary::after{transition:none}}
