:root{color-scheme:light;--surface:#fff;--sidebar:#f5f6f8;--ink:#24272c;--muted:#626b78;--line:#e8ebef;--soft-line:#f0f1f4;--accent:#006cd0;--accent-hover:#0059b0;--accent-soft:#e9f1fc;--warning:#835027;--warning-bg:#fff8ee;--error:#ad3e34;--error-bg:#fff2ef;--font:system-ui,-apple-system,"PingFang SC","Microsoft YaHei",sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--surface);color:var(--ink);font:15px/1.7 var(--font);-webkit-text-size-adjust:100%}button,textarea{font:inherit}button,a,summary,label.upload{-webkit-tap-highlight-color:transparent}a{color:var(--accent);text-underline-offset:4px}h1,h2,h3,p{margin-top:0}button{touch-action:manipulation;cursor:pointer;color:var(--ink);background:#fff;border:1px solid var(--line);border-radius:16px;padding:9px 14px;min-height:42px;line-height:1.5;transition:background .15s,box-shadow .15s}button:not(:disabled):hover{background:#eef1f5}button:not(:disabled):active{transform:scale(.97)}button:disabled{color:#9aa2ac;background:#f1f3f6;cursor:not-allowed}button,a,textarea,summary,[tabindex]{outline-offset:4px}button:focus-visible,a:focus-visible,textarea:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:3px solid #7cb0e6}.icon-button{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;min-width:42px;border:0;padding:9px;background:transparent;border-radius:50%}.icon-button svg{width:23px;height:23px}.text-button{border:0;background:transparent;font-size:13px;color:var(--muted);padding:8px 10px}.secondary{color:var(--accent);background:#fff;border-color:#d8e6f5;font-size:13px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.skip-link{position:fixed;top:8px;left:12px;z-index:10;background:white;padding:10px 16px;transform:translateY(-170%)}.skip-link:focus{transform:none}
.app-shell{max-width:1920px;margin:auto}.site-header{height:68px;display:flex;align-items:center;gap:0;background:white}.brand{height:68px;width:280px;flex-shrink:0;display:flex;align-items:center;gap:9px;padding:0 25px;background:var(--sidebar);color:var(--ink);text-decoration:none;font-size:22px;font-weight:650;letter-spacing:.5px;border-right:1px solid var(--line)}.brand svg{width:27px;height:27px}.page-context{padding-left:32px;font-size:16px;font-weight:550}.page-context>span{font-size:12px;font-weight:400;color:var(--muted);margin-left:12px}.header-actions{display:flex;align-items:center;gap:20px;margin-left:auto;padding-right:26px}.teacher-link{font-size:12px;color:var(--muted);text-decoration:none;min-height:44px;display:flex;align-items:center}.workspace{display:grid;grid-template-columns:280px minmax(0,1fr);height:calc(100dvh - 68px);min-height:480px}.media{min-width:0;display:flex;flex-direction:column;padding:21px 17px 22px;background:var(--sidebar);border-right:1px solid var(--line);overflow-y:auto;scrollbar-width:thin}.progress{padding:0 6px 26px}.progress>p{color:var(--muted);font-size:11px;margin-bottom:13px}.steps{list-style:none;display:flex;flex-direction:column;gap:8px;margin:0;padding:0;color:var(--muted);font-size:13px}.steps li{display:flex;align-items:center;gap:10px;padding:8px 12px;border-radius:13px}.step-number{font-size:11px;border:1px solid #d2d8df;width:22px;height:22px;display:grid;place-items:center;border-radius:50%;font-variant-numeric:tabular-nums}.steps .active{color:var(--ink);background:#e8ebef;font-weight:600}.steps .active .step-number{background:white;border-color:white;color:var(--accent)}.media-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 8px;list-style:none;cursor:pointer}.media-heading::-webkit-details-marker{display:none}.media-heading strong{font-size:14px;font-weight:600}.media-heading small{display:block;font-size:11px;color:var(--muted);font-weight:400;margin-top:4px}.chevron{width:18px;height:18px;flex-shrink:0;transition:transform .15s}details[open]>.media-heading .chevron{transform:rotate(180deg)}.media-content{padding:5px 6px 0}.upload{display:flex;align-items:center;flex-direction:column;gap:8px;border:1px dashed #c8cfd8;border-radius:18px;padding:23px 10px;text-align:center;cursor:pointer;background:white;color:#4b5563}.upload svg{width:29px;height:29px}.upload span{font-size:13px;font-weight:500}.upload small{font-size:11px;font-weight:400;color:var(--muted);line-height:1.9}.upload:hover,.upload.drag-over{border-color:#75a7d9;background:#f8fbff}.upload[aria-disabled="true"]{opacity:.55;cursor:not-allowed}.preview img,.preview video{width:100%;max-height:280px;object-fit:contain;display:block;border-radius:14px;background:#eaedf2;margin-top:12px}.media.has-preview .upload{flex-direction:row;justify-content:center;flex-wrap:wrap;padding:11px;gap:7px}.media.has-preview .upload svg{width:18px;height:18px}.media.has-preview .upload small{display:none}.media-status{font-size:11px;color:var(--muted);margin:12px 0 0;line-height:1.9}.sample-row{display:flex;gap:5px;flex-wrap:wrap}.samples{margin-top:22px}.samples>span{display:block;font-size:11px;color:var(--muted);margin-bottom:8px}.samples button{font-size:11px;padding:7px 12px;min-height:36px;border-color:#e6e9ef}.targets{margin:14px 0}.targets button{font-size:12px}.targets [aria-pressed="true"]{color:var(--accent);background:var(--accent-soft)}.material-info{font-size:11px;color:var(--muted);margin-top:17px;line-height:1.9}.material-info summary{cursor:pointer;min-height:36px;padding:6px 0}.material-info p{margin:8px 0}.export-button{display:flex;align-items:center;gap:9px;width:100%;padding-left:0;margin-top:16px;font-size:12px;text-align:left}.export-button svg{width:18px;height:18px}.sidebar-note{font-size:11px;color:#65707e;line-height:1.9;margin:auto 6px 0;padding-top:28px}
.dialogue{min-width:0;min-height:0;display:flex;flex-direction:column;background:white}.dialogue-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:39px;padding:2px max(32px,calc((100% - 820px)/2)) 0;color:var(--muted);font-size:11px}#stage-label{color:#6b7280}.conversation{position:relative;flex:1;min-height:100px}#turns{height:100%;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-width:thin;padding:36px max(32px,calc((100% - 820px)/2)) 24px;scroll-padding-bottom:16px;scroll-padding-top:24px}.turn{max-width:100%;margin:0 0 34px;overflow-wrap:anywhere}.turn small{display:block;font-size:12px;font-weight:400;color:#66707e;margin-bottom:12px}.turn.assistant:not(.notice-turn) small::before{content:"";display:inline-block;width:7px;height:7px;border:1.5px solid var(--accent);border-radius:50%;margin-right:9px;vertical-align:1px}.turn p{margin:0;white-space:pre-wrap;line-height:1.85;font-size:16px}.turn.user{max-width:87%;width:fit-content;margin-left:auto;border-radius:23px;padding:12px 18px;background:var(--accent);color:white}.turn.user small{display:none}.turn.notice-turn{border-left:2px solid #c8a779;padding:0 0 0 14px;color:#6c5639}.turn.notice-turn small{color:var(--warning);margin-bottom:6px}.turn.notice-turn p{font-size:13px;line-height:1.8}.turn-actions{display:flex;gap:8px;margin-top:9px}.turn-actions button{min-height:36px;border:0;padding:5px 0;color:var(--accent);background:transparent;font-size:12px;text-decoration:underline;text-underline-offset:4px}.waiting{display:flex;gap:10px;align-items:flex-start;color:var(--muted);font-size:13px;padding:0 0 14px}.spinner{width:15px;height:15px;border:2px solid #e0eaf7;border-top-color:var(--accent);border-radius:50%;flex-shrink:0;margin-top:4px;animation:spin .8s linear infinite}.waiting small{display:block;font-size:11px;line-height:1.8;margin-top:4px}.latest{position:absolute;left:50%;bottom:12px;transform:translateX(-50%);background:white;white-space:nowrap;border-radius:22px;box-shadow:0 2px 10px #1d2d4210;font-size:12px;padding:7px 14px;min-height:36px}.latest:not(:disabled):active{transform:translateX(-50%)}
.composer{flex-shrink:0;padding:10px max(24px,calc((100% - 860px)/2)) 18px;background:white}.input-wrap{border:1px solid #e2e6ec;border-radius:29px;padding:5px 7px 7px;background:rgb(255 255 255 / .97);box-shadow:0 2px 12px #101b2a08;transition:border-color .15s,box-shadow .15s}.input-wrap:focus-within{border-color:var(--accent);outline:2px solid var(--accent);outline-offset:2px;box-shadow:0 2px 12px #006cd00a}textarea{font:inherit;display:block;width:100%;min-height:67px;max-height:180px;resize:none;overflow-y:auto;border:0;padding:13px 13px 4px;border-radius:24px 24px 0 0;background:transparent;color:var(--ink);font-size:16px;line-height:1.75}textarea::placeholder{color:#6b7280}textarea:focus-visible{outline:none}textarea[readonly]{color:var(--muted)}.composer-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:2px 2px 0}.composer-tools,.send-actions{display:flex;align-items:center;gap:9px}.attach-button{color:var(--accent);width:40px;min-width:40px;height:40px}.attach-button svg{width:22px;height:22px}.context-label{font-size:12px;color:#626d7b}.send-actions{gap:14px}#character-count{font-size:10px;color:#6b7280;font-variant-numeric:tabular-nums;white-space:nowrap}.send-button{width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border:0;border-radius:50%;display:grid;place-items:center;background:var(--accent);color:#fff}.send-button:not(:disabled):hover{background:var(--accent-hover)}.send-button:disabled{background:#d8e8f8;color:#fff}#send-icon{font-family:Arial,sans-serif;font-size:28px;font-weight:400;line-height:1;transform:translateY(-1px)}.composer-meta{display:flex;justify-content:space-between;gap:8px;color:#6b7280;font-size:10px;padding:9px 13px 0}.reveal-action{display:flex;justify-content:space-between;gap:12px;align-items:center;min-height:25px;margin-top:3px;padding:0 13px}.reveal-action p{font-size:10px;color:var(--muted);margin:0}.reveal-action button{color:var(--accent);font-size:12px;min-height:36px;padding:4px 0;white-space:nowrap}#answer-status{font-size:11px;color:var(--muted);margin:7px 13px 0}#answer-status:empty{display:none}.error{font-size:12px;color:var(--error);background:var(--error-bg);padding:10px 13px;border-radius:14px;margin:9px 6px 0;line-height:1.8}
.reveal-panel{padding:32px;max-width:960px;margin:0 auto;border-top:1px solid var(--line);overflow-wrap:anywhere}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}.section-heading h2{font-size:20px;margin:0}.section-heading span{font-size:12px;color:var(--muted)}.reveal-panel>p,#resource-status{font-size:14px;color:var(--muted)}.reveal-panel>h3{font-size:18px;margin-top:30px}.candidate{padding:16px 0;border-bottom:1px solid var(--line)}.candidate p{margin:7px 0;font-size:15px}.candidate small{font-size:12px;color:var(--muted)}.refs{padding:24px 0;border-top:1px solid var(--line)}.refs h3{font-size:17px}.refs p{font-size:14px;margin-bottom:8px}.images{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:18px}.images figure{margin:0}.images img{width:100%;height:190px;object-fit:contain;border-radius:16px;background:#f4f6f8}.images figcaption{font-size:11px;color:var(--muted);line-height:1.9;margin-top:8px}.reflection{padding-top:22px;border-top:1px solid var(--line);margin:0}[hidden]{display:none!important}@keyframes spin{to{transform:rotate(360deg)}}
@media(max-width:1100px){.brand{width:245px;padding:0 21px}.workspace{grid-template-columns:245px minmax(0,1fr)}.page-context{padding-left:26px}.dialogue-heading{padding-left:27px;padding-right:27px}#turns{padding:25px 27px 18px}.composer{padding-left:22px;padding-right:22px}.context-label{font-size:11px}}
@media(max-width:760px){.site-header{height:62px;border-bottom:1px solid #f3f4f6}.brand{width:auto;height:62px;padding:0 18px;background:white;border:0;font-size:21px}.brand svg{width:24px;height:24px}.page-context{margin:auto;padding:0;font-size:14px}.page-context>span{display:none}.header-actions{margin:0;padding-right:10px;gap:8px}.teacher-link{display:none}.workspace{display:flex;flex-direction:column;height:calc(100dvh - 62px);min-height:480px}.media{flex-shrink:0;display:block;padding:0 16px;background:white;border:0;border-bottom:1px solid #f3f4f6;max-height:45dvh;overflow-y:auto}.progress,.sidebar-note{display:none}.media-heading{padding:11px 3px}.media-heading>span{display:flex;align-items:center;gap:12px;min-width:0}.media-heading strong{font-size:12px;white-space:nowrap;color:#5d6570}.media-heading small{font-size:11px;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chevron{width:17px;height:17px;color:#87909c}.media-content{padding:0 3px 16px}.upload{padding:17px 10px;border-radius:18px}.preview img,.preview video{max-height:230px}.samples{margin-top:15px;display:flex;justify-content:space-between;align-items:center;gap:12px}.samples>span{margin:0}.samples button{min-height:40px}.material-info{margin-top:11px}.export-button{min-height:42px;margin-top:8px}.dialogue{flex:1;min-height:0}.dialogue-heading{padding:10px 20px 0;min-height:31px;font-size:10px}#turns{padding:24px 20px 18px}.conversation{min-height:80px}.turn{margin-bottom:28px}.turn small{font-size:11px;margin-bottom:9px}.turn p{font-size:17px;line-height:1.8}.turn.user{max-width:90%;padding:11px 16px;border-radius:23px}.turn.notice-turn p{font-size:13px}.composer{padding:6px 12px max(10px,env(safe-area-inset-bottom))}.input-wrap{border-radius:28px;padding:4px 7px 7px}textarea{font-size:16px;min-height:63px;max-height:150px;padding:11px 11px 3px}.composer-actions{gap:5px}.composer-tools{gap:3px}.context-label{font-size:11px}.send-actions{gap:10px}#character-count{font-size:9px}.composer-meta{font-size:9px;padding:7px 11px 0}.composer-meta>span:last-child{display:none}.reveal-action{padding:0 11px;gap:8px;align-items:center;margin-top:3px}.reveal-action p{font-size:10px;line-height:1.6}.reveal-action button{min-height:40px;font-size:11px}.latest{bottom:5px;font-size:11px}.reveal-panel{padding:24px 20px}.section-heading{align-items:flex-start;flex-direction:column;gap:7px}.section-heading h2{font-size:19px}.images{grid-template-columns:1fr}.images img{height:235px}}
@media(max-width:360px){.brand{padding:0 12px;font-size:19px}.brand svg{width:22px;height:22px}.page-context{font-size:13px}.media{padding:0 13px}.media-heading>span{gap:9px}#turns{padding-left:16px;padding-right:16px}.context-label{font-size:10px}.send-actions{gap:7px}.composer-tools{gap:0}.composer{padding-left:9px;padding-right:9px}.composer-meta{font-size:8px}.reveal-action p{font-size:9px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.spinner{border-style:dotted}}

.mobile-teacher{display:none}@media(max-width:760px){.mobile-teacher{display:flex;min-height:42px;align-items:center;font-size:12px;text-decoration:none;color:var(--muted);margin-top:4px}}
