.grammar-practice{min-height:100vh;background:var(--canvas);color:var(--ink);font-family:var(--font-sans);letter-spacing:0;padding:28px clamp(20px,4%,48px);box-sizing:border-box}
.grammar-practice[hidden]{display:none}.grammar-practice *{box-sizing:border-box;min-width:0;letter-spacing:0}.grammar-practice button,.grammar-practice input,.grammar-practice select,.grammar-practice textarea{font:inherit}.grammar-practice button{cursor:pointer;border:1px solid var(--line-strong);border-radius:8px;min-height:42px;padding:9px 16px;background:var(--surface);color:var(--ink);display:inline-flex;align-items:center;justify-content:center;gap:8px;overflow-wrap:anywhere}.grammar-practice button:hover{background:var(--accent-soft);border-color:var(--accent);color:var(--accent-strong)}.grammar-practice button:disabled{opacity:.45;cursor:default}.grammar-practice button:focus-visible,.grammar-practice input:focus-visible,.grammar-practice select:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.grammar-practice svg{width:22px;height:22px;flex:none}.grammar-practice h1,.grammar-practice h2,.grammar-practice h3,.grammar-practice p{margin:0;overflow-wrap:anywhere}.gp-header{max-width:1540px;margin:auto;display:grid;grid-template-columns:minmax(0,1fr) 60px;gap:20px;align-items:center;min-height:65px}.gp-header h1{font-size:clamp(22px,2.4vw,30px);text-align:center;color:var(--ink);line-height:1.35}.gp-header h1 span{color:var(--accent);margin-right:8px}.gp-header>button,.gp-tools>button{width:46px;height:46px;padding:0;background:transparent;border:none}.gp-tools{text-align:right}.gp-status{max-width:1450px;margin:14px auto!important;padding:12px 18px;border-left:4px solid #d28117;background:#fff4dd;color:#69450e;line-height:1.6}.gp-content{max-width:1450px;margin:28px auto 0}.gp-empty{text-align:center;padding:36px 16px;color:#6a7685;line-height:1.8}.gp-empty img{display:block;margin:0 auto 12px;width:150px;max-height:130px;object-fit:contain}.gp-curriculum{display:grid;grid-template-columns:230px 1fr;min-height:620px;gap:36px}.gp-book{padding:32px 20px;text-align:center;border-right:1px solid #d8e5ed}.gp-subject{font-size:27px!important;font-weight:700;border:none!important;background:transparent!important}.gp-subject-hint{display:block;font-size:13px;color:var(--muted);margin:2px 0 0;text-align:center}.gp-cover{width:128px;height:170px;object-fit:contain;margin:24px auto 15px;display:block}.gp-book p{font-size:16px;line-height:1.8;margin:12px 0 28px}.gp-chapter-label{display:flex;align-items:center;gap:14px;text-align:left;font-size:22px}.gp-chapter-label select{width:100%;font-size:16px;min-height:44px;padding:8px;border:1px solid #d2dfe9;border-radius:6px;background:white;color:#28598c}.gp-units{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg);box-shadow:var(--shadow);padding:28px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-content:start;gap:20px}.gp-unit{position:relative;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:var(--radius);min-height:140px;overflow:hidden}.gp-unit.gp-studied{background:var(--accent-soft);border-color:var(--accent)}.grammar-practice .gp-unit-main{width:100%;height:100%;min-height:140px;padding:20px 18px 16px;display:flex;flex-direction:column;gap:14px;align-items:stretch;text-align:left;border:0;border-radius:var(--radius);background:transparent;color:var(--ink)}.grammar-practice .gp-unit-main:hover{background:var(--surface-sunken)}.gp-unit strong{font-size:16px;font-weight:600;color:var(--ink);line-height:1.5;padding-right:22px}.gp-unit-main>span{font-size:13px;color:var(--muted);display:flex;align-items:center;gap:8px}.gp-related-badge{display:inline-flex;justify-content:center;align-items:center;border-radius:50%;background:var(--accent);color:#fff;width:20px;height:20px}.gp-unit-progress{display:flex;align-items:center;gap:10px;font-size:13px;color:var(--muted)}.gp-unit-progress img{width:23px;height:21px}.gp-unit-progress progress{width:100%;height:8px;accent-color:var(--accent)}.gp-unit.gp-studied progress{accent-color:var(--accent)}.grammar-practice .gp-progress-tool{position:absolute;top:8px;right:8px;min-height:28px;width:28px;height:28px;padding:4px;border:0;background:transparent;color:var(--accent)}.gp-progress-tool svg{width:18px;height:18px}.gp-dialog{padding:25px;border:0;border-radius:8px;max-width:760px;width:calc(100% - 40px);max-height:88vh;overflow:auto;color:#273341;background:white;box-shadow:0 15px 65px #16324e44}.gp-dialog::backdrop{background:#11203066}.gp-dialog>header{display:flex;gap:20px;align-items:center;justify-content:space-between;margin-bottom:24px}.gp-dialog h2{font-size:22px;line-height:1.5}.gp-dialog>header button{width:40px;height:40px;min-height:40px;padding:0;border:0}.gp-dialog>p{margin:20px 0;line-height:1.8;text-align:center}.gp-dialog footer{display:flex;justify-content:center;gap:24px;margin-top:26px;flex-wrap:wrap}.gp-dialog footer button{min-width:120px}.grammar-practice .gp-primary{background:var(--accent);border-color:var(--accent);color:#fff}.grammar-practice .gp-primary:hover{background:var(--accent-strong);color:#fff}.gp-action-panel{display:flex;justify-content:center;gap:26px;align-items:center;padding:20px 0}.grammar-practice .gp-action-panel button{width:198px;max-width:42%;aspect-ratio:198/255;border:0;background:transparent;padding:0}.gp-action-panel img{display:block;width:100%;height:100%;object-fit:contain}.gp-point-list{list-style:none;margin:0;padding:0}.gp-point-list li{display:flex;align-items:center;gap:14px;padding:18px 6px;border-bottom:1px solid #e4eaf0;line-height:1.5}.gp-point-list li>span{flex:1;overflow-wrap:anywhere}.gp-point-list li>b{background:var(--line-strong);color:#fff;font-size:14px;font-weight:400;border-radius:6px;padding:7px 14px}.gp-point-list li>b.gp-done{background:var(--accent)}.gp-point-list li>button{flex:none;padding:8px}.gp-percent{text-align:center;color:var(--accent);font-size:28px;font-weight:800}.gp-paper,.gp-result,.gp-history,.gp-report,.gp-learning{background:#fff;padding:32px;min-height:580px}.gp-question-head{display:flex;align-items:center;gap:18px;padding-bottom:20px;border-bottom:1px solid #e6ebef;flex-wrap:wrap}.gp-question-head h2{font-size:22px;flex:1;min-width:200px}.gp-question-head>span{font-size:16px}.gp-question-head>button{padding:7px;width:40px;min-height:40px}.gp-clock{font-variant-numeric:tabular-nums;min-width:55px!important}.gp-question{font-size:20px;line-height:2;padding:32px 8px;overflow-wrap:anywhere}.gp-question img{max-width:100%;height:auto}.gp-question table{max-width:100%;table-layout:auto}.gp-question td{overflow-wrap:anywhere}.gp-question audio,.gp-question video{max-width:100%}.gp-options{border:0;margin:20px 0;padding:0;display:grid;gap:12px}.gp-options legend{font-size:14px;color:#7f8d9b}.gp-options label{display:flex;align-items:center;gap:15px;min-height:52px;padding:9px 15px;background:var(--surface-sunken);border:1px solid var(--line);border-radius:8px;cursor:pointer}.gp-options label:has(input:checked){background:var(--accent-soft);border-color:var(--accent)}.gp-options input{accent-color:var(--accent);width:18px;height:18px;flex:none}.gp-options span{flex:1}.gp-blank{display:inline-block;max-width:100%;width:180px;min-height:40px;border:0;border-bottom:2px solid var(--accent);padding:5px 8px;font-size:18px!important;color:var(--accent-strong);background:var(--accent-soft)}.gp-question-nav{display:flex;gap:20px;justify-content:space-between;margin-top:28px;border-top:1px solid #e9edf1;padding-top:22px;flex-wrap:wrap}.gp-analysis{font-size:18px;background:#f7fafc;margin-top:28px;padding:24px;line-height:1.9}.gp-analysis h3{font-size:18px;margin:15px 0 10px}.gp-check-result{padding:15px;color:#138a6d;background:#e5f7f0;text-align:center}.gp-check-result[data-state=incorrect]{color:#d73935;background:#fff0ef}.gp-self-correct{display:flex;gap:12px;align-items:center;margin-top:20px;font-size:16px}.gp-result h2,.gp-history h2,.gp-learning h2{font-size:24px;text-align:center;margin:8px 0 28px}.gp-result-toolbar{display:flex;justify-content:flex-end;gap:16px;flex-wrap:wrap}.gp-knowledge-table{margin:25px auto;max-width:1050px}.gp-knowledge-head,.gp-knowledge-row{display:grid;grid-template-columns:minmax(0,1fr) 190px 160px;align-items:center;gap:25px;padding:24px}.gp-knowledge-head{background:#f1f7fe;font-size:18px;color:#405b78}.gp-knowledge-row{border-bottom:1px solid #e7eef5;line-height:1.7}.gp-knowledge-row strong{font-weight:400}.gp-mastery{color:#e16f46;background:#fff0e8;padding:6px 12px;text-align:center;border-radius:5px;font-size:15px}.gp-mastery[data-level="3"]{color:#168c6d;background:#e8f8f1}.gp-mastery[data-level="2"]{color:#2271c3;background:#eaf3ff}.gp-mastery[data-level="1"]{color:#bd8c15;background:#fff8dc}.gp-answer-card{display:flex;flex-wrap:wrap;gap:14px;padding:24px 0}.grammar-practice .gp-answer-card button{width:48px;height:48px;min-height:48px;padding:0}.grammar-practice [data-state=correct]{background:#e5f7ee;color:#0b8461;border-color:#91d9bd}.grammar-practice [data-state=incorrect]{background:#ffebe9;color:#cc3935;border-color:#f3b7b0}.grammar-practice [data-state=pending_review]{background:#fff6d9;color:#896315;border-color:#e7d69a}.gp-result-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:24px;margin:25px 0}.gp-history>p{text-align:center;color:#7e8b9a}.gp-history-list{margin:30px auto;max-width:1050px}.gp-history-list article{display:grid;grid-template-columns:200px 1fr 150px;align-items:center;gap:20px;padding:22px 0;border-bottom:1px solid #e2e9f1}.gp-history-list time{color:#738399;font-size:15px}.gp-learning{max-width:1100px;margin:auto}.gp-video{display:block;width:100%;aspect-ratio:16/9;max-height:65vh;background:#101820}.gp-video-error{padding:16px;color:#cc3935}.gp-report-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.gp-report-heading h2{font-size:28px;margin-bottom:12px}.gp-report-basics{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:30px 0}.gp-report-basics>div{display:flex;gap:20px;line-height:1.7}.gp-report-basics dt{color:#687b90;flex:none}.gp-report-basics dd{margin:0;overflow-wrap:anywhere}.gp-summary{display:flex;align-items:center;gap:35px;flex-wrap:wrap;padding:25px 0;border-block:1px solid #dde7f0;margin-bottom:30px}.gp-summary strong{font-size:32px;color:var(--accent)}.gp-report h3{font-size:20px;margin:25px 0}.gp-report-points>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(80px,2fr) 70px;gap:24px;align-items:center;padding:18px 0}.gp-report-points strong{font-weight:400;overflow-wrap:anywhere}.gp-report-points progress{width:100%;height:13px;accent-color:var(--accent)}.gp-feedback{display:flex;flex-wrap:wrap;gap:20px;border:0;padding:0;margin:10px 0 20px}.gp-feedback label{display:flex;align-items:center;gap:8px;min-height:36px}.gp-dialog textarea{width:100%;border:1px solid #c9d6e2;border-radius:6px;padding:12px;resize:vertical}.gp-feedback-status{color:#b44b37;font-size:14px}
#society-view .gp-subject{font-size:23px!important;padding:9px 0;width:100%;white-space:nowrap;gap:6px}
.gp-unit-progress>span{flex:none;min-width:38px;white-space:nowrap}.gp-unit-progress>progress{min-width:0}.gp-analysis-item+.gp-analysis-item{border-top:1px solid #dfe7ed;padding-top:28px}
.gp-status>button{width:42px;height:42px;padding:8px;margin-left:12px;vertical-align:middle;flex:none}
.grammar-practice .gp-training-point{display:flex;margin:8px auto 28px;font-size:22px;max-width:100%;color:var(--accent);background:transparent;border:0}.gp-history h3{font-size:18px;margin-top:28px}.gp-history-list{margin-top:15px}.gp-dialog textarea:disabled{background:#f2f4f6;color:#6a7685}.gp-unit-progress progress:indeterminate{opacity:.45}
@media(max-width:1100px){.gp-curriculum{grid-template-columns:190px 1fr;gap:20px}.gp-units{grid-template-columns:repeat(2,minmax(0,1fr));padding:24px}.gp-book{padding:24px 12px}.gp-history-list article{grid-template-columns:180px 1fr 140px}}
@media(max-width:650px){.grammar-practice{padding:16px 12px}.gp-header{gap:6px;grid-template-columns:minmax(0,1fr) 42px}.gp-header h1{font-size:24px}.gp-header>button,.gp-tools>button{width:40px;height:40px;min-height:40px}.gp-content{margin-top:18px}.gp-curriculum{display:block;min-height:0}.gp-book{display:grid;grid-template-columns:68px 1fr;gap:8px 15px;align-items:center;border-right:0;padding:0 5px 20px;text-align:left}.gp-subject{font-size:22px!important;grid-column:2;grid-row:1;justify-content:flex-start!important;padding:0!important}.gp-subject-hint{grid-column:2;text-align:left;margin:0}.gp-cover{width:62px;height:82px;grid-column:1;grid-row:1 / 3;margin:0}.gp-book p{grid-column:2;margin:0;font-size:14px}.gp-chapter-label{grid-column:1 / -1;font-size:18px}.gp-units{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:14px}.gp-unit{min-height:150px;border-radius:12px}.grammar-practice .gp-unit-main{min-height:150px;border-radius:12px;padding:16px 12px;gap:14px}.gp-unit strong{font-size:15px}.gp-unit-progress{gap:7px}.gp-paper,.gp-result,.gp-history,.gp-report,.gp-learning{padding:18px 14px;min-height:500px}.gp-question{padding:20px 0;font-size:18px}.gp-question-head{gap:10px}.gp-question-head h2{font-size:20px;min-width:180px;flex-basis:100%}.gp-options label{padding:8px;gap:10px}.gp-analysis{padding:16px;font-size:16px}.gp-dialog{padding:18px;width:calc(100% - 28px)}.gp-dialog h2{font-size:19px}.gp-action-panel{gap:12px;padding:10px 0}.gp-point-list li{gap:10px;flex-wrap:wrap;padding:15px 0}.gp-point-list li>span{min-width:110px}.gp-point-list li>b{font-size:12px;padding:6px 9px}.gp-knowledge-head,.gp-knowledge-row{grid-template-columns:minmax(0,1fr) 80px 76px;padding:16px 0;gap:10px;font-size:14px}.gp-knowledge-head{font-size:12px}.gp-mastery{padding:4px;font-size:12px}.gp-result-toolbar{justify-content:center}.gp-result-actions{gap:12px}.gp-history-list article{grid-template-columns:1fr auto;gap:12px;padding:18px 0}.gp-history-list time{grid-column:1 / -1}.gp-history-list button{font-size:14px}.gp-history-list strong{font-size:15px}.gp-report-basics{grid-template-columns:1fr;gap:12px}.gp-report-heading h2{font-size:24px}.gp-summary{gap:18px;font-size:14px}.gp-report-points>div{grid-template-columns:minmax(0,1fr) 75px 50px;gap:12px;font-size:14px}.gp-question-nav{gap:12px}.gp-question-nav button{font-size:14px}.gp-video{max-height:60vh}.gp-blank{width:130px}.grammar-practice .gp-progress-tool{width:40px;height:40px;min-height:40px}}
@media print{.gp-header,.gp-status,.gp-report-heading>button,.gp-result-actions{display:none!important}.grammar-practice{background:white;padding:0}.gp-report{padding:0}.gp-report-points>div{break-inside:avoid}}

/* ===== 20261123 重做：纵向章节时间线 + 立体黏土卡片（替代左侧教材栏与横向三列网格） ===== */
.gp-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:14px;margin:0 auto 26px;max-width:920px;background:linear-gradient(160deg,#fff,#f3f9f6);border:1px solid #e3ece7;border-radius:22px;padding:16px 20px;box-shadow:0 10px 26px rgba(46,92,72,.12)}
.gp-toolbar .gp-subject{font-size:16px;font-weight:700;border:1px solid #cfe3d8;background:#fff;border-radius:999px;padding:9px 18px;color:#23705a;gap:6px}
.gp-toolbar .gp-subject svg{width:17px;height:17px}
.gp-book-name{flex:1;min-width:160px;font-size:15px;color:#5a6b63;line-height:1.5;overflow-wrap:anywhere}
.gp-group-label{display:flex;align-items:center;gap:10px;font-size:15px;color:#43544d}
.gp-group-label select{min-height:42px;border:1px solid #cfe3d8;border-radius:12px;background:#fff;padding:6px 12px;font:inherit;color:#23705a}
.gp-timeline{max-width:920px;margin:0 auto}
.gp-steps{position:relative;display:flex;flex-direction:column;gap:18px;padding-left:6px}
.gp-steps::before{content:"";position:absolute;left:31px;top:18px;bottom:18px;width:3px;border-radius:3px;background:linear-gradient(#bfe6d6,#f3d9a6)}
.gp-step{position:relative;display:flex;align-items:stretch;background:#fff;border:1px solid #e8efea;border-radius:22px;box-shadow:0 8px 20px rgba(55,84,72,.10),0 2px 0 rgba(255,255,255,.9) inset;overflow:hidden;transition:transform .18s ease,box-shadow .18s ease}
.gp-step:hover{transform:translateY(-3px);box-shadow:0 14px 30px rgba(55,84,72,.16)}
.gp-step.gp-studied{background:linear-gradient(150deg,#fff,#f2faf5);border-color:#bfe6d6}
.grammar-practice .gp-step-main{flex:1;display:flex;align-items:center;gap:18px;border:0;background:transparent;text-align:left;padding:20px 22px;min-height:108px;border-radius:22px}
.gp-step-no{flex:none;width:52px;height:52px;border-radius:50%;display:grid;place-items:center;font-weight:800;font-size:19px;color:#fff;background:linear-gradient(150deg,#4fae8a,#2f8f6f);box-shadow:0 5px 12px rgba(47,143,111,.35),0 2px 0 rgba(255,255,255,.35) inset}
.gp-step.gp-studied .gp-step-no{background:linear-gradient(150deg,#f0b65a,#dd9436)}
.gp-step-body{flex:1;display:flex;flex-direction:column;gap:8px;min-width:0}
.gp-step-body strong{font-size:17px;color:#26362f;line-height:1.5}
.gp-step-body>span{font-size:14px;color:#66766f;display:flex;align-items:center;gap:8px}
.gp-step .gp-unit-progress{display:flex;align-items:center;gap:10px;font-size:13px;color:#66766f}
.gp-step .gp-unit-progress progress{flex:1;max-width:220px;height:9px;border-radius:999px;accent-color:#2f8f6f}
.gp-step .gp-progress-tool{position:absolute;top:12px;right:12px;min-height:30px;width:30px;height:30px;padding:5px;border:0;background:#f1f6f3;color:#2f8f6f;border-radius:10px}
.gp-analysis-cta{min-width:150px;font-weight:700}
.gp-result-toolbar{gap:12px}
@media(max-width:650px){.gp-steps{gap:14px}.gp-steps::before{left:23px}.gp-step-no{width:42px;height:42px;font-size:16px}.grammar-practice .gp-step-main{padding:16px 14px;gap:13px;min-height:96px}.gp-step-body strong{font-size:15px}}

/* 反馈弹窗重做：类型卡片 */
.fb-types{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:14px 0}
.fb-type{position:relative;display:block}
.fb-type input{position:absolute;opacity:0;pointer-events:none}
.fb-card{display:flex;align-items:center;gap:10px;padding:14px 16px;border:1px solid #eaf3f4;border-radius:16px;background:#fff;cursor:pointer;color:#3f6170;font-weight:600}
.fb-card svg{width:20px;height:20px;color:#0bb4c4}
.fb-type input:checked + .fb-card{border-color:#0bb4c4;background:#e2f6f8;color:#0b8fa0;box-shadow:0 4px 12px #0bb4c422}
.fb-type input:focus-visible + .fb-card{outline:3px solid #0bb4c433}
.gp-dialog textarea{width:100%;border:1px solid #cfe6ea;border-radius:14px;padding:12px 14px;font:inherit;background:#fff;resize:vertical}
@media(max-width:560px){.fb-types{grid-template-columns:1fr}}
