
:root{--forest:#164c44;--deep:#12362f;--pale:#e7f1ea;--ink:#1f3933;--secondary:#64776e;--gold:#a7864a;--line:#dce6de;--paper:#fffdf8;--shadow:0 14px 45px rgba(27,63,49,.07)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font:16px/1.65 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;background:#f3f6ef;color:var(--ink)}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #78b69e;outline-offset:2px}button{touch-action:manipulation}button,.modal,.topbar{ -webkit-tap-highlight-color:transparent}.texture{position:fixed;inset:0;pointer-events:none;z-index:-1;background:radial-gradient(circle at 0% 0%,#e6f1e9,transparent 46%),radial-gradient(circle at 95% 100%,#ece9dc,transparent 35%)}h1,h2,h3,p{margin:0}h1,h2,h3{font-family:'Noto Serif SC','STSong','SimSun',serif;line-height:1.4}h1{font-size:clamp(28px,3vw,40px)}h2{font-size:24px}p{color:#576d62}.tiny-label,.eyebrow{font-size:12px;letter-spacing:.15em;color:#6a927b;font-weight:800}.eyebrow{margin-bottom:9px}.topbar{min-height:86px;padding:16px max(28px,calc((100vw - 1460px)/2));background:rgba(255,253,248,.96);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:18px;position:relative;z-index:2}.brand{display:flex;align-items:center;gap:12px}.brand-mark{background:linear-gradient(140deg,#235b49,#6c9a77);color:#fff;width:46px;height:46px;display:grid;place-items:center;border-radius:13px;font:bold 25px 'STSong',serif;box-shadow:0 8px 22px #31735424}.brand-title{font-family:'Noto Serif SC','STSong',serif;font-size:21px;font-weight:700;display:flex;align-items:center;gap:10px;flex-wrap:wrap}.brand-subtitle{font-size:12px;color:#819087}.brand-capsule{font:600 11px sans-serif;color:#668975;border:1px solid #bcd2c2;padding:3px 9px;border-radius:100px}.header-right{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.mode-pill,.group-pill{font-size:12px;color:#7a6442;background:#fff4da;border:1px solid #ebd7a5;border-radius:50px;padding:6px 12px;font-weight:700}.group-pill{color:var(--forest);background:#ebf5ed;border-color:#cfdfd1}.layout{max-width:1460px;margin:auto;display:grid;grid-template-columns:282px minmax(0,1fr);min-height:calc(100vh - 86px);padding:28px;gap:24px}.sidebar{background:#fdfdf8;border:1px solid var(--line);box-shadow:var(--shadow);border-radius:23px;padding:15px;align-self:start;position:sticky;top:18px}.mascot-card{position:relative;overflow:hidden;border-radius:16px;background:linear-gradient(130deg,#dcece2,#f7f9ed)}.mascot{width:100%;aspect-ratio:1.45;object-fit:cover;object-position:center 22%;display:block}.mascot-copy{padding:18px}.mascot-copy h2{margin:7px 0 5px;font-size:21px}.mascot-copy p{font-size:13px}.sidebar-line{height:1px;background:var(--line);margin:20px 4px}.steps-caption{font-size:12px;color:#89998f;letter-spacing:.15em;font-weight:800;padding:0 9px 12px}.side-nav{display:grid;gap:7px}.nav-step{background:none;border:1px solid transparent;border-radius:13px;padding:13px 10px;text-align:left;color:var(--ink);display:flex;align-items:center;gap:11px;width:100%;transition:.2s}.nav-step:hover,.nav-step.active{background:#e8f2e9;border-color:#cfe4d2}.nav-index{font-family:'STSong',serif;color:#699580;background:#fff;border-radius:9px;width:32px;height:37px;display:grid;place-items:center;flex:none}.nav-step b{font-size:15px;display:block}.nav-step small{font-size:11px;color:#81968a;display:block}.nav-arrow{margin-left:auto;color:#8cae9a}.aside-note{margin:22px 6px 8px;padding:15px;border-left:3px solid #b0cbb8;color:#688075;font-size:12px;background:#f3f7f1;border-radius:0 10px 10px 0}.aside-note-top{font-weight:800;color:var(--forest);margin-bottom:5px}.workspace{min-width:0;background:var(--paper);box-shadow:var(--shadow);border:1px solid var(--line);border-radius:23px;padding:clamp(20px,3.2vw,42px);position:relative}.section-head{display:flex;justify-content:space-between;gap:16px;align-items:center;border-bottom:1px solid #e5e9e0;padding-bottom:25px;margin-bottom:27px}.section-head p{max-width:660px;margin-top:7px;font-size:14px}.title-accent,.green{color:#7aab88}.outline-btn{background:#fff;border:1px solid #b8cfc1;color:#23644f;padding:12px 19px;border-radius:12px;font-weight:700;white-space:nowrap}.outline-btn:hover{background:#eef5ee}.primary-btn{border:0;color:#fff;background:linear-gradient(120deg,#155746,#317f63);border-radius:12px;padding:12px 21px;font-weight:750;box-shadow:0 6px 15px #25674d26}.primary-btn:hover{filter:brightness(1.06)}.primary-btn.big{font-size:17px;padding:14px 23px}.primary-btn.block{display:block;width:100%}.stage{display:none;min-height:470px}.stage.active{display:block}.poem-tabs{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px;margin-bottom:20px}.poem-tab{white-space:nowrap;background:#f4f6f2;border:1px solid #e6ebe3;padding:10px 17px;border-radius:10px;color:#506b5b;font-size:14px}.poem-tab.active{background:var(--forest);color:#fff;border-color:var(--forest)}.poem-layout{display:grid;grid-template-columns:1fr 1fr;gap:21px}.poem-card{padding:28px;min-height:420px;background:linear-gradient(160deg,rgba(252,251,244,.95),rgba(236,243,231,.87)),radial-gradient(circle at 85% 70%,#c9d8bf,transparent 40%);border-radius:17px;border:1px solid #e0e8d8;text-align:center;position:relative;overflow:hidden}.poem-card:before{content:'山水有情';position:absolute;bottom:35px;right:8px;writing-mode:vertical-rl;font-family:'STSong',serif;letter-spacing:.5em;color:#b3c9b4}.poem-card-eyebrow{font-size:11px;letter-spacing:.4em;color:#89a494;margin:12px auto 14px}.poem-card h2{font-size:29px}.poem-author{font-size:13px;color:#73897d;margin-top:7px}.poem-lines{margin:25px auto 17px;display:grid;gap:8px;position:relative;z-index:1}.poem-line{font:600 clamp(18px,2.15vw,27px)/1.8 'Noto Serif SC','STSong',serif;white-space:nowrap}.poem-word{border:0;border-bottom:2px dotted #548873;background:none;color:var(--forest);font:inherit;padding:0 1px;border-radius:0}.poem-word:hover{background:#d9eadc}.poem-hint{font-size:12px;color:#8d9e91}.insight-card{border:1px solid var(--line);background:#f8fbf6;border-radius:17px;padding:28px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center}.insight-illustration{font-size:78px;height:120px;width:100%;display:grid;place-items:center;color:#6e9b84;text-shadow:0 10px 32px #66887633}.insight-card h3{font-size:23px;margin:5px 0 12px}.insight-card p{font-size:15px;line-height:1.9}.insight-question{margin-top:22px;background:#e9f3e9;color:#42694f;padding:14px 16px;border-radius:12px;font-size:13px;width:100%}.knowledge-note{margin-top:21px;background:#f7f3e9;border:1px solid #eee6d2;border-radius:12px;padding:14px 18px;color:#685f48;font-size:13px}.knowledge-note span{font-weight:800;margin-right:12px;color:#95733c}.mission-strip{background:linear-gradient(115deg,#e5f2e9,#f9f8ee);padding:23px 27px;border-radius:17px;display:flex;justify-content:space-between;gap:20px;align-items:center}.mission-strip h2{font-size:25px;margin:5px 0 7px}.mission-strip p{font-size:14px}.stamp{font:42px 'STSong',serif;color:#7b9d7c;border:2px solid #a1bd9f;display:grid;place-items:center;width:68px;height:68px;border-radius:12px;transform:rotate(-8deg);flex:none}.speaker-row{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:22px 0}.speaker{border:1px solid var(--line);background:#fff;border-radius:13px;padding:13px;display:flex;gap:7px;flex-direction:column;align-items:center}.speaker.active,.speaker:hover{background:#ecf5ec;border-color:#75a88a}.speaker-emoji{font-size:33px}.speaker b{font-size:15px}.speaker small{font-size:12px;color:var(--secondary)}.strategy-heading{margin:8px 0}.strategy-grid{display:flex;flex-wrap:wrap;gap:10px;margin:10px 0 19px}.strategy-btn{background:#fff;border:1px solid #cfdfd2;border-radius:100px;padding:8px 14px;color:#3d6852;font-size:14px}.strategy-btn:hover,.strategy-btn.active{background:#dcefe1;border-color:#65a17e}.dialogue-box{border-left:4px solid #7db398;background:#f1f7f0;padding:20px 23px;border-radius:0 12px 12px 0;min-height:154px}.dialogue-person{font-weight:800;color:#397552;margin-bottom:9px;font-size:14px}.dialogue-box p{font-size:18px;line-height:1.8;color:#264d3c}.dialogue-footnote,.footnote{font-size:12px;color:#82938a;margin-top:12px}.answer-row{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:end;margin-top:24px}.answer-field{min-width:0}.field-block label,.answer-field label,.modal label{display:block;font-size:14px;font-weight:750;color:#3f6352;margin:0 0 10px}.field-block textarea,.answer-field textarea,.modal input,.modal select{width:100%;border:1px solid #ccdbd0;background:#fff;padding:14px 15px;border-radius:12px;color:#234a38;resize:vertical;min-height:80px}.modal input,.modal select{min-height:45px;margin-bottom:16px}.feedback{min-height:22px;margin-top:9px;color:#227154;font-size:13px;font-weight:700}.feedback.error{color:#a54537}.alchemy-top{display:flex;align-items:center;justify-content:space-between;gap:15px;background:linear-gradient(110deg,#eaf5e9,#fcfaf1);padding:28px;border-radius:17px;margin-bottom:25px}.alchemy-top h2{margin:3px 0 8px}.alchemy-top p{font-size:14px}.alchemy-orb{font-size:56px;color:#67a080}.alchemy-form{max-width:900px;margin:auto}.number-chip{display:inline-grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#dbebdf;color:#2c7153;margin-right:8px}.field-block{margin:17px 0}.field-block textarea{min-height:102px}.helper-line{font-size:12px;color:#85988c;margin-top:6px}.alchemy-actions{display:flex;align-items:center;gap:17px;flex-wrap:wrap}.quota{font-size:12px;color:#7b9686}.suggestion-area{margin:24px 0;padding:24px;border:1px solid #c9decf;background:#f1f7f0;border-radius:15px}.suggestion-meta{display:flex;justify-content:space-between;align-items:center;gap:10px;color:#2d7657;font-weight:800}.hint-tag{font-size:11px;font-weight:600;padding:5px 9px;background:#e9f2e4;border-radius:50px;color:#58846c}.suggestion-text{margin-top:16px;white-space:pre-wrap;font-size:18px;line-height:2;color:#244c3a;font-family:'Noto Serif SC','STSong',serif}.final-field{border-top:1px dashed #d5e2d4;padding-top:20px;margin-top:25px}.landscape{height:285px;position:relative;overflow:hidden;border-radius:17px;background:linear-gradient(#e4e5df,#d7dad3);margin:23px 0;transition:background .8s}.landscape:before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse at 50% 50%,transparent 20%,#fff9 90%);z-index:4;pointer-events:none}.sun{position:absolute;width:72px;height:72px;border-radius:50%;top:25px;right:23%;background:#d4d4c6;transition:.7s}.mountain{position:absolute;width:55%;height:245px;bottom:15px;background:#9da7a1;clip-path:polygon(0 100%,35% 22%,56% 56%,75% 4%,100% 100%);transition:.7s}.m1{left:-8%}.m2{right:-4%;transform:scaleX(-1);background:#a7afaa}.river{position:absolute;bottom:-65px;left:20%;width:60%;height:205px;background:#adb8b6;clip-path:polygon(35% 0%,80% 0%,61% 44%,71% 68%,50% 100%,0 100%,27% 57%);transition:.7s}.tree{position:absolute;bottom:18px;font-size:67px;color:#9ea9a3;transition:.7s}.t1{left:10%}.t2{left:20%;bottom:0}.t3{right:15%}.smoke{position:absolute;border-radius:50%;background:#8b928e99;filter:blur(24px);width:150px;height:75px;z-index:1;top:8%;left:10%;transition:.6s}.s2{left:auto;right:4%;top:24%}.landscape-text{position:absolute;z-index:5;bottom:12px;left:50%;transform:translateX(-50%);white-space:nowrap;color:#35463f;background:#fffd;padding:5px 20px;border-radius:40px;font-size:13px;font-weight:800}.landscape.protected .river{background:#7dbcc1}.landscape.protected .smoke{opacity:.1}.landscape.protected .tree{color:#8baf89}.landscape.sent .mountain{background:#5f9278}.landscape.sent .m2{background:#4d836c}.landscape.sent .tree{color:#44845f}.landscape.sent .sun{background:#e8cf83}.landscape.sent{background:linear-gradient(#e3f6f3,#e9f2d8)}.restore-line{display:flex;align-items:center;justify-content:center;gap:22px;flex-wrap:wrap;font:600 clamp(18px,3vw,27px)/2 'Noto Serif SC','STSong',serif}.character-btn{display:inline-grid;place-items:center;width:47px;height:51px;border:2px solid #3d9171;border-radius:9px;background:#e8f4eb;color:#2d7958;font:700 29px 'STSong',serif;vertical-align:middle}.character-btn.done{background:#347e5c;color:#fff}.center-row{text-align:center;margin:20px}.restore-notice{text-align:center;color:#468060;font-weight:800;padding:11px}.workspace-footer{border-top:1px solid var(--line);margin-top:37px;padding-top:18px;color:#8b9d91;font-size:12px}.workspace-footer span{float:right}.modal-wrap{position:fixed;inset:0;z-index:20;display:grid;place-items:center;padding:15px}.modal-wrap[hidden],.project-overlay[hidden],.stage[hidden],.suggestion-area[hidden]{display:none!important}.modal-backdrop{position:absolute;inset:0;background:rgba(17,41,34,.65);backdrop-filter:blur(4px)}.modal{position:relative;background:#fffef9;border-radius:20px;padding:27px;width:min(440px,100%);box-shadow:0 30px 80px #0003}.modal.narrow{width:min(410px,100%)}.close-btn{position:absolute;right:15px;top:11px;background:none;border:0;font-size:29px;color:#769388}.join-avatar{float:right;object-fit:cover;object-position:50% 22%;border-radius:50%;width:77px;height:77px;margin:0 3px 8px 12px;border:4px solid #e2f0e5}.modal h2{margin:8px 0}.modal p{font-size:13px;margin-bottom:20px}.teacher-layout{max-width:1300px;margin:0 auto;padding:36px 28px}.teacher-head{display:flex;align-items:center;justify-content:space-between;gap:22px;margin-bottom:28px}.teacher-head p{margin-top:8px;font-size:14px}.teacher-actions{display:flex;gap:9px;flex-wrap:wrap}.teacher-panels{display:grid;grid-template-columns:1fr 1fr;gap:20px}.teacher-panel,.results-section{background:var(--paper);border:1px solid var(--line);border-radius:20px;padding:26px;box-shadow:var(--shadow)}.teacher-panel h2{margin:5px 0 20px}.teacher-step-row{display:flex;gap:7px;flex-wrap:wrap}.teacher-step{border:1px solid #cee0d1;background:#fff;padding:10px 11px;border-radius:12px;color:#41634e;font-weight:750}.teacher-step span{margin-right:8px;color:#91ad99}.teacher-step.active{background:#225e4c;color:#fff}.panel-note{color:#8c9a91;font-size:12px;margin-top:18px}.stats{display:flex;justify-content:space-around;text-align:center;gap:10px}.stats>div{display:grid}.stats strong{font-family:'Noto Serif SC','STSong',serif;font-size:36px;color:#245c45}.stats span{font-size:12px;color:#8a9b91}.results-section{margin-top:23px}.results-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px;gap:20px}.results-head p{font-size:14px;margin-top:5px}.group-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.group-result{padding:19px;border-radius:15px;border:1px solid #d5e1d7;background:linear-gradient(150deg,#fff,#f4f9f2)}.group-result h3{font-size:17px}.group-result .result-tag{font-size:11px;color:#648876}.group-result dl{margin:14px 0}.group-result dt{font-size:11px;font-weight:800;color:#819a8b;margin-top:10px}.group-result dd{margin:3px 0 0;color:#3f5e4b;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.65}.group-result .selected-poem{font:600 15px/1.8 'Noto Serif SC',serif}.group-result .outline-btn{margin-top:8px;padding:9px 13px;font-size:12px}.project-overlay{position:fixed;inset:0;z-index:22;background:radial-gradient(circle at 10% 10%,#37644e,#0d2e29 63%);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:36px;color:white;text-align:center}.project-close{position:absolute;right:25px;top:22px;background:#ffffff23;border:1px solid #ffffff50;border-radius:9px;color:#fff;padding:9px 13px}.project-overline{letter-spacing:.4em;font-size:17px;color:#d6dfad}.project-inner{margin:clamp(30px,5vw,75px) auto;max-width:940px}.project-group{color:#b2d8b8;letter-spacing:.2em;margin-bottom:14px}.project-inner h2{font-size:30px}.project-poem{font:600 clamp(28px,4vw,56px)/1.8 'Noto Serif SC','STSong',serif;white-space:pre-wrap;margin:20px auto;color:#fff7d7}.project-caption{font-size:13px;color:#bfdbc7}.teacher-body .topbar{position:sticky;top:0}.project-overlay .outline-btn{background:#fff2;color:#e4f6e9;border-color:#fff5}@media(max-width:1000px){.layout{grid-template-columns:230px minmax(0,1fr);padding:15px;gap:15px}.poem-layout{grid-template-columns:1fr}.poem-card{min-height:350px}.group-cards{grid-template-columns:repeat(2,1fr)}}@media(max-width:720px){.topbar{padding:12px 16px;align-items:flex-start;flex-direction:column;min-height:auto}.brand-title{font-size:19px}.layout{display:block;padding:11px}.sidebar{position:static;margin-bottom:12px;padding:10px}.mascot-card{display:none}.sidebar-line,.steps-caption,.aside-note{display:none}.side-nav{display:flex;overflow-x:auto;scrollbar-width:none;gap:7px}.nav-step{flex:0 0 auto;width:auto;padding:9px 11px}.nav-step small,.nav-arrow{display:none}.nav-index{width:25px;height:27px}.workspace{padding:19px;border-radius:18px}.section-head{align-items:flex-start;flex-direction:column}.poem-line{font-size:clamp(18px,4.4vw,26px)}.poem-card{padding:15px}.insight-card{padding:22px}.speaker-row{gap:7px}.speaker{padding:10px 5px}.speaker b{font-size:13px}.speaker small{font-size:10px}.answer-row{grid-template-columns:1fr}.alchemy-top{padding:18px}.alchemy-orb{font-size:36px}.mission-strip{padding:16px}.teacher-layout{padding:17px 12px}.teacher-head{display:block}.teacher-actions{margin-top:18px}.teacher-panels,.group-cards{grid-template-columns:1fr}.results-head{flex-direction:column;align-items:flex-start}.workspace-footer span{float:none;display:block}.teacher-panel,.results-section{padding:19px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}

/* 教师成果墙：触屏友好与高对比度 */
.group-card{display:block;text-align:left;width:100%;border:1px solid #d5e1d7;border-radius:16px;background:linear-gradient(145deg,#ffffff,#f3f8f0);padding:19px;color:var(--ink);min-height:168px;box-shadow:0 5px 20px rgba(15,55,35,.03)}
.group-card.selected{border:2px solid #368b68;background:#eef8ef;box-shadow:0 6px 22px rgba(33,110,79,.12)}
.group-card-top{display:flex;justify-content:space-between;gap:7px;margin-bottom:10px;flex-wrap:wrap}
.group-card h3{font-size:17px;line-height:1.55;overflow-wrap:anywhere;margin-bottom:10px}
.group-card p{font-size:12px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}
.empty-state{grid-column:1/-1;padding:34px;text-align:center;border:1px dashed #afcaba;border-radius:14px;color:#698073}

/* V2: 教师按组重置与作品阅读区 */
.group-detail{margin-top:22px;box-shadow:none}
.detail-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}
.quota-manager{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.quota-pill{font-weight:700;color:#195c45;background:#e7f5eb;border:1px solid #c3e1ce;border-radius:999px;padding:8px 14px}
.detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin-top:16px}
.detail-grid>div{padding:18px;border:1px solid #d7e7d9;border-radius:13px;background:#f9fcf8}
.detail-grid h3{font-size:14px;margin:0 0 10px;color:#245f49}
.detail-grid p{font-size:16px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;margin:0}
#resetNotice{margin-top:10px}
#resetGroupAI:disabled{opacity:.52;cursor:not-allowed}
.quota-low{color:#a84a2a!important;font-weight:700}
@media(max-width:720px){.detail-grid{grid-template-columns:1fr}.quota-manager{width:100%}}

/* V3: 按组清空作品，保留 AI 使用次数 */
.show-empty-toggle{display:flex;align-items:center;gap:8px;font-size:13px;color:#456b56;font-weight:650;cursor:pointer;white-space:nowrap}
.show-empty-toggle input{width:17px;height:17px;accent-color:#2b7559}
.danger-btn{color:#a33835!important;border-color:#d9aaa6!important;background:#fff9f6!important}
.danger-btn:hover:not(:disabled){background:#fae6e2!important}
.danger-btn:disabled{opacity:.5;cursor:not-allowed}
