body{margin:0;background:#f5f7fb;color:#25364c;-webkit-font-smoothing:antialiased}a{text-decoration:none;color:#3873c7}button,a,input,select,textarea{outline-offset:4px}.tp-sidebar{position:fixed;inset:0 auto 0 0;width:238px;background:#ffffffdc;border-right:1px solid #e5eaf1;padding:30px 22px;display:flex;flex-direction:column;z-index:10;backdrop-filter:blur(16px)}.tp-brand{display:flex;gap:12px;align-items:center;color:#27384f;font-size:21px;font-weight:750}.tp-brand>span{display:grid;place-items:center;width:50px;height:50px;background:linear-gradient(140deg,#7faeff,#7975e7);border-radius:17px;font-size:30px}.tp-brand small{display:block;font-size:11px;color:#8c9ab0;font-weight:500;letter-spacing:2px;margin-top:5px}.tp-nav-label{margin:36px 12px 13px;color:#9aa6b8;font-size:11px;letter-spacing:2px}.tp-sidebar nav{display:grid;gap:6px}.tp-sidebar nav button{display:flex;align-items:center;gap:14px;border:0;background:transparent;text-align:left;border-radius:13px;padding:12px 16px;color:#748197;font-weight:550;font-size:14px}.tp-sidebar nav button span{font-size:20px;width:23px;text-align:center}.tp-sidebar nav button:hover{background:#f3f6fb}.tp-sidebar nav button.active{background:#eaf1ff;color:#397bef}.tp-sidebar-note{margin-top:auto;padding:20px 12px 0;font-size:12px;color:#96a3b5;line-height:1.8}.tp-sidebar-note b{color:#637a98;font-size:13px}.tp-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#5cba9d;margin-right:5px}.tp-main{margin-left:238px;padding:28px 38px 60px;max-width:1800px}.tp-topbar{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:26px}.tp-breadcrumb{font-size:12px;color:#96a1b3}.tp-topbar h1{font-size:25px;margin:8px 0 0;letter-spacing:-.7px}.tp-hero{position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(110deg,#e8f0ff,#eeeaff 66%,#e1f4f2);border:1px solid #fff;border-radius:26px;padding:34px;min-height:230px;display:flex;align-items:center;justify-content:space-between;gap:24px}.tp-hero h2{font-size:30px;line-height:1.5;letter-spacing:-1px;margin:12px 0}.tp-hero p{color:#7b89a3;font-size:14px;line-height:1.9;max-width:560px}.tp-hero-art{font-size:96px;filter:drop-shadow(0 15px 15px #647bc322);padding:0 35px;transform:rotate(-12deg)}.tp-eyebrow{font-size:11px;color:#7d8db8;letter-spacing:2px;font-weight:700}.tp-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin:24px 0}.tp-stat{background:#fff;border:1px solid #e8edf4;border-radius:20px;padding:22px;display:flex;gap:16px;align-items:center}.tp-stat i{font-style:normal;display:grid;place-items:center;width:44px;height:44px;border-radius:14px;background:#eef3ff;color:#6d8ed3;font-size:21px}.tp-stat b{font-size:27px;display:block}.tp-stat small{color:#8997aa;display:block;margin-top:5px}.tp-columns{display:grid;grid-template-columns:1.55fr 1fr;gap:22px;margin:24px 0}.tp-section-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:22px 0 16px}.tp-section-head h2{font-size:20px;margin:0}.tp-courses{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:20px}.tp-course{background:#fff;border:1px solid #e5ecf4;border-radius:22px;overflow:hidden}.tp-course>img{width:100%;height:155px;object-fit:cover;background:#e9eef8;display:block}.tp-course-body{padding:20px}.tp-course h3{font-size:18px;margin:10px 0}.tp-course p{font-size:13px;color:#8290a2;line-height:1.8;min-height:47px}.tp-course .sq-btn{font-size:13px}.tp-unit-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0}.tp-unit-tabs button{background:white;border:1px solid #e1e8f3;border-radius:12px;padding:10px 16px;color:#70819b}.tp-unit-tabs button.active{background:#437eed;color:white;border-color:#437eed}.tp-empty{padding:30px;text-align:center;border:1px dashed #d6e0ec;border-radius:20px;background:#fbfcfe;line-height:1.8}.tp-empty>span{display:block;font-size:37px}.tp-empty p{color:#8a98aa;font-size:14px}.tp-list-row{display:flex;gap:15px;align-items:center;padding:17px 0;border-bottom:1px solid #edf1f6}.tp-list-row:last-child{border-bottom:0}.tp-list-row strong{display:block;font-size:14px}.tp-list-row small{display:block;color:#8d99aa;margin-top:7px;line-height:1.6}.tp-list-row .tp-list-icon{display:grid;place-items:center;flex-shrink:0;width:42px;height:42px;background:#f0f5ff;border-radius:12px;font-size:23px}.tp-list-row .tp-grow{flex:1}.tp-note{font-size:13px;color:#7b8ca2;line-height:1.9}.tp-keywords{display:flex;flex-wrap:wrap;gap:8px;margin:15px 0}.tp-keywords span{background:#f0f4fc;color:#6b83ad;border-radius:8px;padding:6px 10px;font-size:12px}.tp-image{width:100%;max-height:400px;object-fit:contain;border-radius:18px;background:#f5f7fb}.tp-map-image{width:100%;height:auto;display:block;margin-top:18px}.tp-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.tp-form-grid .wide{grid-column:1/-1}.tp-draft{border:1px solid #e3eaf3;border-radius:16px;padding:18px;margin:14px 0;background:white}.tp-draft h3{margin:8px 0;font-size:17px}.tp-draft p{white-space:pre-wrap;line-height:1.8;color:#718298;font-size:14px}.tp-panel{animation:tp-enter .2s ease-out}.sq-btn{background:#437eeb}.sq-tag{background:#edf4ff;color:#5a80bd}.sq-card{box-shadow:0 6px 20px #53699404;border-color:#e5ecf4}.sq-dialog{width:min(1100px,94vw)}#teacher-login{max-width:540px;margin:7vh auto;position:relative;z-index:30;pointer-events:auto}#teacher-login input{width:100%}.tp-meter{background:#edf2f8;height:7px;border-radius:5px;overflow:hidden;margin-top:10px}.tp-meter i{display:block;height:100%;background:#82abef}.tp-mobile-note{display:none}.tp-global-class{display:flex;align-items:center;gap:8px;color:#6f7f95;font-size:12px;font-weight:650}.tp-global-class select{min-width:150px;padding:9px 32px 9px 11px;border:1px solid #dce5f1;border-radius:11px;background:#fff;color:#354a65}.tp-class-stats{grid-template-columns:repeat(3,minmax(0,1fr));max-width:900px}.tp-class-workspace{display:grid;grid-template-columns:260px minmax(0,1fr);gap:20px;align-items:start}.tp-class-list,.tp-class-detail{background:#fff;border:1px solid #e3eaf3;border-radius:20px;padding:18px}.tp-class-list{display:grid;gap:8px}.tp-class-list-head{display:flex;justify-content:space-between;align-items:center;padding:4px 4px 12px}.tp-class-list-head small{color:#8a98aa}.tp-class-item{width:100%;border:1px solid transparent;background:#f7f9fc;border-radius:13px;padding:13px 14px;display:flex;align-items:center;justify-content:space-between;text-align:left;color:#394d67}.tp-class-item:hover{border-color:#cddbf1;background:#f2f6fc}.tp-class-item.active{background:#eaf2ff;border-color:#bfd3f6;color:#2e6fda}.tp-class-item span,.tp-class-item small{display:block}.tp-class-item small{font-size:11px;color:#8392a7;margin-top:5px}.tp-class-item i{font-style:normal;font-size:22px}.tp-history{border-top:1px solid #edf1f6;margin-top:12px;padding-top:15px;display:grid;gap:9px}.tp-history>strong{font-size:12px;color:#9a7047}.tp-history>div{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:12px}.tp-history span small{display:block;color:#98a4b4;margin-top:3px}.tp-history .sq-btn{padding:6px 9px;font-size:11px}.tp-class-detail{min-width:0}.tp-class-detail-head,.tp-student-toolbar,.tp-danger-zone{display:flex;justify-content:space-between;align-items:center;gap:16px}.tp-class-detail-head{padding:4px 4px 18px;border-bottom:1px solid #edf1f6}.tp-class-detail-head h2{margin:10px 0 2px}.tp-student-toolbar{padding:18px 0}.tp-student-toolbar label{min-width:280px}.tp-student-toolbar input{width:100%}.tp-danger-zone{margin-top:24px;padding:16px 18px;background:#fff8f6;border:1px solid #f2d6d0;border-radius:14px}.tp-danger-zone strong{color:#a65344}.tp-danger-zone p{margin:5px 0 0;color:#98766f;font-size:12px}.tp-danger-zone .sq-btn{background:#fff;border:1px solid #e0a89e;color:#a64f41}@keyframes tp-enter{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}@media(min-width:1600px){.tp-courses{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:1100px){.tp-sidebar{width:200px;padding:24px 14px}.tp-main{margin-left:200px;padding:25px}.tp-stats{grid-template-columns:repeat(2,1fr)}.tp-courses{grid-template-columns:repeat(2,minmax(0,1fr))}.tp-hero-art{display:none}.tp-columns{grid-template-columns:1fr}.tp-class-workspace{grid-template-columns:220px minmax(0,1fr)}}@media(max-width:720px){.tp-sidebar{position:static;width:auto;padding:15px;display:block}.tp-brand{font-size:18px}.tp-brand>span{width:40px;height:40px;font-size:24px}.tp-sidebar nav{display:flex;overflow-x:auto;margin-top:18px}.tp-sidebar nav button{flex-shrink:0;padding:10px}.tp-sidebar nav button span,.tp-nav-label,.tp-sidebar-note{display:none}.tp-main{margin-left:0;padding:20px 14px}.tp-topbar{align-items:flex-start;flex-wrap:wrap}.tp-stats{gap:10px}.tp-stat{padding:16px 12px;gap:9px}.tp-stat i{display:none}.tp-courses{grid-template-columns:1fr}.tp-hero{padding:24px}.tp-hero h2{font-size:25px}.tp-form-grid{grid-template-columns:1fr}.tp-form-grid .wide{grid-column:auto}.tp-class-title,.tp-class-detail-head,.tp-student-toolbar,.tp-danger-zone{align-items:stretch;flex-direction:column}.tp-class-workspace{grid-template-columns:1fr}.tp-class-list{max-height:310px;overflow:auto}.tp-student-toolbar label{min-width:0;width:100%}.tp-class-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.tp-global-class{width:100%;justify-content:space-between}.tp-global-class select{flex:1}}@media(prefers-reduced-motion:reduce){.tp-panel{animation:none}}
.teacher-trend-bars{height:150px;display:flex;align-items:flex-end;gap:8px;padding:14px 8px 0;border-bottom:1px solid rgba(80,100,130,.18)}
.teacher-trend-day{height:100%;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:5px;min-width:22px}.teacher-trend-day i{display:block;width:100%;max-width:24px;border-radius:6px 6px 2px 2px;background:linear-gradient(180deg,#6c8cff,#45c8b0);min-height:8px}.teacher-trend-day small{font-size:10px;color:#76849a;white-space:nowrap;transform:rotate(-35deg);transform-origin:top center;margin-top:8px}
.teacher-trend-timeline{display:flex;gap:10px;overflow-x:auto;padding:12px 2px 8px}.teacher-trend-point{min-width:112px;padding:12px;border:1px solid rgba(80,100,130,.16);border-radius:14px;background:rgba(244,248,255,.7);display:flex;flex-direction:column;gap:5px}.teacher-trend-point b{font-size:13px;color:#31415e}.teacher-trend-point span{font-size:12px;color:#4563a0}.teacher-trend-point small{font-size:11px;color:#7c889b}
.tp-mobile-nav,.tp-mobile-more,.tp-mobile-backdrop{display:none}
.tp-top-actions{position:relative}.tp-mobile-tools{display:flex;align-items:center;gap:10px}.tp-mobile-tools-toggle{display:none}
@media(max-width:720px){body{padding-bottom:82px}.tp-sidebar{display:none}.tp-mobile-nav{position:fixed;z-index:42;left:11px;right:11px;bottom:11px;display:flex;justify-content:space-around;padding:7px;border:1px solid rgba(255,255,255,.95);border-radius:20px;background:rgba(255,255,255,.94);box-shadow:0 10px 28px rgba(41,75,125,.2);backdrop-filter:blur(18px)}.tp-mobile-nav button{min-width:54px;border:0;border-radius:13px;padding:7px 8px;color:#70809b;background:transparent;font-size:11px}.tp-mobile-nav button span{display:block;margin-bottom:2px;font-size:17px}.tp-mobile-nav button.active{color:#397bef;background:#eaf1ff}.tp-mobile-backdrop{position:fixed;z-index:40;inset:0;display:block;background:rgba(23,35,61,.26);opacity:0;pointer-events:none;transition:opacity .2s}.tp-mobile-backdrop.open{opacity:1;pointer-events:auto}.tp-mobile-more{position:fixed;z-index:41;left:11px;right:11px;bottom:84px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:15px;border:1px solid rgba(255,255,255,.95);border-radius:22px;background:rgba(255,255,255,.97);box-shadow:0 18px 48px rgba(41,75,125,.25);backdrop-filter:blur(20px);transform:translateY(14px);opacity:0;pointer-events:none;transition:.2s}.tp-mobile-more.open{transform:none;opacity:1;pointer-events:auto}.tp-mobile-more button{display:flex;min-height:66px;align-items:center;justify-content:center;flex-direction:column;gap:5px;border:0;border-radius:15px;background:#f6f8fc;color:#64738b;font-size:12px}.tp-mobile-more button span{font-size:20px}.tp-mobile-more button.active{background:#eaf1ff;color:#397bef;font-weight:700}}
@media(max-width:720px){.tp-topbar{position:relative;display:block}.tp-top-actions{margin-top:14px;display:flex;flex-wrap:nowrap;justify-content:flex-start}.tp-top-actions>#teacher-notice-button{order:1}.tp-top-actions>#tp-mode{order:2;max-width:132px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tp-mobile-tools-toggle{display:inline-flex;order:3}.tp-mobile-tools{position:absolute;z-index:35;top:calc(100% + 9px);right:0;width:min(310px,calc(100vw - 28px));display:grid;gap:10px;padding:14px;border:1px solid #e2e8f2;border-radius:18px;background:rgba(255,255,255,.98);box-shadow:0 16px 40px rgba(41,75,125,.2);opacity:0;transform:translateY(-7px);pointer-events:none;transition:.18s}.tp-mobile-tools.open{opacity:1;transform:none;pointer-events:auto}.tp-mobile-tools .tp-global-class{width:100%;display:grid;grid-template-columns:auto 1fr}.tp-mobile-tools .tp-global-class.sq-hidden{display:none}.tp-mobile-tools .tp-global-class select{min-width:0;width:100%}.tp-mobile-tools .sq-btn{width:100%;justify-content:center;text-align:center}}
@media(max-width:720px){
  #tp-scores .sq-table-wrap,#tp-class .sq-table-wrap{overflow:visible}
  #tp-scores .sq-table,#tp-class .sq-table{display:block;width:100%;min-width:0;border:0;background:transparent}
  #tp-scores .sq-table thead,#tp-class .sq-table thead{display:none}
  #tp-scores .sq-table tbody,#tp-class .sq-table tbody{display:grid;gap:12px}
  #tp-scores .sq-table tr,#tp-class .sq-table tr{display:block;padding:8px 14px;border:1px solid #e3eaf3;border-radius:17px;background:#fff;box-shadow:0 6px 20px rgba(83,105,148,.05)}
  #tp-scores .sq-table td,#tp-class .sq-table td{display:grid;grid-template-columns:88px minmax(0,1fr);gap:10px;align-items:start;width:100%;padding:9px 0;border:0;border-bottom:1px solid #edf1f6;white-space:normal;word-break:break-word}
  #tp-scores .sq-table td:last-child,#tp-class .sq-table td:last-child{border-bottom:0}
  #tp-scores .sq-table td::before,#tp-class .sq-table td::before{color:#8492a6;font-size:12px;font-weight:650}
  #tp-scores .sq-table td:nth-child(1)::before{content:"班级"}
  #tp-scores .sq-table td:nth-child(2)::before{content:"学生"}
  #tp-scores .sq-table td:nth-child(3)::before{content:"课程"}
  #tp-scores .sq-table td:nth-child(4)::before{content:"成绩"}
  #tp-scores .sq-table td:nth-child(5)::before{content:"用时"}
  #tp-scores .sq-table td:nth-child(6)::before{content:"提交时间"}
  #tp-scores .sq-table td:nth-child(7)::before{content:"作答"}
  #tp-class .sq-table td:nth-child(1)::before{content:"序号"}
  #tp-class .sq-table td:nth-child(2)::before{content:"学生 / 学号"}
  #tp-class .sq-table td:nth-child(3)::before{content:"状态"}
  #tp-class .sq-table td:nth-child(4)::before{content:"最近登录"}
  #tp-class .sq-table td:nth-child(5)::before{content:"最近活动"}
  #tp-class .sq-table td:nth-child(6)::before{content:"闯关"}
  #tp-class .sq-table td:nth-child(7)::before{content:"任务"}
  #tp-class .sq-table td:nth-child(8)::before{content:"操作"}
  #tp-scores .sq-table td:only-child,#tp-class .sq-table td:only-child{display:block;padding:15px 4px;text-align:center;color:#7b8ca2;border:0}
  #tp-scores .sq-table td:only-child::before,#tp-class .sq-table td:only-child::before{content:none}
  #tp-class .sq-table td:last-child .sq-row{display:flex;flex-wrap:wrap;gap:7px}
  #tp-class .sq-table td:last-child .sq-btn{flex:1 1 auto;padding:8px 10px}
}
.tp-storage-warning{white-space:nowrap}.tp-storage-warning.critical{background:#ffe5e5!important;color:#b42318!important;border-color:#fda29b!important}
.tp-student-search-results{display:grid;gap:12px;margin-top:14px}.tp-student-search-result{display:grid;grid-template-columns:minmax(190px,1fr) minmax(300px,2fr) auto;gap:18px;align-items:center}.tp-student-search-result h3{margin:8px 0 4px}.tp-student-search-result h3 small{font-weight:500;color:#6d7d94}.tp-student-search-metrics{display:grid;grid-template-columns:repeat(2,minmax(120px,1fr));gap:7px 18px;color:#738198;font-size:13px}.tp-student-search-metrics b{display:block;color:#273b55;margin-top:2px}@media(max-width:760px){.tp-student-search-result{grid-template-columns:1fr}.tp-student-search-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.tp-student-search-result .sq-btn{width:100%}}
