:root{--primary:#2563eb;--primary-dark:#1d4ed8;--success:#16a34a;--warning:#d97706;--danger:#dc2626;--bg:#f5f7fb;--panel:#fff;--border:#e5e9f0;--text:#1f2937;--muted:#6b7280;--sidebar-width:216px}*{box-sizing:border-box;letter-spacing:0}html,body,#app{height:100%;margin:0}body{background:var(--bg);color:var(--text);font-family:PingFang SC,Microsoft YaHei,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.app-shell{height:100%;display:flex}.app-sidebar{width:var(--sidebar-width);flex:0 0 var(--sidebar-width);color:#d1d5db;background:#111827;flex-direction:column;display:flex}.brand{color:#f9fafb;border-bottom:1px solid #ffffff14;align-items:center;gap:10px;padding:22px 20px;font-size:18px;font-weight:700;display:flex}.side-menu{background:0 0;border-right:none;flex:1;padding:12px 8px}.side-menu .el-menu-item{color:#9ca3af;border-radius:8px;height:46px;margin-bottom:4px}.side-menu .el-menu-item:hover{color:#f9fafb;background:#ffffff14}.side-menu .el-menu-item.is-active{background:var(--primary);color:#fff}.sidebar-foot{color:#6b7280;border-top:1px solid #ffffff14;padding:16px 20px;font-size:12px}.app-main{flex-direction:column;flex:1;min-width:0;display:flex}.app-header{background:var(--panel);border-bottom:1px solid var(--border);flex:0 0 60px;justify-content:space-between;align-items:center;height:60px;padding:0 24px;display:flex}.header-title{font-size:17px;font-weight:600}.header-right{align-items:center;gap:16px;display:flex}.goal-switcher{width:220px}.user-chip{cursor:pointer;border:1px solid var(--border);color:var(--text);background:#f9fafb;border-radius:8px;outline:none;align-items:center;gap:6px;padding:6px 10px;display:flex}.app-content{flex:1;padding:24px;overflow:auto}.login-page{background:linear-gradient(135deg,#111827 0%,#1e3a8a 55%,#065f46 130%);justify-content:center;align-items:center;height:100%;display:flex}.login-panel{background:#fff;border-radius:10px;width:400px;padding:32px 36px 22px;box-shadow:0 20px 60px #00000047}.login-head{text-align:center;color:var(--primary);margin-bottom:18px}.login-head h1{color:var(--text);margin:8px 0 4px;font-size:22px}.login-head p{color:var(--muted);margin:0;font-size:13px}.login-button{width:100%;margin-top:8px}.demo-hint{text-align:center;color:var(--muted);margin-top:18px;font-size:12px}.learn-page,.test-page,.dashboard-page,.admin-page{max-width:1180px;margin:0 auto}.learn-toolbar{justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:18px;display:flex}.learn-toolbar>div:first-child{flex:1;max-width:520px}.learn-goal-name{margin-bottom:8px;font-size:18px;font-weight:700}.toolbar-actions{gap:8px;display:flex}.learn-grid{grid-template-columns:minmax(0,70%) minmax(0,30%);gap:18px;display:grid}.learn-stage,.word-sidebar,.test-setup,.test-running,.panel{background:var(--panel);border:1px solid var(--border);border-radius:8px}.learn-stage{justify-content:center;align-items:center;min-height:520px;padding:24px;display:flex}.stage-inner{width:100%;max-width:560px}.stage-controls{flex-wrap:wrap;justify-content:center;gap:10px;margin-top:22px;display:flex}.stage-empty,.empty-goal{text-align:center;color:var(--muted);padding:40px 20px}.empty-goal h2{color:var(--text);margin-bottom:8px}.word-sidebar{flex-direction:column;min-width:0;max-height:640px;display:flex}.sidebar-title{border-bottom:1px solid var(--border);flex:none;padding:14px 16px;font-weight:600}.word-list{flex:1;padding:8px;overflow:auto}.word-list-item{cursor:pointer;width:100%;color:var(--text);background:0 0;border:none;border-radius:8px;align-items:center;gap:10px;padding:9px 10px;font-size:14px;display:flex}.word-list-item:hover{background:#f3f4f6}.word-list-item.active{color:var(--primary-dark);background:#dbeafe}.word-list-item.mastered{opacity:.72}.word-list-index{width:24px;height:24px;color:var(--muted);background:#eef2f7;border-radius:6px;flex:0 0 24px;justify-content:center;align-items:center;font-size:12px;display:inline-flex}.word-list-en{text-align:left;text-overflow:ellipsis;white-space:nowrap;flex:1;overflow:hidden}.word-list-status{flex:none;font-size:11px}.status-0{color:var(--muted)}.status-1{color:var(--warning)}.status-2{color:var(--success)}.word-card-scene{perspective:1200px;cursor:pointer;width:100%;height:320px}.word-card-inner{width:100%;height:100%;transform-style:preserve-3d;transition:transform .6s cubic-bezier(.4,.2,.2,1);position:relative}.word-card-scene.flipped .word-card-inner{transform:rotateY(180deg)}.word-card-face{backface-visibility:hidden;border:1px solid var(--border);text-align:center;border-radius:8px;flex-direction:column;justify-content:center;align-items:center;padding:32px;display:flex;position:absolute;inset:0}.word-card-front{background:linear-gradient(160deg,#fff 0%,#eef4ff 100%)}.word-card-back{background:linear-gradient(160deg,#fff 0%,#ecfdf5 100%);transform:rotateY(180deg)}.word-card-index{color:var(--muted);font-size:13px;position:absolute;top:18px;left:20px}.word-card-main{color:var(--text);word-break:break-word;font-size:42px;font-weight:800;line-height:1.25}.word-card-sub{color:var(--primary);margin-top:14px;font-size:18px}.word-card-example{color:#374151;max-width:420px;margin-top:18px;font-size:15px;line-height:1.7}.word-card-hint{color:var(--muted);font-size:12px;position:absolute;bottom:18px}.word-pronounce{margin-top:18px}.test-setup{max-width:520px;margin:40px auto;padding:28px}.test-setup h2{margin-top:0}.test-form .el-form-item{margin-bottom:22px}.start-button{width:100%}.test-running{padding:22px}.test-head{justify-content:space-between;align-items:center;margin-bottom:14px;display:flex}.test-goal{font-size:17px;font-weight:700}.test-type{color:var(--muted);margin-top:4px;font-size:13px}.test-progress{color:var(--primary);font-size:18px;font-weight:700}.test-running .word-card-scene{height:360px;margin-top:18px}.answer-actions{justify-content:center;gap:24px;margin-top:22px;display:flex}.answer-actions .el-button{min-width:150px}.result-summary{grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:18px;display:grid}.result-summary>div{border:1px solid var(--border);text-align:center;background:#f9fafb;border-radius:8px;flex-direction:column;gap:4px;padding:14px 8px;display:flex}.result-num{font-size:26px;font-weight:800}.result-num.good{color:var(--success)}.result-num.bad{color:var(--danger)}.result-num.accent{color:var(--primary)}.wrong-preview{border:1px solid var(--border);border-radius:8px;max-height:240px;overflow:auto}.wrong-title{border-bottom:1px solid var(--border);background:#f9fafb;padding:10px 14px;font-weight:600}.wrong-row{border-bottom:1px solid #f1f3f7;justify-content:space-between;padding:9px 14px;font-size:14px;display:flex}.wrong-row:last-child{border-bottom:none}.stat-row{grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:16px;display:grid}.stat-item{background:var(--panel);border:1px solid var(--border);border-radius:8px;align-items:center;gap:14px;padding:18px;display:flex}.stat-item>.el-icon{color:var(--primary);font-size:30px}.stat-item:nth-child(2)>.el-icon{color:var(--success)}.stat-item:nth-child(3)>.el-icon{color:var(--warning)}.stat-item:nth-child(4)>.el-icon{color:var(--danger)}.stat-item>div{flex-direction:column;display:flex}.stat-value{font-size:26px;font-weight:800}.stat-label{color:var(--muted);font-size:13px}.dashboard-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;margin-bottom:16px;display:grid}.dashboard-grid.lower{align-items:start}.panel{min-width:0;padding:18px}.teacher-page,.assessment-report-page{width:100%;min-width:0;max-width:1180px;margin:0 auto}.teacher-page>.panel+.panel{margin-top:20px}.section-heading{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px;display:flex}.section-heading h2{margin:0 0 8px;font-size:21px}.section-heading p,.form-hint{color:var(--muted);margin:8px 0 16px;font-size:14px;line-height:1.7}.responsive-toolbar{flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:18px;display:flex}.responsive-toolbar>.el-input,.responsive-toolbar>.el-select{width:min(320px,100%)}.responsive-toolbar .el-date-editor{flex:0 350px;max-width:100%}.teacher-page .el-button,.assessment-toolbar .el-button,.teacher-page .el-select__wrapper,.teacher-page .el-input__wrapper{min-height:44px}.teacher-page .el-button+.el-button{margin-left:0}.student-workspace{scroll-margin-top:20px}.teaching-card{width:100%;max-width:640px;margin:20px auto}.assessment-setup{max-width:600px;padding:12px 0}.assessment-session .answer-actions .el-button{min-height:48px}.education-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0;display:grid}.education-stats>div{text-align:center;color:var(--muted);background:#f1f5ff;border-radius:10px;padding:20px 10px;font-size:14px}.education-stats span{color:var(--primary-dark);margin-bottom:6px;font-size:30px;font-weight:700;display:block}.assessment-note{margin:20px 0}.score-sheet{border:1px solid var(--border);background:#fff;border-radius:10px;padding:36px}.score-sheet-heading{text-align:center;border-bottom:2px solid var(--primary);margin-bottom:24px;padding-bottom:16px}.score-sheet-heading h1{margin:12px 0;font-size:28px}.score-sheet-heading h2{font-size:20px}.score-sheet-heading p,.score-footer{color:var(--muted);font-size:13px}.report-number{overflow-wrap:anywhere}.score-profile{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 20px;display:grid}.score-profile p{overflow-wrap:anywhere;margin:8px 0}.score-profile strong{color:var(--muted);margin-right:12px;font-size:14px;display:inline-block}.score-table-wrap{overflow-x:auto}.score-table{border-collapse:collapse;width:100%;font-size:15px}.score-table th,.score-table td{border:1px solid var(--border);text-align:left;overflow-wrap:anywhere;padding:12px 10px}.score-table th{background:#f5f7fb}.score-note{white-space:pre-wrap;overflow-wrap:anywhere;margin-top:24px}.score-footer{border-top:1px solid var(--border);margin-top:32px;padding-top:16px}.el-dialog{max-width:calc(100vw - 32px)}@media (width<=1200px){.dashboard-grid.lower{grid-template-columns:minmax(0,1fr)}}@media (width<=640px){.app-content{padding:16px}.app-header{padding:0 12px}.header-right{gap:8px}.header-title{font-size:15px}.user-chip{padding:6px}.user-chip .el-tag{display:none}.learn-toolbar{flex-direction:column;align-items:stretch}.toolbar-actions{flex-wrap:wrap}.toolbar-actions .el-button+.el-button{margin-left:0}.education-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.score-sheet{padding:18px}.score-profile{grid-template-columns:minmax(0,1fr)}.teacher-page .answer-actions{gap:12px}.teacher-page .answer-actions .el-button{flex:1;min-width:0}.teacher-page .word-card-face{padding:24px 16px}.teacher-page .word-card-main{font-size:32px}.table-pagination{justify-content:flex-start;max-width:100%;overflow-x:auto}}@media print{@page{size:A4;margin:15mm}html,body,#app,.app-shell,.app-main,.app-content{height:auto!important;display:block!important;overflow:visible!important}body{background:#fff}.app-sidebar,.app-header,.assessment-toolbar,.el-loading-mask,.el-message{display:none!important}.app-content{padding:0}.score-sheet{border:0;padding:0}.score-table-wrap{overflow:visible}.score-table thead{display:table-header-group}.score-table tr,.score-note,.score-profile,.education-stats{break-inside:avoid}.score-profile{grid-template-columns:repeat(2,minmax(0,1fr))}.education-stats{grid-template-columns:repeat(4,minmax(0,1fr))}.score-sheet,.score-table{font-size:11pt}}.panel-head{justify-content:space-between;align-items:center;margin-bottom:14px;display:flex}.panel-head h3{margin:0;font-size:16px}.rings-row{grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:14px;display:grid}.ring-item{text-align:center}.ring-chart{width:120px;height:120px;margin:0 auto}.ring-name{text-overflow:ellipsis;white-space:nowrap;margin-top:8px;font-size:14px;font-weight:600;overflow:hidden}.ring-percent{color:var(--primary);font-size:13px}.heatmap-row{grid-template-columns:repeat(7,1fr);gap:10px;display:grid}.heat-cell{text-align:center;border:1px solid var(--border);border-radius:8px;padding:14px 6px}.heat-0{background:#f3f4f6}.heat-1{background:#dbeafe}.heat-2{background:#93c5fd}.heat-3{color:#fff;background:#3b82f6}.heat-4{color:#fff;background:#1d4ed8}.heat-label{opacity:.85;font-size:12px}.heat-value{margin-top:4px;font-size:22px;font-weight:800}.good-text{color:var(--success);font-weight:600}.warn-text{color:var(--warning);font-weight:600}.bad-text{color:var(--danger);font-weight:600}.report-detail .report-meta{color:var(--muted);gap:16px;margin-bottom:14px;display:flex}.admin-toolbar{flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:14px;display:flex}.word-toolbar .search-input{width:260px}.word-toolbar .category-filter{width:160px}.toolbar-spacer{flex:1}.table-pagination{justify-content:flex-end;margin-top:14px}.word-picker{width:100%}.option-category{float:right;color:var(--muted);font-size:12px}.backup-layout{grid-template-columns:300px 1fr;align-items:start;gap:16px;display:grid}.backup-actions{background:var(--panel);border:1px solid var(--border);border-radius:8px;flex-direction:column;gap:12px;padding:18px;display:flex}.backup-actions .el-upload,.backup-actions .el-upload .el-button{width:100%}.backup-actions .el-button{margin-left:0}@media (width<=900px){.learn-grid,.dashboard-grid,.stat-row,.backup-layout{grid-template-columns:1fr}.app-sidebar{flex-basis:72px;width:72px}.brand span,.side-menu .el-menu-item span,.sidebar-foot{display:none}.goal-switcher{width:150px}}
