/* ========== CSS Variables ========== */
:root {
  --primary: #2563EB;
  --primary-light: #3B82F6;
  --primary-dark: #1D4ED8;
  --bg: #F8FAFC;
  --sidebar-bg: #1E293B;
  --sidebar-admin: #1E3A5F;
  --sidebar-teacher: #1A3D2E;
  --sidebar-student: #2D1B4E;
  --card-bg: #FFFFFF;
  --text: #1E293B;
  --text-secondary: #64748B;
  --border: #E2E8F0;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --purple: #8B5CF6;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-hover: 0 4px 12px rgba(0,0,0,0.12);
}

/* ========== Reset & Base ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

/* ========== Login Page ========== */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px;
}
.login-container {
  width: 100%;
  max-width: 900px;
  text-align: center;
}
.login-header {
  margin-bottom: 48px;
}
.login-title {
  font-size: 42px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.login-subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
}
.login-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.login-card {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 40px 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}
.login-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.login-card-admin:hover { border-color: var(--primary); }
.login-card-teacher:hover { border-color: var(--success); }
.login-card-student:hover { border-color: var(--purple); }

.login-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.login-card-icon svg {
  width: 32px;
  height: 32px;
}
.login-card-admin .login-card-icon { background: #EFF6FF; color: var(--primary); }
.login-card-teacher .login-card-icon { background: #ECFDF5; color: var(--success); }
.login-card-student .login-card-icon { background: #F5F3FF; color: var(--purple); }

.login-card-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}
.login-card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.login-card-btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}
.login-card-admin .login-card-btn { background: #EFF6FF; color: var(--primary); }
.login-card-teacher .login-card-btn { background: #ECFDF5; color: var(--success); }
.login-card-student .login-card-btn { background: #F5F3FF; color: var(--purple); }

.login-footer {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
}

/* ========== Login Modal ========== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s;
}
.login-modal {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px;
  width: 100%;
  max-width: 400px;
  position: relative;
  animation: slideUp 0.3s;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: #F1F5F9;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}
.modal-close:hover { background: #E2E8F0; }

.login-modal-header {
  text-align: center;
  margin-bottom: 32px;
}
.login-modal-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-modal-icon svg { width: 28px; height: 28px; }
.login-modal-header h2 { font-size: 22px; margin-bottom: 4px; }
.login-modal-header p { color: var(--text-secondary); font-size: 14px; }

.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text);
}
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  transition: border-color 0.2s;
  outline: none;
}
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.form-textarea { min-height: 100px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.login-error {
  background: #FEF2F2;
  color: var(--danger);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 16px;
}

.btn-login {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-login:hover { opacity: 0.9; transform: scale(0.98); }
.btn-login.admin { background: var(--primary); }
.btn-login.teacher { background: var(--success); }
.btn-login.student { background: var(--purple); }

/* ========== App Container ========== */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* ========== Sidebar ========== */
.sidebar {
  width: 240px;
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
}
.sidebar-admin { background: var(--sidebar-admin); }
.sidebar-teacher { background: var(--sidebar-teacher); }
.sidebar-student { background: var(--sidebar-student); }

.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sidebar-header h2 {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
  margin-bottom: 4px;
}
.nav-item:hover { background: rgba(255,255,255,0.1); color: #fff; }
.nav-item.active { background: rgba(255,255,255,0.15); color: #fff; }
.nav-item svg { width: 20px; height: 20px; flex-shrink: 0; }
.nav-item-danger { color: #FCA5A5; margin-top: 6px; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 12px; }
.nav-item-danger:hover { background: rgba(239,68,68,0.18); color: #FEE2E2; }
.nav-item-sync { color: #6EE7B7; }
.nav-item-sync:hover { background: rgba(16,185,129,0.18); color: #D1FAE5; }

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.user-detail { display: flex; flex-direction: column; }
.user-name { color: #fff; font-size: 14px; font-weight: 500; }
.user-role { color: rgba(255,255,255,0.6); font-size: 12px; }

.btn-logout {
  width: 100%;
  padding: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  background: transparent;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-logout:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* ========== Main Content ========== */
.main-content {
  flex: 1;
  margin-left: 240px;
  padding: 32px;
  min-height: 100vh;
  width: calc(100vw - 240px);
  max-width: calc(100vw - 240px);
  min-width: 0;
  box-sizing: border-box;
  overflow-x: hidden;
}
/* 宽表格在其内部横向滚动，不撑开整页（避免页头按钮被推出视口） */
.main-content .table-scroll { max-width: 100%; }

.page-content { display: none; animation: fadeIn 0.3s; min-width: 0; }
.page-content.active { display: block; }

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.page-header h1 { font-size: 24px; font-weight: 600; }
.page-header > div[style*="display:flex"], .page-header .page-header-actions { flex-wrap: wrap; }
.page-desc { color: var(--text-secondary); font-size: 14px; margin-top: 4px; }
.page-header-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.page-header-left { display: flex; align-items: center; gap: 16px; }
.student-name-link { color: var(--primary); text-decoration: none; font-weight: 500; cursor: pointer; transition: color 0.2s; }
.student-name-link:hover { color: var(--primary-light); text-decoration: underline; }

/* ========== Stats Grid ========== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow);
  transition: all 0.2s;
}
.stat-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stat-icon svg { width: 24px; height: 24px; }
.stat-icon-blue { background: #EFF6FF; color: var(--primary); }
.stat-icon-green { background: #ECFDF5; color: var(--success); }
.stat-icon-purple { background: #F5F3FF; color: var(--purple); }
.stat-icon-orange { background: #FFF7ED; color: var(--warning); }
.stat-icon-red { background: #FEF2F2; color: var(--danger); }
.stat-icon-yellow { background: #FEFCE8; color: #CA8A04; }
.stat-info { display: flex; flex-direction: column; }
.stat-value { font-size: 28px; font-weight: 700; color: var(--text); }
.stat-label { font-size: 13px; color: var(--text-secondary); }

/* ========== Cards ========== */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.card h3 { font-size: 16px; font-weight: 600; margin-bottom: 16px; }

.dashboard-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.btn:hover { opacity: 0.9; }
.btn:active { transform: scale(0.95); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-text { background: none; color: var(--text-secondary); padding: 8px 12px; }
.btn-text:hover { color: var(--primary); background: rgba(37, 99, 235, 0.05); }
.btn-sm { padding: 6px 12px; font-size: 12px; }

/* ========== Tables ========== */
.table-container {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
}
.data-table th,
.data-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.data-table th {
  background: #F8FAFC;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-secondary);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #FAFBFC; }

/* ========== Filter Bar ========== */
.filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.filter-bar .form-input { width: auto; min-width: 180px; }

/* ========== Charts ========== */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
}
.chart-card { min-height: 300px; }
.chart-card canvas { max-height: 250px; }

/* ========== Summary ========== */
.summary-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}
.summary-tab {
  padding: 10px 20px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  font-size: 14px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s;
}
.summary-tab:hover { background: #F1F5F9; }
.summary-tab.active { background: var(--primary); color: #fff; }

.summary-panel { display: none; }
.summary-panel.active { display: block; }

.summary-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}
.summary-controls .form-input { width: 200px; }

.summary-result {
  background: #F8FAFC;
  border-radius: var(--radius);
  padding: 24px;
  min-height: 200px;
  line-height: 1.8;
}

/* ========== Feedback List ========== */
.feedback-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.feedback-item {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: all 0.2s;
}
.feedback-item:hover { box-shadow: var(--shadow-hover); }
.feedback-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.feedback-item-teacher { font-weight: 600; color: var(--text); }
.feedback-item-date { font-size: 12px; color: var(--text-secondary); }
.feedback-item-tag {
  display: inline-block;
  padding: 2px 8px;
  background: #EFF6FF;
  color: var(--primary);
  border-radius: 4px;
  font-size: 12px;
  margin-bottom: 8px;
}
.feedback-item-content { color: var(--text-secondary); line-height: 1.6; }

/* ========== Class Cards ========== */
.class-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.class-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: all 0.2s;
  cursor: pointer;
}
.class-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.class-card-title { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.class-card-info { color: var(--text-secondary); font-size: 13px; }

/* ========== Todo List ========== */
.todo-list { display: flex; flex-direction: column; gap: 12px; }
.todo-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #F8FAFC;
  border-radius: var(--radius-sm);
}
.todo-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.todo-item-text { flex: 1; font-size: 14px; }

/* ========== Subject Bars ========== */
.subject-bars { display: flex; flex-direction: column; gap: 16px; }
.subject-bar-item { }
.subject-bar-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 14px;
}
.subject-bar-track {
  height: 8px;
  background: #E2E8F0;
  border-radius: 4px;
  overflow: hidden;
}
.subject-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
}
.subject-bar-fill.blue { background: var(--primary); }
.subject-bar-fill.green { background: var(--success); }
.subject-bar-fill.purple { background: var(--purple); }

/* ========== Checkin List ========== */
.checkin-list { display: flex; flex-direction: column; gap: 12px; }
.checkin-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #F8FAFC;
  border-radius: var(--radius-sm);
}
.checkin-item-date { font-size: 12px; color: var(--text-secondary); min-width: 80px; }
.checkin-item-subject {
  padding: 2px 8px;
  background: #EFF6FF;
  color: var(--primary);
  border-radius: 4px;
  font-size: 12px;
}
.checkin-item-content { flex: 1; font-size: 14px; }
.checkin-item-duration { font-size: 12px; color: var(--text-secondary); }

/* ========== Activity List ========== */
.activity-list { display: flex; flex-direction: column; gap: 12px; }
.activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
}
.activity-item:hover { background: #F8FAFC; }
.activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.activity-dot.blue { background: var(--primary); }
.activity-dot.green { background: var(--success); }
.activity-dot.orange { background: var(--warning); }
.activity-dot.red { background: var(--danger); }
.activity-type-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  background: #E0E7FF;
  color: #4F46E5;
  flex-shrink: 0;
}
.activity-text { flex: 1; font-size: 14px; }
.activity-time { font-size: 12px; color: var(--text-secondary); }

/* Activity Tabs */
.activity-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.activity-tab {
  padding: 6px 16px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
}
.activity-tab:hover { background: #F1F5F9; }
.activity-tab.active {
  background: var(--primary);
  color: white;
}

/* ========== Form Modal ========== */
.modal {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(15,23,42,0.25);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.3s;
}
.form-modal {
  background: #fff;
  border-radius: var(--radius);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s;
  position: relative;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.modal-header h2 { font-size: 18px; font-weight: 600; }
.modal-body { padding: 24px; }

/* ========== Toast ========== */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: var(--text);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  z-index: 9999;
  transition: transform 0.3s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }

/* ========== Footer ========== */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  padding: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--bg);
}
.site-footer a { color: var(--text-secondary); text-decoration: none; }
.site-footer a:hover { color: var(--primary); }

/* ========== Animations ========== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .login-cards { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto 48px; }
  .sidebar { transform: translateX(-100%); transition: transform 0.3s; }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; width: 100vw; max-width: 100vw; }
  .charts-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .main-content { padding: 20px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .filter-bar { flex-direction: column; }
  .filter-bar .form-input { width: 100%; min-width: 0; }
  /* 课程管理：窄屏下新建按钮始终可见、表格内部横向滚动 */
  .page-header { flex-direction: column; align-items: stretch; }
  .page-header h1 { font-size: 20px; }
  .page-header-actions, .page-header > div[style*="display:flex"] { width: 100%; }
  .page-header-actions .btn, .page-header > div[style*="display:flex"] .btn { flex: 1 1 auto; }
  .course-list.course-list-table .table-scroll { max-width: 100%; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .login-title { font-size: 32px; }
}

/* ========== 家长查看页面（移动端适配） ========== */
.parent-view-page {
  min-height: 100vh;
  background: #f8fafc;
  padding: 0;
  margin: 0;
}

.parent-view-container {
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  min-height: 100vh;
}

.parent-view-header {
  background: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
  color: #fff;
  padding: 24px 20px;
  text-align: center;
}

.parent-view-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 600;
}

.parent-view-student-info h1 {
  font-size: 24px;
  margin: 0 0 4px;
  font-weight: 600;
}

.parent-view-student-info p {
  font-size: 14px;
  opacity: 0.9;
  margin: 0;
}

.parent-view-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 20px;
  background: #fff;
  margin: -20px 16px 16px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.parent-view-stats .stat-card {
  text-align: center;
  padding: 12px 8px;
}

.parent-view-stats .stat-value {
  font-size: 24px;
  font-weight: 700;
  color: #2563EB;
  margin-bottom: 4px;
}

.parent-view-stats .stat-label {
  font-size: 12px;
  color: #64748B;
}

.parent-view-section {
  padding: 20px;
  border-top: 1px solid #e2e8f0;
}

.parent-view-section h2 {
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 成绩列表 */
.grade-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.grade-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: #f8fafc;
  border-radius: 8px;
}

.grade-item .subject {
  font-size: 14px;
  color: #1e293b;
  font-weight: 500;
}

.grade-item .score {
  font-size: 18px;
  font-weight: 700;
  color: #2563EB;
}

/* 反馈列表 */
.feedback-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feedback-item {
  padding: 12px;
  background: #f8fafc;
  border-radius: 8px;
  border-left: 3px solid #10B981;
}

.feedback-item .teacher {
  font-size: 13px;
  color: #64748B;
  margin-bottom: 6px;
}

.feedback-item .content {
  font-size: 14px;
  color: #1e293b;
  line-height: 1.6;
}

.feedback-item .date {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 6px;
}

/* 建议框 */
.suggestions-box {
  padding: 16px;
  background: #f0f9ff;
  border-radius: 8px;
  border-left: 3px solid #2563EB;
}

.suggestions-box p {
  font-size: 14px;
  color: #1e293b;
  line-height: 1.8;
  margin: 0;
}

/* 底部信息 */
.parent-view-footer {
  padding: 20px;
  text-align: center;
  color: #94a3b8;
  font-size: 12px;
  border-top: 1px solid #e2e8f0;
}

.parent-view-footer p {
  margin: 4px 0;
}

/* ========== 智能总结表单 ========== */
.quick-import-section {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 2px dashed #3b82f6;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.quick-import-header {
  margin-bottom: 16px;
}

.quick-import-header h3 {
  margin: 0 0 8px 0;
  color: #1e40af;
  font-size: 18px;
}

.quick-import-desc {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

.quick-import-area {
  position: relative;
}

.quick-import-textarea {
  width: 100%;
  min-height: 180px;
  padding: 16px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  line-height: 1.6;
  background: #ffffff;
}

.quick-import-textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.quick-import-actions {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.summary-form-container {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.form-section {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e2e8f0;
}

.form-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.form-section h3 {
  font-size: 16px;
  color: #1e293b;
  margin: 0 0 16px 0;
  font-weight: 600;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group label {
  display: block;
  font-size: 14px;
  color: #64748b;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.subject-summary-list {
  margin-bottom: 16px;
}

.subject-summary-row {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  position: relative;
}

.subject-summary-row .subject-row-header {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
}

.subject-summary-row .form-group {
  margin-bottom: 8px;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.form-actions .btn {
  padding: 12px 24px;
}

/* 报告预览样式 */
.report-preview {
  margin-top: 32px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  overflow: hidden;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #E2E8F0;
  background: #F8FAFC;
}

.preview-header h2 {
  margin: 0;
  font-size: 18px;
}

.preview-actions {
  display: flex;
  gap: 8px;
}

.report-preview-content {
  padding: 24px;
  max-width: 600px;
  margin: 0 auto;
}

.report-subject {
  background: #F8FAFC;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  border-left: 3px solid #2563EB;
}

.report-subject-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.report-subject-name {
  font-weight: 600;
  font-size: 16px;
  color: #1E293B;
}

.report-subject-score {
  background: #2563EB;
  color: #fff;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 13px;
}

.report-subject-item {
  font-size: 14px;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 6px;
}

.report-strengths {
  color: #065F46;
  line-height: 1.8;
  font-size: 14px;
  white-space: pre-wrap;
}

.report-weaknesses {
  color: #991B1B;
  line-height: 1.8;
  font-size: 14px;
  white-space: pre-wrap;
}

.report-suggestions {
  color: #92400E;
  line-height: 1.8;
  font-size: 14px;
  white-space: pre-wrap;
}

/* 家长端报告样式 */
.parent-subject-card {
  background: #F8FAFC;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 10px;
  border-left: 3px solid #2563EB;
}

.parent-subject-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.parent-subject-name {
  font-weight: 600;
  color: #1E293B;
}

.parent-subject-score {
  background: #2563EB;
  color: #fff;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
}

.parent-subject-item {
  font-size: 13px;
  color: #475569;
  line-height: 1.7;
  margin-top: 6px;
}

/* 报告卡片（图片生成用） */
.parent-report-card {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 0;
}

.parent-report-header {
  background: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
  color: #fff;
  padding: 28px 24px;
  text-align: center;
}

.parent-report-header h2 {
  margin: 0 0 6px 0;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}

.parent-report-header p {
  margin: 0;
  font-size: 14px;
  opacity: 0.9;
}

.parent-report-body {
  padding: 24px;
}

.parent-report-section {
  margin-bottom: 20px;
}

.parent-report-section:last-child {
  margin-bottom: 0;
}

.parent-report-section h3 {
  font-size: 15px;
  font-weight: 600;
  color: #1E293B;
  margin: 0 0 10px 0;
  padding-left: 10px;
  border-left: 3px solid #2563EB;
}

.parent-report-footer {
  text-align: center;
  padding: 16px;
  font-size: 12px;
  color: #94A3B8;
  border-top: 1px solid #F1F5F9;
  background: #F8FAFC;
}

/* 报告预览 */
.report-preview {
  margin-top: 24px;
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
}

.preview-header h2 {
  font-size: 18px;
  color: #1e293b;
  margin: 0;
}

.preview-actions {
  display: flex;
  gap: 12px;
}

.report-preview-content {
  background: #f8fafc;
  border-radius: 8px;
  padding: 20px;
}

/* 学生端报告列表 */
.report-list {
  display: grid;
  gap: 16px;
}

.report-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: all 0.2s;
}

.report-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.report-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.report-card-title {
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
}

.report-card-date {
  font-size: 12px;
  color: #94a3b8;
}

.report-card-summary {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.report-card-tag {
  display: inline-block;
  padding: 4px 8px;
  background: #dbeafe;
  color: #2563eb;
  border-radius: 4px;
  font-size: 12px;
  margin-top: 12px;
}

/* ==================== 智能总结报告样式 ==================== */
.subject-row {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
}

.report-section {
  margin-bottom: 20px;
}
.report-section h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1E293B;
  margin: 0 0 12px 0;
  padding-left: 10px;
  border-left: 3px solid #2563EB;
}

.subject-block {
  background: #F8FAFC;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
  border: 1px solid #E2E8F0;
}
.subject-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.subject-head .subject-name {
  font-size: 15px;
  font-weight: 600;
  color: #1E293B;
}
.subject-head .subject-score {
  background: #2563EB;
  color: #FFFFFF;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}
.subject-line {
  font-size: 13px;
  color: #475569;
  line-height: 1.7;
  margin: 4px 0;
}
.subject-line strong {
  color: #1E293B;
}

.eval-item {
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
}
.eval-item h4 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 6px 0;
}
.eval-item p {
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
}
.eval-item.strengths {
  background: #ECFDF5;
  border-left: 3px solid #10B981;
}
.eval-item.strengths h4 { color: #047857; }
.eval-item.strengths p { color: #065F46; }
.eval-item.weaknesses {
  background: #FEF2F2;
  border-left: 3px solid #EF4444;
}
.eval-item.weaknesses h4 { color: #B91C1C; }
.eval-item.weaknesses p { color: #991B1B; }
.eval-item.suggestions {
  background: #FFFBEB;
  border-left: 3px solid #F59E0B;
}
.eval-item.suggestions h4 { color: #B45309; }
.eval-item.suggestions p { color: #92400E; }

/* ==================== 粘贴美化出图（极简版） ==================== */
.beautify-card {
  width: 375px;
  max-width: 100%;
  margin: 0 auto;
  background: #FFFFFF;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.beautify-header {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #FFFFFF;
  padding: 28px 24px;
  text-align: center;
}
.beautify-tag {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.beautify-title {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 8px 0;
}
.beautify-period {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  padding: 4px 16px;
  border-radius: 12px;
  font-size: 13px;
}
.beautify-body {
  padding: 20px 24px;
}
.beautify-body .br-line {
  font-size: 14px;
  line-height: 1.8;
  color: #334155;
  margin: 6px 0;
  word-break: break-word;
}
.beautify-body .br-label {
  display: inline-block;
  font-weight: 600;
  margin-right: 8px;
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 13px;
}
.br-label-green { background: #DCFCE7; color: #15803D; }
.br-label-red { background: #FEE2E2; color: #B91C1C; }
.br-label-yellow { background: #FEF3C7; color: #B45309; }
.br-label-blue { background: #DBEAFE; color: #1D4ED8; }
.br-label-purple { background: #EDE9FE; color: #6D28D9; }
.br-label-gray { background: #F1F5F9; color: #475569; }

/* 编号章节（一、二、三...）彩色卡片 */
.br-numbered {
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
}
.br-numbered-head {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}
.br-numbered .br-line {
  font-size: 14px;
  line-height: 1.85;
  color: #334155;
  margin: 6px 0;
}

.br-subject {
  background: #F8FAFC;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
  border-left: 3px solid #2563EB;
}
.br-subject-head {
  margin-bottom: 8px;
}
.br-subject-name {
  display: inline-block;
  background: #2563EB;
  color: #FFFFFF;
  padding: 3px 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
}
.br-eval {
  background: #F8FAFC;
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 16px;
}
.beautify-footer {
  background: #F8FAFC;
  padding: 14px;
  text-align: center;
  font-size: 12px;
  color: #94A3B8;
  border-top: 1px solid #E2E8F0;
}

/* ==================== 课程管理 ==================== */
.course-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}
/* 课程管理已改为表格视图：容器不再用卡片网格，整块撑满并允许表格内部横向滚动 */
.course-list.course-list-table {
  display: block;
}
.course-list.course-list-table .table-scroll {
  background:#fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.course-card {
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: all 0.2s;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
}
.course-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.course-card-main { display: flex; flex: 1; min-width: 0; }
.course-card-bar { width: 4px; flex-shrink: 0; }
.course-card-body { padding: 16px 18px; flex: 1; min-width: 0; }
.course-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.course-tag {
  display: inline-block; font-size: 12px; font-weight: 600;
  padding: 2px 10px; border-radius: 10px;
}
.course-grade { font-size: 12px; color: #64748B; }
.course-card-title { font-size: 16px; font-weight: 600; color: #1E293B; margin: 0 0 6px 0; }
.course-card-desc { font-size: 13px; color: #64748B; line-height: 1.5; margin-bottom: 12px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.course-card-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: #94A3B8; }

/* 班级课次体系：母版提示 / 班级切换条 */
.master-tip {
  background: #EFF6FF; border: 1px dashed #93C5FD; color: #1E40AF;
  padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 14px; line-height: 1.6;
}
.detail-class-switch {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 12px 14px; margin-bottom: 16px; background: #F8FAFC;
  border: 1px solid #E2E8F0; border-radius: 10px; font-size: 13px; color: #475569;
}
.dcs-btn {
  border: 1px solid #CBD5E1; background: #fff; color: #334155;
  padding: 6px 14px; border-radius: 999px; cursor: pointer; font-size: 13px; transition: all .15s;
}
.dcs-btn:hover { border-color: #2563EB; color: #2563EB; }
.dcs-btn.active { background: #2563EB; border-color: #2563EB; color: #fff; }
.dcs-type { opacity: .8; font-size: 12px; }
.dcs-ghost { margin-left: auto; background: transparent; border-style: dashed; color: #64748B; }
.course-card-classes { margin: 6px 0 8px; font-size: 12px; color: #475569; line-height: 1.6; }
.course-class-box { display:flex;flex-direction:column;gap:6px;max-height:160px;overflow:auto;border:1px solid #E2E8F0;border-radius:8px;padding:10px;background:#F8FAFC; }
.course-class-opt { display:flex;align-items:center;gap:8px;font-size:13px;color:#334155;cursor:pointer;padding:4px 6px;border-radius:6px; }
.course-class-opt:hover { background:#E0F2FE; }
.course-class-opt input { margin:0; }
.course-card-actions { padding: 12px 14px; display: flex; align-items: flex-start; }

/* 课程详情/课次 */
.lesson-list { display: flex; flex-direction: column; gap: 14px; }
.lesson-card {
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  overflow: hidden;
}
.lesson-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
}
.lesson-num {
  width: 44px; flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.lesson-num-badge {
  width: 36px; height: 36px; border-radius: 50%;
  background: #2563EB; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px;
}
.lesson-no-label { font-size: 10px; color: #94A3B8; font-weight: 600; line-height: 1; }
.lesson-card.lesson-finished .lesson-num-badge { background: #16A34A; }
.lesson-card.lesson-upcoming .lesson-num-badge { background: #2563EB; box-shadow: 0 0 0 4px rgba(37,99,235,.12); }
.lesson-card.lesson-notstarted .lesson-num-badge { background: #CBD5E1; }
.lesson-info { flex: 1; min-width: 0; }
.lesson-title { font-size: 15px; font-weight: 600; color: #1E293B; }
.lesson-meta { font-size: 12px; color: #64748B; margin-top: 2px; }
.lesson-actions { display: flex; gap: 8px; flex-shrink: 0; }
.lesson-resources { padding: 8px 18px 14px 18px; }

.res-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  transition: background 0.15s;
}
.res-item:hover { background: #F8FAFC; }
.res-icon { font-size: 22px; flex-shrink: 0; }
.res-info { flex: 1; min-width: 0; }
.res-title { font-size: 14px; color: #1E293B; font-weight: 500; }
.res-sub { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 12px; }
.res-tag { display: inline-block; padding: 1px 8px; border-radius: 8px; font-weight: 600; }
.res-url { color: #94A3B8; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.res-actions { display: flex; gap: 6px; flex-shrink: 0; }
.res-empty { font-size: 13px; color: #94A3B8; padding: 12px 4px; text-align: center; }


/* ==================== 课程详情：课后记录/时间轴 ==================== */
.lesson-card { border-left: 4px solid #CBD5E1; }
.lesson-card.lesson-finished { border-left: 4px solid #16A34A; }
.lesson-card.lesson-upcoming { border-left: 4px solid #2563EB; }
.lesson-card.lesson-notstarted { border-left: 4px solid #E2E8F0; opacity: 0.72; background: #F8FAFC; }
.lesson-card.lesson-notstarted .lesson-num { background: transparent; }
.lesson-card-flash { animation: lessonFlash 1.6s ease; }
@keyframes lessonFlash {
  0%, 100% { box-shadow: 0 1px 3px rgba(0,0,0,.08); }
  30% { box-shadow: 0 0 0 4px rgba(37,99,235,.25), 0 6px 20px rgba(37,99,235,.18); }
}
.lesson-status.locked { background: #FEF3C7; color: #92400E; }
.lesson-status {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 500;
  vertical-align: middle;
}
.lesson-status.finished { background: #D1FAE5; color: #065F46; }
.lesson-status.upcoming { background: #E2E8F0; color: #475569; }
.lesson-locked {
  display: inline-block;
  font-size: 12px;
  color: #94A3B8;
  padding: 6px 10px;
  background: #F8FAFC;
  border-radius: 6px;
}
.res-sent-badge {
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
  color: #10B981;
  font-weight: 500;
}
.res-cat-summary { background: linear-gradient(0deg, #FDF2F8 0%, #FFFFFF 100%); }
.res-cat-reflection { background: linear-gradient(0deg, #F5F3FF 0%, #FFFFFF 100%); }

/* Tabs */
.course-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  border-bottom: 1px solid #E2E8F0;
}
.course-tab {
  padding: 10px 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: #64748B;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all .15s;
}
.course-tab:hover { color: #2563EB; }
.course-tab.active {
  color: #2563EB;
  font-weight: 600;
  border-bottom-color: #2563EB;
}
.course-tab-panel { animation: fadeIn .2s ease; }

/* 教学反思表单 */
.reflect-section {
  margin-bottom: 14px;
  padding: 12px;
  background: #F8FAFC;
  border-radius: 8px;
  border-left: 3px solid #8B5CF6;
}
.reflect-title {
  font-size: 13px;
  font-weight: 600;
  color: #6D28D9;
  margin-bottom: 6px;
}
.reflect-input {
  font-size: 13px !important;
  line-height: 1.6 !important;
}
.reflect-view-item {
  margin-bottom: 14px;
  padding: 12px 16px;
  background: #F8FAFC;
  border-radius: 8px;
  border-left: 3px solid #8B5CF6;
}
.reflect-view-label {
  font-size: 13px;
  font-weight: 600;
  color: #6D28D9;
  margin-bottom: 6px;
}
.reflect-view-content {
  font-size: 14px;
  line-height: 1.7;
  color: #334155;
  white-space: pre-wrap;
}

/* 教学大纲时间轴 */
.outline-panel { padding: 4px 0; }
.outline-header {
  display: flex;
  gap: 16px;
  align-items: stretch;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.outline-progress-card {
  flex: 1;
  min-width: 260px;
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  color: #fff;
  padding: 20px 24px;
  border-radius: 12px;
}
.outline-progress-label {
  font-size: 13px;
  opacity: .85;
  margin-bottom: 8px;
}
.outline-progress-value {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.1;
}
.outline-progress-value small { font-size: 18px; opacity: .8; }
.outline-progress-frac {
  font-size: 13px;
  opacity: .8;
  margin-left: 8px;
}
.outline-progress-card .progress-bar {
  margin-top: 14px;
  background: rgba(255,255,255,.25);
}
.outline-progress-card .progress-bar-fill {
  background: #fff;
}
.outline-actions {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #E2E8F0;
  border-radius: 4px;
  overflow: hidden;
}
.progress-bar.mini { height: 6px; }
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #3B82F6, #2563EB);
  border-radius: 4px;
  transition: width .4s ease;
}

.timeline {
  position: relative;
  padding-left: 8px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: #E2E8F0;
}
.timeline-item {
  position: relative;
  padding: 12px 0 12px 56px;
  min-height: 52px;
}
.timeline-dot {
  position: absolute;
  left: 8px;
  top: 16px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #CBD5E1;
  color: #94A3B8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  z-index: 1;
}
.timeline-item.done .timeline-dot {
  background: #10B981;
  border-color: #10B981;
  color: #fff;
}
.timeline-item.next .timeline-dot {
  border-color: #2563EB;
  color: #2563EB;
  box-shadow: 0 0 0 4px rgba(37,99,235,.15);
}
.timeline-content {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 12px 16px;
}
.timeline-item.done .timeline-content {
  background: #F0FDF4;
  border-color: #BBF7D0;
}
.timeline-item.next .timeline-content {
  border-color: #93C5FD;
  box-shadow: 0 2px 8px rgba(37,99,235,.1);
}
.timeline-title {
  font-size: 14px;
  font-weight: 600;
  color: #1E293B;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.timeline-date {
  font-size: 12px;
  color: #64748B;
  font-weight: normal;
}
.timeline-badge {
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 500;
}
.timeline-badge.done { background: #D1FAE5; color: #065F46; }
.timeline-badge.next { background: #DBEAFE; color: #1E40AF; }
.timeline-badge.pending { background: #F1F5F9; color: #64748B; }
.timeline-note {
  margin-top: 6px;
  font-size: 13px;
  color: #64748B;
  line-height: 1.6;
}
.timeline-actions {
  margin-top: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.course-card-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.course-card-progress .progress-bar { flex: 1; }
.course-card-progress-label {
  font-size: 12px;
  color: #2563EB;
  font-weight: 500;
  white-space: nowrap;
}

/* 课次状态条（备课/反思/总结 完成情况） */
.lesson-status-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0 12px 56px;
}
.check-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  background: #fff;
  border: 1px solid;
}
.check-chip.ok { background: #F0FDF4; }
.check-chip.bad { background: #FEF2F2; }
.check-chip.pending { background: #F8FAFC; }
.lesson-meta .deadline-hint { color:#94A3B8; font-size:12px; margin-left:8px; }

/* 资源项 备课类型背景 */
.res-cat-prep {
  background: linear-gradient(0deg, #ECFEFF 0%, #FFFFFF 100%);
}

/* ==================== 小测录入全屏编辑器 ==================== */
.quiz-editor-overlay {
  position: fixed; inset: 0;
  background: #F8FAFC;
  z-index: 9999;
  display: flex; flex-direction: column;
  animation: fadeIn .2s ease;
}
.quiz-editor-header {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 28px;
  background: #fff;
  border-bottom: 1px solid #E2E8F0;
  box-shadow: 0 1px 4px rgba(15,23,42,.04);
}
.quiz-editor-title {
  flex: 1;
  font-size: 18px; font-weight: 600; color: #1E293B;
  display: flex; align-items: center; gap: 10px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.quiz-editor-close {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: none;
  background: #F1F5F9;
  color: #475569;
  font-size: 20px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.quiz-editor-close:hover { background: #E2E8F0; color: #1E293B; }
.quiz-editor-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px;
}
.quiz-editor-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 20px;
  max-width: 1600px;
  margin: 0 auto;
}
@media (max-width: 1100px) {
  .quiz-editor-grid { grid-template-columns: 1fr; }
}
.quiz-editor-left { display: flex; flex-direction: column; gap: 16px; }
.quiz-editor-right { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.qe-card {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 1px 3px rgba(15,23,42,.04);
}
.qe-card-title {
  font-size: 14px; font-weight: 600;
  color: #1E293B;
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.qe-card-title .qe-sub {
  font-weight: normal; font-size: 12px; color: #94A3B8;
}
/* 统一测试录入：个人错题截图行 */
.qe-note-wrap { display:flex;flex-direction:column;gap:6px;min-width:0; }
.qe-wrong-row { display:flex;align-items:center;gap:8px; }
.qe-wrong-label { font-size:11px;color:#2563EB;cursor:pointer;background:#EFF6FF;padding:2px 8px;border-radius:6px;border:1px dashed #BFDBFE; }
.qe-wrong-label:hover { background:#DBEAFE; }
.qe-wrong-view,.qe-wrong-del { font-size:11px;padding:2px 8px;border-radius:6px;border:1px solid #E2E8F0;background:#fff;cursor:pointer;color:#475569; }
.qe-wrong-ai { font-size:11px;padding:2px 8px;border-radius:6px;border:1px solid #7C3AED;background:linear-gradient(90deg,#7C3AED,#2563EB);color:#fff;cursor:pointer;font-weight:600; }
.qe-wrong-ai[disabled] { opacity:.6;cursor:wait; }
.qe-wrong-view:hover { border-color:#2563EB;color:#2563EB; }
.qe-wrong-del:hover { border-color:#EF4444;color:#EF4444; }
.qe-student-row .qe-note-input { resize:vertical;min-height:34px; }
.qe-footer .btn-success { background:#10B981;color:#fff; }
.qe-footer .btn-success:hover { background:#059669; }
.qe-row { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.qe-row:last-child { margin-bottom: 0; }
.qe-row label { font-size: 13px; color: #475569; }
.qe-row .form-input { flex: 1; min-width: 0; }

.qe-import-box {
  background: #F8FAFC;
  border: 1px dashed #CBD5E1;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 10px;
}
.qe-import-textarea {
  width: 100%;
  min-height: 120px;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  padding: 10px;
  font-size: 13px;
  line-height: 1.7;
  resize: vertical;
  font-family: inherit;
  background: #fff;
}
.qe-import-textarea:focus { outline: none; border-color: #2563EB; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.qe-import-hint {
  font-size: 12px;
  color: #94A3B8;
  margin-top: 6px;
  line-height: 1.6;
}
.qe-import-hint code {
  background: #EFF6FF;
  color: #1D4ED8;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
}

.qe-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.qe-stat {
  background: linear-gradient(135deg, #fff, #F8FAFC);
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}
.qe-stat-label { font-size: 12px; color: #64748B; margin-bottom: 4px; }
.qe-stat-value { font-size: 22px; font-weight: 700; color: #1E293B; line-height: 1.1; }
.qe-stat.avg .qe-stat-value { color: #2563EB; }
.qe-stat.max .qe-stat-value { color: #10B981; }
.qe-stat.min .qe-stat-value { color: #EF4444; }
.qe-stat.count .qe-stat-value { color: #64748B; }

.qe-students-scroll {
  max-height: calc(100vh - 360px);
  min-height: 300px;
  overflow-y: auto;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
}
.qe-student-row {
  display: grid;
  grid-template-columns: 40px 1.2fr 0.8fr 1.5fr;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #F1F5F9;
  transition: background .15s;
}
.qe-student-row:last-child { border-bottom: none; }
.qe-student-row:hover { background: #F8FAFC; }
.qe-rank {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #F1F5F9;
  color: #64748B;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600;
}
.qe-rank.top1 { background: #FEF3C7; color: #B45309; }
.qe-rank.top2 { background: #E0E7FF; color: #4338CA; }
.qe-rank.top3 { background: #FCE7F3; color: #BE185D; }
.qe-name { font-size: 14px; font-weight: 600; color: #1E293B; }
.qe-name small { display: block; font-size: 11px; color: #94A3B8; font-weight: normal; margin-top: 2px; }
.qe-score-input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}
.qe-score-input:focus { outline: none; border-color: #2563EB; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.qe-score-input.has-score { background: #F0FDF4; border-color: #86EFAC; color: #166534; }
.qe-score-input.low-score { background: #FEF2F2; border-color: #FCA5A5; color: #991B1B; }
.qe-score-input.fail-score { background: #FEE2E2; border-color: #EF4444; color: #B91C1C; font-weight: 700; }
.qe-note-input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.5;
  resize: vertical;
  min-height: 38px;
  font-family: inherit;
}
.qe-note-input:focus { outline: none; border-color: #F59E0B; box-shadow: 0 0 0 3px rgba(245,158,11,.12); }

.qe-footer {
  background: #fff;
  border-top: 1px solid #E2E8F0;
  padding: 14px 28px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  align-items: center;
}
.qe-footer .btn { min-width: 160px; padding: 10px 20px; font-size: 14px; }

/* 学生端"我的失分点" */
.student-mistakes-card {
  background: #FEF2F2;
  border-left: 3px solid #EF4444;
  padding: 14px 18px;
  border-radius: 8px;
  margin-top: 10px;
}
.student-mistakes-card .label {
  font-weight: 600;
  color: #B91C1C;
  margin-bottom: 6px;
  font-size: 13px;
}
.student-mistakes-card .text {
  font-size: 14px;
  line-height: 1.8;
  color: #475569;
  white-space: pre-wrap;
}

/* ==================== 积分商城 ==================== */
.student-name-link {
  color: #2563EB;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.student-name-link:hover { text-decoration: underline; }

.points-balance {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #FBBF24, #F59E0B);
  color: #fff;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
}
.points-balance .points-num { font-size: 18px; }

.shop-tabs {
  display: flex;
  gap: 4px;
  padding: 12px 20px 0;
  border-bottom: 1px solid #E2E8F0;
  background: #F8FAFC;
}
.shop-tab {
  padding: 10px 18px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  color: #64748B;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.shop-tab.active { color: #2563EB; font-weight: 600; border-bottom-color: #2563EB; }

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.shop-product-card {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  transition: all .2s;
  display: flex;
  flex-direction: column;
}
.shop-product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,99,235,.12);
  border-color: #BFDBFE;
}
.shop-product-emoji {
  font-size: 48px;
  line-height: 1;
  margin-bottom: 10px;
}
.shop-product-name {
  font-size: 15px;
  font-weight: 600;
  color: #1E293B;
  margin-bottom: 4px;
}
.shop-product-desc {
  font-size: 12px;
  color: #64748B;
  line-height: 1.5;
  min-height: 36px;
  margin-bottom: 12px;
  flex: 1;
}
.shop-product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.shop-product-points {
  font-size: 18px;
  font-weight: 700;
  color: #B45309;
}
.shop-product-stock {
  font-size: 11px;
  color: #94A3B8;
  background: #F1F5F9;
  padding: 2px 8px;
  border-radius: 8px;
}
.shop-product-btn {
  width: 100%;
  padding: 8px;
  font-size: 13px;
}

.shop-order-card {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  margin-bottom: 10px;
  align-items: center;
}
.shop-order-emoji {
  width: 50px; height: 50px;
  background: #F1F5F9;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}
.shop-order-info { flex: 1; min-width: 0; }
.shop-order-name { font-size: 14px; font-weight: 600; color: #1E293B; margin-bottom: 4px; }
.shop-order-meta { font-size: 12px; color: #64748B; }
.shop-order-status {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
}

.shop-tab-btn {
  background: transparent;
  border: none;
  padding: 10px 16px;
  font-size: 14px;
  color: #64748B;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.shop-tab-btn.active {
  color: #2563EB;
  font-weight: 600;
  border-bottom-color: #2563EB;
}

/* ==================== 商品详情/排序 ==================== */
.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}
.shop-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #475569;
}
.shop-sort select {
  padding: 6px 10px;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
}
.shop-product-card.has-img { padding: 0; overflow: hidden; }
.shop-product-cover {
  width: 100%;
  height: 140px;
  background: #F8FAFC center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
}
.shop-product-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.product-detail-cover {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 10px;
  background: #F1F5F9;
  display: block;
  margin-bottom: 12px;
}
.product-detail-thumbs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.product-detail-thumbs img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #E2E8F0;
  cursor: pointer;
  transition: border-color .15s;
}
.product-detail-thumbs img.active,
.product-detail-thumbs img:hover { border-color: #2563EB; }

/* ========== 资源库 & 题库 ========== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(15,23,42,0.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; padding: 20px;
}
.form-modal {
  position: relative;
  background: #fff; border-radius: 12px;
  width: 100%; max-width: 520px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}
.form-modal-wide { max-width: 90vw; width: 90vw; overflow-y: visible; }
.form-modal-wide .modal-body { padding: 16px; max-height: none; }
.form-modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 22px; border-bottom: 1px solid #E2E8F0;
}
.form-modal-header h3 { margin: 0; font-size: 17px; color: #1E293B; }
.modal-close {
  background: none; border: none; font-size: 24px; color: #94A3B8;
  cursor: pointer; width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.modal-close:hover { background: #F1F5F9; color: #1E293B; }
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block; font-size: 13px; font-weight: 500;
  color: #475569; margin-bottom: 6px;
}
.form-input {
  width: 100%; padding: 9px 12px; border: 1px solid #E2E8F0;
  border-radius: 8px; font-size: 14px; color: #1E293B;
  background: #fff; outline: none; transition: border-color .15s;
  box-sizing: border-box;
}
.form-input:focus { border-color: #2563EB; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
textarea.form-input { resize: vertical; font-family: inherit; }
.btn-text {
  background: transparent; border: none; cursor: pointer;
  padding: 4px 8px; border-radius: 6px; font-size: 13px;
  color: #2563EB; transition: background .15s;
}
.btn-text:hover { background: #EFF6FF; }
.empty-state {
  text-align: center; padding: 50px 20px;
  color: #94A3B8; font-size: 14px;
  background: #F8FAFC; border: 1px dashed #CBD5E1;
  border-radius: 12px;
}
.empty-state p { margin: 0; }
.filter-tag {
  display: inline-block; font-size: 11px; padding: 2px 8px;
  border-radius: 8px; background: #EFF6FF; color: #1D4ED8;
}

/* ==================== 教师端·课程闯关岛屿地图 ==================== */
.adventure-map {
  position: relative;
  background: linear-gradient(180deg, #E0F2FE 0%, #F0F9FF 45%, #CCFBF1 100%);
  border-radius: 16px;
  padding: 24px 20px 32px;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid #BAE6FD;
}
.adventure-map::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,.7) 0, rgba(255,255,255,0) 28px),
    radial-gradient(circle at 82% 12%, rgba(255,255,255,.55) 0, rgba(255,255,255,0) 22px),
    radial-gradient(circle at 70% 78%, rgba(255,255,255,.4) 0, rgba(255,255,255,0) 30px);
  pointer-events: none;
}
.adventure-header {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(4px);
  border-radius: 12px;
  padding: 12px 18px;
  margin-bottom: 28px;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.adventure-progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: #0F172A;
  margin-bottom: 8px;
}
.adventure-progress-num {
  font-size: 12px;
  color: #2563EB;
  background: #DBEAFE;
  padding: 2px 10px;
  border-radius: 10px;
  font-weight: 600;
}
.adventure-progress-bar {
  height: 8px;
  background: #E0F2FE;
  border-radius: 4px;
  overflow: hidden;
}
.adventure-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10B981, #34D399);
  border-radius: 4px;
  transition: width .5s ease;
}

.island-track {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 10px 0;
}
.island-track::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 0;
  border-left: 3px dashed #94A3B8;
  opacity: .55;
}
.island-row {
  position: relative;
  display: flex;
  margin-bottom: 28px;
  min-height: 110px;
}
.island-row:last-child { margin-bottom: 0; }
.island-left { justify-content: flex-start; padding-left: calc(50% - 220px); }
.island-right { justify-content: flex-end; padding-right: calc(50% - 220px); }

.island-node {
  position: relative;
  width: 180px;
  cursor: pointer;
  text-align: center;
  transition: transform .25s ease;
  user-select: none;
}
.island-node:hover { transform: translateY(-4px) scale(1.04); }
.island-node.active .island-disc {
  box-shadow: 0 0 0 6px rgba(59,130,246,.25), 0 10px 24px rgba(37,99,235,.35);
}

.island-disc {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 14px auto 0;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 6px 14px rgba(15,23,42,.18), inset 0 -6px 0 rgba(0,0,0,.12);
  transition: box-shadow .25s ease;
}
.island-disc::after {
  content: "";
  position: absolute;
  bottom: -10px; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 14px;
  background: rgba(252,211,77,.85);
  border-radius: 50%;
  z-index: -1;
  box-shadow: 0 2px 0 rgba(180,130,20,.3);
}
.island-cleared .island-disc {
  background: radial-gradient(circle at 30% 30%, #34D399, #059669);
}
.island-today .island-disc {
  background: radial-gradient(circle at 30% 30%, #60A5FA, #2563EB);
  animation: islandPulse 2s ease-in-out infinite;
}
.island-pending .island-disc {
  background: radial-gradient(circle at 30% 30%, #CBD5E1, #94A3B8);
  opacity: .85;
}
@keyframes islandPulse {
  0%,100% { box-shadow: 0 6px 14px rgba(15,23,42,.18), 0 0 0 0 rgba(59,130,246,.5), inset 0 -6px 0 rgba(0,0,0,.12); }
  50%     { box-shadow: 0 6px 14px rgba(15,23,42,.18), 0 0 0 14px rgba(59,130,246,0), inset 0 -6px 0 rgba(0,0,0,.12); }
}
.island-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  opacity: .95;
}
.island-emoji {
  font-size: 28px;
  line-height: 1;
  margin-top: 2px;
}

.island-meta {
  margin-top: 14px;
}
.island-title {
  font-size: 13px;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.3;
  max-width: 180px;
  margin: 0 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.island-date {
  font-size: 11px;
  color: #475569;
  margin-top: 2px;
}

/* 顶部装饰：星星 / 旗帜 / 云朵 */
.island-stars {
  position: absolute;
  top: -8px; left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  letter-spacing: 1px;
  white-space: nowrap;
}
.island-stars .star { color: #E2E8F0; }
.island-stars .star.on { color: #FBBF24; text-shadow: 0 1px 2px rgba(180,130,20,.4); }
.island-flag {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  font-size: 22px;
  animation: flagWave 1.8s ease-in-out infinite;
}
@keyframes flagWave {
  0%,100% { transform: translateX(-50%) rotate(-6deg); }
  50%     { transform: translateX(-50%) rotate(6deg); }
}
.island-cloud {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  font-size: 26px;
  opacity: .75;
  animation: cloudFloat 3.5s ease-in-out infinite;
}
@keyframes cloudFloat {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%     { transform: translateX(-50%) translateY(-3px); }
}

/* 岛屿详情展开面板 */
.island-detail-panel {
  position: relative;
  z-index: 2;
  max-width: 920px;
  margin: 8px auto 0;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(15,23,42,.12);
  border: 1px solid #E2E8F0;
  overflow: hidden;
}
.island-detail-inner {
  padding: 18px 22px 22px;
}
.island-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #E2E8F0;
}
.island-detail-badge {
  display: inline-block;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 10px;
  vertical-align: middle;
}

/* 移动端：单列居中 */
@media (max-width: 768px) {
  .island-track::before { left: 28px; }
  .island-row, .island-left, .island-right {
    justify-content: flex-start;
    padding-left: 0;
    padding-right: 0;
  }
  .island-node {
    margin-left: 0;
    width: auto;
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    padding-left: 60px;
  }
  .island-disc { margin: 0; flex-shrink: 0; }
  .island-meta { margin-top: 0; flex: 1; }
  .island-title { max-width: none; white-space: normal; }
  .island-stars, .island-flag, .island-cloud {
    top: -10px; left: 28px;
    transform: none;
  }
}

/* ==================== 教师端·海盗寻宝地图 v2 ==================== */
.tm-wrap {
  background: linear-gradient(180deg, #BAE6FD 0%, #E0F2FE 100%);
  border-radius: 18px;
  padding: 18px 18px 26px;
  border: 3px solid #0284C7;
  box-shadow: 0 10px 30px rgba(2,132,199,.25), inset 0 0 0 4px #FCD34D;
}
.tm-canvas {
  position: relative;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.5), 0 6px 18px rgba(0,0,0,.15);
  background: #0EA5E9;
}
.tm-svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  pointer-events: none;
}

/* 关卡节点 */
.tm-node {
  position: absolute;
  transform: translate(-50%, -50%);
  min-width: 96px;
  text-align: center;
  cursor: pointer;
  z-index: 3;
  user-select: none;
}
.tm-disc {
  width: 52px; height: 52px;
  margin: 0 auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform .18s ease, filter .18s ease;
}
.tm-node:hover .tm-disc { transform: scale(1.12); }
.tm-node.active .tm-disc { transform: scale(1.18); }

.tm-disc-num {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
  line-height: 1;
}

/* 已通关：深蓝圈（参考图里的蓝灰圆点） */
.tm-cleared .tm-disc {
  background: radial-gradient(circle at 32% 30%, #60A5FA, #1D4ED8);
  border: 4px solid #fff;
  box-shadow: 0 3px 0 #1E3A8A, 0 5px 10px rgba(0,0,0,.25);
}
/* 当前关：红色圆 */
.tm-current .tm-disc {
  background: radial-gradient(circle at 32% 30%, #F87171, #DC2626);
  border: 4px solid #fff;
  box-shadow: 0 3px 0 #7F1D1D, 0 6px 14px rgba(220,38,38,.45);
  animation: tmCurrentPulse 1.6s ease-in-out infinite;
}
@keyframes tmCurrentPulse {
  0%,100% { box-shadow: 0 3px 0 #7F1D1D, 0 0 0 0 rgba(220,38,38,.55); }
  50%     { box-shadow: 0 3px 0 #7F1D1D, 0 0 0 14px rgba(220,38,38,0); }
}
/* 待开启：浅灰圆 */
.tm-locked .tm-disc {
  background: radial-gradient(circle at 32% 30%, #F1F5F9, #CBD5E1);
  border: 4px solid #fff;
  box-shadow: 0 3px 0 #94A3B8;
  opacity: .92;
}
.tm-locked .tm-disc-num { color: #64748B; text-shadow: none; }

/* 当前关卡上方的小旗 */
.tm-flag {
  position: absolute;
  top: -22px; left: 50%;
  transform: translateX(-50%);
  font-size: 22px;
  animation: tmFlagWave 1.6s ease-in-out infinite;
}
@keyframes tmFlagWave {
  0%,100% { transform: translateX(-50%) rotate(-8deg); }
  50%     { transform: translateX(-50%) rotate(8deg); }
}

/* 已通关的星星 */
.tm-stars {
  position: absolute;
  top: -16px; left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  letter-spacing: 0;
  white-space: nowrap;
  line-height: 1;
}
.tm-star { color: rgba(255,255,255,.7); text-shadow: 0 1px 1px rgba(0,0,0,.2); }
.tm-star.on { color: #FBBF24; text-shadow: 0 1px 2px rgba(146,64,14,.6); }

/* 节点下方标签 */
.tm-label {
  margin-top: 6px;
  display: inline-block;
  background: rgba(255,255,255,.95);
  border-radius: 8px;
  padding: 2px 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
  white-space: nowrap;
}
.tm-label-title {
  font-size: 11px;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.3;
}
.tm-label-date {
  font-size: 10px;
  color: #64748B;
  line-height: 1.2;
}

/* ==================== 智慧教室·仿真场景 ==================== */
.classroom-scene {
  position: relative;
  background: linear-gradient(180deg, #F8FAFC 0%, #EEF2F7 100%);
  border-radius: 16px;
  padding: 22px 24px 30px;
  border: 1px solid #E2E8F0;
  box-shadow: inset 0 2px 0 #fff;
  overflow: hidden;
}
.classroom-wall {
  height: 14px;
  background: linear-gradient(180deg, #CBD5E1, #E2E8F0);
  border-radius: 4px;
  margin-bottom: 14px;
  box-shadow: 0 2px 0 rgba(0,0,0,.05);
}
.classroom-blackboard {
  position: relative;
  max-width: 620px;
  margin: 0 auto 22px;
  height: 86px;
  background: linear-gradient(180deg, #14532D, #166534);
  border-radius: 8px;
  border: 8px solid #92400E;
  box-shadow: 0 6px 14px rgba(0,0,0,.18), inset 0 0 30px rgba(0,0,0,.3);
  display: flex; align-items: center; justify-content: center;
}
.classroom-blackboard .chalk {
  color: #F8FAFC;
  font-family: "Comic Sans MS", "PingFang SC", cursive;
  font-size: 20px;
  letter-spacing: 2px;
  text-shadow: 0 0 6px rgba(255,255,255,.2);
}
.blackboard-shelf {
  position: absolute; bottom: -16px; left: -8px; right: -8px; height: 8px;
  background: #78350F; border-radius: 4px;
}
.classroom-podium {
  max-width: 200px; margin: 0 auto 22px; height: 26px;
  background: linear-gradient(180deg, #D6B37A, #B8893F);
  border-radius: 6px 6px 2px 2px;
  display:flex;align-items:center;justify-content:center;
  color:#5C3B0E;font-size:11px;font-weight:700;
  box-shadow: 0 4px 0 #8B5E1F;
}
.classroom-seats {
  --cols: 6;
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  gap: 18px 14px;
  max-width: 1080px;
  margin: 0 auto;
  perspective: 900px;
}
.seat {
  display: flex; flex-direction: column; align-items: center;
  cursor: pointer;
  transition: transform .15s ease;
}
.seat:hover { transform: translateY(-3px); }
.seat.occupied[draggable="true"] { cursor: grab; }
.seat.occupied:active { cursor: grabbing; }
.seat-drag-over .seat-desk { outline: 3px dashed #F59E0B; outline-offset: 3px; background:#FEF3C7 !important; }
.seat-desk {
  width: 100%; max-width: 86px; aspect-ratio: 1.15/1;
  background: linear-gradient(180deg, #FDE68A 0%, #F5C23A 55%, #D99B1F 100%);
  border: 2px solid #B45309;
  border-radius: 8px;
  box-shadow: 0 5px 0 #92400E, 0 8px 14px rgba(146,64,14,.25);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px;
  position: relative;
  transform: rotateX(8deg);
  transform-origin: bottom center;
}
.seat.empty .empty-desk { background: linear-gradient(180deg,#F1F5F9,#E2E8F0); border-color:#CBD5E1; box-shadow: 0 4px 0 #94A3B8; }
.seat.occupied .seat-desk { border-left: 5px solid var(--group-color, #2563EB); }
.seat.selected .seat-desk { outline: 3px solid #2563EB; outline-offset: 3px; }
.seat-chair {
  width: 60%; height: 14px; margin-top: 6px;
  background: linear-gradient(180deg,#64748B,#475569);
  border-radius: 4px 4px 2px 2px;
  box-shadow: 0 3px 0 #334155;
}
.seat-avatar { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; display:flex; align-items:center; justify-content:center; }
.seat-avatar-img { width:100%; height:100%; object-fit:cover; }
.seat-avatar-fallback { width:100%;height:100%;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700;font-size:16px; }
.seat-name { font-size: 11px; font-weight: 700; color:#422006; display:flex;align-items:center;gap:3px; }
.seat-group { display:inline-flex;align-items:center;justify-content:center; width:14px;height:14px;border-radius:50%; color:#fff;font-size:9px;font-weight:800; }

/* 小组迷你积分 */
.mini-group-grid { display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px; }
.mini-group { background:#F8FAFC;border-radius:10px;padding:10px;text-align:center; }
.mini-group-name { font-size:12px;color:#475569;font-weight:600; }
.mini-group-score { font-size:26px;font-weight:800;color:#0F172A;margin:2px 0; }
.mini-group-actions { display:flex;gap:4px;justify-content:center; }
.mini-group-actions .btn { padding:4px 10px;font-size:12px; }

/* 学生档案弹窗 */
.cr-modal { max-width: 860px; width: 92vw; max-height: 88vh; margin: 0 auto; }
.cr-modal-lg { max-width: 920px; }
/* 强制所有遮罩弹层在视口居中（修复智慧教室学员弹框偏左） */
.modal-overlay { align-items: center !important; justify-content: center !important; }
.modal-overlay > * { margin-left: auto; margin-right: auto; }
.form-modal-body { max-height: 70vh; overflow-y:auto; }
.sp-head { display:flex;gap:16px;align-items:center;padding-bottom:14px;border-bottom:1px solid #E2E8F0; }
.sp-avatar { width:72px;height:72px;border-radius:50%;overflow:hidden;flex-shrink:0;border:3px solid #E2E8F0; }
.sp-avatar img { width:100%;height:100%;object-fit:cover; }
.sp-avatar-fallback { width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:#2563EB;color:#fff;font-size:28px;font-weight:700; }
.sp-name { font-size:20px;font-weight:800;color:#0F172A; }
.sp-meta { font-size:13px;color:#64748B;margin:3px 0 6px; }
.sp-upload-avatar { font-size:12px; }
.sp-stat-row { display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:14px 0; }
.sp-stat { background:#F8FAFC;border-radius:10px;padding:10px;text-align:center; }
.sp-stat-num { font-size:24px;font-weight:800;color:#2563EB; }
.sp-stat-label { font-size:12px;color:#64748B; }
.sp-tabs { display:flex;gap:6px;border-bottom:2px solid #E2E8F0;margin-bottom:12px; }
.sp-tab { padding:8px 16px;border:none;background:none;cursor:pointer;font-size:13px;color:#64748B;border-bottom:2px solid transparent;margin-bottom:-2px;font-weight:600; }
.sp-tab.active { color:#2563EB;border-bottom-color:#2563EB; }
.sp-tab-panel { display:none; }
.sp-tab-panel.active { display:block; }
.sp-section-title { font-size:13px;font-weight:700;color:#334155;margin:14px 0 8px; }
.sp-quick-points { display:flex;flex-direction:column;gap:10px; }
.qp-group { display:flex;flex-wrap:wrap;gap:8px;align-items:center;background:#F8FAFC;border:1px solid #E2E8F0;border-radius:10px;padding:8px 10px; }
.qp-group-label { font-size:12px;font-weight:700;color:#475569;margin-right:4px;white-space:nowrap; }
.qp-group-label.minus { color:#DC2626; }
.qp-btn { border:2px solid var(--qc);color:var(--qc);background:#fff;border-radius:20px;padding:6px 14px;font-size:13px;font-weight:700;cursor:pointer;transition:all .15s; }
.qp-btn:hover { background:var(--qc);color:#fff; }
.qp-btn.minus { border-style:dashed; }

.sp-wecom-bar { display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:6px 0 14px;padding:10px 14px;background:#F0F9FF;border:1px solid #BAE6FD;border-radius:10px; }
.sp-wecom-status { font-size:13px;font-weight:600;color:#0369A1; }
.sp-wecom-status.off { color:#B45309;background:#FEF3C7;border-color:#FDE68A;padding:3px 10px;border-radius:999px; }
.sp-wecom-status.on { color:#047857; }
.btn-sm { padding:6px 12px;font-size:13px;border-radius:8px;cursor:pointer;border:1px solid transparent;font-weight:600; }
.btn-success { background:#10B981;color:#fff; }
.btn-success:hover { background:#059669; }
.btn-ghost { background:#fff;color:#334155;border-color:#CBD5E1; }
.btn-ghost:hover { background:#F1F5F9; }
.form-hint { display:block;margin-top:4px;font-size:12px;color:#94A3B8;line-height:1.4; }
/* 学生端积分获取情况 */
.pts-overview { display:flex;align-items:center;gap:16px;background:linear-gradient(135deg,#EFF6FF,#F5F3FF);border:1px solid #DBEAFE;border-radius:12px;padding:14px 18px;margin-bottom:14px; }
.pts-total { display:flex;flex-direction:column;align-items:center;padding-right:18px;border-right:1px solid #DBEAFE; }
.pts-total-num { font-size:30px;font-weight:800;line-height:1; }
.pts-total.pos .pts-total-num { color:#2563EB; }
.pts-total.neg .pts-total-num { color:#EF4444; }
.pts-total-lbl { font-size:12px;color:#64748B;margin-top:4px; }
.pts-sub { font-size:13px;color:#475569; }
.pts-row { display:flex;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid #F1F5F9;font-size:13px; }
.pts-val { font-weight:800;width:42px; }
.pts-val.plus { color:#10B981; }
.pts-val.minus { color:#EF4444; }
.pts-reason { flex:1;color:#334155; }
.pts-meta { color:#94A3B8;font-size:11px; }
.sp-form-row { display:flex;gap:8px;margin-bottom:10px; }
.sp-form-row .form-input { flex:1; }
.obs-item { display:flex;align-items:center;gap:8px;padding:7px 0;border-bottom:1px dashed #E2E8F0;font-size:13px; }
.obs-tag { font-size:11px;padding:2px 8px;border-radius:8px;font-weight:600;white-space:nowrap; }
.obs-text { flex:1;color:#334155; }
.obs-date { color:#94A3B8;font-size:11px; }
.points-list { max-height:180px;overflow-y:auto; }
.points-row { display:flex;align-items:center;gap:10px;padding:6px 0;border-bottom:1px solid #F1F5F9;font-size:13px; }
.points-val { font-weight:800;width:42px; }
.points-val.plus { color:#10B981; }
.points-val.minus { color:#EF4444; }
.points-reason { flex:1;color:#334155; }
.points-meta { color:#94A3B8;font-size:11px; }

/* 飘分动画 */
.point-fly { position:fixed;top:40%;left:50%;transform:translateX(-50%);font-size:48px;font-weight:900;z-index:9999;pointer-events:none;animation:flyUp 1.2s ease-out forwards;text-shadow:0 2px 8px rgba(0,0,0,.2); }
.point-fly.plus { color:#10B981; }
.point-fly.minus { color:#EF4444; }
@keyframes flyUp { 0%{opacity:0;transform:translate(-50%,20px) scale(.5);} 20%{opacity:1;transform:translate(-50%,0) scale(1.2);} 100%{opacity:0;transform:translate(-50%,-120px) scale(1);} }

/* 错题档案 */
.wrong-stats { display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:12px; }
.ws-item { text-align:center;background:#F8FAFC;border-radius:10px;padding:10px; }
.ws-num { font-size:24px;font-weight:800;color:#2563EB; }
.ws-label { font-size:11px;color:#64748B; }
.wrong-upload { display:grid;grid-template-columns:180px 1fr;gap:14px;background:#F8FAFC;border-radius:12px;padding:14px;margin-bottom:12px; }
.wrong-img-drop { position:relative;border:2px dashed #CBD5E1;border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;min-height:140px;background:#fff;transition:all .15s;outline:none;padding:12px; }
.wrong-img-drop:hover,.wrong-img-drop:focus { border-color:#2563EB;background:#EFF6FF; }
.wrong-img-drop.drag-over { border-color:#2563EB;background:#DBEAFE;transform:scale(1.01); }
.wrong-img-icon { font-size:32px; }
.wrong-img-preview { max-width:100%;max-height:130px;border-radius:8px;object-fit:contain; }
.wrong-img-text { font-size:12px;color:#64748B;text-align:center;margin-top:6px;line-height:1.5; }
.wrong-img-ai { margin-top:10px;background:linear-gradient(90deg,#2563EB,#7C3AED);color:#fff;border:none;border-radius:20px;padding:6px 16px;font-size:12px;font-weight:600;cursor:pointer; }
.wrong-img-ai:hover:not([disabled]) { box-shadow:0 3px 10px rgba(124,58,237,.4); }
.wrong-img-ai[disabled] { opacity:.6;cursor:wait; }
.form-row { margin-bottom:8px; }
.form-row label { display:block;font-size:12px;color:#475569;margin-bottom:3px;font-weight:600; }
.form-row-2 { display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:8px; }
.form-row-2 label { display:block;font-size:12px;color:#475569;margin-bottom:3px;font-weight:600; }
.wrong-list { display:flex;flex-direction:column;gap:8px; }
.wrong-item { display:flex;gap:12px;background:#fff;border:1px solid #E2E8F0;border-radius:10px;padding:10px; }
.wrong-item.mastered { opacity:.6;background:#F0FDF4; }
.wrong-thumb { width:64px;height:64px;object-fit:cover;border-radius:8px;border:1px solid #E2E8F0;flex-shrink:0; }
.wrong-body { flex:1;min-width:0; }
.wrong-q { font-size:13px;color:#0F172A;font-weight:600; }
.wrong-meta { display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:11px;margin-top:4px; }
.wrong-reason { font-size:12px;color:#B45309;margin-top:4px; }
.wrong-actions { display:flex;gap:6px;margin-top:6px; }

/* 成绩/试卷 */
.exam-toolbar { margin-bottom:10px;display:flex;gap:8px; }
.exam-table { width:100%;border-collapse:collapse;font-size:13px; }
.exam-table th, .exam-table td { padding:8px 10px;border-bottom:1px solid #E2E8F0;text-align:left; }
.exam-table th { background:#F8FAFC;color:#475569;font-weight:700; }
.class-analysis-overlay { position:fixed;inset:0;background:rgba(15,23,42,.55);z-index:2000;display:flex;align-items:center;justify-content:center;padding:20px; }
.class-analysis-modal, .group-board-modal { background:#fff;border-radius:16px;max-width:1000px;width:94vw;max-height:90vh;overflow-y:auto;padding:20px 24px;box-shadow:0 20px 60px rgba(0,0,0,.3); }
.ca-head { display:flex;justify-content:space-between;align-items:center;margin-bottom:14px; }
.ca-stat-row { display:grid;grid-template-columns:repeat(6,1fr);gap:10px;margin-bottom:16px; }
.ca-stat { background:#F8FAFC;border-radius:10px;padding:12px;text-align:center; }
.ca-num { font-size:22px;font-weight:800;color:#2563EB; }
.ca-label { font-size:11px;color:#64748B;margin-top:2px; }
.ca-charts { display:grid;grid-template-columns:1fr 1fr;gap:16px; }
.ca-chart-box { background:#F8FAFC;border-radius:12px;padding:12px; }
.ca-chart-title { font-size:13px;font-weight:700;color:#334155;margin-bottom:8px; }

/* 小组计分板全屏 */
.group-board-modal { max-width:1100px; }
.gb-grid { display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px; }
.gb-card { border:3px solid;border-radius:14px;overflow:hidden;background:#fff; }
.gb-head { padding:12px;color:#fff;display:flex;justify-content:space-between;align-items:center; }
.gb-name-input { background:rgba(255,255,255,.25);border:none;color:#fff;font-weight:800;font-size:15px;border-radius:6px;padding:4px 8px;width:110px; }
.gb-score { font-size:34px;font-weight:900; }
.gb-score.bump { animation:bump .25s ease; }
@keyframes bump { 0%{transform:scale(1);}50%{transform:scale(1.3);}100%{transform:scale(1);} }
.gb-members { padding:10px;display:flex;flex-wrap:wrap;gap:6px; }
.gb-member { display:inline-flex;align-items:center;gap:4px;font-size:12px;background:#F1F5F9;border-radius:14px;padding:3px 8px 3px 3px; }
.gb-member img, .gb-ava { width:22px;height:22px;border-radius:50%;object-fit:cover; }
.gb-ava { display:inline-flex;align-items:center;justify-content:center;color:#fff;font-weight:700;font-size:11px; }
.gb-actions { display:flex;gap:6px;padding:0 10px 12px;flex-wrap:wrap; }
.gb-actions .btn { flex:1;padding:6px;font-size:12px; }

@media (max-width: 900px) {
  .classroom-seats { grid-template-columns: repeat(3, 1fr); }
  .wrong-upload { grid-template-columns:1fr; }
  .ca-charts { grid-template-columns:1fr; }
  .ca-stat-row { grid-template-columns:repeat(3,1fr); }
  .sp-stat-row, .wrong-stats { grid-template-columns:repeat(2,1fr); }
}

/* ==================== 智慧教室·随机提问 ==================== */
.seat.rolling .seat-desk {
  outline: 4px solid #EF4444;
  outline-offset: 3px;
  animation: seatRoll .12s linear infinite;
  z-index: 5;
}
@keyframes seatRoll {
  0%{ transform: rotateX(8deg) scale(1); }
  50%{ transform: rotateX(8deg) scale(1.12); }
  100%{ transform: rotateX(8deg) scale(1); }
}
.seat.chosen .seat-desk {
  outline: 4px solid #FBBF24;
  outline-offset: 4px;
  box-shadow: 0 0 0 8px rgba(251,191,36,.35), 0 5px 0 #92400E, 0 0 30px rgba(251,191,36,.6);
  animation: seatChosen .8s ease;
  z-index: 6;
}
@keyframes seatChosen {
  0%{ transform: rotateX(8deg) scale(1); }
  40%{ transform: rotateX(8deg) scale(1.2); }
  100%{ transform: rotateX(8deg) scale(1); }
}

.cr-roll-overlay {
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(15,23,42,.55);
  display: flex; align-items: center; justify-content: center;
  animation: rollFadeIn .2s ease;
}
@keyframes rollFadeIn { from{opacity:0;} to{opacity:1;} }
.cr-roll-card {
  background: #fff; border-radius: 20px; padding: 36px 48px; text-align: center;
  box-shadow: 0 24px 70px rgba(0,0,0,.35);
  min-width: 340px; max-width: 90vw;
  animation: rollPop .3s cubic-bezier(.2,1.4,.4,1);
}
@keyframes rollPop { from{transform:scale(.7);opacity:0;} to{transform:scale(1);opacity:1;} }
.rolling-card .cr-roll-big-name { color: #2563EB; animation: rollNameBlink .12s linear infinite; }
@keyframes rollNameBlink { 0%{opacity:.4;} 100%{opacity:1;} }
.cr-roll-tip { font-size: 15px; color: #64748B; margin-bottom: 14px; font-weight: 600; }
.cr-roll-avatar { width: 110px; height: 110px; border-radius: 50%; overflow: hidden; margin: 0 auto 16px; border: 5px solid #FCD34D; box-shadow: 0 8px 20px rgba(245,158,11,.35); }
.cr-roll-avatar img { width: 100%; height: 100%; object-fit: cover; }
.cr-roll-fallback { width:100%; height:100%; display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,#3B82F6,#1D4ED8); color:#fff; font-size:44px; font-weight:800; }
.cr-roll-big-name { font-size: 42px; font-weight: 900; color: #DC2626; margin: 6px 0; }
.cr-roll-sub { font-size: 14px; color: #64748B; margin-bottom: 22px; }
.cr-roll-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.cr-roll-overlay.result { background: rgba(15,23,42,.65); }

/* ==================== 班级成绩分析 ==================== */
.gr-panel-head { display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap;margin-bottom:14px; }
.gr-body { display:grid;grid-template-columns:minmax(280px,1fr) minmax(300px,1.2fr);gap:16px; }
.gr-score-box, .gr-chart-box { background:#F8FAFC;border-radius:12px;padding:12px 14px; }
.gr-box-title { font-size:13px;font-weight:700;color:#334155;margin-bottom:8px;display:flex;justify-content:space-between;align-items:center; }
.gr-box-title span { font-weight:400;font-size:11px; }
.gr-table-wrap { max-height:320px;overflow-y:auto; }
.gr-table { width:100%;border-collapse:collapse;font-size:13px; }
.gr-table th { position:sticky;top:0;background:#F1F5F9;color:#475569;font-weight:700;padding:6px 8px;text-align:left;z-index:1; }
.gr-table td { padding:5px 8px;border-bottom:1px solid #E2E8F0; }
.gr-name-cell { cursor:pointer; }
.gr-name { color:#2563EB;font-weight:600; }
.gr-name:hover { text-decoration:underline; }
.gr-pct { font-weight:800;font-size:13px; }
.gr-score-input { width:80px;padding:4px 8px !important; font-size:13px !important; }
.gr-note-input { width:100%;min-width:180px;padding:5px 8px !important;font-size:12px !important;line-height:1.5;resize:vertical;font-family:inherit; }
.gr-mistakes-box { background:#FEF2F2;border:1px solid #FECACA;border-radius:10px;padding:12px 14px;margin-top:14px; }
.gr-mistakes-box .gr-box-title { color:#B91C1C; }
.gr-mistakes-box textarea { background:#fff; }

.vol-box { background:linear-gradient(135deg,#EFF6FF,#F0F9FF);border:1px solid #BFDBFE;border-radius:12px;padding:14px 16px; }
.vol-head { display:flex;align-items:center;gap:10px;margin-bottom:12px; }
.vol-avatar { width:40px;height:40px;border-radius:50%;overflow:hidden;background:#2563EB;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700;flex-shrink:0; }
.vol-avatar img { width:100%;height:100%;object-fit:cover; }
.vol-stats { display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:12px; }
.vol-stat { background:#fff;border-radius:10px;padding:8px;text-align:center; }
.vol-num { font-size:20px;font-weight:800;color:#2563EB; }
.vol-lbl { font-size:11px;color:#64748B;margin-top:2px; }

/* 学生端·综合学情分析 */
.sf-tabs { display:flex;gap:6px;border-bottom:1px solid #E2E8F0;margin:-4px -4px 16px;padding:0 4px;flex-wrap:wrap; }
.sf-tab { padding:10px 16px;border:none;background:transparent;cursor:pointer;font-size:14px;color:#64748B;border-bottom:2px solid transparent;font-weight:600;transition:all .15s;white-space:nowrap; }
.sf-tab:hover { color:#2563EB; }
.sf-tab.active { color:#2563EB;border-bottom-color:#2563EB; }
.sf-pane { min-height:120px; }
.sf-obs-item { background:#F8FAFC;border-radius:10px;padding:12px 14px;margin-bottom:10px; }
.sf-obs-head { display:flex;justify-content:space-between;align-items:center;margin-bottom:6px; }
.sf-obs-tag { font-size:12px;font-weight:700;padding:3px 10px;border-radius:10px; }
.sf-obs-date { font-size:12px;color:#94A3B8; }
.sf-obs-content { font-size:14px;color:#334155;line-height:1.7; }
.sf-summary-item { border:1px solid #E2E8F0;border-radius:10px;padding:14px 16px;margin-bottom:10px;background:linear-gradient(135deg,#EFF6FF,#F0F9FF); }
.sf-summary-head { display:flex;justify-content:space-between;align-items:center;margin-bottom:8px; }
.sf-summary-head b { color:#1E293B; }
.sf-summary-content { font-size:14px;color:#334155;line-height:1.8;white-space:pre-wrap; }
.sr-hero { display:flex;gap:16px;align-items:center;background:linear-gradient(135deg,#2563EB,#3B82F6);color:#fff;border-radius:14px;padding:18px 20px;margin-bottom:16px; }
.sr-hero-left img, .sr-hero-ava { width:56px;height:56px;border-radius:50%;object-fit:cover;border:3px solid rgba(255,255,255,.6);background:rgba(255,255,255,.2);display:flex;align-items:center;justify-content:center;font-size:24px;font-weight:700; }
.sr-hero-right h3 { margin:0 0 6px;font-size:18px; }
.sr-hero-meta { font-size:13px;opacity:.95;margin-bottom:6px; }
.sr-hero-tip { font-size:13px;line-height:1.6;opacity:.92; }
.sr-stat-row { display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:16px; }
.sr-stat { background:#F8FAFC;border:1px solid #E2E8F0;border-radius:10px;padding:14px;text-align:center; }
.sr-num { font-size:24px;font-weight:800;color:#1E293B; }
.sr-lbl { font-size:12px;color:#64748B;margin-top:4px; }
.sr-section { margin-bottom:18px; }
.sr-section-title { font-size:14px;font-weight:700;color:#1E293B;margin-bottom:10px; }
.sr-subj { display:flex;align-items:center;gap:10px;margin-bottom:8px; }
.sr-subj-name { width:56px;font-size:13px;color:#475569;font-weight:600; }
.sr-bar { flex:1;height:10px;background:#F1F5F9;border-radius:5px;overflow:hidden; }
.sr-bar-fill { height:100%;border-radius:5px;transition:width .4s; }
.sr-subj-val { width:54px;text-align:right;font-size:13px;font-weight:700; }
.sr-loss-item { background:#FFFBEB;border:1px solid #FDE68A;border-radius:10px;padding:12px 14px;margin-bottom:8px; }
.sr-loss-head { display:flex;justify-content:space-between;margin-bottom:6px;font-size:13px;color:#1E293B; }
.sr-loss-score { color:#B45309;font-weight:700; }
.sr-loss-personal, .sr-loss-class { font-size:13px;color:#475569;line-height:1.7;margin-top:4px; }
.sr-loss-personal span { color:#D97706;font-weight:600; }
.sr-loss-class span { color:#DC2626;font-weight:600; }
.sr-empty { color:#94A3B8;font-size:13px;text-align:center;padding:18px;background:#F8FAFC;border-radius:8px; }

/* 智能学情总结弹窗 */
.dossier-bar { display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:#F8FAFC;border:1px solid #E2E8F0;border-radius:10px;padding:10px 12px;margin-bottom:14px; }
.dossier-bar label { font-size:13px;color:#475569;font-weight:600; }
.dossier-bar input[type=date] { width:150px;padding:6px 10px !important;font-size:13px !important; }
.dossier-bar span { color:#94A3B8; }
.dossier-insights { background:linear-gradient(135deg,#EFF6FF,#F5F3FF);border:1px solid #DBEAFE;border-radius:12px;padding:16px 18px;margin-bottom:14px; }
.dossier-insights p { margin:0 0 10px;font-size:14px;line-height:1.8;color:#334155; }
.dossier-insights p:last-child { margin-bottom:0; }
.dossier-actions-bar { display:flex;gap:10px;flex-wrap:wrap;margin-bottom:12px; }
.dossier-preview { background:#0F172A;border-radius:10px;padding:0;overflow:hidden; }
.dossier-preview summary { cursor:pointer;padding:10px 14px;color:#E2E8F0;font-size:13px;font-weight:600;user-select:none; }
.dossier-preview summary:hover { background:#1E293B; }
.dossier-preview pre { margin:0;padding:14px 16px;max-height:360px;overflow:auto;color:#CBD5E1;font-size:12px;line-height:1.7;white-space:pre-wrap;word-break:break-word;font-family:"SF Mono",Menlo,Consolas,monospace;border-top:1px solid #1E293B; }

@media (max-width: 900px) {
  .gr-body { grid-template-columns:1fr; }
  .vol-stats { grid-template-columns:repeat(2,1fr); }
  .sr-stat-row { grid-template-columns:repeat(2,1fr); }
}

/* 测试录入·保存按钮条 */
.gr-save-bar { display:flex;align-items:center;gap:14px;margin-top:14px;padding-top:14px;border-top:1px dashed #E2E8F0;flex-wrap:wrap; }
.gr-save-bar .btn-primary { padding:10px 22px;font-size:15px; }
.gr-save-hint { font-size:12px;color:#94A3B8; }

/* 智能学情总结弹窗 */
#dossier-modal .dossier-bar { display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:#F8FAFC;border-radius:10px;padding:12px 14px;margin-bottom:16px; }
#dossier-modal .dossier-bar label { font-size:13px;color:#475569;font-weight:600; }
#dossier-modal .dossier-bar .form-input { width:auto;min-width:130px;padding:6px 10px; }
#dossier-modal .dossier-insights { background:linear-gradient(135deg,#EFF6FF,#F0FDF4);border:1px solid #BFDBFE;border-radius:12px;padding:16px 18px;margin-bottom:16px; }
#dossier-modal .dossier-insights p { margin:0 0 10px;line-height:1.7;font-size:14px;color:#1E293B; }
#dossier-modal .dossier-insights p:last-child { margin-bottom:0; }
#dossier-modal .dossier-actions-bar { display:flex;gap:12px;flex-wrap:wrap;margin-bottom:14px; }
#dossier-modal .dossier-preview { background:#0F172A;color:#E2E8F0;border-radius:10px;padding:12px 14px; }
#dossier-modal .dossier-preview summary { cursor:pointer;font-size:13px;color:#93C5FD;margin-bottom:8px;outline:none; }
#dossier-modal .dossier-preview pre { white-space:pre-wrap;word-break:break-word;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;line-height:1.6;max-height:260px;overflow:auto;margin:0; }

/* ========== 月度学习报告 ========== */
.report-hero{background:linear-gradient(135deg,#EFF6FF,#F5F3FF);border:1px solid #DBEAFE;border-radius:16px;padding:24px;margin-bottom:8px;}
.report-hero-head{display:flex;align-items:center;gap:10px;margin-bottom:16px;}
.report-hero-head h3{margin:0;font-size:22px;color:#1E293B;}
.report-badge{background:#2563EB;color:#fff;font-size:12px;padding:4px 12px;border-radius:20px;font-weight:600;}
.report-hero-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:16px;}
.report-stat{background:#fff;border-radius:12px;padding:14px;box-shadow:0 1px 3px rgba(0,0,0,.05);}
.rs-label{font-size:12px;color:#64748B;margin-bottom:6px;}
.rs-value{font-size:24px;font-weight:700;color:#1E293B;line-height:1.1;}
.rs-delta{margin-top:6px;font-size:12px;}
.rdelta{display:inline-block;padding:2px 8px;border-radius:10px;font-size:12px;font-weight:600;}
.rdelta.pos{background:#DCFCE7;color:#15803D;}
.rdelta.neg{background:#FEE2E2;color:#B91C1C;}
.rdelta.flat{background:#F1F5F9;color:#64748B;}
.report-warnings{display:flex;flex-direction:column;gap:8px;margin-bottom:16px;}
.rw-item{display:flex;gap:10px;align-items:flex-start;padding:10px 14px;border-radius:10px;font-size:14px;}
.rw-item.rw-danger{background:#FEF2F2;border-left:4px solid #EF4444;color:#991B1B;}
.rw-item.rw-warn{background:#FFFBEB;border-left:4px solid #F59E0B;color:#92400E;}
.rw-item.rw-info{background:#EFF6FF;border-left:4px solid #3B82F6;color:#1E40AF;}
.report-summary{background:#fff;border-radius:12px;padding:16px 18px;margin-bottom:16px;}
.report-summary p{margin:0 0 8px;line-height:1.7;font-size:14px;color:#334155;}
.report-summary p:last-child{margin-bottom:0;}
.report-history{display:flex;flex-direction:column;gap:10px;}
.rh-card{position:relative;background:#fff;border:1px solid #E2E8F0;border-radius:12px;padding:14px 36px 14px 18px;cursor:pointer;transition:all .2s;display:flex;flex-direction:column;gap:6px;}
.rh-card:hover{border-color:#2563EB;box-shadow:0 4px 12px rgba(37,99,235,.12);transform:translateY(-1px);}
.rh-title{font-weight:700;font-size:15px;color:#1E293B;}
.rh-meta{display:flex;gap:16px;flex-wrap:wrap;font-size:13px;color:#64748B;}
.rh-meta b{color:#1E293B;}
.rh-flag{position:absolute;top:14px;right:40px;font-size:12px;font-weight:600;}
.rh-arrow{position:absolute;right:14px;top:50%;transform:translateY(-50%);font-size:22px;color:#CBD5E1;}
.section-title{font-size:16px;font-weight:700;color:#1E293B;}

/* 月报详情弹窗 */
.mr-head{margin-bottom:14px;}
.mr-head h3{margin:0 0 4px;font-size:20px;color:#1E293B;}
.mr-range{font-size:12px;color:#94A3B8;}
.mr-summary{background:linear-gradient(135deg,#EFF6FF,#F0FDF4);border-radius:12px;padding:16px 18px;margin-bottom:16px;}
.mr-summary p{margin:0 0 8px;line-height:1.7;font-size:14px;color:#334155;}
.mr-summary p:last-child{margin:0;}
.mr-change{background:#fff;border:1px solid #E2E8F0;border-radius:12px;padding:14px 16px;margin-bottom:16px;}
.mr-change h4{margin:0 0 12px;font-size:15px;color:#1E293B;}
.mr-change-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px;}
.mcc{border-radius:10px;padding:12px;text-align:center;}
.mcc-label{font-size:12px;color:#64748B;margin-bottom:6px;}
.mcc-val{font-size:16px;font-weight:700;}
.mcc.good{background:#DCFCE7;color:#15803D;}
.mcc.bad{background:#FEE2E2;color:#B91C1C;}
.mcc.flat{background:#F1F5F9;color:#475569;}
.mr-section{background:#fff;border:1px solid #E2E8F0;border-radius:12px;padding:14px 16px;margin-bottom:14px;}
.mr-section h4{margin:0 0 12px;font-size:15px;color:#1E293B;}
.mr-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;}
.mr-obs{margin:0;padding-left:18px;font-size:13px;line-height:1.8;color:#475569;max-height:240px;overflow:auto;}
.mr-wrong{font-size:13px;color:#475569;line-height:1.8;}
.mr-admin-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px;}
@media(max-width:768px){.report-hero-stats{grid-template-columns:repeat(2,1fr);}.mr-grid{grid-template-columns:1fr;}}

/* ========== 工作台学情预警 ========== */
.warning-panel .wp-card{background:#fff;border-radius:14px;padding:18px;box-shadow:0 1px 3px rgba(0,0,0,.06);border-top:4px solid #F59E0B;}
.warning-panel .wp-ok{border-top-color:#10B981;text-align:center;color:#059669;font-weight:600;padding:16px;background:#F0FDF4;}
.wp-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px;}
.wp-head>span:first-child{font-size:17px;font-weight:700;color:#1E293B;}
.wp-count{font-size:13px;color:#64748B;}
.wp-count b{color:#DC2626;font-size:16px;}
.wp-group{margin-bottom:12px;}
.wp-group:last-child{margin-bottom:0;}
.wp-group-title{font-size:13px;font-weight:700;margin-bottom:8px;padding-left:4px;}
.wp-group-title.danger{color:#B91C1C;}
.wp-group-title.warn{color:#B45309;}
.wp-row{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:10px;margin-bottom:6px;}
.wp-row.wp-danger{background:#FEF2F2;}
.wp-row.wp-warn{background:#FFFBEB;}
.wp-dot{font-size:18px;}
.wp-main{flex:1;min-width:0;}
.wp-cls{font-size:12px;color:#94A3B8;margin-left:6px;}
.wp-text{font-size:13px;color:#475569;margin-top:2px;}

/* ========== 教师考核仪表盘 ========== */
.tad-hero{background:linear-gradient(135deg,#1E293B,#2563EB);border-radius:16px;padding:24px;color:#fff;display:flex;justify-content:space-between;align-items:center;gap:24px;flex-wrap:wrap;margin-bottom:20px;}
.tad-hero-title h2{margin:0 0 6px;font-size:22px;}
.tad-hero-title p{margin:0;opacity:.85;font-size:13px;}
.tad-summary{display:flex;gap:12px;}
.tad-sum{background:rgba(255,255,255,.15);backdrop-filter:blur(6px);border-radius:12px;padding:12px 18px;text-align:center;min-width:88px;}
.tad-sum .num{font-size:26px;font-weight:800;line-height:1;}
.tad-sum .lbl{font-size:12px;opacity:.85;margin-top:4px;}
.tad-sum.good{background:rgba(16,185,129,.35);}
.tad-sum.danger{background:rgba(239,68,68,.35);}
.tad-section-title{font-size:16px;font-weight:700;color:#1E293B;margin:18px 0 12px;}
.tad-podium-stage{display:flex;justify-content:center;align-items:flex-end;gap:20px;padding:24px 16px 8px;background:#F8FAFC;border-radius:14px;margin-bottom:20px;}
.tad-podium-item{text-align:center;width:160px;}
.tad-podium-name{font-weight:700;font-size:15px;margin-bottom:6px;}
.tad-podium-score{display:inline-block;padding:6px 16px;border-radius:20px;font-weight:800;font-size:18px;margin-bottom:10px;}
.tad-podium-score span{font-size:12px;font-weight:500;margin-left:2px;}
.tad-podium-bar{margin:0 auto;border-radius:8px 8px 0 0;display:flex;align-items:center;justify-content:center;font-size:28px;font-weight:800;color:#fff;box-shadow:inset 0 2px 6px rgba(255,255,255,.4);}
.tad-podium-item:nth-child(1) .tad-podium-bar{background:linear-gradient(180deg,#FBBF24,#D97706);width:130px;}
.tad-podium-item:nth-child(2) .tad-podium-bar{background:linear-gradient(180deg,#94A3B8,#64748B);width:110px;}
.tad-podium-item:nth-child(3) .tad-podium-bar{background:linear-gradient(180deg,#D97706,#92400E);width:100px;}
.tad-two-col{display:grid;grid-template-columns:1fr 1fr;gap:18px;}
.tad-list{display:flex;flex-direction:column;gap:10px;}
.tad-card{display:flex;align-items:center;gap:14px;background:#fff;border:1px solid #E2E8F0;border-radius:12px;padding:14px 16px;cursor:pointer;transition:all .2s;}
.tad-card:hover{transform:translateY(-2px);box-shadow:0 6px 16px rgba(0,0,0,.08);}
.tad-card-good{border-left:4px solid #10B981;}
.tad-card-warn{border-left:4px solid #F59E0B;}
.tad-card-bad{border-left:4px solid #EF4444;}
.tad-rank{width:34px;height:34px;border-radius:50%;background:#2563EB;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;flex-shrink:0;}
.tad-card-good .tad-rank{background:#10B981;}
.tad-info{flex:1;min-width:0;}
.tad-name{font-weight:700;color:#1E293B;}
.tad-sub{font-size:12px;color:#64748B;font-weight:400;}
.tad-desc{font-size:12px;color:#64748B;margin-top:4px;}
.tad-score{font-size:24px;font-weight:800;min-width:54px;text-align:center;}
.tad-empty{padding:24px;text-align:center;color:#94A3B8;background:#F8FAFC;border-radius:12px;}
.tad-empty-good{background:#F0FDF4;color:#059669;}
.tad-table .tad-grade{display:inline-block;padding:2px 10px;border-radius:10px;font-weight:700;font-size:12px;color:#fff;}
.tad-grade-a{background:#10B981;}
.tad-grade-b{background:#3B82F6;}
.tad-grade-c{background:#F59E0B;}
.tad-grade-d{background:#EF4444;}
.tad-row-good{background:#F0FDF4;}
.tad-row-bad{background:#FEF2F2;}
.tad-legend{display:flex;gap:18px;flex-wrap:wrap;margin-top:12px;font-size:12px;color:#64748B;align-items:center;}
.tad-legend .dot{display:inline-block;width:12px;height:12px;border-radius:50%;margin-right:5px;vertical-align:middle;}
.dot-a{background:#10B981;} .dot-b{background:#3B82F6;} .dot-c{background:#F59E0B;} .dot-d{background:#EF4444;}

/* 教师考核详情弹窗 */
.ta-hero{display:flex;justify-content:space-between;align-items:center;gap:16px;background:linear-gradient(135deg,#EFF6FF,#F0FDF4);border:1px solid #BFDBFE;border-radius:14px;padding:18px 20px;margin-bottom:16px;}
.ta-name-big{font-size:22px;font-weight:800;color:#1E293B;}
.ta-sub-big{font-size:13px;color:#64748B;margin-top:4px;}
.ta-total{width:84px;height:84px;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#fff;box-shadow:0 4px 12px rgba(0,0,0,.15);}
.ta-total.ta-grade-a,.ta-total.tad-grade-a{background:linear-gradient(135deg,#34D399,#059669);}
.ta-total.ta-grade-b,.ta-total.tad-grade-b{background:linear-gradient(135deg,#60A5FA,#2563EB);}
.ta-total.ta-grade-c,.ta-total.tad-grade-c{background:linear-gradient(135deg,#FBBF24,#D97706);}
.ta-total.ta-grade-d,.ta-total.tad-grade-d{background:linear-gradient(135deg,#F87171,#DC2626);}
.ta-total-num{font-size:28px;font-weight:800;line-height:1;}
.ta-total-lbl{font-size:12px;margin-top:2px;}
.ta-insights{background:#fff;border:1px solid #E2E8F0;border-radius:12px;padding:14px 18px;margin-bottom:16px;}
.ta-insights p{margin:0 0 8px;line-height:1.75;font-size:14px;color:#334155;}
.ta-insights p:last-child{margin:0;}
.ta-section-title{font-size:15px;font-weight:700;color:#1E293B;margin:14px 0 10px;}
.ta-metrics{display:grid;grid-template-columns:1fr 1fr;gap:10px 18px;margin-bottom:16px;}
.ta-metric{display:grid;grid-template-columns:90px 1fr 40px;align-items:center;gap:10px;}
.ta-m-l{font-size:13px;color:#475569;}
.ta-m-v{font-size:13px;font-weight:600;color:#1E293B;text-align:right;}
.ta-m-bar{grid-column:1/4;height:8px;background:#F1F5F9;border-radius:6px;overflow:hidden;}
.ta-m-fill{height:100%;background:linear-gradient(90deg,#3B82F6,#10B981);border-radius:6px;transition:width .4s;}
.ta-m-s{grid-column:1/4;font-size:11px;color:#94A3B8;margin-top:-6px;}
.ta-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;}
.ta-class-list{display:flex;flex-direction:column;gap:8px;}
.ta-class{background:#F8FAFC;border-radius:10px;padding:10px 14px;display:flex;justify-content:space-between;align-items:center;font-size:14px;}
.ta-class span{font-size:12px;color:#64748B;}
.ta-empty{font-size:13px;color:#94A3B8;padding:12px;background:#F8FAFC;border-radius:10px;text-align:center;}
/* 考核弹窗表格白底，防止透明透出底层表格文字 */
.ta-modal{max-width:1000px !important;}
.ta-modal .modal-body{background:#fff !important;}
.ta-modal table,.ta-modal thead,.ta-modal tbody,.ta-modal tr,.ta-modal td,.ta-modal th{background:#fff !important;}
.ta-modal thead th{background:#F1F5F9 !important;}
.ta-modal .cr-modal-body{max-height:78vh;overflow-y:auto;background:#fff !important;padding:0 !important;}
.ta-modal .ta-wrap{padding:4px 4px 8px;background:#fff;}
.ta-modal .data-table{width:100%;border-collapse:collapse;table-layout:fixed;}
.ta-modal .data-table th,.ta-modal .data-table td{padding:10px 8px;border-bottom:1px solid #E2E8F0;font-size:13px;line-height:1.5;word-break:break-word;}
.ta-modal .data-table thead th{position:sticky;top:0;z-index:2;}
.ta-modal .cr-modal-foot{background:#fff !important;}
.tad-period{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:14px;}
.tad-period label{font-size:13px;font-weight:600;color:#475569;}
.tad-period select{padding:6px 10px;border:1px solid #CBD5E1;border-radius:8px;font-size:14px;background:#fff;}
.tad-period .tad-period-hint{font-size:12px;color:#94A3B8;margin-left:4px;}
/* 班级结业考核 */
.ca-bonus-note{background:#EFF6FF;border:1px solid #BFDBFE;color:#1E40AF;padding:10px 14px;border-radius:10px;font-size:13px;margin-bottom:14px;}
.ca-gain{display:flex;align-items:center;justify-content:center;gap:24px;background:linear-gradient(135deg,#F0F9FF,#ECFDF5);border:1px solid #BAE6FD;border-radius:12px;padding:18px;margin:6px 0 16px;}
.ca-gain-item{text-align:center;}
.ca-gain-lbl{font-size:13px;color:#64748B;margin-bottom:6px;}
.ca-gain-val{font-size:30px;font-weight:800;color:#0F172A;}
.ca-arrow{font-size:15px;font-weight:700;color:#0369A1;background:#fff;padding:8px 14px;border-radius:20px;border:1px solid #BAE6FD;}
.ca-wrap .ta-total-num{font-size:30px;}
.ca-handover{display:flex;flex-direction:column;gap:8px;margin-bottom:14px;}
.ca-handover-row{display:flex;align-items:center;gap:12px;padding:10px 14px;background:#F8FAFC;border:1px solid #E2E8F0;border-radius:10px;font-size:13px;}
.ca-handover-row.cur{background:#ECFDF5;border-color:#A7F3D0;}
.ca-h-name{font-weight:700;color:#0F172A;min-width:90px;}
.ca-h-range{color:#475569;flex:1;}
.ca-h-badge{font-size:11px;padding:2px 10px;border-radius:10px;background:#059669;color:#fff;}
.ca-h-badge.past{background:#CBD5E1;color:#475569;}

/* 独立教师考核页 */
.assess-explain{padding:14px 18px;background:#EFF6FF;border:1px solid #BFDBFE;border-radius:10px;}
.assess-explain .ae-title{font-weight:700;color:#1D4ED8;margin-bottom:6px;}
.assess-explain .ae-text{font-size:13px;color:#334155;line-height:1.7;}
#ta-page-body td .btn-sm{padding:3px 10px;}
@media(max-width:768px){.tad-hero{flex-direction:column;align-items:stretch;}.tad-summary{justify-content:space-between;}.tad-sum{flex:1;}.tad-two-col,.ta-grid,.ta-metrics{grid-template-columns:1fr;}.tad-podium-stage{gap:10px;}.tad-podium-item{width:auto;}.ca-gain{flex-direction:column;gap:12px;}}

/* ========== 异常处理中心 ========== */
.exc-card-clickable{cursor:pointer;transition:transform .15s ease,box-shadow .15s ease;}
.exc-card-clickable:hover{transform:translateY(-2px);box-shadow:0 6px 16px rgba(37,99,235,.18);}
.exc-card-clickable:active{transform:translateY(0);}
.exc-tabs{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:18px;}
.exc-tab{display:inline-flex;align-items:center;gap:6px;padding:9px 16px;border:1px solid #E2E8F0;background:#fff;border-radius:10px;font-size:14px;color:#475569;cursor:pointer;transition:all .15s;}
.exc-tab:hover{border-color:#93C5FD;color:#1D4ED8;}
.exc-tab.active{background:#2563EB;border-color:#2563EB;color:#fff;box-shadow:0 2px 8px rgba(37,99,235,.25);}
.exc-badge{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:#EF4444;color:#fff;font-size:12px;font-weight:600;}
.exc-tab.active .exc-badge{background:#fff;color:#2563EB;}
.exc-list{display:flex;flex-direction:column;gap:14px;}
.exc-item{background:#fff;border:1px solid #E2E8F0;border-left:4px solid #F59E0B;border-radius:12px;padding:16px 18px;box-shadow:0 1px 3px rgba(0,0,0,.05);transition:box-shadow .15s;}
.exc-item:hover{box-shadow:0 4px 12px rgba(0,0,0,.08);}
.exc-item[style*="border-left-color"]{}
.exc-item-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
.exc-dot{width:10px;height:10px;border-radius:50%;flex-shrink:0;}
.exc-item-title{font-size:15px;font-weight:600;color:#1E293B;}
.exc-item-date{margin-left:auto;font-size:12px;color:#94A3B8;}
.exc-item-desc{margin:8px 0 12px 20px;font-size:13px;color:#475569;line-height:1.6;}
.exc-subject{font-size:12px;padding:2px 8px;border-radius:6px;background:#DBEAFE;color:#1D4ED8;font-weight:500;}
.exc-status{font-size:12px;padding:2px 9px;border-radius:10px;font-weight:600;white-space:nowrap;}
.exc-status-open{background:#FEE2E2;color:#B91C1C;}
.exc-status-following{background:#FEF3C7;color:#B45309;}
.exc-status-resolved{background:#D1FAE5;color:#047857;}
.exc-followups{margin:0 0 12px 20px;background:#F8FAFC;border:1px solid #E2E8F0;border-radius:8px;padding:10px 12px;}
.exc-followups-title{font-size:12px;font-weight:600;color:#64748B;margin-bottom:8px;}
.exc-follow-item{position:relative;padding:6px 0 6px 14px;border-left:2px solid #BFDBFE;margin-left:4px;}
.exc-follow-item:before{content:'';position:absolute;left:-5px;top:10px;width:8px;height:8px;border-radius:50%;background:#2563EB;}
.exc-follow-by{font-size:12px;font-weight:600;color:#1D4ED8;}
.exc-follow-time{font-size:11px;color:#94A3B8;margin-left:8px;}
.exc-follow-note{font-size:13px;color:#334155;margin-top:2px;line-height:1.5;}
.exc-item-actions{display:flex;gap:8px;flex-wrap:wrap;margin-left:20px;}
.exc-item-actions .btn-sm{padding:5px 12px;font-size:13px;}
@media(max-width:768px){.exc-item-date{margin-left:0;width:100%;}.exc-item-desc,.exc-followups,.exc-item-actions{margin-left:0;}}
.acd-stu-list{display:flex;flex-wrap:wrap;gap:8px;}
.acd-stu-chip{display:inline-flex;align-items:center;gap:4px;padding:5px 11px;background:#F1F5F9;border:1px solid #E2E8F0;border-radius:16px;font-size:13px;color:#334155;cursor:pointer;transition:all .15s;}
.acd-stu-chip:hover{background:#DBEAFE;border-color:#93C5FD;color:#1D4ED8;}

/* ========== 课件中心 ========== */
.lesson-card-flash{animation:cwFlash 1.8s ease;}
@keyframes cwFlash{0%{box-shadow:0 0 0 0 rgba(37,99,235,.5);}30%{box-shadow:0 0 0 6px rgba(37,99,235,.18);}100%{box-shadow:0 1px 3px rgba(0,0,0,.08);}}
.cw-summary{display:flex;flex-wrap:wrap;gap:18px;align-items:center;background:#fff;border:1px solid #E2E8F0;border-radius:12px;padding:14px 18px;margin-bottom:18px;font-size:14px;color:#475569;box-shadow:0 1px 3px rgba(0,0,0,.05);}
.cw-summary-item b{color:#2563EB;font-size:16px;margin:0 2px;}
.cw-tip{margin-left:auto;font-size:12px;color:#94A3B8;}
.cw-group{background:#fff;border:1px solid #E2E8F0;border-radius:12px;margin-bottom:14px;overflow:hidden;box-shadow:0 1px 3px rgba(0,0,0,.05);}
.cw-group-head{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;padding:14px 18px;background:linear-gradient(90deg,#F8FAFC,#fff);border-bottom:1px solid #EEF2F7;}
.cw-group-title{display:flex;align-items:center;gap:10px;}
.cw-lesson-num{display:inline-flex;align-items:center;justify-content:center;min-width:52px;padding:3px 10px;border-radius:8px;background:#2563EB;color:#fff;font-size:13px;font-weight:600;}
.cw-lesson-name{font-size:15px;font-weight:600;color:#1E293B;}
.cw-lesson-state{font-size:12px;padding:2px 9px;border-radius:10px;font-weight:600;}
.cw-done{background:#D1FAE5;color:#047857;}
.cw-today{background:#DBEAFE;color:#1D4ED8;}
.cw-todo{background:#F1F5F9;color:#94A3B8;}
.cw-group-meta{display:flex;align-items:center;gap:14px;font-size:13px;color:#64748B;}
.cw-count{color:#94A3B8;}
.cw-goto{background:#EFF6FF;color:#1D4ED8;border:1px solid #BFDBFE;}
.cw-goto:hover{background:#DBEAFE;}
.cw-empty{padding:16px 18px;color:#94A3B8;font-size:13px;}
.cw-item{display:flex;align-items:center;gap:12px;padding:11px 18px;border-top:1px solid #F1F5F9;transition:background .12s;}
.cw-item:hover{background:#F8FAFC;}
.cw-icon{font-size:22px;width:34px;text-align:center;flex-shrink:0;}
.cw-info{flex:1;min-width:0;}
.cw-name{font-size:14px;color:#1E293B;font-weight:500;display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
.cw-tag{font-size:11px;padding:1px 8px;border-radius:6px;font-weight:600;}
.cw-sub{font-size:12px;color:#94A3B8;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:520px;}
.cw-url{font-family:ui-monospace,Menlo,monospace;font-size:11px;}
.cw-actions{display:flex;gap:6px;flex-shrink:0;}
@media(max-width:768px){.cw-tip{margin-left:0;width:100%;}.cw-group-head{flex-direction:column;align-items:stretch;}.cw-group-meta{justify-content:space-between;}.cw-sub{max-width:none;}}

/* 资源库选用弹窗筛选 */
.pick-filter-bar{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px;}
.pick-filter-bar .form-input{font-size:13px;padding:8px 10px;}
.pick-count{font-size:12px;color:#64748B;margin:2px 2px 8px;}
.pick-res-label{display:flex;gap:10px;align-items:flex-start;padding:11px 12px;border:1px solid #E2E8F0;border-radius:8px;margin-bottom:8px;cursor:pointer;transition:border-color .15s,background .15s;}
.pick-res-label:hover{border-color:#BFDBFE;background:#F8FAFC;}
.pick-res-label:has(input:checked){border-color:#2563EB;background:#EFF6FF;box-shadow:0 0 0 1px #2563EB inset;}

/* 班级报名学生弹窗 */
.enroll-row{display:flex;align-items:center;gap:10px;padding:10px 12px;border-bottom:1px solid #F1F5F9;cursor:pointer;transition:background .12s;}
.enroll-row:last-child{border-bottom:none;}
.enroll-row:hover{background:#F8FAFC;}
.enroll-row.on{background:#EFF6FF;}
.enroll-row.on b{color:#1D4ED8;}
.roster-course-tag{display:inline-block;padding:1px 8px;border-radius:8px;font-size:11px;font-weight:600;}
.enroll-cell{display:inline-flex;flex-wrap:wrap;cursor:pointer;}
.enroll-cell:hover .enroll-chip{background:#DBEAFE;}
.enroll-chip{display:inline-block;padding:1px 8px;border-radius:8px;background:#EFF6FF;color:#1D4ED8;font-size:11px;margin:1px 2px 1px 0;}
.points-cell{cursor:pointer;display:inline-block;}
.points-badge{display:inline-block;min-width:32px;text-align:center;padding:2px 10px;border-radius:10px;background:linear-gradient(135deg,#FBBF24,#F59E0B);color:#fff;font-weight:600;font-size:13px;}
.points-cell:hover .points-badge{box-shadow:0 2px 8px rgba(245,158,11,.4);}
#roster-matrix table{background:#fff;}
#roster-matrix th{font-weight:600;font-size:12px;}

/* 右上角修改密码按钮 */
.topbar-pwd-btn { position: fixed; top: 16px; right: 24px; z-index: 60; display:inline-flex; align-items:center; gap:5px;
  background:#fff; border:1px solid var(--border,#e2e8f0); color:var(--slate-600,#475569);
  padding:8px 14px; border-radius:999px; font-size:13px; font-weight:600; cursor:pointer;
  box-shadow:0 2px 10px rgba(15,23,42,.08); transition:all .18s; }
.topbar-pwd-btn:hover { border-color:var(--primary,#2563EB); color:var(--primary,#2563EB); box-shadow:0 4px 14px rgba(37,99,235,.18); }
.topbar-pwd-btn .tpw-text { font-size:13px; }
@media (max-width:768px){ .topbar-pwd-btn .tpw-text{ display:none; } .topbar-pwd-btn{ padding:8px 10px; } }

/* 统计报表 */
.mini-progress { position:relative; display:flex; align-items:center; gap:6px; min-width:120px; }
.mini-progress::before { content:''; flex:1; height:8px; background:#eef2f7; border-radius:99px; position:relative; overflow:hidden; }
.mini-progress-fill { position:absolute; left:0; top:50%; transform:translateY(-50%); height:8px; border-radius:99px; width:0; max-width:calc(100% - 42px); }
.mini-progress span { font-size:12px; font-weight:700; color:#475569; min-width:38px; text-align:right; }

/* ========== 课程管理表格（列宽固定，避免表头竖排/错位） ========== */
.table-scroll { width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch; }
.course-admin-table { min-width:980px; table-layout:fixed; }
.course-admin-table th,
.course-admin-table td {
  padding:12px 14px;
  vertical-align:middle;
  white-space:nowrap;
  font-size:14px;
}
.course-admin-table thead th { white-space:nowrap; text-align:left; }
/* 列宽：学科/教师/报名 较窄；课程名称/关联班级/进度/操作 较宽 */
.course-admin-table col.col-subject { width:72px; }
.course-admin-table col.col-name { width:210px; }
.course-admin-table col.col-teacher { width:96px; }
.course-admin-table col.col-classes { width:190px; }
.course-admin-table col.col-progress { width:150px; }
.course-admin-table col.col-enroll { width:88px; text-align:center; }
.course-admin-table col.col-actions { width:190px; }
.course-admin-table .cell-name {
  font-weight:600; color:#1E293B; display:block;
  white-space:normal; word-break:break-all; line-height:1.4;
}
.course-admin-table .cell-classes {
  white-space:normal; word-break:break-all; line-height:1.5;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.course-admin-table .cell-actions { white-space:nowrap; text-align:right; }
.course-admin-table .cell-actions .btn { margin:2px 0 2px 6px; }
/* 课次进度条（独立结构，不复用 .mini-progress） */
.course-lesson-progress { min-width:120px; }
.course-lesson-progress .clp-label { font-size:12px; color:#64748B; margin-bottom:4px; white-space:nowrap; }
.course-lesson-progress .clp-track { height:8px; border-radius:99px; background:#EEF2F7; overflow:hidden; }
.course-lesson-progress .clp-fill { height:100%; border-radius:99px; background:linear-gradient(90deg,#3B82F6,#2563EB); transition:width .3s; }
.course-admin-table .col-enroll-cell { text-align:center; }

.trend-up { color:#16a34a; font-weight:700; font-size:12px; white-space:nowrap; }
.trend-down { color:#dc2626; font-weight:700; font-size:12px; white-space:nowrap; }
.trend-flat { color:#64748b; font-size:12px; white-space:nowrap; }
.tag { display:inline-block; padding:2px 8px; border-radius:99px; font-size:11px; font-weight:600; }
.tag-green { background:#dcfce7; color:#15803d; }
.tag-gray { background:#f1f5f9; color:#64748b; }
.anomaly-list { display:flex; flex-direction:column; gap:8px; }
.anomaly-item { padding:10px 12px; border-radius:8px; font-size:13px; line-height:1.5; }
.anomaly-high { background:#fef2f2; border:1px solid #fecaca; color:#991b1b; }
.anomaly-mid { background:#fffbeb; border:1px solid #fde68a; color:#92400e; }

/* 菜单管理（拖拽排序） */
.menu-row { cursor: grab; transition: background .15s; }
.menu-row:hover { background: #F8FAFC; }
.menu-row.menu-fixed { cursor: default; color: #94A3B8; }

/* 课次内容操作工具条（管理端课程大纲） */
.lesson-content-toolbar {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 10px 12px; margin: 8px 18px;
  background: #F8FAFC; border: 1px dashed #CBD5E1; border-radius: 8px;
}
.lesson-content-toolbar .btn { font-weight: 600; }
.lesson-goal {
  font-size: 13px; color: #475569; line-height: 1.6;
  background: #FFFBEB; border-left: 3px solid #F59E0B;
  padding: 6px 10px; margin: 4px 0 8px; border-radius: 4px;
}
/* 侧边栏登录名可点击 */
a.user-info { text-decoration: none; color: inherit; cursor: pointer; display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
a.user-info:hover .user-avatar { box-shadow: 0 0 0 3px rgba(37,99,235,.18); }

/* ============ 健康度统计报表 ============ */
.health-metrics { display:grid; grid-template-columns:repeat(auto-fill,minmax(190px,1fr)); gap:12px; margin-bottom:18px; }
.metric-card { display:flex; gap:12px; align-items:center; background:#fff; border:1px solid #E2E8F0; border-radius:12px; padding:14px 16px; box-shadow:0 1px 3px rgba(15,23,42,.05); transition:all .18s; position:relative; overflow:hidden; }
.metric-card:hover { box-shadow:0 6px 18px rgba(15,23,42,.1); transform:translateY(-2px); border-color:#BFDBFE; }
.metric-emoji { font-size:26px; line-height:1; }
.metric-value { font-size:24px; font-weight:800; color:#0F172A; line-height:1.1; }
.metric-label { font-size:12px; color:#64748B; margin-top:2px; }
.metric-delta { font-size:11px; margin-top:3px; font-weight:700; }
.metric-delta.up { color:#16A34A; } .metric-delta.down { color:#DC2626; }
.metric-card.mc-green { border-left:4px solid #22C55E; }
.metric-card.mc-red { border-left:4px solid #EF4444; }
.metric-card.mc-orange { border-left:4px solid #F59E0B; }
.metric-card.mc-blue { border-left:4px solid #3B82F6; }
.metric-card.mc-purple { border-left:4px solid #8B5CF6; }
.chart-card-full { margin-bottom:18px; }
.chart-card-full h3 { font-size:15px; margin:0 0 10px; color:#1E293B; }
.chart-card-full canvas { width:100% !important; }
.chart-analysis { margin-top:10px; font-size:13px; color:#475569; background:#F8FAFC; border:1px dashed #CBD5E1; border-radius:8px; padding:10px 12px; line-height:1.7; }

/* ===== 统计图表固定高度容器（maintainAspectRatio:false 时必须给定父高，否则图表被无限拉长） ===== */
.chart-box { position:relative; height:300px; width:100%; }
.chart-box-sm { position:relative; height:260px; width:100%; }
.chart-box-lg { position:relative; height:300px; width:100%; }
.chart-box-xs { position:relative; height:220px; width:100%; }
.chart-card-full .chart-box canvas, .chart-card-full .chart-box-sm canvas,
.chart-card-full .chart-box-xs canvas { width:100% !important; height:100% !important; }
/* 全局图表兜底：maintainAspectRatio:false 时画布必须有固定高度，否则会被纵向无限拉长 */
.gr-chart-box canvas, .ca-chart-box canvas { height:240px !important; max-height:240px; width:100% !important; }
canvas[height] { display:block; }
.sr-section canvas { height:220px !important; max-height:220px; width:100% !important; }
#vol-canvas, #student-trend-canvas { height:200px !important; max-height:200px; width:100% !important; }
/* 未包固定高度容器的 Chart 画布统一限高，父级用固定高度 div 时不影响 */
.chart-box canvas, .chart-box-sm canvas, .chart-box-xs canvas, .chart-box-lg canvas { width:100% !important; height:100% !important; }
.chart-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom:18px; }
.chart-grid .card { margin:0; }
.chart-empty { display:flex; align-items:center; justify-content:center; height:100%; color:#94A3B8; font-size:13px; }
@media (max-width: 900px){ .chart-grid { grid-template-columns:1fr; } }

/* 测试录入：考试记录表格 */
.gr-exam-table { width:100%; border-collapse:collapse; font-size:13px; margin-bottom:14px; }
.gr-exam-table th { background:#F1F5F9; color:#334155; font-weight:600; text-align:left; padding:9px 10px; border-bottom:2px solid #E2E8F0; white-space:nowrap; }
.gr-exam-table td { padding:9px 10px; border-bottom:1px solid #EDF1F7; }
.gr-exam-table tbody tr { cursor:pointer; transition:background .15s; }
.gr-exam-table tbody tr:hover { background:#EFF6FF; }
.gr-exam-table tr.gr-exam-active { background:#DBEAFE; }
.gr-exam-table tr.gr-exam-active td { font-weight:600; color:#1E40AF; }
.btn-xs { padding:3px 10px; font-size:12px; border-radius:6px; }
.health-badge { display:inline-block; padding:2px 10px; border-radius:999px; font-size:12px; font-weight:700; white-space:nowrap; }
.health-badge.h-good { color:#15803D; background:#DCFCE7; }
.health-badge.h-ok { color:#65A30D; background:#ECFCCB; }
.health-badge.h-warn { color:#C2410C; background:#FFEDD5; }
.health-badge.h-bad { color:#DC2626; background:#FEE2E2; }
.health-badge.h-none { color:#64748B; background:#F1F5F9; }
.health-table { border-collapse:collapse; width:100%; font-size:13px; }
.health-table th, .health-table td { border:1px solid #E2E8F0; padding:8px 10px; text-align:center; white-space:nowrap; }
.health-table th { background:#F1F5F9; color:#334155; font-weight:700; position:sticky; top:0; }
.health-table tbody tr:hover { background:#F8FAFC; }
.table-wrapper { overflow-x:auto; border-radius:10px; border:1px solid #E2E8F0; }
.rank-filters { display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-bottom:12px; }
.rank-filters .form-input { width:auto; min-width:110px; }
.rank-filters .btn { white-space:nowrap; }
.subject-badge { display:inline-block; background:#DBEAFE; color:#1D4ED8; border-radius:6px; padding:1px 8px; font-size:12px; font-weight:600; }
/* 健康度弹窗 */
.health-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.5); display: flex; align-items: center; justify-content: center; z-index: 1100; padding: 20px; animation: fadeIn .2s; }
.health-modal-card { max-width:900px; width:94%; max-height:88vh; }
.health-modal-card .modal-body { overflow-y:auto; padding:18px 22px; }
.health-modal-card canvas { width:100% !important; }
.health-modal-card .form-modal-header { position: sticky; top: 0; background:#fff; z-index:2; }
@media (max-width:768px){
  .health-metrics { grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); }
  .metric-value { font-size:20px; }
}

/* 机构资源库三分类切换 */
.lib-cat-bar { display:flex; gap:10px; margin:12px 0; flex-wrap:wrap; }
.lib-cat-btn { padding:8px 18px; border-radius:999px; border:1px solid #E2E8F0; background:#fff; color:#475569; font-size:14px; font-weight:600; cursor:pointer; transition:all .15s; }
.lib-cat-btn:hover { border-color:#2563EB; color:#2563EB; }
.lib-cat-btn.active { background:#2563EB; border-color:#2563EB; color:#fff; box-shadow:0 4px 12px rgba(37,99,235,.25); }

/* ============ 操作按钮统一配色（商务蓝 / 危险红 / 进度绿） ============ */
/* 常规操作统一商务蓝：覆盖所有行内彩色小按钮（紫/青/粉/黄/靛等） */
.btn.btn-sm[style*="background:#0EA5E9"],
.btn.btn-sm[style*="background:#8B5CF6"],
.btn.btn-sm[style*="background:#EC4899"],
.btn.btn-sm[style*="background:#FEF3C7"],
.btn.btn-sm[style*="background:#EDE9FE"],
.btn.btn-sm[style*="background:#DBEAFE"],
.btn.btn-sm[style*="background:#ECFEFF"],
.btn.btn-sm[style*="background:#E0E7FF"],
.btn.btn-sm[style*="background:#F5F3FF"],
.btn.btn-sm[style*="background:#EEF2FF"],
.btn.btn-sm[style*="background:#3B82F6"],
.btn.btn-sm[style*="background:#F59E0B"] {
  background: var(--primary) !important;
  color: #fff !important;
  font-weight: 500 !important;
}
/* 绿色保留用于：通过/结课/已解决等正向进度操作 */
.btn.btn-sm[style*="background:#10B981"],
.btn.btn-sm[style*="background:#16A34A"] {
  background: var(--success) !important;
  color: #fff !important;
}
/* 红色保留：删除/驳回/异常 */
.btn.btn-sm[style*="background:#EF4444"],
.btn.btn-sm[style*="background:#DC2626"] {
  background: var(--danger) !important;
  color: #fff !important;
}
/* 中性灰操作 */
.btn.btn-sm[style*="background:#E2E8F0"],
.btn.btn-sm[style*="background:#F1F5F9"] {
  background: #F1F5F9 !important;
  color: #334155 !important;
}

/* ============ 考核管理筛选栏与其他页统一 ============ */
.filter-bar select, .filter-bar input[type="text"] { height: 38px; border: 1px solid #CBD5E1; border-radius: 8px; padding: 0 12px; font-size: 14px; background: #fff; color: #1E293B; }
.filter-bar label { font-size: 13px; color: #475569; display: inline-flex; align-items: center; gap: 6px; }
#assess-panel-run .filter-bar select { min-width: 110px; }

/* ========== 通用省略号操作菜单 ========== */
.action-menu {
  position: fixed;
  z-index: 3000;
  min-width: 150px;
  max-width: 220px;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(15,23,42,.16);
  padding: 6px;
  animation: amIn .12s ease-out;
}
@keyframes amIn { from { opacity:0; transform: translateY(-4px);} to {opacity:1; transform:none;} }
.action-menu-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 7px;
  font-size: 13px; color: #334155; cursor: pointer;
  white-space: nowrap; text-decoration: none;
}
.action-menu-item:hover { background: #F1F5F9; color: #1E293B; }
.action-menu-item.danger { color: #DC2626; }
.action-menu-item.danger:hover { background: #FEF2F2; }
.action-menu-item .ami-icon { width: 16px; text-align: center; flex-shrink: 0; }
.btn.btn-link.more-btn, .more-btn {
  background: transparent; border: none; color: #94A3B8;
  font-weight: 700; font-size: 18px; line-height: 1;
  padding: 2px 8px; cursor: pointer; letter-spacing: 1px;
  border-radius: 6px;
}
.more-btn:hover { background: #F1F5F9; color: #2563EB; }

/* ========== 全局表格规范（不换行 / 操作列固定 / 去方格文本化） ========== */
/* 表头与短内容不换行 */
.data-table th { white-space: nowrap; }
.data-table td { white-space: nowrap; }
/* 长文本列允许换行（名称/备注/描述/内容类） */
.data-table td.cell-wrap,
.data-table td.wrap { white-space: normal; word-break: break-word; }
/* 操作列：固定在右侧，记录长时横向滚动内容而操作列不动 */
.table-wrapper { position: relative; width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll { width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { min-width: 100%; }
.data-table th.col-actions,
.data-table td.col-actions {
  position: sticky; right: 0; z-index: 3;
  background: #fff; text-align: right; white-space: nowrap;
  box-shadow: -6px 0 10px -6px rgba(15,23,42,.18);
}
.data-table th.col-actions { background: #F8FAFC; z-index: 4; }
.data-table tr:hover td.col-actions { background: #F8FAFC; }
.data-table td.col-actions .btn,
.data-table th.col-actions .btn { margin-left: 4px; }
/* 操作按钮容器统一右对齐 */
.data-table .cell-actions, .data-table td .cell-actions { text-align: right; white-space: nowrap; }
.data-table td.col-actions .cell-actions { text-align: right; }
/* 去方格：徽章/标签弱化为文本（保留语义颜色，去掉厚重底框） */
.data-table .tag, .data-table .badge, .data-table .chip {
  background: transparent; border: none; padding: 0 2px;
  font-size: 12px; font-weight: 600; border-radius: 0;
}

/* 考核说明问号按钮 */
.assess-help-btn{
  width:26px;height:26px;border-radius:50%;
  border:1px solid #BFDBFE;background:#EFF6FF;color:#2563EB;
  font-size:15px;font-weight:700;line-height:1;cursor:pointer;
  display:inline-flex;align-items:center;justify-content:center;
  transition:all .15s;flex:none;
}
.assess-help-btn:hover{background:#2563EB;color:#fff;border-color:#2563EB;transform:scale(1.08);}

/* 花名册学科汇总标签（可点击筛选） */
.roster-subj-chip{
  border:1px solid #CBD5E1;background:#fff;border-radius:16px;
  padding:5px 14px;font-size:13px;cursor:pointer;transition:all .15s;
  white-space:nowrap;
}
.roster-subj-chip b{margin-left:4px;font-size:14px;}
.roster-subj-chip:hover{box-shadow:0 2px 8px rgba(37,99,235,.18);transform:translateY(-1px);}
.roster-subj-chip.active{font-weight:600;}

/* ========== 教师端课程列表表格（复用 course-admin-table，去掉教师列） ========== */
#teacher-course-list.course-list-table { display:block; width:100%; }
#teacher-course-list .course-admin-table .col-actions { width:130px; }

/* ========== 横向节点进度（课次与教学大纲） ========== */
.lesson-stepper { position:relative; }
.ls-summary{
  display:flex;align-items:center;gap:24px;flex-wrap:wrap;
  background:linear-gradient(135deg,#F8FAFC,#EFF6FF);
  border:1px solid #E2E8F0;border-radius:12px;padding:14px 18px;margin-bottom:26px;
}
.ls-sum-item{ text-align:center;min-width:56px; }
.ls-sum-num{ font-size:24px;font-weight:800;line-height:1.2; }
.ls-sum-lbl{ font-size:12px;color:#64748B;margin-top:2px; }
.ls-sum-progress{ flex:1;min-width:260px;text-align:left; }
.ls-pbar{ position:relative;height:10px;background:#E2E8F0;border-radius:6px;overflow:hidden; }
.ls-pbar-plan{
  position:absolute;left:0;top:0;height:100%;background:rgba(37,99,235,.28);border-radius:6px;
}
.ls-pbar-done{
  position:absolute;left:0;top:0;height:100%;background:linear-gradient(90deg,#34D399,#16A34A);border-radius:6px;transition:width .4s;
}
.ls-pbar-legend{ font-size:12px;color:#64748B;margin-top:6px; }
.ls-sum-warn{ font-size:13px;margin-left:auto;text-align:right; }
.ls-track{ position:relative;padding:10px 4px 0; }
.ls-line{ position:absolute;top:26px;left:28px;right:28px;height:4px;background:#E2E8F0;border-radius:2px;z-index:0; }
.ls-line-done{ height:100%;background:linear-gradient(90deg,#34D399,#16A34A);border-radius:2px;transition:width .4s; }
.ls-nodes{ position:relative;z-index:1;display:flex;justify-content:space-between;gap:6px;overflow-x:auto;padding-bottom:8px; }
.ls-node{
  flex:1;min-width:86px;display:flex;flex-direction:column;align-items:center;gap:6px;
  cursor:pointer;border-radius:10px;padding:8px 4px 6px;transition:all .15s;
}
.ls-node:hover{ background:#F1F5F9;transform:translateY(-2px); }
.ls-disc{
  width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  font-size:14px;font-weight:700;border:2px solid #CBD5E1;background:#fff;color:#94A3B8;flex:none;
}
.ls-meta{ text-align:center; }
.ls-no{ font-size:11px;color:#94A3B8; }
.ls-name{ font-size:12px;color:#334155;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:96px; }
.ls-date{ font-size:11px;color:#64748B;margin-top:2px; }
.ls-tag{ font-size:10px;border-radius:8px;padding:1px 7px;margin-top:3px;white-space:nowrap;display:inline-block; }
.ls-tag-done{ background:#D1FAE5;color:#047857; }
.ls-tag-cur{ background:#DBEAFE;color:#1D4ED8; }
.ls-tag-over{ background:#FEE2E2;color:#B91C1C;font-weight:700; }
.ls-tag-lock{ background:#F1F5F9;color:#94A3B8; }
/* 已结课 */
.ls-done .ls-disc{ background:#16A34A;border-color:#16A34A;color:#fff; }
/* 当前节点（下一个待上课） */
.ls-current .ls-disc{ background:#2563EB;border-color:#2563EB;color:#fff;box-shadow:0 0 0 5px rgba(37,99,235,.15); }
/* 延期未结 */
.ls-overdue .ls-disc{ background:#DC2626;border-color:#DC2626;color:#fff;box-shadow:0 0 0 5px rgba(220,38,38,.14);animation:lsPulse 1.6s ease-in-out infinite; }
@keyframes lsPulse{ 0%,100%{box-shadow:0 0 0 4px rgba(220,38,38,.12);} 50%{box-shadow:0 0 0 8px rgba(220,38,38,.22);} }
/* 未开始（开课前5天外） */
.ls-locked .ls-disc{ background:#F8FAFC;border-color:#E2E8F0;color:#CBD5E1; }
/* 被前置未结卡住 */
.ls-blocked .ls-disc{ border-style:dashed; }
/* 选中高亮 */
.ls-node.ls-active{ background:#EFF6FF;outline:2px solid #BFDBFE; }
.lesson-stepper.ls-readonly .ls-node{ cursor:default; }
.lesson-stepper.ls-readonly .ls-node:hover{ transform:none;background:transparent; }
@media (max-width:768px){
  .ls-node{ min-width:72px; }
  .ls-name{ max-width:72px; }
  .ls-sum-warn{ margin-left:0;text-align:left;width:100%; }
}

/* ===== 通用表格：分页/排序/查询（v=20260830q） ===== */
.form-modal { max-width: 680px; }
.form-modal.form-modal-compact { max-width: 460px; }
.form-modal-wide { max-width: 92vw; width: 92vw; }
.table-pager { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; padding:12px 4px 4px; }
.pager-total { font-size:13px; color:#64748B; }
.pager-total b { color:#1E293B; }
.pager-btns { display:flex; gap:4px; flex-wrap:wrap; }
.pager-btn { min-width:32px; height:32px; padding:0 8px; border:1px solid #E2E8F0; background:#fff; border-radius:6px; font-size:13px; color:#334155; cursor:pointer; }
.pager-btn:hover:not([disabled]) { border-color:#2563EB; color:#2563EB; }
.pager-dots { padding:0 4px; color:#94A3B8; align-self:center; }
.data-table th.th-sortable { cursor:pointer; user-select:none; white-space:nowrap; }
.data-table th.th-sortable:hover { color:#2563EB; }
.th-sort-icon { font-size:11px; color:#94A3B8; margin-left:2px; }
.th-sort-active { color:#2563EB; }
.th-sort-active .th-sort-icon { color:#2563EB; font-weight:700; }
/* 考核等级：字体色无背景 */
.tad-grade { padding:0 !important; border-radius:0 !important; background:transparent !important; font-size:14px !important; font-weight:800; }
.tad-grade-a { color:#059669 !important; }
.tad-grade-b { color:#2563EB !important; }
.tad-grade-c { color:#D97706 !important; }
.tad-grade-d { color:#DC2626 !important; }
/* 班级管理文本化字段（去圆角矩形） */
.cls-plain { font-weight:600; }
.cls-plain-sub { color:#94A3B8; font-weight:400; font-size:12px; margin-left:4px; }
/* 异常中心：教师汇总卡 */
.exc-teacher-summary { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:10px; margin-bottom:16px; }
.exc-tcard { border:1px solid #F1F5F9; border-radius:10px; padding:12px 14px; background:#fff; cursor:pointer; transition:.15s; }
.exc-tcard:hover { box-shadow:0 6px 18px rgba(37,99,235,.12); border-color:#BFDBFE; }
.exc-tcard.has-danger { border-left:4px solid #EF4444; }
.exc-tcard.has-warn { border-left:4px solid #F59E0B; }
.exc-tcard-name { font-weight:700; color:#1E293B; font-size:14px; margin-bottom:6px; display:flex; justify-content:space-between; align-items:center; }
.exc-tcard-stat { font-size:12px; color:#64748B; line-height:1.7; }
.exc-tcard-stat b.danger { color:#DC2626; }
.exc-tcard-stat b.warn { color:#D97706; }
.exc-tcard.active { border-color:#2563EB; background:#EFF6FF; box-shadow:0 4px 14px rgba(37,99,235,.18); }
.exc-tcard.active .exc-tcard-name { color:#1D4ED8; }
/* 组卷网外链 */
.qbank-link-card { display:flex; align-items:center; gap:14px; padding:14px 18px; border:1px solid #BFDBFE; background:linear-gradient(90deg,#EFF6FF,#F8FAFC); border-radius:10px; margin-bottom:14px; }

/* ============================================================
   界面风格升级（参照小麦助教，v=20260830s）
   浅灰底 + 白色圆角卡片 + 轻阴影 + 品牌色胶囊导航/按钮 + 柔和表格
   ============================================================ */
:root {
  --bg: #F5F6FA;
  --shadow: 0 1px 2px rgba(15,23,42,.04), 0 2px 8px rgba(15,23,42,.05);
  --shadow-hover: 0 4px 16px rgba(15,23,42,.10);
}
body { background: #F5F6FA; }

/* --- 卡片：更圆润、更柔和 --- */
.card, .metric-card, .stat-card, .exc-tcard {
  border-radius: 14px !important;
  border: 1px solid #EEF1F6 !important;
  box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 2px 8px rgba(15,23,42,.05) !important;
}
.card:hover, .metric-card:hover, .stat-card:hover { box-shadow: 0 6px 18px rgba(15,23,42,.10) !important; transform: translateY(-2px); }

/* --- 页头 --- */
.page-header { margin-bottom: 20px; }
.page-header h1 { font-size: 22px; font-weight: 700; letter-spacing: .2px; }

/* --- 侧边栏：激活项胶囊高亮（保留深色底，三端角色色） --- */
.nav-item {
  border-radius: 10px;
  margin: 2px 6px 2px 0;
  font-weight: 500;
  position: relative;
}
.nav-item:hover { transform: translateX(2px); }
.sidebar-admin .nav-item.active { background: #2563EB; color:#fff; box-shadow: 0 4px 12px rgba(37,99,235,.35); }
.sidebar-teacher .nav-item.active { background: #10B981; color:#fff; box-shadow: 0 4px 12px rgba(16,185,129,.35); }
.sidebar-student .nav-item.active { background: #8B5CF6; color:#fff; box-shadow: 0 4px 12px rgba(139,92,246,.35); }

/* --- 按钮：统一胶囊语义色 --- */
.btn {
  border-radius: 8px !important;
  font-weight: 600;
  transition: all .18s ease;
  box-shadow: 0 1px 2px rgba(15,23,42,.05);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(15,23,42,.12); }
.btn:active { transform: scale(.97); }
.btn-primary { background: #2563EB !important; border-color: #2563EB !important; }
.btn-primary:hover { background: #1D4ED8 !important; }
.btn-success { background: #10B981 !important; border-color: #10B981 !important; }
.btn-danger { background: #EF4444 !important; border-color: #EF4444 !important; }
.btn-outline { background:#fff !important; color:#2563EB !important; border:1px solid #BFDBFE !important; }
.btn-outline:hover { background:#EFF6FF !important; }
.data-table .btn-sm, .cell-actions .btn-sm { border-radius: 7px !important; }

/* --- 表格容器卡片化 --- */
.table-container, .table-wrapper { background:#fff; border:1px solid #EEF1F6; border-radius:14px; padding: 6px 8px; box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 2px 8px rgba(15,23,42,.05); margin-bottom: 12px; }
.data-table th {
  background: #F8FAFC !important;
  color: #475569 !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  border-bottom: 1px solid #EEF1F6 !important;
  padding: 12px 14px !important;
  white-space: nowrap;
}
.data-table td { padding: 11px 14px !important; border-bottom: 1px solid #F3F5F9 !important; }
.data-table tbody tr:hover td { background: #F8FAFF !important; }
.data-table tbody tr.row-graduated td { color:#94A3B8; }
.data-table tbody tr.row-graduated:hover td { background:#F8FAFC !important; }

/* --- 状态胶囊（班级状态等） --- */
.status-tag { display:inline-block; padding:3px 12px; border-radius:999px; font-size:12px; font-weight:600; white-space:nowrap; }
.status-ongoing { background:#ECFDF5; color:#059669; }
.status-graduated { background:#F1F5F9; color:#64748B; }

/* --- 筛选栏卡片化 --- */
.filter-bar { background:#fff; border:1px solid #EEF1F6; border-radius:14px; padding:14px 16px; box-shadow: 0 1px 2px rgba(15,23,42,.04); margin-bottom:16px; }
.filter-bar .form-input, .filter-bar select, .filter-bar input[type="text"] {
  border-color: #E2E8F0 !important; border-radius: 8px; background:#fff; height: 38px;
}
.filter-bar .form-input:focus, .filter-bar select:focus, .filter-bar input:focus { border-color:#2563EB !important; box-shadow: 0 0 0 3px rgba(37,99,235,.12) !important; }

/* --- 输入框 --- */
.form-input { border-radius: 8px !important; border:1px solid #E2E8F0 !important; transition: all .18s; }
.form-input:focus { border-color:#2563EB !important; box-shadow: 0 0 0 3px rgba(37,99,235,.12) !important; outline:none; }

/* --- 弹框 --- */
.form-modal, .modal { border-radius: 16px !important; box-shadow: 0 24px 60px rgba(15,23,42,.25) !important; }
.modal-overlay { background: rgba(15,23,42,.45) !important; backdrop-filter: blur(2px); }

/* --- 分页器 --- */
.pager-btn { border-radius:8px !important; }
.pager-btn:hover:not([disabled]) { background:#EFF6FF !important; }
.table-pager { background:transparent; }

/* --- 标签/徽章统一为浅底胶囊 --- */
.tag, .badge { border-radius:999px !important; font-weight:600; }
.enroll-chip { background:#EFF6FF !important; color:#1D4ED8 !important; border-radius:999px !important; padding:2px 10px !important; font-size:12px !important; font-weight:600; border:none !important; }

/* --- 批量操作栏（班级批量结业） --- */
.batch-bar {
  display: flex;
  flex: 1 0 100%;
  position: sticky; bottom: 12px;
  align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
  background: #1E293B; color:#fff;
  padding: 12px 18px; border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15,23,42,.25);
  margin: 10px 0 0; z-index: 20;
}
.batch-bar .btn { box-shadow:none; }
.batch-class-row { border:1px solid #EEF1F6; border-radius:10px; padding:10px 14px; margin-bottom:8px; background:#fff; }
.batch-badge { display:inline-block; padding:2px 10px; border-radius:999px; font-size:12px; font-weight:600; white-space:nowrap; }
.batch-badge-ok { background:#D1FAE5; color:#047857; }
.batch-badge-warn { background:#FEF3C7; color:#B45309; }
.batch-badge-hard { background:#FEE2E2; color:#B91C1C; }
.batch-sub { font-size:12px; margin-top:6px; line-height:1.7; }
.batch-header-hard { background:#FEF2F2; color:#991B1B; border:1px solid #FECACA; border-radius:10px; padding:10px 14px; font-size:13px; margin-bottom:12px; line-height:1.7; }
.batch-header-warn { background:#FFFBEB; color:#92400E; border:1px solid #FDE68A; border-radius:10px; padding:10px 14px; font-size:13px; margin-bottom:12px; line-height:1.7; }
.batch-header-ok { background:#ECFDF5; color:#065F46; border:1px solid #A7F3D0; border-radius:10px; padding:10px 14px; font-size:13px; margin-bottom:12px; line-height:1.7; }

/* --- 我的学生详情弹框（宽表格） --- */
.msd-head { display:flex; align-items:center; gap:12px; margin-bottom:16px; }
.msd-avatar { width:46px; height:46px; border-radius:50%; background:#DBEAFE; color:#1D4ED8; display:flex; align-items:center; justify-content:center; font-size:20px; font-weight:700; flex-shrink:0; }
.msd-group { margin-bottom:20px; }
.msd-group-title { font-size:14px; font-weight:700; color:#1E293B; margin-bottom:8px; }
.msd-table { font-size:13px; }
.msd-detail-cell { background:#F8FAFC !important; padding:14px 18px !important; }
.msd-detail-title { font-weight:700; font-size:13px; color:#334155; margin-bottom:8px; }
.msd-grade-table td, .msd-grade-table th { font-size:12.5px; }
.msd-wq { margin-top:10px; font-size:12px; color:#B45309; background:#FFFBEB; border:1px solid #FDE68A; border-radius:8px; padding:6px 10px; }
.msd-footer { display:flex; gap:10px; justify-content:flex-end; margin-top:18px; }

/* --- 空状态 --- */
.empty-state { padding: 48px 20px; text-align:center; color:#94A3B8; background:#fff; border:1px dashed #E2E8F0; border-radius:14px; }

/* --- 结业检查弹框（v=20260830t） --- */
.gc-header { border-radius:12px; padding:12px 16px; margin-bottom:14px; font-size:13px; line-height:1.7; display:flex; flex-direction:column; gap:2px; }
.gc-header b { font-size:14px; }
.gc-header-hard { background:#FEF2F2; color:#991B1B; border:1px solid #FECACA; }
.gc-header-warn { background:#FFFBEB; color:#92400E; border:1px solid #FDE68A; }
.gc-header-ok { background:#ECFDF5; color:#065F46; border:1px solid #A7F3D0; }
.gc-card { border-radius:12px; padding:14px 16px; margin-bottom:10px; border:1px solid; background:#fff; }
.gc-card-ok { border-color:#A7F3D0; background:#FCFEFD; }
.gc-card-warn { border-color:#FDE68A; background:#FFFEF8; }
.gc-card-hard { border-color:#FCA5A5; background:#FEFDFD; }
.gc-card-head { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:12px; }
.gc-subj { display:inline-block; padding:3px 12px; border-radius:6px; font-size:12px; font-weight:600; color:#fff; }
.gc-course-name { font-weight:700; color:#1E293B; font-size:14px; }
.gc-teacher { font-size:12px; color:#64748B; }
.gc-badge { margin-left:auto; padding:3px 12px; border-radius:999px; font-size:12px; font-weight:600; white-space:nowrap; }
.gc-badge-ok { background:#D1FAE5; color:#047857; }
.gc-badge-warn { background:#FEF3C7; color:#B45309; }
.gc-badge-hard { background:#FEE2E2; color:#B91C1C; }
.gc-items { display:grid; grid-template-columns:repeat(2, 1fr); gap:8px; }
.gc-item { display:flex; align-items:center; gap:8px; padding:8px 12px; border-radius:8px; font-size:13px; border:1px solid; }
.gc-item.is-done { background:#F0FDF4; border-color:#BBF7D0; color:#15803D; }
.gc-item.is-miss { background:#FEF2F2; border-color:#FECACA; color:#B91C1C; }
.gc-icon { width:20px; height:20px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; font-size:12px; font-weight:800; color:#fff; flex-shrink:0; }
.is-done .gc-icon { background:#16A34A; }
.is-miss .gc-icon { background:#DC2626; }
.gc-item-label { font-weight:600; }
.gc-item-detail { margin-left:auto; font-size:12px; color:inherit; opacity:.8; white-space:nowrap; }
.gc-nolesson { font-size:12px; color:#B91C1C; background:#FEF2F2; border-radius:8px; padding:10px 12px; }
.gc-footer { display:flex; gap:10px; justify-content:flex-end; margin-top:16px; }

/* --- 班级管理：班级全名 / 关联课程数 --- */
.cls-fullname { font-weight:600; color:#1E293B; white-space:nowrap; }
.cls-fullname:hover { color:#2563EB; }
.cls-course-count { display:inline-flex; align-items:center; gap:4px; font-weight:600; color:#2563EB; background:#EFF6FF; padding:4px 12px; border-radius:999px; font-size:13px; white-space:nowrap; }
.cls-course-count:hover { background:#DBEAFE; }
.cls-count-arrow { font-size:15px; line-height:1; }
.vc-course-row { border:1px solid #EEF1F6; border-radius:10px; padding:12px 14px; margin-bottom:8px; }
.vc-course-head { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.vc-course-index { width:22px; height:22px; border-radius:6px; background:#2563EB; color:#fff; font-size:12px; font-weight:700; display:inline-flex; align-items:center; justify-content:center; }
.vc-course-teacher { margin-left:auto; font-size:12px; color:#64748B; }

/* --- 扁平化 SVG 图标（v=20260830t） --- */
.ic { width:1em; height:1em; display:inline-block; vertical-align:-0.125em; stroke-width:2; flex-shrink:0; }
.btn .ic { margin-right:4px; }
.nav-item .ic { width:17px; height:17px; margin-right:10px; vertical-align:-3px; }
.more-btn { padding:4px 8px; font-size:16px; line-height:1; color:#94A3B8; }
.more-btn:hover { color:#2563EB; background:#F1F5F9; }
.action-menu-item .ami-icon { display:inline-flex; width:18px; margin-right:6px; color:#64748B; font-size:0; }
.action-menu-item .ami-icon .ic { color:#64748B; }
.action-menu-item.danger .ami-icon .ic { color:#DC2626; }

/* --- 课次卡片：直角矩形、去渐变、拉开间距（v=20260830t） --- */
.lesson-list { gap: 18px; }
.lesson-card {
  border-radius: 6px;
  border: 1px solid #E5E9F0;
  border-left-width: 3px;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
.lesson-card.lesson-finished { border-left-color: #16A34A; }
.lesson-card.lesson-upcoming { border-left-color: #2563EB; }
.lesson-card.lesson-notstarted { border-left-color: #E2E8F0; opacity: .78; }
.lesson-head { background:#FFFFFF; border-bottom:1px solid #EEF1F6; padding:16px 18px; }
.lesson-card.lesson-finished .lesson-num-badge { background:#16A34A; box-shadow:none; }
.lesson-card.lesson-upcoming .lesson-num-badge { box-shadow:none; }
.lesson-num-badge { border-radius:6px; }
.lesson-resources { padding-top:10px; }
.res-cat-summary { background: #FDF2F8; }
.res-cat-reflection { background: #F5F3FF; }
.lesson-content-toolbar { padding:12px 18px 0 18px; }
.lesson-goal { margin:10px 18px 0 18px; background:#F8FAFC; border:1px solid #EEF1F6; border-radius:6px; padding:10px 12px; }
.lesson-status-bar { padding:8px 18px 0 18px; }
.island-detail-inner .lesson-card + .lesson-card { margin-top:18px; }
.course-flag-badge { display:inline-flex; align-items:center; gap:3px; padding:1px 8px; border-radius:9px; font-size:11px; font-weight:600; color:#fff; white-space:nowrap; }
.course-flag-badge .ic { width:11px; height:11px; }
h1 .ic, h2 .ic, h3 .ic { width:20px; height:20px; margin-right:6px; vertical-align:-3px; color:#2563EB; }

/* ==================== 成绩分析报告（班级报告 + 学生成长报告）v=u ==================== */
.rpt-header { background:linear-gradient(135deg,#EFF6FF 0%,#F5F3FF 100%); border:1px solid #E0EAFF; border-radius:12px; padding:16px 20px; margin-bottom:16px; }
.rpt-title h3 { margin:0 0 6px 0; font-size:19px; font-weight:700; color:#1E293B; display:flex; align-items:center; gap:8px; }
.rpt-title h3 .ic { width:22px; height:22px; color:#2563EB; }
.rpt-sub { font-size:13px; color:#64748B; }
.rpt-section-title { display:flex; align-items:center; gap:8px; font-size:15px; font-weight:700; color:#1E293B; margin:20px 0 12px 0; }
.rpt-no { display:inline-flex; align-items:center; justify-content:center; min-width:26px; height:22px; padding:0 6px; border-radius:6px; background:linear-gradient(135deg,#2563EB,#4F46E5); color:#fff; font-size:12px; font-weight:700; }
.rpt-hint { font-size:12px; font-weight:400; color:#94A3B8; margin-left:4px; }

/* 顶部统计卡片 */
.rpt-stat-row { display:grid; grid-template-columns:repeat(6,1fr); gap:12px; }
.rpt-stat-card { position:relative; background:#fff; border:1px solid #ECEFF4; border-radius:12px; padding:14px 14px 12px 14px; overflow:hidden; }
.rpt-stat-card::before { content:''; position:absolute; left:0; top:0; bottom:0; width:4px; background:var(--rc,#2563EB); }
.rpt-stat-label { font-size:12px; color:#64748B; margin-bottom:6px; }
.rpt-stat-value { font-size:24px; font-weight:800; color:var(--rc,#1E293B); line-height:1.1; }
.rpt-stat-sub { font-size:11px; color:#94A3B8; margin-top:4px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
@media (max-width:900px){ .rpt-stat-row{ grid-template-columns:repeat(3,1fr); } }
@media (max-width:560px){ .rpt-stat-row{ grid-template-columns:repeat(2,1fr); } }

/* 学科胶囊 */
.rpt-chips { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:14px; }
.rpt-sub-chip { display:inline-flex; align-items:center; gap:5px; padding:7px 14px; border-radius:20px; background:#F1F5F9; color:#475569; font-size:13px; font-weight:600; cursor:pointer; border:1px solid transparent; transition:all .15s; white-space:nowrap; }
.rpt-sub-chip:hover { background:#E0EAFF; color:#1D4ED8; }
.rpt-sub-chip.is-active { background:#2563EB; color:#fff; border-color:#2563EB; }
.rpt-sub-chip.is-active b { color:#DBEAFE; }
.rpt-sub-chip .ic { width:14px; height:14px; }
.rpt-sub-chip b { color:#2563EB; font-weight:700; }
.rpt-dot { width:8px; height:8px; border-radius:50%; display:inline-block; }

/* 卡片网格 */
.rpt-grid { display:grid; gap:14px; margin-bottom:6px; }
.rpt-grid-2 { grid-template-columns:1fr 1fr; }
.rpt-grid-1 { grid-template-columns:1fr; }
.rpt-subj-dot { display:inline-block; width:10px; height:10px; border-radius:50%; margin-right:8px; vertical-align:middle; }
@media (max-width:900px){ .rpt-grid-2{ grid-template-columns:1fr; } }
.rpt-card { background:#fff; border:1px solid #ECEFF4; border-radius:12px; padding:16px; }
.rpt-card-title { font-size:14px; font-weight:700; color:#1E293B; margin-bottom:12px; display:flex; align-items:center; gap:6px; }

/* 各科小卡片 */
.rpt-subj-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; max-height:300px; overflow-y:auto; }
@media (max-width:560px){ .rpt-subj-grid{ grid-template-columns:1fr; } }
.rpt-subj-card { background:#F8FAFC; border:1px solid #EEF1F6; border-radius:10px; padding:10px 12px; transition:all .15s; }
.rpt-subj-card:hover { background:#EFF6FF; border-color:#BFDBFE; }
.rpt-subj-name { font-size:14px; font-weight:700; margin-bottom:6px; display:flex; justify-content:space-between; align-items:center; }
.rpt-arrow { font-size:11px; font-weight:600; color:#94A3B8; }
.rpt-subj-card:hover .rpt-arrow { color:#2563EB; }
.rpt-subj-line { display:flex; align-items:center; gap:6px; font-size:12px; color:#64748B; margin-top:3px; }
.rpt-subj-line b { color:#1E293B; font-weight:700; }
.rpt-lv { font-weight:700; margin-left:auto; }

/* 分数段 */
.rpt-dist-flex { display:flex; align-items:center; gap:14px; }
.rpt-dist-chart { flex:0 0 170px; }
.rpt-dist-legend { flex:1; display:flex; flex-direction:column; gap:8px; }
.rpt-dist-item { display:flex; align-items:center; gap:8px; font-size:13px; }
.rpt-dist-item i { width:12px; height:12px; border-radius:3px; flex:0 0 12px; }
.rpt-dist-label { color:#475569; }
.rpt-dist-item b { color:#1E293B; margin-left:auto; }
.rpt-dist-pct { color:#94A3B8; font-size:12px; min-width:48px; text-align:right; }

/* 表格 */
.rpt-table { width:100%; border-collapse:collapse; font-size:13px; }
.rpt-table th { background:#F8FAFC; color:#475569; font-weight:600; padding:9px 10px; text-align:left; border-bottom:1px solid #EEF1F6; }
.rpt-table td { padding:8px 10px; border-bottom:1px solid #F1F5F9; color:#334155; }
.rpt-more-tip { font-size:12px; color:#94A3B8; text-align:center; padding:8px 0 2px; }
.rpt-footer-bar { display:flex; justify-content:space-between; margin-top:18px; gap:10px; }

/* 成长报告头部 */
.rpt-grow-top { margin-bottom:6px; }
.rpt-grow-head { display:flex; align-items:center; gap:16px; background:#fff; border:1px solid #ECEFF4; border-radius:12px; padding:16px 20px; margin-bottom:14px; }
.rpt-ava { width:60px; height:60px; border-radius:50%; background:linear-gradient(135deg,#2563EB,#4F46E5); color:#fff; display:flex; align-items:center; justify-content:center; font-size:26px; font-weight:700; overflow:hidden; flex:0 0 60px; }
.rpt-ava img { width:100%; height:100%; object-fit:cover; }
.rpt-grow-id h3 { margin:0 0 6px 0; font-size:19px; font-weight:700; color:#1E293B; }
.rpt-grow-meta { font-size:13px; color:#64748B; display:flex; flex-wrap:wrap; gap:6px 14px; }

/* 学科得分概览 */
.rpt-skill-list { display:flex; flex-direction:column; gap:12px; }
.rpt-skill-row { display:flex; align-items:center; gap:10px; font-size:13px; }
.rpt-skill-name { width:56px; font-weight:600; color:#334155; flex:0 0 56px; }
.rpt-skill-track { flex:1; height:9px; background:#F1F5F9; border-radius:6px; overflow:hidden; }
.rpt-skill-fill { display:block; height:100%; border-radius:6px; transition:width .4s; }
.rpt-skill-row b { min-width:48px; text-align:right; font-weight:700; }
.rpt-skill-cls { min-width:64px; font-size:11px; color:#94A3B8; }

/* 成长时间轴 */
.rpt-timeline { position:relative; padding-left:6px; }
.rpt-tl-item { position:relative; display:flex; gap:14px; padding:0 0 18px 0; }
.rpt-tl-item:not(:last-child)::before { content:''; position:absolute; left:15px; top:34px; bottom:0; width:2px; background:#E2E8F0; }
.rpt-tl-dot { width:32px; height:32px; border-radius:50%; flex:0 0 32px; display:flex; align-items:center; justify-content:center; color:#fff; z-index:1; }
.rpt-tl-dot .ic { width:16px; height:16px; }
.rpt-tl-body { flex:1; }
.rpt-tl-date { font-size:11px; color:#94A3B8; }
.rpt-tl-title { font-size:14px; font-weight:700; color:#1E293B; margin:2px 0 3px; }
.rpt-tl-desc { font-size:12px; color:#64748B; line-height:1.5; }

/* --- 宽弹窗滚动修复（flex 布局：标题吸顶，正文内部滚动）--- */
.form-modal { display:flex; flex-direction:column; }
.form-modal-wide { overflow-y:hidden !important; max-height:92vh; }
.form-modal-wide .modal-body,
.form-modal-wide .form-modal-body { overflow-y:auto !important; max-height:calc(92vh - 58px) !important; flex:1 1 auto; min-height:0; padding:18px 22px; }
.form-modal-wide .modal-header,
.form-modal-wide .form-modal-header { flex:0 0 auto; position:sticky; top:0; background:#fff; z-index:2; border-bottom:1px solid #E2E8F0; }
/* 无数据引导条 */
.rpt-empty-guide { margin:14px 0; padding:18px 20px; border:1px dashed #BFDBFE; border-radius:12px; background:#EFF6FF; text-align:center; color:#1E40AF; font-size:13px; line-height:1.8; }
.rpt-empty-guide .rpt-guide-btn { display:inline-block; margin-top:8px; padding:8px 20px; border-radius:8px; background:#2563EB; color:#fff; font-weight:600; cursor:pointer; border:none; font-size:13px; }
.rpt-empty-guide .rpt-guide-btn:hover { background:#1D4ED8; }

/* ===== v=w：成长档案全学科雷达 + 加宽学科概览 + 学科报告缺考/聚焦 ===== */
/* 雷达卡较窄、概览卡更宽 */
.rpt-grid-grow { grid-template-columns: 5fr 7fr; align-items:start; }
@media (max-width:1000px){ .rpt-grid-grow{ grid-template-columns:1fr; } }
/* 学科得分概览：两列网格，容纳更多学科/课次不拥挤；卡片按内容高度，不随雷达卡拉伸留白 */
.rpt-grid-grow > .rpt-card { height:auto; align-self:start; }
.rpt-skill-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px 28px; align-content:start; }
@media (max-width:1100px){ .rpt-skill-grid{ grid-template-columns:1fr; } }
.rpt-skill-cls { min-width:96px; }
/* 概览卡底部小结，填补低学科数（如一年级仅语数英）时的空白 */
.rpt-skill-summary { margin-top:14px; padding-top:12px; border-top:1px dashed #E2E8F0; font-size:12px; color:#64748B; display:flex; flex-wrap:wrap; gap:6px 16px; }
.rpt-skill-summary b { color:#1E293B; font-weight:700; }
.rpt-skill-summary .rpt-ss-best { color:#059669; font-weight:700; }
.rpt-skill-summary .rpt-ss-weak { color:#DC2626; font-weight:700; }
.rpt-skill-row.rpt-skill-off { opacity:.75; }
.rpt-skill-na { color:#94A3B8 !important; font-weight:600; }
.rpt-skill-off .rpt-skill-name { color:#94A3B8; }
/* 雷达图下方学科状态标签 */
.rpt-radar-legend { display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }
.rpt-rl-tag { font-size:11px; padding:2px 10px; border-radius:999px; background:#EFF6FF; color:#2563EB; border:1px solid #DBEAFE; }
.rpt-rl-tag.rpt-rl-off { background:#F1F5F9; color:#94A3B8; border-color:#E2E8F0; }
/* 缺考标记 */
.rpt-absent { color:#DC2626; font-weight:600; font-size:11px; }
.rpt-absent-cell { color:#DC2626; font-size:11px; }
/* 学生聚焦行（可点击） */
.rpt-stu-row { cursor:pointer; }
.rpt-stu-row:hover { background:#F8FAFC !important; }
.rpt-stu-row.rpt-stu-active { background:#EFF6FF !important; font-weight:600; }
.rpt-focus-hint { font-size:12px; color:#64748B; margin:4px 0 10px; }
.rpt-focus-hint b { color:#2563EB; }
.rpt-focus-clear { display:inline-block; margin-left:8px; color:#2563EB; cursor:pointer; text-decoration:underline; }



/* ==================== 智能上课环境（去上课） ==================== */
.sc-wrap { display:flex; flex-direction:column; height:calc(92vh - 58px); min-height:560px; background:#F5F6FA; }
.sc-topbar { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 16px; background:#1E293B; color:#fff; flex-wrap:wrap; }
.sc-top-left { display:flex; align-items:center; gap:12px; flex-wrap:wrap; min-width:0; }
.sc-course-name { font-weight:700; font-size:15px; display:flex; align-items:center; gap:6px; white-space:nowrap; }
.sc-course-name svg { color:#34D399; }
.sc-class-select { width:auto !important; min-width:200px; font-size:13px; padding:6px 10px; }
.sc-top-right { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.sc-timer { font-variant-numeric:tabular-nums; font-weight:700; font-size:18px; background:#0F172A; padding:5px 14px; border-radius:8px; color:#FBBF24; letter-spacing:1px; }
.sc-topbar .btn { font-size:13px; }
.sc-body { flex:1; display:flex; min-height:0; }
.sc-sidebar { width:300px; flex:0 0 300px; background:#fff; border-right:1px solid #E5E9F0; display:flex; flex-direction:column; min-height:0; }
.sc-lesson-pick { padding:12px 14px 8px; }
.sc-lesson-pick label { font-size:12px; color:#64748B; display:block; margin-bottom:4px; }
.sc-lesson-pick select { font-size:13px; }
.sc-tabs { display:flex; border-bottom:1px solid #E5E9F0; }
.sc-tab { flex:1; padding:9px 4px; font-size:12px; background:none; border:none; cursor:pointer; color:#64748B; border-bottom:2px solid transparent; display:flex; flex-direction:column; align-items:center; gap:2px; }
.sc-tab svg { width:16px; height:16px; }
.sc-tab.active { color:#2563EB; border-bottom-color:#2563EB; font-weight:600; background:#F8FAFC; }
.sc-side-content { flex:1; overflow-y:auto; padding:12px 14px; }
.sc-stage { flex:1; display:flex; flex-direction:column; min-width:0; background:#fff; }
.sc-toolbar { display:flex; align-items:center; gap:14px; padding:8px 14px; border-bottom:1px solid #E5E9F0; background:#F8FAFC; flex-wrap:wrap; }
.sc-tools-group { display:flex; align-items:center; gap:6px; }
.sc-tool { width:34px; height:34px; border-radius:8px; border:1px solid #E2E8F0; background:#fff; cursor:pointer; display:flex; align-items:center; justify-content:center; color:#475569; }
.sc-tool svg { width:17px; height:17px; }
.sc-tool:hover { border-color:#2563EB; color:#2563EB; }
.sc-tool.on { background:#2563EB; border-color:#2563EB; color:#fff; }
.sc-colors { gap:7px; }
.sc-color { width:24px; height:24px; border-radius:50%; cursor:pointer; border:2px solid transparent; }
.sc-color.on { border-color:#1E293B; transform:scale(1.18); }
.sc-size { width:90px; accent-color:#2563EB; }
.sc-canvas-hold { flex:1; position:relative; min-height:0; background:#fff; }
#sc-board { position:absolute; inset:0; cursor:crosshair; touch-action:none; background:
  linear-gradient(#F8FAFC 1px, transparent 1px) 0 0/100% 32px,
  linear-gradient(90deg, #F8FAFC 1px, transparent 1px) 0 0/32px 100%, #fff; }
.sc-roll { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; background:linear-gradient(135deg,#2563EB,#1E40AF); color:#fff; }
.sc-roll-av { width:120px; height:120px; border-radius:50%; background:rgba(255,255,255,.18); display:flex; align-items:center; justify-content:center; font-size:52px; font-weight:700; }
.sc-roll-av-final { width:150px; height:150px; font-size:66px; background:#FBBF24; color:#1E293B; animation:scPop .4s ease; }
.sc-roll-name { font-size:34px; font-weight:700; }
.sc-roll-name-final { font-size:44px; }
.sc-roll-final { font-size:18px; opacity:.9; }
@keyframes scPop { 0%{transform:scale(.5);opacity:0;} 70%{transform:scale(1.08);} 100%{transform:scale(1);opacity:1;} }
.sc-present-layer { position:absolute; inset:0; background:#fff; display:flex; flex-direction:column; z-index:5; }
.sc-present-layer iframe { flex:1; width:100%; border:none; }
.sc-present-layer img { max-width:100%; max-height:100%; object-fit:contain; margin:auto; }
.sc-present-bar { display:flex; align-items:center; justify-content:space-between; padding:8px 14px; border-top:1px solid #E5E9F0; background:#F8FAFC; font-size:13px; }
.sc-present-doc { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; color:#475569; }
.sc-present-tip { font-size:12px; color:#94A3B8; }
.sc-present-q { padding:30px 40px; overflow:auto; }
.sc-q-big-stem { font-size:26px; font-weight:700; color:#1E293B; line-height:1.6; margin-bottom:24px; }
.sc-q-big-opts { font-size:20px; color:#334155; line-height:2; }
/* 侧栏资源 */
.sc-lesson-goal { font-size:12px; color:#475569; background:#F0F7FF; border:1px solid #DBEAFE; border-radius:8px; padding:8px 10px; margin-bottom:8px; line-height:1.6; }
.sc-kp { font-size:12px; margin-bottom:10px; }
.sc-kp-tag { display:inline-block; background:#EEF2FF; color:#4F46E5; border-radius:6px; padding:1px 8px; margin:2px 4px 2px 0; font-size:11px; }
.sc-res-group { margin-bottom:12px; }
.sc-res-group-title { font-size:12px; font-weight:700; color:#1E293B; margin:10px 0 6px; padding-bottom:4px; border-bottom:1px dashed #E2E8F0; }
.sc-res-item { display:flex; align-items:center; gap:8px; padding:7px 8px; border-radius:8px; font-size:13px; }
.sc-res-item:hover { background:#F8FAFC; }
.sc-res-ico { flex:0 0 20px; text-align:center; }
.sc-res-name { flex:1; color:#334155; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sc-res-ops { display:flex; gap:4px; flex:0 0 auto; }
.sc-mini-btn { border:1px solid #DBEAFE; background:#EFF6FF; color:#2563EB; border-radius:6px; padding:2px 8px; font-size:11px; cursor:pointer; white-space:nowrap; }
.sc-mini-btn:hover { background:#DBEAFE; }
.sc-empty { text-align:center; color:#94A3B8; font-size:13px; padding:30px 10px; border:1px dashed #E2E8F0; border-radius:10px; line-height:1.8; }
/* 同类题 */
.sc-prac-head { margin-bottom:8px; }
.sc-prac-title { font-weight:700; color:#1E293B; font-size:14px; }
.sc-prac-sub { font-size:11px; color:#94A3B8; margin-top:2px; line-height:1.5; }
.sc-prac-kp { font-size:11px; margin-bottom:8px; }
.sc-q-item { border:1px solid #E5E9F0; border-radius:8px; padding:9px 10px; margin-bottom:8px; background:#fff; }
.sc-q-stem { font-size:13px; color:#1E293B; line-height:1.5; margin-bottom:5px; }
.sc-q-opts { font-size:12px; color:#475569; line-height:1.7; padding-left:4px; }
.sc-q-ans { font-size:12px; color:#059669; background:#F0FDF4; border-radius:6px; padding:6px 8px; margin:5px 0; }
.sc-q-analysis { color:#64748B; margin-top:4px; }
.sc-q-btns { display:flex; gap:6px; margin-top:5px; }
.sc-refresh-q { width:100%; margin-top:6px; }
/* 点名名单 */
.sc-roll-tools { display:flex; gap:8px; margin-bottom:12px; }
.sc-roster-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:8px; }
.sc-roster-item { display:flex; align-items:center; gap:8px; padding:7px; border:1px solid #E5E9F0; border-radius:8px; transition:all .2s; }
.sc-roster-item.sc-roster-on { border-color:#FBBF24; background:#FFFBEB; box-shadow:0 0 0 2px rgba(251,191,36,.3); }
.sc-roster-av { width:30px; height:30px; border-radius:50%; background:#E0E7FF; color:#4338CA; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:13px; flex:0 0 30px; }
.sc-roster-name { font-size:13px; color:#334155; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
@media (max-width:900px){
  .sc-body { flex-direction:column; }
  .sc-sidebar { width:100%; flex:none; max-height:45%; border-right:none; border-bottom:1px solid #E5E9F0; }
}

/* ==================== v=20260830y 智能课堂全屏层 + 今日课次待办 ==================== */
/* 全屏覆盖浏览器的课堂/白板层 */
.sc-overlay { position:fixed; inset:0; z-index:4000; background:#F5F6FA; display:flex; flex-direction:column; animation:scFadeIn .18s ease; }
@keyframes scFadeIn { from { opacity:0; } to { opacity:1; } }
body.sc-no-scroll { overflow:hidden; }
.sc-screen { flex:1; display:flex; flex-direction:column; min-height:0; }
.sc-screen .sc-body { flex:1; display:flex; min-height:0; }
.sc-screen .sc-stage { flex:1; display:flex; flex-direction:column; min-width:0; min-height:0; background:#fff; }
.sc-stage-full { flex:1; }
.sc-body-board { flex:1; }
.sc-topbar { position:relative; z-index:2; flex:0 0 auto; }
.sc-mini-primary { background:#2563EB; border-color:#2563EB; color:#fff; font-weight:600; }
.sc-mini-primary:hover { background:#1D4ED8; }
.sc-present-media { flex:1; display:flex; align-items:center; justify-content:center; background:#0F172A; overflow:auto; padding:12px; }
.sc-present-img img { max-width:100%; max-height:100%; object-fit:contain; box-shadow:0 8px 40px rgba(0,0,0,.5); border-radius:4px; }
.sc-present-frame { flex:1; position:relative; background:#fff; display:flex; flex-direction:column; min-height:0; }
.sc-present-frame iframe { flex:1; width:100%; border:none; min-height:0; }
.sc-present-office-tip { padding:6px 14px; font-size:12px; color:#94A3B8; background:#F8FAFC; text-align:center; border-top:1px solid #E5E9F0; }
.sc-present-actions { display:flex; gap:8px; align-items:center; }
.sc-present-bar svg { width:14px; height:14px; vertical-align:-2px; margin-right:2px; }
.sc-q-big { padding:36px 48px; flex:1; overflow:auto; }
.sc-q-big-ans { font-size:18px; color:#059669; background:#F0FDF4; border-radius:10px; padding:16px 20px; margin-top:18px; line-height:1.8; }
.sc-q-big-ans .sc-q-analysis { color:#475569; }
.sc-q-big-btns { margin-top:18px; }

/* 工作台今日课次待办 */
.todo-section-title { width:100%; font-size:13px; font-weight:700; color:#1E293B; margin:6px 0 4px; display:flex; align-items:center; gap:8px; }
.todo-badge { display:inline-block; background:#2563EB; color:#fff; font-size:11px; font-weight:600; padding:2px 10px; border-radius:10px; }
.todo-lesson { align-items:center; gap:10px; }
.todo-lesson-ico { font-size:18px; }
.todo-lesson-no { display:inline-block; background:#EEF2FF; color:#4338CA; border-radius:6px; padding:0 8px; font-size:12px; font-weight:600; margin:0 4px; }
.todo-lesson-time { color:#2563EB; font-weight:700; margin-left:8px; font-size:12px; }
.todo-go { flex:0 0 auto; white-space:nowrap; }
.todo-go svg { width:13px; height:13px; vertical-align:-2px; margin-right:2px; }
#teacher-todos { display:flex; flex-direction:column; gap:8px; }
.todo-item { display:flex; align-items:center; gap:10px; }
.todo-item-text { flex:1; min-width:0; font-size:13px; color:#334155; line-height:1.6; }

/* 上课环境·课件批注（画圈+标签） */
.sc-anno-body { flex:1; position:relative; min-height:0; display:flex; flex-direction:column; }
.sc-anno-body .sc-present-media, .sc-anno-body .sc-present-frame { position:static; }
.sc-anno-canvas { position:absolute; inset:0; width:100%; height:100%; z-index:6; pointer-events:none; touch-action:none; }
.sc-anno-canvas.anno-draw { pointer-events:auto; cursor:crosshair; }
.sc-anno-canvas.anno-mark { pointer-events:auto; cursor:copy; }
.sc-anno-marks { position:absolute; inset:0; z-index:7; pointer-events:none; }
.anno-chip { position:absolute; transform:translate(-50%,-50%); background:rgba(255,255,255,.92); border:2px solid #EF4444; color:#EF4444; font-size:13px; font-weight:700; padding:2px 10px; border-radius:999px; white-space:nowrap; box-shadow:0 2px 8px rgba(0,0,0,.18); pointer-events:auto; cursor:default; }
.sc-anno-hints { position:absolute; top:10px; left:10px; z-index:8; display:none; flex-direction:column; gap:6px; max-width:46%; pointer-events:none; }
.anno-hint-title { font-size:12px; font-weight:700; color:#1E293B; background:rgba(255,255,255,.9); border-radius:8px; padding:4px 10px; width:fit-content; }
.anno-hint-item { display:flex; align-items:center; gap:8px; background:rgba(255,255,255,.94); border-left:4px solid #EF4444; border-radius:8px; padding:6px 10px; font-size:13px; color:#1E293B; box-shadow:0 2px 10px rgba(0,0,0,.15); pointer-events:auto; }
.anno-hint-note { color:#475569; font-size:12px; }
.anno-hint-x { cursor:pointer; color:#94A3B8; font-weight:700; padding:0 4px; }
.anno-hint-x:hover { color:#EF4444; }
.sc-anno-hints .btn { pointer-events:auto; width:fit-content; }
.sc-anno-tb { display:flex; align-items:center; flex-wrap:wrap; gap:6px; padding:6px 14px; background:#F8FAFC; border-top:1px solid #E5E9F0; }
.sc-anno-tools { display:flex; align-items:center; flex-wrap:wrap; gap:6px; width:100%; }
.sc-anno-label { font-size:12px; font-weight:700; color:#475569; }
.sc-anno-colors { display:flex; gap:4px; align-items:center; }
.sc-anno-size { width:70px; }
.sc-anno-tip { font-size:12px; color:#D97706; font-weight:600; }
.sc-anno-tb svg { width:13px; height:13px; vertical-align:-2px; margin-right:2px; }
/* 添加标记弹窗内标签选择 */
.anno-tag-pick { display:flex; flex-wrap:wrap; gap:8px; }
.anno-tag-opt { display:inline-flex; align-items:center; gap:5px; border:2px solid #E2E8F0; border-radius:999px; padding:5px 14px; font-size:13px; font-weight:600; cursor:pointer; background:#fff; }
.anno-tag-opt input { accent-color:#2563EB; }


/* ==================== 上课环境：专注模式 / 浏览器全屏 / 缩放 / 加载态（v=20260831a） ==================== */
/* 专注模式：隐藏顶栏与侧栏，内容铺满 */
#sc-overlay.sc-focus .sc-topbar,
#sc-overlay.sc-focus .sc-sidebar { display:none !important; }
#sc-overlay.sc-focus .sc-stage { width:100%; }
.sc-float-restore { position:fixed; top:14px; left:14px; z-index:4020; background:rgba(30,41,59,.92); color:#fff; border:none; padding:9px 16px; border-radius:999px; font-size:13px; cursor:pointer; box-shadow:0 4px 16px rgba(0,0,0,.25); }
.sc-float-restore:hover { background:#2563EB; }
/* 侧栏收起 */
#sc-overlay .sc-sidebar.sc-sidebar-hidden { display:none !important; }
/* 浏览器原生全屏时 overlay 铺满 */
#sc-overlay.sc-browser-fs { width:100vw; height:100vh; }
#sc-overlay:fullscreen { width:100vw; height:100vh; }
/* CSS 回退全屏 */
#sc-overlay.sc-css-fs { position:fixed; inset:0; z-index:99999; }
/* 缩放控件 */
.sc-zoom-ctl { display:inline-flex; align-items:center; gap:4px; background:#fff; border:1px solid #E2E8F0; border-radius:8px; padding:2px 6px; }
.sc-zoom-ctl .btn { padding:2px 8px; }
.sc-zoom-ctl span { font-size:12px; color:#475569; font-variant-numeric:tabular-nums; }
/* 投屏加载态 */
.sc-present-loading { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:16px; color:#64748B; font-size:14px; background:#fff; }
.sc-spinner { width:38px; height:38px; border:3px solid #E2E8F0; border-top-color:#2563EB; border-radius:50%; animation:scSpin .8s linear infinite; }
@keyframes scSpin { to { transform:rotate(360deg); } }
.sc-present-layer { opacity:0; transition:opacity .25s ease; }
.sc-present-layer.sc-present-ready { opacity:1; }
/* 标签选择浮层（课堂全屏内） */
.sc-mark-editor { position:absolute; z-index:20; top:16px; left:50%; transform:translateX(-50%); width:min(440px,92%); background:#fff; border-radius:14px; box-shadow:0 12px 44px rgba(15,23,42,.28); padding:16px 18px; border:1px solid #E5E9F0; }
.sc-mark-title { font-weight:700; font-size:14px; color:#1E293B; margin-bottom:10px; }
.sc-mark-editor .anno-tag-pick { margin-bottom:4px; }
.anno-chip-tag { display:inline-block; border:1.5px solid #2563EB; color:#2563EB; border-radius:999px; padding:0 6px; font-size:12px; font-weight:700; line-height:1.7; margin-right:3px; background:rgba(255,255,255,.92); }
.sc-tools-float { position:fixed; top:14px; right:14px; z-index:4020; width:44px; height:44px; border-radius:50%; border:none; background:#2563EB; color:#fff; font-size:19px; cursor:pointer; box-shadow:0 4px 16px rgba(0,0,0,.25); align-items:center; justify-content:center; }
.sc-tools-float:hover { background:#1D4ED8; }

/* ==================== 上课环境：侧栏头/翻页/批注栏显隐/课管平铺课次（v=20260831b） ==================== */
/* 恢复界面按钮：固定右上角 */
.sc-float-restore { left:auto !important; right:14px; top:14px; }
/* 画笔浮动召回按钮：右下角 */
.sc-tools-float { top:auto !important; right:18px; bottom:18px; }
/* 侧栏顶部「资料清单 + 隐藏」 */
.sc-side-head { display:flex; align-items:center; justify-content:space-between; padding:10px 12px; border-bottom:1px solid #E2E8F0; background:#F8FAFC; border-radius:12px 12px 0 0; }
.sc-side-title { font-weight:700; font-size:14px; color:#1E293B; }
.sc-side-hide-btn { border:none; background:transparent; color:#2563EB; font-size:12px; cursor:pointer; font-weight:600; padding:2px 6px; border-radius:6px; }
.sc-side-hide-btn:hover { background:#EFF6FF; }
/* 侧栏收起后的浮动「« 资料」按钮 */
.sc-side-show { position:absolute; top:70px; left:14px; z-index:4015; background:rgba(37,99,235,.94); color:#fff; border:none; padding:8px 14px; border-radius:999px; font-size:13px; font-weight:600; cursor:pointer; box-shadow:0 4px 14px rgba(37,99,235,.4); align-items:center; gap:4px; }
.sc-side-show:hover { background:#1D4ED8; }
/* 投屏翻页控件（批注按页） */
.sc-page-ctl { display:inline-flex; align-items:center; gap:4px; background:#fff; border:1px solid #E2E8F0; border-radius:8px; padding:2px 6px; }
.sc-page-ctl .btn { padding:2px 8px; }
/* 批注工具条隐藏（全屏/专注默认隐藏，可再展开） */
#sc-overlay .sc-anno-tb.sc-anno-tb-hidden { display:none !important; }
/* 批注工具条浮动召回按钮 */
.sc-anno-float { position:fixed; right:18px; bottom:74px; z-index:4020; background:rgba(239,68,68,.94); color:#fff; border:none; width:44px; height:44px; border-radius:50%; font-size:18px; cursor:pointer; box-shadow:0 4px 16px rgba(239,68,68,.4); align-items:center; justify-content:center; }
.sc-anno-float:hover { background:#DC2626; }
/* 文件后缀徽标 */
.sc-res-ext { display:inline-block; margin-left:6px; font-size:10px; font-weight:700; color:#64748B; background:#F1F5F9; border:1px solid #E2E8F0; border-radius:4px; padding:0 4px; text-transform:uppercase; vertical-align:1px; }
.sc-res-name { display:inline-flex; align-items:center; min-width:0; }
/* 题库推荐分组标题里的换一批按钮对齐 */
.sc-prac-group .sc-res-group-title { display:flex; align-items:center; }
/* 课管页：课次平铺列表（宽度铺满，不用弹框） */
.lesson-flat-list { margin-top:18px; display:flex; flex-direction:column; gap:16px; }
.lesson-flat-item { background:#fff; border:1px solid #E5E9F0; border-radius:10px; padding:14px 16px; box-shadow:0 1px 3px rgba(15,23,42,.05); scroll-margin-top:80px; }
.lesson-flat-head { display:flex; align-items:center; gap:10px; margin-bottom:10px; flex-wrap:wrap; }
.lesson-flat-title { font-size:15px; color:#1E293B; }
.lesson-flat-state { font-size:12px; font-weight:700; }
.lesson-flat-date { font-size:12px; color:#94A3B8; margin-left:auto; }
.lesson-flat-item.lesson-flat-flash { box-shadow:0 0 0 3px rgba(37,99,235,.35); animation:flatFlash 1.6s ease; }
@keyframes flatFlash { 0%,60% { box-shadow:0 0 0 3px rgba(37,99,235,.45); } 100% { box-shadow:0 1px 3px rgba(15,23,42,.05); } }
/* 平铺模式下隐藏旧的空 island-detail-panel */
.island-detail-flat { display:none !important; }

/* ==================== 上课环境：标记（按页）+ 缩放滚动 + Office/PDF 工具栏裁剪 + 白板修复（v=20260831c） ==================== */
/* 标记展示容器：相对定位，内含 媒体/iframe 区 + 标记 chip 层 + 点击捕获层 */
.sc-mark-body { position:relative; flex:1; min-height:0; display:flex; flex-direction:column; overflow:hidden; background:#0F172A; }
.sc-mark-body .sc-frame-scroll, .sc-mark-body .sc-present-media { position:relative; z-index:1; }
/* 标记 chip 层（不拦截鼠标；chip 自身可点） */
.sc-marks { position:absolute; inset:0; z-index:7; pointer-events:none; overflow:hidden; }
/* 点击捕获层：默认不拦截（iframe 可正常滚动/翻页）；「加标记」模式才开启 */
.sc-mark-catch { position:absolute; inset:0; z-index:6; pointer-events:none; }
.sc-mark-catch.mark-catch-on, .sc-mark-body.marking .sc-mark-catch { pointer-events:auto; cursor:copy; background:rgba(37,99,235,.06); }
.anno-mark { position:absolute; transform:translate(-6px,-50%); display:inline-flex; align-items:center; gap:3px; pointer-events:auto; cursor:default; white-space:nowrap; }
.anno-mark-flag { width:20px; height:20px; border-radius:50%; color:#fff; display:inline-flex; align-items:center; justify-content:center; font-size:11px; box-shadow:0 1px 4px rgba(0,0,0,.35); flex:0 0 20px; }
/* 标记编辑器：按点击位置定位（v=c 覆盖旧的顶部居中） */
.sc-mark-editor { position:absolute; z-index:12; width:min(380px,86%); background:#fff; border-radius:14px; box-shadow:0 14px 48px rgba(15,23,42,.35); padding:14px 16px; border:1px solid #E5E9F0; transform:translate(10px,-50%); }
/* 点击位置靠近右/下边缘时翻转，避免超出 */
.sc-mark-editor.me-flip-x { transform:translate(calc(-100% - 10px),-50%); }
.sc-mark-editor.me-flip-y { transform:translate(10px,10px); }
.sc-mark-editor.me-flip-x.me-flip-y { transform:translate(calc(-100% - 10px),10px); }
.sc-mark-editor .anno-tag-opt { padding:4px 12px; font-size:12px; }

/* 缩放滚动容器：内层放大，外层 overflow:auto 可滚动查看 */
.sc-frame-scroll { flex:1; min-height:0; overflow:auto; background:#525659; }
.sc-frame-clip { position:relative; width:100%; height:100%; min-height:100%; background:#fff; }
.sc-frame-clip iframe { position:absolute; inset:0; width:100%; height:100%; border:none; display:block; background:#fff; }
/* 图片缩放：内层自适应宽度，zoom/scale 后滚动 */
.sc-zoom-img { position:relative; width:100%; min-height:100%; display:flex; align-items:flex-start; justify-content:center; background:#0F172A; padding:12px; box-sizing:border-box; }
.sc-zoom-img img { max-width:100%; height:auto; display:block; box-shadow:0 8px 40px rgba(0,0,0,.5); border-radius:4px; }

/* PDF：隐藏自带工具栏（#toolbar=0 由 URL 控制），深色查看器背景 */
.sc-clip-pdf { background:#525659; }
/* Office Online：裁掉顶部自带功能条（下载/保存到 OneDrive/编辑副本/辅助功能等） */
.sc-clip-office { overflow:hidden; }
.sc-clip-office iframe { top:-46px; height:calc(100% + 46px); }
/* 残留工具栏遮罩（白色盖住最顶部缝隙） */
.sc-frame-toolbar-mask { position:absolute; top:0; left:0; right:0; height:6px; background:#fff; z-index:3; pointer-events:none; }

/* 白板画布：保证在投屏层之下、背景之上，指针可用 */
#sc-board { z-index:1; }
.sc-canvas-hold { z-index:auto; }
.sc-present-layer { z-index:5; }

/* 标记工具条「本页 N 个」计数 */
.sc-anno-count { font-size:12px; color:#2563EB; font-weight:700; background:#EFF6FF; border:1px solid #DBEAFE; border-radius:999px; padding:1px 10px; }
/* 隐藏废弃的画圈画布（防御：即便残留旧 DOM 也不拦截） */
#sc-anno-canvas { display:none !important; }

/* ==================== 上课环境 v=d：框选解题/拓展/训练 + 裁剪结构修复 ==================== */
/* 标记层容器：相对定位 + 滚动 + 裁剪上下文（放大滚动、PDF/Office 工具条裁剪都依赖它） */
.sc-mark-body { position:relative; flex:1; min-height:0; overflow:auto; background:#333845; -webkit-overflow-scrolling:touch; }
/* 缩放/定位参照物：随 zoom 缩放，内部绝对定位的标记/方框/拦截层一起缩放滚动 */
#sc-zoom-target.sc-zoom-target { position:relative; width:100%; min-height:100%; }
/* 媒体铺满参照区（图片自适应宽度居中） */
.sc-zoom-media { display:block; border:0; }
.sc-mark-body-image #sc-zoom-target { width:100%; min-height:100%; display:flex; align-items:flex-start; justify-content:center; background:#0F172A; padding:12px; box-sizing:border-box; }
.sc-mark-body-image .sc-zoom-media { max-width:100%; height:auto; box-shadow:0 8px 40px rgba(0,0,0,.5); border-radius:4px; }
/* PDF：iframe 铺满容器，负顶部偏移裁掉自带工具栏（#toolbar=0 + 容器 overflow:hidden） */
.sc-mark-body-pdf, .sc-mark-body-pdf #sc-zoom-target { overflow:hidden; background:#525659; }
.sc-mark-body-pdf .sc-clip-pdf.sc-zoom-media { position:absolute; left:0; right:0; bottom:0; height:calc(100% + 52px); top:-52px; background:#525659; width:100%; }
/* Office Online：.sc-clip-office 有界容器 overflow:hidden，iframe top:-50px 高度补回，裁掉自带功能条 */
.sc-mark-body-office #sc-zoom-target { width:100%; height:100%; }
.sc-mark-body-office .sc-clip-office { position:absolute; inset:0; overflow:hidden; background:#fff; }
.sc-mark-body-office .sc-clip-office iframe.sc-zoom-media { position:absolute; left:0; right:0; top:-50px; width:100%; height:calc(100% + 92px); border:0; }
.sc-mark-body-office .sc-frame-toolbar-mask { position:absolute; top:0; left:0; right:0; height:8px; background:#fff; z-index:3; pointer-events:none; }
/* 链接类网页：iframe 铺满可滚动 */
.sc-mark-body-link .sc-zoom-media { position:absolute; inset:0; width:100%; height:100%; border:0; background:#fff; }
/* 标记 chip 层 / 方框层 / 点击拦截层（都在 #sc-zoom-target 内，随缩放滚动） */
.sc-marks, .sc-boxes { position:absolute; inset:0; z-index:7; pointer-events:none; overflow:visible; }
.sc-mark-catch { position:absolute; inset:0; z-index:6; pointer-events:none; }
.sc-mark-catch.mark-catch-on { pointer-events:auto; cursor:copy; }
.sc-mark-catch.box-catch-on { pointer-events:auto; cursor:crosshair; }
/* 框选方框 */
.sc-box { position:absolute; border:2px solid #F59E0B; background:rgba(245,158,11,.08); box-sizing:border-box; pointer-events:auto; }
.sc-box-live { border-style:dashed; border-color:#38BDF8; background:rgba(56,189,248,.10); pointer-events:none; }
.sc-box-del { position:absolute; top:-12px; right:-12px; width:22px; height:22px; border-radius:50%; border:0; background:#DC2626; color:#fff; font-size:14px; line-height:1; cursor:pointer; box-shadow:0 2px 6px rgba(0,0,0,.3); z-index:2; }
.sc-box-actions { position:absolute; left:0; top:100%; margin-top:6px; display:flex; gap:6px; pointer-events:auto; white-space:nowrap; }
.sc-box-btn { border:0; border-radius:999px; padding:5px 12px; font-size:12px; font-weight:700; color:#fff; cursor:pointer; box-shadow:0 3px 10px rgba(0,0,0,.35); }
.sc-box-solve { background:#2563EB; } .sc-box-solve:hover { background:#1D4ED8; }
.sc-box-extend { background:#10B981; } .sc-box-extend:hover { background:#059669; }
.sc-box-train { background:#F59E0B; } .sc-box-train:hover { background:#D97706; }
/* AI 流式侧边面板 */
.sc-ai-panel { position:absolute; top:0; right:0; bottom:0; width:min(440px, 42%); z-index:60; background:#fff; display:flex; flex-direction:column; box-shadow:-8px 0 32px rgba(0,0,0,.35); border-left:1px solid #E5E9F0; }
.sc-ai-head { display:flex; align-items:center; gap:10px; padding:12px 14px; border-bottom:1px solid #E5E9F0; background:#1E293B; color:#fff; }
.sc-ai-head b { font-size:15px; }
.sc-ai-meta { font-size:12px; color:#CBD5E1; flex:1; }
.sc-ai-close { margin-left:auto; border:0; background:transparent; color:#fff; font-size:22px; line-height:1; cursor:pointer; }
.sc-ai-body { flex:1; overflow-y:auto; padding:16px; font-size:14px; line-height:1.75; color:#1F2937; }
.sc-ai-body h4 { font-size:15px; margin:14px 0 6px; color:#1E293B; border-left:3px solid #2563EB; padding-left:8px; }
.sc-ai-body p { margin:6px 0; }
.sc-ai-body ul { margin:6px 0; padding-left:4px; list-style:none; }
.sc-ai-body ul li { margin:4px 0; padding-left:6px; }
.sc-ai-body ul.sc-ai-ol li { margin:6px 0; }
.sc-ai-body code { background:#F1F5F9; padding:1px 6px; border-radius:4px; font-size:12.5px; }
.sc-ai-body b { color:#111827; }
.sc-ai-caret { color:#2563EB; animation:scCaret 1s steps(1) infinite; }
@keyframes scCaret { 50% { opacity:0; } }
.sc-ai-loading { color:#64748B; display:flex; align-items:center; gap:8px; }
.sc-ai-err { color:#DC2626; background:#FEF2F2; border:1px solid #FECACA; border-radius:8px; padding:12px; }
.sc-ai-foot { display:flex; justify-content:flex-end; gap:8px; padding:10px 14px; border-top:1px solid #E5E9F0; background:#F8FAFC; }
/* 框选文字输入浮层（复用 sc-mark-editor 定位） */
#sc-box-text { z-index:8; }

/* ============================================================
   v=20260831e 覆写层
   ============================================================ */

/* ---------- 扁平化 SVG 图标（替代拟物 emoji） ---------- */
.ic { display:inline-flex; align-items:center; justify-content:center; vertical-align:-0.15em; flex:none; }
.ic svg, .ic { width:1em; height:1em; }
.ic-res { width:16px; height:16px; color:#64748B; }
.ic-res-file, .ic-res-file-sm { width:18px; height:18px; color:#64748B; flex:none; }
.ic-cw { width:16px; height:16px; color:#64748B; }
.ic-subjres { width:16px; height:16px; color:#64748B; }
.ic-pick { width:16px; height:16px; color:#64748B; }
.ic-sub { width:15px; height:15px; color:#64748B; }
.ic-kpres { width:14px; height:14px; color:#64748B; }
.ic-sc-res { width:15px; height:15px; color:#94A3B8; flex:none; }
.ic-inline { display:inline-flex; vertical-align:-0.15em; width:14px; height:14px; color:#64748B; }
.res-icon { display:inline-flex; align-items:center; justify-content:center; width:32px; height:32px; border-radius:8px; background:#F1F5F9; color:#64748B; flex:none; }

/* ---------- 课次流程工具栏：备课 → 添加资源 → 去上课 → 总结反思 ---------- */
.lesson-flow { display:flex; align-items:center; flex-wrap:wrap; gap:6px 4px; }
.lf-arrow { color:#CBD5E1; font-weight:700; font-size:14px; margin:0 2px; user-select:none; }
.lesson-content-toolbar .lf-btn { display:inline-flex; align-items:center; gap:5px; font-weight:600; }
.lesson-content-toolbar .lf-btn .ic { width:14px; height:14px; }
.lf-btn-prep { background:#0EA5E9 !important; color:#fff !important; border:0 !important; }
.lf-btn-res { background:#fff !important; color:#334155 !important; border:1px solid #CBD5E1 !important; }
.lf-btn-go { background:#10B981 !important; color:#fff !important; border:0 !important; }
.lf-btn-post { background:#EC4899 !important; color:#fff !important; border:0 !important; }
.lf-btn-locked { background:#F1F5F9 !important; color:#94A3B8 !important; border:1px dashed #CBD5E1 !important; cursor:pointer !important; }
.lf-flow-more { margin-left:6px; display:inline-flex; align-items:center; }

/* ---------- 教学目标标题行小图标 + 气泡 ---------- */
.lesson-title { display:flex; align-items:center; gap:7px; flex-wrap:wrap; }
.lesson-title-text { font-weight:700; color:#1E293B; }
.lesson-goal-icon { display:inline-flex; align-items:center; justify-content:center; width:22px; height:22px; border-radius:6px; border:1px solid #BFDBFE; background:#EFF6FF; color:#2563EB; cursor:help; padding:0; flex:none; }
.lesson-goal-icon .ic { width:13px; height:13px; }
.lesson-goal-icon:hover { background:#DBEAFE; }
.lesson-goal-pop { position:absolute; z-index:3200; width:300px; max-width:calc(100vw - 24px); background:#fff; border:1px solid #E5E9F0; border-radius:12px; box-shadow:0 12px 40px rgba(15,23,42,.18); padding:12px 14px; font-size:13px; line-height:1.7; color:#334155; }
.lesson-goal-pop .lgp-title { font-weight:700; color:#2563EB; margin-bottom:6px; }
.lesson-meta .lm-ic { display:inline-flex; vertical-align:-2px; width:13px; height:13px; color:#94A3B8; margin:0 2px 0 8px; }
.lesson-meta .lm-ic:first-child { margin-left:0; }

/* ---------- 批注工具条：隐藏按钮置最右 ---------- */
.sc-anno-tb .sc-anno-tools { display:flex; align-items:center; flex-wrap:wrap; gap:6px; }
.sc-anno-hide { margin-left:auto !important; font-weight:700; }

/* ---------- 自选题库提示 ---------- */
.sc-prac-hint { display:block; margin-top:6px; font-size:11.5px; color:#64748B; line-height:1.5; }

/* ---------- Office 嵌入版裁剪（embed.aspx 无自带工具栏，容器铺满） ---------- */
.sc-mark-body-office #sc-zoom-target { min-height:100%; }
.sc-mark-body-office .sc-clip-office { position:absolute; inset:0; overflow:hidden; border-radius:6px; background:#fff; }
.sc-mark-body-office .sc-clip-office iframe.sc-zoom-media { position:absolute; inset:0; width:100%; height:100%; border:0; }
.sc-mark-body-pdf .sc-clip-pdf { position:absolute; inset:0; width:100%; height:100%; border:0; background:#525659; }
.sc-frame-toolbar-mask { display:none !important; }

/* ---------- 成长档案统计卡铺满（6 列） ---------- */
.rpt-stat-row { display:grid; grid-template-columns:repeat(6, 1fr); gap:12px; }
@media (max-width:1100px){ .rpt-stat-row { grid-template-columns:repeat(3,1fr); } }
@media (max-width:640px){ .rpt-stat-row { grid-template-columns:repeat(2,1fr); } }
.rpt-skill-summary { margin-top:10px; padding:10px 12px; background:#F8FAFC; border-radius:8px; font-size:12.5px; color:#475569; line-height:1.7; }

/* ---------- 成绩录入表列宽：姓名/成绩窄、个人分析宽 ---------- */
.qe-student-row { display:grid; grid-template-columns:34px 118px 78px minmax(220px,1fr); gap:8px; align-items:start; padding:8px 6px; border-bottom:1px solid #F1F5F9; }
.qe-name { font-size:13px; line-height:1.3; overflow:hidden; }
.qe-name small { display:block; color:#94A3B8; font-size:11px; }
.qe-score-input { width:100% !important; max-width:78px; text-align:center; font-weight:700; }
.qe-note-wrap { min-width:0; }
.qe-note-input { width:100%; min-height:54px !important; resize:vertical; font-size:13px; line-height:1.6; }
.qe-wrong-row { display:flex; flex-wrap:wrap; gap:6px; margin-top:5px; }

/* ---------- 登录记住密码 ---------- */
.login-remember-row { display:flex; align-items:center; margin:2px 0 6px; }
.login-remember { display:flex; align-items:center; gap:7px; font-size:13px; color:#475569; cursor:pointer; user-select:none; }
.login-remember input { width:15px; height:15px; accent-color:#2563EB; cursor:pointer; }

/* ---------- 资源管理筛选（管理资源库隐藏部分筛选后布局） ---------- */
#res-filter-grid { transition:grid-template-columns .2s; }

/* ==================== 上课环境 v=20260831f：全屏极简 / 白板弹层 / 双指缩放 ==================== */
/* 全屏极简：恢复按钮放左上，避开 iPad 全屏系统右上角叉号 + 安全区 */
.sc-float-restore {
  top: calc(18px + env(safe-area-inset-top, 0px)) !important;
  left: calc(16px + env(safe-area-inset-left, 0px)) !important;
  right: auto !important;
  z-index: 4060;
}
.sc-tools-float {
  right: calc(20px + env(safe-area-inset-right, 0px)) !important;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px)) !important;
  top: auto !important;
  z-index: 4060;
}
/* 全屏态整个内容区域铺满（隐藏侧栏后舞台全宽） */
#sc-overlay.sc-browser-fs .sc-stage,
#sc-overlay.sc-css-fs .sc-stage { width:100%; }
/* 投屏层：去除底部条/批注条后纯媒体铺满，媒体区可双指缩放滚动 */
.sc-present-layer { display:flex; flex-direction:column; }
.sc-mark-body { position:absolute; inset:0; overflow:auto; background:#525659; -webkit-overflow-scrolling:touch; }
.sc-zoom-target { position:relative; margin:auto; min-width:100%; }
.sc-mark-body-image, .sc-mark-body-link { display:flex; align-items:flex-start; justify-content:center; }
.sc-mark-body-image .sc-zoom-target { width:auto; height:auto; min-width:0; }
.sc-mark-body-image .sc-zoom-media { display:block; max-width:none; margin:0 auto; }
.sc-mark-body-pdf .sc-zoom-target, .sc-mark-body-office .sc-zoom-target { width:100%; height:100%; min-height:100%; }
.sc-clip-pdf { width:100%; height:100%; min-height:calc(100vh - 0px); border:none; background:#525659; display:block; }
.sc-clip-office { position:absolute; inset:0; overflow:hidden; }
.sc-clip-office iframe { position:absolute; top:0; left:0; width:100%; height:100%; border:none; }
.sc-mark-body-link .sc-zoom-media { width:100%; height:100vh; border:none; background:#fff; }

/* ==================== 白板弹层（覆盖课件之上，可上下无限滑动） ==================== */
.sc-wb {
  position:absolute; inset:0; z-index:50;
  background:rgba(248,250,252,.97);
  display:flex; flex-direction:column;
  animation: scWbIn .18s ease;
}
@keyframes scWbIn { from { opacity:0; } to { opacity:1; } }
.sc-wb-bar {
  display:flex; align-items:center; gap:12px; flex-wrap:wrap;
  padding:8px 14px; background:#fff; border-bottom:1px solid #E5E9F0;
  box-shadow:0 2px 10px rgba(15,23,42,.06);
  padding-top: calc(8px + env(safe-area-inset-top, 0px));
}
.sc-wb-title { font-weight:700; font-size:15px; color:#1E293B; display:inline-flex; align-items:center; gap:6px; white-space:nowrap; }
.sc-wb-tools { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-left:auto; }
.sc-wb-colors { display:inline-flex; align-items:center; gap:5px; }
.sc-wb-scroll {
  flex:1; overflow-y:auto; overflow-x:hidden;
  background:
    linear-gradient(#fff 0 0) padding-box;
  background-color:#fff;
  background-image: radial-gradient(rgba(37,99,235,.12) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-overflow-scrolling:touch;
}
#sc-wb-canvas { display:block; background:transparent; cursor:crosshair; touch-action:pan-y; }

/* ==================== 课次流程按钮：全部直显（允许换行，不省略） ==================== */
.lesson-flow { flex-wrap:wrap; gap:6px; }
.lf-btn-test { background:#F1F5F9; color:#334155; border:1px solid #E2E8F0; }
.lf-btn-test:hover { background:#E2E8F0; }
.lesson-flow .lf-arrow { color:#CBD5E1; }

/* 全屏课堂顶栏给 iPad 系统叉号留安全间距 */
#sc-overlay .sc-topbar { padding-top: calc(8px + env(safe-area-inset-top, 0px)); }
#sc-overlay .sc-top-right { padding-right: env(safe-area-inset-right, 0px); }

/* ==================== 上课环境 v=20260831h：投屏保留画笔/橡皮 + 极简态工具栏常驻 ==================== */
/* 投屏时白板画布变为透明覆盖层（盖在课件之上，z-index 高于投屏层） */
#sc-board.sc-board-overlay {
  background: transparent !important;
  z-index: 8;
  pointer-events: none;            /* 默认穿透：可滚动/翻页/点击课件 */
}
#sc-board.sc-board-overlay.boarding { pointer-events: auto; }  /* 画笔/橡皮激活时才接管指针 */
/* 左上角独立「恢复界面」浮动按钮不再使用（恢复入口内置在画笔工具栏最左侧） */
.sc-float-restore { display:none !important; }
/* 极简（全屏）态画笔工具栏常驻，深色半透明悬浮在顶部，不遮挡课件 */
#sc-overlay.sc-browser-fs .sc-toolbar,
#sc-overlay.sc-css-fs .sc-toolbar,
#sc-overlay.sc-minimal .sc-toolbar {
  position:absolute; top: calc(8px + env(safe-area-inset-top, 0px)); left:50%; transform:translateX(-50%);
  z-index:30; flex-wrap:nowrap; width:auto; max-width:96vw; overflow-x:auto;
  background:rgba(255,255,255,.94); border:1px solid rgba(226,232,240,.9);
  border-radius:12px; box-shadow:0 6px 24px rgba(15,23,42,.18);
  padding:6px 12px; gap:10px; backdrop-filter:blur(6px);
}
/* 极简态舞台内容顶部留出工具栏高度，避免课件被悬浮工具栏盖住 */
#sc-overlay.sc-browser-fs .sc-stage,
#sc-overlay.sc-css-fs .sc-stage,
#sc-overlay.sc-minimal .sc-stage { position:relative; padding-top:52px; box-sizing:border-box; }
.sc-restore-entry { font-weight:700; white-space:nowrap; }
/* 画笔召回浮动按钮（仅手动隐藏工具栏后出现）保持右下角，避开安全区 */
.sc-tools-float { z-index:4070 !important; }

/* ==================== 上课环境 v=20260831i：画笔批注直接画在课件源上 + 课件铺满 ==================== */
/* 批注画布盖在缩放目标上（随源文件滚动/缩放同步），默认穿透，仅画笔/橡皮激活时接管指针 */
#sc-zoom-target { position:relative; }
#sc-doc-ink {
  position:absolute; inset:0; z-index:7;
  background:transparent; pointer-events:none; touch-action:none;
}
#sc-doc-ink.boarding { pointer-events:auto; cursor:crosshair; }
/* 主白板画布在投屏时隐藏（批注走课件源画布） */
/* 课件铺满：投屏区背景改白，Office/PDF/图片尽可能占满显示区，减少黑边/空白 */
.sc-present-layer, .sc-mark-body { background:#fff; }
.sc-mark-body-pdf, .sc-mark-body-pdf #sc-zoom-target { background:#fff; }
.sc-mark-body-office, .sc-mark-body-office #sc-zoom-target { background:#fff; }
.sc-mark-body-office .sc-clip-office { background:#fff; }
.sc-mark-body-image { background:#fff; }
.sc-mark-body-image .sc-zoom-media { width:100%; max-width:100%; height:auto; box-shadow:none; border-radius:0; }
.sc-mark-body-image #sc-zoom-target { width:100% !important; min-width:100% !important; padding:0 !important; }
/* 独立白板弹层工具仍作用于白板自身（不受投屏批注影响） */

/* 成长档案概览卡：无成绩说明块填充留白 */
.rpt-skill-summary.rpt-skill-empty { display:block; line-height:1.9; }
.rpt-skill-summary.rpt-skill-empty span { display:block; }

/* ==================== v=s：成长档案周期切换 + 考试明细 + 导出 + 雷达/概览等高 ==================== */
/* 雷达卡与概览卡等高（flex 拉伸，内部图表/网格顶对齐、小结沉底） */
.rpt-grid-grow { align-items:stretch !important; }
.rpt-grid-grow > .rpt-card { display:flex; flex-direction:column; height:auto; align-self:stretch; }
.rpt-grid-grow > .rpt-card .chart-box-sm { flex:0 0 auto; }
.rpt-grid-grow > .rpt-card .rpt-radar-legend { margin-top:auto; }
.rpt-grid-grow > .rpt-card .rpt-skill-list { flex:1 1 auto; align-content:start; }
.rpt-grid-grow > .rpt-card .rpt-skill-summary { margin-top:auto; }

/* 导出工具栏（右上） */
.rpt-export-bar { display:flex; justify-content:flex-end; gap:8px; margin-bottom:10px; }
.rpt-export-bar .btn { display:inline-flex; align-items:center; gap:5px; }
.rpt-export-bar .btn .ic { width:15px; height:15px; }
/* 周期切换栏 */
.rpt-period-bar { display:flex; align-items:center; flex-wrap:wrap; gap:8px; background:#fff; border:1px solid #ECEFF4; border-radius:10px; padding:10px 14px; margin-bottom:12px; }
.rpt-period-label { font-size:13px; font-weight:600; color:#475569; }
.rpt-period-chip { border:1px solid #DBE3EE; background:#F8FAFC; color:#475569; font-size:12.5px; padding:5px 14px; border-radius:999px; cursor:pointer; transition:all .15s; }
.rpt-period-chip:hover { border-color:#93C5FD; background:#EFF6FF; color:#2563EB; }
.rpt-period-chip.active { background:#2563EB; border-color:#2563EB; color:#fff; font-weight:600; }

/* 各学科考试明细 */
.rpt-ex-card { padding:16px 18px; }
.rpt-ex-subj { margin-bottom:18px; }
.rpt-ex-subj:last-child { margin-bottom:0; }
.rpt-ex-subj-head { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; margin-bottom:8px; }
.rpt-ex-subj-name { font-size:14px; font-weight:700; color:#1E293B; display:inline-flex; align-items:center; gap:6px; }
.rpt-ex-subj-name::before { content:''; width:4px; height:14px; border-radius:2px; background:#2563EB; display:inline-block; }
.rpt-ex-subj-stat { font-size:12px; color:#64748B; }
.rpt-ex-table { width:100%; min-width:760px; }
.rpt-ex-table th { font-size:12px; white-space:nowrap; }
.rpt-ex-table td { font-size:12.5px; white-space:nowrap; }
.rpt-ex-table td.cell-wrap { white-space:normal; font-weight:600; color:#1E293B; }
.rpt-ex-period { color:#64748B; font-size:12px; }
.rpt-level-tag { display:inline-block; padding:1px 10px; border-radius:999px; border:1px solid; font-size:11px; font-weight:700; line-height:1.6; }
@media (max-width:640px){
  .rpt-ex-table { min-width:680px; }
}

/* ===== v=t：成长档案 · 考试列收窄 / 概览条形图与雷达等高 / 跨周期成长记录 ===== */
/* 考试明细表：固定列宽，「考试」列不再自动撑满 */
.rpt-ex-table { table-layout:fixed; min-width:820px; }
.rpt-ex-table th, .rpt-ex-table td { white-space:nowrap; padding:8px 10px; }
.rpt-ex-table td.cell-wrap { white-space:normal; word-break:break-all; line-height:1.35; }
/* 概览卡：横向条形图铺满，与左侧雷达卡同高 */
.rpt-ov-card { display:flex; flex-direction:column; }
.rpt-ov-card .chart-box-sm { flex:1; min-height:260px; }
.rpt-ov-card .rpt-skill-summary { margin-top:auto; }
/* 成长记录：跨周期对比柱状图 + 表格 */
.rpt-cmp-card { padding:16px 18px; }
.rpt-cmp-card .chart-box-sm { height:280px; margin-bottom:14px; }
.rpt-cmp-table { width:100%; }
.rpt-cmp-table th { font-size:12px; text-align:center; white-space:nowrap; background:#F8FAFC; }
.rpt-cmp-table th.rpt-cmp-cur { color:#2563EB; }
.rpt-cmp-table th small { color:#94A3B8; font-weight:500; margin-left:2px; }
.rpt-cmp-table td { font-size:12.5px; text-align:center; white-space:nowrap; }
.rpt-cmp-sub { text-align:left !important; font-weight:700; color:#1E293B; }
.rpt-cmp-cur { background:#EFF6FF; }
.rpt-cmp-na { color:#CBD5E1; }
.rpt-cmp-note { margin-top:10px; font-size:11.5px; color:#94A3B8; line-height:1.6; }
@media (max-width:640px){
  .rpt-cmp-card .chart-box-sm { height:240px; }
}

/* ==================== v=20260902a 资源后缀徽标 / 文字错乱修复 / 流程工具栏 ==================== */
/* 统一文件后缀徽标（任何文件资源都显示 .PDF/.PPTX 等） */
.res-ext-badge {
  display:inline-block; margin-left:6px; flex-shrink:0;
  font-size:10px; font-weight:800; letter-spacing:.3px; line-height:1.4;
  color:#64748B; background:#F1F5F9; border:1px solid #E2E8F0;
  border-radius:4px; padding:0 5px; text-transform:uppercase;
  vertical-align:1px; white-space:nowrap; font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
}
/* 资源名：单行省略，避免逐字换行/竖排错乱 */
.res-title { display:flex; align-items:center; flex-wrap:wrap; gap:2px; min-width:0; }
.res-name-text {
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0;
  font-weight:600; color:#1E293B;
}
.res-info { overflow:hidden; }
.res-sub { flex-wrap:nowrap; min-width:0; }
.res-sub .res-tag { flex-shrink:0; }
.res-url { max-width:100%; }
.res-actions { align-items:center; }
/* 选用弹窗（机构资源库/学科资源）列表 */
.pick-res-label { display:flex !important; align-items:center; gap:10px; padding:10px 8px; }
.pick-res-info { display:flex; align-items:center; flex-wrap:wrap; gap:2px; min-width:0; }
.pick-res-name { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:100%; }
/* 课堂环境资源分组列表：名称单行省略，后缀徽标对齐 */
.sc-res-name { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sc-res-item { white-space:normal; }
.sc-res-item .res-ext-badge { margin-left:4px; }
/* 流程工具栏：新增 结课 / 测试次数 样式 */
.lf-btn { white-space:nowrap; display:inline-flex; align-items:center; gap:4px; }
.lf-btn-count {
  background:#ECFDF5; color:#059669; border:1px solid #A7F3D0; font-weight:700;
  cursor:pointer; padding:5px 10px; border-radius:6px; font-size:12px; margin-left:-6px;
}
.lf-btn-count:hover { background:#D1FAE5; }
.lf-btn-test-entered { background:#ECFDF5 !important; color:#059669 !important; border:1px solid #A7F3D0 !important; font-weight:700; }
.lf-btn-test-entered:hover { background:#D1FAE5 !important; }
.lf-finish { background:#16A34A !important; color:#fff !important; border:1px solid #16A34A; }
.lf-finish-done { background:#F0FDF4 !important; color:#16A34A !important; border:1px solid #BBF7D0; cursor:default; font-weight:700; }
.lf-finish-done:disabled { opacity:1; }
.lesson-flow { flex-wrap:wrap; align-items:center; gap:6px 4px; }

/* v=20260903a：课次进度紧凑整合（与计划进度合并、滞后红色） */
.ls-head{
  display:flex; align-items:center; gap:22px; flex-wrap:wrap;
  background:#fff; border:1px solid #E5E9F0; border-radius:12px;
  padding:12px 18px; margin-bottom:18px;
}
.ls-head-late{ border-color:#FECACA; background:#FEF7F7; }
.ls-chips{ display:flex; align-items:center; gap:14px; flex:none; }
.ls-chip{ display:inline-flex; align-items:center; gap:6px; font-size:13px; color:#475569; white-space:nowrap; }
.ls-chip b{ font-size:16px; font-weight:800; color:#1E293B; }
.ls-dot{ width:9px; height:9px; border-radius:50%; display:inline-block; flex:none; }
.ls-dot-done{ background:#16A34A; }
.ls-dot-over{ background:#DC2626; }
.ls-dot-lock{ background:#CBD5E1; }
.ls-prog{ flex:1; min-width:280px; }
.ls-pbar{ position:relative; height:12px; background:#EEF2F7; border-radius:7px; }
.ls-pbar-plan{
  position:absolute; left:0; top:0; height:100%;
  background:rgba(37,99,235,.16); border-radius:7px; transition:width .4s;
}
.ls-pbar-plan-tick{
  position:absolute; top:-3px; bottom:-3px; width:2px; background:#2563EB; border-radius:2px; opacity:.8;
}
.ls-pbar-done{
  position:absolute; left:0; top:0; height:100%;
  background:linear-gradient(90deg,#34D399,#16A34A); border-radius:7px; transition:width .4s;
}
.ls-pbar-late{ background:linear-gradient(90deg,#F87171,#DC2626); }
.ls-pbar-legend{ display:flex; align-items:center; gap:16px; flex-wrap:wrap; margin-top:7px; font-size:12px; color:#64748B; }
.ls-legend-item{ display:inline-flex; align-items:center; gap:5px; white-space:nowrap; }
.ls-sq{ width:10px; height:10px; border-radius:3px; display:inline-block; }
.ls-sq-done{ background:#16A34A; }
.ls-sq-plan{ background:rgba(37,99,235,.35); }
.ls-txt-ok{ color:#16A34A; }
.ls-txt-late{ color:#DC2626; }
.ls-txt-plan{ color:#2563EB; }
.ls-late-flag{ color:#DC2626; font-weight:700; margin-left:auto; white-space:nowrap; }
.ls-ok-flag{ color:#16A34A; font-weight:600; margin-left:auto; white-space:nowrap; }
@media (max-width:768px){
  .ls-head{ gap:10px; padding:10px 12px; }
  .ls-chips{ gap:10px; }
  .ls-prog{ min-width:100%; }
  .ls-late-flag,.ls-ok-flag{ margin-left:0; }
}

/* v=20260903a：考核详情头部（姓名放大 + 大字母等级） */
.ta-detail-head{ border-bottom:2px solid #F1F5F9; padding:4px 2px 12px; margin-bottom:14px; }
.ta-dh-name{ display:flex; align-items:center; gap:14px; }
.ta-dh-nm{ font-size:26px; font-weight:800; color:#0F172A; line-height:1.2; }
.ta-dh-lv{
  font-size:40px; font-weight:900; line-height:1;
  font-family:"Arial Black",Arial,sans-serif; letter-spacing:-1px;
}
.ta-dh-sub{ margin-top:6px; font-size:13px; color:#64748B; }
.ta-dh-sub b{ color:#2563EB; font-size:15px; }

/* v=20260903a：测试录入统计卡一行窄卡 */
.qe-stats.qe-stats-inline{ display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:10px; margin:0; }
.qe-stats.qe-stats-inline .qe-stat{ padding:8px 12px; border-radius:8px; margin:0; }
.qe-stats.qe-stats-inline .qe-stat-label{ font-size:11px; }
.qe-stats.qe-stats-inline .qe-stat-value{ font-size:18px; line-height:1.3; }
.qe-stat-sub{ font-size:11px; color:#94A3B8; margin-top:1px; }
@media (max-width: 900px){
  .qe-stats.qe-stats-inline{ grid-template-columns:repeat(3,minmax(0,1fr)); }
}

/* v=20260903a：上课环境积分录入 */
.sc-points-bar{ background:#F8FAFC; border:1px solid #E2E8F0; border-radius:10px; padding:10px; margin-bottom:10px; display:flex; flex-direction:column; gap:6px; }
.sc-pr-chips{ display:flex; flex-wrap:wrap; gap:6px; }
.sc-pr-chip{ border:1px solid #E2E8F0; background:#fff; border-radius:999px; padding:3px 10px; font-size:12px; cursor:pointer; white-space:nowrap; }
.sc-pr-chip:hover{ border-color:#2563EB; }
.sc-pr-plus{ color:#059669; border-color:#A7F3D0; }
.sc-pr-minus{ color:#DC2626; border-color:#FECACA; }
.sc-pr-custom{ display:flex; gap:6px; align-items:center; margin-top:2px; }
.sc-points-list{ display:flex; flex-direction:column; gap:6px; max-height:52vh; overflow-y:auto; }
.sc-point-row{ display:flex; align-items:center; gap:8px; padding:7px 9px; border:1px solid #E5E9F0; border-radius:10px; background:#fff; cursor:pointer; }
.sc-point-row:hover{ border-color:#93C5FD; background:#F8FAFF; }
.sc-point-row.sc-pr-on{ border-color:#2563EB; box-shadow:0 0 0 2px rgba(37,99,235,.15); background:#EFF6FF; }
.sc-point-row .sc-roster-av{ width:32px; height:32px; font-size:14px; flex:none; }
.sc-pr-name{ font-size:13px; font-weight:700; color:#1E293B; }
.sc-pr-recent{ font-size:11px; color:#94A3B8; margin-top:1px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sc-pr-total{ font-size:16px; font-weight:800; flex:none; min-width:44px; text-align:right; }

/* v=20260903a：pad/全屏修复——画笔工具栏顶部居右、不换行防错位、资料悬浮按钮下移不遮挡 */
.sc-toolbar { justify-content:flex-end; flex-wrap:wrap; }
#sc-overlay.sc-browser-fs .sc-toolbar,
#sc-overlay.sc-css-fs .sc-toolbar,
#sc-overlay.sc-minimal .sc-toolbar {
  justify-content:flex-end !important;
  flex-wrap:nowrap !important;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  white-space:nowrap;
}
#sc-overlay .sc-toolbar .sc-tools-tail { flex:none; }
.sc-side-show { top:50% !important; left:8px !important; bottom:auto !important; transform:translateY(-50%); z-index:4016; }
.sc-restore-entry { white-space:nowrap; flex:none; }
@media (max-width:768px){
  .sc-toolbar { gap:8px; padding:7px 10px; }
  .sc-toolbar .btn-sm { padding:5px 9px; font-size:12px; }
  .sc-size { width:80px; }
}

/* ================================================================== */
/* v=20260903b：成绩录入右置加宽 / 资源选用行内预览下载 / pad 双指缩放 */
/* ================================================================== */

/* 测试录入编辑器：学生成绩录入在右侧且占更大宽度（左基本信息 360px，右成绩表自适应更宽） */
.quiz-editor-grid { grid-template-columns: 360px 1fr; }
.quiz-editor-right { order: 2; }
.quiz-editor-left { order: 1; }
@media (max-width: 1100px) {
  .quiz-editor-grid { grid-template-columns: 1fr; }
  .quiz-editor-right { order: 0; }
  .quiz-editor-left { order: 0; }
}

/* 「从资源库选用」弹窗：每行末尾的预览/下载按钮组 */
.pick-res-label { position: relative; }
.pick-res-acts { display: inline-flex; align-items: center; gap: 6px; flex: none; margin-left: 8px; }
.pick-res-acts .btn { padding: 3px 7px; display: inline-flex; align-items: center; }
.pick-res-acts .btn .ic, .pick-res-acts .btn svg { width: 14px; height: 14px; }
.pick-res-info { min-width: 0; }

/* pad 双指缩放：投屏区允许浏览器手势与自定义捏合缩放共存（单指可滚动、双指缩放由 _scBindPinch 接管） */
.sc-present-layer, .sc-mark-body { touch-action: pan-x pan-y; }
.sc-mark-body-image { touch-action: pan-x pan-y pinch-zoom; }

/* ================================================================== */
/* v=20260903c：上传进度条 / 点名名单选中态 / 课次积分录入 / 投屏浮动缩放 */
/* ================================================================== */

/* 添加资源：上传进度条（读取→上传→完成；失败变红） */
.res-upload-progress { margin: 10px 0 4px; padding: 10px 12px; background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 10px; }
.res-upload-progress .rup-label { font-size: 12px; color: #475569; margin-bottom: 6px; display: flex; justify-content: space-between; align-items: center; }
.res-upload-progress .rup-pct { font-weight: 800; color: #2563EB; font-variant-numeric: tabular-nums; }
.res-upload-progress .rup-track { height: 10px; background: #E2E8F0; border-radius: 999px; overflow: hidden; }
.res-upload-progress .rup-fill { height: 100%; width: 0%; border-radius: 999px; background: linear-gradient(90deg, #60A5FA, #2563EB); transition: width .2s ease; }
.res-upload-progress.rup-fail { border-color: #FECACA; background: #FEF2F2; }
.res-upload-progress.rup-fail .rup-label, .res-upload-progress.rup-fail .rup-pct { color: #DC2626; }
.res-upload-progress.rup-fail .rup-fill { background: #DC2626; }
.res-upload-progress.rup-done .rup-pct { color: #059669; }
.res-upload-progress.rup-done .rup-fill { background: linear-gradient(90deg, #34D399, #059669); }

/* 上课环境·点名名单：点击选中高亮（与积分录入行态一致） */
.sc-roster-item { cursor: pointer; transition: all .15s ease; }
.sc-roster-item.on { background: #EFF6FF; border-color: #2563EB; box-shadow: 0 0 0 2px rgba(37,99,235,.15); }
.sc-roster-item.on .sc-roster-av { background: #2563EB; color: #fff; }
.sc-roster-tip { font-size: 12px; color: #64748B; background: #F1F5F9; border-radius: 8px; padding: 6px 10px; margin-bottom: 8px; }

/* 课次流程工具栏：积分录入按钮（金色星） */
.lf-btn-points { background: #F59E0B; color: #fff; border: none; }
.lf-btn-points:hover { background: #D97706; }
.lf-btn-points .ic, .lf-btn-points svg { width: 14px; height: 14px; }

/* 投屏浮动缩放控件（pad 触屏可靠操作；不随内容滚动） */
.sc-zoom-float {
  position: absolute; top: 12px; right: 12px; z-index: 60;
  display: flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,.96); border: 1px solid #CBD5E1; border-radius: 12px;
  padding: 5px 8px; box-shadow: 0 4px 16px rgba(15,23,42,.18);
}
.sc-zf-btn {
  width: 40px; height: 40px; border: none; border-radius: 9px; background: #F1F5F9;
  font-size: 22px; font-weight: 800; color: #1E293B; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.sc-zf-btn:active { background: #DBEAFE; }
.sc-zf-btn .ic, .sc-zf-btn svg { width: 19px; height: 19px; }
.sc-zf-reset { width: 36px; height: 36px; font-size: 15px; color: #2563EB; }
.sc-zf-label {
  min-width: 62px; height: 40px; border: none; background: transparent;
  font-size: 15px; font-weight: 800; color: #2563EB; font-variant-numeric: tabular-nums;
  cursor: pointer; border-radius: 9px;
}
.sc-zf-label:active { background: #DBEAFE; }
/* 极简/全屏态缩放控件不被顶栏隐藏影响 */
#sc-overlay.sc-browser-fs .sc-zoom-float,
#sc-overlay.sc-css-fs .sc-zoom-float,
#sc-overlay.sc-minimal .sc-zoom-float { z-index: 80; top: 14px; }
/* 图片投屏层允许原生捏合缩放（与自定义手势协同） */
.sc-mark-body-image, .sc-mark-body-image img { touch-action: pan-x pan-y pinch-zoom; -webkit-user-drag: none; }

/* ===== v=20260903f 投屏 PDF/Word/PPT 内联展示（PDF.js / mammoth / Office Online）===== */
/* PDF：所有页渲染为 canvas 纵向排列，外层滚动；缩放由 #sc-zoom-target 的 zoom 承担 */
.sc-mark-body-pdf, .sc-mark-body-pdf #sc-zoom-target { background:#525659 !important; overflow:visible; }
.sc-pdf-view { width:100%; min-height:100%; padding:18px 0; display:flex; flex-direction:column; align-items:center; gap:18px; background:#525659; box-sizing:border-box; }
.sc-pdf-page-wrap { box-shadow:0 4px 24px rgba(0,0,0,.45); background:#fff; border-radius:2px; line-height:0; }
.sc-pdf-page { display:block; max-width:100%; }
.sc-pdf-iframe { width:100%; height:100%; border:0; background:#525659; display:block; }
/* Word：mammoth 转 HTML，白底"纸张"内滚动 */
.sc-mark-body-doc, .sc-mark-body-doc #sc-zoom-target { background:#E8ECF1 !important; }
.sc-docx-view { width:100%; min-height:100%; padding:24px 0; box-sizing:border-box; display:flex; justify-content:center; }
.sc-docx-paper { background:#fff; width:min(90%, 860px); padding:44px 52px; box-shadow:0 4px 24px rgba(0,0,0,.18); border-radius:3px; color:#1E293B; line-height:1.75; font-size:16px; box-sizing:border-box; }
.sc-docx-paper h1,.sc-docx-paper h2,.sc-docx-paper h3 { color:#0F172A; margin:.8em 0 .4em; }
.sc-docx-paper img { max-width:100%; }
.sc-docx-paper table { border-collapse:collapse; width:100%; }
.sc-docx-paper td,.sc-docx-paper th { border:1px solid #CBD5E1; padding:6px 10px; }
/* PPT/Excel：Office Online 内嵌（容器有界）；失败时容器内兜底卡片（不自动下载）*/
.sc-clip-office#sc-office-view { background:#fff; }
.sc-office-iframe { position:absolute; inset:0; width:100%; height:100%; border:0; }
.sc-office-fail, .sc-doc-fallback { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding:24px; background:#fff; z-index:5; box-sizing:border-box; }
.sc-mark-body-office .sc-doc-fallback { background:#F8FAFC; }
/* 加载态 */
.sc-doc-loading { grid-column:1/-1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; color:#E2E8F0; font-size:15px; width:100%; min-height:60vh; }
.sc-docx-view .sc-doc-loading, .sc-clip-office .sc-doc-loading { color:#64748B; }
.sc-pdf-view .sc-doc-loading { align-self:center; }
.sc-spinner { width:38px; height:38px; border:3px solid rgba(255,255,255,.25); border-top-color:#fff; border-radius:50%; animation:sc-spin .8s linear infinite; }
.sc-docx-view .sc-spinner, .sc-clip-office .sc-spinner { border-color:rgba(37,99,235,.2); border-top-color:#2563EB; }
@keyframes sc-spin { to { transform:rotate(360deg); } }

/* ==================== v=20260903g 导入预览确认框 / 关联班级搜索 ==================== */
.import-warn-box { background:#FFFBEB; border:1px solid #FDE68A; color:#92400E; border-radius:10px; padding:10px 14px; font-size:13px; line-height:1.7; margin:10px 0; }
.import-warn-box ul { margin:4px 0 0; padding-left:18px; }
.import-ok-box { background:#ECFDF5; border:1px solid #A7F3D0; color:#047857; border-radius:10px; padding:10px 14px; font-size:13px; margin:10px 0; }
.course-class-box .course-class-empty { font-size:13px; }
.form-modal-wide .data-table td, .form-modal-wide .data-table th { font-size:13px; }

/* ==================== v=20260903h 常用应用选择 / 跳转打开 ==================== */
.app-chooser { padding:4px 2px; }
.app-chooser-file { background:#F1F5F9; border-radius:8px; padding:10px 12px; font-size:13px; color:#475569; margin-bottom:12px; word-break:break-all; }
.app-pick-row { display:flex; align-items:center; gap:12px; width:100%; padding:12px 14px; background:#fff; border:1px solid #E2E8F0; border-radius:12px; margin-bottom:8px; cursor:pointer; text-align:left; transition:all .15s; }
.app-pick-row:hover { border-color:#2563EB; background:#EFF6FF; transform:translateX(2px); }
.app-pick-row.no-adapt { opacity:.55; cursor:not-allowed; }
.app-pick-icon { font-size:26px; width:40px; height:40px; display:flex; align-items:center; justify-content:center; background:#F8FAFC; border-radius:10px; flex-shrink:0; }
.app-pick-meta { flex:1; min-width:0; display:flex; flex-direction:column; }
.app-pick-meta b { font-size:15px; color:#1E293B; }
.app-pick-meta small { font-size:12px; color:#94A3B8; margin-top:2px; }
.app-pick-go { color:#2563EB; font-size:14px; font-weight:600; flex-shrink:0; }
.app-chooser-tip { background:#FFFBEB; border:1px solid #FDE68A; color:#92400E; border-radius:8px; padding:8px 12px; font-size:12px; line-height:1.6; margin-top:6px; }

.app-check-grid { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
@media(max-width:768px){ .app-check-grid { grid-template-columns:1fr; } }
.app-check { display:flex; align-items:center; gap:10px; padding:10px 12px; background:#fff; border:1px solid #E2E8F0; border-radius:10px; cursor:pointer; transition:all .15s; }
.app-check:hover { border-color:#93C5FD; }
.app-check.on { border-color:#2563EB; background:#EFF6FF; }
.app-check input { width:16px; height:16px; accent-color:#2563EB; flex-shrink:0; }
.app-check-icon { font-size:22px; width:32px; height:32px; display:flex; align-items:center; justify-content:center; background:#F8FAFC; border-radius:8px; flex-shrink:0; }
.app-check-meta { display:flex; flex-direction:column; min-width:0; }
.app-check-meta b { font-size:13.5px; color:#1E293B; }
.app-check-meta small { font-size:11px; color:#94A3B8; margin-top:1px; }

/* 投屏侧栏「打开」按钮 */
.sc-mini-btn.sc-mini-open { background:#ECFDF5; color:#047857; border:1px solid #A7F3D0; margin-left:4px; }
.sc-mini-btn.sc-mini-open:hover { background:#D1FAE5; }

/* ===== v=20260903h 投屏 PDF/Word 上下滚动修复（Pad 优先） ===== */
/* 投屏层自身成为滚动容器：PDF 多页/长 Word 内容可在投屏区上下滑动 */
#sc-present-layer { overflow-y:auto; overflow-x:hidden; -webkit-overflow-scrolling:touch; touch-action:pan-y pan-x; }
#sc-present-layer .sc-mark-body { min-height:100%; }
.sc-mark-body-pdf, .sc-mark-body-pdf #sc-zoom-target { overflow:visible !important; height:auto !important; min-height:100%; }
.sc-pdf-view { overflow:visible; min-height:100%; }
.sc-mark-body-doc { overflow:visible !important; height:auto !important; min-height:100%; }
.sc-docx-view { overflow:visible; min-height:100%; padding-bottom:60px; }
/* 图片/链接 iframe 等保持原有居中有界，不随文档滚动 */
.sc-mark-body-image { display:flex; align-items:center; justify-content:center; height:100%; }
.sc-mark-body-link, .sc-mark-body-office { height:100%; overflow:hidden; }
/* PDF 画布在缩放时保持清晰度 */
.sc-pdf-page { transform-origin:top center; }
/* 修正：滚动应在 mark-body 层（与白板批注层共存），而非 flex 投屏层本身 */
#sc-present-layer { overflow:visible; }
.sc-present-layer .sc-mark-body { position:absolute; inset:0; }
.sc-mark-body.sc-mark-body-pdf,
.sc-mark-body.sc-mark-body-doc { overflow-y:auto !important; overflow-x:hidden; -webkit-overflow-scrolling:touch; touch-action:pan-y pan-x; height:100% !important; }
.sc-mark-body-pdf #sc-zoom-target, .sc-mark-body-doc #sc-zoom-target { height:auto !important; min-height:100%; overflow:visible; }

/* ===== v=20260903i 我的应用（已安装登记）/ 系统分享 ===== */
.app-pick-row.app-pick-share { border-color:#2563EB; background:linear-gradient(135deg,#EFF6FF,#DBEAFE); }
.app-pick-row.app-pick-share b { color:#1E40AF; }
.app-custom-row { display:flex; align-items:center; gap:10px; padding:8px 10px; background:#fff; border:1px solid #E2E8F0; border-radius:10px; margin-bottom:6px; }
.app-custom-row .app-check-icon { font-size:20px; width:34px; height:34px; }
.app-custom-row .btn { margin-left:auto; flex-shrink:0; }
#open-apps-list .app-check-grid { margin-bottom:4px; }

/* ===== v=20260903l 下载完成弹框（回显+系统分享） ===== */
.dl-done-head { display:flex; align-items:center; gap:12px; margin-bottom:12px; }
.dl-done-ok { width:44px; height:44px; border-radius:50%; background:#DCFCE7; color:#16A34A; font-size:22px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.dl-done-file { background:#F8FAFC; border:1px solid #E2E8F0; border-radius:10px; padding:12px 14px; margin-bottom:6px; }
.dl-done-fname { font-weight:600; color:#1E293B; font-size:14px; word-break:break-all; }
.dl-done-meta { font-size:12.5px; color:#64748B; margin-top:6px; }
