/* ========== CSS Variables ========== */
:root {
  --primary: #2563EB;
  --primary-light: #3B82F6;
  --primary-dark: #1D4ED8;
  --primary-50: #EFF6FF;
  --primary-100: #DBEAFE;
  --primary-200: #BFDBFE;
  --bg: #F4F6FA;
  --sidebar-bg: #13233D;
  --sidebar-admin: #13233D;
  --sidebar-teacher: #13233D;
  --sidebar-student: #13233D;
  --card-bg: #FFFFFF;
  --text: #1E293B;
  --text-secondary: #64748B;
  --text-muted: #94A3B8;
  --border: #E5E9F0;
  --border-light: #EEF1F6;
  --success: #16A34A;
  --warning: #D97706;
  --danger: #DC2626;
  --info: #0EA5E9;
  --purple: #8B5CF6;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(15,23,42,.04), 0 2px 8px rgba(15,23,42,.05);
  --shadow-hover: 0 8px 24px rgba(15,23,42,.10);
}

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

/* ========== Login Page v2（校宝风格：顶栏 + 左图右表单） ========== */
.lg2 {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f4f7ff;
}

/* 顶部导航 */
.lg2-topbar {
  position: relative;
  height: 64px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: #fff;
  border-bottom: 1px solid #eef1f7;
}
.lg2-brand { display: flex; align-items: center; gap: 10px; }
.lg2-brand-logo {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  color: #2563eb;
}
.lg2-brand-logo svg { width: 26px; height: 26px; }
.lg2-brand-name { font-size: 19px; font-weight: 700; color: #1f2a44; letter-spacing: 0.5px; }
.lg2-topnav { display: flex; align-items: center; gap: 38px; }
.lg2-toplink {
  font-size: 15px; color: #4b5673; text-decoration: none; cursor: pointer;
  padding: 4px 2px; position: relative; transition: color 0.2s;
}
.lg2-toplink:hover { color: #2563eb; }
.lg2-toplink.active { color: #2563eb; font-weight: 600; }
.lg2-toplink.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -21px; height: 3px;
  background: #2563eb; border-radius: 3px;
}

/* 小程序二维码弹层 */
.lg2-qr-pop {
  position: absolute; top: 58px; right: 28px; z-index: 50;
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(0.96);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}
.lg2-qr-pop.show { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.lg2-qr-card {
  width: 188px; padding: 14px 14px 12px; background: #fff;
  border-radius: 14px; box-shadow: 0 14px 40px rgba(31,42,68,0.18);
  text-align: center; border: 1px solid #eef1f7;
}
.lg2-qr-card img { width: 160px; height: 160px; display: block; border-radius: 8px; }
.lg2-qr-card p { margin: 10px 0 0; font-size: 12.5px; color: #6b7693; line-height: 1.4; }

/* 主体：铺满剩余空间 */
.lg2-main {
  flex: 1 1 auto; display: flex; align-items: stretch;
  gap: 0; padding: 0;
}
.lg2-hero {
  flex: 1 1 auto; min-width: 0;
  border-radius: 0; overflow: hidden;
  background: linear-gradient(150deg, #2f7bff 0%, #2457e6 55%, #1d43c4 100%);
  position: relative;
}
.lg2-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 18%, rgba(255,255,255,0.22), transparent 42%),
              radial-gradient(circle at 82% 84%, rgba(255,255,255,0.14), transparent 46%);
  pointer-events: none;
}
.lg2-hero-stage { position: absolute; inset: 0; }
.lg2-hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; visibility: hidden;
}
.lg2-hero-img.active,
.lg2-hero-img[data-role="admin"]:first-child { opacity: 1; visibility: visible; }

/* 玻璃碎片过渡：旧图碎裂淡出 */
.lg2-hero-img.shatter-out {
  visibility: visible;
  animation: lg2ShatterOut 0.6s cubic-bezier(0.5, 0, 0.75, 0) forwards;
}
/* 新图碎片拼合淡入 */
.lg2-hero-img.shatter-in {
  visibility: visible;
  animation: lg2ShatterIn 0.66s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes lg2ShatterOut {
  0% { opacity: 1; transform: scale(1); filter: blur(0) brightness(1); clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
  35% { opacity: 0.9; clip-path: polygon(0 0, 62% 0, 38% 30%, 78% 48%, 30% 70%, 66% 100%, 0 100%); }
  100% { opacity: 0; transform: scale(1.06); filter: blur(6px) brightness(1.15); clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
}
@keyframes lg2ShatterIn {
  0% { opacity: 0; transform: scale(1.06); filter: blur(8px) brightness(1.2); clip-path: polygon(8% 12%, 70% 6%, 92% 34%, 64% 60%, 90% 88%, 38% 96%, 8% 78%, 26% 46%); }
  55% { opacity: 1; filter: blur(2px) brightness(1.05); clip-path: polygon(0 0, 78% 0, 100% 26%, 84% 52%, 100% 100%, 24% 100%, 0 72%, 12% 40%); }
  100% { opacity: 1; transform: scale(1); filter: blur(0) brightness(1); clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
}

/* 右侧登录面板 */
.lg2-panel {
  width: 460px; flex: 0 0 auto;
  background: #fff; border-radius: 0;
  padding: 48px 52px; display: flex; flex-direction: column;
  justify-content: center;
  box-shadow: none; border-left: 1px solid #eef1f7;
}
.lg2-tabs {
  display: flex; align-items: center; gap: 26px; margin-bottom: 40px;
}
.lg2-tab {
  position: relative; border: none; background: none; padding: 6px 0;
  font-size: 17px; color: #8a93ab; cursor: pointer; white-space: nowrap;
  transition: color 0.2s;
}
.lg2-tab:hover { color: #4b5673; }
.lg2-tab.active { color: #1f2a44; font-weight: 700; }

/* 登录区内输入框加高加大 */
.lg2-form .form-group { margin-bottom: 20px; }
.lg2-form .form-input {
  height: 50px; padding: 0 16px; font-size: 15px; border-radius: 10px;
}
.lg2-form .btn-login { padding: 15px; font-size: 17px; border-radius: 10px; margin-top: 4px; }
.lg2-form .login-remember-row { margin-bottom: 18px; }
.lg2-tab.active::after {
  content: ""; position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%);
  width: 22px; height: 3px; border-radius: 3px; background: #2563eb;
}
.lg2-form { display: flex; flex-direction: column; }

/* 响应式：窄屏隐藏左图 */
@media (max-width: 900px) {
  .lg2-hero { display: none; }
  .lg2-panel { border-left: none; width: 100%; max-width: 480px; margin: 0 auto; }
  .lg2-main { align-items: center; }
}
@media (max-width: 520px) {
  .lg2-topbar { padding: 0 18px; }
  .lg2-brand-name { font-size: 16px; }
  .lg2-topnav { gap: 22px; }
  .lg2-panel { padding: 30px 24px; }
  .lg2-tabs { gap: 14px; flex-wrap: wrap; }
}

/* ========== 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: 10px; }
.activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
}
.activity-item:hover { background: #F8FAFC; }
/* 未读：浅色强调底 + 左侧强调 */
.activity-item:not(.is-read) { background: #F5F8FF; border-color: #E3ECFD; }
.activity-item:not(.is-read):hover { background: #EEF4FF; }
.activity-item.is-read .activity-text { color: var(--text-secondary); }
.activity-item.is-read .activity-time { opacity: 0.75; }
.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; min-width: 0; }
.activity-time { font-size: 12px; color: var(--text-secondary); flex-shrink: 0; }

/* 动态工具栏 */
.activity-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.act-unread-count { font-size: 13px; color: var(--text-secondary); }
.act-unread-count b { color: var(--primary); font-size: 15px; margin: 0 2px; }
.btn-danger-ghost {
  background: transparent; color: var(--danger); border: 1px solid transparent;
}
.btn-danger-ghost:hover { background: #FEF2F2; border-color: #FECACA; }
.btn-sm { padding: 5px 12px; font-size: 13px; border-radius: 6px; }
.act-check { display: inline-flex; align-items: center; cursor: pointer; flex-shrink: 0; margin: 0; }
.act-check input { cursor: pointer; }
.act-read-btn {
  border: 1px solid var(--border); background: #fff; color: var(--text-secondary);
  font-size: 12px; padding: 2px 10px; border-radius: 999px; cursor: pointer; flex-shrink: 0;
  transition: all 0.15s;
}
.act-read-btn:hover { border-color: var(--primary); color: var(--primary); }
.act-read-btn.is-read { background: #ECFDF5; border-color: #A7F3D0; color: #059669; }
.act-read-btn.is-read:hover { border-color: var(--danger); color: var(--danger); background: #FEF2F2; }
.act-empty { color: #94A3B8; text-align: center; padding: 28px 20px; font-size: 14px; }

/* 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-extract { font-size:11px;padding:2px 8px;border-radius:6px;border:1px solid #16A34A;background:#16A34A;color:#fff;cursor:pointer;font-weight:600; }
.qe-wrong-extract:hover { background:#15803D;border-color:#15803D; }
.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-exam-row.qe-drag-over { outline:2px dashed #2563EB; outline-offset:-2px; background:#EFF6FF !important; border-radius:8px; }
.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;color:#fff;}
.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 加在遮罩上，遮罩必须全屏，限宽居中作用于内部 .modal */
.ta-modal{margin:0 !important; max-width:none !important;}
.ta-modal > .modal{max-width:1000px !important;}
#student-profile-modal.ta-modal{align-items:center !important;}
#student-profile-modal.ta-modal .modal-dialog,#student-profile-modal.ta-modal .modal-body{margin:0 auto;}
.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;}
.enroll-row.selected{background:#EFF6FF;}
.enroll-row.selected b{color:#1D4ED8;}
.enroll-row .trf-check{width:20px;height:20px;border-radius:50%;border:2px solid #CBD5E1;display:flex;align-items:center;justify-content:center;flex-shrink:0;font-size:12px;color:#fff;transition:all .12s;}
.enroll-row.selected .trf-check{border-color:#2563EB;background:#2563EB;}
.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 .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; }
/* 操作列固定在右侧：横向滚动时始终可见，无需拖动 */
.course-admin-table col.col-status { width:92px; }
.course-admin-table .col-status-cell { white-space:nowrap; }
.course-admin-table col.col-actions { width:360px; min-width:360px; }
.course-admin-table th.col-actions-sticky,
.course-admin-table td.col-actions-sticky {
  position: sticky;
  right: 0;
  z-index: 3;
  background: #fff;
  text-align: right;
  box-shadow: -6px 0 10px -8px rgba(15,23,42,.28);
}
.course-admin-table .col-actions-sticky .cell-actions { justify-content:flex-end; }
.course-admin-table .col-actions-sticky .cell-actions .btn { margin-left:5px; padding-left:9px; padding-right:9px; }
.course-admin-table thead th.col-actions-sticky { background: #F8FAFC; z-index: 5; }
.course-admin-table tr:hover td.col-actions-sticky { background: #FAFBFC; }
.course-admin-table tr.row-graduated td.col-actions-sticky { background: #F1F5F9; }

.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; white-space:nowrap; flex:none; }
.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; }

/* 结业：多班级选择 */
.gc-pick-list { display:flex; flex-direction:column; gap:8px; max-height:50vh; overflow:auto; }
.gc-pick-item { display:flex; align-items:center; gap:12px; padding:12px 14px; border:1.5px solid #E2E8F0; border-radius:10px; cursor:pointer; transition:all .15s; background:#fff; }
.gc-pick-item:hover { border-color:#93C5FD; background:#F8FAFF; }
.gc-pick-item input { width:16px; height:16px; accent-color:#2563EB; }
.gc-pick-item.is-done { opacity:.55; cursor:not-allowed; background:#F8FAFC; }
.gc-pick-name { font-weight:600; color:#1E293B; font-size:14px; }
.gc-pick-meta { font-size:12px; color:#64748B; margin-top:2px; }

/* --- 班级管理：班级全名 / 关联课程数 --- */
.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; display:inline-flex; align-items:center; gap:4px; }
.vc-teacher-select { font-size:12px; padding:3px 8px; border:1px solid #CBD5E1; border-radius:6px; background:#fff; color:#1E293B; cursor:pointer; max-width:150px; }
.vc-teacher-select:hover { border-color:#2563EB; }
.vc-teacher-select:focus { outline:none; border-color:#2563EB; box-shadow:0 0 0 2px rgba(37,99,235,.15); }

/* --- 扁平化 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-row.rpt-stat-row-4 { grid-template-columns:repeat(4,1fr); }
.rpt-stat-row-4 .rpt-stat-card { display:flex; flex-direction:column; justify-content:center; min-height:96px; }
.rpt-stat-row-4 .rpt-stat-value { font-size:28px; }
.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); } }
.qe-spinner { width:18px; height:18px; border:2px solid #CBD5E1; border-top-color:#2563EB; border-radius:50%; display:inline-block; animation:qeSpin .8s linear infinite; }
@keyframes qeSpin { to { transform:rotate(360deg); } }
/* 试卷图片内部 blob 标记异步回填的 loading 占位 */
.wz-imgloading { pointer-events:none; }
.wz-imgspin { width:22px; height:22px; border:2.5px solid #E2E8F0; border-top-color:#2563EB; border-radius:50%; display:inline-block; animation:wzImgSpin .8s linear infinite; }
@keyframes wzImgSpin { 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; justify-content:center; gap:5px; font-weight:600; text-align:center; }
.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; min-width:34px; height:20px; border-radius:6px; border:1px solid #BFDBFE; background:#EFF6FF; color:#2563EB; cursor:help; padding:0 6px; flex:none; font-size:11px; font-weight:600; }
.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, .rpt-stat-row.rpt-stat-row-4 { grid-template-columns:repeat(2,1fr); } }
@media (max-width:640px){ .rpt-stat-row, .rpt-stat-row.rpt-stat-row-4 { 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; justify-content:center; gap:4px; text-align:center; }
.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,max-content)); gap:8px; margin:0; width:max-content; max-width:100%; }
.qe-stats.qe-stats-inline .qe-stat{ padding:6px 14px; border-radius:8px; margin:0; }
.qe-stats.qe-stats-inline .qe-stat-label{ font-size:11px; margin-bottom:2px; }
.qe-stats.qe-stats-inline .qe-stat-value{ font-size:17px; line-height:1.25; }
.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)); }
}
/* 统计横条位于右栏顶部：等分铺满，与左栏「小测基本信息」卡顶端并排 */
.quiz-editor-right .qe-stats-card{ padding:14px 16px; }
.quiz-editor-right .qe-stats.qe-stats-inline{ grid-template-columns:repeat(6,minmax(0,1fr)); width:100%; }
.quiz-editor-right .qe-stats.qe-stats-inline .qe-stat{ text-align:center; padding:8px 6px; }

/* 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; }

.lp-batch-bar{ display:flex; align-items:center; gap:8px; margin:6px 0 8px; flex-wrap:wrap; }
.lp-batch-bar .btn-sm{ padding:5px 10px; font-size:12px; border-radius:8px; border:1px solid #E2E8F0; cursor:pointer; }
.lp-sel-count{ margin-left:auto; font-size:12px; font-weight:600; color:#2563EB; }
.sc-point-row .lp-check{ flex:0 0 auto; display:flex; align-items:center; }
.lp-box{ display:inline-flex; width:18px; height:18px; border:1.5px solid #CBD5E1; border-radius:5px; align-items:center; justify-content:center; font-size:12px; color:#fff; line-height:1; }
.lp-box.on{ background:#2563EB; border-color:#2563EB; }

.lp-del{ flex:0 0 auto; width:18px; height:18px; line-height:16px; text-align:center; border:none; background:#FEE2E2; color:#DC2626; border-radius:50%; font-size:10px; cursor:pointer; padding:0; margin-left:1px; }
.lp-del:hover{ background:#DC2626; color:#fff; }

.lp-draft-wrap{ margin:10px 0; border:1px dashed #BFDBFE; border-radius:10px; background:#F8FAFF; padding:8px 10px; }
.lp-draft-head{ font-size:13px; font-weight:600; color:#1D4ED8; display:flex; align-items:center; gap:8px; }
.lp-draft-head b{ color:#2563EB; }
.lp-draft-clear{ margin-left:auto; border:none; background:transparent; color:#64748B; font-size:12px; cursor:pointer; text-decoration:underline; }
.lp-draft-empty{ font-size:12px; color:#94A3B8; margin-top:6px; }
.lp-draft-list{ margin-top:6px; max-height:140px; overflow-y:auto; display:flex; flex-direction:column; gap:4px; }
.lp-draft-item{ display:flex; align-items:center; gap:8px; font-size:13px; background:#fff; border:1px solid #E2E8F0; border-radius:8px; padding:4px 8px; }
.lp-draft-name{ font-weight:600; color:#0F172A; }
.lp-draft-val{ font-weight:700; }
.lp-draft-val.plus{ color:#059669; }
.lp-draft-val.minus{ color:#DC2626; }
.lp-draft-reason{ color:#64748B; font-size:12px; flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.lp-footer{ display:flex; justify-content:flex-end; gap:10px; margin-top:14px; padding-top:12px; border-top:1px solid #EEF2F7; }
.lp-footer .btn{ min-width:120px; padding:9px 16px; border-radius:9px; font-weight:600; }
.lp-footer .btn:disabled{ opacity:.5; cursor:not-allowed; }
.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:3px; white-space:normal; display:flex; flex-wrap:wrap; align-items:center; gap:3px 6px; }
.lp-recorded-tag{ font-size:10px; font-weight:700; color:#64748B; background:#F1F5F9; border-radius:4px; padding:1px 5px; margin-right:2px; }
.sc-pr-total{ font-size:16px; font-weight:800; flex:none; min-width:52px; text-align:right; }
/* 学生名下待录入积分小标签（可点 ✕ 移除） */
.lp-chips{ display:flex; flex-wrap:wrap; gap:4px; margin-top:4px; }
.lp-chip{ display:inline-flex; align-items:center; gap:4px; font-size:12px; font-weight:700; line-height:1; padding:4px 8px; border-radius:999px; cursor:pointer; border:1px solid transparent; user-select:none; transition:all .15s; }
.lp-chip.plus{ background:#DCFCE7; color:#15803D; border-color:#86EFAC; }
.lp-chip.minus{ background:#FEE2E2; color:#B91C1C; border-color:#FCA5A5; }
.lp-chip:hover{ filter:brightness(.96); box-shadow:0 1px 4px rgba(0,0,0,.12); }
.lp-chip-x{ font-weight:800; opacity:.7; font-size:11px; }
.lp-chip:hover .lp-chip-x{ opacity:1; }

/* 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; }
.lf-btn-points.has-records { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.85); }
.lf-btn-points .point-done-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; margin-left: 6px;
  background: #16A34A; border-radius: 50%; flex: none;
}
.lf-btn-points .point-done-badge svg { width: 11px; height: 11px; color: #fff; stroke-width: 3; }

/* 投屏浮动缩放控件（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; }

/* ========== 通用批量操作工具栏 ========== */
.batch-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 6px 10px;
  font-size: 13px;
  color: #475569;
  background: transparent;
  border: none;
  margin-left: auto;   /* 放在查询/筛选栏右侧 */
  justify-content: flex-end;
}
.batch-toolbar .batch-sel-count {
  font-weight: 600;
  color: #1E293B;
  margin-right: 2px;
  white-space: nowrap;
}
.batch-toolbar .batch-act-btn {
  cursor: pointer;
  padding: 6px 12px;
  font-size: 13px;
}
.batch-toolbar .batch-act-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.batch-toolbar .batch-export-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  padding: 6px 12px;
  font-size: 13px;
}
#class-batch-bar {
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  margin-top: 10px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 10px;
}

/* ===== 积分商城（冻结-核销-撤回模型）v=20260909d ===== */
.shop-status-badge { display:inline-block; padding:3px 10px; border-radius:10px; font-size:12px; font-weight:600; white-space:nowrap; }
.shop-filter-bar { display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin-bottom:14px; }
.shop-thumb { width:40px; height:40px; border-radius:8px; object-fit:cover; flex-shrink:0; background:#F1F5F9; }
.shop-thumb-emoji, .shop-order-thumb.shop-thumb-emoji { display:flex; align-items:center; justify-content:center; font-size:20px; }

/* 学生积分三态卡片（蓝渐变） */
.shop-points-hero { background:linear-gradient(135deg,#2563EB 0%,#4F8DF7 100%); border-radius:16px; padding:20px 26px; display:flex; align-items:center; gap:18px; color:#fff; margin-bottom:18px; box-shadow:0 8px 24px rgba(37,99,235,.22); }
.shop-points-hero .sph-item { flex:1; text-align:center; }
.shop-points-hero .sph-label { font-size:13px; opacity:.85; margin-bottom:6px; }
.shop-points-hero .sph-value { font-size:30px; font-weight:800; line-height:1; }
.shop-points-hero .sph-frozen { color:#E2E8F0; }
.shop-points-hero .sph-avail { color:#FEF08A; }
.shop-points-hero .sph-divider { width:1px; height:42px; background:rgba(255,255,255,.25); }

/* 学生商品卡片网格 */
#page-student-shop .shop-grid, .shop-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:16px; }
.shop-card { background:#fff; border:1px solid #EEF2F7; border-radius:14px; overflow:hidden; cursor:pointer; transition:transform .18s ease, box-shadow .18s ease; box-shadow:0 2px 8px rgba(15,23,42,.05); display:flex; flex-direction:column; }
.shop-card:hover { transform:translateY(-3px); box-shadow:0 12px 28px rgba(37,99,235,.14); }
.shop-card.is-disabled { opacity:.55; filter:grayscale(.6); cursor:not-allowed; }
.shop-card.is-disabled:hover { transform:none; box-shadow:0 2px 8px rgba(15,23,42,.05); }
.shop-card-cover { height:150px; background:linear-gradient(135deg,#EFF6FF,#DBEAFE); display:flex; align-items:center; justify-content:center; font-size:56px; overflow:hidden; }
.shop-card-cover-img { width:100%; height:100%; object-fit:cover; display:block; }
.shop-card-cover-emoji { font-size:56px; }
.shop-card-body { padding:14px; display:flex; flex-direction:column; gap:8px; flex:1; }
.shop-card-name { font-weight:700; color:#1E293B; font-size:15px; line-height:1.4; min-height:42px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.shop-card-meta { display:flex; justify-content:space-between; align-items:center; }
.shop-card-points { color:#EA580C; font-weight:800; font-size:16px; }
.shop-card-stock { font-size:12px; color:#94A3B8; }
.shop-card-btn { width:100%; border:none; border-radius:10px; padding:10px; font-size:14px; font-weight:700; background:#EA580C; color:#fff; cursor:pointer; transition:background .15s; margin-top:auto; }
.shop-card-btn:hover:not(.is-disabled) { background:#D94F06; }
.shop-card-btn.is-disabled, .shop-card-btn:disabled { background:#E2E8F0; color:#94A3B8; cursor:not-allowed; }
.shop-redeem-btn { background:#EA580C !important; color:#fff !important; font-weight:700; padding:10px 28px; }
.shop-redeem-btn:disabled { background:#E2E8F0 !important; color:#94A3B8 !important; cursor:not-allowed; }

/* 学生订单卡片 */
.shop-order-card { display:flex; align-items:center; gap:14px; background:#fff; border:1px solid #EEF2F7; border-radius:12px; padding:14px 16px; margin-bottom:12px; box-shadow:0 2px 6px rgba(15,23,42,.04); }
.shop-order-thumb { width:52px; height:52px; border-radius:10px; object-fit:cover; background:#F1F5F9; flex-shrink:0; }
.shop-order-info { flex:1; min-width:0; }
.shop-order-name { font-weight:700; color:#1E293B; font-size:15px; }
.shop-order-meta { font-size:12px; color:#94A3B8; margin-top:5px; line-height:1.6; }

/* 商品详情弹窗 */
.spd-cover-img { width:100%; max-height:300px; object-fit:cover; border-radius:12px; display:block; }
.spd-cover-emoji { height:180px; display:flex; align-items:center; justify-content:center; font-size:88px; background:linear-gradient(135deg,#EFF6FF,#DBEAFE); border-radius:12px; margin-bottom:14px; }
.spd-name { font-size:22px; font-weight:800; color:#1E293B; margin:14px 0 8px; }
.spd-sub { display:flex; align-items:center; gap:14px; margin-bottom:16px; }
.spd-stock { font-size:13px; color:#94A3B8; }
.spd-section-title { font-size:14px; font-weight:700; color:#334155; margin:16px 0 8px; padding-top:14px; border-top:1px solid #F1F5F9; }
.spd-rich { font-size:14px; color:#334155; line-height:1.9; word-break:break-word; }
.spd-rich img { max-width:100%; border-radius:8px; margin:8px 0; }
.spd-tip { border-radius:10px; padding:12px 14px; font-size:13px; margin-top:16px; line-height:1.6; }
.spd-tip-blue { background:#EFF6FF; color:#1D4ED8; }
.spd-tip-red { background:#FEF2F2; color:#B91C1C; }
.spd-tip-gray { background:#F1F5F9; color:#64748B; }
.spd-actions { display:flex; gap:12px; justify-content:flex-end; margin-top:20px; }

/* 管理端商品行 */
.shop-admin-item { display:flex; gap:14px; align-items:center; padding:14px; border:1px solid #E2E8F0; border-radius:12px; margin-bottom:10px; background:#fff; }
.shop-admin-cover { width:64px; height:64px; border-radius:10px; object-fit:cover; background:#F1F5F9; flex-shrink:0; }
.shop-admin-cover-emoji { display:flex; align-items:center; justify-content:center; font-size:30px; }
.shop-redeem-cover { width:48px; height:48px; border-radius:10px; object-fit:cover; background:#F1F5F9; flex-shrink:0; }
.shop-redeem-cover-emoji { display:flex; align-items:center; justify-content:center; font-size:24px; }
.shop-detail-thumb { width:96px; height:96px; border-radius:12px; object-fit:cover; background:#F1F5F9; }

/* 商品表单 */
.shop-form-section { border:1px solid #EEF2F7; border-radius:12px; padding:16px 18px; margin-bottom:16px; background:#FBFCFE; }
.shop-form-section-title { font-weight:700; color:#1E293B; font-size:14px; margin-bottom:14px; }
.shop-switch-label { display:flex; align-items:center; gap:8px; font-size:13px; color:#475569; cursor:pointer; }
.shop-switch-label input { width:auto; }
.rt-toolbar { display:flex; gap:6px; margin-bottom:8px; }
.rt-btn { border:1px solid #CBD5E1; background:#fff; border-radius:6px; padding:5px 12px; font-size:13px; cursor:pointer; color:#334155; }
.rt-btn:hover { border-color:#2563EB; color:#2563EB; }
.rt-editor { min-height:150px; max-height:340px; overflow-y:auto; border:1px solid #CBD5E1; border-radius:8px; padding:12px; background:#fff; font-size:14px; line-height:1.8; color:#334155; outline:none; }
.rt-editor:focus { border-color:#2563EB; box-shadow:0 0 0 2px rgba(37,99,235,.12); }
.rt-editor:empty::before { content:attr(placeholder); color:#CBD5E1; }
.rt-editor img { max-width:100%; border-radius:8px; margin:6px 0; }

/* ===== 表单底部操作区（商城表单内联按钮，避免游离 footer 重复按钮） ===== */
.shop-form-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:18px; padding-top:14px; border-top:1px solid #E2E8F0; }
.shop-form-actions .btn { min-width:96px; }

/* ===== 核销弹框（订单信息卡 + 现场照片上传） ===== */
.vfy-modal { }
.vfy-order-card { display:flex; gap:14px; align-items:center; background:#F8FAFC; border:1px solid #E2E8F0; border-radius:12px; padding:14px; margin-bottom:14px; }
.vfy-thumb-wrap { flex-shrink:0; }
.vfy-thumb { width:72px; height:72px; border-radius:10px; object-fit:cover; border:1px solid #E2E8F0; background:#fff; display:block; }
.vfy-thumb-emoji { display:flex; align-items:center; justify-content:center; font-size:36px; background:linear-gradient(135deg,#DBEAFE,#EFF6FF); }
.vfy-order-info { flex:1; min-width:0; }
.vfy-order-no { font-size:12px; color:#94A3B8; }
.vfy-product-name { font-size:17px; font-weight:700; color:#1E293B; margin:2px 0; }
.vfy-student { font-size:13px; color:#475569; }
.vfy-points { font-size:13px; color:#B45309; margin-top:4px; }
.vfy-points b { font-size:16px; }
.vfy-upload-tip { font-size:12px; color:#94A3B8; line-height:1.7; margin:6px 0 10px; }
.vfy-img-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(110px, 1fr)); gap:10px; margin-bottom:12px; }
.vfy-img-item { position:relative; aspect-ratio:1/1; border-radius:10px; overflow:hidden; border:1px solid #E2E8F0; background:#F1F5F9; }
.vfy-img-item img { width:100%; height:100%; object-fit:cover; display:block; }
.vfy-img-loading { display:flex; align-items:center; justify-content:center; height:100%; color:#94A3B8; font-size:12px; }
.vfy-img-del { position:absolute; top:4px; right:4px; width:22px; height:22px; border-radius:50%; border:none; background:rgba(15,23,42,.65); color:#fff; font-size:12px; line-height:1; cursor:pointer; display:flex; align-items:center; justify-content:center; }
.vfy-img-del:hover { background:#DC2626; }
.vfy-empty { grid-column:1/-1; text-align:center; color:#CBD5E1; font-size:13px; padding:22px 0; border:1px dashed #E2E8F0; border-radius:10px; }
.vfy-detail-img:hover { outline:2px solid #2563EB; }

/* ============================================================
   移动端适配（v=20260910a）
   约定：≥768px 完全保留原 PC 布局；仅 <768px 启用手机适配。
   原 1024px 断点把侧边栏隐藏但无汉堡按钮，导致平板(768~1024)无法打开菜单；
   这里在 768~1024 区间恢复 PC 式常驻侧栏，<768 才改为汉堡侧滑。
   ============================================================ */

/* ---- 平板区间 768~1024px：恢复 PC 常驻侧边栏（覆盖旧的 1024 隐藏规则） ---- */
@media (min-width: 768px) and (max-width: 1024px) {
  .sidebar { transform: none !important; width: 240px; }
  .main-content { margin-left: 240px; width: calc(100vw - 240px); max-width: calc(100vw - 240px); }
  #mobile-nav-toggle, #mobile-nav-overlay { display: none !important; }
}

/* ---- 汉堡按钮与遮罩：桌面端隐藏，仅手机端显示 ---- */
#mobile-nav-toggle {
  display: none;
  position: fixed; top: 12px; left: 12px; z-index: 1200;
  width: 44px; height: 44px; border-radius: 10px;
  border: 1px solid #E2E8F0; background: #fff;
  box-shadow: 0 4px 14px rgba(15,23,42,.14);
  align-items: center; justify-content: center;
  cursor: pointer; padding: 0;
}
#mobile-nav-toggle svg { width: 24px; height: 24px; stroke: #1E293B; }
#mobile-nav-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(15,23,42,.45);
}
#mobile-nav-overlay.show { display: block; }

/* ---- 手机端 <768px ---- */
@media (max-width: 767px) {
  /* 汉堡按钮显示 */
  #mobile-nav-toggle { display: flex; }

  /* 侧边栏改为侧滑抽屉 */
  .sidebar {
    transform: translateX(-100%);
    transition: transform .28s ease;
    width: 78vw; max-width: 300px;
    z-index: 1201;
    box-shadow: 0 0 40px rgba(0,0,0,.35);
  }
  .sidebar.open { transform: translateX(0); }
  .main-content {
    margin-left: 0;
    width: 100vw; max-width: 100vw;
    padding: 64px 14px 28px;   /* 顶部留出汉堡按钮空间 */
  }

  /* 页面标题收紧 */
  .page-header h1 { font-size: 19px; }
  .page-header .page-desc { font-size: 13px; }

  /* 统计卡片单列、数字放大 */
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-card { padding: 14px; }
  .stat-value { font-size: 22px; }

  /* 表格：外层横向滚动，不压缩文字 */
  .main-content .table-scroll,
  .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
  .data-table { min-width: 560px; white-space: nowrap; }
  .data-table th, .data-table td { white-space: nowrap; }

  /* 弹窗：最大宽度 90% 贴边，内容自适应不溢出 */
  .modal-overlay { padding: 12px; }
  .modal, .form-modal { width: 92vw !important; max-width: 92vw !important; }
  .form-modal-wide { width: 94vw !important; max-width: 94vw !important; }
  .modal-body, .form-modal-body { padding: 16px !important; max-height: 80vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .modal-header, .form-modal-header { padding: 14px 16px; }

  /* 弹窗内图片/富文本等比缩放，防横向溢出 */
  .modal-body img, .form-modal-body img, .spd-rich img, .rt-editor img,
  .vfy-img-item img, .shop-thumb, .shop-detail-thumb { max-width: 100%; height: auto; }
  .spd-cover-img, .shop-card-cover-img { width: 100%; height: auto; object-fit: cover; }

  /* ===== 积分商城：单列卡片 + 放大积分/按钮 ===== */
  #page-student-shop .shop-grid, .shop-grid { grid-template-columns: 1fr; gap: 14px; }
  .shop-card { border-radius: 16px; }
  .shop-card-body { padding: 16px; }
  .shop-card-cover { height: 190px; }
  .shop-card-name { font-size: 16px; }
  .shop-card-points { font-size: 20px; font-weight: 800; }
  .shop-card-btn { min-height: 46px; font-size: 16px; }   /* 加大点击区域 */
  .shop-redeem-btn { min-height: 46px; font-size: 16px; padding: 12px 22px; }

  /* 三态积分卡：纵向堆叠、数字放大 */
  .shop-points-hero { flex-direction: column; gap: 14px; padding: 20px 16px; }
  .shop-points-hero .sph-divider { width: 80%; height: 1px; }
  .shop-points-hero .sph-value { font-size: 34px; }
  .shop-points-hero .sph-item { display: flex; align-items: center; justify-content: space-between; width: 100%; }
  .shop-points-hero .sph-label { margin-bottom: 0; }

  /* 商品详情弹窗 */
  .spd-cover-img, .spd-cover { width: 100%; max-height: 240px; object-fit: cover; border-radius: 12px; }
  .spd-name { font-size: 19px; }
  .spd-actions { flex-direction: column; }
  .spd-actions .btn { width: 100%; min-height: 46px; font-size: 16px; }

  /* 核销弹窗订单卡纵向 */
  .vfy-order-card { flex-direction: column; align-items: flex-start; text-align: left; }
  .vfy-img-grid { grid-template-columns: repeat(3, 1fr); }

  /* 通用按钮在手机上增高，便于点击 */
  .btn { min-height: 40px; }
  .btn-sm { min-height: 36px; }

  /* 表单控件全宽 */
  .form-input, .form-select, select.form-input, input.form-input { width: 100%; min-width: 0; box-sizing: border-box; }

  /* 关闭 hover 位移/阴影（触屏无 hover，避免点击后残留高亮） */
  .shop-card:hover { transform: none; box-shadow: 0 2px 8px rgba(15,23,42,.05); }
  .course-card:hover, .stat-card:hover, .nav-item:hover { transform: none; }

  /* 筛选栏纵向 */
  .filter-bar, .shop-toolbar { flex-direction: column; align-items: stretch; gap: 10px; }
}

/* ============================================================
   学生端新模块：课程日历 / 我的学情 / 教学记录 / 成绩详情 / 积分活动 (v=20260911a)
   ============================================================ */

/* ---- 课程日历 ---- */
.cal-card { background:#fff; border-radius:14px; box-shadow:0 2px 10px rgba(15,23,42,.05); border:1px solid #EEF2F7; padding:16px; margin-bottom:20px; }
.cal-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
.cal-title { font-size:18px; font-weight:700; color:#1E293B; }
.cal-nav { min-width:76px; }
.cal-grid { }
.cal-weekrow { display:grid; grid-template-columns:repeat(7,1fr); gap:6px; margin-bottom:6px; }
.cal-week { text-align:center; font-size:13px; font-weight:600; color:#94A3B8; padding:6px 0; }
.cal-cells { display:grid; grid-template-columns:repeat(7,1fr); gap:6px; }
.cal-cell { position:relative; min-height:88px; border:1px solid #EEF2F7; border-radius:10px; padding:6px; background:#fff; overflow:hidden; }
.cal-blank { background:transparent; border:none; }
.cal-date { font-size:14px; font-weight:600; color:#64748B; line-height:1; }
.cal-cell.is-today { border-color:#2563EB; background:#EFF6FF; }
.cal-cell.is-today .cal-date { color:#2563EB; }
.cal-cell.has-lesson { background:#F8FAFF; border-color:#DBEAFE; cursor:pointer; transition:background .15s; }
.cal-cell.has-lesson:hover { background:#DBEAFE; }
.cal-subj-wrap { margin-top:6px; display:flex; flex-direction:column; gap:2px; }
.cal-subj { font-size:11px; line-height:1.3; color:#1D4ED8; background:#DBEAFE; border-radius:4px; padding:2px 4px; font-weight:500; }
.cal-subj.cal-more { color:#64748B; background:transparent; padding:0 4px; }
.cal-empty { text-align:center; color:#94A3B8; padding:26px 0; font-size:14px; }
.calday-item { border:1px solid #EEF2F7; border-radius:10px; padding:12px; margin-bottom:10px; }
.calday-top { display:flex; align-items:center; gap:8px; margin-bottom:6px; }
.calday-title { font-weight:600; color:#1E293B; font-size:14px; }
.calday-meta { font-size:12px; color:#94A3B8; }

/* ---- 我的学情（只读档案） ---- */
.dz-card { background:#fff; border-radius:14px; box-shadow:0 2px 10px rgba(15,23,42,.05); border:1px solid #EEF2F7; padding:18px; margin-bottom:16px; }
.dz-section-title { font-size:15px; font-weight:700; color:#1E293B; margin-bottom:14px; padding-left:10px; border-left:4px solid #2563EB; }
.dz-info-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:12px; }
.dz-field { display:flex; flex-direction:column; gap:4px; background:#F8FAFC; border-radius:8px; padding:10px 12px; }
.dz-label { font-size:12px; color:#94A3B8; }
.dz-value { font-size:15px; font-weight:600; color:#1E293B; }
.dz-tags { display:flex; flex-wrap:wrap; gap:8px; }
.dz-tag { font-size:13px; font-weight:600; padding:6px 14px; border-radius:20px; }
.dz-subj-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:12px; }
.dz-subj-card { background:#F8FAFC; border-radius:10px; padding:14px; text-align:center; }
.dz-subj-name { font-size:14px; font-weight:600; color:#64748B; }
.dz-subj-avg { font-size:26px; font-weight:800; margin:6px 0 2px; }
.dz-subj-meta { font-size:12px; color:#94A3B8; }
.dz-note { display:flex; gap:10px; padding:10px 0; border-bottom:1px solid #F1F5F9; }
.dz-note:last-child { border-bottom:none; }
.dz-note-dot { width:8px; height:8px; border-radius:50%; margin-top:7px; flex-shrink:0; }
.dz-note-text { font-size:14px; color:#334155; line-height:1.6; }
.dz-note-meta { font-size:12px; color:#94A3B8; margin-top:3px; }

/* ---- 教学记录（瀑布流） ---- */
.rec-toolbar { display:flex; align-items:center; gap:12px; margin-bottom:16px; }
.rec-filter { max-width:200px; }
.rec-count { font-size:13px; color:#94A3B8; }
.rec-masonry { column-count:3; column-gap:16px; }
.rec-card { break-inside:avoid; margin-bottom:16px; background:#fff; border-radius:14px; border:1px solid #EEF2F7; box-shadow:0 2px 8px rgba(15,23,42,.05); padding:16px; display:inline-block; width:100%; }
.rec-card-head { display:flex; align-items:center; gap:8px; margin-bottom:8px; }
.rec-kind { font-size:11px; font-weight:600; padding:2px 8px; border-radius:10px; }
.rec-kind-sum { background:#DCFCE7; color:#15803D; }
.rec-kind-ref { background:#FEF3C7; color:#B45309; }
.rec-card-title { font-size:15px; font-weight:700; color:#1E293B; }
.rec-card-date { font-size:12px; color:#94A3B8; margin:3px 0 10px; }
.rec-card-body { font-size:14px; color:#475569; line-height:1.7; }
.rec-card-body img { max-width:100%; height:auto; border-radius:8px; margin:6px 0; }
.rec-sentinel { height:30px; }
.rec-empty { text-align:center; color:#94A3B8; padding:40px 0; font-size:14px; }
@media (max-width:1024px) { .rec-masonry { column-count:2; } }
@media (max-width:767px) { .rec-masonry { column-count:1; } }

/* ---- 成绩详情弹窗 ---- */
.gd-hero { text-align:center; background:linear-gradient(135deg,#EFF6FF,#F8FAFC); border-radius:12px; padding:20px; margin-bottom:16px; }
.gd-subj { font-size:14px; color:#64748B; margin-bottom:6px; }
.gd-score { font-size:44px; font-weight:800; line-height:1; }
.gd-total { font-size:18px; color:#94A3B8; font-weight:600; }
.gd-pct { font-size:13px; color:#64748B; margin-top:6px; }
.gd-section-title { font-size:14px; font-weight:700; color:#1E293B; margin-bottom:10px; }
.gd-compare { background:#F8FAFC; border-radius:10px; padding:14px; margin-bottom:10px; }
.gcmp-row { display:flex; align-items:center; gap:10px; margin-bottom:8px; }
.gcmp-row:last-child { margin-bottom:0; }
.gcmp-label { width:74px; font-size:12px; color:#64748B; flex-shrink:0; }
.gcmp-bar { flex:1; position:relative; height:22px; background:#E2E8F0; border-radius:6px; overflow:hidden; }
.gcmp-bar-fill { height:100%; border-radius:6px; transition:width .4s; }
.gcmp-bar-val { position:absolute; right:8px; top:0; font-size:12px; font-weight:700; color:#1E293B; line-height:22px; }
.gd-rank-line { font-size:13px; color:#475569; padding:8px 4px; }

/* ---- 积分活动（管理端） ---- */
.shop-act-layout { display:grid; grid-template-columns:320px 1fr; gap:18px; }
.shop-act-left { background:#fff; border:1px solid #EEF2F7; border-radius:12px; padding:14px; max-height:70vh; overflow-y:auto; }
.shop-act-left-head { margin-bottom:10px; }
.shop-act-student-list { display:flex; flex-direction:column; gap:8px; }
.shop-act-student { padding:10px 12px; border:1px solid #EEF2F7; border-radius:10px; cursor:pointer; transition:all .15s; }

.shop-act-batch-bar { display:flex; align-items:center; gap:8px; margin:8px 0 10px; flex-wrap:wrap; }
.shop-act-batch-bar .btn-sm { padding:5px 10px; font-size:12px; border-radius:8px; border:1px solid #E2E8F0; cursor:pointer; }
.shop-act-count { font-size:12px; color:#2563EB; font-weight:600; margin-left:auto; }
.shop-act-student { display:flex; align-items:flex-start; gap:10px; }
.shop-act-check { flex:0 0 auto; padding-top:1px; }
.shop-act-box { display:inline-flex; width:18px; height:18px; border:1.5px solid #CBD5E1; border-radius:5px; align-items:center; justify-content:center; font-size:12px; color:#fff; line-height:1; }
.shop-act-box.on { background:#2563EB; border-color:#2563EB; }
.shop-act-st-info { flex:1; min-width:0; }
.shop-act-chips { display:flex; flex-wrap:wrap; gap:6px; margin:8px 0 12px; max-height:120px; overflow-y:auto; }
.shop-act-chip { background:#EFF6FF; color:#1D4ED8; border:1px solid #BFDBFE; border-radius:999px; padding:3px 10px; font-size:12px; }
.shop-act-dir { display:flex; gap:10px; }
.shop-act-dir-btn { flex:1; padding:10px; border-radius:10px; border:1.5px solid #E2E8F0; background:#fff; font-size:14px; font-weight:600; cursor:pointer; transition:all .15s; color:#64748B; }
.shop-act-dir-btn:hover { border-color:#93C5FD; }
.shop-act-dir-btn.add.on { border-color:#16A34A; background:#F0FDF4; color:#15803D; }
.shop-act-dir-btn.sub.on { border-color:#DC2626; background:#FEF2F2; color:#B91C1C; }
.shop-act-student:hover { border-color:#93C5FD; background:#F8FAFF; }
.shop-act-student.active { border-color:#2563EB; background:#EFF6FF; box-shadow:0 0 0 1px #2563EB inset; }
.shop-act-st-name { font-size:14px; font-weight:600; color:#1E293B; }
.shop-act-st-no { font-size:12px; color:#94A3B8; font-weight:400; margin-left:6px; }
.shop-act-st-pts { font-size:12px; color:#64748B; margin-top:3px; }
.shop-act-st-pts b { color:#D97706; }
.shop-act-empty { text-align:center; color:#94A3B8; padding:30px 0; font-size:13px; }
.shop-act-right { }
.shop-act-placeholder { text-align:center; color:#94A3B8; padding:60px 20px; border:2px dashed #E2E8F0; border-radius:12px; font-size:14px; }
.shop-act-card { background:#fff; border:1px solid #EEF2F7; border-radius:12px; padding:20px; }
.shop-act-who { font-size:16px; color:#1E293B; margin-bottom:4px; }
.shop-act-points-now { font-size:13px; color:#64748B; margin-bottom:16px; padding-bottom:14px; border-bottom:1px solid #F1F5F9; }
.shop-act-points-now b { color:#D97706; }
.shop-form-group { margin-bottom:14px; }
.shop-form-group label { display:block; font-size:13px; font-weight:600; color:#334155; margin-bottom:6px; }
.shop-form-hint { font-size:12px; color:#94A3B8; margin-top:4px; }
@media (max-width:767px) {
  .cal-cell { min-height:58px; padding:4px; }
  .cal-subj { font-size:10px; padding:1px 3px; }
  .cal-date { font-size:12px; }
  .cal-week { font-size:12px; }
  .shop-act-layout { grid-template-columns:1fr; }
  .shop-act-left { max-height:40vh; }
  .dz-info-grid { grid-template-columns:1fr 1fr; }
}

/* 学生端「我的学情」内嵌成长档案（与管理端同一份报告） */
.rpt-inline-wrap { background:transparent; }
.rpt-inline-wrap .rpt-growth { background:#fff; border-radius:14px; border:1px solid #EEF2F7; box-shadow:0 2px 10px rgba(15,23,42,.05); padding:18px; }
@media (max-width:767px) {
  .rpt-inline-wrap .rpt-growth { padding:12px; border-radius:12px; }
  .rpt-inline-wrap .rpt-grow-top { flex-direction:column; }
  .rpt-inline-wrap .stat-row, .rpt-inline-wrap .rpt-stats { grid-template-columns:1fr 1fr !important; }
}

/* ---------- 教师工具箱（teacher-toolbox） ---------- */
.toolbox-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:18px; }
.toolbox-card {
  display:flex; align-items:center; gap:16px; background:#fff; border:1px solid #E5E9F0;
  border-radius:16px; padding:22px 20px; cursor:pointer;
  box-shadow:0 2px 10px rgba(15,23,42,.04);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.toolbox-card:hover { transform:translateY(-3px); box-shadow:0 12px 28px rgba(15,23,42,.10); border-color:#10B981; }
.toolbox-ico {
  width:56px; height:56px; flex:0 0 56px; border-radius:14px; display:flex; align-items:center; justify-content:center;
}
.toolbox-ico svg { width:28px; height:28px; }
.toolbox-ico-whiteboard { background:#E8F7F1; color:#0F9D6E; }
.toolbox-ico-summary { background:#EAF1FF; color:#2563EB; }
.toolbox-ico-paper { background:#F5F3FF; color:#7C3AED; }
.toolbox-body { flex:1 1 auto; min-width:0; }
.toolbox-name { font-size:16px; font-weight:700; color:#1E293B; margin-bottom:4px; }
.toolbox-desc { font-size:13px; color:#64748B; line-height:1.5; }
.toolbox-go { flex:0 0 auto; font-size:24px; color:#CBD5E1; font-weight:300; }
.toolbox-card:hover .toolbox-go { color:#10B981; }
.toolbox-back {
  border:1px solid #E5E9F0; background:#fff; color:#334155; font-size:13px; font-weight:600;
  padding:6px 14px; border-radius:8px; cursor:pointer; margin-bottom:12px;
  transition:border-color .15s ease, color .15s ease;
}
.toolbox-back:hover { border-color:#10B981; color:#0F9D6E; }

/* ========== 操作日志分页器 ========== */
.log-pager { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:14px 2px; }
.log-page-btn {
  min-width:36px; padding:6px 12px; border:1px solid #E2E8F0; background:#fff; color:#334155;
  font-size:13px; border-radius:8px; cursor:pointer; transition:all .15s ease;
}
.log-page-btn:hover:not(:disabled):not(.active) { border-color:#2563EB; color:#2563EB; }
.log-page-btn.active { background:#2563EB; border-color:#2563EB; color:#fff; font-weight:600; }
.log-page-btn:disabled { opacity:.5; cursor:not-allowed; }
.log-page-info { color:#64748B; font-size:13px; margin-left:6px; }

/* ========== 积分弹框 ========== */
.pt-head{display:flex;align-items:center;gap:16px;background:linear-gradient(135deg,#2563EB,#1D4ED8);color:#fff;padding:18px 20px;border-radius:14px;margin-bottom:16px;box-shadow:0 8px 20px rgba(37,99,235,.22);}
.pt-avatar{width:52px;height:52px;border-radius:50%;background:rgba(255,255,255,.2);display:flex;align-items:center;justify-content:center;font-size:22px;font-weight:700;flex-shrink:0;}
.pt-head-info{flex:1;min-width:0;}
.pt-head-name{font-size:17px;font-weight:700;line-height:1.2;}
.pt-head-sub{font-size:12.5px;opacity:.85;margin-top:4px;}
.pt-total-box{text-align:right;flex-shrink:0;}
.pt-total-num{font-size:30px;font-weight:800;line-height:1;}
.pt-total-label{font-size:12px;opacity:.85;margin-top:4px;}
.pt-section-title{font-size:13px;font-weight:700;color:#475569;margin:4px 2px 10px;display:flex;align-items:center;gap:6px;}
.pt-list{border:1px solid #EEF2F7;border-radius:12px;overflow:hidden;}
.pt-row{display:flex;gap:12px;padding:13px 14px;border-bottom:1px solid #F1F5F9;align-items:flex-start;}
.pt-row:last-child{border-bottom:none;}
.pt-row-icon{width:38px;height:38px;border-radius:11px;display:flex;align-items:center;justify-content:center;font-size:17px;flex-shrink:0;}
.pt-row-main{flex:1;min-width:0;}
.pt-row-top{display:flex;justify-content:space-between;align-items:center;gap:8px;}
.pt-row-type{font-weight:600;color:#1E293B;font-size:14px;}
.pt-row-val{font-size:16px;font-weight:700;}
.pt-row-val.pos{color:#10B981;}
.pt-row-val.neg{color:#EF4444;}
.pt-row-reason{font-size:13px;color:#475569;margin-top:4px;line-height:1.5;}
.pt-row-meta{font-size:12px;color:#94A3B8;margin-top:5px;}
.pt-empty{text-align:center;color:#94A3B8;padding:40px 20px;font-size:14px;}
.pt-add{background:#F8FAFC;border:1px solid #EEF2F7;border-radius:12px;padding:14px;margin-bottom:16px;}
.pt-add-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
.pt-scroll{max-height:340px;overflow-y:auto;padding-right:2px;}

/* =====================================================================
   商务稳重 · 权威皮肤层（v=pro-skin）
   仅视觉呈现，不改任何业务逻辑/类名/ID。统一管理端/教师端/学生端网页。
   ===================================================================== */

/* ---------- 侧边栏：统一深海军蓝 + 品牌化头部 ---------- */
.sidebar { width:236px; background:var(--sidebar-bg) !important; }
.main-content { margin-left:236px; width:calc(100vw - 236px); max-width:calc(100vw - 236px); }
.sidebar-admin, .sidebar-teacher, .sidebar-student { background:var(--sidebar-bg) !important; }
.sidebar::before {
  content:""; position:absolute; top:0; left:0; right:0; height:160px; pointer-events:none;
  background:radial-gradient(120% 100% at 20% 0%, rgba(37,99,235,.28), transparent 60%);
}
.sidebar-header { padding:22px 20px 18px; border-bottom:1px solid rgba(255,255,255,.08); position:relative; }
.sidebar-header h2 {
  font-size:16px; font-weight:700; letter-spacing:.4px; color:#fff;
  display:flex; align-items:center; gap:9px;
}
.sidebar-header h2::before {
  content:""; width:22px; height:22px; border-radius:6px; flex-shrink:0;
  background:linear-gradient(135deg,#3B82F6,#1D4ED8);
  box-shadow:0 2px 8px rgba(37,99,235,.5);
}
.sidebar-nav { padding:14px 12px; }
.nav-item {
  margin:2px 0; padding:10px 14px; border-radius:9px; gap:11px;
  color:rgba(226,232,240,.72); font-size:14px; font-weight:500;
  transition:background .16s ease,color .16s ease;
}
.nav-item svg { width:18px; height:18px; }
.nav-item:hover { background:rgba(255,255,255,.07) !important; color:#fff !important; transform:none; }
.nav-item.active,
.sidebar-admin .nav-item.active,
.sidebar-teacher .nav-item.active,
.sidebar-student .nav-item.active {
  background:linear-gradient(90deg,#2563EB,#1D4ED8) !important;
  color:#fff !important; font-weight:600;
  box-shadow:0 4px 14px rgba(29,78,216,.42);
}
.nav-item.active::after,
.nav-item.active::before { content:none; }
.nav-item-danger { color:#FCA5A5; }
.nav-item-danger:hover { background:rgba(239,68,68,.16) !important; color:#FEE2E2 !important; }
.nav-item-sync { color:#6EE7B7; }
.sidebar-footer { border-top:1px solid rgba(255,255,255,.08); padding:14px 16px; }
.user-avatar { background:linear-gradient(135deg,#3B82F6,#1D4ED8); box-shadow:0 2px 8px rgba(29,78,216,.4); }
.btn-logout { border-color:rgba(255,255,255,.16); border-radius:9px; }

/* ---------- 主内容区 ---------- */
.main-content { padding:0; background:var(--bg); }
.main-content > .page-content { padding:24px; }
.page-header { margin-bottom:22px; }
.page-header h1 { font-size:22px; font-weight:700; color:#0F172A; letter-spacing:.2px; }
.page-desc { color:var(--text-secondary); font-size:13.5px; margin-top:4px; }

/* ---------- 应用内静态顶栏（还原设计稿） ---------- */
.pro-topbar {
  position:sticky; top:0; z-index:90; height:62px; flex:none;
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  padding:0 24px; background:#fff; border-bottom:1px solid #E2E8F0;
}
.pro-crumb { display:flex; align-items:center; gap:8px; font-size:14px; color:#64748B; }
.pro-crumb-root { color:#94A3B8; }
.pro-crumb-sep { width:15px; height:15px; flex:none; color:#CBD5E1; }
.pro-crumb-now { color:#0F172A; font-weight:600; }
.pro-topbar-right { display:flex; align-items:center; gap:10px; }
.pro-top-search {
  display:flex; align-items:center; gap:8px; width:240px; height:38px;
  padding:0 12px; background:#F4F6FA; border:1px solid #E2E8F0; border-radius:9px; color:#94A3B8;
}
.pro-top-search svg { width:16px; height:16px; flex:none; }
.pro-top-search input {
  border:0; outline:0; background:transparent; width:100%; height:100%;
  font-size:13px; color:#334155; font-family:inherit; cursor:default;
}
.pro-icon-btn {
  position:relative; width:36px; height:36px; border:none; border-radius:9px;
  background:transparent; color:#64748B; display:flex; align-items:center; justify-content:center;
  cursor:pointer; transition:background .15s,color .15s;
}
.pro-icon-btn svg { width:19px; height:19px; }
.pro-icon-btn:hover { background:#F4F6FA; color:#334155; }
.pro-dot-n { position:absolute; top:7px; right:8px; width:7px; height:7px; border-radius:50%; background:#DC2626; border:1.5px solid #fff; }
.pro-top-user { display:flex; align-items:center; gap:9px; margin-left:4px; padding-left:10px; border-left:1px solid #EDF1F7; }
.pro-top-avatar {
  width:34px; height:34px; border-radius:50%; flex:none; color:#fff;
  display:flex; align-items:center; justify-content:center; font-size:13px; font-weight:600;
  background:linear-gradient(135deg,#2E56C4,#4F86F7);
}
.pro-top-avatar-green { background:linear-gradient(135deg,#15904f,#34c273); }
.pro-top-avatar-purple { background:linear-gradient(135deg,#6d28d9,#9061f6); }
.pro-top-name { font-size:13.5px; font-weight:600; color:#334155; }

/* ---------- 卡片 / 统计卡 ---------- */
.card, .metric-card, .stat-card, .exc-tcard {
  background:#fff; border:1px solid var(--border-light) !important; border-radius:12px !important;
  box-shadow:var(--shadow) !important;
}
.card { padding:20px 22px; }
.card h3 { font-size:15px; font-weight:700; color:#0F172A; }
.stat-card { padding:18px 20px; display:flex; align-items:center; gap:15px; transition:box-shadow .18s ease,transform .18s ease; }
.stat-card:hover { box-shadow:var(--shadow-hover) !important; transform:translateY(-2px); }
.stat-icon { width:46px; height:46px; border-radius:11px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.stat-icon svg { width:22px; height:22px; }
.stat-icon-red { background:#FEE2E2; color:#DC2626; }
.stat-icon-orange { background:#FFEDD5; color:#EA580C; }
.stat-icon-yellow { background:#FEF9C3; color:#CA8A04; }
.stat-icon-blue { background:#DBEAFE; color:#2563EB; }
.stat-icon-green { background:#D1FAE5; color:#059669; }
.stat-icon-purple { background:#EDE9FE; color:#7C3AED; }
.stat-info { display:flex; flex-direction:column; }
.stat-value { font-size:26px; font-weight:800; color:#0F172A; line-height:1.15; }
.stat-label { font-size:13px; color:var(--text-secondary); margin-top:2px; }

/* ---------- 按钮 ---------- */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:6px;
  height:36px; padding:0 15px; border-radius:8px; font-size:13.5px; font-weight:600;
  border:1px solid transparent; cursor:pointer; white-space:nowrap;
  transition:background .16s ease,border-color .16s ease,box-shadow .16s ease,transform .12s ease;
}
.btn svg.ic { width:15px; height:15px; }
.btn-primary { background:#2563EB !important; border-color:#2563EB !important; color:#fff !important; }
.btn-primary:hover { background:#1D4ED8 !important; border-color:#1D4ED8 !important; box-shadow:0 4px 12px rgba(29,78,216,.3); }
.btn-success { background:#10B981 !important; border-color:#10B981 !important; color:#fff !important; }
.btn-success:hover { background:#059669 !important; border-color:#059669 !important; }
.btn-danger { background:#EF4444 !important; border-color:#EF4444 !important; color:#fff !important; }
.btn-danger:hover { background:#DC2626 !important; border-color:#DC2626 !important; }
.btn-ghost { background:#fff !important; color:#334155 !important; border-color:#CBD5E1 !important; }
.btn-ghost:hover { background:#F1F5F9 !important; }
.btn-outline { background:#fff !important; color:#2563EB !important; border-color:#BFDBFE !important; }
.btn-outline:hover { background:#EFF6FF !important; }
.btn-text { background:transparent !important; color:var(--text-secondary) !important; }
.btn-text:hover { background:#EFF6FF !important; color:#2563EB !important; }
.btn:active { transform:scale(.97); }
.btn-sm { height:30px; padding:0 11px; font-size:12.5px; border-radius:7px; }
.btn[style*="F1F5F9"] { background:#F1F5F9 !important; color:#334155 !important; }

/* ---------- 表格 ---------- */
.table-container, .table-wrapper, .table-scroll {
  background:#fff; border:1px solid var(--border-light); border-radius:12px;
  box-shadow:var(--shadow); padding:4px; margin-bottom:14px;
}
.data-table { width:100%; border-collapse:collapse; font-size:13.5px; }
.data-table th {
  background:#F8FAFC !important; color:#475569 !important; font-weight:600 !important;
  font-size:12.5px !important; text-align:left; padding:12px 14px !important;
  border-bottom:1px solid var(--border-light) !important; white-space:nowrap;
}
.data-table th:first-child { border-top-left-radius:8px; }
.data-table th:last-child { border-top-right-radius:8px; }
.data-table td { padding:11px 14px !important; border-bottom:1px solid #F3F5F9 !important; color:#334155; vertical-align:middle; }
.data-table tbody tr { transition:background .13s ease; cursor:default; }
.data-table tbody tr:hover td { background:#F8FAFC; }
.data-table tbody tr:last-child td { border-bottom:none; }

/* ---------- 表单 ---------- */
.form-input, input.form-input, select.form-input, textarea.form-input {
  width:100%; height:38px; padding:8px 12px; font-size:13.5px; color:#1E293B;
  background:#fff; border:1px solid var(--border); border-radius:8px; outline:none;
  transition:border-color .15s ease,box-shadow .15s ease;
}
textarea.form-input { height:auto; }
.form-input::placeholder { color:#94A3B8; }
.form-input:focus { border-color:#2563EB; box-shadow:0 0 0 3px rgba(37,99,235,.12); }
.form-label { font-size:13px; font-weight:600; color:#334155; margin-bottom:6px; display:block; }

/* ---------- 弹框 ---------- */
.modal-overlay {
  position:fixed; inset:0; z-index:10000; background:rgba(15,23,42,.5);
  backdrop-filter:blur(2px); display:flex; align-items:center; justify-content:center; padding:24px;
}
.form-modal, .modal {
  background:#fff; border-radius:14px; width:100%; max-width:520px; max-height:90vh;
  box-shadow:0 24px 60px rgba(15,23,42,.28); display:flex; flex-direction:column;
  animation:proModalIn .2s cubic-bezier(.16,1,.3,1); overflow:hidden;
}
@keyframes proModalIn { from { opacity:0; transform:translateY(10px) scale(.98); } to { opacity:1; transform:none; } }
.modal-header, .form-modal-header {
  display:flex; align-items:center; justify-content:space-between;
  padding:18px 22px; border-bottom:1px solid var(--border-light);
}
.modal-header h3, .form-modal-header h3 { margin:0; font-size:16px; font-weight:700; color:#0F172A; }
.modal-body, .form-modal-body { padding:20px 22px; overflow-y:auto; }
.modal-footer { padding:14px 22px; border-top:1px solid var(--border-light); display:flex; justify-content:flex-end; gap:10px; }
.modal-close {
  width:30px; height:30px; border:none; background:transparent; color:#94A3B8;
  font-size:22px; line-height:1; border-radius:8px; cursor:pointer; transition:background .15s,color .15s;
}
.modal-close:hover { background:#F1F5F9; color:#334155; }
.modal-close:empty::before { content:"\00D7"; }
/* 弹框头部文字型关闭兜底 */
.form-modal-close:empty::before, .close-x:empty::before { content:"\00D7"; }
button[class*="close"]:empty::before, button[class*="Close"]:empty::before { content:"\00D7"; font-size:20px; line-height:1; }

/* ---------- 徽章 / 状态标签 ---------- */
.badge, .tag {
  display:inline-flex; align-items:center; gap:4px; padding:2px 9px; border-radius:999px;
  font-size:12px; font-weight:600; line-height:1.6;
}
.badge-success, .tag-success { background:#ECFDF5; color:#16A34A; }
.badge-warning, .tag-warning { background:#FFFBEB; color:#D97706; }
.badge-danger, .tag-danger { background:#FEF2F2; color:#DC2626; }
.badge-info, .tag-info { background:#EFF4FF; color:#2454C9; }
.badge-default, .tag-default { background:#F1F5F9; color:#64748B; }

/* ---------- 分页 ---------- */
.pagination, .pager { display:flex; align-items:center; gap:6px; justify-content:flex-end; margin-top:14px; }
.pagination button, .pager button, .page-btn {
  min-width:34px; height:34px; padding:0 10px; border:1px solid var(--border); background:#fff;
  color:#334155; border-radius:8px; font-size:13px; cursor:pointer; transition:all .15s;
}
.pagination button:hover, .pager button:hover, .page-btn:hover { border-color:#2563EB; color:#2563EB; }
.pagination button.active, .pager button.active, .page-btn.active { background:#2563EB; border-color:#2563EB; color:#fff; font-weight:600; }
.pagination button:disabled, .pager button:disabled { opacity:.5; cursor:not-allowed; }

/* ---------- 筛选/工具条 ---------- */
.filter-bar, .toolbar, .list-toolbar {
  display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:16px;
}
.filter-bar .form-input, .toolbar .form-input { width:auto; min-width:150px; height:36px; }

/* ---------- 通用栅格 ---------- */
.stats-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-bottom:20px; }
.grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.grid-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }

/* ---------- 空状态 ---------- */
.empty-state, .empty { text-align:center; color:var(--text-muted); padding:44px 20px; font-size:13.5px; }

/* ---------- 响应式 ---------- */
@media (max-width:1200px){ .stats-grid { grid-template-columns:repeat(2,1fr); } }
@media (max-width:900px){
  .sidebar { transform:translateX(-100%); transition:transform .25s; }
  .main-content { margin-left:0; width:100vw; max-width:100vw; }
  .pro-top-search { width:150px; }
  .pro-top-user { border-left:none; padding-left:0; }
}
@media (max-width:640px){
  .pro-top-search { display:none; }
  .pro-top-name { display:none; }
  .pro-topbar { padding:0 14px; }
}

/* ========== 商务稳重 · 表格内展示组件（对齐设计稿） ========== */
.pro-avatar {
  width:34px; height:34px; border-radius:50%;
  display:inline-flex; align-items:center; justify-content:center;
  color:#fff; font-size:13px; font-weight:600; flex:0 0 auto;
}
.pro-name-cell { display:inline-flex; align-items:center; gap:11px; }
.pro-name-cell > span:last-child { color:#0F172A; font-weight:600; font-size:13.5px; }
.pro-sub-badge {
  display:inline-flex; align-items:center;
  padding:3px 11px; border-radius:20px;
  font-size:12px; font-weight:600; line-height:1.5;
}
.pro-muted { color:#64748B !important; font-size:13px; }
.pro-stack { display:inline-flex; align-items:center; cursor:pointer; }
.pro-mini-avatar {
  width:27px; height:27px; border-radius:50%;
  display:inline-flex; align-items:center; justify-content:center;
  color:#fff; font-size:11px; font-weight:600;
  border:2px solid #fff; margin-left:-8px;
}
.pro-mini-avatar:first-child { margin-left:0; }
.pro-mini-more { background:#E2E8F0 !important; color:#475569 !important; }
.pro-no-class { color:#94A3B8; font-size:13px; cursor:pointer; }
.pro-no-class:hover { color:#2563EB; }
.pro-actions-cell { display:inline-flex; align-items:center; gap:14px; white-space:nowrap; }
.pro-act { color:#2563EB; font-size:13px; font-weight:500; }
.pro-act:hover { color:#1D4ED8; text-decoration:underline; }
.pro-act-danger { color:#DC2626; }
.pro-act-danger:hover { color:#B91C1C; }
/* 搜索输入（带图标） */
.pro-search { position:relative; display:inline-flex; align-items:center; }
.pro-search > svg {
  position:absolute; left:13px; width:16px; height:16px; color:#94A3B8; pointer-events:none;
}
.pro-search .form-input { padding-left:38px; height:40px; min-width:240px; }
.pro-btn-ghost { background:#F1F5F9; color:#475569; }
.pro-btn-ghost:hover { background:#E2E8F0; }
.pro-subtitle { margin:-4px 0 16px; color:#64748B; font-size:13.5px; }
/* 侧栏品牌头部 */
.pro-brand { display:flex; align-items:center; gap:11px; }
.pro-brand-logo {
  width:38px; height:38px; border-radius:10px; flex:0 0 auto;
  background:linear-gradient(135deg,#3B82F6,#2563EB);
  display:inline-flex; align-items:center; justify-content:center;
  box-shadow:0 4px 10px rgba(37,99,235,.35);
}
.pro-brand-logo svg { width:21px; height:21px; color:#fff; }
.pro-brand-name { font-size:16px; font-weight:700; color:#fff; line-height:1.3; letter-spacing:.5px; }
.sidebar .sidebar-header { border-bottom:1px solid rgba(148,163,184,.12); }
/* 去掉操作列旧的 sticky 背景需求：表格行不再有 sticky-col */
.data-table td, .data-table th { vertical-align:middle; }

/* ========== 首页 · KPI / 图表（对齐设计稿） ========== */
.pro-kpi-grid { grid-template-columns:repeat(4,1fr); gap:18px; margin-bottom:18px; }
.pro-kpi { padding:18px 20px; }
.pro-kpi-top { display:flex; align-items:center; justify-content:flex-start; gap:10px; margin-bottom:12px; }
.pro-kpi-label { color:#64748B; font-size:13.5px; font-weight:500; }
.pro-kpi-icon { width:38px; height:38px; border-radius:10px; display:inline-flex; align-items:center; justify-content:center; }
.pro-kpi-icon svg { width:20px; height:20px; }
.kpi-blue { background:#DBEAFE; color:#2563EB; }
.kpi-green { background:#D1FAE5; color:#059669; }
.kpi-amber { background:#FEF3C7; color:#D97706; }
.kpi-purple { background:#EDE9FE; color:#7C3AED; }
.pro-kpi-value { font-size:30px; font-weight:700; color:#0F172A; line-height:1.1; }
.pro-kpi-foot { margin-top:6px; color:#94A3B8; font-size:12.5px; }

.pro-chart-row { display:grid; grid-template-columns:1.7fr 1fr; gap:18px; margin-bottom:18px; }
.pro-panel { padding:20px 22px; }
.pro-panel-head { display:flex; align-items:flex-start; justify-content:space-between; margin-bottom:8px; }
.pro-panel-head h3 { margin:0; font-size:16px; color:#0F172A; font-weight:600; }
.pro-panel-head p { margin:4px 0 0; color:#94A3B8; font-size:12.5px; }
.pro-tab-mini-group { display:inline-flex; gap:4px; background:#F1F5F9; border-radius:8px; padding:3px; }
.pro-tab-mini { padding:5px 14px; border-radius:6px; border:none; background:transparent; font-size:12.5px; color:#64748B; cursor:pointer; }
.pro-tab-mini.active { background:#fff; color:#2563EB; font-weight:600; box-shadow:0 1px 3px rgba(15,23,42,.1); }
.pro-trend { position:relative; }
.pro-trend-svg { width:100%; height:auto; display:block; }
.pro-trend-tick { fill:#94A3B8; font-size:11px; }
.pro-trend-val { fill:#2563EB; font-size:11px; font-weight:600; }
.pro-chart-empty { color:#94A3B8; font-size:13px; }

.pro-donut-wrap { display:flex; align-items:center; gap:22px; padding:8px 0; }
.pro-donut { width:150px; height:150px; border-radius:50%; flex:0 0 auto; position:relative; }
.pro-donut-hole {
  position:absolute; inset:26px; border-radius:50%; background:#fff;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
}
.pro-donut-hole b { font-size:26px; color:#0F172A; line-height:1; }
.pro-donut-hole span { font-size:12px; color:#94A3B8; margin-top:3px; }
.pro-legend { flex:1; display:flex; flex-direction:column; gap:10px; }
.pro-legend-item { display:flex; align-items:center; gap:9px; font-size:13px; }
.pro-legend-dot { width:9px; height:9px; border-radius:3px; flex:0 0 auto; }
.pro-legend-name { color:#475569; flex:1; }
.pro-legend-item b { color:#0F172A; font-weight:600; }
.pro-legend-empty { color:#94A3B8; font-size:13px; }

.pro-warning-inline { margin-bottom:0; }
.pro-ops-section { margin-top:18px; border:1px solid #E5E9F0; border-radius:12px; background:#fff; overflow:hidden; }
.pro-ops-head { display:flex; align-items:center; gap:9px; padding:14px 18px; cursor:pointer; color:#0F172A; font-weight:600; font-size:14.5px; }
.pro-ops-head svg { width:18px; height:18px; color:#64748B; }
.pro-ops-sub { color:#94A3B8; font-weight:400; font-size:12.5px; margin-left:4px; }
.pro-ops-body { padding:0 18px 18px; }
.pro-exc-grid { grid-template-columns:repeat(4,1fr); gap:14px; margin-bottom:16px; }
.pro-exc { padding:15px 17px; cursor:pointer; }
.pro-exc-label { color:#64748B; font-size:13px; margin-bottom:7px; }
.pro-exc-value { font-size:26px; font-weight:700; color:#0F172A; }
.pro-ops-card h3 { font-size:15px; }

@media (max-width:1100px){
  .pro-chart-row { grid-template-columns:1fr; }
  .pro-kpi-grid, .pro-exc-grid { grid-template-columns:repeat(2,1fr); }
}

/* 学生行补充元素 */
.pro-name-link { color:#0F172A; font-weight:600; font-size:13.5px; }
.pro-name-link:hover { color:#2563EB; }
.pro-invite { font-weight:700; letter-spacing:1px; color:#2563EB; font-size:13px; }
.pro-gender {
  display:inline-flex; align-items:center; justify-content:center;
  width:24px; height:24px; border-radius:7px; font-size:12px; font-weight:600;
}
.pro-gender.male { background:#DBEAFE; color:#2563EB; }
.pro-gender.female { background:#FCE7F3; color:#DB2777; }
.pro-points-pill {
  display:inline-flex; align-items:center; justify-content:center;
  min-width:34px; height:26px; padding:0 9px; border-radius:13px;
  background:#FEF3C7; color:#D97706; font-weight:700; font-size:13px;
}
.pro-points-pill:hover { background:#FDE68A; }

/* 通用条目名（图标块 + 名称） */
.pro-item-name { display:inline-flex; align-items:center; gap:10px; color:#0F172A; font-weight:600; font-size:13.5px; }
.pro-item-name:hover { color:#2563EB; }
.pro-item-icon {
  width:32px; height:32px; border-radius:8px; flex:0 0 auto;
  background:#DBEAFE; color:#2563EB;
  display:inline-flex; align-items:center; justify-content:center;
}
.pro-item-icon svg { width:17px; height:17px; }
.pro-count-link { color:#2563EB; font-weight:700; font-size:13px; }
.pro-count-link:hover { text-decoration:underline; }

/* 班级管理行 */
.pro-classes-text { color:#475569; font-size:13px; }
.pro-row-actions { flex-wrap:nowrap; }
.pro-indigo-btn { background:#EEF2FF; color:#4F46E5; font-weight:600; }
.pro-indigo-btn:hover { background:#E0E7FF; }

/* ========== 班级管理 · 卡片网格（对齐设计稿） ========== */
.pro-c-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; align-items:stretch; }
.pro-c-card {
  background:#fff; border:1px solid var(--line,#E5E9F0); border-radius:12px; overflow:hidden;
  box-shadow:0 1px 2px rgba(16,24,40,.04); transition:box-shadow .18s ease, transform .18s ease, border-color .18s ease;
  display:flex; flex-direction:column; height:100%; min-height:132px; align-self:stretch;
}
.pro-c-card:hover { box-shadow:0 8px 20px rgba(16,24,40,.08); border-color:#D6E0F5; transform:translateY(-1px); }
.pro-c-card.is-graduated { background:#FAFBFD; }
.pro-c-card-top { padding:12px 16px; display:flex; align-items:center; gap:11px; }
/* 卡片左上角勾选框 */
.pro-card-check { position:absolute; top:12px; left:12px; width:16px; height:16px; z-index:2; accent-color:#2563EB; cursor:pointer; }
.pro-c-card:has(.pro-card-check) .pro-c-card-top { padding-left:34px; }
.pro-c-ic {
  width:38px; height:38px; border-radius:10px; flex:0 0 auto;
  display:inline-flex; align-items:center; justify-content:center;
}
.pro-c-ic svg { width:19px; height:19px; }
.pro-c-ic.ic-blue { background:#EFF6FF; color:#2563EB; }
.pro-c-ic.ic-amber { background:#FFFBEB; color:#D97706; }
.pro-c-ic.ic-purple { background:#F5F3FF; color:#7C3AED; }
.pro-c-ic.ic-teal { background:#F0FDFA; color:#0D9488; }
.pro-c-ic.ic-rose { background:#FFF1F2; color:#E11D48; }
.pro-c-ic.ic-indigo { background:#EEF2FF; color:#4F46E5; }
.pro-c-meta { flex:1; min-width:0; }
.pro-c-name { font-weight:700; color:#0F172A; font-size:15px; line-height:1.3; }
.pro-c-sub { color:#64748B; font-size:12.5px; margin-top:3px; }
.pro-c-count { text-align:right; flex:0 0 auto; }
.pro-c-stats { display:flex; gap:16px; flex:0 0 auto; }
.pro-c-num { font-size:21px; font-weight:800; line-height:1; }
.pro-c-count-label { display:block; color:#94A3B8; font-size:11px; margin-top:4px; }
.pro-c-card-foot {
  margin-top:auto; padding:8px 12px; border-top:1px solid #EEF1F6;
  display:flex; align-items:center; gap:4px; flex-wrap:wrap;
}
.pro-cl {
  color:#2563EB; font-size:13px; font-weight:600; cursor:pointer; line-height:1;
  padding:2px 0;
}
.pro-cl:hover { color:#1D4ED8; text-decoration:underline; }
.pro-cl.pro-cl-disabled { color:#CBD5E1; cursor:default; text-decoration:none; }
.pro-c-more {
  margin-left:auto; width:30px; height:30px; border-radius:8px; cursor:pointer;
  display:inline-flex; align-items:center; justify-content:center;
  border:1px solid #BFDBFE; background:#EFF6FF; color:#2563EB; flex:0 0 auto;
}
.pro-c-more svg { width:16px; height:16px; min-width:16px; max-width:16px; min-height:16px; max-height:16px; fill:none; stroke:currentColor; stroke-width:2; overflow:visible; }
.pro-c-more svg * { fill:none; stroke:currentColor; stroke-width:2; vector-effect:none; }
.pro-c-more:hover { background:#DBEAFE; color:#1D4ED8; border-color:#93C5FD; }
.pro-c-more + .pro-c-more { margin-left:6px; }
.pro-c-more.pro-c-more-danger { color:#DC2626; border-color:#FCA5A5; background:#FEF2F2; }
.pro-c-more.pro-c-more-danger:hover { background:#FEE2E2; color:#B91C1C; border-color:#F87171; }
.pro-ss { display:inline-block; padding:1px 8px; border-radius:999px; font-size:11px; font-weight:600; }
.pro-ss-success { background:#ECFDF5; color:#059669; }
.pro-ss-neutral { background:#F1F5F9; color:#64748B; }
@media (max-width:1200px){ .pro-c-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:760px){ .pro-c-grid { grid-template-columns:minmax(0,1fr); } }

/* ===== 学生成长档案 · 设计稿 02b ===== */
.pro-sd-head { display:flex; align-items:center; gap:16px; padding:20px 22px; margin-bottom:16px; }
.pro-sd-ava { width:64px; height:64px; flex:0 0 64px; border-radius:50%; overflow:hidden; }
.pro-sd-ava img { width:100%; height:100%; object-fit:cover; }
.pro-sd-id h3 { margin:0 0 8px; font-size:20px; font-weight:700; color:#0F172A; }
.pro-sd-meta { display:flex; flex-wrap:wrap; gap:18px; font-size:13px; color:#64748B; }
.pro-sd-kpi { display:flex; align-items:center; flex-wrap:wrap; gap:12px; padding:18px 22px; margin-bottom:16px; }
.pro-sd-kpi .inline-stat { flex:1 1 0; min-width:120px; text-align:center; }
.pro-sd-kpi .is-v { font-size:28px; font-weight:700; line-height:1.1; color:#0F172A; }
.pro-sd-kpi .is-l { font-size:12.5px; color:#94A3B8; margin-top:4px; }
.pro-stab-success { color:#059669; }
.pro-stab-warning { color:#D97706; }
.pro-stab-danger { color:#DC2626; }
.pro-stab-neutral { color:#64748B; }
.pro-sd-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:16px; margin-bottom:16px; }
.pro-sd-bars { padding:4px 2px 2px; display:flex; flex-direction:column; gap:14px; }
.pro-sd-bar .flex { display:flex; align-items:center; }
.jcsb { justify-content:space-between; }
.mb-8 { margin-bottom:8px; }
.w-full { width:100%; }
.fw600 { font-weight:600; }
.mini-bar { display:block; height:8px; border-radius:999px; background:#EEF1F6; overflow:hidden; }
.mini-bar > i { display:block; height:100%; border-radius:999px; background:#2563EB; transition:width .4s ease; }
.score-chip { display:inline-block; min-width:40px; text-align:center; padding:2px 9px; border-radius:6px; font-size:12.5px; font-weight:700; }
.score-good { background:#DCFCE7; color:#15803D; }
.score-mid { background:#FEF3C7; color:#B45309; }
.score-bad { background:#FEE2E2; color:#B91C1C; }
.pro-sd-timeline { padding:2px 0; }
.pro-sd-timeline .timeline { position:relative; margin:0; padding:0 0 0 6px; list-style:none; background:none; }
.pro-sd-timeline .timeline::before { display:none; }
.tl-item { position:relative; padding:0 0 16px 40px; }
.tl-item:last-child { padding-bottom:0; }
.tl-item::before { content:''; position:absolute; left:15px; top:34px; bottom:0; width:2px; background:#E5E9F0; }
.tl-item:last-child::before { display:none; }
.tl-dot { position:absolute; left:0; top:0; width:32px; height:32px; border-radius:50%; overflow:hidden; }
.tl-body { font-size:13px; line-height:1.6; }
.tl-top { display:flex; align-items:center; gap:10px; margin-bottom:3px; }
.tl-top b { color:#0F172A; font-size:13px; }
.tl-top .muted { color:#94A3B8; font-size:12px; }
.tl-text { color:#475569; }
.pro-sd-table { font-size:13px; }
.pro-sd-table tbody tr:hover { background:#F8FAFC; }
.pro-sd-table .strong { font-weight:600; color:#0F172A; }
.pro-act { background:none; border:0; padding:0; color:#2563EB; font-size:13px; font-weight:600; cursor:pointer; }
.pro-act:hover { color:#1D4ED8; text-decoration:underline; }
.badge-neutral { background:#F1F5F9; color:#64748B; }
@media (max-width:900px){ .pro-sd-grid { grid-template-columns:minmax(0,1fr); } .pro-sd-meta { gap:10px; } }

/* ===== 操作链接统一（对齐设计稿：无下划线，hover 仅浅色背景）===== */
.pro-act, a.pro-act, .pro-cl, a.pro-cl, .pro-count-link, a.pro-count-link,
.act-link, a.act-link, .pro-sd-table .pro-act, .row-actions a, .row-actions button {
  text-decoration: none !important;
  background: none;
  border: 0;
  border-radius: 6px;
  padding: 4px 8px;
  margin: 0 -2px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.pro-act:hover, a.pro-act:hover, .act-link:hover, a.act-link:hover,
.pro-sd-table .pro-act:hover, .row-actions a:hover, .row-actions button:hover {
  color: #1D4ED8 !important;
  background: #EFF4FF !important;
  text-decoration: none !important;
}
.pro-cl:hover, a.pro-cl:hover, .pro-count-link:hover, a.pro-count-link:hover {
  color: #1D4ED8 !important;
  background: #EFF4FF !important;
  text-decoration: none !important;
}
.pro-act-danger, a.pro-act-danger, .act-link.danger, a.act-link.danger,
.pro-cl-danger, a.pro-cl-danger { color: #DC2626 !important; }
.pro-act-danger:hover, a.pro-act-danger:hover, .act-link.danger:hover, a.act-link.danger:hover,
.pro-cl-danger:hover, a.pro-cl-danger:hover {
  color: #B91C1C !important;
  background: #FEF2F2 !important;
}
.pro-cl.pro-cl-disabled { color:#CBD5E1 !important; background:none !important; cursor:default; }
.pro-name-cell .student-name-link:hover { text-decoration: none !important; }

/* ===== 课程管理：3 列卡片网格（对齐 04-classes 设计稿）===== */
.pro-course-grid { position:relative; }
.pro-course-cards {
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:16px;
}
.pro-course-card {
  position:relative;
  padding:0;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.pro-course-card .pro-card-check { opacity:0; transition:opacity .15s ease; }
.pro-course-card:hover .pro-card-check,
.pro-course-card .pro-card-check:checked { opacity:1; }
.pro-card-check {
  position:absolute; top:12px; right:12px; z-index:2;
  width:15px; height:15px; cursor:pointer; accent-color:#2563EB;
}
.pro-course-card-head {
  padding:16px 18px;
  border-bottom:1px solid #EEF1F6;
  display:flex; align-items:center; gap:12px;
}
.pro-course-card-title { flex:1; min-width:0; }
.pro-course-name { font-weight:700; color:#0F172A; font-size:15px; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.pro-course-meta { font-size:12.5px; margin-top:3px; }
.pro-course-card-body { padding:14px 18px; flex:1; }
.pro-course-line { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.pro-course-line + .pro-course-line { margin-top:10px; }
.pro-course-val { font-size:13px; color:#1E293B; font-weight:500; text-align:right; }
.pro-course-num { color:#2563EB !important; font-weight:700 !important; font-size:14px; }
.pro-course-card-foot {
  padding:8px 10px;
  border-top:1px solid #EEF1F6;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}
.pro-course-card-foot .pro-foot-links { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.pro-course-card-foot .row-actions { gap:2px; flex-wrap:wrap; }
.pro-card-graduated { opacity:.78; }
@media (max-width:1100px){ .pro-course-cards { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:720px){ .pro-course-cards { grid-template-columns:minmax(0,1fr); } }

/* r25 末页填充位 */
.pro-card-filler,
.pro-c-card-filler {
  display:flex; align-items:center; justify-content:center;
  min-height:148px;
  border:1.5px dashed #CBD5E1;
  background:#F8FAFC;
  border-radius:12px;
}
.pro-card-filler-in,
.pro-c-filler-in { color:#94A3B8; font-size:13px; }
.pro-c-card-filler { min-height:158px; }

/* ===== 班级管理：外层容器退化为块级，由内层 .pro-c-grid 控制两列（修复双重网格压窄）===== */
#course-list, #course-list.pro-c-host { display:block !important; width:100%; }
#course-list .pro-c-grid { width:100%; }
#course-list .pager, #course-list .pro-pager { margin-top:18px; }

/* ===== 考核管理：模式切换 tab（对齐设计稿 tabs/tab）===== */
.pro-tabs { display:flex; gap:4px; flex-wrap:wrap; margin-bottom:18px; }
.pro-tabs .tab {
  padding:8px 17px; border-radius:9px; font-size:13.5px; font-weight:600; color:#64748B;
  cursor:pointer; display:flex; align-items:center; gap:7px; background:transparent; border:0;
}
.pro-tabs .tab:hover { color:#0F172A; background:#F1F5F9; }
.pro-tabs .tab.active { background:#2563EB; color:#fff; box-shadow:0 2px 6px rgba(37,99,235,.28); }
.pro-tabs .tab.tone-blue.active { background:#0EA5E9; }
.pro-tabs .tab.tone-dark.active { background:#0F172A; }

/* 成长档案：仅加宽弹框，缓解拥挤，内容不改 */
#form-modal:has(.rpt-growth) .form-modal,
#form-modal .form-modal:has(.rpt-growth) {
  width: min(1180px, 96vw);
  max-width: min(1180px, 96vw);
}
#form-modal .form-modal:has(.rpt-growth) .modal-body,
#form-modal .form-modal:has(.rpt-growth) .form-modal-body { padding: 20px 26px; }

/* 筛选卡片：筛选项同行，批量工具右侧对齐 */
.filter-card { background:#fff; border:1px solid #E5E9F0; border-radius:12px; padding:14px 16px; margin-bottom:16px; box-shadow:0 1px 2px rgba(16,24,40,.04); }
.filter-batch-slot { margin-left:auto; display:flex; align-items:center; }
.filter-batch-slot .batch-toolbar { display:flex; align-items:center; gap:8px; background:transparent; border:0; padding:0; margin:0; }
.batch-toolbar .batch-sel-count { font-size:13px; color:#64748B; white-space:nowrap; margin-right:2px; }
.btn-danger-soft { background:#FEF2F2; color:#DC2626; border:1px solid transparent; }
.btn-danger-soft:hover:not(:disabled) { background:#FEE2E2; }
.btn-dark { background:#0F172A; color:#fff; border:1px solid transparent; }
.btn-dark:hover:not(:disabled) { background:#1E293B; }
.filter-bar { align-items:center; }

/* ===== 侧栏分组标题：与菜单项同字号，可点击展开/收缩 ===== */
.nav-group { margin-bottom:6px; }
.nav-group-title {
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 14px; margin:2px 0; border-radius:9px;
  font-size:14px; line-height:1.2; font-weight:600; letter-spacing:0;
  color:rgba(226,232,240,.86); text-transform:none; cursor:pointer; user-select:none;
  transition:background .16s ease,color .16s ease;
}
.nav-group-title:hover { background:rgba(255,255,255,.07); color:#fff; }
.nav-group:first-child .nav-group-title { padding-top:10px; }
.nav-group-title .nav-group-caret {
  width:16px; height:16px; flex:none; margin-left:8px;
  transition:transform .2s ease; opacity:.7;
}
.nav-group-title .nav-group-caret svg { width:16px; height:16px; display:block; }
.nav-group.is-collapsed .nav-group-title .nav-group-caret { transform:rotate(-90deg); }
.nav-group.is-collapsed > .nav-item,
.nav-group.is-collapsed > .nav-group-items { display:none; }
.nav-group.is-collapsed > .nav-group-items.is-collapsed { display:none; }

/* ===== 商城 / 系统 等下划线式 tab 统一为设计稿胶囊 tab ===== */
.shop-tabs, .sys-tabs, .sub-tabs {
  display:flex; gap:4px; flex-wrap:wrap; align-items:center;
  border-bottom:0 !important; padding:0; margin-bottom:18px;
}
.shop-tabs .shop-tab, .sys-tabs .sys-tab, .sub-tabs .sub-tab {
  padding:8px 17px; border-radius:9px; font-size:13.5px; font-weight:600;
  color:#64748B; cursor:pointer; border:0 !important; background:transparent;
  transition:background .15s,color .15s; text-decoration:none;
}
.shop-tabs .shop-tab:hover, .sys-tabs .sys-tab:hover, .sub-tabs .sub-tab:hover { color:#0F172A; background:transparent; }
.shop-tabs .shop-tab.active, .sys-tabs .sys-tab.active, .sub-tabs .sub-tab.active {
  background:#2563EB; color:#fff; box-shadow:0 2px 6px rgba(37,99,235,.28);
}
/* 系统管理头部彩色按钮：收敛为统一描边按钮 */
.btn-sys-head {
  background:#fff !important; color:#334155 !important; border:1px solid #E5E9F0 !important;
}
.btn-sys-head:hover { background:#F8FAFC !important; }


/* ============================================================
   弹框规范 · 对齐设计稿（覆盖全部 modal / form-modal / 动态弹框）
   ============================================================ */
.modal-overlay {
  background: rgba(15,23,42,.48) !important;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  padding: 28px 20px;
}
.modal, .form-modal {
  border-radius: 14px !important;
  box-shadow: 0 24px 60px -12px rgba(15,23,42,.35), 0 8px 24px -8px rgba(15,23,42,.18) !important;
  border: 1px solid #E5E9F0;
  overflow: hidden;
  animation: wzModalIn .26s cubic-bezier(.21,1.02,.55,1);
}
@keyframes wzModalIn {
  from { opacity:0; transform: translateY(14px) scale(.985); }
  to   { opacity:1; transform: translateY(0) scale(1); }
}
.modal-header, .form-modal-header {
  padding: 18px 22px !important;
  border-bottom: 1px solid #EEF1F6 !important;
  align-items: flex-start !important;
  background:#fff;
}
.modal-header h2, .modal-header h3, .form-modal-header .form-modal-title {
  font-size: 16.5px !important;
  font-weight: 700 !important;
  color: #0F172A !important;
  margin: 0 !important;
  line-height: 1.4;
}
.modal-header .modal-sub, .form-modal-header .modal-sub {
  font-size: 12.5px; color:#64748B; font-weight: 400; margin-top:4px;
}
.modal-body, .form-modal-body {
  padding: 22px !important;
}
#form-modal-content, #student-profile-body {
  max-height: calc(90vh - 140px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.modal-footer, .form-modal-footer {
  padding: 15px 22px !important;
  border-top: 1px solid #EEF1F6 !important;
  background: #FAFBFD !important;
  display: flex !important;
  justify-content: flex-end !important;
  gap: 10px !important;
}
.modal-footer .btn, .form-modal-footer .btn { margin: 0; }

/* 关闭按钮统一（对齐设计稿 30px 浅灰圆角 hover） */
.modal-close, .form-modal-close {
  width: 30px !important; height: 30px !important;
  border-radius: 8px !important;
  display: flex !important; align-items: center; justify-content: center;
  color: #94A3B8 !important; background: transparent !important;
  flex: none; padding: 0 !important; border: 0 !important;
  font-size: 20px !important; line-height: 1;
}
.modal-close:hover, .form-modal-close:hover { background:#F1F5F9 !important; color:#334155 !important; }

/* 弹框内表单统一几何（对齐设计稿） */
.modal-body .form-group, .form-modal-body .form-group { margin-bottom: 16px; }
.modal-body label, .form-modal-body label {
  font-size: 13px; font-weight: 600; color:#334155; margin-bottom: 7px; display:block;
}
.modal-body .form-input, .modal-body input[type="text"], .modal-body input[type="number"],
.modal-body input[type="date"], .modal-body input[type="password"], .modal-body input[type="email"],
.modal-body select, .modal-body textarea,
.form-modal-body .form-input, .form-modal-body input, .form-modal-body select, .form-modal-body textarea {
  height: 40px; border: 1px solid #E2E8F0; border-radius: 8px; padding: 0 12px;
  font-size: 13.5px; color:#334155; background:#fff; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.modal-body textarea, .form-modal-body textarea { height:auto; min-height:84px; padding:10px 12px; line-height:1.6; resize:vertical; }
.modal-body .form-input:focus, .modal-body input:focus, .modal-body select:focus, .modal-body textarea:focus,
.form-modal-body .form-input:focus, .form-modal-body input:focus, .form-modal-body select:focus, .form-modal-body textarea:focus {
  outline: none; border-color:#2563EB; box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

/* 弹框内按钮统一高度/圆角 */
.modal-footer .btn, .form-modal-footer .btn,
.modal-body .btn, .form-modal-body .btn {
  height: 38px; padding: 0 18px; border-radius: 8px; font-size: 13.5px; font-weight:600;
  display:inline-flex; align-items:center; gap:6px;
}
.btn-primary, .modal-footer .btn-primary, .form-modal-footer .btn-primary {
  background:#2563EB; color:#fff; border:1px solid #2563EB;
}
.btn-primary:hover { background:#1D4ED8; }
.btn-cancel, .btn-secondary, .modal-footer .btn-secondary, .form-modal-footer .btn-secondary {
  background:#fff; color:#475569; border:1px solid #E2E8F0;
}
.btn-cancel:hover, .btn-secondary:hover { background:#F8FAFC; }

/* 弹框内提示条（对齐设计稿 alert） */
.modal-body .alert, .form-modal-body .alert {
  display:flex; gap:10px; padding:11px 13px; border-radius:9px; font-size:13px; line-height:1.55;
}
.modal-body .alert-info, .form-modal-body .alert-info { background:#EFF4FF; color:#2454C9; border:1px solid #DCE6FF; }
.modal-body .alert-warning, .form-modal-body .alert-warning { background:#FFFBEB; color:#D97706; border:1px solid #FDEEC7; }
.modal-body .alert-danger, .form-modal-body .alert-danger { background:#FEF2F2; color:#DC2626; border:1px solid #FBD5D5; }


/* ===== 按钮图标几何统一 · 对齐设计稿（消除错位圆角块） ===== */
.btn svg, .btn svg.ic {
  width:15px !important; height:15px !important;
  min-width:15px !important; max-width:15px !important;
  display:inline-block !important; flex:none !important;
  margin:0 !important; padding:0 !important;
  background:transparent !important; border:0 !important;
  box-shadow:none !important; border-radius:0 !important;
  vertical-align:-0.15em !important;
}
.btn.btn-sm svg, .btn.btn-sm svg.ic { width:13px !important; height:13px !important; min-width:13px !important; max-width:13px !important; }
.btn { gap:7px; }
.btn, button.btn, input[type="button"].btn, input[type="submit"].btn { text-align:center; justify-content:center; align-items:center; }
/* 图标兜底：内联描边 SVG 始终以 16px 可见，不被外部样式压空/隐藏 */
svg.ic { display:inline-block; flex:none; fill:none; stroke:currentColor; stroke-width:2; }
svg.ic path, svg.ic polyline, svg.ic polygon, svg.ic line, svg.ic circle, svg.ic rect { fill:none; stroke:currentColor; }
/* 课次流程按钮内的图标：强制继承按钮文字色并保持描边可见，避免 play 三角被默认填充成实心块 */
.btn svg.ic, .lf-btn svg.ic { color:currentColor; fill:none; }
.btn svg.ic polygon, .lf-btn svg.ic polygon { fill:currentColor; stroke:none; }
/* 课次流程按钮：图标始终可见（描边图标 currentColor；play 三角实心），尺寸不被压 0 */
.lesson-flow .lf-btn svg.ic,
.lesson-content-toolbar .lf-btn svg.ic { width:14px !important; height:14px !important; min-width:14px !important; display:inline-block !important; opacity:1 !important; visibility:visible !important; }
.lesson-flow .lf-btn svg.ic path,
.lesson-flow .lf-btn svg.ic polyline,
.lesson-flow .lf-btn svg.ic line,
.lesson-flow .lf-btn svg.ic circle,
.lesson-flow .lf-btn svg.ic rect { fill:none; stroke:currentColor; stroke-width:2; }
.lesson-flow .lf-btn svg.ic polygon { fill:currentColor; stroke:none; }
/* 白色「添加资源」按钮内图标显式深色，防止浅底不可见 */
.lf-btn-res svg.ic, .lf-btn-res svg.ic path { color:#334155 !important; stroke:#334155 !important; }
/* 考勤顶部统计：统一大胶囊 */
.sc-rs-stats { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:14px; }
.sc-rs-stat { display:inline-flex; align-items:center; justify-content:center; font-size:13px; font-weight:600; padding:7px 16px; border-radius:999px; }
.btn-success { background:#16A34A !important; border-color:#16A34A !important; color:#fff !important; }
.btn-success:hover { background:#15803D !important; border-color:#15803D !important; box-shadow:0 4px 12px rgba(22,163,74,.28); }


/* ===== 页面操作按钮上移到顶栏 ===== */
.pro-page-actions-slot { display:flex; align-items:center; gap:10px; }
.pro-page-actions-slot:empty { display:none; }
.pro-page-actions-slot .page-header-actions,
.pro-page-actions-slot .page-actions { display:flex; align-items:center; gap:10px; flex-wrap:nowrap; }
.pro-page-actions-slot .btn { flex:0 0 auto; }
.pro-action-sentinel { display:none !important; }
.page-header { align-items:center; }
@media (max-width:1280px){
 .pro-topbar-right { gap:8px; }
}
@media (max-width:1024px){
 .pro-page-actions-slot { gap:6px; }
}

/* ===== r7：去大号标题 + 操作移到列表卡片右上角（业务零改动） ===== */
/* 1) 列表/管理类页面：隐藏页头大号标题；页头仅当只剩操作（已被移走）时整体收起 */
.page-content .page-header > h1,
.page-content .page-header h1 { font-size:0; height:0; margin:0; overflow:hidden; visibility:hidden; }
.page-content .page-header:has(.page-header-actions),
.page-content .page-header:has(.page-actions) { margin-bottom:0; min-height:0; }
/* 详情页保留返回与标题（通过 .page-header-left 内的标题不隐藏） */
.page-content .page-header .page-header-left h1,
.page-content .page-header .page-header-left .btn + h1 { font-size:18px; height:auto; visibility:visible; font-weight:700; color:#0F172A; }

/* r14：列表页页头（标题已隐藏、操作已迁走）整体收起，消除顶部空白条；含返回的详情页例外 */
.page-content > .page-header:not(:has(.page-header-left)) {
 display:none !important; height:0 !important; margin:0 !important; padding:0 !important; overflow:hidden !important;
}

/* 2) 操作按钮并进筛选行最右侧（与批量工具同一行） */
.filter-batch-slot.pro-filter-has-actions { gap:12px; flex-wrap:nowrap; }
.filter-batch-slot.pro-filter-has-actions .page-header-actions,
.filter-batch-slot.pro-filter-has-actions .page-actions {
 display:flex; align-items:center; gap:8px; flex-wrap:nowrap;
 padding-right:12px; margin-right:0; border-right:1px solid #E5E9F0;
}
.filter-batch-slot.pro-filter-has-actions .btn { flex:0 0 auto; white-space:nowrap; }

/* 回退方案：列表容器承载右上角操作条 */
.pro-list-with-actions { position:relative; }
.pro-list-actions-slot {
 display:flex; align-items:center; justify-content:flex-end; gap:10px;
 padding:0 0 14px; width:100%;
}
.pro-list-actions-slot:empty { display:none; padding:0; }
.pro-list-actions-slot .page-header-actions,
.pro-list-actions-slot .page-actions { display:flex; align-items:center; gap:10px; flex-wrap:nowrap; }
.pro-list-actions-slot .btn { flex:0 0 auto; white-space:nowrap; }
@media (max-width:1024px){
 .pro-list-actions-slot { gap:6px; padding-bottom:10px; }
 .pro-list-actions-slot .page-header-actions,
 .pro-list-actions-slot .page-actions { gap:6px; }
}

/* ============================================================
   r8 精简与间距统一（业务零改动）
   1) 去侧栏同步徽章 2) 去左下角用户卡片（退出并入顶栏头像菜单）
   3) 隐藏冗余说明/提示文字 4) 筛选一层化 5) 间距统一
   ============================================================ */
.sync-badge { display:none !important; }
.sidebar-footer { display:none !important; }

/* 冗余说明 / 提示文字：仅隐藏纯描述性文案，不影响按钮、徽标、空态与错误提示 */
.page-desc,
.pro-subtitle,
.pro-tip,
.pro-hint,
.field-hint,
.form-hint,
.pro-note,
.pro-info-note,
.pro-desc-text,
.sys-tip,
.sc-points-bar > span[style*="font-size:12px"],
.sc-points-list-hint,
.lsplit-hide-tip,
.shop-form-hint,
.pro-form-note { display:none !important; }

/* 表单弹框：去掉字段后面的浅灰小字注释（仅作用于表单弹层，不影响列表/详情正文） */
.form-modal span[style*="font-size:12px"][style*="color:#94A3B8"],
.form-modal div[style*="font-size:12px"][style*="color:#94A3B8"],
.form-modal p[style*="font-size:12px"][style*="color:#94A3B8"],
.form-modal span[style*="font-size:12px"][style*="color:#64748B"],
.form-modal div[style*="font-size:12px"][style*="color:#64748B"],
.form-modal p[style*="font-size:12px"][style*="color:#64748B"] { display:none !important; }
.form-modal span[style*="font-size:11px"][style*="color:#94A3B8"],
.form-modal div[style*="font-size:11px"][style*="color:#94A3B8"],
.form-modal p[style*="font-size:11px"][style*="color:#94A3B8"],
.form-modal span[style*="font-size:11px"][style*="color:#64748B"],
.form-modal div[style*="font-size:11px"][style*="color:#64748B"],
.form-modal p[style*="font-size:11px"][style*="color:#64748B"] { display:none !important; }

/* 顶栏头像：可点击的用户菜单触发器 */
.pro-top-user { position:relative; cursor:pointer; }
.pro-top-menu {
 position:absolute; top:calc(100% + 10px); right:0; min-width:188px;
 background:#fff; border:1px solid #E5E9F0; border-radius:12px;
 box-shadow:0 12px 32px rgba(15,23,42,.14); padding:6px; z-index:60;
 display:none;
}
.pro-top-menu.open { display:block; animation:wzModalIn .16s ease; }
.pro-top-menu-item {
 display:flex; align-items:center; gap:10px; width:100%;
 padding:9px 10px; border:0; background:transparent; border-radius:8px;
 font-size:13px; color:#334155; text-align:left; cursor:pointer;
 text-decoration:none;
}
.pro-top-menu-item:hover { background:#F1F5F9; }
.pro-top-menu-item svg { width:16px; height:16px; flex:0 0 auto; color:#64748B; }
.pro-top-menu-item.is-danger { color:#DC2626; }
.pro-top-menu-item.is-danger svg { color:#DC2626; }
.pro-top-menu-sep { height:1px; background:#EEF1F6; margin:4px 2px; }

/* 筛选区一层化：.filter-card 直接承载，内部不再有多余卡片 */
.filter-card {
 display:flex; align-items:center; gap:10px; flex-wrap:wrap;
 padding:14px 16px; border-radius:12px; background:#fff;
 border:1px solid #E5E9F0;
 box-shadow:0 1px 2px rgba(15,23,42,.04);
}
.filter-card > .filter-bar {
 display:flex; align-items:center; gap:10px; flex-wrap:wrap; flex:1 1 auto;
 margin:0; padding:0; background:transparent; border:0; border-radius:0;
}
.filter-card > .filter-bar.pro-one-layer { box-shadow:none; }

/* r14 修复：筛选卡内控件不再 width:100% 独占一行，统一 38px 高度，单行排布 */
.filter-card > .form-input,
.filter-card > select.form-input,
.filter-card > input.form-input {
 width:auto; min-width:130px; flex:0 0 auto; height:38px;
}
.filter-card > input[type="text"].form-input {
 flex:1 1 200px; min-width:180px; max-width:320px;
}

/* 筛选行主操作槽：查询/重置之后右对齐 */
.pro-filter-actions-slot {
 display:flex; align-items:center; gap:8px; flex-wrap:nowrap;
 margin-left:auto;
}
.pro-filter-actions-slot:empty { display:none; margin:0; }
.pro-filter-actions-slot .page-header-actions,
.pro-filter-actions-slot .page-actions {
 display:flex; align-items:center; gap:8px; flex-wrap:nowrap;
}

/* 列表内批量条：列表卡片顶部工具行 */
.pro-list-batchbar {
 display:flex; align-items:center; gap:12px; flex-wrap:wrap;
 padding:12px 16px; border-bottom:1px solid #EEF1F6;
 background:#FAFBFD;
}
.pro-list-batchbar:empty { display:none; padding:0; border-bottom:0; }
.pro-list-batchbar .filter-batch-slot { margin-left:0; }
.pro-list-batchbar .filter-batch-slot.pro-filter-has-actions { margin-left:auto; }
.pro-list-batchbar:has(.filter-batch-slot:empty) { display:none; padding:0; border-bottom:0; }

/* 列表卡片：白底圆角，紧贴筛选卡片 */
.pro-list-card {
 background:#fff; border:1px solid #E5E9F0; border-radius:12px;
 overflow:hidden; box-shadow:0 1px 2px rgba(15,23,42,.04);
}
.pro-list-card > .table-container { border:0; border-radius:0; box-shadow:none; background:transparent; }

/* 间距统一：顶栏 / 筛选 / 列表，垂直节奏一致 */
/* r14 间距收紧：筛选卡与列表卡间距统一 10px，筛选卡内边距收敛 */
.main-content > .page-content { padding:12px 16px 20px; }
.filter-card { margin-bottom:10px; padding:10px 14px; gap:8px; }
.page-content > .filter-card + .pro-list-card,
.page-content > .filter-card + .table-container,
.page-content > .filter-card + .pro-list-card-wrap { margin-top:10px; }
.page-content > .pro-list-card + #student-pager,
.page-content > .pro-list-card + div[id$="pager"] { margin-top:10px; }
.pro-list-batchbar { padding:10px 14px; gap:10px; }

/* 顶栏高度与内边距收敛，避免顶部过大 */
.pro-topbar { height:58px; }
@media (max-width:1024px){
 .main-content > .page-content { padding:14px 14px 20px; }
}

/* ===== r9 弹框表单规范：两列网格 / 加粗标签 / 底部按钮区 ===== */
.pro-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px 18px;}
.pro-form-grid .form-group{margin:0;}
.pro-flabel{display:block;font-size:13px;font-weight:600;color:#1E293B;margin-bottom:6px;}
.pro-req{color:#DC2626;margin-left:2px;}
.pro-form-grid .form-input{width:100%;height:40px;}
.pro-form-grid textarea.form-input{height:auto;}
#form-class-course-summary{background:#F8FAFC;border:1px solid #E2E8F0;border-radius:9px;padding:8px 10px;min-height:40px;margin-bottom:8px;line-height:1.9;}
.pro-pick-btn{width:100%;justify-content:center;}
.pro-form-note{font-size:12px;color:#64748B;background:#F1F5F9;padding:8px 12px;border-radius:8px;margin:10px 0;}
.pro-form-footer{display:flex;justify-content:flex-end;gap:10px;margin-top:18px;padding-top:14px;border-top:1px solid #EEF1F6;}
.pro-form-footer .btn{min-width:84px;justify-content:center;}
@media (max-width:640px){
 .pro-form-grid{grid-template-columns:1fr;}
}

/* ===== r9 学员清单 / 副标题 ===== */
.modal-titles{display:flex;flex-direction:column;gap:2px;min-width:0;}
.modal-subtitle{font-size:13px;font-weight:400;color:#94A3B8;line-height:1.4;}
.pro-search-add{display:flex;gap:12px;align-items:center;margin-bottom:14px;}
.pro-search-box{flex:1;display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #E2E8F0;border-radius:10px;padding:0 14px;height:42px;transition:border-color .15s,box-shadow .15s;}
.pro-search-box:focus-within{border-color:#2563EB;box-shadow:0 0 0 3px rgba(37,99,235,.12);}
.pro-search-ic{display:flex;color:#94A3B8;flex:none;}
.pro-search-ic svg{width:17px;height:17px;}
.pro-search-box input{flex:1;border:0;outline:0;font-size:14px;color:#1E293B;background:transparent;min-width:0;}
.pro-roster-box{max-height:52vh;overflow-y:auto;border:1px solid #EEF1F6;border-radius:10px;}
.pro-roster-table thead th:first-child{padding-left:20px;}
.pro-rc-stu a{display:inline-flex;align-items:center;gap:10px;}
.pro-rc-name{font-size:14px;font-weight:600;color:#1E293B;}
.pro-rc-id,.pro-rc-date{font-size:13px;color:#475569;}
.pro-rc-act{white-space:nowrap;text-align:right;}
.pro-act-link{display:inline-block;padding:4px 8px;font-size:13px;font-weight:600;color:#2563EB;text-decoration:none;border-radius:6px;}
.pro-act-link:hover{background:#EFF4FF;}
.pro-act-link.danger{color:#DC2626;}
.pro-act-link.danger:hover{background:#FEF2F2;}
.pro-empty{text-align:center;color:#94A3B8;padding:40px;font-size:13px;}
@media (max-width:640px){
 .pro-search-add{flex-wrap:wrap;}
}
/* r9 转班弹框 */
.pro-info-banner{display:flex;align-items:center;gap:8px;background:#EFF6FF;border:1px solid #DBEAFE;color:#2454C9;font-size:12.5px;padding:9px 12px;border-radius:9px;margin-bottom:14px;line-height:1.5;}
.pro-info-ic{flex:none;width:16px;height:16px;color:#2563EB;display:inline-flex;}
.trf-box{max-height:46vh;overflow-y:auto;border:1px solid #EEF1F6;border-radius:10px;padding:6px;}
.trf-row{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:9px;cursor:pointer;border:1px solid transparent;transition:background .15s,border-color .15s;}
.trf-row:hover{background:#F8FAFC;}
.trf-row.on{background:#EFF6FF;border-color:#BFDBFE;}
.trf-radio{flex:none;width:18px;height:18px;border-radius:50%;border:1.5px solid #CBD5E1;display:inline-flex;align-items:center;justify-content:center;background:#fff;}
.trf-row.on .trf-radio{background:#2563EB;border-color:#2563EB;}
.trf-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;}
.trf-info b{font-size:13.5px;color:#1E293B;font-weight:600;}
.trf-meta{font-size:12px;color:#94A3B8;}
.trf-count{flex:none;font-size:12.5px;color:#64748B;background:#F4F6FA;border-radius:6px;padding:3px 9px;}
/* r9 功能授权弹框 */
.pro-switch-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 14px;background:#F8FAFC;border:1px solid #EEF1F6;border-radius:10px;margin-bottom:16px;}
.pro-switch-text{display:flex;flex-direction:column;gap:3px;}
.pro-switch-text b{font-size:13.5px;color:#1E293B;font-weight:600;}
.pro-switch-text span{font-size:12px;color:#94A3B8;}
.pro-switch{position:relative;display:inline-block;width:40px;height:22px;flex:none;cursor:pointer;}
.pro-switch input{position:absolute;opacity:0;width:100%;height:100%;margin:0;cursor:pointer;}
.pro-switch-track{position:absolute;inset:0;background:#CBD5E1;border-radius:999px;transition:background .2s;}
.pro-switch-track::before{content:"";position:absolute;top:2px;left:2px;width:18px;height:18px;background:#fff;border-radius:50%;transition:transform .2s;box-shadow:0 1px 2px rgba(0,0,0,.2);}
.pro-switch input:checked + .pro-switch-track{background:#2563EB;}
.pro-switch input:checked + .pro-switch-track::before{transform:translateX(18px);}
.pro-field-block{margin-bottom:8px;}
.pro-pill-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px;}
.pro-pill{position:relative;cursor:pointer;}
.pro-pill input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer;}
.pro-pill{display:inline-flex;align-items:center;padding:7px 15px;font-size:13px;color:#475569;background:#fff;border:1px solid #E2E8F0;border-radius:999px;transition:all .15s;user-select:none;}
.pro-pill:hover{border-color:#93B4F5;color:#2563EB;}
.pro-pill.on{background:#EFF6FF;border-color:#2563EB;color:#2563EB;font-weight:600;}
.pro-enroll-line{display:flex;align-items:center;gap:8px;font-size:12.5px;color:#64748B;background:#F8FAFC;border:1px solid #EEF1F6;padding:9px 12px;border-radius:9px;margin-bottom:14px;}
.pro-enroll-line b{color:#1E293B;font-weight:600;}
/* r9 全局弹框表单标签/底部统一 */
#form-modal .form-group > label:not(.pro-flabel):not(.shop-switch-label):not(.pro-pill):not(.pro-switch){font-size:13px;font-weight:600;color:#334155;display:block;margin-bottom:6px;}
#form-modal .shop-form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px;}
.pro-field-block.disabled{opacity:.5;pointer-events:none;}
/* r10 积分商城商品卡片 */
.shop-toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;}
.shop-toolbar-count{font-size:13px;color:#64748B;}
.shop-goods-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:13px;}
.shop-goods-card{background:#fff;border:1px solid #E2E8F0;border-radius:12px;overflow:hidden;box-shadow:0 1px 2px rgba(15,23,42,.05);transition:box-shadow .15s,transform .15s;display:flex;flex-direction:column;}
.shop-goods-card:hover{box-shadow:0 6px 18px -6px rgba(23,48,107,.16);transform:translateY(-2px);}
.shop-goods-img{height:132px;background:#F4F6FA;display:flex;align-items:center;justify-content:center;color:#B7C2D6;}
.shop-goods-img svg{width:42px;height:42px;}
.shop-goods-img img{width:100%;height:100%;object-fit:cover;}
.shop-goods-body{padding:11px 13px;display:flex;flex-direction:column;gap:7px;flex:1;}
.shop-goods-top{display:flex;}
.shop-goods-name{font-weight:600;font-size:13.5px;color:#0F172A;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.shop-goods-line{display:flex;align-items:center;gap:5px;}
.flex-sp{flex:1;}
.shop-goods-line .muted{font-size:11.5px;color:#94A3B8;}
.shop-goods-line .muted.low{color:#DC2626;}
.price-pts{font-size:17px;font-weight:700;color:#2563EB;}
.shop-goods-acts{display:flex;gap:4px;margin-top:auto;padding-top:8px;border-top:1px solid #EDF1F7;}
@media (max-width:1100px){.shop-goods-grid{grid-template-columns:repeat(3,1fr);}}
@media (max-width:820px){.shop-goods-grid{grid-template-columns:repeat(2,1fr);}}

/* r13 商城运行时：面板内组件对齐新UI规范 */
.shop-tab-panel .kpi-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:13px;margin-bottom:14px;}
.shop-tab-panel .kpi{background:#fff;border:1px solid var(--line,#E5E9F0);border-radius:11px;padding:15px 18px;box-shadow:0 1px 2px rgba(15,23,42,.04);display:flex;flex-direction:column;gap:6px;}
.shop-tab-panel .kpi-label{font-size:12.5px;color:var(--ink-400,#94A3B8);}
.shop-tab-panel .kpi-value{font-size:25px;font-weight:700;line-height:1.1;}
.shop-filter-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:#fff;border:1px solid var(--line,#E5E9F0);border-radius:11px;padding:12px 14px;margin-bottom:14px;}
.shop-filter-bar .form-input,.shop-filter-bar .form-select{height:38px;margin:0;min-width:0;}
.shop-filter-bar .btn{height:38px;}
.shop-tab-panel .data-table{width:100%;border-collapse:collapse;font-size:13.5px;background:#fff;}
.shop-tab-panel .data-table thead th{background:#F8FAFD;color:var(--ink-500,#64748B);font-weight:600;text-align:left;padding:11px 14px;border-bottom:1px solid var(--line,#E5E9F0);font-size:12.5px;white-space:nowrap;}
.shop-tab-panel .data-table tbody td{padding:12px 14px;border-bottom:1px solid #EEF1F6;color:var(--ink-700,#334155);vertical-align:middle;}
.shop-tab-panel .data-table tbody tr:last-child td{border-bottom:0;}
.shop-tab-panel .data-table tbody tr:hover{background:#F8FAFE;}
/* r13 线下代兑换卡片 */
.shop-tab-panel .card{background:#fff;border:1px solid var(--line,#E5E9F0);border-radius:12px;box-shadow:0 1px 2px rgba(15,23,42,.04);}
.shop-tab-panel .card-title{font-size:15px;font-weight:700;color:var(--ink-900,#0F172A);margin-bottom:14px;}
.redeem-list{max-height:250px;overflow-y:auto;border:1px solid #E2E8F0;border-radius:9px;margin-bottom:13px;}
#redeem-student-detail{background:#F8FAFC;border-radius:10px;padding:14px;}
#redeem-student-detail:empty::before{content:"请先在上方选择一位学生";display:block;text-align:center;color:#94A3B8;font-size:13px;padding:18px 0;}
/* r13 代兑换行 */
.redeem-prow{display:flex;gap:12px;align-items:center;padding:12px;border:1px solid #E2E8F0;border-radius:10px;margin-bottom:10px;}
.redeem-prow .rp-main{flex:1;min-width:0;}
.redeem-prow .rp-name{font-weight:600;color:#1E293B;}
.redeem-prow .rp-sub{font-size:12px;color:#94A3B8;margin-top:3px;}
.redeem-prow .rp-points{font-weight:700;color:#2563EB;margin:0 8px;white-space:nowrap;}
.redeem-item{display:flex;align-items:center;gap:10px;padding:9px 12px;border-bottom:1px solid #EEF2F7;font-size:13px;cursor:pointer;}
.redeem-item:last-child{border-bottom:0;}
.redeem-item:hover{background:#F8FAFC;}
.redeem-item.on{background:#EFF6FF;color:#1D4ED8;font-weight:600;}
.redeem-item .ri-sub{font-size:12px;color:#94A3B8;font-weight:400;}

/* ===== r15 主操作下沉到列表卡批量条同一行右侧 ===== */
.pro-list-batchbar{display:flex;flex-direction:row !important;flex-wrap:nowrap !important;align-items:center;gap:12px;}
.pro-list-batchbar > .filter-batch-slot{flex:1;min-width:0;}
.pro-list-batchbar > .pro-list-actions-slot{flex:0 0 auto;margin-left:auto;display:flex;align-items:center;gap:10px;}
.pro-list-actions-slot:empty{display:none;}
.pro-list-actions-slot .page-header-actions,.pro-list-actions-slot .page-actions{display:flex;align-items:center;gap:10px;margin:0;}
.pro-list-actions-slot .btn{white-space:nowrap;}
.pro-list-batchbar > .filter-batch-slot{flex:0 1 auto;min-width:0;overflow:visible;}
.pro-list-batchbar .batch-toolbar{flex-wrap:nowrap;white-space:nowrap;}
.pro-list-batchbar > .pro-list-actions-slot{flex:0 0 auto !important;width:auto !important;min-width:0 !important;margin-left:auto !important;}
.pro-list-actions-slot > [data-pro-moved]{width:auto !important;flex:0 0 auto !important;}
.pro-list-batchbar > *{align-self:center !important;display:flex;align-items:center;}
/* r15 统一列表卡批量条内左右按钮高度 38 */
.pro-list-batchbar .btn{height:38px !important;}
.pro-list-batchbar .batch-sel-count{height:auto;line-height:38px;}
.pro-list-batchbar > .pro-list-actions-slot{padding:0 !important;width:auto !important;justify-content:flex-start;}

/* ===== r16 课程详情：左侧课次序号 + 右侧课次列表 ===== */
.lesson-split{display:grid;grid-template-columns:190px 1fr;gap:16px;align-items:start;}
.lsplit-main{padding-top:0;margin-top:0;}
.lsplit-main .lesson-flat-list.lsplit-cards{margin-top:0;padding-top:0;}
.lsplit-main .lesson-flat-item:first-child{margin-top:0;}
.lsplit-side{position:sticky;top:10px;padding:14px;margin-top:0;align-self:start;}
.lsplit-side-title{font-size:13px;font-weight:700;color:#0F172A;letter-spacing:.5px;margin-bottom:10px;}
.lsplit-stats{display:flex;flex-wrap:wrap;gap:8px;padding-bottom:12px;margin-bottom:12px;border-bottom:1px solid #EEF2F7;}
.lsplit-stat{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:600;padding:4px 11px;border-radius:999px;background:#F1F5F9;color:#475569;}
.lsplit-stat b{font-size:12.5px;font-weight:700;}
.lsplit-stat:has(.ls-dot-done){background:#DCFCE7;color:#16A34A;}
.lsplit-stat:has(.ls-dot-done) b{color:#15803D;}
.lsplit-stat:has(.ls-dot-over){background:#FEE2E2;color:#DC2626;}
.lsplit-stat:has(.ls-dot-over) b{color:#B91C1C;}
.lsplit-stat:has(.ls-dot-lock){background:#F1F5F9;color:#64748B;}
.lsplit-stat:has(.ls-dot-lock) b{color:#334155;}
.lsplit-list{display:flex;flex-direction:column;gap:7px;max-height:calc(100vh - 230px);overflow-y:auto;padding-right:2px;}
.lsplit-item{appearance:none;border:1px solid #E2E8F0;background:#fff;color:#334155;border-radius:9px;height:34px;font-size:14px;font-weight:600;cursor:pointer;transition:all .13s;display:flex;align-items:center;justify-content:center;}
.lsplit-item:hover{border-color:#BFDBFE;color:#1D4ED8;background:#F8FBFF;}
.lsplit-item.is-done{color:#94A3B8;}
.lsplit-item.is-late{color:#DC2626;}
.lsplit-item.active{background:#2563EB;border-color:#2563EB;color:#fff;box-shadow:0 4px 12px rgba(37,99,235,.28);}
.lsplit-main{min-width:0;max-height:calc(100vh - 150px);overflow-y:auto;padding-right:4px;}
.lsplit-main .lesson-flat-item{margin-bottom:12px;scroll-margin-top:8px;}
.lsplit-main .lesson-flat-item.lsplit-hl > .ls-card,.lsplit-main .lesson-flat-item.lsplit-hl{border-color:#BFDBFE;}
@media (max-width:900px){.lesson-split{grid-template-columns:130px 1fr;}.lsplit-side{position:static;}}

/* ===== r16 首页概览三 Tab ===== */
.dash-tabs{display:flex;gap:6px;background:#fff;border:1px solid #E5E9F0;border-radius:11px;padding:5px;margin-bottom:16px;width:fit-content;}
.dash-tab{appearance:none;border:0;background:transparent;color:#64748B;font-size:14px;font-weight:600;padding:8px 20px;border-radius:8px;cursor:pointer;transition:all .14s;}
.dash-tab:hover{color:#1D4ED8;}
.dash-tab.active{background:#2563EB;color:#fff;box-shadow:0 4px 12px rgba(37,99,235,.26);}
.dash-panel{display:none;}
.dash-panel.active{display:block;animation:wzDashIn .18s ease;}
@keyframes wzDashIn{from{opacity:0;transform:translateY(6px);}to{opacity:1;transform:none;}}

/* r16 修复：宽弹窗（报告/成长档案等）必须真正加宽，覆盖 .form-modal 的 680px 上限 */
#form-modal .form-modal.form-modal-wide{width:min(1180px,96vw) !important;max-width:min(1180px,96vw) !important;}
.ls-dot{width:8px;height:8px;border-radius:50%;display:inline-block;flex:0 0 auto;}
.ls-dot-done{background:#16A34A;}
.ls-dot-over{background:#DC2626;}
.ls-dot-lock{background:#94A3B8;}

/* ===== r17 考核方案 ===== */
.pro-plan-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin:0 0 14px;}
.pro-plan-head h2{font-size:19px;font-weight:700;color:#0F172A;margin:0 0 4px;}
.pro-plan-head .desc{font-size:13px;color:#64748B;margin:0;}
.pro-plan-head .btn{height:38px;flex:0 0 auto;}
.plan-sec-head{display:flex;align-items:center;justify-content:space-between;margin:16px 0 10px;}
.plan-sec-title{font-size:14px;font-weight:600;color:#0F172A;}
.plan-sec-sum{font-size:13px;color:#64748B;}
.plan-sec-sum b{color:#2563EB;font-weight:700;}
.plan-ind-wrap .data-table .form-input{height:34px;min-height:34px;padding:0 10px;font-size:13px;}
.plan-ind-wrap td .form-input{width:100%;}
.plan-w-ctrl{display:flex;align-items:center;gap:5px;}
.plan-w-ctrl input{max-width:86px;}
.plan-w-ctrl span{color:#94A3B8;font-size:13px;}
.plan-teacher-pick{display:flex;flex-wrap:wrap;gap:9px;max-height:212px;overflow-y:auto;padding:4px 2px;}

/* ===== 批量提取错题弹框 ===== */
#wex-mask{position:fixed;inset:0;background:rgba(15,23,42,.45);z-index:10001;display:flex;align-items:center;justify-content:center;padding:24px;}
#wex-mask .modal{background:#fff;border-radius:16px;margin:0;}
.wex-group{border:1px solid #E2E8F0;border-radius:10px;padding:12px 14px;margin-bottom:12px;background:#fff;}
.wex-thumbs{display:flex;flex-wrap:wrap;gap:10px;}
.wex-thumb{position:relative;width:74px;height:74px;border-radius:8px;overflow:hidden;border:1px solid #E2E8F0;background:#F1F5F9;}
.wex-thumb img{width:100%;height:100%;object-fit:cover;display:block;}
.wex-thumb-x{position:absolute;top:2px;right:4px;color:#fff;background:rgba(15,23,42,.6);border-radius:50%;width:18px;height:18px;line-height:16px;text-align:center;font-size:12px;cursor:pointer;}
.wex-cards{display:flex;flex-direction:column;gap:12px;max-height:60vh;overflow:auto;padding-right:4px;}
.wex-card{position:relative;border:1px solid #E2E8F0;border-radius:12px;background:#fff;box-shadow:0 1px 2px rgba(15,23,42,.04);overflow:hidden;}
.wex-card-meta{font-size:12px;color:#2563EB;background:#F5F9FF;border-bottom:1px solid #E8F0FE;padding:8px 14px;font-weight:600;}
.wex-card-content{padding:15px 14px 17px;font-size:14px;line-height:1.9;color:#1E293B;word-break:break-word;outline:none;border-radius:6px;transition:background .15s, box-shadow .15s;}
.wex-card-content:hover{background:#F8FAFC;}
.wex-card-content:focus{background:#FFF;border:1px solid #BFDBFE;box-shadow:0 0 0 3px rgba(37,99,235,.12);padding:14px 13px 16px;}
.wex-card-foot{margin-top:auto;}
.wex-edit-hint{position:absolute;top:8px;right:10px;visibility:hidden;opacity:0;font-size:11px;color:#94A3B8;background:rgba(255,255,255,.92);padding:2px 8px;border-radius:6px;pointer-events:none;transition:opacity .15s;}
.wex-card-content[contenteditable="true"]:hover ~ .wex-card-foot .wex-edit-hint,
.wex-card:has(.wex-card-content:focus) .wex-edit-hint{visibility:visible;opacity:1;}
.wex-card-imgs{display:flex;flex-wrap:wrap;gap:10px;padding:8px 14px 14px;}
.wex-card-img{max-width:100%;border:1px solid #E2E8F0;border-radius:8px;background:#F8FAFC;display:block;}
.wex-empty{color:#64748B;font-size:13px;padding:18px;text-align:center;background:#F8FAFC;border:1px dashed #CBD5E1;border-radius:10px;}
.plan-tchip{display:inline-flex;align-items:center;gap:7px;padding:7px 13px;border:1px solid #E2E8F0;border-radius:999px;background:#fff;cursor:pointer;font-size:13px;color:#334155;transition:all .15s;user-select:none;}
.plan-tchip input{accent-color:#2563EB;width:14px;height:14px;margin:0;}
.plan-tchip em{font-style:normal;font-size:12px;color:#94A3B8;}
.plan-tchip:hover{border-color:#93C5FD;background:#F8FAFF;}
.plan-tchip.on{border-color:#2563EB;background:#EFF6FF;color:#1D4ED8;font-weight:600;}
.plan-tchip.on em{color:#60A5FA;}
.plan-empty{font-size:13px;color:#94A3B8;padding:14px 0;}
.plan-result-hero{display:flex;align-items:center;gap:20px;background:linear-gradient(135deg,#EFF6FF,#F8FBFF);border:1px solid #DBEAFE;border-radius:12px;padding:20px 24px;margin-bottom:14px;}
.prh-score{font-size:46px;font-weight:800;color:#2563EB;line-height:1;}
.prh-score span{font-size:18px;font-weight:600;margin-left:2px;}
.prh-name{font-size:15px;font-weight:700;color:#0F172A;margin-bottom:4px;}
.prh-sub{font-size:12.5px;color:#64748B;}
.plan-total{font-size:16px;font-weight:800;color:#2563EB;}
.badge-neutral{background:#F1F5F9;color:#64748B;}
.badge-warning{background:#FFFBEB;color:#D97706;}
.badge-danger{background:#FEF2F2;color:#DC2626;}
#points-modal-body{padding:18px 22px 22px;}
#points-modal-body .pt-head{margin-top:0;}

/* ===== r20 学生画像 ===== */
.pt-head{display:flex;align-items:center;gap:18px;background:linear-gradient(135deg,#EFF6FF,#F8FBFF);border:1px solid #DBEAFE;border-radius:12px;padding:18px 22px;margin-bottom:16px;color:#0F172A;}
.pt-avatar{background:#DBEAFE!important;color:#1D4ED8!important;}
.pt-total-box{text-align:right;flex-shrink:0;padding-left:18px;border-left:1px solid #DBEAFE;min-width:96px;}
.pt-total-num{font-size:32px;font-weight:800;line-height:1;color:#2563EB!important;}
.pt-total-label{font-size:12px;color:#64748B!important;opacity:1!important;margin-top:4px;}
.pt-avatar .pro-avatar{width:60px;height:60px;font-size:24px;}
.pt-head-info{flex:1 1 auto;min-width:0;}
.pt-head-name{font-size:19px;font-weight:700;color:#0F172A;display:flex;align-items:center;gap:9px;}
.pt-head-sid{font-size:12.5px;font-weight:400;color:#94A3B8;}
.pt-head-meta{font-size:12.5px;color:#64748B;margin:3px 0 9px;}
.pt-tags{display:flex;flex-wrap:wrap;gap:7px;}
.pt-tag{display:inline-flex;align-items:center;font-size:12px;font-weight:600;padding:3px 11px;border-radius:999px;border:1px solid;}
.pt-head-score{flex:0 0 auto;text-align:center;padding-left:18px;border-left:1px solid #DBEAFE;min-width:96px;}
.pt-score-num{font-size:38px;font-weight:800;color:#2563EB;line-height:1;}
.pt-score-num span{font-size:17px;font-weight:600;}
.pt-score-lb{font-size:12px;color:#64748B;margin:3px 0 6px;}
.pt-na{font-size:13px;color:#94A3B8;}
.pt-sec-title{font-size:14px;font-weight:700;color:#0F172A;margin:18px 0 10px;padding-left:9px;border-left:3px solid #2563EB;line-height:1.1;}
.pt-empty{font-size:13px;color:#94A3B8;background:#F8FAFC;border:1px dashed #E2E8F0;border-radius:9px;padding:14px 16px;}
.pt-empty-inline{font-size:12.5px;color:#94A3B8;}
.pt-subj-list{display:flex;flex-direction:column;gap:13px;}
.pt-subj-row{}
.pt-subj-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:6px;}
.pt-subj-name{flex:0 0 auto;}
.pt-subj-val{display:flex;align-items:center;gap:8px;font-size:13px;}
.pt-subj-val b{font-size:16px;font-weight:800;}
.pt-subj-cnt{font-size:12px;color:#94A3B8;font-weight:400;}
.pt-up{color:#16A34A;font-weight:700;}
.pt-down{color:#DC2626;font-weight:700;}
.pt-bar{height:8px;background:#F1F5F9;border-radius:999px;overflow:hidden;}
.pt-bar-in{height:100%;border-radius:999px;transition:width .4s ease;}
.pt-points-sum{display:flex;gap:20px;flex-wrap:wrap;font-size:13px;color:#334155;margin-bottom:12px;}
.pt-points-sum b{font-weight:800;}
.pt-pos{color:#16A34A;}
.pt-neg{color:#DC2626;}
.pt-cloud-label{font-size:12.5px;font-weight:600;color:#475569;margin:10px 0 7px;}
.pt-cloud{display:flex;flex-wrap:wrap;gap:8px;}
.pt-ptag{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;padding:5px 11px;border-radius:999px;border:1px solid;background:#fff;}
.pt-ptag b{font-size:12px;font-weight:800;}
.pt-ptag.pos{border-color:#BBF7D0;background:#F0FDF4;color:#15803D;}
.pt-ptag.pos b{color:#16A34A;}
.pt-ptag.neg{border-color:#FECACA;background:#FEF2F2;color:#B91C1C;}
.pt-ptag.neg b{color:#DC2626;}
.pt-ptag.weak{border-color:#FED7AA;background:#FFF7ED;color:#C2410C;}
.pt-ptag.weak b{color:#EA580C;}
.pt-obs-sum{display:flex;gap:18px;flex-wrap:wrap;font-size:13px;color:#334155;margin-bottom:11px;}
.pt-obs-ratio b{color:#2563EB;}
.pt-obs-tags{display:flex;flex-wrap:wrap;gap:8px;}
.pt-obstag{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;padding:5px 11px;border-radius:999px;border:1px solid #E2E8F0;background:#F8FAFC;color:#475569;}
.pt-obstag b{font-size:12px;font-weight:800;color:#0F172A;}
.pt-badge{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 7px;border-radius:6px;font-size:12px;font-weight:700;}

/* ========== 全局二次确认弹窗 ========== */
.wz-confirm-mask{position:fixed;inset:0;z-index:10010;background:rgba(15,23,42,.48);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);display:flex;align-items:center;justify-content:center;padding:24px;}
.wz-confirm-box{width:100%;max-width:420px;background:#fff;border-radius:14px;box-shadow:0 24px 60px -12px rgba(15,23,42,.35),0 8px 24px -8px rgba(15,23,42,.18);border:1px solid #E5E9F0;overflow:hidden;animation:wzModalIn .24s cubic-bezier(.21,1.02,.55,1);}
.wz-confirm-head{display:flex;align-items:center;gap:10px;padding:18px 22px 0;}
.wz-confirm-title-ico{flex:none;width:26px;height:26px;border-radius:50%;background:#FEF3C7;color:#D97706;display:inline-flex;align-items:center;justify-content:center;}
.wz-confirm-title-ico svg{width:16px;height:16px;}
.wz-confirm-title{font-size:16px;font-weight:700;color:#0F172A;}
.wz-confirm-msg{padding:12px 22px 4px;font-size:14px;line-height:1.7;color:#334155;white-space:pre-wrap;word-break:break-word;}
.wz-confirm-foot{display:flex;justify-content:flex-end;gap:10px;padding:18px 22px;}
.wz-confirm-foot .btn{min-width:72px;height:38px;display:inline-flex;align-items:center;justify-content:center;}

/* ==================== 恢复：课堂（去上课）课件+点名 并排样式（acrud 重建时丢失，补回） ==================== */
/* ==================== 课堂（acrud220）：课件资源 + 点名名单并排 ==================== */
.sc-topbar-simple{height:54px;padding:0 18px;display:flex;align-items:center;justify-content:space-between;background:#1E293B;flex:0 0 54px;}
.sc-topbar-simple .sc-course-name{color:#fff;font-size:14.5px;font-weight:600;display:inline-flex;align-items:center;gap:7px;}
.sc-topbar-simple .sc-course-name svg{width:17px;height:17px;color:#93C5FD;}
.sc-class-chip{margin-left:10px;font-size:12px;color:#CBD5E1;background:rgba(255,255,255,.1);padding:3px 10px;border-radius:999px;}
.sc-body-simple{gap:14px;padding:14px;background:#F4F6FA;}
.sc-pane{background:#fff;border:1px solid rgba(226,232,240,.8);border-radius:12px;display:flex;flex-direction:column;min-height:0;min-width:0;box-shadow:0 1px 3px rgba(15,23,42,.04);}
.sc-pane-cw{flex:1 1 42%;}
.sc-pane-rs{flex:1 1 58%;}
.sc-pane-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 16px;border-bottom:1px solid #F1F5F9;flex:0 0 auto;}
.sc-pane-title{font-size:14px;font-weight:700;color:#0F172A;display:inline-flex;align-items:center;gap:7px;}
.sc-pane-title svg{width:16px;height:16px;color:#2563EB;}
.sc-lesson-select{max-width:240px;height:34px;font-size:12.5px;}
.sc-pane-body{padding:14px 16px;overflow-y:auto;flex:1;min-height:0;}
/* 投屏层挂载点（平时隐藏，投屏时覆盖课堂区域） */
.sc-present-hold{position:absolute;inset:0;pointer-events:none;}
.sc-present-hold #sc-present-layer{pointer-events:auto;}

/* ---------- 点名区统计 ---------- */
.sc-rs-stats{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px;}
.sc-rs-stat{font-size:12px;font-weight:600;padding:4px 11px;border-radius:999px;}
.sc-rs-stat.is-full{background:#DCFCE7;color:#16A34A;}
.sc-rs-stat.is-partial{background:#FEF3C7;color:#D97706;}
.sc-rs-stat.is-leave{background:#E0E7FF;color:#4F46E5;}
.sc-rs-stat.is-unset{background:#F1F5F9;color:#94A3B8;}

/* ---------- 点名卡片（大卡片） ---------- */
.rc-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:12px;}
.rc-sel-count{font-size:12.5px;color:#64748B;margin-right:6px;}
.rc-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px;}
.rc-card{position:relative;display:flex;align-items:center;gap:11px;padding:15px 14px;border:1.5px solid #E2E8F0;border-radius:12px;background:#fff;cursor:pointer;transition:border-color .15s,box-shadow .15s,background .15s;user-select:none;}
.rc-card:hover{border-color:#BFDBFE;box-shadow:0 4px 14px rgba(37,99,235,.08);}
.rc-card.selected{border-color:#2563EB;background:#F5F9FF;box-shadow:0 4px 14px rgba(37,99,235,.14);}
.rc-check{position:absolute;top:10px;right:10px;width:17px;height:17px;border-radius:5px;border:1.5px solid #CBD5E1;background:#fff;display:flex;align-items:center;justify-content:center;transition:all .15s;}
.rc-card.selected .rc-check{background:#2563EB;border-color:#2563EB;}
.rc-card.selected .rc-check::after{content:'';width:4px;height:8px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg) translate(-1px,-1px);}
.rc-av{width:42px;height:42px;border-radius:50%;flex:0 0 42px;display:flex;align-items:center;justify-content:center;font-size:16px;font-weight:700;color:#fff;background:linear-gradient(135deg,#3B82F6,#2563EB);}
.rc-info{flex:1;min-width:0;padding-right:6px;display:flex;flex-direction:column;}
.rc-name{font-size:14px;font-weight:600;color:#0F172A;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.rc-meta{display:flex;align-items:center;gap:6px;margin-top:6px;flex-wrap:wrap;}
.rc-badge{font-size:11px;padding:2px 8px;border-radius:999px;font-weight:600;}
.rc-badge-full{background:#DCFCE7;color:#16A34A;}
.rc-badge-partial{background:#FEF3C7;color:#D97706;}
.rc-badge-leave{background:#E0E7FF;color:#4F46E5;}
.rc-badge-unset{background:#F1F5F9;color:#94A3B8;}
.rc-hours{font-size:11px;color:#B45309;font-weight:600;}
.rc-hours-ok{color:#16A34A;}
.rc-hours-link{align-self:flex-start;margin-top:8px;padding:0;background:none;border:none;font-size:12px;font-weight:600;color:#2563EB;cursor:pointer;line-height:1;}
.rc-hours-link:hover{color:#1D4ED8;text-decoration:underline;}
.rc-card.rc-full{border-color:#BBF7D0;}
.rc-card.rc-partial{border-color:#FDE68A;}
.rc-card.rc-leave{border-color:#C7D2FE;}
@media (max-width:1100px){
 .sc-body-simple{flex-direction:column;}
 .sc-pane{flex:1 1 auto;}
}

/* ===== 学生/教师 详情页（全屏覆盖层） ===== */
.dt-page{display:block;width:100%;box-sizing:border-box;}
.dt-page-inner{max-width:1180px;margin:0 auto;padding:8px 4px 60px;width:100%;box-sizing:border-box;}
.dt-topbar{display:flex;align-items:center;gap:14px;margin-bottom:16px;position:relative;}
.dt-topbar-title{font-size:18px;font-weight:700;color:#0F172A;margin:0;flex:1;text-align:center;}
.dt-body{display:flex;flex-direction:column;gap:16px;}
.dt-head.card{display:flex;align-items:center;gap:20px;padding:20px 24px;flex-wrap:wrap;}
.dt-head-main{display:flex;align-items:center;gap:16px;flex:1;min-width:0;}
.dt-avatar{width:64px;height:64px;border-radius:50%;background:linear-gradient(135deg,#2563EB,#1D4ED8);color:#fff;display:flex;align-items:center;justify-content:center;font-size:26px;font-weight:700;flex-shrink:0;}
.dt-head-id{min-width:0;}
.dt-head-name{font-size:21px;font-weight:800;color:#0F172A;line-height:1.2;}
.dt-head-sub{font-size:13px;color:#64748B;margin-top:5px;}
.dt-head-score{flex:0 0 auto;text-align:center;padding-left:22px;border-left:1px solid #E2E8F0;min-width:104px;}
.dt-score-num{font-size:34px;font-weight:800;color:#2563EB;line-height:1;}
.dt-score-lb{font-size:12.5px;color:#64748B;margin-top:5px;}
.dt-info-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px 28px;background:#fff;border:1px solid #E2E8F0;border-radius:12px;padding:18px 24px;}
/* 头卡内嵌版（头卡与基础信息合并为一张卡）：去外框、顶部细分隔线 */
.dt-info-grid.dt-info-in{width:100%;background:transparent;border:none;border-top:1px solid #F1F5F9;border-radius:0;padding:18px 0 0;margin-top:16px;}
.dt-info-cell{display:flex;flex-direction:column;gap:4px;min-width:0;}
.dt-info-label{font-size:12px;color:#94A3B8;}
.dt-info-val{font-size:14px;color:#0F172A;font-weight:600;word-break:break-all;}
@media(max-width:820px){.dt-info-grid{grid-template-columns:repeat(2,1fr);}}
.dt-tabs{display:flex;gap:6px;background:#fff;border:1px solid #E2E8F0;border-radius:12px;padding:6px;}
.dt-tab{appearance:none;border:none;background:transparent;padding:9px 18px;border-radius:9px;font-size:14px;font-weight:600;color:#475569;cursor:pointer;transition:all .15s;}
.dt-tab:hover{background:#F1F5F9;}
.dt-tab.active{background:#2563EB;color:#fff;box-shadow:0 2px 8px rgba(37,99,235,.28);}
.dt-table-card{padding:0;overflow:hidden;}
.dt-table-scroll{overflow-x:auto;}
.dt-table{width:100%;border-collapse:collapse;font-size:13.5px;}
.dt-table thead th{background:#F8FAFC;color:#475569;font-weight:600;text-align:left;padding:11px 14px;border-bottom:1px solid #E2E8F0;white-space:nowrap;}
.dt-table tbody td{padding:11px 14px;border-bottom:1px solid #F1F5F9;color:#1E293B;vertical-align:middle;}
.dt-table tbody tr:last-child td{border-bottom:none;}
.dt-table tbody tr:hover{background:#F8FAFC;}
.dt-empty{text-align:center;color:#94A3B8;padding:34px 0!important;}
.dt-badge{display:inline-block;font-size:12px;font-weight:600;padding:3px 11px;border-radius:999px;}
.dt-badge.green{background:#DCFCE7;color:#15803D;}
.dt-badge.gray{background:#F1F5F9;color:#64748B;}
.dt-badge.amber{background:#FEF3C7;color:#B45309;}
.dt-badge.blue{background:#DBEAFE;color:#1D4ED8;}
.dt-badge.red{background:#FEE2E2;color:#B91C1C;}
.dt-pos{color:#16A34A;font-weight:700;}
.dt-neg{color:#DC2626;font-weight:700;}
.dt-pager{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-top:1px solid #F1F5F9;flex-wrap:wrap;}
.dt-pager-total{font-size:12.5px;color:#94A3B8;}
.dt-pager-btns{display:flex;align-items:center;gap:5px;}
.dt-page-btn{appearance:none;border:1px solid #E2E8F0;background:#fff;color:#475569;min-width:30px;height:30px;padding:0 9px;border-radius:7px;font-size:13px;cursor:pointer;}
.dt-page-btn:hover:not(:disabled){border-color:#2563EB;color:#2563EB;}
.dt-page-btn.active{background:#2563EB;border-color:#2563EB;color:#fff;}
.dt-page-btn:disabled{opacity:.45;cursor:not-allowed;}
.dt-page-dots{color:#94A3B8;padding:0 2px;}

/* ================= acrud259 · 课次卡片化 + 详情页铺满 ================= */
/* 课次拆分：去掉左侧栏后单列横向铺满 */
.lesson-split.lesson-split-full { display: block; grid-template-columns: none; }
.lesson-split.lesson-split-full > .lsplit-main { display: block; max-height: none; overflow: visible; padding-right: 0; }
.lesson-split.lesson-split-full .lsplit-cards { gap: 14px; margin-top: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
@media (max-width: 1100px) {
  .lesson-split.lesson-split-full .lsplit-cards { grid-template-columns: 1fr; }
}

/* 班级卡式课次卡 */
.lesson-card.lesson-c-card {
  border: 1px solid #E5E9F0;
  border-left: 4px solid #CBD5E1;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15,23,42,.05);
  padding: 0 0 0 0;
  overflow: hidden;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}
.lesson-card.lesson-c-card .lesson-head {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px 12px;
  background: #fff; border-bottom: none;
}
.lesson-card.lesson-c-card .lesson-resources { padding: 4px 18px 8px; }

/* 内容区状态标识条 */
.lc-marks { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 18px 8px; }
.lc-mark {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12.5px; font-weight: 600; line-height: 1;
  padding: 6px 11px; border-radius: 999px; cursor: default;
  border: 1px solid transparent;
}
.lc-mark svg.ic { width: 13px; height: 13px; min-width: 13px; }
.lc-mark-ok { background: #F0FDF4; color: #15803D; border-color: #BBF7D0; }
.lc-mark-no { background: #F8FAFC; color: #94A3B8; border-color: #E2E8F0; }
.lc-mark-points { background: #FFF7ED; color: #C2410C; border-color: #FED7AA; cursor: pointer; }
.lc-mark-points:hover { background: #FFEDD5; }

/* 资源省略号行 */
.res-item.res-more {
  justify-content: center; align-items: center; gap: 8px;
  border: 1px dashed #CBD5E1; background: #F8FAFC;
  color: #64748B; cursor: pointer; border-radius: 8px; padding: 8px 10px;
}
.res-item.res-more:hover { background: #EFF6FF; border-color: #93C5FD; color: #1D4ED8; }
.res-more-dots { font-size: 18px; font-weight: 700; letter-spacing: 1px; line-height: 1; }
.res-more-txt { font-size: 12.5px; }

/* 卡片底部：左下操作 / 右下编辑删除 */
.lc-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  padding: 10px 18px 13px;
  border-top: 1px solid #F1F5F9;
  margin-top: 4px;
}
.lc-foot-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.lc-foot-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13.5px; font-weight: 600; color: #2563EB;
  cursor: pointer; user-select: none; white-space: nowrap;
}
.lc-foot-link svg.ic { width: 14px; height: 14px; min-width: 14px; }
.lc-foot-link:hover { color: #1D4ED8; text-decoration: underline; }
.lc-foot-link.is-disabled { color: #CBD5E1; cursor: not-allowed; text-decoration: none; }
.lc-foot-link.is-done { color: #16A34A; }
.lc-foot-link.is-points { color: #EA580C; }
.lc-foot-link.is-finished { color: #16A34A; cursor: default; }
.lc-foot-link.is-finished:hover { text-decoration: none; }
.lc-foot-icons { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }

/* 详情页（教师/学生）横向铺满，去掉两侧大留白，内边距与 .page-content 对齐 */
.dt-page { width: 100%; box-sizing: border-box; }
.dt-page-inner { max-width: none; padding: 24px 24px 60px; }

/* ================= acrud261 · 课次工具条 + 资源显隐切换 + 查询 ================= */
.lesson-split-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
  padding: 10px 14px; margin-bottom: 14px;
  background: #fff; border: 1px solid #E5E9F0; border-radius: 12px;
  box-shadow: 0 1px 3px rgba(15,23,42,.04);
}
.lst-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lst-input, .lst-select {
  height: 34px; border: 1px solid #D8DEE9; border-radius: 8px;
  font-size: 13px; color: #1E293B; padding: 0 10px; background: #fff; outline: none;
  box-sizing: border-box; min-width: 130px;
}
.lst-input:focus, .lst-select:focus { border-color: #3B82F6; box-shadow: 0 0 0 3px rgba(59,130,246,.12); }
.lst-toggle { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
/* acrud299：查询条件占位提示与日期/月份前缀、重置按钮 */
.lst-select.lst-ph { color: #94A3B8; }
.lst-field { display: inline-flex; align-items: stretch; height: 34px; border: 1px solid #D8DEE9; border-radius: 8px; background: #fff; overflow: hidden; box-sizing: border-box; }
.lst-field:focus-within { border-color: #3B82F6; box-shadow: 0 0 0 3px rgba(59,130,246,.12); }
.lst-field .lst-prefix { display: inline-flex; align-items: center; padding: 0 8px 0 10px; font-size: 12px; color: #64748B; white-space: nowrap; background: #F8FAFC; border-right: 1px solid #E5E9F0; }
.lst-field .lst-input { border: none; min-width: 0; height: 100%; }
.lst-field .lst-input:focus { box-shadow: none; }
.lst-reset { white-space: nowrap; height: 34px; }

/* 资源默认隐藏，.lesson-split.show-res 时显示（所有课次） */
.lesson-split.lesson-split-full .lesson-resources { display: none; }
.lesson-split.lesson-split-full.show-res .lesson-resources { display: block; }
.lsplit-filter-empty { border-top: 1px dashed #E2E8F0; }

/* 教师端我的班级卡片化（acrud262） */
.tc-card-progress { padding: 2px 18px 10px; }
.tc-card-progress .course-lesson-progress { min-width: 0; width: 100%; }

/* 教师端我的班级卡片网格宽度兜底（acrud262 修复） */
#teacher-course-list .pro-c-grid { width: 100%; min-width: 0; }
#teacher-course-list .pro-c-card { min-width: 0; }

/* ============ acrud265 考核方案：年度/季度 + 确认/修改/详情 + 评分依据 ============ */
.plan-term-tip{margin:10px 0 4px;padding:9px 14px;background:#EFF6FF;border:1px solid #DBEAFE;border-radius:8px;color:#1E40AF;font-size:13px;}
.ap-plan-yt{font-weight:600;color:#1E293B;}
.ap-plan-term{display:inline-block;margin-left:4px;padding:1px 9px;border-radius:999px;background:#EEF2FF;color:#4338CA;font-size:12px;}
/* 结果弹框操作列 */
.apr-ops{white-space:nowrap;}
.apr-link{display:inline-block;margin:0 2px;padding:2px 7px;font-size:12.5px;color:#2563EB;cursor:pointer;border-radius:6px;}
.apr-link:hover{background:#EFF6FF;}
.apr-link-ok{color:#fff;background:#16A34A;font-weight:600;}
.apr-link-ok:hover{background:#15803D;}
.apr-link-edit{color:#B45309;}
.apr-link-edit:hover{background:#FFFBEB;}
.apr-link-cancel{color:#DC2626;}
.apr-link-cancel:hover{background:#FEF2F2;}
.apr-row-confirmed{background:#F0FDF4;}
.apr-row-confirmed:hover{background:#DCFCE7;}
.apr-manual{display:inline-block;font-size:11px;color:#B45309;background:#FEF3C7;border-radius:6px;padding:0 5px;margin-left:3px;}
.apr-tip{margin:0 0 12px;padding:9px 14px;background:#FFFBEB;border:1px solid #FDE68A;border-radius:8px;color:#92400E;font-size:12.5px;}
/* 详情弹框 */
.apd-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:14px 18px;background:linear-gradient(135deg,#F8FAFF,#EFF6FF);border:1px solid #DBEAFE;border-radius:12px;margin-bottom:16px;}
.apd-teacher{font-size:20px;font-weight:800;color:#1E293B;}
.apd-head .muted{font-size:12.5px;color:#64748B;margin-top:3px;}
.apd-classes{max-width:560px;}
.apd-head-r{text-align:right;flex:0 0 auto;}
.apd-total{font-size:40px;font-weight:800;color:#2563EB;line-height:1;}
.apd-level{margin-top:6px;font-size:13px;}
.apd-sec-head{display:flex;align-items:center;gap:10px;margin:18px 0 8px;padding-bottom:8px;border-bottom:1px solid #EEF1F6;}
.apd-sec-ic{width:26px;height:26px;display:inline-flex;align-items:center;justify-content:center;border-radius:8px;background:#2563EB;color:#fff;font-weight:700;font-size:14px;flex:0 0 26px;}
.apd-sec-name{font-size:15px;font-weight:700;color:#1E293B;}
.apd-sec-score{margin-left:auto;font-size:22px;font-weight:800;color:#2563EB;}
.apd-sec-score small{font-size:12px;font-weight:500;color:#94A3B8;}
.apd-sec-w{font-size:12px;color:#94A3B8;background:#F1F5F9;border-radius:999px;padding:2px 10px;}
.apd-reason{font-size:12.5px;color:#64748B;background:#F8FAFC;border-left:3px solid #93C5FD;padding:8px 12px;border-radius:0 8px 8px 0;margin-bottom:10px;line-height:1.6;}
.apd-kpis{display:flex;flex-wrap:wrap;gap:10px;margin:10px 0;}
.apd-kpi{flex:1 1 130px;background:#fff;border:1px solid #E5E9F0;border-radius:10px;padding:10px 14px;text-align:center;}
.apd-kpi b{display:block;font-size:22px;font-weight:800;color:#1E293B;}
.apd-kpi span{font-size:12px;color:#94A3B8;}
.apd-chart-card{background:#fff;border:1px solid #E5E9F0;border-radius:10px;padding:12px;}
.apd-chart-card canvas{width:100%;height:auto;display:block;}
.apd-table{font-size:12.5px;}
/* 增值前后对比 */
.apd-before-after{display:flex;align-items:center;gap:14px;margin:12px 0;flex-wrap:wrap;}
.aba{flex:1 1 180px;text-align:center;padding:16px;border-radius:12px;border:1px solid #E5E9F0;background:#fff;}
.aba-lab{display:block;font-size:12.5px;color:#94A3B8;margin-bottom:6px;}
.aba b{font-size:30px;font-weight:800;}
.aba-base b{color:#64748B;}
.aba-end b{color:#2563EB;}
.aba-arrow{font-size:24px;color:#94A3B8;}
.aba-delta{flex:0 0 auto;font-size:18px;font-weight:800;padding:8px 16px;border-radius:10px;}
.aba-delta.up{background:#DCFCE7;color:#15803D;}
.aba-delta.down{background:#FEE2E2;color:#B91C1C;}
/* 上进面条形 */
.apd-upbars{display:flex;width:100%;height:54px;border-radius:10px;overflow:hidden;margin:10px 0;}
.upbar{display:flex;flex-direction:column;align-items:center;justify-content:center;color:#fff;font-size:12px;min-width:0;}
.upbar b{font-size:16px;font-weight:800;line-height:1;}
.upbar span{font-size:11px;opacity:.95;}
.upbar-up{background:#16A34A;}
.upbar-flat{background:#94A3B8;}
.upbar-down{background:#DC2626;}

/* ============ mp12 教师端运营概况 ============ */
.tops-kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 6px 0 4px; }
.tops-kpi-card { background: #F8FAFC; border: 1px solid #F1F5F9; border-radius: 12px; padding: 14px 16px; }
.tops-kpi-v { font-size: 26px; font-weight: 800; color: #0F172A; }
.tops-kpi-v.tops-blue { color: #2563EB; } .tops-kpi-v.tops-green { color: #16A34A; }
.tops-kpi-v.tops-purple { color: #7C3AED; } .tops-kpi-v.tops-amber { color: #D97706; }
.tops-kpi-v.tops-red { color: #DC2626; }
.tops-kpi-k { font-size: 12px; color: #94A3B8; margin-top: 4px; }
.tops-sec-title { font-size: 13px; font-weight: 600; color: #334155; margin: 18px 0 10px; padding-left: 9px; border-left: 3px solid #2563EB; }
.tops-chart { min-height: 120px; }
.tops-empty { color: #94A3B8; font-size: 13px; padding: 14px 4px; }
.tops-warns { display: flex; flex-wrap: wrap; gap: 8px; }
.tops-warn-tag { background: #FEF2F2; color: #DC2626; border: 1px solid #FECACA; border-radius: 999px; padding: 5px 14px; font-size: 12.5px; cursor: pointer; }
.tops-warn-tag:hover { background: #FEE2E2; }
