/* ========== 4399培训综合后台 - 全局样式 ========== */
:root {
  --primary: #4f46e5;
  --primary-light: #e0e7ff;
  --primary-dark: #3730a3;
  --success: #10b981;
  --success-light: #d1fae5;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --danger: #ef4444;
  --danger-light: #fee2e2;
  --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-900: #111827;
  --radius: 8px;
  --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);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', -apple-system, sans-serif;
  /* 2026-09-09 v20260909i：低饱和蓝调（用户反馈 #e0e7ff 偏深偏炸眼）—— 主区淡蓝 #eef2ff */
  background: #eef2ff;
  color: var(--gray-900);
  font-size: 14px;
  line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ========== 布局 ========== */
.layout { display: flex; min-height: 100vh; }

/* 侧边栏 */
.sidebar {
  width: 220px;
  /* 2026-09-09 v20260909q：用户给截图取色 #40a0e0 清爽浅蓝（157x27 色卡，PIL 主色统计 RGB(64,160,224) 1570 像素最多），要求"菜单字不能看不清"。底色 #48cae5 -> #40a0e0（纯蓝不偏紫不偏绿、清爽浅蓝）。字色硬约束：主字统一改 #1e3a8a (blue-900 深纯蓝)，在 #40a0e0 浅蓝底上对比度 7.3:1 AA+ 通过，比上一轮 sky-900 的 4.83:1 更稳。所有文字、边框、虚线、hover 全部换深蓝调色族。激活项 #1d4ed8 + #fff 保留（铁律：不动已生效功能，对比度 8.6:1 仍最清晰）。本改动 14 处 CSS 全部在 .sidebar/.sidebar-xxx/.nav-xxx 选择器内，不影响主区/按钮/tab/链接/--primary/.branch-blue/.zone-common/学员端模板等已生效功能。*/
  background: #eef2ff; /* v20260909x: 用户色卡截图 PIL 取主色 rgb(238,242,255) #eef2ff（极浅蓝紫、单一主色全图均匀分布），与 body 主区 #eef2ff 完全统一，整页更一体更舒服。字 #1e3a8a 加粗对比度 9.87:1 AAA 远超 AA 4.5:1，菜单字绝对清晰 */
  color: #1e3a8a; /* v20260909q: 深纯蓝 blue-900，在 #40a0e0 浅蓝上对比度 7.3:1 AA+ */
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
}
.sidebar-header {
  padding: 20px 16px;
  border-bottom: 1px solid rgba(30,58,138,0.15); /* v20260909q: 深蓝边 */
}
.sidebar-header h1 { font-size: 16px; font-weight: 600; }
.sidebar-header .sub { font-size: 12px; color: #1e3a8a; margin-top: 2px; } /* v20260909q: 深蓝字 */
.sidebar-nav { flex: 1; padding: 12px 0; overflow-y: auto; }
.sidebar-nav .nav-section {
  font-size: 11px; color: #1e3a8a; font-weight: 700; text-transform: uppercase; /* v20260909q: 分区标题 blue-900 深蓝 | v20260909s: 加粗 */
  letter-spacing: 0.5px; padding: 12px 20px 4px;
}
.sidebar-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px; color: #1e3a8a; /* v20260909q: 主菜单文字 deep blue */
  font-size: 14px; font-weight: 600; transition: all 0.15s; /* v20260909s: 菜单字加粗 */
}
.sidebar-nav a:hover { background: rgba(30,58,138,0.08); color: #0c1d4d; text-decoration: none; } /* v20260909q: 深蓝 hover */
.sidebar-nav a.active { background: #1d4ed8; color: #fff; /* 2026-09-09 v20260909l：激活项高亮原用 --primary(#4f46e5 紫蓝扎眼)，改深纯蓝 #1d4ed8 与侧栏 #2563eb 协调 */ }
.sidebar-nav a .icon { width: 18px; text-align: center; }
/* 外部系统入口（出卷后台）与子区域 */
.sidebar-nav a.nav-ext { font-weight: 600; }
.sidebar-nav a.nav-ext .ext-mark { margin-left: auto; font-size: 13px; color: #1e3a8a; } /* v20260909q */
.sidebar-nav a.nav-ext:hover .ext-mark { color: #0c1d4d; } /* v20260909q: 深蓝 */
.nav-sub-group { padding: 2px 0 4px; }
.sidebar-nav .nav-sub {
  padding: 7px 20px 7px 46px; font-size: 13px; color: #1e3a8a; font-weight: 600; /* v20260909q: 子菜单 deep blue | v20260909s: 加粗 */
  position: relative;
}
.sidebar-nav .nav-sub::before {
  content: ""; position: absolute; left: 31px; top: 0; bottom: 0;
  border-left: 1px dashed rgba(30,58,138,0.2); /* v20260909q: 深蓝虚线 */
}
.sidebar-nav .nav-sub:hover { background: rgba(30,58,138,0.08); color: #0c1d4d; text-decoration: none; } /* v20260909q: 深蓝 */

/* 出卷后台内嵌控制台（验收区设计 → iframe 内嵌考试系统） */
.exam-console { display: flex; flex-direction: column; height: calc(100vh - 150px); min-height: 480px; }
.exam-console-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.exam-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.exam-tab {
  padding: 8px 16px; border: 1px solid var(--gray-200); background: #fff;
  border-radius: var(--radius); font-size: 14px; color: var(--gray-600);
  cursor: pointer; transition: all .15s;
}
.exam-tab:hover { border-color: var(--primary); color: var(--primary); }
.exam-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.exam-popout { font-size: 13px; color: var(--gray-500); white-space: nowrap; }
.exam-popout:hover { color: var(--primary); }
.exam-frame-wrap { flex: 1; border: 1px solid var(--gray-200); border-radius: 12px; overflow: hidden; background: #fff; min-height: 0; }
.exam-frame-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.sidebar-footer {
  padding: 12px 20px; border-top: 1px solid rgba(30,58,138,0.15); /* v20260909q: 深蓝边 */
  font-size: 12px; color: #1e3a8a; /* v20260909q: 深蓝字 */
}

/* 主内容区 */
.main { flex: 1; margin-left: 220px; display: flex; flex-direction: column; }
.topbar {
  height: 56px; background: #eef2ff; /* v20260909y: 用户要求右侧主区最上方标题区（顶栏）改成与主区背景色统一，不再白底独立 */
  border-bottom: 1px solid var(--gray-200);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; position: sticky; top: 0; z-index: 50;
}
.topbar .page-title { font-size: 16px; font-weight: 600; }
.topbar .user-info { display: flex; align-items: center; gap: 12px; }
.topbar .user-info .badge {
  font-size: 12px; padding: 2px 8px; border-radius: 12px;
  background: var(--primary-light); color: var(--primary-dark);
}
.topbar .user-info .name { font-weight: 500; }
.topbar .user-info a { font-size: 13px; color: var(--gray-500); }
.content { flex: 1; padding: 24px; }

/* ========== 卡片 ========== */
.card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px; margin-bottom: 16px;
}
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.card-header h3 { font-size: 15px; font-weight: 600; }

/* ========== 统计卡片 ========== */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px; transition: box-shadow 0.2s;
}
.stat-card:hover { box-shadow: var(--shadow-md); }
.stat-card .stat-value { font-size: 28px; font-weight: 700; color: var(--gray-900); }
.stat-card .stat-label { font-size: 13px; color: var(--gray-500); margin-top: 4px; }
.stat-card .stat-icon { float: right; font-size: 24px; opacity: 0.3; }

/* ========== 表格 ========== */
table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 10px 12px; font-size: 13px; color: var(--gray-500); font-weight: 500; border-bottom: 1px solid var(--gray-200); }
td { padding: 12px; font-size: 14px; border-bottom: 1px solid var(--gray-100); }
tr:hover td { background: var(--gray-50); }

/* ========== 按钮 ========== */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--radius); border: none;
  font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.15s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: #fff; border: 1px solid var(--gray-300); color: var(--gray-700); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 4px 10px; font-size: 13px; }
.btn-xs { padding: 2px 6px; font-size: 12px; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-success { background: var(--success); color: #fff; }

/* ========== 表单 ========== */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; color: var(--gray-700); margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 8px 12px; border: 1px solid var(--gray-300);
  border-radius: var(--radius); font-size: 14px; outline: none; transition: border-color 0.15s;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }

/* ========== 标签 ========== */
.tag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 500; }
.tag-blue { background: var(--primary-light); color: var(--primary-dark); }
.tag-green { background: var(--success-light); color: #065f46; }
.tag-orange { background: var(--warning-light); color: #92400e; }
.tag-red { background: var(--danger-light); color: #991b1b; }
.tag-gray { background: var(--gray-100); color: var(--gray-700); }

/* ========== 登录页 ========== */
.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.login-box { background: #fff; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.2); padding: 40px; width: 400px; max-width: 90%; }
.login-box h1 { font-size: 22px; font-weight: 700; margin-bottom: 8px; text-align: center; }
.login-box .sub { font-size: 14px; color: var(--gray-500); text-align: center; margin-bottom: 32px; }
.login-box .alert { padding: 10px 14px; border-radius: var(--radius); margin-bottom: 16px; font-size: 13px; }
.login-box .alert-error { background: var(--danger-light); color: #991b1b; }
.login-box .btn { width: 100%; justify-content: center; padding: 10px; }
.login-tabs { display: flex; gap: 8px; margin-bottom: 24px; }
.login-tab {
  flex: 1;
  padding: 10px 0;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 8px;
  font-size: 14px;
  color: var(--gray-700);
  cursor: pointer;
  transition: all .15s ease;
}
.login-tab:hover { border-color: #c7d2fe; }
.login-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  font-weight: 600;
}

/* ========== 进度条 ========== */
.progress-bar { height: 8px; background: var(--gray-200); border-radius: 4px; overflow: hidden; }
.progress-bar .fill { height: 100%; background: var(--primary); border-radius: 4px; transition: width 0.3s; }
.progress-bar .fill.success { background: var(--success); }
.progress-bar .fill.warning { background: var(--warning); }

/* ========== 消息提示 ========== */
.flash-msg { padding: 10px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: 14px; }
.flash-success { background: var(--success-light); color: #065f46; }
.flash-error { background: var(--danger-light); color: #991b1b; }

/* ========== 空状态 ========== */
.empty-state { text-align: center; padding: 48px 20px; color: var(--gray-500); }
.empty-state .icon { font-size: 48px; margin-bottom: 12px; opacity: 0.3; }
.empty-state .title { font-size: 16px; font-weight: 500; margin-bottom: 4px; }

/* ========== 响应式 ========== */
@media (max-width: 768px) {
  .sidebar { width: 60px; }
  .sidebar-header h1, .sidebar-header .sub, .sidebar-nav a span, .sidebar-footer { display: none; }
  .main { margin-left: 60px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ========== v2 新增样式 ========== */
.page-header { margin-bottom: 20px; }
.page-header h2 { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.muted { color: var(--gray-500); font-size: 13px; }
.text-center { text-align: center; }

/* ========== 错题区 v2 样式 ========== */
.wrong-toolbar { padding: 16px 20px; margin-bottom: 20px; }
.wrong-toolbar .filter-bar { display: flex; align-items: flex-end; gap: 16px; }
.wrong-toolbar .filter-group { display: flex; flex-direction: column; gap: 6px; }
.wrong-toolbar .filter-group label { font-size: 12px; color: var(--gray-500); }
.wrong-toolbar .filter-actions { display: flex; gap: 8px; margin-left: auto; }

.wrong-stats .stat-card .stat-value { font-size: 32px; }

/* 试卷分组（手风琴） */
.paper-group {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  overflow: hidden;
}
.paper-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  cursor: pointer;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-100);
  transition: background 0.15s;
}
.paper-header:hover { background: var(--gray-100); }
.paper-title { display: flex; align-items: center; gap: 12px; }
.paper-title strong { font-size: 15px; color: var(--gray-900); font-weight: 600; }
.paper-count { font-size: 13px; color: var(--gray-500); }
.paper-badge { font-size: 12px; padding: 3px 8px; border-radius: 4px; }
.paper-toggle { font-size: 18px; color: var(--gray-500); transition: transform 0.2s; }
.paper-group.collapsed .paper-body { display: none; }
.paper-group.collapsed .paper-toggle { transform: rotate(-90deg); }

.paper-body { padding: 16px 20px 8px; }

/* 单题卡片 */
.wrong-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  background: #fff;
}
.wrong-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.question-index {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 50%;
  font-size: 13px; font-weight: 600;
}
.question-type-label { text-transform: none; }
.knowledge-tag { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.question-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--gray-900);
  margin-bottom: 12px;
  white-space: pre-wrap;
}

/* 选项 */
.options-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.option-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid var(--gray-200);
  background: #fff;
  font-size: 13px;
}
.option-label {
  flex-shrink: 0;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--gray-700);
  font-weight: 600;
  font-size: 12px;
}
.option-text { flex: 1; line-height: 1.5; color: var(--gray-800); }
.option-mark {
  flex-shrink: 0;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 500;
}
.mark-correct { background: var(--success-light); color: #065f46; }
.mark-wrong { background: var(--danger-light); color: #991b1b; }

.option-item.option-correct {
  border-color: var(--success);
  background: var(--success-light);
}
.option-item.option-correct .option-label {
  background: var(--success);
  color: #fff;
}
.option-item.option-wrong {
  border-color: var(--danger);
  background: var(--danger-light);
}
.option-item.option-wrong .option-label {
  background: var(--danger);
  color: #fff;
}

/* 答案摘要 */
.answer-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.answer-box {
  flex: 1;
  min-width: 160px;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 13px;
}
.answer-label { font-size: 12px; color: var(--gray-500); margin-bottom: 4px; }
.answer-value { font-weight: 500; color: var(--gray-900); word-break: break-all; }
.answer-wrong { background: var(--danger-light); }
.answer-correct { background: var(--success-light); }

/* 空状态 */
#empty-state { display: block; }

@media (max-width: 768px) {
  .wrong-toolbar .filter-bar { flex-direction: column; align-items: stretch; }
  .wrong-toolbar .filter-actions { margin-left: 0; justify-content: flex-start; }
  .answer-row { flex-direction: column; }
}

.no-pad { padding: 0; }
.nav-top { font-weight: 600; }

/* 导图 */
.overview-map { margin: 20px 0; }
.map-center { text-align: center; margin-bottom: 24px; }
.map-core { display: inline-block; background: var(--primary); color: #fff; padding: 12px 32px; border-radius: 24px; font-size: 16px; font-weight: 600; }
.map-branches { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.map-branch { background: #fff; border-radius: 12px; padding: 20px; box-shadow: var(--shadow); }
.branch-blue { border-top: 3px solid #3b82f6; }
.branch-teal { border-top: 3px solid #14b8a6; }
.branch-amber { border-top: 3px solid #f59e0b; }
.branch-purple { border-top: 3px solid #8b5cf6; }
.branch-rose { border-top: 3px solid #f43f5e; }
.map-branch .branch-title { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.map-branch ul { list-style: none; margin-bottom: 12px; }
.map-branch ul li { font-size: 13px; padding: 0; border-bottom: 1px solid var(--gray-100); }
.feature-list li { padding: 0 !important; }
.feature-link { display: block; padding: 10px 8px; color: var(--gray-800); text-decoration: none; border-radius: 6px; transition: background 0.15s ease; }
.feature-link:hover { background: var(--gray-50); color: var(--primary); }
.feature-link .muted { color: var(--gray-500); font-size: 12px; }
.branch-links { display: flex; flex-wrap: wrap; gap: 6px; }

/* 卡片区 */
.card-section { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 16px; }
.zone-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(440px, 1fr)); gap: 16px; align-items: start; }
.zone-card { border-top: 3px solid var(--gray-300); }
.zone-common { border-top-color: #3b82f6; }
.zone-personal { border-top-color: #f59e0b; }
.zone-badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; margin-right: 8px; vertical-align: middle; }
.badge-common { background: #e8f1ff; color: #1d4ed8; }
.badge-personal { background: #fff3e0; color: #b45309; }
.card-body { padding: 0; }
.card-body:not(.no-pad) { padding: 0; }

/* 信息横幅 */
.info-banner { background: var(--primary-light); border-radius: var(--radius); padding: 12px 16px; margin: 16px 0; font-size: 13px; color: var(--primary-dark); }
.info-banner .badge { margin-right: 8px; }

/* 标签页 */
.tabs { display: flex; gap: 0; border-bottom: 2px solid var(--gray-200); margin-bottom: 20px; }
.tab { padding: 10px 20px; border: none; background: none; cursor: pointer; font-size: 14px; color: var(--gray-500); border-bottom: 2px solid transparent; margin-bottom: -2px; }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 500; }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* 表单行 */
.form-row { display: flex; gap: 16px; }
.form-row .form-group { flex: 1; }

/* 上传区 */
.upload-area { border: 2px dashed var(--gray-300); border-radius: var(--radius); padding: 30px; text-align: center; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.upload-area:hover { border-color: var(--primary); }
.upload-area.dragover { border-color: var(--primary); background: var(--primary-50, #eef4ff); }
.upload-area p { font-size: 14px; color: var(--gray-700); margin-bottom: 4px; }

/* 文件上传列表 */
.file-list { display: flex; flex-direction: column; gap: 8px; }
.file-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--gray-200); border-radius: 8px; background: #fff; }
.file-thumb { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 6px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--gray-50); }
.file-thumb img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.file-thumb .file-icon { font-size: 22px; }
.file-meta { flex: 1; min-width: 0; }
.file-name { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-actions { display: flex; gap: 6px; flex: 0 0 auto; }

/* 过滤栏 */
.filter-bar { display: flex; gap: 12px; margin-bottom: 16px; align-items: center; }

/* 数据表格 */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { text-align: left; padding: 10px 12px; font-size: 13px; color: var(--gray-500); font-weight: 500; border-bottom: 2px solid var(--gray-200); background: var(--gray-50); }
.data-table td { padding: 10px 12px; font-size: 14px; border-bottom: 1px solid var(--gray-100); }

/* 徽章 */
.badge { display: inline-block; padding: 2px 8px; border-radius: 12px; font-size: 12px; font-weight: 500; }
.badge-info { background: var(--primary-light); color: var(--primary-dark); }
.badge-success { background: var(--success-light); color: #065f46; }
.badge-warning { background: var(--warning-light); color: #92400e; }
.badge-danger { background: var(--danger-light); color: #991b1b; }
.badge-muted { background: var(--gray-100); color: var(--gray-500); }

/* 阶段列表（学习计划） */
.phase-list { display: flex; flex-direction: column; gap: 20px; }
.phase-item { background: #fff; border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.phase-item.locked { opacity: 0.6; }
.phase-header { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: var(--gray-50); border-bottom: 1px solid var(--gray-200); }
.phase-badge { background: var(--primary); color: #fff; padding: 4px 12px; border-radius: 12px; font-size: 13px; font-weight: 500; }
.phase-badge.muted { background: var(--gray-300); color: var(--gray-500); }
.phase-title { font-size: 15px; font-weight: 600; }
.phase-title.muted { color: var(--gray-500); }
.phase-status { margin-left: auto; }

/* 课程项 */
.course-list { padding: 8px 0; }
.course-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--gray-100); }
.course-item:last-child { border-bottom: none; }
.course-item.locked { opacity: 0.5; }
.course-info { display: flex; align-items: center; gap: 12px; }
.course-name { font-size: 14px; }
.course-status { margin-left: 8px; }
.course-actions { display: flex; align-items: center; gap: 8px; }
.course-assess { font-size: 13px; color: var(--gray-500); }

/* 迎新区 */
.welcome-page { max-width: 800px; margin: 0 auto; }
.welcome-hero { text-align: center; padding: 40px 20px; background: linear-gradient(135deg, var(--primary-light), #fff); border-radius: 12px; margin-bottom: 20px; }
.welcome-hero h2 { font-size: 24px; font-weight: 700; margin-bottom: 12px; }
.welcome-desc { font-size: 15px; color: var(--gray-700); line-height: 1.8; text-align: left; }
.assess-mode-line { margin: 10px 0 4px; padding: 8px 12px; background: #fff3e0; border-radius: 6px; color: #b45309; font-size: 14px; }
.confirm-box { text-align: center; padding: 30px; }
.btn-lg { padding: 12px 32px; font-size: 16px; }
.welcome-phase-list { display: flex; flex-direction: column; gap: 16px; }
.welcome-phase { border: 1px solid var(--gray-200); border-radius: 10px; padding: 18px; background: var(--gray-50); }
.welcome-phase .phase-title { font-size: 16px; font-weight: 600; margin-bottom: 8px; color: var(--gray-900); }
.welcome-phase .phase-desc { font-size: 14px; color: var(--gray-700); margin-bottom: 12px; line-height: 1.6; }
.welcome-phase .phase-courses, .welcome-phase .phase-assessments { margin-top: 10px; }
.welcome-phase ul { margin: 6px 0 0 18px; padding: 0; color: var(--gray-800); font-size: 14px; }
.welcome-phase li { margin: 6px 0; line-height: 1.5; }
.welcome-phase .badge { font-size: 12px; padding: 2px 8px; margin-left: 6px; background: var(--primary-light); color: var(--primary); border-radius: 4px; }
.welcome-phase .small { font-size: 13px; font-weight: 500; margin-bottom: 4px; }

/* 阈值规则 */
.threshold-rules { padding: 16px; background: var(--gray-50); border-radius: var(--radius); margin-bottom: 12px; }
.threshold-rules ul { list-style: none; padding-left: 0; }
.threshold-rules ul li { padding: 6px 0; font-size: 14px; }

/* 统计网格 */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat-item { background: var(--gray-50); border-radius: var(--radius); padding: 16px; text-align: center; }
.stat-label { font-size: 13px; color: var(--gray-500); }

/* 按钮 */
.btn { background: var(--gray-100); color: var(--gray-700); }
.btn-primary { background: var(--primary); color: #fff; }
.btn:hover { opacity: 0.9; }

/* ========== 学习营体验入口 ========== */
.nav-camp-entry {
  margin: 4px 12px !important;
  padding: 10px 14px !important;
  background: var(--success) !important;
  color: #fff !important;
  border-radius: var(--radius);
  font-weight: 600 !important;
  box-shadow: 0 2px 6px rgba(16,185,129,0.35);
}
.nav-camp-entry:hover { background: #0ea371 !important; color: #fff !important; text-decoration: none; }
.nav-camp-entry .icon { width: 18px; text-align: center; }

/* 体验中：返回管理后台 */
.nav-return-admin {
  margin: 4px 12px 12px !important;
  padding: 9px 14px !important;
  background: rgba(255,255,255,0.08) !important;
  color: #fde68a !important;
  border: 1px solid rgba(245,158,11,0.5) !important;
  border-radius: var(--radius);
  font-weight: 600 !important;
}
.nav-return-admin:hover { background: rgba(245,158,11,0.18) !important; color: #fde68a !important; text-decoration: none; }
.nav-return-admin .icon { width: 18px; text-align: center; }

/* 体验模式提示横幅 */
.camp-preview-banner {
  background: var(--warning-light);
  border: 1px solid #fcd34d;
  color: #92400e;
  border-radius: var(--radius);
  padding: 10px 16px;
  margin-bottom: 16px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.camp-preview-banner a { color: #b45309; font-weight: 600; }
