/* ============ 全局变量与重�?============ */
:root {
  --primary: #1a56db;
  --primary-light: #3b82f6;
  --primary-dark: #1e40af;
  --primary-bg: #eff6ff;
  --success: #059669;
  --success-bg: #ecfdf5;
  --warning: #d97706;
  --warning-bg: #fffbeb;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --info: #0891b2;
  --info-bg: #ecfeff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --sidebar-width: 200px;
  --header-height: 0px;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.04);
  --transition: 0.2s ease;
  --transition-slow: 0.35s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    linear-gradient(120deg, rgba(239,246,255,0.92), rgba(249,250,251,0.96) 38%, rgba(236,253,245,0.72)),
    var(--gray-50);
  color: var(--gray-800);
  display: flex;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(rgba(59,130,246,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16,185,129,0.035) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(120deg, rgba(0,0,0,0.86), transparent 72%);
  animation: pageGridDrift 22s linear infinite;
}

@keyframes pageGridDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 76px 38px, 38px 76px; }
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ============ 侧边�?============ */
.sidebar {
  width: var(--sidebar-width);
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: var(--white);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  box-shadow: 4px 0 20px rgba(0,0,0,0.15);
  overflow-y: auto;
}

.sidebar-header {
  padding: 16px 14px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  font-size: 26px;
  line-height: 1;
}

.logo-text {
  min-width: 0;
  flex: 1;
}

.logo-text h1 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  white-space: nowrap;
  line-height: 1.25;
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-sub {
  display: block;
  font-size: 13px;
  color: var(--gray-400);
  letter-spacing: 0.5px;
  white-space: nowrap;
  line-height: 1.35;
  margin-top: 2px;
}

.sidebar-nav {
  flex: 1;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  color: var(--gray-400);
  font-size: 15px;
  transition: all var(--transition);
  position: relative;
}

.nav-item:hover {
  background: rgba(255,255,255,0.06);
  color: var(--white);
}

.nav-item.active {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  font-weight: 600;
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: #60a5fa;
  border-radius: 0 3px 3px 0;
}

.nav-icon { font-size: 16px; width: 20px; text-align: center; }

.sidebar-footer {
  padding: 12px 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.user-info { display: flex; align-items: center; gap: 8px; }
.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
}

.user-detail { display: flex; flex-direction: column; }
.user-name { font-size: 15px; font-weight: 600; }
.user-role { font-size: 15px; color: var(--gray-400); }

.btn-logout {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06);
  color: var(--gray-400);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.btn-logout:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

/* ============ 主内容区 ============ */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 20px 24px;
  min-height: 100vh;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ 页面标题 ============ */
.page-header {
  margin-bottom: 16px;
}

.page-header h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 2px;
}

.page-header .subtitle {
  color: var(--gray-500);
  font-size: 15px;
}

.compact-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.compact-page-header .header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.compact-tip {
  max-width: 520px;
  padding: 9px 14px;
  border: 1px solid rgba(59, 130, 246, 0.16);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(239,246,255,0.92), rgba(236,253,245,0.82));
  color: var(--gray-700);
  font-size: 15px;
  line-height: 1.35;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}

/* ============ 统计卡片 ============ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all var(--transition);
  border: 1px solid transparent;
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--gray-200);
}

.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.stat-icon.blue { background: var(--primary-bg); }
.stat-icon.green { background: var(--success-bg); }
.stat-icon.orange { background: var(--warning-bg); }
.stat-icon.red { background: var(--danger-bg); }
.stat-icon.purple { background: #f5f3ff; }
.stat-icon.teal { background: #ecfeff; }

.stat-info { flex: 1; }

.stat-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.2;
}

.stat-label {
  font-size: 15px;
  color: var(--gray-500);
  margin-top: 2px;
}

.stat-change {
  font-size: 15px;
  margin-top: 2px;
}

.stat-change.up { color: var(--success); }
.stat-change.down { color: var(--danger); }

/* ============ 卡片 ============ */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(59,130,246,0.18);
}

.card-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-header h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-800);
}

.card-body {
  padding: 18px;
}

.card-body.no-padding { padding: 0; }

/* ============ 两列布局 ============ */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.grid-2-1 {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

/* 防止网格子项被内容（图表/表格）撑破导致横向溢出 */
.grid-2 > .card,
.grid-2-1 > .card,
.grid-3 > .card {
  min-width: 0;
}

/* ============ 图表容器 ============ */
.chart-container {
  position: relative;
  width: 100%;
}

.chart-container canvas {
  max-height: 300px;
}

.dept-compare-charts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 20px;
  align-items: start;
}

.dept-radar-panel {
  position: relative;
  height: 460px;
}

.dept-radar-panel canvas {
  max-height: none;
}

.dept-legend-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 4px;
}

.dept-legend-tools {
  display: flex;
  gap: 8px;
}

.dept-legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 360px;
  overflow: auto;
}

.dept-legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--gray-100);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}

.dept-legend-item:hover { background: var(--gray-50); }

.dept-legend-item.off { opacity: 0.35; }

.dept-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}

.dept-legend-name {
  font-size: 14px;
  color: var(--gray-700);
  font-weight: 600;
}

.dept-side-charts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.mini-chart-card {
  padding: 16px 18px;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(249,250,251,0.96), rgba(239,246,255,0.72));
}

.mini-chart-card h4 {
  margin: 0 0 10px;
  color: var(--gray-800);
  font-size: 19px;
}

.mini-chart-card .chart-container {
  height: 150px;
}

.mini-chart-card canvas {
  max-height: none;
}

/* ============ 表格 ============ */
.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

table th {
  padding: 10px 12px;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--gray-200);
  white-space: nowrap;
}

table td {
  padding: 10px 12px;
  font-size: 15px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
}

table tbody tr { transition: background var(--transition); }
table tbody tr:hover { background: var(--gray-50); }

/* ============ 标签/徽章 ============ */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 15px;
  font-weight: 500;
}

.tag-blue { background: var(--primary-bg); color: var(--primary); }
.tag-green { background: var(--success-bg); color: var(--success); }
.tag-orange { background: var(--warning-bg); color: var(--warning); }
.tag-red { background: var(--danger-bg); color: var(--danger); }
.tag-purple { background: #f5f3ff; color: #7c3aed; }
.tag-gray { background: var(--gray-100); color: var(--gray-600); }

.score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 15px;
  font-weight: 700;
}

.score-high { background: var(--success-bg); color: var(--success); }
.score-mid { background: var(--warning-bg); color: var(--warning); }
.score-low { background: var(--danger-bg); color: var(--danger); }

/* ============ 按钮 ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
}

.btn-outline:hover {
  background: var(--gray-50);
  border-color: var(--gray-400);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 15px;
  border-radius: var(--radius-sm);
}

.btn-success {
  background: var(--success);
  color: var(--white);
}

.btn-success:hover { filter: brightness(1.1); }

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: 16px;
  transition: all var(--transition);
}

.btn-icon:hover {
  background: var(--gray-200);
  color: var(--gray-800);
}

/* ============ 进度�?============ */
.progress-bar {
  height: 8px;
  background: var(--gray-100);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.8s ease;
}

.progress-fill.blue { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.progress-fill.green { background: linear-gradient(90deg, #059669, #34d399); }
.progress-fill.orange { background: linear-gradient(90deg, #d97706, #fbbf24); }
.progress-fill.red { background: linear-gradient(90deg, #dc2626, #f87171); }

/* ============ 评价任务 ============ */
.task-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.task-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.task-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--primary-light);
}

.task-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.task-card .task-type-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.task-card h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--gray-900);
}

.task-card .task-meta {
  font-size: 15px;
  color: var(--gray-500);
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 8px;
}

.task-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

@media (max-width: 1100px) {
  .task-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .task-grid { grid-template-columns: 1fr; }
}

/* keep old task-list for backward compat */
.task-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.task-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
  transition: all var(--transition);
}

.task-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.task-type-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.task-info { flex: 1; min-width: 0; }
.task-info h4 { font-size: 16px; font-weight: 600; margin-bottom: 2px; }
.task-info .task-meta {
  font-size: 15px;
  color: var(--gray-500);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.task-status {
  text-align: right;
  flex-shrink: 0;
}

.task-status .status-text {
  font-size: 15px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 8px;
}

.status-pending { background: var(--warning-bg); color: var(--warning); }
.status-done { background: var(--success-bg); color: var(--success); }
.status-overdue { background: var(--danger-bg); color: var(--danger); }

/* ============ 智能问卷 ============ */
.survey-header {
  background: linear-gradient(135deg, var(--primary-bg), #e0e7ff);
  padding: 24px;
  border-radius: var(--radius) var(--radius) 0 0;
}

.survey-course-info {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.survey-course-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.survey-course-detail h3 { font-size: 18px; font-weight: 700; }
.survey-course-detail p { color: var(--gray-500); font-size: 15px; }

.stage-indicator {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 16px;
  flex-wrap: wrap;
}

.stage-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 15px;
  font-weight: 500;
  background: rgba(255,255,255,0.6);
  color: var(--gray-400);
}

.stage-step.active {
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
}

.stage-step.done {
  background: var(--success);
  color: var(--white);
}

.stage-connector {
  width: 30px;
  height: 2px;
  background: var(--gray-300);
}

.stage-connector.done { background: var(--success); }
.stage-connector.active { background: var(--primary); }

.question-block {
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-100);
  transition: background var(--transition);
}

.question-block:hover { background: var(--gray-50); }

.question-number {
  display: inline-block;
  background: var(--primary-bg);
  color: var(--primary);
  font-size: 15px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  margin-bottom: 8px;
}

.question-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 2px;
}

.question-subtitle {
  font-size: 15px;
  color: var(--gray-400);
  margin-bottom: 12px;
}

.required-mark { color: var(--danger); margin-left: 2px; }

/* Slider */
.slider-options {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.slider-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: all var(--transition);
  padding: 8px 4px;
  border-radius: var(--radius);
  min-width: 80px;
  position: relative;
  overflow: hidden;
}

.slider-option:hover {
  background: var(--gray-50);
  transform: translateY(-2px);
}
.slider-option.selected {
  background: var(--primary-bg);
  box-shadow: inset 0 0 0 1px rgba(59,130,246,0.18), 0 8px 18px rgba(59,130,246,0.14);
}

.slider-option .option-icon {
  font-size: 28px;
  margin-bottom: 6px;
  opacity: 0.4;
  transition: opacity var(--transition);
}

.slider-option.selected .option-icon { opacity: 1; }

.slider-option .option-label {
  font-size: 15px;
  color: var(--gray-500);
  text-align: center;
  transition: color var(--transition);
}

.slider-option.selected .option-label {
  color: var(--primary);
  font-weight: 600;
}

/* Choice */
.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

.choice-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 16px;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.choice-item:hover {
  border-color: var(--primary-light);
  background: var(--primary-bg);
  transform: translateY(-2px);
}

.choice-item.selected {
  border-color: var(--primary);
  background: var(--primary-bg);
  color: var(--primary);
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(59,130,246,0.12);
}

.choice-item.selected::after,
.radio-item.selected::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.45), transparent);
  transform: translateX(-100%);
  animation: selectedSweep 1.15s ease;
  pointer-events: none;
}

@keyframes selectedSweep {
  to { transform: translateX(100%); }
}

.choice-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
  transition: all var(--transition);
}

.choice-item.selected .choice-check {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--white);
}

/* Radio */
.radio-group { display: flex; flex-direction: column; gap: 8px; }
.radio-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.radio-item:hover {
  border-color: var(--primary-light);
  background: var(--primary-bg);
  transform: translateX(3px);
}

.radio-item.selected {
  border-color: var(--primary);
  background: var(--primary-bg);
  box-shadow: 0 8px 18px rgba(59,130,246,0.12);
}

.radio-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
}

.radio-item.selected .radio-dot {
  border-color: var(--primary);
}

.radio-item.selected .radio-dot::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
}

/* Text input */
.text-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 16px;
  transition: all var(--transition);
  background: var(--white);
  color: var(--gray-800);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.text-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(59,130,246,0.12), 0 12px 26px rgba(59,130,246,0.1);
  transform: translateY(-1px);
}

.text-input::placeholder { color: var(--gray-400); }

textarea.text-input {
  min-height: 100px;
  resize: vertical;
}

/* Survey actions */
.survey-actions {
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--gray-100);
}

/* ============ 结果分析 ============ */
.result-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.result-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
  text-align: center;
}

.result-card .rc-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--gray-900);
}

.result-card .rc-label {
  font-size: 15px;
  color: var(--gray-500);
  margin-top: 2px;
}

.dimension-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.dimension-label {
  width: 140px;
  font-size: 15px;
  color: var(--gray-600);
  text-align: right;
  flex-shrink: 0;
}

.dimension-bar-fill {
  flex: 1;
  height: 24px;
  background: var(--gray-100);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.dimension-fill-value {
  height: 100%;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  transition: width 0.8s ease;
}

.dimension-score {
  width: 50px;
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-700);
  flex-shrink: 0;
}

/* ============ 课程画像 ============ */
.course-profile-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.course-profile-header {
  padding: 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 14px;
}

.course-profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  backdrop-filter: blur(10px);
}

.course-profile-info h3 { font-size: 20px; font-weight: 700; margin-bottom: 2px; }
.course-profile-info p { opacity: 0.85; font-size: 15px; }

.award-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.award-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 15px;
  font-weight: 600;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
}

/* 雷达图容�?*/
.radar-container {
  width: 100%;
  max-width: 350px;
  margin: 0 auto;
}

/* ============ 教师画像 ============ */
.teacher-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.teacher-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all var(--transition);
  border: 1px solid var(--gray-100);
}

.teacher-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.teacher-card-header {
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--gray-100);
}

.teacher-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}

.teacher-card-body { padding: 14px 18px; }
.teacher-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }

.stat-mini {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-50);
  font-size: 15px;
}

.stat-mini:last-child { border-bottom: none; }
.stat-mini .label { color: var(--gray-500); }
.stat-mini .value { font-weight: 600; color: var(--gray-700); }

/* ============ 量规管理 ============ */
.rubric-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  transition: all var(--transition);
}

.rubric-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.rubric-header {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.rubric-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.rubric-body { padding: 0 24px 24px; }
.rubric-dimension {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.rubric-dim-name { width: 130px; font-size: 15px; color: var(--gray-600); flex-shrink: 0; }
.rubric-dim-desc { font-size: 15px; color: var(--gray-400); flex: 1; }
.rubric-dim-weight {
  width: 48px;
  text-align: right;
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-500);
  flex-shrink: 0;
}

.rubric-awards {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--gray-100);
}

.rubric-award-tag {
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 15px;
  background: var(--primary-bg);
  color: var(--primary);
  font-weight: 500;
}

/* ============ 管理后台 ============ */
.admin-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  background: var(--gray-100);
  padding: 4px;
  border-radius: var(--radius);
  width: fit-content;
}

.admin-tab {
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 500;
  color: var(--gray-600);
  cursor: pointer;
  transition: all var(--transition);
}

.admin-tab.active {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}

.admin-tab:hover:not(.active) { color: var(--gray-800); }

/* ============ 搜索和过�?============ */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.search-input {
  padding: 10px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 16px;
  min-width: 240px;
  transition: all var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.filter-select {
  padding: 10px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 16px;
  background: var(--white);
  color: var(--gray-700);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary);
}

/* ============ Toast ============ */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 14px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  color: var(--white);
  font-size: 16px;
  font-weight: 500;
  animation: slideInRight 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 380px;
}

.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.warning { background: var(--warning); }
.toast.info { background: var(--info); }

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ============ 空状�?============ */
.empty-state {
  text-align: center;
  padding: 48px 24px;
}

.empty-state .empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty-state p { color: var(--gray-500); font-size: 16px; }

/* ============ 响应�?============ */
@media (max-width: 1200px) {
  .grid-2, .grid-2-1 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .result-summary { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .sidebar { width: 60px; }
  .sidebar .logo-text,
  .sidebar .nav-item span:not(.nav-icon),
  .sidebar .user-detail,
  .sidebar .btn-logout { display: none; }
  .main-content { margin-left: 60px; padding: 20px 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .teacher-list { grid-template-columns: 1fr; }
  .result-summary { grid-template-columns: 1fr 1fr; }
}

/* ============ 动画 ============ */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.loading { animation: pulse 1.5s ease-in-out infinite; }

/* ============ AI 提示�?============ */
.ai-banner {
  background: linear-gradient(135deg, #1e293b, #334155);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.ai-banner-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.ai-banner-text { flex: 1; }
.ai-banner-text h4 { font-size: 16px; font-weight: 600; margin-bottom: 2px; }
.ai-banner-text p { font-size: 15px; opacity: 0.75; }

/* ============ 课程选择器（智能问卷�?============ */
.course-selector {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.course-option {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.course-option:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.course-option.selected {
  border-color: var(--primary);
  background: var(--primary-bg);
}

/* ============ 词云模拟 ============ */
.word-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 16px;
  align-items: center;
}

.word-item {
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 600;
  opacity: 0.85;
}

/* ============ AI 智能分析标记组件 ============ */
.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  cursor: pointer;
  transition: all var(--transition);
}
.ai-badge:hover { filter: brightness(1.15); }
.ai-badge.loading { animation: aiPulse 1.5s ease-in-out infinite; }

@keyframes aiPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.ai-panel {
  margin-top: 12px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #f5f3ff, #ede9fe);
  border: 1px solid #c4b5fd;
  border-radius: var(--radius);
  font-size: 15px;
  line-height: 1.7;
}
.ai-panel .ai-panel-title {
  font-size: 15px;
  font-weight: 700;
  color: #7c3aed;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ai-panel ul { padding-left: 16px; }
.ai-panel li { margin-bottom: 4px; color: var(--gray-700); }
.ai-panel .ai-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.ai-panel .ai-tag {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 15px;
  background: rgba(124,58,237,0.1);
  color: #7c3aed;
  font-weight: 500;
}

.ai-loader {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  color: #7c3aed;
  font-size: 15px;
}
.ai-loader .dot-flash {
  display: flex;
  gap: 4px;
}
.ai-loader .dot-flash span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7c3aed;
  animation: dotBounce 1.4s ease-in-out infinite both;
}
.ai-loader .dot-flash span:nth-child(1) { animation-delay: -0.32s; }
.ai-loader .dot-flash span:nth-child(2) { animation-delay: -0.16s; }

@keyframes dotBounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

.ai-section-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: #7c3aed;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.ai-section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #c4b5fd;
}

.ai-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}
.ai-trigger-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.ai-trigger-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.ai-trigger-btn .spinner {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ 智能体洞察工作台 ============ */
.agent-workbench {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  overflow: hidden;
  position: relative;
  animation: dashboardEnter 0.55s ease both;
}

.agent-workbench::after {
  content: '';
  position: absolute;
  left: -35%;
  top: 0;
  width: 32%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59,130,246,0.08), transparent);
  transform: skewX(-12deg);
  animation: workbenchSweep 7.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes workbenchSweep {
  0%, 45% { left: -35%; opacity: 0; }
  60% { opacity: 1; }
  100% { left: 110%; opacity: 0; }
}

@keyframes dashboardEnter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.agent-workbench-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--gray-100);
  background: linear-gradient(135deg, #f8fafc, #eef6ff);
}

.agent-workbench-eyebrow {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.8px;
  margin-bottom: 3px;
}

.agent-workbench-head h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--gray-900);
}

.agent-workbench-head p {
  font-size: 15px;
  color: var(--gray-500);
  margin-top: 2px;
}

.agent-workbench-score {
  min-width: 112px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  animation: metricGlow 3.6s ease-in-out infinite;
}

@keyframes metricGlow {
  0%, 100% { box-shadow: var(--shadow-sm); }
  50% { box-shadow: 0 0 0 4px rgba(59,130,246,0.07), var(--shadow-md); }
}

.agent-workbench-score span {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.agent-workbench-score small {
  font-size: 15px;
  color: var(--gray-500);
  margin-top: 4px;
}

.agent-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-bottom: 1px solid var(--gray-100);
}

.agent-metric {
  padding: 14px 18px;
  border-right: 1px solid var(--gray-100);
}

.agent-metric:last-child { border-right: none; }
.agent-metric span {
  display: block;
  font-size: 15px;
  color: var(--gray-500);
  margin-bottom: 4px;
}
.agent-metric strong {
  display: block;
  font-size: 15px;
  color: var(--gray-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.agent-metric small {
  display: block;
  font-size: 15px;
  color: var(--gray-500);
  margin-top: 2px;
}

.agent-insight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 16px;
}

.agent-insight-item {
  border: 1px solid var(--gray-100);
  border-left: 4px solid var(--info);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--gray-50);
  transition: transform var(--transition), box-shadow var(--transition);
}

.agent-insight-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.agent-insight-item.success { border-left-color: var(--success); background: var(--success-bg); }
.agent-insight-item.warning { border-left-color: var(--warning); background: var(--warning-bg); }
.agent-insight-item.danger { border-left-color: var(--danger); background: var(--danger-bg); }
.agent-insight-item.info { border-left-color: var(--info); background: var(--info-bg); }

.agent-insight-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.agent-insight-kicker,
.agent-insight-confidence {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-600);
}

.agent-insight-confidence {
  color: var(--gray-500);
  white-space: nowrap;
}

.agent-insight-item h4 {
  font-size: 15px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 6px;
}

.agent-insight-item p {
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.55;
  margin-bottom: 10px;
}

.agent-insight-evidence {
  font-size: 15px;
  color: var(--gray-600);
  padding: 7px 9px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.65);
  margin-bottom: 8px;
}

.agent-insight-action {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-800);
}

@media (max-width: 1100px) {
  .agent-insight-grid { grid-template-columns: 1fr; }
  .agent-metrics { grid-template-columns: 1fr; }
  .agent-metric { border-right: none; border-bottom: 1px solid var(--gray-100); }
  .agent-metric:last-child { border-bottom: none; }
}

@media (max-width: 700px) {
  .agent-workbench-head { flex-direction: column; }
  .agent-workbench-score { align-items: flex-start; }
}

@media (max-width: 760px) {
  .memory-dashboard {
    flex-direction: column;
    align-items: stretch;
  }
  .memory-progress {
    grid-template-columns: auto 1fr auto;
  }
  .course-banner {
    flex-wrap: wrap;
  }
  .course-banner .banner-badge {
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* ============ 产品级视觉尺度修正 ============ */
:root {
  --sidebar-width: 236px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --shadow: 0 10px 28px rgba(15, 23, 42, 0.07), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 18px 42px rgba(15, 23, 42, 0.10), 0 2px 6px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 26px 60px rgba(15, 23, 42, 0.14), 0 6px 18px rgba(15, 23, 42, 0.06);
}

body {
  font-size: 16px;
  line-height: 1.68;
}

.sidebar-header {
  padding: 24px 20px 20px;
}

.logo {
  gap: 14px;
}

.logo-icon {
  font-size: 34px;
}

.logo-text h1 {
  font-size: 20px;
  line-height: 1.2;
}

.logo-sub {
  font-size: 15px;
  letter-spacing: 1px;
}

.sidebar-nav {
  padding: 18px 14px;
  gap: 8px;
}

.nav-item {
  min-height: 48px;
  padding: 12px 14px;
  gap: 12px;
  border-radius: 12px;
  font-size: 16px;
}

.nav-icon {
  width: 24px;
  font-size: 20px;
}

.sidebar-footer {
  padding: 18px 18px;
  gap: 12px;
}

.avatar {
  width: 40px;
  height: 40px;
  font-size: 17px;
}

.user-info {
  gap: 12px;
}

.user-name {
  font-size: 16px;
}

.user-role {
  font-size: 15px;
  line-height: 1.35;
}

.btn-logout {
  width: 38px;
  height: 38px;
  font-size: 19px;
}

.main-content {
  padding: 34px 42px 46px;
}

.page-header {
  margin-bottom: 24px;
}

.page-header h2 {
  font-size: 30px;
  line-height: 1.18;
  letter-spacing: 0;
}

.page-header .subtitle {
  font-size: 16px;
  margin-top: 6px;
}

.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-bottom: 26px;
}

.stat-card {
  min-height: 122px;
  padding: 24px;
  gap: 18px;
  border-radius: var(--radius-lg);
  border-color: rgba(148, 163, 184, 0.18);
}

.stat-icon {
  width: 58px;
  height: 58px;
  font-size: 27px;
  border-radius: 16px;
}

.stat-value {
  font-size: 32px;
  letter-spacing: -0.02em;
}

.stat-label,
.stat-change {
  font-size: 15px;
}

.grid-2,
.grid-2-1,
.grid-3 {
  gap: 24px;
  margin-bottom: 26px;
}

.card {
  border-radius: var(--radius-lg);
  border-color: rgba(148, 163, 184, 0.16);
  box-shadow: var(--shadow);
}

.card-header {
  min-height: 64px;
  padding: 18px 24px;
}

.card-header h3 {
  font-size: 18px;
  font-weight: 750;
}

.card-body {
  padding: 24px;
}

.chart-container canvas {
  max-height: 370px;
}

table th {
  padding: 14px 16px;
  font-size: 15px;
  letter-spacing: 0.2px;
}

table td {
  padding: 15px 16px;
  font-size: 16px;
}

.tag,
.score-badge {
  font-size: 15px;
  padding: 5px 12px;
}

.score-badge {
  min-width: 54px;
}

.btn {
  min-height: 40px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 16px;
}

.btn-sm {
  min-height: 38px;
  padding: 9px 16px;
  font-size: 15px;
}

.ai-banner {
  padding: 22px 26px;
  border-radius: var(--radius-lg);
  gap: 18px;
  margin-bottom: 26px;
}

.ai-banner-icon {
  font-size: 34px;
}

.ai-banner-text h4 {
  font-size: 20px;
}

.ai-banner-text p {
  font-size: 16px;
}

.task-grid {
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 24px;
}

.task-card {
  min-height: 260px;
  padding: 24px;
  border-radius: var(--radius-lg);
  border-color: rgba(148, 163, 184, 0.18);
  justify-content: space-between;
}

.task-card .task-type-icon,
.task-type-icon {
  width: 54px;
  height: 54px;
  font-size: 25px;
  border-radius: 15px;
}

.task-card h4 {
  font-size: 20px;
  line-height: 1.35;
}

.task-card .task-meta,
.task-info .task-meta {
  font-size: 15px;
  gap: 8px;
}

.task-item {
  padding: 20px 24px;
  gap: 18px;
  border-radius: var(--radius-lg);
}

.task-info h4 {
  font-size: 19px;
}

.result-summary {
  gap: 22px;
  margin-bottom: 26px;
}

.result-card {
  padding: 22px;
  border-radius: var(--radius-lg);
}

.result-card .rc-value {
  font-size: 36px;
}

.result-card .rc-label {
  font-size: 15px;
}

.agent-workbench {
  margin-bottom: 28px;
  border-radius: var(--radius-xl);
}

.agent-workbench-head {
  padding: 26px 30px;
  gap: 28px;
}

.agent-workbench-eyebrow {
  font-size: 15px;
}

.agent-workbench-head h3 {
  font-size: 24px;
}

.agent-workbench-head p {
  max-width: 880px;
  font-size: 16px;
  line-height: 1.65;
}

.agent-workbench-score {
  min-width: 150px;
  padding: 18px 22px;
  border-radius: 18px;
}

.agent-workbench-score span {
  font-size: 40px;
}

.agent-workbench-score small {
  font-size: 15px;
}

.agent-metric {
  padding: 20px 24px;
}

.agent-metric span {
  font-size: 15px;
}

.agent-metric strong {
  font-size: 19px;
}

.agent-metric small {
  font-size: 15px;
}

.agent-insight-grid {
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 20px;
  padding: 24px;
}

.agent-insight-item {
  min-height: 230px;
  padding: 22px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
}

.agent-insight-kicker,
.agent-insight-confidence {
  font-size: 15px;
}

.agent-insight-item h4 {
  font-size: 19px;
}

.agent-insight-item p {
  font-size: 15px;
  line-height: 1.72;
}

.agent-insight-evidence {
  margin-top: auto;
  padding: 10px 12px;
  font-size: 15px;
}

.agent-insight-action {
  font-size: 15px;
}

.course-banner {
  min-height: 136px;
  padding: 26px 32px;
  gap: 28px;
  border-radius: var(--radius-xl);
}

.course-banner .banner-icon {
  font-size: 58px;
}

.course-banner .banner-info h3 {
  font-size: 30px;
  line-height: 1.18;
}

.course-banner .banner-info .banner-meta {
  gap: 8px 20px;
  font-size: 16px;
}

.course-banner .banner-badge {
  padding: 10px 20px;
  font-size: 16px;
}

.memory-dashboard {
  padding: 18px 22px;
  margin-bottom: 20px;
  border-radius: 18px;
}

.memory-dashboard-main strong {
  font-size: 18px;
}

.memory-dashboard-main p {
  font-size: 15px;
}

.memory-progress {
  grid-template-columns: auto 180px auto;
  font-size: 15px;
}

.memory-progress-track {
  height: 10px;
}

.explore-hint {
  font-size: 16px;
  padding-bottom: 18px;
}

.archipelago-scene {
  min-height: 560px;
}

.archipelago-grid {
  gap: 22px;
  padding: 16px;
}

.island-block {
  min-height: 170px;
}

.island-block.active {
  min-height: 520px;
}

.island-body {
  min-height: 160px;
  padding: 24px;
  border-radius: 20px;
}

.island-body .island-emoji {
  font-size: 50px;
}

.island-body .island-title {
  font-size: 21px;
}

.island-body .island-desc {
  max-width: 760px;
  font-size: 15px;
}

.island-block.active .island-body {
  padding: 30px 36px;
  min-height: 500px;
  border-radius: var(--radius-xl);
}

.active-island-header {
  gap: 18px;
  margin-bottom: 22px;
  padding-bottom: 18px;
}

.active-island-header .island-emoji {
  font-size: 50px;
}

.active-island-header .stage-info h4 {
  font-size: 24px;
}

.active-island-header .stage-info p {
  font-size: 16px;
}

.memory-cue {
  padding: 14px 16px;
  margin-bottom: 22px;
}

.memory-cue span {
  font-size: 15px;
}

.memory-cue strong {
  font-size: 15px;
}

.active-question-area .q-header {
  gap: 14px;
  margin-bottom: 18px;
}

.active-question-area .q-num {
  width: 38px;
  height: 38px;
  font-size: 17px;
}

.active-question-area .q-text {
  font-size: 22px;
}

.active-question-area .q-subtitle {
  font-size: 16px;
  margin-bottom: 18px;
}

.choice-grid {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}

.choice-item,
.radio-item {
  min-height: 56px;
  padding: 15px 18px;
  font-size: 16px;
  border-radius: 14px;
}

.text-input {
  min-height: 52px;
  padding: 15px 18px;
  font-size: 17px;
  border-radius: 14px;
}

textarea.text-input {
  min-height: 150px;
  line-height: 1.72;
}

.tag-bank {
  gap: 10px;
  margin: 14px 0 8px;
}

.tag-bank-chip {
  padding: 8px 14px;
  font-size: 15px;
}

.encouragement-bar {
  padding: 10px 14px;
  font-size: 15px;
}

.island-footer {
  padding-top: 20px;
}

/* ============ 末尾字号锁定：最高优先级生效 ============ */
body,
.main-content {
  font-size: 18px;
}

p,
td,
li,
.subtitle,
.stat-label,
.stat-change,
.task-meta,
.card-body,
.agent-insight-item p,
.agent-insight-evidence,
.agent-insight-action,
.memory-dashboard-main p,
.course-banner .banner-info .banner-meta {
  font-size: 18px;
}

small,
.agent-workbench-eyebrow,
.agent-workbench-score small,
.agent-metric span,
.agent-metric small,
.agent-insight-kicker,
.agent-insight-confidence,
.user-role,
.logo-sub {
  font-size: 16px;
}

.nav-item,
.btn,
.tag,
.score-badge,
table td,
input,
textarea,
select,
.choice-item,
.radio-item,
.text-input,
.tag-bank-chip,
.encouragement-bar {
  font-size: 18px;
}

table th,
.memory-cue span {
  font-size: 16px;
}

.page-header h2 {
  font-size: 34px;
}

.card-header h3,
.agent-insight-item h4,
.task-card h4,
.task-info h4 {
  font-size: 22px;
}

.ai-banner-text h4,
.agent-workbench-head h3 {
  font-size: 26px;
}

.stat-value {
  font-size: 36px;
}

.active-question-area .q-text {
  font-size: 24px;
}

.active-question-area .q-subtitle,
.memory-cue strong {
  font-size: 18px;
}

/* ============ 历史点缀类名兼容：统一回落到微软雅黑 ============ */
:root {
  --calligraphy-font: "Microsoft YaHei", "微软雅黑", sans-serif;
}

.calligraphy,
.award-calligraphy,
.rubric-award-tag,
.award-badge,
.award-tag-item,
.award-card h4,
.memory-dashboard-main strong,
.memory-dashboard-main p,
.memory-cue strong,
.student-immersive-shell textarea.text-input,
.student-immersive-shell .encouragement-bar {
  font-family: var(--calligraphy-font);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.memory-dashboard-main strong,
.memory-cue strong {
  letter-spacing: 0.04em;
}

/* ============ 全站字体最终统一：微软雅黑粗体 ============ */
html,
body,
button,
input,
textarea,
select,
table,
body * {
  font-family: "Microsoft YaHei", "微软雅黑", sans-serif !important;
  font-weight: 700 !important;
}

/* ============ 学生端教师画像：内部信息对齐 ============ */
.student-teacher-profile-list {
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  align-items: stretch;
  gap: 18px;
}

.student-teacher-card {
  display: flex;
  flex-direction: column;
  min-height: 392px;
}

.student-teacher-card .teacher-card-header {
  min-height: 104px;
  align-items: center;
}

.student-teacher-card .teacher-avatar {
  width: 58px;
  height: 58px;
  font-size: 23px;
}

.student-teacher-card .teacher-identity {
  min-width: 0;
  flex: 1;
}

.student-teacher-card .teacher-identity h4 {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.2;
}

.student-teacher-card .teacher-identity h4 span {
  color: var(--gray-500);
  font-size: 17px;
  white-space: nowrap;
}

.student-teacher-card .teacher-identity p {
  margin: 0;
  color: var(--gray-500);
  font-size: 17px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.student-teacher-card .score-badge {
  flex-shrink: 0;
}

.student-teacher-card .teacher-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px 18px 18px;
}

.student-teacher-card .teacher-meta {
  align-content: flex-start;
  min-height: 82px;
  max-height: 82px;
  overflow: hidden;
  margin-bottom: 12px;
}

.student-teacher-card .teacher-meta .tag {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
}

.student-teacher-card .stat-mini {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  min-height: 48px;
  padding: 8px 0;
  font-size: 16px;
}

.student-teacher-card .stat-mini .label {
  white-space: nowrap;
}

.student-teacher-card .stat-mini .value {
  min-width: 0;
  text-align: right;
}

.student-teacher-card .stat-mini.text-row .value {
  display: -webkit-box;
  overflow: hidden;
  text-align: right;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.student-teacher-card .teacher-score-grid {
  display: grid;
  gap: 0;
  margin-top: auto;
  padding-top: 6px;
}

.student-teacher-card .score-row {
  min-height: 40px;
}

/* ============ 院长端教师表现总览：内部信息对齐 ============ */
.college-teacher-overview-list {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  gap: 14px;
}

@media (max-width: 1500px) {
  .college-teacher-overview-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1150px) {
  .college-teacher-overview-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .college-teacher-overview-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.college-teacher-card {
  display: flex;
  flex-direction: column;
  min-height: 400px;
}

.college-teacher-card .teacher-card-header {
  min-height: 84px;
  align-items: center;
}

.college-teacher-card .teacher-avatar {
  width: 48px;
  height: 48px;
  font-size: 20px;
}

.college-teacher-card .teacher-identity {
  min-width: 0;
  flex: 1;
}

.college-teacher-card .teacher-identity h4 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.college-teacher-card .teacher-identity .teacher-title {
  display: block;
  margin-top: 2px;
  color: var(--gray-500);
  font-size: 14px;
  line-height: 1.2;
}

.college-teacher-card .teacher-identity p {
  margin: 2px 0 0;
  color: var(--gray-400);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.college-teacher-card .score-badge {
  flex-shrink: 0;
}

.college-teacher-card .teacher-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 12px 14px 14px;
}

.college-teacher-card .teacher-meta {
  align-content: flex-start;
  overflow: hidden;
  margin-bottom: 8px;
}

.college-teacher-card .teacher-meta .tag {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  font-size: 13px;
}

.college-teacher-card .strength-slot {
  min-height: 48px;
  max-height: 48px;
}

.college-teacher-card .award-slot {
  min-height: 28px;
  max-height: 28px;
}

.college-teacher-card .stat-mini {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  min-height: 36px;
  padding: 5px 0;
  font-size: 14px;
}

.college-teacher-card .stat-mini .label {
  white-space: nowrap;
}

.college-teacher-card .stat-mini .value {
  min-width: 0;
  text-align: right;
}

.college-teacher-card .stat-mini.text-row .value {
  display: -webkit-box;
  overflow: hidden;
  text-align: right;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.college-teacher-card .teacher-mini-chart-wrap {
  margin-top: auto;
  padding-top: 8px;
}

.college-teacher-card .teacher-mini-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 40px;
  margin-bottom: 4px;
}

.college-teacher-card .teacher-mini-bar {
  width: 100%;
  min-width: 18px;
  border-radius: 4px 4px 0 0;
}

.college-teacher-card .teacher-mini-labels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
}

.college-teacher-card .teacher-mini-label {
  min-height: 30px;
  color: var(--gray-500);
  font-size: 13px;
  line-height: 1.2;
}

.college-teacher-card .teacher-ai-slot {
  margin-top: 10px;
  min-height: 40px;
}

.course-profile-stack .course-poster {
  scroll-margin-top: 18px;
}

.course-profile-stack .course-poster-focus {
  animation: focusedPosterIn 0.46s ease both;
}

@keyframes focusedPosterIn {
  from {
    opacity: 0.72;
    transform: translateY(10px) scale(0.992);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 980px) {
  .dept-compare-charts {
    grid-template-columns: 1fr;
  }

  .dept-radar-panel {
    height: 380px;
  }

  .dept-side-charts {
    grid-template-columns: 1fr;
  }

  .course-profile-layout {
    grid-template-columns: 1fr !important;
  }

  .course-profile-layout > div {
    border-right: none !important;
    border-bottom: 1px solid var(--gray-100);
  }

  .course-profile-layout > div:last-child {
    border-bottom: none;
  }
}

@media (max-width: 520px) {
  .compact-page-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .compact-page-header .header-tools,
  .compact-tip {
    width: 100%;
  }

  .compact-tip {
    white-space: normal;
    border-radius: 14px;
  }

  .student-teacher-profile-list {
    grid-template-columns: 1fr;
  }

  .student-teacher-card .teacher-card-header {
    min-height: 116px;
  }

  .student-teacher-card .stat-mini {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .college-teacher-overview-list {
    grid-template-columns: 1fr;
  }

  .college-teacher-card .stat-mini {
    grid-template-columns: 78px minmax(0, 1fr);
  }
}

/* ============ 功能区域浅色分层：减少文字墙感 ============ */
.main-content > .card:nth-of-type(6n + 1),
.grid-2 > .card:nth-child(6n + 1),
.grid-3 > .card:nth-child(6n + 1) {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border-color: rgba(59, 130, 246, 0.18);
}

.main-content > .card:nth-of-type(6n + 2),
.grid-2 > .card:nth-child(6n + 2),
.grid-3 > .card:nth-child(6n + 2) {
  background: linear-gradient(180deg, #ffffff 0%, #f7fdf9 100%);
  border-color: rgba(16, 185, 129, 0.18);
}

.main-content > .card:nth-of-type(6n + 3),
.grid-2 > .card:nth-child(6n + 3),
.grid-3 > .card:nth-child(6n + 3) {
  background: linear-gradient(180deg, #ffffff 0%, #fbf8ff 100%);
  border-color: rgba(139, 92, 246, 0.18);
}

.main-content > .card:nth-of-type(6n + 4),
.grid-2 > .card:nth-child(6n + 4),
.grid-3 > .card:nth-child(6n + 4) {
  background: linear-gradient(180deg, #ffffff 0%, #fffaf0 100%);
  border-color: rgba(245, 158, 11, 0.20);
}

.main-content > .card:nth-of-type(6n + 5),
.grid-2 > .card:nth-child(6n + 5),
.grid-3 > .card:nth-child(6n + 5) {
  background: linear-gradient(180deg, #ffffff 0%, #f6feff 100%);
  border-color: rgba(8, 145, 178, 0.18);
}

.card-header {
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(10px);
}

.card-header h3::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 20px;
  margin-right: 10px;
  border-radius: 999px;
  vertical-align: -4px;
  background: linear-gradient(180deg, var(--primary-light), #22c55e);
}

.stats-grid .stat-card:nth-child(4n + 1) {
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
  border-color: rgba(59, 130, 246, 0.22);
}

.stats-grid .stat-card:nth-child(4n + 2) {
  background: linear-gradient(135deg, #ffffff 0%, #effdf6 100%);
  border-color: rgba(16, 185, 129, 0.22);
}

.stats-grid .stat-card:nth-child(4n + 3) {
  background: linear-gradient(135deg, #ffffff 0%, #fff7e8 100%);
  border-color: rgba(245, 158, 11, 0.24);
}

.stats-grid .stat-card:nth-child(4n + 4) {
  background: linear-gradient(135deg, #ffffff 0%, #f7f2ff 100%);
  border-color: rgba(139, 92, 246, 0.22);
}

.task-card:nth-child(6n + 1),
.course-option:nth-child(6n + 1),
.teacher-card:nth-child(6n + 1),
.rubric-card:nth-child(6n + 1) {
  background: linear-gradient(160deg, #ffffff 0%, #f3f8ff 100%);
  border-color: rgba(59, 130, 246, 0.18);
}

.task-card:nth-child(6n + 2),
.course-option:nth-child(6n + 2),
.teacher-card:nth-child(6n + 2),
.rubric-card:nth-child(6n + 2) {
  background: linear-gradient(160deg, #ffffff 0%, #f2fcf7 100%);
  border-color: rgba(16, 185, 129, 0.18);
}

.task-card:nth-child(6n + 3),
.course-option:nth-child(6n + 3),
.teacher-card:nth-child(6n + 3),
.rubric-card:nth-child(6n + 3) {
  background: linear-gradient(160deg, #ffffff 0%, #fbf6ff 100%);
  border-color: rgba(139, 92, 246, 0.18);
}

.task-card:nth-child(6n + 4),
.course-option:nth-child(6n + 4),
.teacher-card:nth-child(6n + 4),
.rubric-card:nth-child(6n + 4) {
  background: linear-gradient(160deg, #ffffff 0%, #fff8ed 100%);
  border-color: rgba(245, 158, 11, 0.20);
}

.task-card:nth-child(6n + 5),
.course-option:nth-child(6n + 5),
.teacher-card:nth-child(6n + 5),
.rubric-card:nth-child(6n + 5) {
  background: linear-gradient(160deg, #ffffff 0%, #f0fbfd 100%);
  border-color: rgba(8, 145, 178, 0.18);
}

.task-card:nth-child(6n),
.course-option:nth-child(6n),
.teacher-card:nth-child(6n),
.rubric-card:nth-child(6n) {
  background: linear-gradient(160deg, #ffffff 0%, #fff5f6 100%);
  border-color: rgba(244, 63, 94, 0.16);
}

.agent-workbench {
  background: linear-gradient(145deg, #f8fbff 0%, #ffffff 46%, #f4fbf8 100%);
  border-color: rgba(59, 130, 246, 0.20);
}

.agent-workbench-head {
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.16), transparent 34%),
    linear-gradient(135deg, #eef6ff, #f7fbff 55%, #effdf6);
}

.agent-metrics {
  background: rgba(255, 255, 255, 0.58);
}

.agent-metric:nth-child(1) {
  background: rgba(239, 246, 255, 0.72);
}

.agent-metric:nth-child(2) {
  background: rgba(236, 253, 245, 0.70);
}

.agent-metric:nth-child(3) {
  background: rgba(255, 251, 235, 0.72);
}

.ai-panel {
  background: linear-gradient(135deg, #f3f0ff, #f8fbff);
  border-color: rgba(139, 92, 246, 0.24);
}

.ai-section-divider {
  padding: 10px 14px;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.10), rgba(59, 130, 246, 0.06));
}

.progress-card {
  background: linear-gradient(160deg, #ffffff 0%, #f7fbff 100%);
}

.report-btn:nth-child(4n + 1) {
  background: linear-gradient(160deg, #ffffff 0%, #f3f8ff 100%);
}

.report-btn:nth-child(4n + 2) {
  background: linear-gradient(160deg, #ffffff 0%, #f2fcf7 100%);
}

.report-btn:nth-child(4n + 3) {
  background: linear-gradient(160deg, #ffffff 0%, #fff8ed 100%);
}

.report-btn:nth-child(4n + 4) {
  background: linear-gradient(160deg, #ffffff 0%, #fbf6ff 100%);
}

.student-immersive-shell .card,
.student-immersive-shell .memory-dashboard {
  background: linear-gradient(160deg, rgba(255,255,255,0.92), rgba(241,248,255,0.86));
}

/* ============ 紧凑驾驶舱：首页减少下拉 ============ */
.dashboard-compact .compact-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.dashboard-compact .compact-header h2 {
  font-size: 32px;
}

.dashboard-compact .compact-header .subtitle {
  margin-top: 4px;
  font-size: 16px;
}

.header-summary {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 720px;
}

.header-summary span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.74);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: var(--gray-700);
  font-size: 15px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.dashboard-compact .compact-stats {
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.dashboard-compact .compact-stats .stat-card {
  min-height: 86px;
  padding: 14px 16px;
  gap: 12px;
}

.dashboard-compact .compact-stats .stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 22px;
}

.dashboard-compact .compact-stats .stat-value {
  font-size: 28px;
}

.dashboard-compact .compact-stats .stat-label {
  font-size: 15px;
  line-height: 1.2;
}

.dashboard-compact .compact-stats .stat-change {
  display: none;
}

.dashboard-compact .agent-workbench {
  margin-bottom: 16px;
  border-radius: 18px;
}

.dashboard-compact .agent-workbench-head {
  padding: 16px 20px;
  align-items: center;
}

.dashboard-compact .agent-workbench-head h3 {
  font-size: 22px;
}

.dashboard-compact .agent-workbench-head p {
  display: none;
}

.dashboard-compact .agent-workbench-score {
  min-width: 118px;
  padding: 10px 14px;
}

.dashboard-compact .agent-workbench-score span {
  font-size: 30px;
}

.dashboard-compact .agent-metrics {
  display: none;
}

.dashboard-compact .agent-insight-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
}

.dashboard-compact .agent-insight-item {
  min-height: 132px;
  padding: 14px 16px;
  border-radius: 14px;
}

.dashboard-compact .agent-insight-top {
  margin-bottom: 6px;
}

.dashboard-compact .agent-insight-kicker,
.dashboard-compact .agent-insight-confidence {
  font-size: 15px;
}

.dashboard-compact .agent-insight-item h4 {
  font-size: 17px;
  margin-bottom: 4px;
}

.dashboard-compact .agent-insight-item p {
  font-size: 15px;
  line-height: 1.45;
  margin-bottom: 8px;
}

.dashboard-compact .agent-insight-evidence {
  display: none;
}

.dashboard-compact .agent-insight-action {
  font-size: 15px;
}

.dashboard-compact .compact-charts {
  gap: 16px;
  margin-bottom: 16px;
}

.dashboard-compact .compact-charts .card-header {
  min-height: 48px;
  padding: 12px 18px;
}

.dashboard-compact .compact-charts .card-header h3 {
  font-size: 18px;
}

.dashboard-compact .compact-charts .card-body {
  padding: 14px 18px;
}

.dashboard-compact .compact-charts .chart-container canvas {
  max-height: 260px;
}

@media (max-width: 1280px) {
  .dashboard-compact .compact-stats {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
  }
  .dashboard-compact .agent-insight-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .dashboard-compact .compact-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .header-summary {
    justify-content: flex-start;
  }
  .dashboard-compact .compact-stats {
    grid-template-columns: 1fr;
  }
}

/* ============ 末尾字号锁定：最高优先级生效 ============ */
body,
.main-content {
  font-size: 18px;
}

p,
td,
li,
.subtitle,
.stat-label,
.stat-change,
.task-meta,
.card-body,
.agent-insight-item p,
.agent-insight-evidence,
.agent-insight-action,
.memory-dashboard-main p,
.course-banner .banner-info .banner-meta {
  font-size: 18px;
}

small,
.agent-workbench-eyebrow,
.agent-workbench-score small,
.agent-metric span,
.agent-metric small,
.agent-insight-kicker,
.agent-insight-confidence,
.user-role,
.logo-sub {
  font-size: 16px;
}

.nav-item,
.btn,
.tag,
.score-badge,
table td,
input,
textarea,
select,
.choice-item,
.radio-item,
.text-input,
.tag-bank-chip,
.encouragement-bar {
  font-size: 18px;
}

table th,
.memory-cue span {
  font-size: 16px;
}

.page-header h2 {
  font-size: 34px;
}

.card-header h3,
.agent-insight-item h4,
.task-card h4,
.task-info h4 {
  font-size: 22px;
}

.ai-banner-text h4,
.agent-workbench-head h3 {
  font-size: 26px;
}

.stat-value {
  font-size: 36px;
}

.active-question-area .q-text {
  font-size: 24px;
}

.active-question-area .q-subtitle,
.memory-cue strong {
  font-size: 18px;
}

/* ============ 最终字号校准：不再小字化 ============ */
body {
  font-size: 18px;
}

.main-content {
  font-size: 18px;
}

p,
td,
li,
.subtitle,
.stat-label,
.stat-change,
.task-meta,
.card-body,
.agent-insight-item p,
.agent-insight-evidence,
.agent-insight-action,
.memory-dashboard-main p,
.course-banner .banner-info .banner-meta {
  font-size: 18px;
}

small,
.agent-workbench-eyebrow,
.agent-workbench-score small,
.agent-metric span,
.agent-metric small,
.agent-insight-kicker,
.agent-insight-confidence,
.user-role,
.logo-sub {
  font-size: 16px;
}

.nav-item,
.btn,
.tag,
.score-badge,
table td,
input,
textarea,
select {
  font-size: 18px;
}

table th {
  font-size: 16px;
}

.page-header h2 {
  font-size: 34px;
}

.card-header h3,
.agent-insight-item h4,
.task-card h4,
.task-info h4 {
  font-size: 22px;
}

.ai-banner-text h4,
.agent-workbench-head h3 {
  font-size: 26px;
}

.stat-value {
  font-size: 36px;
}

.choice-item,
.radio-item,
.text-input,
.tag-bank-chip,
.encouragement-bar {
  font-size: 18px;
}

.active-question-area .q-text {
  font-size: 24px;
}

.active-question-area .q-subtitle,
.memory-cue strong {
  font-size: 18px;
}

.memory-cue span {
  font-size: 16px;
}

@media (min-width: 1500px) {
  .main-content {
    padding-left: 56px;
    padding-right: 56px;
  }

  .grid-2 {
    gap: 30px;
  }

  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  }
}

@media (max-width: 1180px) {
  :root {
    --sidebar-width: 220px;
  }

  .main-content {
    padding: 28px;
  }

  .grid-2,
  .grid-2-1,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  :root {
    --sidebar-width: 0px;
  }

  body {
    display: block;
  }

  .sidebar {
    position: static;
    width: 100%;
    max-height: none;
  }

  .main-content {
    margin-left: 0;
    padding: 22px 16px 34px;
  }

  .page-header h2 {
    font-size: 25px;
  }

  .stats-grid,
  .task-grid,
  .agent-insight-grid {
    grid-template-columns: 1fr;
  }

  .course-banner .banner-info h3 {
    font-size: 24px;
  }

  .archipelago-grid {
    grid-template-columns: 1fr;
  }

  .island-block,
  .island-block:nth-child(1),
  .island-block:nth-child(2),
  .island-block:nth-child(3),
  .island-block:nth-child(4),
  .island-block:nth-child(5),
  .island-block.active {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
  }
}

/* ============ 积分 & 成就系统 ============ */
.xp-bar-wrap {
  height: 4px;
  background: var(--gray-200);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 4px;
}
.xp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #ef4444);
  border-radius: 2px;
  transition: width 1s ease;
}

.level-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
}

.achievement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}
.achievement-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  background: var(--white);
  border: 1px solid var(--gray-200);
}
.achievement-chip.earned { border-color: #f59e0b; background: #fffbeb; }
.achievement-chip.locked { opacity: 0.5; }
.achievement-chip .ach-icon { font-size: 20px; }

/* 庆祝弹窗 */
.xp-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 40px;
  text-align: center;
  box-shadow: var(--shadow-xl);
  z-index: 10000;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  max-width: 380px;
}
.xp-popup.show { transform: translate(-50%, -50%) scale(1); }
.xp-popup .xp-amount {
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.xp-popup .xp-sub { font-size: 15px; color: var(--gray-500); margin: 6px 0 12px; }
.xp-popup .xp-detail {
  font-size: 15px;
  color: var(--gray-400);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.xp-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 9999;
  display: none;
}
.xp-overlay.show { display: block; }

/* AI 报告弹窗 */
.ai-modal-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  z-index: 10000;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
}
.ai-modal-popup.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}
.ai-modal-popup .ai-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-100);
}
.ai-modal-popup .ai-modal-header h3 { font-size: 18px; font-weight: 700; margin: 0; }
.ai-modal-popup .ai-modal-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--gray-100);
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.ai-modal-popup .ai-modal-close:hover { background: var(--gray-200); }
.ai-modal-popup .ai-modal-body { padding: 20px; }

/* 评价记录详情弹窗 */
.ai-modal-popup.history-detail-modal {
  max-width: 780px;
}
.history-modal-body {
  max-height: calc(80vh - 64px);
  overflow-y: auto;
}
.history-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-size: 15px;
  color: var(--gray-600);
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--gray-100);
}
.history-section-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-800);
  margin: 16px 0 10px;
}
.history-answers-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.history-stage-block {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}
.history-stage-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 10px;
}
.history-q-item {
  padding: 8px 0;
  border-top: 1px dashed var(--gray-200);
}
.history-q-item:first-of-type { border-top: none; padding-top: 0; }
.history-q-text {
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 4px;
  line-height: 1.5;
}
.history-q-answer {
  font-size: 16px;
  color: var(--gray-800);
  line-height: 1.6;
  font-weight: 500;
}

/* 礼花 */
.confetti-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10001;
  overflow: hidden;
}
.confetti-piece {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  animation: confettiFall 2.5s ease-out forwards;
}
@keyframes confettiFall {
  0% { transform: translateY(-100px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* 标签银行 */
.tag-bank {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 4px;
}
.tag-bank-chip {
  padding: 5px 12px;
  border-radius: 16px;
  border: 1px solid var(--gray-300);
  font-size: 15px;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--white);
  color: var(--gray-600);
  user-select: none;
}
.tag-bank-chip:hover { border-color: var(--primary); background: var(--primary-bg); color: var(--primary); }
.tag-bank-chip:hover { transform: translateY(-1px); }
.tag-bank-chip.picked { background: var(--primary); color: white; border-color: var(--primary); }

/* 鼓励提示 */
.encouragement-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  margin-top: 4px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}
.encouragement-bar.level-0 { background: var(--gray-50); color: var(--gray-500); }
.encouragement-bar.level-1 { background: var(--primary-bg); color: var(--primary); }
.encouragement-bar.level-2 { background: #f5f3ff; color: #7c3aed; }
.encouragement-bar.level-3 { background: #fffbeb; color: #d97706; }
.encouragement-bar.level-4 { background: #fef2f2; color: #dc2626; }
.encouragement-bar.level-2,
.encouragement-bar.level-3,
.encouragement-bar.level-4 {
  transform: translateY(-1px);
  border-color: rgba(124,58,237,0.14);
  box-shadow: var(--shadow-sm);
}

/* ============ 🌴 评价群岛�?大不规则3D�?+ 课程信息�?============ */

.student-immersive-shell {
  position: relative;
  isolation: isolate;
}

.student-immersive-shell::before {
  content: '';
  position: absolute;
  inset: 64px -12px -18px;
  z-index: -1;
  border-radius: 24px;
  background:
    linear-gradient(120deg, rgba(59,130,246,0.10), transparent 30%),
    linear-gradient(220deg, rgba(16,185,129,0.09), transparent 34%),
    repeating-linear-gradient(90deg, rgba(15,23,42,0.035) 0 1px, transparent 1px 32px);
  filter: saturate(1.08);
  animation: immersiveWash 12s ease-in-out infinite alternate;
}

@keyframes immersiveWash {
  from { opacity: 0.72; transform: translateY(0); }
  to { opacity: 1; transform: translateY(4px); }
}

/* 课程信息横幅 */
.course-banner {
  background:
    linear-gradient(135deg, rgba(15,23,42,0.94) 0%, rgba(30,58,95,0.94) 44%, rgba(6,78,59,0.88) 100%);
  border-radius: var(--radius-lg);
  padding: 16px 24px;
  margin-bottom: 14px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
}
.course-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, transparent 0%, rgba(255,255,255,0.16) 42%, transparent 54%),
    repeating-linear-gradient(120deg, transparent 0 22px, rgba(255,255,255,0.045) 22px 23px);
  transform: translateX(-65%);
  animation: bannerScan 5.8s ease-in-out infinite;
}

@keyframes bannerScan {
  0%, 22% { transform: translateX(-75%); opacity: 0; }
  42%, 66% { opacity: 1; }
  100% { transform: translateX(78%); opacity: 0; }
}

.course-banner-orbit {
  position: absolute;
  border: 1px solid rgba(147,197,253,0.25);
  border-radius: 50%;
  pointer-events: none;
}
.course-banner-orbit.orbit-one {
  width: 180px;
  height: 180px;
  right: 86px;
  top: -58px;
  animation: slowSpin 18s linear infinite;
}
.course-banner-orbit.orbit-two {
  width: 120px;
  height: 120px;
  right: -28px;
  bottom: -48px;
  border-color: rgba(52,211,153,0.24);
  animation: slowSpin 14s linear infinite reverse;
}

@keyframes slowSpin {
  to { transform: rotate(360deg); }
}
.course-banner .banner-icon {
  font-size: 42px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  animation: iconFloat 3.8s ease-in-out infinite;
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-5px) rotate(2deg); }
}
.course-banner .banner-info { position: relative; z-index: 1; flex: 1; }
.course-banner .banner-info h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}
.course-banner .banner-info .banner-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 15px;
  opacity: 0.85;
}
.course-banner .banner-info .banner-meta span { white-space: nowrap; }
.course-banner .banner-badge {
  flex-shrink: 0;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1;
}

.memory-dashboard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: -2px 0 12px;
  padding: 12px 16px;
  border: 1px solid rgba(59,130,246,0.18);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.82);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}

.memory-dashboard-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.memory-dashboard-main strong {
  font-size: 15px;
  color: var(--gray-900);
}

.memory-dashboard-main p {
  margin: 1px 0 0;
  font-size: 15px;
  color: var(--gray-500);
}

.memory-pulse {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34,197,94,0.45);
  animation: memoryPulse 1.8s ease-out infinite;
  flex-shrink: 0;
}

@keyframes memoryPulse {
  70% { box-shadow: 0 0 0 12px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

.memory-progress {
  display: grid;
  grid-template-columns: auto 120px auto;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  font-size: 15px;
  color: var(--gray-500);
}

.memory-progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--gray-100);
}

.memory-progress-track div {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3b82f6, #22c55e, #f59e0b);
  transition: width 0.45s ease;
}

.memory-progress strong {
  color: var(--gray-800);
}

.explore-hint {
  text-align: center;
  padding: 6px 0 12px;
  color: var(--gray-500);
  font-size: 15px;
  animation: hintBreathe 2.4s ease-in-out infinite;
}

@keyframes hintBreathe {
  0%, 100% { opacity: 0.68; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-2px); }
}

/* 群岛场景容器 */
.archipelago-scene {
  perspective: 800px;
  perspective-origin: 50% 40%;
  min-height: 420px;
  position: relative;
}

.archipelago-scene::before {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 24px;
  background:
    linear-gradient(rgba(59,130,246,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16,185,129,0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.45;
  transform: rotateX(62deg) scale(1.08);
  transform-origin: center top;
  pointer-events: none;
  animation: islandGridFlow 18s linear infinite;
}

@keyframes islandGridFlow {
  to { background-position: 56px 56px, 56px 56px; }
}

/* 5岛网格布局 */
.archipelago-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: auto auto;
  gap: 14px;
  padding: 8px;
  position: relative;
  z-index: 1;
}

/* 单个岛屿卡片（大�?*/
.island-block {
  position: relative;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
  min-height: 130px;
  animation: islandRise 0.62s cubic-bezier(0.175, 0.885, 0.32, 1.15) both;
}

.island-block:nth-child(2) { animation-delay: 0.05s; }
.island-block:nth-child(3) { animation-delay: 0.1s; }
.island-block:nth-child(4) { animation-delay: 0.15s; }
.island-block:nth-child(5) { animation-delay: 0.2s; }

@keyframes islandRise {
  from { opacity: 0; transform: translateY(18px) rotateX(8deg) scale(0.96); }
  to { opacity: 1; transform: translateY(0) rotateX(0) scale(1); }
}

/* 默认5岛位�?*/
.island-block:nth-child(1) { grid-column: 1 / 3; grid-row: 1; }
.island-block:nth-child(2) { grid-column: 3 / 5; grid-row: 1; }
.island-block:nth-child(3) { grid-column: 5 / 7; grid-row: 1; }
.island-block:nth-child(4) { grid-column: 1 / 3; grid-row: 2; }
.island-block:nth-child(5) { grid-column: 3 / 7; grid-row: 2; }

/* 岛屿激活�?�?撑满整行 */
.island-block.active {
  grid-column: 1 / -1 !important;
  grid-row: 1 / 3 !important;
  min-height: 380px;
  z-index: 10;
  transform: scale(1.0);
  cursor: default;
  animation: activeIslandOpen 0.55s cubic-bezier(0.175, 0.885, 0.32, 1.15) both;
}

@keyframes activeIslandOpen {
  from { opacity: 0.7; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* 未激活岛缩小变暗 */
.island-block.dimmed {
  opacity: 0.4;
  transform: scale(0.85);
  filter: grayscale(0.3) blur(1px);
  cursor: not-allowed;
  pointer-events: none;
}
.island-block.completed-dim {
  opacity: 0.55;
  transform: scale(0.88);
  filter: grayscale(0.15);
}

/* 岛屿本体 �?不规则clip-path + 3D */
.island-body {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 120px;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.5s;
  overflow: hidden;
  box-shadow: 
    0 6px 24px rgba(0,0,0,0.12),
    inset 0 -4px 8px rgba(0,0,0,0.06),
    inset 0 2px 4px rgba(255,255,255,0.2);
  isolation: isolate;
}
.island-block:nth-child(1) .island-body {
  clip-path: polygon(8% 3%, 92% 2%, 96% 40%, 90% 80%, 70% 97%, 30% 96%, 5% 75%, 2% 45%);
  background: linear-gradient(160deg, #dbeafe 0%, #bfdbfe 40%, #93c5fd 100%);
}
.island-block:nth-child(2) .island-body {
  clip-path: polygon(5% 5%, 95% 2%, 98% 38%, 88% 85%, 55% 97%, 20% 95%, 2% 70%, 3% 35%);
  background: linear-gradient(155deg, #fef3c7 0%, #fde68a 40%, #fbbf24 100%);
}
.island-block:nth-child(3) .island-body {
  clip-path: polygon(3% 3%, 96% 6%, 94% 45%, 85% 88%, 50% 96%, 15% 94%, 1% 68%, 4% 30%);
  background: linear-gradient(150deg, #ede9fe 0%, #c4b5fd 40%, #a78bfa 100%);
}
.island-block:nth-child(4) .island-body {
  clip-path: polygon(6% 2%, 90% 5%, 96% 42%, 88% 82%, 60% 98%, 25% 95%, 3% 72%, 1% 38%);
  background: linear-gradient(160deg, #dcfce7 0%, #bbf7d0 40%, #86efac 100%);
}
.island-block:nth-child(5) .island-body {
  clip-path: polygon(4% 4%, 94% 2%, 97% 35%, 92% 78%, 72% 96%, 35% 97%, 6% 76%, 2% 40%);
  background: linear-gradient(155deg, #ffe4e6 0%, #fecdd3 40%, #fda4af 100%);
}

/* 岛屿上的装饰纹理 */
.island-body::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg, transparent, transparent 20px,
    rgba(255,255,255,0.12) 20px, rgba(255,255,255,0.12) 21px
  );
  pointer-events: none;
  animation: islandTextureDrift 8s linear infinite;
}

@keyframes islandTextureDrift {
  to { background-position: 40px 20px; }
}

/* 岛屿阴影�?D投影�?*/
.island-body::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 10%;
  right: 10%;
  height: 12px;
  background: radial-gradient(ellipse, rgba(0,0,0,0.2) 0%, transparent 70%);
  z-index: -1;
}

/* 岛屿内图�?*/
.island-body .island-emoji {
  font-size: 38px;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.15));
}

/* 岛屿标签 */
.island-body .island-title {
  font-size: 16px;
  font-weight: 700;
  color: #1e3a5f;
  position: relative;
  z-index: 1;
}
.island-body .island-desc {
  font-size: 15px;
  color: #64748b;
  margin-top: 2px;
  position: relative;
  z-index: 1;
}

/* 完成标记 */
.island-block.completed-island .island-body::before {
  background: repeating-linear-gradient(
    45deg, transparent, transparent 20px,
    rgba(5,150,105,0.08) 20px, rgba(5,150,105,0.08) 21px
  );
}
.island-block.completed-island .island-body {
  box-shadow: 0 4px 16px rgba(5,150,105,0.2), 0 0 0 2px rgba(5,150,105,0.2),
    inset 0 -4px 8px rgba(5,150,105,0.05), inset 0 2px 4px rgba(255,255,255,0.2);
  animation: completedGlow 3.2s ease-in-out infinite;
}

@keyframes completedGlow {
  0%, 100% { filter: saturate(1); }
  50% { filter: saturate(1.16) brightness(1.03); }
}
.island-check {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(5,150,105,0.4);
}

/* === 激活岛 �?大岛展开题目 === */
.island-block.active .island-body {
  clip-path: none;
  border-radius: 16px;
  padding: 20px 28px;
  min-height: 350px;
  align-items: stretch;
  justify-content: flex-start;
  text-align: left;
  background: linear-gradient(170deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%) !important;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.05),
    0 0 60px rgba(59,130,246,0.1);
  transform: rotateX(1deg);
  position: relative;
}
.island-block.active .island-body::before { display: none; }
.island-block.active .island-body::after { display: none; }

.island-block.active .island-body > * {
  position: relative;
  z-index: 1;
}

.island-block.active .island-body::selection {
  background: rgba(59,130,246,0.18);
}

/* 激活岛内的头部 */
.active-island-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gray-100);
  animation: questionSlideIn 0.34s ease both;
}
.active-island-header .island-emoji {
  font-size: 36px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}
.active-island-header .stage-info h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-800);
}
.active-island-header .stage-info p {
  font-size: 15px;
  color: var(--gray-500);
}

/* 激活岛内的题目内容 */
.active-question-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  animation: questionSlideIn 0.38s ease both;
}

@keyframes questionSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.active-question-area .q-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.active-question-area .q-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 5px rgba(59,130,246,0.12);
}
.active-question-area .q-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-800);
  line-height: 1.5;
}
.active-question-area .q-subtitle {
  font-size: 15px;
  color: var(--gray-500);
  margin-bottom: 12px;
}
.active-question-area .q-input-area {
  margin-bottom: 12px;
}

.memory-cue {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  margin: -4px 0 14px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(239,246,255,0.9), rgba(236,253,245,0.78));
  border: 1px solid rgba(59,130,246,0.16);
  animation: questionSlideIn 0.38s ease both;
}

.memory-cue span {
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--primary);
}

.memory-cue strong {
  font-size: 15px;
  line-height: 1.55;
  color: var(--gray-700);
  font-weight: 600;
}

/* 岛内底部导航 */
.island-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--gray-100);
  margin-top: auto;
}

/* 非激活岛 hover */
.island-block:not(.active):not(.dimmed):hover .island-body {
  transform: translateY(-6px) scale(1.035) rotateX(2deg);
  box-shadow: 0 10px 30px rgba(0,0,0,0.18), inset 0 -4px 8px rgba(0,0,0,0.04), inset 0 2px 4px rgba(255,255,255,0.2);
}

/* 问题完成提示点（小岛上的小圆点） */
.island-q-dots {
  display: flex;
  gap: 4px;
  margin-top: 8px;
  position: relative;
  z-index: 1;
}
.island-q-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0,0,0,0.15);
  transition: all 0.3s;
}
.island-q-dot.answered { background: var(--success); }
.island-q-dot.answered {
  box-shadow: 0 0 0 4px rgba(5,150,105,0.12);
}

/* 兼容旧版按钮样式 */
.quest-nav { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.quest-dots { display: flex; gap: 6px; align-items: center; }
.quest-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gray-200); transition: all 0.3s; }
.quest-dot.done { background: var(--success); }
.quest-dot.current { background: var(--primary); transform: scale(1.3); box-shadow: 0 0 6px rgba(59,130,246,0.4); }
.quest-card .quest-stage-badge { display: inline-block; padding: 3px 12px; border-radius: 12px; font-size: 15px; font-weight: 600; }
.quest-card .quest-progress { font-size: 15px; color: var(--gray-400); }
.quest-card .quest-text { font-size: 16px; font-weight: 600; color: var(--gray-800); line-height: 1.5; }
.quest-card .quest-subtitle { font-size: 15px; color: var(--gray-400); }
.quest-card .quest-input { margin-bottom: 0; }

/* 岛屿完成动画 */
.island-complete-banner {
  text-align: center;
  padding: 24px;
  animation: bannerPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes bannerPop {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* 课程海报动画 */
@keyframes posterFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes shineSweep {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}
@keyframes scorePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* ============ 最终视觉尺度锁定：学生端沉浸答题 ============ */
.course-banner {
  min-height: 136px;
  padding: 26px 32px;
  gap: 28px;
  border-radius: var(--radius-xl);
}

.course-banner .banner-icon {
  font-size: 58px;
}

.course-banner .banner-info h3 {
  font-size: 30px;
  line-height: 1.18;
}

.course-banner .banner-info .banner-meta {
  gap: 8px 20px;
  font-size: 16px;
}

.course-banner .banner-badge {
  padding: 10px 20px;
  font-size: 16px;
}

.memory-dashboard {
  padding: 18px 22px;
  margin-bottom: 20px;
  border-radius: 18px;
}

.memory-dashboard-main strong {
  font-size: 18px;
}

.memory-dashboard-main p {
  font-size: 15px;
}

.memory-progress {
  grid-template-columns: auto 180px auto;
  font-size: 15px;
}

.memory-progress-track {
  height: 10px;
}

.explore-hint {
  font-size: 16px;
  padding-bottom: 18px;
}

.archipelago-scene {
  min-height: 560px;
}

.archipelago-grid {
  gap: 22px;
  padding: 16px;
}

.island-block {
  min-height: 170px;
}

.island-block.active {
  min-height: 520px;
}

.island-body {
  min-height: 160px;
  padding: 24px;
  border-radius: 20px;
}

.island-body .island-emoji {
  font-size: 50px;
}

.island-body .island-title {
  font-size: 21px;
}

.island-body .island-desc {
  max-width: 760px;
  font-size: 15px;
}

.island-block.active .island-body {
  padding: 30px 36px;
  min-height: 500px;
  border-radius: var(--radius-xl);
}

.active-island-header {
  gap: 18px;
  margin-bottom: 22px;
  padding-bottom: 18px;
}

.active-island-header .island-emoji {
  font-size: 50px;
}

.active-island-header .stage-info h4 {
  font-size: 24px;
}

.active-island-header .stage-info p {
  font-size: 16px;
}

.memory-cue {
  padding: 14px 16px;
  margin-bottom: 22px;
}

.memory-cue span {
  font-size: 15px;
}

.memory-cue strong {
  font-size: 15px;
}

.active-question-area .q-header {
  gap: 14px;
  margin-bottom: 18px;
}

.active-question-area .q-num {
  width: 38px;
  height: 38px;
  font-size: 17px;
}

.active-question-area .q-text {
  font-size: 22px;
}

.active-question-area .q-subtitle {
  font-size: 16px;
  margin-bottom: 18px;
}

.choice-grid {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}

.choice-item,
.radio-item {
  min-height: 56px;
  padding: 15px 18px;
  font-size: 16px;
  border-radius: 14px;
}

.text-input {
  min-height: 52px;
  padding: 15px 18px;
  font-size: 17px;
  border-radius: 14px;
}

textarea.text-input {
  min-height: 150px;
  line-height: 1.72;
}

.tag-bank {
  gap: 10px;
  margin: 14px 0 8px;
}

.tag-bank-chip {
  padding: 8px 14px;
  font-size: 15px;
}

.encouragement-bar {
  padding: 10px 14px;
  font-size: 15px;
}

.island-footer {
  padding-top: 20px;
}

/* ============ 末尾字号锁定：最高优先级生效 ============ */
body,
.main-content {
  font-size: 18px;
}

p,
td,
li,
.subtitle,
.stat-label,
.stat-change,
.task-meta,
.card-body,
.agent-insight-item p,
.agent-insight-evidence,
.agent-insight-action,
.memory-dashboard-main p,
.course-banner .banner-info .banner-meta {
  font-size: 18px;
}

small,
.agent-workbench-eyebrow,
.agent-workbench-score small,
.agent-metric span,
.agent-metric small,
.agent-insight-kicker,
.agent-insight-confidence,
.user-role,
.logo-sub {
  font-size: 16px;
}

.nav-item,
.btn,
.tag,
.score-badge,
table td,
input,
textarea,
select,
.choice-item,
.radio-item,
.text-input,
.tag-bank-chip,
.encouragement-bar {
  font-size: 18px;
}

table th,
.memory-cue span {
  font-size: 16px;
}

.page-header h2 {
  font-size: 34px;
}

.card-header h3,
.agent-insight-item h4,
.task-card h4,
.task-info h4 {
  font-size: 22px;
}

.ai-banner-text h4,
.agent-workbench-head h3 {
  font-size: 26px;
}

.stat-value {
  font-size: 36px;
}

.active-question-area .q-text {
  font-size: 24px;
}

.active-question-area .q-subtitle,
.memory-cue strong {
  font-size: 18px;
}

/* ============ 全站响应式统一增强：笔记本 / 平板 / 手机 ============ */

/* ---- 大屏桌面 >= 1600px ---- */
@media (min-width: 1600px) {
  .main-content { padding: 28px 48px; }
}

/* ---- 笔记本 1024 - 1599px（含高分屏）：整体按比例缩小，保持多列布局 ---- */
@media (min-width: 1024px) and (max-width: 1599px) {
  :root { --sidebar-width: 190px; }

  /* 保持多列布局（覆盖 1180/1200px 的单列断点） */
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  /* 主内容整体缩小（字号 + 间距） */
  .main-content { padding: 18px 22px; }
  body, .main-content, p, td, li { font-size: 15px; }
  .page-header h2 { font-size: 24px; }
  .card-header h3 { font-size: 17px; }
  .stat-value { font-size: 28px; }
  .card-body { padding: 16px; }
  .card-header { padding: 12px 16px; min-height: 0; }
  .grid-2, .grid-3 { gap: 14px; margin-bottom: 16px; }
  .chart-container canvas { max-height: 300px; }
  table th, table td { padding: 10px 12px; font-size: 14px; }
  table th { white-space: nowrap; }
  .tag, .score-badge { font-size: 13px; padding: 3px 8px; }
  .score-badge { min-width: 40px; }

  /* 侧边栏缩小，避免导航出现滚动条 */
  .sidebar-header { padding: 12px 12px 10px; }
  .logo-icon { font-size: 22px; }
  .logo-text h1 { font-size: 13px; }
  .logo-sub { font-size: 11px; }
  .sidebar-nav { padding: 8px 6px; gap: 0; }
  .nav-item { padding: 5px 9px; font-size: 13px; gap: 8px; }
  .nav-icon { font-size: 14px; width: 18px; }
  .sidebar-footer { padding: 10px 12px; }
  .avatar { width: 26px; height: 26px; font-size: 13px; }
  .user-name { font-size: 13px; }
  .user-role { font-size: 11px; }
}

/* ---- 平板 768 - 1023px：侧栏图标模式 + 单列 ---- */
@media (min-width: 768px) and (max-width: 1023px) {
  :root { --sidebar-width: 64px; }
  .sidebar .logo-text,
  .sidebar .nav-item span:not(.nav-icon),
  .sidebar .user-detail,
  .sidebar .btn-logout { display: none; }
  .sidebar-nav { padding: 10px 6px; }
  .nav-item { justify-content: center; padding: 10px 8px; }
  .main-content { margin-left: 64px; padding: 20px 18px; }
  .grid-2, .grid-2-1, .grid-3 { grid-template-columns: 1fr; }
  .chart-container canvas { max-height: 320px; }
  .page-header h2 { font-size: 26px; }
  .card-header h3 { font-size: 19px; }
  body, .main-content, p, td, li { font-size: 16px; }
}

/* ---- 手机 <= 767px：侧栏顶部横向 + 单列 + 紧凑 ---- */
@media (max-width: 767px) {
  :root { --sidebar-width: 0px; }
  body { display: block; }
  .sidebar {
    position: static;
    width: 100%;
    padding: 0;
    flex-direction: row;
  }
  .sidebar-header { display: none; }
  .sidebar-nav {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 8px 10px;
    gap: 4px;
  }
  .nav-item { flex-shrink: 0; padding: 8px 12px; font-size: 14px; }
  .nav-item span:not(.nav-icon) { display: none; }
  .sidebar-footer { display: none; }
  .main-content { margin-left: 0; padding: 16px 12px 32px; }
  .page-header h2 { font-size: 22px; }
  .card-header h3 { font-size: 17px; }
  .grid-2, .grid-2-1, .grid-3, .stats-grid { grid-template-columns: 1fr; }
  .card-body { padding: 16px; }
  .card-header { padding: 14px 16px; min-height: 0; }
  .chart-container canvas { max-height: 240px; }
  body, .main-content, p, td, li { font-size: 15px; }
  table th, table td { padding: 10px 12px; font-size: 14px; }
  .stat-value { font-size: 26px; }
}

/* ============ 教师端：我的课程组 · 两列网格布局 ============ */
.course-group-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

@media (max-width: 1100px) {
  .course-group-grid { grid-template-columns: 1fr; }
}

.course-group-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.course-group-card .card-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-100);
}

.course-group-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  flex: 1;
}

.course-group-teachers {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.course-group-teacher {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  transition: all 0.15s ease;
}

.course-group-teacher:hover {
  background: var(--gray-100);
  transform: translateX(2px);
}

.course-group-teacher.is-me {
  background: var(--primary-bg);
  border-color: var(--primary-light);
}

.course-group-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

.course-group-info {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
}

.course-group-info strong {
  font-size: 14px;
  white-space: nowrap;
}

.course-group-info .tag {
  font-size: 12px;
  padding: 1px 6px;
  min-height: 0;
}

.course-group-reform {
  font-size: 12px;
  color: var(--gray-400);
  margin-left: auto;
  white-space: nowrap;
}

.course-group-teacher.is-me .course-group-reform {
  color: var(--primary-color);
}

.course-group-more {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--gray-100);
  color: var(--gray-500);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px dashed var(--gray-300);
}

.course-group-more:hover {
  background: var(--primary-bg);
  color: var(--primary-color);
  border-color: var(--primary-light);
  border-style: solid;
}

.course-group-actions {
  display: flex;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px solid var(--gray-100);
}

.course-group-actions .btn {
  flex: 1;
  white-space: nowrap;
}

.course-group-modal {
  max-width: 640px !important;
}

/* ============ 教师端 · 外观设置面板 ============ */
.theme-panel-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(15, 23, 42, 0.30);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.theme-panel-backdrop.show { opacity: 1; pointer-events: auto; }

.theme-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -46%) scale(0.96);
  z-index: 9999;
  width: min(420px, calc(100vw - 40px));
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  padding: 22px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.28s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.theme-panel.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

.theme-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.theme-panel-title { font-size: 18px; font-weight: 700; color: #1e293b; }
.theme-panel-sub { font-size: 13px; color: #64748b; margin-top: 2px; }
.theme-panel-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.16);
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.theme-panel-close:hover { background: rgba(148, 163, 184, 0.32); }

.theme-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.theme-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 12px;
  border-radius: 16px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.5);
  border: 1.5px solid rgba(148, 163, 184, 0.25);
  transition: all 0.2s ease;
}
.theme-option:hover { border-color: rgba(99, 102, 241, 0.5); transform: translateY(-2px); }
.theme-option.active {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.10);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}
.theme-option-icon { font-size: 26px; line-height: 1; }
.theme-option-name { font-size: 15px; font-weight: 700; color: #1e293b; }
.theme-option-desc { font-size: 12px; color: #94a3b8; }

/* ============ 教师端 · 玻璃拟态主题（可切换） ============ */
.teacher-portal.glass-theme {
  background:
    radial-gradient(1100px 560px at 12% -8%, rgba(99, 102, 241, 0.40), transparent 60%),
    radial-gradient(900px 520px at 92% 6%, rgba(34, 211, 238, 0.32), transparent 56%),
    radial-gradient(1000px 760px at 50% 112%, rgba(168, 85, 247, 0.30), transparent 62%),
    linear-gradient(160deg, #eef1ff 0%, #f7f9fc 45%, #ecfdff 100%);
  background-attachment: fixed;
}

/* 覆盖原网格背景为柔和光斑 */
.teacher-portal.glass-theme::before {
  background-image: none;
  background:
    radial-gradient(460px 460px at 18% 30%, rgba(255, 255, 255, 0.65), transparent 70%),
    radial-gradient(380px 380px at 82% 72%, rgba(255, 255, 255, 0.55), transparent 70%);
  mask-image: none;
  -webkit-mask-image: none;
  filter: blur(36px);
  animation: none;
}

/* 侧边栏：深色磨砂玻璃 */
.teacher-portal.glass-theme .sidebar {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(30, 41, 59, 0.78));
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 8px 0 44px rgba(15, 23, 42, 0.28);
}
.teacher-portal.glass-theme .sidebar-header { border-bottom-color: rgba(255, 255, 255, 0.10); }
.teacher-portal.glass-theme .sidebar-footer { border-top-color: rgba(255, 255, 255, 0.10); }
.teacher-portal.glass-theme .nav-item.active {
  background: rgba(99, 102, 241, 0.28);
  color: #c7d2fe;
  box-shadow: inset 0 0 0 1px rgba(165, 180, 252, 0.22);
}
.teacher-portal.glass-theme .nav-item.active::before {
  background: linear-gradient(180deg, #818cf8, #22d3ee);
}

/* 玻璃卡片 */
.teacher-portal.glass-theme .card,
.teacher-portal.glass-theme .stat-card,
.teacher-portal.glass-theme .task-card,
.teacher-portal.glass-theme .task-item,
.teacher-portal.glass-theme .teacher-card,
.teacher-portal.glass-theme .course-option,
.teacher-portal.glass-theme .rubric-card,
.teacher-portal.glass-theme .progress-card,
.teacher-portal.glass-theme .report-btn,
.teacher-portal.glass-theme .dept-card,
.teacher-portal.glass-theme .mini-chart-card,
.teacher-portal.glass-theme .result-card,
.teacher-portal.glass-theme .course-profile-card,
.teacher-portal.glass-theme .agent-workbench,
.teacher-portal.glass-theme .memory-dashboard {
  background: rgba(255, 255, 255, 0.52) !important;
  backdrop-filter: blur(20px) saturate(165%);
  -webkit-backdrop-filter: blur(20px) saturate(165%);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 12px 36px rgba(49, 46, 129, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.70);
}
.teacher-portal.glass-theme .card:hover,
.teacher-portal.glass-theme .stat-card:hover,
.teacher-portal.glass-theme .task-card:hover,
.teacher-portal.glass-theme .teacher-card:hover {
  background: rgba(255, 255, 255, 0.68) !important;
  box-shadow: 0 18px 46px rgba(49, 46, 129, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.teacher-portal.glass-theme .card-header {
  background: rgba(255, 255, 255, 0.30);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(255, 255, 255, 0.5);
}

/* 玻璃按钮 */
.teacher-portal.glass-theme .btn-primary {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.92), rgba(129, 140, 248, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 22px rgba(79, 70, 229, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.30);
}
.teacher-portal.glass-theme .btn-primary:hover {
  background: linear-gradient(135deg, rgba(67, 56, 202, 0.95), rgba(99, 102, 241, 0.95));
  box-shadow: 0 12px 28px rgba(79, 70, 229, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.teacher-portal.glass-theme .btn-outline {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

/* 输入框玻璃 */
.teacher-portal.glass-theme .text-input,
.teacher-portal.glass-theme .search-input,
.teacher-portal.glass-theme .filter-select {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(148, 163, 184, 0.30);
}
.teacher-portal.glass-theme .text-input:focus,
.teacher-portal.glass-theme .search-input:focus {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(99, 102, 241, 0.7);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.16);
}

/* 表格玻璃 */
.teacher-portal.glass-theme table th {
  background: rgba(255, 255, 255, 0.30);
  border-bottom-color: rgba(148, 163, 184, 0.25);
}
.teacher-portal.glass-theme table tbody tr:hover { background: rgba(255, 255, 255, 0.5); }

/* 图标容器玻璃微光 */
.teacher-portal.glass-theme .stat-icon,
.teacher-portal.glass-theme .task-type-icon,
.teacher-portal.glass-theme .survey-course-icon,
.teacher-portal.glass-theme .rubric-icon {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 6px 16px rgba(49, 46, 129, 0.12);
}

/* 课程组教师条目玻璃 */
.teacher-portal.glass-theme .course-group-teacher {
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.teacher-portal.glass-theme .course-group-teacher.is-me {
  background: rgba(99, 102, 241, 0.14);
  border-color: rgba(99, 102, 241, 0.45);
}

/* 玻璃主题更轻盈的字重（标题保持粗体，正文恢复常规） */
.teacher-portal.glass-theme p,
.teacher-portal.glass-theme td,
.teacher-portal.glass-theme li,
.teacher-portal.glass-theme .subtitle,
.teacher-portal.glass-theme .stat-label,
.teacher-portal.glass-theme .stat-change,
.teacher-portal.glass-theme .task-meta,
.teacher-portal.glass-theme .card-body {
  font-weight: 500 !important;
}

/* ============ 教师端 · 教学改革问卷（紧凑高级版） ============ */
.reform-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.reform-course-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.reform-course-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.reform-course-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.reform-course-label {
  font-size: 12px;
  color: var(--gray-400);
  font-weight: 600;
}
.reform-course-select {
  border: none;
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-800);
  padding: 0;
  cursor: pointer;
  width: 100%;
}
.reform-course-select:focus { outline: none; }

.reform-field {
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.reform-field:hover {
  border-color: var(--gray-200);
  box-shadow: var(--shadow);
}
.reform-field-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.reform-field-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.reform-field-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-800);
}
.reform-field-hint {
  font-size: 12px;
  color: var(--gray-400);
  margin-left: auto;
}

.reform-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.reform-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 0;
  height: auto;
  padding: 7px 14px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  background: var(--white);
  color: var(--gray-600);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}
.reform-tag:hover {
  border-color: var(--primary-light);
  color: var(--primary);
  background: var(--primary-bg);
}
.reform-tag.selected {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(26, 86, 219, 0.25);
}

.reform-textarea-wrap { position: relative; }
textarea.reform-textarea {
  min-height: 64px;
  padding-right: 48px;
  font-size: 14px;
  resize: vertical;
}
.reform-voice-btn {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--gray-200);
  background: #fff;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.reform-voice-btn:hover {
  border-color: var(--primary-light);
  background: var(--primary-bg);
}

.reform-submit {
  align-self: flex-start;
  padding: 10px 28px;
  border-radius: 999px;
  font-weight: 600;
  min-height: 42px;
}

/* 玻璃主题下问卷卡片同样玻璃化 */
.teacher-portal.glass-theme .reform-course-bar,
.teacher-portal.glass-theme .reform-field {
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(20px) saturate(165%);
  -webkit-backdrop-filter: blur(20px) saturate(165%);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 12px 36px rgba(49, 46, 129, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.70);
}
.teacher-portal.glass-theme .reform-tag {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.30);
}
/* 玻璃主题下选中态保持高对比（实心主色 + 白字） */
.teacher-portal.glass-theme .reform-tag.selected {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(26, 86, 219, 0.30);
}

/* 自定义教学方法：加号按钮 + 内联输入 */
.reform-tag-add {
  border-style: dashed;
  color: var(--primary);
  font-weight: 600;
}
.reform-tag-add:hover {
  background: var(--primary-bg);
  border-color: var(--primary);
  color: var(--primary);
}
.teacher-portal.glass-theme .reform-tag-add {
  background: transparent;
  border-style: dashed;
}
.reform-tag-input {
  display: inline-flex;
  align-items: center;
}
.reform-tag-input input {
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--primary);
  border-radius: 999px;
  font-size: 14px;
  outline: none;
  background: #fff;
  color: var(--gray-800);
  min-width: 160px;
}

/* ============ 学生端 · 记忆盒子过渡贴图 ============ */
.memory-box-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.memory-box-overlay.show { opacity: 1; }

.memory-box-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  padding: 24px;
  animation: memoryBoxPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}
.memory-box-img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  filter: drop-shadow(0 14px 34px rgba(99, 102, 241, 0.45));
  animation: memoryBoxFloat 2.6s ease-in-out infinite;
}
.memory-box-title {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}
.memory-box-desc {
  max-width: 460px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.7;
}

@keyframes memoryBoxPop {
  from { opacity: 0; transform: scale(0.8) translateY(22px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes memoryBoxFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

/* ============ 学生端 · 课堂故事线（开篇记忆锚点） ============ */
.storyline-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px 28px;
  margin-bottom: 18px;
}
.storyline-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}
.storyline-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.storyline-head h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 4px;
}
.storyline-head p {
  font-size: 15px;
  color: var(--gray-500);
  margin: 0;
  line-height: 1.6;
}
.storyline-input {
  min-height: 96px;
  font-size: 16px;
  margin-bottom: 16px;
}
.storyline-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.storyline-result {
  margin: 16px 0;
  padding: 18px 20px;
  border: 1px solid rgba(99, 102, 241, 0.18);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f8fafc, #eef2ff);
}
.storyline-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 12px;
}
.storyline-section { margin-bottom: 12px; }
.storyline-section:last-child { margin-bottom: 0; }
.storyline-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-500);
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.storyline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.storyline-tag {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.storyline-tags.portrait .storyline-tag {
  background: #7c3aed;
}
.storyline-highlight {
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.6;
  padding-left: 14px;
  position: relative;
  margin-bottom: 4px;
}
.storyline-highlight::before {
  content: '•';
  position: absolute;
  left: 2px;
  color: var(--primary);
  font-weight: 700;
}
.storyline-highlight.concern::before { color: var(--warning); }
.storyline-followup {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.08);
  color: #4338ca;
  font-size: 15px;
  line-height: 1.6;
}
.storyline-reply {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}
.storyline-reply-input {
  flex: 1;
  min-height: 42px;
  font-size: 15px;
}

/* ============ 学生端 · 课堂故事线（左右分栏固定尺寸） ============ */
.storyline-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}
.storyline-panel {
  display: flex;
  flex-direction: column;
  height: 540px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 20px 22px;
  overflow: hidden;
}
.storyline-panel-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  flex-shrink: 0;
}
.storyline-panel-head h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 3px;
}
.storyline-panel-head p {
  font-size: 14px;
  color: var(--gray-500);
  margin: 0;
  line-height: 1.5;
}

.storyline-memories {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}
.storyline-memory {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-700);
}
.storyline-memory-idx {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.storyline-input {
  flex-shrink: 0;
  min-height: 84px;
}

.storyline-right-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  margin-bottom: 12px;
}
.storyline-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--gray-400);
  font-size: 15px;
  text-align: center;
  padding: 20px;
}
.storyline-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* 标签可编辑 / 可删除 */
.storyline-label-tip { font-weight: 400; color: var(--gray-400); font-size: 12px; }
.storyline-tag { display: inline-flex; align-items: center; gap: 6px; }
.storyline-tag-text { cursor: pointer; }
.storyline-tag-text:hover { text-decoration: underline; }
.storyline-tag-x {
  cursor: pointer;
  opacity: 0.6;
  font-size: 12px;
  line-height: 1;
  padding: 2px;
  border-radius: 50%;
  transition: all 0.15s;
}
.storyline-tag-x:hover { opacity: 1; background: rgba(255, 255, 255, 0.3); }
.storyline-tag-none { color: var(--gray-400); font-size: 14px; }
.storyline-tag-edit {
  width: 110px;
  padding: 4px 10px;
  border: 1px solid var(--primary);
  border-radius: 999px;
  font-size: 14px;
  outline: none;
}

/* 追问弹窗 */
.storyline-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.storyline-modal-backdrop.show { opacity: 1; }
.storyline-modal {
  width: min(440px, calc(100vw - 40px));
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
  padding: 22px;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.28s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.storyline-modal-backdrop.show .storyline-modal { transform: translateY(0) scale(1); }
.storyline-modal-head {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 10px;
}
.storyline-modal-followup {
  font-size: 16px;
  color: var(--gray-700);
  line-height: 1.6;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--primary-bg);
}
.storyline-modal .text-input { width: 100%; margin-bottom: 14px; }
.storyline-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

@media (max-width: 980px) {
  .storyline-layout { grid-template-columns: 1fr; }
  .storyline-panel { height: auto; min-height: 380px; }
}

/* ============ 学生端 · 课堂故事线（紧凑横幅 / 语音 / 结果网格） ============ */
.course-banner-compact {
  padding: 10px 18px;
  min-height: 0;
  gap: 12px;
}
.course-banner-compact .banner-info {
  flex-direction: row;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.course-banner-compact .banner-title {
  font-size: 18px;
  font-weight: 700;
}
.course-banner-compact .banner-chip {
  font-size: 14px;
  opacity: 0.92;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  white-space: nowrap;
}
.course-banner-compact .banner-icon { font-size: 30px; }

.storyline-input-wrap {
  position: relative;
  flex-shrink: 0;
}
.storyline-input-wrap .storyline-input {
  padding-right: 54px;
  min-height: 120px;
}
.storyline-voice-btn {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--gray-200);
  background: #fff;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.storyline-voice-btn:hover { border-color: var(--primary-light); background: var(--primary-bg); }
.storyline-voice-btn.recording {
  border-color: #ef4444;
  background: #fef2f2;
  animation: voicePulse 1.2s ease-in-out infinite;
}
@keyframes voicePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}

.storyline-submit {
  align-self: flex-start;
  flex-shrink: 0;
  margin: 10px 0;
}

/* 结果：固定尺寸 + 明显边框 + 同部分横排 */
.storyline-result {
  margin: 0;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  border: 1px solid rgba(99, 102, 241, 0.22);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f8fafc, #eef2ff);
  padding: 16px 18px;
}
.storyline-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.storyline-block { min-width: 0; }
.storyline-tags.concern .storyline-tag { background: var(--warning); }
.storyline-tags.highlight .storyline-tag { background: var(--success); }

/* ============ 评价横条按钮 + 结束评价弹窗 ============ */
.banner-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}
.banner-action-btn {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
  border: 1px solid transparent;
}
.banner-action-btn.save {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}
.banner-action-btn.save:hover { background: rgba(255, 255, 255, 0.26); }
.banner-action-btn.end {
  background: rgba(239, 68, 68, 0.22);
  color: #fff;
  border-color: rgba(248, 113, 113, 0.5);
}
.banner-action-btn.end:hover { background: rgba(239, 68, 68, 0.38); }

.endsurvey-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.endsurvey-backdrop.show { opacity: 1; }
.endsurvey-modal {
  width: min(400px, calc(100vw - 40px));
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
  padding: 22px;
  text-align: center;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.28s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.endsurvey-backdrop.show .endsurvey-modal { transform: translateY(0) scale(1); }
.endsurvey-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}
.endsurvey-desc {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 18px;
}
.endsurvey-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.endsurvey-actions .btn { justify-content: center; }

.btn-ghost {
  background: transparent;
  color: var(--gray-500);
}
.btn-ghost:hover { background: var(--gray-100); color: var(--gray-700); }

/* ============ 课堂故事线 · AI 处理中提示 ============ */
.storyline-loading-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.storyline-loading-backdrop.show { opacity: 1; }
.storyline-loading-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: min(360px, calc(100vw - 40px));
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
  padding: 28px 24px;
  text-align: center;
}
.storyline-loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--gray-100);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.storyline-loading-text {
  font-size: 16px;
  color: var(--gray-700);
  line-height: 1.6;
}
.storyline-loading-bar {
  width: 100%;
  height: 6px;
  background: var(--gray-100);
  border-radius: 999px;
  overflow: hidden;
}
.storyline-loading-fill {
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 999px;
  animation: storylineProgress 1.2s ease-in-out infinite;
}
@keyframes storylineProgress {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(260%); }
}

/* ============ 学生端 · 群岛锁态 + 岛内进度条 ============ */
.island-block.locked {
  opacity: 0.95;
  filter: saturate(0.55);
}
.island-lock {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  z-index: 3;
}

.active-island-header {
  gap: 10px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom-width: 1px;
  flex-wrap: wrap;
}
.active-island-header .island-emoji { font-size: 30px; }
.active-island-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-800);
}
.active-island-cue {
  margin-left: auto;
  font-size: 14px;
  color: var(--primary);
  background: var(--primary-bg);
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.island-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.island-progress-track {
  flex: 1;
  height: 6px;
  background: var(--gray-100);
  border-radius: 999px;
  overflow: hidden;
}
.island-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #22c55e);
  border-radius: 999px;
  transition: width 0.3s;
}
.island-progress-text {
  font-size: 14px;
  color: var(--gray-500);
  white-space: nowrap;
}