@media (min-width:801px){body{zoom:.8}}
.category-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.category-card{min-height:200px;border:0;border-radius:8px;padding:24px;text-align:left;display:flex;flex-direction:column;align-items:flex-start;gap:20px;color:#172238;cursor:pointer;transition:filter .15s,transform .15s}
.category-card:hover{filter:brightness(.98);transform:translateY(-2px)}
.category-title{display:flex;align-items:center;gap:12px}.category-title strong{font-size:16px;line-height:1.4}.category-icon{width:36px;height:36px;border-radius:7px;display:grid;place-items:center;color:#fff;font-weight:700;background:#f28d25}.category-subjects{font-size:13px;color:#587184}.category-0{background:#f5d0a9}.category-1{background:#bce6f4}.category-2{background:#c8e3fc}.category-3{background:#a7e5cb}.category-4{background:#cdddfb}.category-5{background:#e2d5f5}.category-1 .category-icon{background:#2ca8c8}.category-2 .category-icon{background:#5aaee4}.category-3 .category-icon{background:#37aa62}.category-4 .category-icon{background:#4f79ee}.category-5 .category-icon{background:#a86ae2}
.assistant-root{position:static}.assistant-launch{position:fixed;right:24px;bottom:24px;z-index:24;touch-action:none;cursor:grab}.assistant-launch:active{cursor:grabbing}.assistant-backdrop{position:fixed;inset:0;z-index:25;background:#21213dbb;display:flex;align-items:center;justify-content:center;padding:28px}.assistant-window{position:relative;inset:auto;width:min(1280px,100%);height:min(790px,100%);max-height:100%;background:#f7f6fb;border:1px solid #d6d4e4;border-radius:8px;box-shadow:0 20px 65px #17152d55;overflow:hidden}.assistant-window header{background:#fff;padding:22px 26px;border-color:#e9e7f0;align-items:center}.assistant-window header strong{font-size:19px;color:#40366b}.assistant-window header small{font-size:12px;color:#8d8a9d}.assistant-window header button{font-size:24px}.chat-layout{display:grid;grid-template-columns:300px minmax(0,1fr);min-height:0;flex:1}.chat-history{min-height:0;display:flex;flex-direction:column;background:#f3f1f8;border-right:1px solid #e5e2ee}.chat-history-head{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:22px;border-bottom:1px solid #e3e0eb}.chat-history-head strong{font-size:15px}.chat-history-head button{border:0;border-radius:6px;background:#7259d2;color:#fff;padding:9px 12px;font-weight:600}.chat-thread-list{padding:14px;overflow:auto;flex:1}.chat-thread{display:flex;align-items:start;border:1px solid transparent;border-radius:7px;margin-bottom:8px}.chat-thread.active{background:#e6ddf8;border-color:#cbb5ec}.thread-select{background:none;border:0;text-align:left;padding:14px;min-width:0;flex:1;color:#4a4460}.thread-select strong,.thread-select small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.thread-select small{color:#92899d;margin-top:6px}.thread-delete{border:0;background:none;color:#9a8cab;padding:10px;font-size:18px}.chat-empty,.chat-local{color:#9c95a7;font-size:12px}.chat-local{padding:12px 18px;border-top:1px solid #e3e0eb}.chat-main{display:flex;flex-direction:column;min-width:0;min-height:0;background:#fbfbfe}.assistant-messages{padding:26px;gap:16px}.assistant-bubble{max-width:85%;padding:16px 18px;font-size:14px;line-height:1.7;white-space:normal}.assistant-reply{background:#f0eef6;color:#3f3a52}.assistant-user{white-space:pre-wrap;background:#e5edff;color:#334c76}.assistant-form{padding:18px 22px 10px;align-items:stretch}.assistant-form textarea{background:#f5f4f9;border-color:#e4e0ed;min-height:58px}.assistant-form button{background:#6c5bc8;min-width:78px}.assistant-disclaimer{padding:0 22px 15px}.markdown-body{white-space:normal;overflow-wrap:anywhere}.markdown-body p{margin:0 0 10px;color:inherit;line-height:1.7}.markdown-body p:last-child{margin-bottom:0}.markdown-body h1,.markdown-body h2,.markdown-body h3,.markdown-body h4{font-size:1.1em;margin:14px 0 8px;line-height:1.4}.markdown-body ul,.markdown-body ol{padding-left:23px;margin:8px 0}.markdown-body li{margin:4px 0}.markdown-body pre{overflow:auto;background:#272c3a;color:#f2f4f7;padding:14px;border-radius:5px;line-height:1.55}.markdown-body code{font-family:Consolas,monospace}.markdown-body :not(pre)>code{background:#edf0f3;padding:2px 4px;border-radius:3px}.markdown-body blockquote{border-left:3px solid #a4a0c6;margin:10px 0;padding-left:12px;color:#707181}.markdown-body table{border-collapse:collapse;display:block;overflow-x:auto}.markdown-body th,.markdown-body td{border:1px solid #d6dfdc;padding:7px 10px}.markdown-body a{color:#3869ad;overflow-wrap:anywhere}
@media(max-width:800px){.category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.category-card{min-height:145px;padding:16px;gap:15px}.category-title strong{font-size:13px}.category-icon{width:30px;height:30px}.category-subjects{font-size:11px}.assistant-launch{bottom:76px;right:14px}.assistant-backdrop{padding:10px}.assistant-window{height:min(720px,95%)}.assistant-window header{padding:15px}.chat-layout{grid-template-columns:minmax(0,1fr)}.chat-history{max-height:115px;border-right:0;border-bottom:1px solid #e5e2ee}.chat-history-head{padding:9px 12px}.chat-thread-list{display:flex;padding:5px;gap:6px}.chat-thread{min-width:145px;margin:0}.thread-select{padding:8px}.thread-select small,.chat-local,.chat-empty{display:none}.assistant-messages{padding:16px}.assistant-bubble{max-width:95%}.assistant-form{padding:10px}}
@media(max-width:380px){.category-grid{grid-template-columns:1fr}.category-card{min-height:115px}}
.paper-heading>div{min-width:0}.paper-heading h3{overflow-wrap:anywhere}.paper-status{flex-shrink:0}.library-paper{min-width:0}.paper-details{line-height:1.6}.programming-open{margin-left:12px;white-space:nowrap}.program-page{max-width:1600px;margin:auto;padding:26px 30px}.program-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.program-head h1{font-size:21px;margin:8px 0}.program-score{color:#8a9aa5}.program-layout{display:grid;grid-template-columns:minmax(300px,40%) minmax(0,1fr);gap:20px}.program-description,.program-work{padding:20px;min-width:0}.program-description h2{margin-bottom:14px}.program-images img,.program-description details img{display:block;width:100%;height:auto}.program-description details{border-top:1px solid #e5ece8;padding-top:15px}.program-description summary{cursor:pointer;color:#426fc3;font-weight:600}.program-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px}.program-tools>div{display:flex;gap:7px;flex-wrap:wrap}#codeEditor{height:380px;width:100%;border-radius:5px}.program-io{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:18px}.program-io label,.program-io>div{display:grid;gap:8px;font-weight:600;color:#53665c}.program-io textarea,.program-io pre{height:130px;margin:0;border:1px solid #e0e9e3;border-radius:5px;padding:10px;background:#f8faf9;font:13px Consolas,monospace;resize:vertical;overflow:auto;white-space:pre-wrap}.program-warning{font-size:12px;margin-top:14px}.examtoolbar{flex-wrap:wrap;gap:10px}@media(max-width:800px){.program-layout{grid-template-columns:1fr}.program-page{padding:16px 12px}.program-io{grid-template-columns:1fr}.program-tools>div{width:100%}.program-tools .button{padding:8px}#codeEditor{height:300px}}
.num.card-unanswered{background:#fbeaf0;border-color:#f4d8e2;color:#af657c}.num.card-correct{background:#e3f5eb;border-color:#b9e5ca;color:#188252}.num.card-wrong{background:#fce8e7;border-color:#efc1bd;color:#c14940}.num.card-saved{background:#edf1f9;border-color:#cfd8eb;color:#617596}.num.current{outline:2px solid #4c75cf;outline-offset:0}.dot.card-unanswered{background:#e5a5bd}.dot.card-correct{background:#43a873}.dot.card-wrong{background:#d76a61}.dot.card-saved{background:#8b9dbd}.legend{flex-wrap:wrap;gap:10px 14px}.program-with-card{display:grid;grid-template-columns:250px minmax(0,1fr);gap:20px;align-items:start}.program-main{min-width:0}.program-answerpanel{top:20px}.program-answerpanel .groupname:first-of-type{margin-top:20px}@media(max-width:1000px){.program-with-card{grid-template-columns:1fr}.program-answerpanel{position:static}.program-answerpanel .numbers{grid-template-columns:repeat(10,minmax(0,1fr))}}@media(max-width:480px){.program-answerpanel .numbers{grid-template-columns:repeat(5,minmax(0,1fr))}}
.text-question{--question-font:16px}.question-rich{font-size:var(--question-font,16px);line-height:1.85;color:#263b34;overflow-wrap:anywhere}.question-rich p{margin:0 0 .65em;color:inherit;line-height:inherit}.question-rich img{max-width:100%;height:auto;display:inline-block;vertical-align:middle}.question-rich pre{overflow:auto;background:#f2f5f4;padding:12px;border-radius:5px}.text-options{display:grid;gap:10px;margin-top:20px}.text-option{width:100%;display:flex;align-items:flex-start;gap:12px;text-align:left;padding:14px;border:1px solid #dce6e1;border-radius:6px;background:#fff;color:#30453b;font-size:var(--question-font,16px);line-height:1.65}.text-option:hover,.text-option.selected{border-color:#428a72;background:#edf8f3}.text-option.correct{border-color:#36a16b;background:#e8f7ee}.text-option.wrong{border-color:#db776d;background:#fff0ee}.text-option:disabled{opacity:1;cursor:default}.option-letter{flex:none;width:28px;height:28px;display:grid;place-items:center;border:1px solid #d5e0da;border-radius:50%;font-size:13px;font-weight:700}.option-content{min-width:0;flex:1;overflow-wrap:anywhere}.option-content p{margin:0;color:inherit;line-height:inherit}.option-content img{max-width:100%;height:auto;vertical-align:middle}.text-explanation{margin-top:20px;padding:16px;background:#f3f8f5;border-radius:6px;color:#2d7158;font-size:var(--question-font,16px)}.text-explanation h4{margin:12px 0 8px}.font-controls{display:flex;align-items:center;gap:6px;color:#81938b;font-size:12px}.font-controls button{border:1px solid #dce6e1;border-radius:4px;background:#fff;color:#496257;padding:5px 9px;font-size:13px}.demo-program-dialog{max-width:900px}.demo-program-dialog .ai-result{font-size:16px}
.demo-coding{border-top:1px solid #e0e9e3;margin-top:22px;padding-top:18px}.demo-coding-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:12px}.demo-coding-head h3{margin:0;font-size:16px}.demo-coding-head>div{display:flex;gap:8px}#demoCodeEditor{width:100%;height:300px;border-radius:5px}.demo-coding>p{font-size:12px;margin:12px 0;color:#7a8b83}#demoCodeReview{margin-top:12px;color:#30483c}
.pure-page{max-width:1400px;margin:auto;padding:30px 32px}.pure-layout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:22px;align-items:start}.pure-card{position:sticky;top:95px}.pure-list{min-width:0}.pure-item{min-height:110px}.pure-note{display:block}.pure-page .program-head{margin-bottom:22px}@media(max-width:800px){.pure-page{padding:16px 12px}.pure-layout{grid-template-columns:1fr}.pure-card{position:static}}
#structuredEditor{height:380px;width:100%;border-radius:5px}.structured-layout{grid-template-columns:minmax(260px,40%) minmax(0,1fr)}.structured-layout .program-description{max-height:75vh;overflow:auto}.structured-layout .question-rich img{display:block;max-width:100%;height:auto;margin:8px 0}.structured-layout .program-work{min-width:0}#structuredReviewOutput{margin-top:14px;color:#30483c}@media(max-width:1000px){.structured-layout{grid-template-columns:1fr}.structured-layout .program-description{max-height:none}}@media(max-width:800px){#structuredEditor{height:300px}}
.structured-page{max-width:none;padding:22px 28px 32px}.structured-page .program-with-card{grid-template-columns:230px minmax(0,1fr);gap:18px}.structured-page .program-answerpanel{top:88px;padding:18px}.structured-page .program-answerpanel .legend{line-height:1.5}.structured-page .program-head{min-height:40px;margin:0 0 12px;align-items:center}.structured-page .program-head>div{display:flex;align-items:center;gap:10px}.structured-page .program-head h1{font-size:17px;line-height:1.4;margin:0}.structured-page .program-score{font-size:12px}.structured-page .structured-layout{grid-template-columns:minmax(300px,39fr) minmax(0,61fr);gap:16px;align-items:stretch}.structured-page .program-description,.structured-page .program-work{height:min(690px,calc(100vh - 185px));min-height:420px;margin:0;padding:18px;overflow:auto}.structured-page .program-description{max-height:none}.structured-page .program-description h2{font-size:15px;margin:0 0 14px}.structured-page .program-description .question-rich{font-size:15px;line-height:1.7}.structured-page .program-work{display:flex;flex-direction:column}.structured-page .program-tools{min-height:38px;flex:none;margin:0 0 12px}.structured-page .program-tools strong{font-size:14px}.structured-page .program-tools>div{justify-content:flex-end}.structured-page .program-tools .button{padding:9px 12px;font-size:12px}.structured-page #structuredEditor{flex:1 0 280px;height:auto;min-height:280px}.structured-page .program-warning{flex:none;margin-top:10px;line-height:1.5}.structured-page .program-io{flex:none}.structured-page .examnav{margin-top:12px}.structured-page .examnav .button{padding:9px 14px;font-size:12px}.structured-page .question-rich img{max-width:100%;height:auto}.structured-page #structuredReviewOutput:empty{display:none}@media(max-width:1100px){.structured-page .program-with-card{grid-template-columns:200px minmax(0,1fr)}.structured-page .structured-layout{grid-template-columns:minmax(240px,40fr) minmax(0,60fr)}}@media(max-width:1000px){.structured-page .program-with-card{grid-template-columns:1fr}.structured-page .program-answerpanel{position:static}.structured-page .structured-layout{grid-template-columns:1fr}.structured-page .program-description,.structured-page .program-work{height:auto;min-height:0;max-height:none;overflow:visible}.structured-page #structuredEditor{height:340px;flex:none}.structured-page .program-description .question-rich{font-size:15px}}@media(max-width:800px){.structured-page{padding:16px 12px 24px}.structured-page .program-with-card{gap:12px}.structured-page .program-description,.structured-page .program-work{padding:15px}.structured-page .program-tools>div{width:100%;justify-content:flex-start}.structured-page #structuredEditor{height:300px}.structured-page .program-io{grid-template-columns:1fr}}
.profile-content{max-width:1540px}.profile-banner{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:145px;padding:25px 30px;background:#eeebfa;border:1px solid #e5e0f6;border-radius:8px}.profile-identity{display:flex;align-items:center;gap:20px;min-width:0}.profile-avatar{display:grid;place-items:center;flex:none;border-radius:50%;object-fit:cover;background:#7660d7;color:white;font-weight:700}.profile-avatar-large{width:78px;height:78px;font-size:25px;border:4px solid #d6cafa}.profile-avatar-small{width:58px;height:58px;font-size:20px}.profile-identity-text{min-width:0}.profile-identity-text h1{font-size:21px;margin:0 0 9px;overflow-wrap:anywhere}.profile-local-tag{display:inline-block;border-radius:4px;background:#e0d9f7;color:#6d59b8;padding:4px 8px;font-size:11px;font-weight:600}.profile-target-line{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:12px;color:#7c8390;font-size:12px}.profile-target-line strong{color:#35465a}.profile-switch{padding:6px 10px;font-size:12px}.profile-days{display:flex;flex-direction:column;align-items:center;gap:5px;min-width:80px}.profile-days strong{font-size:27px;color:#5375d0}.profile-days span{font-size:12px;color:#8991a0}.profile-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));background:#ebeef2;border-radius:8px 8px 0 0;padding:7px;margin-top:28px}.profile-tabs button{border:0;background:transparent;padding:14px;color:#64717e;font-weight:600;border-radius:6px}.profile-tabs button.active{background:white;color:#344d69}.profile-panel{margin-top:12px;background:white;border:1px solid #e5ece8;border-radius:8px;padding:24px;min-height:280px}.profile-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:25px}.profile-panel-head h2{font-size:16px}.profile-panel-head .button{padding:8px 13px;font-size:12px}.profile-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 20px}.profile-fields label{display:grid;gap:8px;font-weight:600;font-size:12px;color:#40564c}.profile-fields input,.profile-fields select,.profile-readonly{width:100%;min-height:40px;border:1px solid #e1e8e5;border-radius:5px;background:#f7f9f8;padding:10px 12px;color:#34493f;font:inherit}.profile-readonly{display:flex;align-items:center;color:#9ba9a2;font-weight:400}.profile-fields input:focus,.profile-fields select:focus{outline:2px solid #c9d9f7;background:#fff}.profile-avatar-section{border-top:1px solid #edf1ef;margin-top:24px;padding-top:22px;font-size:12px}.profile-avatar-row{display:flex;align-items:center;gap:14px;margin-top:12px}.profile-avatar-row p{font-size:11px;margin-top:8px;color:#95a39c}.profile-upload{display:inline-block;cursor:pointer;padding:8px 12px}.profile-status{min-height:18px;margin-top:12px;color:#278267;font-size:12px}.profile-records .paper{padding:16px;margin-bottom:10px}.profile-empty{padding:65px 15px;text-align:center;color:#9ba9a2;font-size:13px}@media(max-width:800px){.profile-banner{padding:20px;align-items:flex-start}.profile-avatar-large{width:58px;height:58px;font-size:19px}.profile-identity{gap:12px}.profile-identity-text h1{font-size:18px}.profile-days{min-width:45px}.profile-days strong{font-size:20px}.profile-tabs{margin-top:18px}.profile-tabs button{padding:12px 4px;font-size:12px}.profile-panel{padding:18px}.profile-fields{grid-template-columns:1fr;gap:16px}.profile-records .paper{flex-wrap:wrap}}
.wrong-ai-actions{margin:0 0 16px}.paper-selector{display:grid;gap:10px;max-height:50vh}.paper-selector label{display:flex;align-items:flex-start;gap:8px;color:#334b40;line-height:1.5}.paper-selector input{margin-top:4px}.paper-selector-actions{padding:16px 24px;border-top:1px solid #edf1ef}
.result-report{background:#fff;border:1px solid #e1eae5;border-radius:8px;padding:20px 24px;margin-bottom:18px}.report-head{display:flex;justify-content:space-between;gap:16px;align-items:center}.report-head h2{font-size:16px}.report-head p,.report-note{font-size:12px;color:#84948c;margin-top:5px}.report-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0}.report-metrics div{display:flex;flex-direction:column;gap:6px}.report-metrics strong{font-size:20px;color:#386c59}.report-metrics span{font-size:12px;color:#83958b}.report-insight{border-top:1px solid #edf1ef;padding-top:14px;font-size:13px}.report-insight p{font-size:13px;margin-top:6px}.report-note{margin-top:12px}@media(max-width:480px){.report-metrics{grid-template-columns:repeat(2,1fr)}.report-head{align-items:flex-start;flex-direction:column}}
.program-description img{cursor:zoom-in}.program-description img:focus-visible{outline:3px solid #527bdb;outline-offset:3px}.image-viewer-overlay{position:fixed;inset:0;z-index:50;background:#172323c9;display:flex;align-items:center;justify-content:center;padding:20px}.image-viewer{width:min(1200px,100%);height:min(900px,95vh);background:#fff;border-radius:8px;display:flex;flex-direction:column;overflow:hidden}.image-viewer header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-bottom:1px solid #e6ece9}.image-viewer header>div{display:flex;align-items:center;gap:8px}.image-viewer button{width:34px;height:34px;border:1px solid #dce6e1;border-radius:5px;background:#fff;color:#35544a;font-size:18px}.image-zoom-value{min-width:42px;text-align:center;font-size:12px;color:#6c8076}.image-viewer-scroll{flex:1;overflow:auto;padding:18px;background:#f1f4f3}.image-viewer-scroll img{display:block;max-width:none;height:auto;object-fit:contain;transform-origin:top left}.image-viewer-close{margin-left:8px}@media(max-width:800px){.image-viewer-overlay{padding:8px}.image-viewer{height:90vh}.image-viewer-scroll{padding:10px}}
