* { box-sizing: border-box; }
body {
  margin: 0; font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: #f5f7fb; color: #1f2733;
}
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px; background: #0f2a4a; color: #fff; gap: 12px;
  flex-wrap: wrap;   /* 窄屏时录入区换行到品牌下方 */
}
.brand { font-size: 17px; font-weight: 700; white-space: nowrap; flex: 0 0 auto; }
.ver-badge {
  font-size: 12px; font-weight: 700; color: #fff; background: #2f80ed;
  padding: 2px 9px; border-radius: 20px; margin-left: 8px; letter-spacing: .5px;
  vertical-align: middle;
}
.engine-badge {
  font-size: 12.5px; padding: 4px 10px; border-radius: 20px; white-space: nowrap;
  margin-left: 16px; border: 1px solid transparent;
}
.engine-badge.on { background: rgba(46,160,67,.16); color: #5dd879; border-color: rgba(46,160,67,.4); }
.engine-badge.off { background: rgba(255,196,0,.14); color: #ffce4d; border-color: rgba(255,196,0,.35); }
.meta { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
/* 录入区右侧的操作按钮组：确认生成 / 全部清空 / 一键全生成 */
.top-actions { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; padding-left: 10px; border-left: 1px solid #2b4d75; }
/* 提示语紧贴「专业大类」左侧，同一行显示 */
.meta-hint { font-size: 12.5px; color: #ffce4d; font-weight: 600; margin: 0; white-space: nowrap; }
.meta label { font-size: 12.5px; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.meta .lb { color: #c7d6e8; }
/* 按钮已全部移到导航条末尾，顶栏只留下拉框，这里放宽下拉宽度更易读 */
/* 一键生成全部：比「确认生成」更重的强调色（琥珀），一眼可辨 */
button.primary-dark {
  background: linear-gradient(135deg, #f5a623, #ef8b17); color: #2a1a00;
  border: none; padding: 5px 12px; border-radius: 7px; cursor: pointer;
  font-size: 12.5px; font-weight: 700; white-space: nowrap;
  box-shadow: 0 1px 4px rgba(239, 139, 23, .35);
}
button.primary-dark:hover:not(:disabled) { background: linear-gradient(135deg, #ffb43c, #f59a24); }
button.primary-dark:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }
.ghost-light:disabled { opacity: .4; cursor: not-allowed; }
.ghost-light {
  background: transparent; color: #d6e2f0; border: 1px solid rgba(214,226,240,.45);
  border-radius: 7px; padding: 5px 11px; font-size: 12.5px; cursor: pointer;
}
.ghost-light:hover { background: rgba(214,226,240,.14); color: #fff; }
.meta input {
  background: #15355c; border: 1px solid #2b4d75; color: #fff;
  padding: 5px 8px; border-radius: 6px; font-size: 13px; width: 160px;
}
.meta select {
  background: #15355c; border: 1px solid #2b4d75; color: #fff;
  padding: 5px 8px; border-radius: 6px; font-size: 12.5px;
  width: 126px; max-width: 126px;
}
.meta select#major { width: 182px; max-width: 182px; }
.meta select option { background: #15355c; color: #fff; }

/* ===== 整体布局：左侧纵向功能导航 + 右侧内容区 ===== */
.layout {
  display: flex; align-items: stretch; gap: 0;
  max-width: 1720px; margin: 0 auto;
  min-height: calc(100vh - 60px);
}
/* 左侧纵向功能导航（5 个步骤） */
.sidenav {
  flex: 0 0 212px; width: 212px; align-self: stretch;
  background: #0f2a4a; color: #fff;
  padding: 14px 12px; position: sticky; top: 0;
}
.sidenav .modules {
  display: flex; flex-direction: column; gap: 6px;
  list-style: none; margin: 0; padding: 0;
}
.sidenav .module {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 14px; cursor: pointer; user-select: none;
  color: #9fb6d4; font-size: 13.5px; white-space: nowrap;
  border-left: 3px solid transparent; border-radius: 8px;
  transition: background .15s, color .15s, border-color .15s;
}
.sidenav .module .m-name { overflow: hidden; text-overflow: ellipsis; }
.sidenav .module:hover { background: #15355c; color: #e3edf9; }
.sidenav .module.active {
  color: #fff; background: #15355c; border-left-color: #2f80ed; font-weight: 700;
}
.sidenav .module .m-idx { background: #2b4d75; color: #9fb6d4; }
.sidenav .module.active .m-idx { background: #2f80ed; color: #fff; }
.sidenav .module.done .m-idx { background: #27ae60; color: #fff; }
.sidenav .module.done .m-name { color: #cfe0f3; }
/* 未解锁步骤：灰显 + 锁标记 + 不可点击 */
.sidenav .module.locked { opacity: .5; cursor: not-allowed; filter: grayscale(.35); }
.sidenav .module.locked:hover { background: transparent; color: inherit; }
.sidenav .module.locked .m-idx { background: #6b7d94; color: #d7dee8; }
.sidenav .module.locked .m-name { color: #aebccd; }

/* 窄屏：侧栏移到顶部，菜单横向排列，避免挤占内容宽度 */
@media (max-width: 1080px) {
  .layout { flex-direction: column; min-height: 0; }
  .sidenav { flex: 0 0 auto; width: 100%; position: static; padding: 10px 12px; }
  .sidenav .modules { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .sidenav .module {
    flex: 1 1 auto; justify-content: center;
    border-left: none; border-bottom: 3px solid transparent;
  }
  .sidenav .module.active { border-left: none; border-bottom-color: #2f80ed; }
}
.module:hover { background: #15355c; color: #e3edf9; }
.module.active {
  color: #fff; background: #15355c; border-bottom-color: #2f80ed; font-weight: 700;
}
/* 链路前的上游小节（需求分析）与主链之间加分隔 */
.mod-sep {
  flex: 0 0 auto; align-self: center; width: 1px; height: 20px;
  background: #2b4d75; margin: 0 6px;
}
.m-idx {
  width: 20px; height: 20px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; background: #2b4d75; color: #9fb6d4;
  transition: .15s;
}
.module.active .m-idx { background: #2f80ed; color: #fff; }
.module.done .m-idx { background: #27ae60; color: #fff; }
.module.done .m-name { color: #cfe0f3; }
.mod-up .m-idx { background: #3d5c85; }

/* 内容区：占满侧栏右侧剩余宽度 */
.stage { flex: 1 1 auto; min-width: 0; margin: 18px 22px; padding: 0; }
.stage-head { display: flex; align-items: center; gap: 12px; }
.step-no {
  width: 34px; height: 34px; border-radius: 50%; background: #2f80ed; color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.stage-head h2 { margin: 0; font-size: 20px; }
.stage-desc { color: #5a6b80; margin: 8px 0 16px; }

/* ===== 左右并排：左=生成内容，右=关系网络图 ===== */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.split.no-graph { grid-template-columns: minmax(0, 1fr); }
/* 第 1 步（知识图谱）：隐藏左侧「生成内容」卡片，右侧关系网络图占满整宽 */
.split.hide-left { grid-template-columns: minmax(0, 1fr); }
.split.hide-left .panel-left { display: none; }
/* 第 2 步（课程体系）：已改为隐藏左栏 + 课程体系结构图整宽展示，不再需要双栏 curric-mode 布局 */
/* 窄屏降级为上下堆叠 */
@media (max-width: 1080px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .panel-right { position: static; }
  .meta { flex-wrap: wrap; }
}
.panel {
  background: #fff; border: 1px solid #e3e9f2; border-radius: 12px; padding: 14px 16px;
  box-shadow: 0 1px 3px rgba(15, 42, 74, .04);
}
.panel-right { display: flex; flex-direction: column; position: sticky; top: 12px; }
.panel .col-title {
  font-size: 13.5px; font-weight: 700; color: #24466f; margin-bottom: 10px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid #eef1f6; padding-bottom: 8px;
}

.upstream { background: #eef3fa; border: 1px dashed #c5d4e8; border-radius: 8px; padding: 10px 14px; margin-bottom: 14px; }
.upstream-title { font-size: 12px; color: #6b7d94; margin-bottom: 6px; }
.upstream pre { margin: 0; white-space: pre-wrap; font-size: 13px; color: #34465c; max-height: 160px; overflow: auto; }

.work { display: grid; grid-template-columns: 1fr; gap: 16px; }
.col { background: #fff; border: 1px solid #e3e9f2; border-radius: 10px; padding: 14px; }
.col-title { font-size: 13.5px; font-weight: 700; color: #24466f; margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; }
textarea {
  width: 100%; height: 300px; resize: vertical; border: 1px solid #d6deea;
  border-radius: 8px; padding: 10px; font-size: 14px; line-height: 1.6; font-family: inherit;
}
.actions { margin-top: 10px; display: flex; gap: 10px; }
button.primary { background: #2f80ed; color: #fff; border: none; padding: 9px 18px; border-radius: 8px; cursor: pointer; font-size: 14px; }
button.primary:hover { background: #2670d4; }
button.primary:disabled { opacity: .6; cursor: default; }
button { background: #eef2f8; color: #2a3a50; border: 1px solid #d3dce8; padding: 9px 16px; border-radius: 8px; cursor: pointer; font-size: 14px; }
button.ghost { background: transparent; color: #dce8f7; border-color: #2b5689; }

.output { min-height: 420px; max-height: 76vh; border: 1px solid #eef1f6; border-radius: 8px;
  padding: 14px 16px; font-size: 14px; line-height: 1.75; background: #fbfcfe;
  overflow: auto; white-space: normal; }
.output:empty::before { content: "该步骤尚未生成，选择菜单后点右上角「确认生成」开始。"; color: #98a2b3; }
.output h1, .output h2, .output h3 { margin: 10px 0 6px; }
.output h1 { font-size: 18px; } .output h2 { font-size: 15px; color: #2f80ed; }
.output ul { margin: 4px 0; padding-left: 20px; } .output li { margin: 3px 0; }
.output code { background: #eef2f8; padding: 1px 5px; border-radius: 4px; }

/* 右栏关系网络图 */
.graph-wrap { margin: 0; background: #fff; border: 1px solid #e3e9f2; border-radius: 12px; padding: 14px 16px;
  box-shadow: 0 1px 3px rgba(15, 42, 74, .04); }
.mm-tools { display: inline-flex; gap: 6px; font-weight: 400; }
.mindmap { overflow: auto; min-height: 420px; max-height: 76vh; background: #fbfcfe;
  border-radius: 8px; border: 1px solid #eef1f6; }
.mm-svg { display: block; }
.mm-link { fill: none; stroke-width: 1.6; opacity: .5; }
.mm-node text { font-family: "PingFang SC", "Microsoft YaHei", sans-serif; }
.mm-node.mm-root rect { filter: drop-shadow(0 2px 4px rgba(15,42,74,.25)); }
.mm-node.mm-l1 rect { filter: drop-shadow(0 1px 2px rgba(0,0,0,.06)); }
.mm-node.mm-l2 rect { filter: drop-shadow(0 1px 2px rgba(0,0,0,.04)); }

.foot { max-width: 1100px; margin: 10px auto 30px; padding: 0 18px; display: flex; justify-content: space-between; align-items: center; color: #6b7d94; font-size: 13px; }
@media (max-width: 820px) { .work { grid-template-columns: 1fr; } .meta { display: none; } }

/* 导出栏（第 5/6/7 步产出区） */
.export-bar { display: inline-flex; gap: 6px; }
button.mini {
  background: #eaf2fd; color: #2f80ed; border: 1px solid #bcd7f5;
  padding: 3px 10px; border-radius: 6px; cursor: pointer; font-size: 12px; white-space: nowrap;
}
button.mini:hover { background: #2f80ed; color: #fff; border-color: #2f80ed; }

/* 步骤控制条：位于内容区标题行右侧（上一步 / 已完成 / 下一步） */
.stage-nav { margin-left: auto; display: flex; align-items: center; gap: 8px; }
button.nav-step {
  background: #eef2f8; color: #2a3a50; border: 1px solid #d3dce8;
  padding: 6px 14px; border-radius: 18px; cursor: pointer; font-size: 13px; white-space: nowrap;
}
button.nav-step:hover:not(:disabled) { background: #2f80ed; color: #fff; border-color: #2f80ed; }
button.nav-step:disabled { opacity: .4; cursor: default; }
.nav-count {
  font-size: 12px; color: #2f80ed; background: #eaf2fd;
  padding: 4px 11px; border-radius: 20px; white-space: nowrap;
}

/* 需求分析结构化表单 */
.req-form { display: flex; flex-direction: column; gap: 10px; }
.req-major { font-size: 13px; color: #2a3a50; background: #eef3fa; border: 1px dashed #c5d4e8; border-radius: 8px; padding: 8px 12px; }
.req-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #44566e; }
.req-field textarea { width: 100%; resize: vertical; border: 1px solid #d6deea; border-radius: 8px; padding: 8px; font-size: 13.5px; line-height: 1.5; font-family: inherit; min-height: 54px; }
.req-field textarea:focus { outline: none; border-color: #2f80ed; }

/* 第 5 步知识点自动派生导航清单 */
.kp-wrap { margin-top: 16px; background: #fff; border: 1px solid #e3e9f2; border-radius: 10px; padding: 14px; }
.kp-count { font-size: 12px; color: #2f80ed; background: #eaf2fd; padding: 2px 10px; border-radius: 12px; margin-left: 8px; }
.kp-body { display: grid; grid-template-columns: 280px 1fr; gap: 16px; }
.kp-menu { list-style: none; margin: 0; padding: 0; max-height: 360px; overflow: auto; border-right: 1px solid #eef1f6; }
.kp-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; cursor: pointer; font-size: 14px; color: #34465c; }
.kp-item:hover { background: #f0f5fc; }
.kp-item.sel { background: #2f80ed; color: #fff; }
.kp-idx { width: 22px; height: 22px; border-radius: 50%; background: #2b4d75; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.kp-item.sel .kp-idx { background: #fff; color: #2f80ed; }
.kp-detail { padding: 6px 4px; }
.kp-hint { color: #6b7d94; font-size: 14px; }
.kp-dtitle { font-size: 17px; font-weight: 700; color: #1f2733; margin-bottom: 10px; }
.kp-sub { font-size: 14px; color: #34465c; margin: 8px 0; line-height: 1.7; }
.kp-tip { color: #8195ac; font-size: 12.5px; border-top: 1px dashed #e3e9f2; padding-top: 10px; margin-top: 14px; }
@media (max-width: 820px) { .kp-body { grid-template-columns: 1fr; } .kp-menu { border-right: none; border-bottom: 1px solid #eef1f6; } }

/* 第 8 步：课程体系结构图 + 教学进程表 */
.curriculum-wrap { margin-top: 16px; background: #fff; border: 1px solid #e3e9f2; border-radius: 10px; padding: 14px; }
.cur-tip { font-size: 12px; color: #8195ac; font-weight: 400; margin-left: 8px; }
.curriculum-chart { display: flex; flex-direction: column; gap: 12px; }
.cur-module {
  border-left: 4px solid #2f80ed; background: #fbfcfe; border-radius: 0 8px 8px 0;
  padding: 10px 14px; border-top: 1px solid #eef1f6; border-right: 1px solid #eef1f6; border-bottom: 1px solid #eef1f6;
}
.cur-mod-name { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.cur-courses { display: flex; flex-wrap: wrap; gap: 8px; }
.cur-course {
  font-size: 13px; background: #fff; border: 1px solid #d3dce8; border-radius: 6px;
  padding: 4px 10px; color: #34465c;
}
.cur-empty { color: #8195ac; font-size: 13px; }
/* 课程体系：可勾选的课程名称条目 */
.cur-courses { display: flex; flex-wrap: wrap; gap: 8px; }
.cur-course-sel {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer;
  background: #fff; border: 1px solid #d3dce8; border-radius: 6px; padding: 5px 11px; user-select: none;
  transition: border-color .15s, background .15s, color .15s;
}
.cur-course-sel:hover { border-color: var(--cc, #2f80ed); }
.cur-course-sel.on { background: var(--cc, #2f80ed); color: #fff; border-color: var(--cc, #2f80ed); }
.cur-course-sel input { accent-color: var(--cc, #2f80ed); cursor: pointer; margin: 0; }
.cur-course-name { line-height: 1.2; }
.cur-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 16px; padding-top: 12px; border-top: 1px dashed #e3e9f2;
}
.cur-foot-count { font-size: 13.5px; color: #34465c; }
.cur-foot-count b { color: #2f80ed; }

/* 课程体系·阶段一：仅展示已选岗位 + 自动生成按钮 */
.cur-stage1 { display: flex; flex-direction: column; gap: 14px; padding: 6px 2px; }
.cur-stage1-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.cur-stage1-title { font-size: 16px; font-weight: 700; color: #0f2a4a; }
.cur-stage1-tip { font-size: 13px; color: #8195ac; }
.cur-stage1-jobs { display: flex; flex-wrap: wrap; gap: 8px; }

/* 各步骤顶部常驻：已选课程名称清单 */
.sel-courses { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 14px; }
.sc-label { font-size: 13px; color: #34465c; font-weight: 600; white-space: nowrap; }
.sc-chip {
  font-size: 12.5px; background: #eaf2fd; color: #2f80ed; border: 1px solid #bcd7f5;
  border-radius: 14px; padding: 3px 12px; white-space: nowrap;
}
.schedule-table table.sch-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sch-table th, .sch-table td { border: 1px solid #e3e9f2; padding: 9px 12px; text-align: left; }
.sch-table thead th { background: #0f2a4a; color: #fff; font-weight: 600; }
.sch-table tbody tr:nth-child(even) { background: #f7f9fc; }
.sch-term { font-weight: 600; color: #2f80ed; white-space: nowrap; }
.sch-num { text-align: center; color: #5a6b80; }
.sch-empty { text-align: center; color: #8195ac; padding: 16px; }

/* ===== V2.0 新增：岗位对标（自动第一步） ===== */
.jobs-wrap {
  background: #fff; border: 1px solid #e3e9f2; border-radius: 10px;
  padding: 14px 16px; margin: 12px 0 16px;
}
.jobs-tools { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; }
.jobs-status { font-size: 12.5px; color: #2f80ed; }
/* 岗位对标内容统一收进一个有边界的「框」内：
   - 有独立底框与圆角，与上方步骤内容框风格一致；
   - 限高 + 内部滚动，长表格不会一路撑下去；
   - 横向溢出在框内滚动，绝不超出卡片。 */
.jobs-body {
  margin-top: 10px;
  border: 1px solid #e8eef7; border-radius: 10px; background: #fbfcfe;
  padding: 12px 14px;
  max-height: 68vh; overflow: auto;
  font-size: 13.5px; line-height: 1.7;
}
.jobs-body:empty { display: none; }
/* 表格自身的横向兜底：列宽受限、宽表在框内滚动 */
.jobs-table-box { width: 100%; max-width: 100%; overflow-x: auto; }
.jobs-table-title { font-size: 13.5px; font-weight: 700; color: #0f2a4a; margin: 6px 0 8px; }
table.jobs-table {
  width: 100%; max-width: 100%; table-layout: fixed;
  border-collapse: collapse; font-size: 13.5px; margin-bottom: 8px;
}
.jobs-table th {
  background: #0f2a4a; color: #fff; border: 1px solid #5a6b80;
  padding: 8px 10px; text-align: left; font-weight: 600;
}
.jobs-table td {
  border: 1px solid #d3dce8; padding: 7px 10px; vertical-align: top;
  overflow-wrap: anywhere; word-break: break-word; line-height: 1.65;
}
.jobs-table tbody tr:nth-child(even) { background: #f7f9fc; }
.jobs-table .jt-job { font-weight: 600; color: #24466f; }
/* 岗位对标：岗位名称可勾选（课程体系将只依据所勾选岗位推导） */
.jt-job-sel {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer;
  background: #fff; border: 1px solid #d3dce8; border-radius: 6px;
  padding: 2px 9px; margin: 0; user-select: none;
  transition: border-color .15s, background .15s, color .15s;
}
.jt-job-sel:hover { border-color: #27ae60; }
.jt-job-sel.on { background: #27ae60; color: #fff; border-color: #27ae60; }
.jt-job-sel input { accent-color: #27ae60; cursor: pointer; margin: 0; }
.jt-job-name { line-height: 1.2; }

/* ===== 提示条 ===== */
.notice {
  border-radius: 8px; padding: 10px 14px; margin: 10px 0 14px;
  font-size: 13.5px; line-height: 1.7; border: 1px solid #d3dce8; background: #f7f9fc;
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
}
.notice.ok { background: #eefaf3; border-color: #a8e0c2; color: #1c6b42; }
.notice.warn { background: #fff8e8; border-color: #f2d68a; color: #8a6100; }
.notice .mini { margin-left: 4px; }

/* 生成失败 / 未启用真实大模型的透明提示横幅（原因 + 建议） */
.gen-notice {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 9999;
  max-width: 700px; width: calc(100% - 32px);
  border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.18);
  font-size: 13.5px; line-height: 1.6; animation: gnIn .18s ease-out;
}
.gen-notice.gen-err { background: #fff4f4; border: 1px solid #f0b0b0; color: #8a1f1f; }
.gen-notice.gen-hint { background: #f2f8ff; border: 1px solid #b6d2f2; color: #1f4f8a; }
.gn-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; font-weight: 700; border-bottom: 1px solid rgba(0,0,0,.07);
}
.gn-close { background: transparent; border: none; font-size: 15px; line-height: 1; cursor: pointer; color: inherit; opacity: .6; padding: 2px 6px; }
.gn-close:hover { opacity: 1; }
.gn-body { padding: 10px 14px; max-height: 60vh; overflow: auto; }
.gn-step { padding: 7px 0; border-bottom: 1px dashed rgba(0,0,0,.10); }
.gn-step:last-child { border-bottom: none; }
.gn-step-name { font-weight: 700; margin-bottom: 2px; }
.gn-row { display: flex; gap: 8px; margin-top: 2px; }
.gn-row > b { flex: 0 0 40px; opacity: .85; }
.gn-row > span { flex: 1; }
@keyframes gnIn { from { opacity: 0; transform: translate(-50%, -8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ===== V2.0 新增：独立选课页 ===== */
.pick-page { padding: 4px 0 24px; }
.pick-head { margin-bottom: 16px; }
.pick-h2 { margin: 0 0 8px; font-size: 20px; color: #0f2a4a; }
.pick-sub { margin: 0; color: #5a6b80; font-size: 13.5px; line-height: 1.8; }
.pick-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: #0f2a4a; color: #fff; border-radius: 10px;
  padding: 12px 16px; margin-bottom: 16px; position: sticky; top: 0; z-index: 20;
}
.pick-bar .pick-count { font-size: 14px; font-weight: 700; }
.pick-bar-btns { margin-left: auto; display: inline-flex; gap: 8px; flex-wrap: wrap; }
.pick-bar .mini { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.3); }
.pick-bar .mini:hover { background: rgba(255,255,255,.24); }
.pick-bar .primary { background: #2f80ed; border-color: #2f80ed; }
.pick-bar .primary:hover { background: #1f6fd6; }

.pick-list { display: flex; flex-direction: column; gap: 14px; }
.pick-module {
  background: #fff; border: 1px solid #e3e9f2; border-left: 4px solid var(--mc, #2f80ed);
  border-radius: 0 10px 10px 0; padding: 12px 16px;
}
.pick-mod-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.pick-mod-name { font-size: 15px; font-weight: 700; }
.pick-mod-count { font-size: 12.5px; color: #8195ac; }
.pick-mod-all { margin-left: auto; }
.pick-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.pick-item {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  border: 1px solid #e3e9f2; border-radius: 8px; padding: 8px 12px;
  font-size: 13.5px; color: #34465c; background: #fbfcfe; transition: all .12s;
}
.pick-item:hover { border-color: var(--mc, #2f80ed); background: #f4f8ff; }
.pick-item.on { background: #eef4ff; border-color: var(--mc, #2f80ed); color: #14406e; font-weight: 600; }
.pick-item input { width: 16px; height: 16px; accent-color: #2f80ed; cursor: pointer; flex: 0 0 auto; }
.pick-name { overflow: hidden; text-overflow: ellipsis; }
.pick-empty, .pick-empty-s { color: #8195ac; font-size: 13.5px; padding: 12px; }
.pick-foot { margin-top: 20px; display: flex; justify-content: center; }

/* 六类课程门数小标 */
.cur-mod-n { font-size: 12px; color: #8195ac; font-weight: 400; margin-left: 8px; }

/* ===== V2.2 新增：一键生成进度条（悬浮在底部） ===== */
.genbar {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%);
  z-index: 90; display: flex; align-items: center; gap: 12px;
  min-width: min(680px, calc(100vw - 48px)); max-width: calc(100vw - 48px);
  background: #0f2a4a; color: #fff; border-radius: 12px;
  padding: 12px 18px; box-shadow: 0 8px 26px rgba(15, 42, 74, .3);
  border: 1px solid #2b4d75;
}
.genbar .gb-icon { font-size: 17px; flex: 0 0 auto; }
.genbar .gb-text {
  font-size: 13.5px; flex: 1 1 auto; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.genbar .gb-bar {
  flex: 0 0 170px; height: 6px; background: rgba(255,255,255,.18);
  border-radius: 6px; overflow: hidden;
}
.genbar .gb-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg,#f5a623,#ffd166); transition: width .4s ease; }
.genbar .gb-time { font-size: 12.5px; color: #9fb6d4; flex: 0 0 auto; font-variant-numeric: tabular-nums; }
@media (max-width: 820px) {
  .genbar { flex-wrap: wrap; }
  .genbar .gb-bar { flex: 1 1 100%; }
}

/* ===== 页面内生成进度面板（单步生成：知识图谱 / 课程体系 / 课程开发） ===== */
.gen-progress {
  display: flex; align-items: center; gap: 14px; margin: 8px 0 16px;
  padding: 14px 16px; background: #fff; border: 1px solid #e3e9f2; border-radius: 10px;
  box-shadow: 0 2px 10px rgba(47,128,237,.06);
}
.gen-progress .gp-bar { flex: 1 1 auto; height: 12px; background: #eef2f8; border-radius: 8px; overflow: hidden; }
.gen-progress .gp-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg,#2f80ed,#56c2ff); transition: width .3s ease; }
.gen-progress .gp-meta { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.gen-progress .gp-pct { font-size: 15px; font-weight: 700; color: #2f80ed; font-variant-numeric: tabular-nums; min-width: 46px; text-align: right; }
.gen-progress .gp-text { font-size: 13.5px; color: #51688a; max-width: 340px; }
.gen-progress.done .gp-bar i { background: linear-gradient(90deg,#27ae60,#5fd39a); }
.gen-progress.done .gp-pct { color: #1c6b42; }

/* ===== 课程开发（第 3 步）专属内容区 ===== */
.course-dev-wrap { margin-top: 16px; background: #fff; border: 1px solid #e3e9f2; border-radius: 10px; padding: 16px; }
.cd-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.cd-title { font-size: 17px; font-weight: 700; color: #1f3a5f; }
.cd-courses { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.cd-course { background: #eef4ff; color: #2f5fb0; border: 1px solid #cfe0ff; border-radius: 999px; padding: 5px 12px; font-size: 13.5px; }
/* V2.24：课程开发页「技能调用」徽标 */
.cd-skilltag { display: inline-block; vertical-align: 2px; margin-left: 10px;
  background: #f0f7ff; color: #2f6fb0; border: 1px dashed #9cc3ec; border-radius: 999px;
  padding: 3px 10px; font-size: 12px; font-weight: 600; }
/* V2.24：单元格内嵌 Markdown 表格（技能模板的前导/后续、三维目标等表格） */
.cd-table-inner { width: 100%; margin: 8px 0; border-collapse: collapse; font-size: 13px; }
.cd-table-inner th, .cd-table-inner td { border: 1px solid #d8e2ef; padding: 6px 10px;
  text-align: left; vertical-align: top; line-height: 1.6; }
.cd-table-inner th { background: #f0f6ff; color: #1f3a5f; white-space: nowrap; }
.cd-empty { color: #8aa0bf; font-size: 14px; padding: 8px 0; }
.cd-hint { font-size: 12px; font-weight: 400; color: #7a8aa0; }
/* V2.27：快速课程开发输入条 */
.quick-dev-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 18px; background: #f3f8ff; border-bottom: 1px solid #dde8f5; font-size: 13.5px; }
.quick-dev-bar .qd-label { font-weight: 700; color: #1f3a5f; white-space: nowrap; }
.quick-dev-bar .qd-input { flex: 1 1 320px; max-width: 440px; padding: 7px 11px; border: 1px solid #cfe0ff; border-radius: 8px; font-size: 13.5px; background: #fff; }
.quick-dev-bar .qd-input:focus { outline: none; border-color: #2f80ed; box-shadow: 0 0 0 2px rgba(47,128,237,.15); }
.quick-dev-bar .qd-hint { color: #7a8aa0; font-size: 12px; }
/* V2.28：课程库操作条 */
.course-lib-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 18px; background: #f7f4ff; border-bottom: 1px solid #e3dcf5; font-size: 13.5px; }
.course-lib-bar .cl-label { font-weight: 700; color: #5a3aa0; white-space: nowrap; }
.course-lib-bar .cl-select { padding: 7px 10px; border: 1px solid #d8cff0; border-radius: 8px; font-size: 13.5px; background: #fff; min-width: 240px; }
.course-lib-bar .cl-hint { color: #8a7aa0; font-size: 12px; }

/* ===== 课程建设方案：表格化呈现 ===== */
.cd-table-wrap { margin-top: 12px; border: 1px solid #e3e9f2; border-radius: 10px; overflow: hidden; }
.cd-table-title {
  background: linear-gradient(135deg, #eef5ff, #f7fbff); border-bottom: 1px solid #e3e9f2;
  padding: 10px 14px; font-size: 14.5px; font-weight: 700; color: #1f3a5f;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.cd-table { width: 100%; border-collapse: collapse; background: #fff; }
.cd-table th, .cd-table td { border: 1px solid #e8eef7; padding: 10px 12px; text-align: left; vertical-align: top; }
.cd-table thead th { background: #f2f7fd; color: #1f3a5f; font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.cd-table-main .cd-th-mod {
  width: 168px; background: #f7faff; color: #2f5fb0; font-size: 14px; font-weight: 700;
  border-left: 4px solid #2f80ed; white-space: nowrap;
}
.cd-td-body { font-size: 13.5px; color: #3a5170; line-height: 1.7; }
.cd-subsec { margin: 0 0 8px; }
.cd-subsec:last-child { margin-bottom: 0; }
.cd-subhead { font-weight: 700; color: #1f3a5f; margin-bottom: 3px; }
.cd-td-body ul { margin: 0; padding-left: 18px; }
.cd-td-body li { margin: 3px 0; line-height: 1.65; }
.cd-td-body strong { color: #1f3a5f; }
.cd-sec { white-space: normal; }
.cd-table-mod .cd-mod-name { font-weight: 600; color: #1f3a5f; width: 34%; }
.cd-table-mod .cd-mod-hours { width: 90px; color: #e07b39; font-weight: 700; white-space: nowrap; }
.cd-table-mod ol { margin: 0; padding-left: 18px; }
.cd-table-mod li { margin: 3px 0; }
.cd-table-chapters .cd-th-check, .cd-table-chapters .cd-td-check { width: 72px; text-align: center; }
.cd-table-chapters input { width: 16px; height: 16px; accent-color: #2f80ed; cursor: pointer; }
.cd-table-chapters tbody tr:hover { background: #f6fafe; }
.cd-table-chapters tbody tr:has(input:checked) { background: #eaf3ff; }
@media (max-width: 820px) {
  .cd-table-main .cd-th-mod { width: auto; }
  .cd-table th, .cd-table td { padding: 8px 9px; font-size: 13px; }
}

/* 教学设计（第 4 步）/ PPT制作（第 5 步）/ 微课制作（第 6 步）专属页（V2.23 拆分） */
.ppt-wrap { margin-top: 16px; background: #fff; border: 1px solid #e3e9f2; border-radius: 10px; padding: 16px; }
.ppt-chapters { margin: 4px 0 14px; }
.ppt-chapters-title { font-size: 13.5px; font-weight: 700; color: #1f3a5f; margin-bottom: 8px; }
/* V2.23：「前后印证」依据链——展示本页成果引用了哪些前序步骤产出 */
.ppt-chain { background: #f6f9ff; border: 1px solid #dfe9fb; border-left: 4px solid #2f80ed;
  border-radius: 10px; padding: 10px 14px; margin: 4px 0 14px; }
.ppt-chain-title { font-size: 13.5px; font-weight: 700; color: #1f3a5f; margin-bottom: 6px; }
.ppt-chain-item { font-size: 13.5px; color: #3a4a63; margin: 5px 0; line-height: 1.8; }
.ppt-chain-item .cd-course { margin-right: 6px; }
.ppt-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.ppt-actions .primary, .ppt-actions .primary-dark { font-size: 15px; padding: 10px 22px; }
.ppt-filebar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: linear-gradient(135deg, #eaf3ff, #f3f8ff); border: 1px solid #cfe0f7;
  border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; }
.ppt-filebar .primary { text-decoration: none; display: inline-flex; align-items: center;
  font-size: 15px; padding: 10px 22px; }
.ppt-filehint { font-size: 12.5px; color: #5a6b7b; }
.ppt-result { background: #fbfcfe; border: 1px solid #e8eef7; border-radius: 10px; padding: 14px 16px; margin-top: 12px; min-height: 60px; }
.ppt-result:empty { display: none; }
.ppt-result h1 { font-size: 18px; }
.ppt-result h2 { font-size: 15px; color: #2f80ed; }
.ppt-result ul { margin: 4px 0; padding-left: 20px; }
.ppt-result li { margin: 3px 0; }

/* 国家智慧教育平台 · 资料检索面板（V2.26：制作 PPT/微课时前往平台检索并选用资料） */
.se-panel { background: #fff; border: 1px solid #e3e9f2; border-left: 4px solid #16a085;
  border-radius: 10px; padding: 14px 16px; margin: 14px 0 6px; }
.se-head { font-size: 15px; font-weight: 700; color: #13534a; margin-bottom: 10px; }
.se-sub { font-size: 12px; font-weight: 400; color: #6b7b86; margin-left: 6px; }
.se-search { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.se-input { flex: 1 1 220px; min-width: 160px; padding: 8px 10px; border: 1px solid #cdd8e6;
  border-radius: 8px; font-size: 13.5px; outline: none; }
.se-input:focus { border-color: #16a085; }
.se-input.se-url { flex: 1 1 320px; }
.se-select { padding: 8px 10px; border: 1px solid #cdd8e6; border-radius: 8px; font-size: 13.5px; background: #fff; }
.se-chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.se-chip-label { font-size: 12.5px; color: #5a6b7b; }
.se-chip { border: 1px solid #cdeadf; background: #f0faf6; color: #13534a; border-radius: 999px;
  padding: 5px 12px; font-size: 12.5px; cursor: pointer; text-decoration: none; line-height: 1.4; }
.se-chip:hover { background: #e0f5ee; }
.se-chip-link { border-color: #cfe0f7; background: #f0f6ff; color: #2f80ed; }
.se-adopt { background: #f6f9ff; border: 1px solid #e3ecfb; border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; }
.se-adopt-title { font-size: 12.5px; font-weight: 700; color: #1f3a5f; margin-bottom: 8px; }
.se-adopt-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.se-list { display: flex; flex-direction: column; gap: 8px; }
.se-list-static { display: flex; flex-direction: column; gap: 8px; }
.se-empty { font-size: 12.5px; color: #8a97a3; padding: 4px 2px; }
.se-item { display: flex; align-items: center; gap: 10px; background: #f0faf6; border: 1px solid #cdeadf;
  border-radius: 8px; padding: 8px 12px; }
.se-item-type { font-size: 11.5px; color: #13534a; background: #d6f0e7; border-radius: 6px; padding: 2px 8px; white-space: nowrap; }
.se-item-title { flex: 1; color: #1f3a5f; text-decoration: none; font-size: 13.5px; word-break: break-all; }
.se-item-title:hover { text-decoration: underline; color: #16a085; }
.se-remove { border: none; background: transparent; color: #c0392b; cursor: pointer; font-size: 14px; padding: 2px 6px; border-radius: 6px; }
.se-remove:hover { background: #fdecea; }
