*{margin:0;padding:0;box-sizing:border-box}html,body{height:100%;overflow:hidden}body{font-family:PingFang SC,Microsoft YaHei,sans-serif;background:#f5f7fa;display:flex;flex-direction:column}.header{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:8px 20px;display:flex;align-items:center;justify-content:space-between;box-shadow:0 2px 8px #00000026;flex-shrink:0;height:46px}.header h1{font-size:15px;font-weight:600}.header-right{display:flex;gap:8px;align-items:center}.h-input{padding:4px 10px;border:none;border-radius:14px;font-size:12px;width:80px;color:#333}.class-badge{padding:4px 12px;background:#ffffff38;border:1px solid rgba(255,255,255,.35);border-radius:14px;color:#fff;font-size:12px;font-weight:600;letter-spacing:.5px;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.main{flex:1;display:flex;overflow:hidden}.sidebar{width:180px;background:#fff;border-right:1px solid #e8ecf0;padding:12px 8px;display:flex;flex-direction:column;gap:5px;flex-shrink:0;overflow-y:auto}.sb-title{font-size:10px;color:#aaa;padding:2px 8px;letter-spacing:.5px}.task-btn{display:flex;align-items:center;gap:8px;padding:10px 12px;border-radius:10px;cursor:pointer;border:2px solid transparent;background:#f8f9fb;transition:all .2s;font-size:12px;color:#333;text-align:left}.task-btn:hover{background:#eef0f5}.task-btn.active{border-color:#667eea;background:#f0eeff}.task-btn .t-icon{font-size:18px;flex-shrink:0}.task-btn .t-label{font-weight:600}.task-btn .t-sub{font-size:10px;color:#888}.task-btn.done .t-label:after{content:" ✓";color:#4caf50}.sb-divider{height:1px;background:#e8ecf0;margin:4px 0}.task-btn.ext{background:#fff8e1;border-color:#ffe082}.task-btn.ext.active{background:#fff3e0;border-color:#ff9800}.canvas-area{flex:1;position:relative;background:#f0f2f5;overflow:hidden}#mainCanvas{position:absolute;top:0;left:0}.canvas-lock{position:absolute;top:12px;left:50%;transform:translate(-50%);background:#ff9800eb;color:#fff;padding:6px 18px;border-radius:16px;font-size:13px;font-weight:600;pointer-events:none;display:none;z-index:5}.canvas-lock.show{display:block}.canvas-hint{position:absolute;bottom:12px;left:50%;transform:translate(-50%);background:#000000b3;color:#fff;padding:6px 14px;border-radius:16px;font-size:11px;pointer-events:none;opacity:0;transition:opacity .3s;white-space:nowrap}.canvas-hint.show{opacity:1}.guess-bubbles{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}.guess-bubble{padding:8px 16px;border:2px solid #e0e4e8;border-radius:20px;background:#f8f9fb;cursor:pointer;font-size:13px;color:#555;transition:all .2s;-webkit-user-select:none;user-select:none}.guess-bubble:hover{border-color:#667eea;background:#f0eeff}.guess-bubble.selected{border-color:#667eea;background:#eef0ff;color:#667eea;font-weight:600;box-shadow:0 0 0 2px #667eea33}.verify-choice{display:flex;gap:10px;margin-bottom:12px}.vc-btn{flex:1;padding:12px;border:2px solid #e0e4e8;border-radius:12px;background:#f8f9fb;cursor:pointer;font-size:14px;color:#555;transition:all .2s;text-align:center}.vc-btn:hover{border-color:#667eea;background:#f0eeff}.vc-btn.selected{font-weight:600;box-shadow:0 0 0 2px #667eea33}.vc-btn.vc-yes.selected{border-color:#4caf50;background:#e8f5e9;color:#2e7d32}.vc-btn.vc-partial.selected{border-color:#ff9800;background:#fff3e0;color:#e65100}.vc-btn.vc-no.selected{border-color:#f44336;background:#ffebee;color:#c62828}.teacher-btn{padding:4px 10px;border:1px solid rgba(255,255,255,.4);border-radius:14px;background:#ffffff26;color:#fff;font-size:11px;cursor:pointer}.teacher-btn:hover{background:#ffffff4d}.teacher-modal{position:fixed;top:0;left:0;width:100%;height:100%;background:#00000080;z-index:100;display:none;align-items:center;justify-content:center}.teacher-modal.show{display:flex}.teacher-panel{background:#fff;border-radius:16px;width:90%;max-width:1000px;max-height:85vh;display:flex;flex-direction:column;box-shadow:0 8px 32px #0003}.teacher-header{padding:14px 20px;border-bottom:1px solid #e8ecf0;display:flex;align-items:center;justify-content:space-between}.teacher-header h2{font-size:15px;color:#333}.teacher-header-actions{display:flex;gap:8px;align-items:center}.teacher-close{width:30px;height:30px;border:none;background:#f0f2f5;border-radius:8px;cursor:pointer;font-size:16px;color:#666}.teacher-body{flex:1;overflow-y:auto;padding:16px 20px}.teacher-task-tabs{display:flex;gap:0;border-bottom:2px solid #e8ecf0;margin-bottom:12px}.teacher-task-tab{padding:10px 16px;cursor:pointer;font-size:13px;color:#888;border-bottom:2px solid transparent;margin-bottom:-2px;transition:all .2s}.teacher-task-tab:hover{color:#667eea}.teacher-task-tab.active{color:#667eea;font-weight:600;border-bottom-color:#667eea}.teacher-task-tab .tab-count{font-size:10px;background:#e8ecf0;padding:1px 6px;border-radius:8px;margin-left:4px;color:#888}.teacher-task-tab.active .tab-count{background:#eef0ff;color:#667eea}.teacher-subgroup{font-size:13px;font-weight:600;margin:12px 0 6px;padding-left:12px;display:flex;align-items:center;gap:6px}.teacher-subgroup .sg-icon{font-size:14px}.teacher-card{border:1px solid #e8ecf0;border-radius:10px;padding:12px 16px;margin-bottom:10px;background:#fafbfc;display:flex;gap:12px;align-items:flex-start}.tc-info{flex-shrink:0;min-width:100px}.tc-head{display:flex;align-items:center;gap:6px;margin-bottom:4px;flex-wrap:wrap}.tc-name{font-weight:600;font-size:13px;color:#333}.tc-id{font-size:11px;color:#888;background:#f0f2f5;padding:2px 8px;border-radius:10px}.tc-time{font-size:10px;color:#bbb}.tc-row{font-size:12px;color:#555;margin-bottom:3px}.tc-row span{font-weight:600;color:#333}.tc-img-wrap{position:relative;flex-shrink:0}.tc-img{border:1px solid #e8ecf0;border-radius:6px;cursor:pointer;max-width:240px;display:block;background:#f0f2f5}.tc-img:hover{opacity:.8}.tc-img-actions{display:flex;gap:4px;margin-top:6px}.tc-action-btn{padding:4px 10px;border:1px solid #e0e4e8;border-radius:6px;background:#fff;cursor:pointer;font-size:11px;transition:all .2s}.tc-action-btn:hover{background:#f0eeff;border-color:#667eea}.tc-action-btn.hide-btn{color:#e65100;border-color:#ffcc80}.tc-action-btn.hide-btn:hover{background:#fff3e0;border-color:#ff9800}.tc-action-btn.hide-btn.hiding{background:#ff9800;color:#fff;border-color:#ff9800}.tc-action-btn.hide-btn.hiding:hover{background:#f57c00;border-color:#f57c00}.teacher-card.hidden-original .tc-img-wrap:after{content:"🙈 已隐藏原图";position:absolute;top:6px;left:6px;background:#ff9800;color:#fff;font-size:11px;padding:2px 8px;border-radius:6px;font-weight:600}.tc-action-btn.del-btn{color:#c00;border-color:#f66}.tc-action-btn.del-btn:hover{background:#fee}.tc-trials{margin-top:6px;padding:6px 8px;background:#f0f2f5;border-radius:6px}.tc-trial-row{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:6px 0;font-size:11px;border-bottom:1px solid #e8ecf0}.tc-trial-row:last-child{border-bottom:none}.tc-trial-info{display:flex;flex-direction:column;gap:2px;flex-shrink:0}.tc-trial-guess{color:#555}.tc-trial-result{font-weight:600}.tc-trial-img{flex:1;min-width:0;position:relative}.tc-trial-thumb{max-width:100%;max-height:60px;border-radius:4px;border:1px solid #ddd;cursor:pointer;object-fit:contain}.tc-trial-hide-btn{position:absolute;top:2px;right:2px;border:none;background:#ffffffd9;border-radius:4px;font-size:12px;cursor:pointer;padding:1px 4px;line-height:1;z-index:1;box-shadow:0 1px 3px #00000026}.tc-trial-broadcast-btn{position:absolute;top:2px;right:28px;border:none;background:#ffffffd9;border-radius:4px;font-size:12px;cursor:pointer;padding:1px 4px;line-height:1;z-index:1;box-shadow:0 1px 3px #00000026}.teacher-empty{text-align:center;padding:40px;color:#999;font-size:14px}.teacher-count{font-size:12px;color:#888;background:#f0f2f5;padding:2px 10px;border-radius:10px}.teacher-stats{display:flex;align-items:center;justify-content:space-between;padding:10px 16px;background:#f0f2f5;border-radius:8px;margin-bottom:12px;font-size:12px;color:#555;flex-wrap:wrap;gap:8px}.teacher-stats-left{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.teacher-stats-right{display:flex;align-items:center;gap:4px;flex-wrap:wrap}.teacher-stats-label{font-weight:600;color:#333}.teacher-stats-num{background:#667eea;color:#fff;padding:1px 10px;border-radius:10px;font-weight:600}.teacher-stats-done{background:#4caf50;color:#fff;padding:1px 10px;border-radius:10px;font-weight:600}.teacher-stats-missing{color:#f44336;font-weight:600}.teacher-stats-id{background:#fff3e0;color:#e65100;padding:1px 7px;border-radius:6px;font-size:11px;border:1px solid #ffe0b2}.teacher-task-stats{font-size:11px;color:#888;margin-bottom:10px;padding-left:4px}.roster-cell{padding:10px 0;border:2px solid #e0e4e8;border-radius:8px;text-align:center;font-size:14px;font-weight:600;cursor:pointer;background:#eef0ff;color:#667eea;transition:all .15s;-webkit-user-select:none;user-select:none}.roster-cell:hover{transform:translateY(-1px);box-shadow:0 2px 6px #00000014}.roster-cell.excluded{background:#fff3e0;color:#e65100;border-color:#ffe0b2;text-decoration:line-through;opacity:.85}.cm-row{display:flex;align-items:center;gap:8px;padding:10px 12px;border:1px solid #e8ecf0;border-radius:8px;margin-bottom:6px;background:#fff;flex-wrap:wrap}.cm-row.current{border-color:#667eea;background:#eef0ff;box-shadow:0 0 0 1px #667eea33}.cm-row-name{flex:1;min-width:140px;font-size:13px;color:#333;font-weight:600;display:flex;align-items:center;gap:6px}.cm-row-name .cm-current-tag{background:#667eea;color:#fff;font-size:10px;padding:1px 7px;border-radius:6px;font-weight:600}.cm-row-meta{font-size:11px;color:#888}.cm-row-actions{display:flex;gap:5px}.cm-mini-btn{padding:4px 10px;font-size:11px;border:1px solid #e0e4e8;border-radius:6px;background:#fff;cursor:pointer}.cm-mini-btn:hover{background:#f0eeff;border-color:#667eea}.cm-mini-btn.danger{color:#c00;border-color:#f66}.cm-mini-btn.danger:hover{background:#fee}.cm-mini-btn.primary{background:#667eea;color:#fff;border-color:#667eea}.cm-mini-btn.primary:hover{opacity:.9}.cm-mini-btn:disabled{background:#f5f5f5;color:#ccc;cursor:not-allowed}.shape-picker{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background:#fff;border-radius:16px;padding:24px;box-shadow:0 8px 32px #0000002e;display:none;z-index:20;min-width:380px;touch-action:manipulation}.shape-picker.show{display:block}.shape-picker h3{font-size:14px;color:#333;margin-bottom:14px;text-align:center}.sp-grid{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin-bottom:14px}.sp-item{width:80px;padding:10px 4px;text-align:center;border:2px solid #e0e4e8;border-radius:10px;cursor:pointer;transition:all .2s;background:#f8f9fb;touch-action:manipulation;-webkit-tap-highlight-color:transparent}.sp-item:hover{border-color:#667eea;background:#f0eeff}.sp-item.selected{border-color:#667eea;background:#eef0ff;box-shadow:0 0 0 2px #667eea4d}.sp-item svg{margin-bottom:3px}.sp-item span{font-size:10px;color:#555;display:block}.sp-selected{font-size:12px;color:#667eea;text-align:center;margin-bottom:10px;font-weight:600;min-height:18px}.sp-confirm{display:block;width:100%;padding:9px;background:#667eea;color:#fff;border:none;border-radius:8px;font-size:13px;cursor:pointer;margin-top:6px;touch-action:manipulation;-webkit-tap-highlight-color:transparent}.sp-confirm:disabled{background:#ccc;cursor:not-allowed}.right-panel{width:280px;background:#fff;border-left:1px solid #e8ecf0;display:flex;flex-direction:column;flex-shrink:0;overflow-y:auto}.task-banner{padding:10px 14px;background:linear-gradient(90deg,#667eea,#764ba2);color:#fff;font-size:13px;display:flex;align-items:center;gap:6px;flex-shrink:0}.task-banner .tn{background:#ffffff40;padding:2px 8px;border-radius:8px;font-size:10px}.task-section{border-bottom:1px solid #e8ecf0}.task-header{padding:10px 14px;background:#f8f9fb;font-weight:600;font-size:12px;color:#333}.task-content{padding:12px 14px}.task-desc{font-size:12px;color:#555;line-height:1.6;margin-bottom:10px}.task-hint{font-size:11px;color:#e65100;background:#fff3e0;padding:8px 10px;border-radius:6px;margin-bottom:10px;line-height:1.5}.phases{display:flex;gap:4px;margin-bottom:12px}.ph{flex:1;padding:7px 2px;border-radius:8px;text-align:center;font-size:11px;background:#f0f2f5;color:#bbb;transition:all .3s}.ph.active-guess{background:#667eea;color:#fff}.ph.active-verify{background:#ff9800;color:#fff}.ph.active-express{background:#4caf50;color:#fff}.ph.done{background:#e8f5e9;color:#4caf50}.ph-i{display:block;font-size:16px;margin-bottom:1px}.ph-t{display:block;font-size:9px}.inp-area{margin-bottom:10px}.inp-area label{display:block;font-size:10px;color:#666;margin-bottom:4px;font-weight:600}.inp-area textarea{width:100%;padding:8px;border:1px solid #e0e4e8;border-radius:6px;font-size:12px;resize:none;height:56px;font-family:inherit;transition:border .2s}.inp-area textarea:focus{outline:none;border-color:#667eea}.inp-area textarea:disabled{background:#f8f9fb;color:#999}.btn{width:100%;padding:10px;border:none;border-radius:8px;font-size:13px;font-weight:600;cursor:pointer;transition:all .15s}.btn-purple{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.btn-purple:hover{opacity:.9}.btn-orange{background:#ff9800;color:#fff}.btn-orange:hover{opacity:.9}.btn-green{background:#4caf50;color:#fff}.btn-green:hover{opacity:.9}.btn-red{background:#f44336;color:#fff}.btn-red:hover{opacity:.9}.btn:disabled{background:#ccc;cursor:not-allowed;opacity:1}.trial-actions .btn-green:not(.selected){background:#a5d6a7}.trial-actions .btn-red:not(.selected){background:#ef9a9a}.trial-actions .btn.selected{outline:3px solid #ff9800;outline-offset:2px}.submit-area{padding:12px 14px;margin-top:auto;background:#fafbfc;border-top:1px solid #e8ecf0}.rot-ctrl{display:flex;gap:5px;align-items:center;margin-bottom:10px;padding:8px 10px;background:#f8f9fb;border-radius:8px;flex-wrap:wrap}.rot-ctrl label{font-size:10px;color:#666;width:100%}.rot-btn{padding:4px 10px;border:1px solid #e0e4e8;border-radius:6px;background:#fff;cursor:pointer;font-size:11px}.rot-btn:hover{background:#f0eeff;border-color:#667eea}.rot-val{font-size:12px;color:#667eea;font-weight:600;min-width:32px;text-align:center}.add-shape-bar{padding:8px 14px;border-top:1px solid #e8ecf0;display:none}.add-shape-bar.show{display:flex;gap:4px;flex-wrap:wrap}.add-btn{padding:4px 10px;border:1px dashed #ccc;border-radius:6px;background:#fff;cursor:pointer;font-size:10px;color:#666}.add-btn:hover{border-color:#667eea;color:#667eea;background:#f0eeff}#trialNavBar{margin-bottom:10px}.trial-tabs{display:flex;gap:4px;flex-wrap:wrap}.trial-tab{padding:6px 12px;border:2px solid #e0e4e8;border-radius:8px;background:#f8f9fb;cursor:pointer;font-size:11px;color:#555;transition:all .2s;-webkit-user-select:none;user-select:none}.trial-tab:hover{border-color:#667eea;background:#f0eeff}.trial-tab.active{border-color:#667eea;background:#eef0ff;color:#667eea;font-weight:600;box-shadow:0 0 0 2px #667eea33}.trial-tab.done{border-color:#4caf50;background:#e8f5e9;color:#4caf50}.trial-tab.done.active{border-color:#4caf50;box-shadow:0 0 0 2px #4caf5033}#trialControls{margin-bottom:10px}.trial-hint{font-size:13px;color:#333;font-weight:600;padding:8px 10px;background:#fff8e1;border-radius:8px;text-align:center;margin-bottom:8px;border:1px solid #ffe082}.trial-actions{display:flex;gap:8px}.trial-summary-table{width:100%;border-collapse:collapse;font-size:12px;margin-top:4px}.trial-summary-table th{text-align:left;padding:6px 8px;background:#f0f2f5;border-bottom:2px solid #e0e4e8;color:#555;font-size:11px}.trial-summary-table td{padding:6px 8px;border-bottom:1px solid #e8ecf0}.broadcast-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:#000000d9;z-index:999;display:none;align-items:center;justify-content:center;flex-direction:column}.broadcast-overlay.show{display:flex}.broadcast-overlay canvas{border-radius:8px;box-shadow:0 4px 20px #00000080;background:#f0f2f5}.broadcast-label{color:#fff;font-size:14px;margin-top:12px;opacity:.7}@media(max-width:960px){.sidebar{width:140px}.right-panel{width:230px}}.task-btn.locked{opacity:.45;cursor:not-allowed}.task-btn.locked:hover{background:#f8f9fb}.task-btn.locked .t-label:before{content:"🔒 "}.guess-bubble.locked{opacity:.65;cursor:not-allowed;border-color:#bbb!important;background:#ececec!important}.guess-bubble.locked:hover{border-color:#bbb!important;background:#ececec!important}.guess-submitted-hint{padding:10px 14px;border-radius:8px;background:#e8f5e9;border:1px solid #a5d6a7;color:#2e7d32;font-size:13px;margin-top:8px;text-align:center}.teacher-stage-bar{display:flex;align-items:flex-start;gap:10px;flex-wrap:wrap;padding:10px 12px;margin-bottom:10px;background:#f8f9fb;border:1px solid #e8ecf0;border-radius:8px}.tsb-label{font-size:12px;font-weight:600;color:#555;align-self:center}.tsb-task{display:flex;align-items:center;gap:2px;background:#fff;border:1px solid #e0e4e8;border-radius:8px;padding:2px;box-shadow:0 1px 2px #0000000a}.tsb-name{font-size:11px;color:#666;padding:0 6px;font-weight:600;white-space:nowrap}.tsb-seg{border:none;background:transparent;padding:5px 8px;font-size:11px;cursor:pointer;border-radius:6px;color:#888;transition:all .15s;white-space:nowrap}.tsb-seg:hover{background:#eef0f5}.tsb-seg.active{background:#667eea;color:#fff;font-weight:600}.teacher-status-filter{display:flex;gap:4px;margin-left:auto;align-self:center}.teacher-status-filter button{padding:4px 10px;font-size:11px;border:1px solid #e0e4e8;background:#fff;border-radius:6px;cursor:pointer;color:#666}.teacher-status-filter button.active{background:#667eea;color:#fff;border-color:#667eea}.teacher-id-filter{display:flex;align-items:center;flex-wrap:wrap;gap:5px;padding:8px 10px;margin-bottom:10px;background:#f8f9fb;border:1px solid #e8ecf0;border-radius:8px}.teacher-id-filter .tif-label{font-size:11px;color:#888;white-space:nowrap}.id-chip{padding:3px 10px;font-size:12px;line-height:1.5;border:1px solid #e0e4e8;background:#fff;border-radius:14px;cursor:pointer;color:#888;transition:all .15s;white-space:nowrap}.id-chip:hover{border-color:#667eea;color:#667eea}.id-chip.done{background:#eef0ff;border-color:#c5cdf6;color:#667eea;font-weight:600}.id-chip.empty{color:#bbb;background:#fafbfc}.id-chip.active{outline:2px solid #667eea;outline-offset:1px}.id-chip.all{background:#667eea;color:#fff;border-color:#667eea;font-weight:600}.id-chip.all:hover{color:#fff;border-color:#5566d8}.teacher-task-stats-verified{margin-bottom:10px;padding:8px 14px;background:#fff8e1;border-radius:8px;font-size:12px;color:#e65100}.teacher-guess-stats{margin-bottom:10px;padding:10px 14px;background:#f0f7ff;border-radius:8px;font-size:12px}.teacher-guess-stats>div:first-child{font-weight:600;color:#1565c0;margin-bottom:4px}.teacher-guess-stats table{width:100%;border-collapse:collapse;font-size:11px}.teacher-guess-stats th{text-align:left;padding:4px 8px;border-bottom:1px solid #d0e3ff;color:#1565c0}.teacher-guess-stats td{padding:4px 8px;border-bottom:1px solid #eef5ff}
