/* =========================================================================
   学习中心 / 教师工作台 统一样式（2026-07 功能重建版）
   在平台既有蓝色体系上扩展；新增章节闭环、案例库、作品提交、
   资源审核、个性化方案、增值评价、学生画像等功能组件。
   ========================================================================= */
:root {
  --hub-bg: #f6f8fb;
  --hub-surface: #ffffff;
  --hub-surface-soft: #f1f5f9;
  --hub-surface-sink: #eef2f7;
  --hub-border: #dbe3ee;
  --hub-border-strong: #c2cfdf;
  --hub-text: #16233a;
  --hub-muted: #5c6b83;
  --hub-faint: #8a97ab;
  --hub-blue: #2563eb;
  --hub-blue-soft: #e8f0fe;
  --hub-green: #0f8f62;
  --hub-green-soft: #e3f5ed;
  --hub-orange: #c06a11;
  --hub-orange-soft: #fbeede;
  --hub-red: #c2410c;
  --hub-red-soft: #fbe6dc;
  --hub-purple: #7c3aed;
  --hub-purple-soft: #efe7fd;
  --hub-amber: #b45309;
  --hub-shadow: 0 18px 45px rgba(30, 41, 59, 0.08);
  --hub-shadow-sm: 0 6px 18px rgba(30, 41, 59, 0.06);
  --hub-radius: 16px;
  --hub-radius-sm: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.learning-hub-page {
  margin: 0;
  background: var(--hub-bg);
  color: var(--hub-text);
  font-family: "Noto Sans SC", "Microsoft YaHei", -apple-system, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.hub-shell { width: min(1180px, 92vw); margin: 0 auto; }

/* ---------- 顶栏 ---------- */
.hub-topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 12px clamp(16px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--hub-border);
}
.hub-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .3px; }
.hub-brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--hub-blue), #4f7cf7); color: #fff; font-size: 17px; font-weight: 800;
}
.hub-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.hub-nav a {
  padding: 7px 13px; border-radius: 9px; color: var(--hub-muted); font-size: 14px; font-weight: 600;
  transition: background .18s, color .18s;
}
.hub-nav a:hover { background: var(--hub-surface-soft); color: var(--hub-blue); }
.hub-identity {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px;
  border: 1px solid var(--hub-border); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 600;
}
.hub-identity .dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 13px; }
.hub-identity small { color: var(--hub-faint); font-weight: 500; }

/* ---------- Hero ---------- */
.hub-hero { padding: clamp(28px, 5vw, 52px) 0 clamp(20px, 3vw, 30px); }
.hub-hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.hub-eyebrow {
  display: inline-block; margin: 0 0 12px; padding: 4px 12px; border-radius: 999px;
  background: var(--hub-blue-soft); color: var(--hub-blue); font-size: 12px; font-weight: 700; letter-spacing: 1px;
}
.hub-hero h1 { margin: 0 0 8px; font-size: clamp(28px, 4.4vw, 42px); font-weight: 800; letter-spacing: -.5px; }
.hub-hero-sub { margin: 0 0 18px; color: var(--hub-muted); font-size: 15px; max-width: 46ch; }
.hub-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.hub-tags span {
  padding: 6px 13px; border-radius: 999px; border: 1px solid var(--hub-border);
  background: #fff; font-size: 13px; font-weight: 600; color: var(--hub-muted);
}
.hub-metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.hub-metric {
  background: var(--hub-surface); border: 1px solid var(--hub-border); border-radius: var(--hub-radius);
  padding: 18px; box-shadow: var(--hub-shadow-sm);
}
.hub-metric strong { display: block; font-size: 30px; font-weight: 800; color: var(--hub-blue); line-height: 1; }
.hub-metric span { display: block; margin-top: 6px; font-size: 13px; color: var(--hub-muted); }

/* ---------- 区块骨架 ---------- */
.hub-band { padding: clamp(26px, 4vw, 44px) 0; }
.hub-band.is-white { background: #fff; border-top: 1px solid var(--hub-border); border-bottom: 1px solid var(--hub-border); }
.hub-band.is-sink { background: var(--hub-surface-sink); }
.hub-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.hub-section-head h2 { margin: 0; font-size: clamp(20px, 2.6vw, 26px); font-weight: 800; letter-spacing: -.3px; }
.hub-section-head p { margin: 0; color: var(--hub-faint); font-size: 13px; font-weight: 600; letter-spacing: .5px; }
.hub-section-head .head-tools { display: flex; gap: 8px; align-items: center; }

/* ---------- 学生四大模块导航 ---------- */
.module-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.module-tile {
  display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: var(--hub-radius);
  background: var(--hub-surface); border: 1px solid var(--hub-border); box-shadow: var(--hub-shadow-sm);
  transition: transform .16s, box-shadow .16s, border-color .16s; position: relative; overflow: hidden;
}
.module-tile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--hub-blue); }
.module-tile.is-green::before { background: var(--hub-green); }
.module-tile.is-orange::before { background: var(--hub-orange); }
.module-tile.is-red::before { background: var(--hub-red); }
.module-tile:hover { transform: translateY(-3px); box-shadow: var(--hub-shadow); border-color: var(--hub-border-strong); }
.module-index { font-size: 13px; font-weight: 800; color: var(--hub-faint); letter-spacing: 1px; }
.module-tile strong { font-size: 17px; font-weight: 800; }
.module-tile small { color: var(--hub-muted); font-size: 13px; }

/* ---------- 章节闭环（签名元素）---------- */
.chapter-loop-list { display: flex; flex-direction: column; gap: 12px; }
.chapter-loop {
  background: var(--hub-surface); border: 1px solid var(--hub-border); border-radius: var(--hub-radius);
  box-shadow: var(--hub-shadow-sm); overflow: hidden;
}
.chapter-loop-head {
  display: flex; align-items: center; gap: 14px; padding: 16px 20px; cursor: pointer; user-select: none;
  transition: background .16s;
}
.chapter-loop-head:hover { background: var(--hub-surface-soft); }
.chapter-order {
  flex: none; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--hub-blue-soft); color: var(--hub-blue); font-weight: 800; font-size: 15px;
}
.chapter-loop-head h3 { margin: 0; font-size: 16px; font-weight: 700; flex: 1; }
.chapter-progress-mini { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--hub-muted); }
.progress-track { width: 90px; height: 6px; border-radius: 999px; background: var(--hub-surface-sink); overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--hub-blue), #5b8bf5); border-radius: 999px; }
.chapter-caret { flex: none; color: var(--hub-faint); transition: transform .2s; font-size: 18px; }
.chapter-loop.open .chapter-caret { transform: rotate(90deg); }
.chapter-loop-body { display: none; padding: 4px 20px 20px; border-top: 1px solid var(--hub-border); }
.chapter-loop.open .chapter-loop-body { display: block; }

.stage-pipeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.stage-col {
  background: var(--hub-surface-soft); border: 1px solid var(--hub-border); border-radius: var(--hub-radius-sm);
  padding: 12px; position: relative;
}
.stage-col::after {
  content: "→"; position: absolute; right: -12px; top: 50%; transform: translateY(-50%);
  color: var(--hub-border-strong); font-weight: 800; z-index: 2;
}
.stage-col:last-child::after { display: none; }
.stage-name { font-size: 12px; font-weight: 800; letter-spacing: 1px; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.stage-name .s-dot { width: 8px; height: 8px; border-radius: 50%; }
.stage-pre .s-dot { background: var(--hub-blue); } .stage-in .s-dot { background: var(--hub-green); }
.stage-post .s-dot { background: var(--hub-orange); } .stage-eval .s-dot { background: var(--hub-red); }
.res-link {
  display: block; padding: 7px 9px; margin-bottom: 6px; border-radius: 8px; background: #fff;
  border: 1px solid var(--hub-border); font-size: 12.5px; color: var(--hub-text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: border-color .15s, color .15s;
}
.res-link:hover { border-color: var(--hub-blue); color: var(--hub-blue); }
.res-link .rk { color: var(--hub-faint); font-size: 11px; margin-right: 5px; }
.stage-empty { font-size: 12px; color: var(--hub-faint); padding: 6px 2px; }
.stage-task {
  padding: 8px 9px; margin-bottom: 7px; border-radius: 8px;
  background: rgba(255,255,255,.72); border: 1px dashed var(--hub-border-strong);
}
.stage-task b { display: block; font-size: 12.5px; font-weight: 800; color: var(--hub-text); }
.stage-task small { display: block; margin-top: 2px; color: var(--hub-muted); font-size: 11.5px; line-height: 1.45; }

/* ---------- 通用动作瓦片 ---------- */
.action-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.action-tile {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 17px;
  background: var(--hub-surface); border: 1px solid var(--hub-border); border-radius: var(--hub-radius-sm);
  box-shadow: var(--hub-shadow-sm); transition: transform .15s, border-color .15s;
}
.action-tile:hover { transform: translateY(-2px); border-color: var(--hub-blue); }
.action-tile strong { display: block; font-size: 15px; font-weight: 700; }
.action-tile span span { display: block; font-size: 12.5px; color: var(--hub-muted); font-weight: 500; }
.action-arrow { color: var(--hub-blue); font-weight: 800; font-size: 18px; }

/* ---------- 案例库 / 拓展资源 卡片 ---------- */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip-btn {
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--hub-border); background: #fff;
  font-size: 13px; font-weight: 600; color: var(--hub-muted); cursor: pointer; transition: all .15s;
}
.chip-btn:hover { border-color: var(--hub-blue-soft); }
.chip-btn.active { background: var(--hub-blue); border-color: var(--hub-blue); color: #fff; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.approved-panel { margin-top: 16px; }
.res-card {
  display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: var(--hub-radius-sm);
  background: var(--hub-surface); border: 1px solid var(--hub-border); box-shadow: var(--hub-shadow-sm);
  transition: transform .15s, box-shadow .15s;
}
.res-card:hover { transform: translateY(-2px); box-shadow: var(--hub-shadow); }
.res-card .cat-badge {
  align-self: flex-start; padding: 2px 9px; border-radius: 6px; font-size: 11px; font-weight: 700;
  background: var(--hub-blue-soft); color: var(--hub-blue);
}
.res-card.g .cat-badge { background: var(--hub-green-soft); color: var(--hub-green); }
.res-card.o .cat-badge { background: var(--hub-orange-soft); color: var(--hub-orange); }
.res-card.p .cat-badge { background: var(--hub-purple-soft); color: var(--hub-purple); }
.res-card h4 { margin: 0; font-size: 15px; font-weight: 700; }
.res-card .meta { font-size: 12px; color: var(--hub-faint); }
.res-card .go { margin-top: auto; font-size: 13px; font-weight: 700; color: var(--hub-blue); }

/* ---------- 四库映射 ---------- */
.library-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.library-card {
  padding: 20px; border-radius: var(--hub-radius); background: var(--hub-surface);
  border: 1px solid var(--hub-border); box-shadow: var(--hub-shadow-sm); text-align: left; position: relative;
}
.library-card b {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--hub-blue-soft); color: var(--hub-blue); font-size: 14px; font-weight: 800; margin-bottom: 12px;
}
.library-card:nth-child(2) b { background: var(--hub-green-soft); color: var(--hub-green); }
.library-card:nth-child(3) b { background: var(--hub-orange-soft); color: var(--hub-orange); }
.library-card:nth-child(4) b { background: var(--hub-purple-soft); color: var(--hub-purple); }
.library-card strong { display: block; font-size: 16px; font-weight: 800; }
.library-card span { display: block; margin-top: 6px; font-size: 12.5px; color: var(--hub-muted); }
.library-card .lib-count { position: absolute; top: 18px; right: 20px; font-size: 22px; font-weight: 800; color: var(--hub-faint); }

/* ---------- 教师端泳道 ---------- */
.teacher-lane-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.teacher-lane {
  background: var(--hub-surface); border: 1px solid var(--hub-border); border-radius: var(--hub-radius);
  padding: 18px; box-shadow: var(--hub-shadow-sm);
}
.teacher-lane > h3 { margin: 0 0 14px; font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.teacher-lane > h3::before { content: ""; width: 4px; height: 16px; border-radius: 3px; background: var(--hub-blue); }
.teacher-lane:nth-child(2) > h3::before { background: var(--hub-green); }
.teacher-lane:nth-child(3) > h3::before { background: var(--hub-orange); }
.teacher-lane .action-tile { margin-bottom: 8px; }

/* ---------- 教师自传课件 ---------- */
.courseware-manager { display: grid; grid-template-columns: minmax(300px, .85fr) 1.15fr; gap: 16px; align-items: start; }
.courseware-upload-panel, .courseware-list-panel {
  background: var(--hub-surface); border: 1px solid var(--hub-border); border-radius: var(--hub-radius);
  padding: 20px; box-shadow: var(--hub-shadow-sm);
}
.courseware-upload-panel { display: grid; grid-template-columns: 74px 1fr; gap: 16px; align-items: start; }
.courseware-upload-mark {
  display: grid; place-items: center; width: 74px; height: 74px; border-radius: 16px;
  background: linear-gradient(135deg, var(--hub-orange-soft), var(--hub-blue-soft));
  color: var(--hub-orange); font-weight: 800; letter-spacing: .5px; border: 1px solid var(--hub-border);
}
.courseware-upload-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.courseware-upload-actions span { font-size: 12.5px; color: var(--hub-faint); font-weight: 600; }
.courseware-upload-panel input[type="file"] {
  padding: 9px; border: 1px dashed var(--hub-border-strong); border-radius: var(--hub-radius-sm); background: #fff;
}
.courseware-file-list { display: flex; flex-direction: column; gap: 10px; }
.courseware-file-card {
  display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: center;
  padding: 12px; border: 1px solid var(--hub-border); border-radius: var(--hub-radius-sm); background: #fff;
}
.courseware-file-icon {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: var(--hub-orange-soft); color: var(--hub-orange); font-weight: 800; font-size: 12px;
}
.courseware-file-main strong { display: block; font-size: 14px; font-weight: 800; overflow-wrap: anywhere; }
.courseware-file-main span { display: block; margin-top: 3px; color: var(--hub-faint); font-size: 12px; }
.courseware-file-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- 表单 / 面板 ---------- */
.panel {
  background: var(--hub-surface); border: 1px solid var(--hub-border); border-radius: var(--hub-radius);
  padding: 22px; box-shadow: var(--hub-shadow-sm);
}
.panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--hub-text); }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--hub-border); border-radius: var(--hub-radius-sm);
  font-size: 14px; font-family: inherit; color: var(--hub-text); background: #fff; transition: border-color .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--hub-blue); box-shadow: 0 0 0 3px var(--hub-blue-soft); }
.field textarea { min-height: 90px; resize: vertical; }
.btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 10px 18px; border-radius: var(--hub-radius-sm);
  border: 1px solid var(--hub-blue); background: var(--hub-blue); color: #fff; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: filter .15s, transform .1s; font-family: inherit;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: #fff; color: var(--hub-blue); }
.btn.soft { background: var(--hub-surface-soft); border-color: var(--hub-border); color: var(--hub-text); }
.btn.green { background: var(--hub-green); border-color: var(--hub-green); }
.btn.red { background: var(--hub-red); border-color: var(--hub-red); }
.btn.sm { padding: 6px 12px; font-size: 12.5px; }

/* ---------- 提交 / 审核 卡片 ---------- */
.submission-list, .queue-list, .plan-list { display: flex; flex-direction: column; gap: 12px; }
.sub-card {
  background: var(--hub-surface); border: 1px solid var(--hub-border); border-radius: var(--hub-radius-sm);
  padding: 16px 18px; box-shadow: var(--hub-shadow-sm);
}
.sub-card .sub-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.sub-card h4 { margin: 0; font-size: 15px; font-weight: 700; flex: 1; }
.sub-card .sub-body { font-size: 13.5px; color: var(--hub-muted); margin: 0 0 8px; white-space: pre-wrap; }
.sub-card .sub-meta { font-size: 12px; color: var(--hub-faint); display: flex; gap: 12px; flex-wrap: wrap; }
.sub-card .sub-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.sub-card .review-note { margin-top: 10px; padding: 8px 10px; border-radius: 8px; background: var(--hub-surface-soft); font-size: 12.5px; }
.status-badge { padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.status-pending { background: var(--hub-amber); color: #fff; }
.status-approved { background: var(--hub-green); color: #fff; }
.status-rejected { background: var(--hub-red); color: #fff; }
.type-badge { padding: 2px 9px; border-radius: 6px; font-size: 11px; font-weight: 700; background: var(--hub-blue-soft); color: var(--hub-blue); }

/* ---------- 方案 ---------- */
.plan-card {
  background: var(--hub-surface); border: 1px solid var(--hub-border); border-radius: var(--hub-radius-sm);
  padding: 16px 18px; box-shadow: var(--hub-shadow-sm);
}
.plan-card .plan-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.plan-card h4 { margin: 0; font-size: 15px; font-weight: 700; flex: 1; }
.plan-card .plan-target { padding: 2px 10px; border-radius: 6px; font-size: 11px; font-weight: 700; background: var(--hub-purple-soft); color: var(--hub-purple); }
.plan-steps { list-style: none; margin: 8px 0 0; padding: 0; }
.plan-steps li { display: flex; gap: 10px; padding: 8px 0; border-top: 1px dashed var(--hub-border); font-size: 13.5px; }
.plan-steps li:first-child { border-top: none; }
.plan-steps .step-ch { flex: none; font-weight: 700; color: var(--hub-blue); min-width: 74px; }
.plan-builder-rows { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.plan-row { display: grid; grid-template-columns: 130px 150px 1fr auto; gap: 8px; align-items: center; }
.plan-row .x { cursor: pointer; color: var(--hub-red); font-weight: 800; padding: 4px 8px; }

/* ---------- 增值评价 ---------- */
.eval-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.eval-table th, .eval-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--hub-border); }
.eval-table th { font-size: 12px; color: var(--hub-faint); font-weight: 700; letter-spacing: .5px; }
.eval-table tbody tr:hover { background: var(--hub-surface-soft); }
.growth-pos { color: var(--hub-green); font-weight: 800; }
.growth-neg { color: var(--hub-red); font-weight: 800; }
.growth-zero { color: var(--hub-faint); font-weight: 700; }
.eval-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.eval-stat { padding: 16px; border-radius: var(--hub-radius-sm); background: var(--hub-surface-soft); border: 1px solid var(--hub-border); }
.eval-stat strong { display: block; font-size: 26px; font-weight: 800; color: var(--hub-blue); line-height: 1; }
.eval-stat span { display: block; margin-top: 6px; font-size: 12.5px; color: var(--hub-muted); }
.formula-box { margin-top: 16px; padding: 14px 16px; border-radius: var(--hub-radius-sm); background: var(--hub-surface-sink); border: 1px dashed var(--hub-border-strong); font-size: 13px; color: var(--hub-muted); }
.formula-box code { color: var(--hub-blue); font-weight: 700; }

/* ---------- 学生画像 ---------- */
.profile-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }
.mastery-list { display: flex; flex-direction: column; gap: 10px; }
.mastery-row { display: grid; grid-template-columns: 130px 1fr 44px; gap: 12px; align-items: center; font-size: 13px; }
.mastery-row .m-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mastery-bar { height: 9px; border-radius: 999px; background: var(--hub-surface-sink); overflow: hidden; }
.mastery-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--hub-blue), #5b8bf5); }
.mastery-row .m-val { text-align: right; font-weight: 700; font-size: 12.5px; color: var(--hub-muted); }
.mastery-bar.low i { background: linear-gradient(90deg, var(--hub-red), #e07a4c); }
.mastery-bar.mid i { background: linear-gradient(90deg, var(--hub-orange), #e0a04c); }
.trajectory { list-style: none; margin: 0; padding: 0; }
.trajectory li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--hub-border); font-size: 13px; }
.trajectory li:last-child { border-bottom: none; }
.trajectory .t-time { flex: none; color: var(--hub-faint); font-size: 12px; min-width: 92px; }
.trajectory .t-type { flex: none; padding: 1px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; background: var(--hub-blue-soft); color: var(--hub-blue); height: fit-content; }
.stage-evidence-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stage-evidence-chip {
  border: 1px solid var(--hub-border); border-radius: var(--hub-radius-sm); background: #fff; padding: 11px 12px;
}
.stage-evidence-chip b { display: block; font-size: 13px; font-weight: 800; }
.stage-evidence-chip span { display: block; margin-top: 3px; color: var(--hub-muted); font-size: 12px; }
.stage-evidence-chip.stage-pre b { color: var(--hub-blue); }
.stage-evidence-chip.stage-in b { color: var(--hub-green); }
.stage-evidence-chip.stage-post b { color: var(--hub-orange); }
.stage-evidence-chip.stage-eval b { color: var(--hub-red); }
.advice-box { padding: 14px 16px; border-radius: var(--hub-radius-sm); background: var(--hub-green-soft); border: 1px solid #bfe6d3; font-size: 13.5px; color: #175c42; }
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.weak-pill { padding: 4px 11px; border-radius: 999px; background: var(--hub-red-soft); color: var(--hub-red); font-size: 12.5px; font-weight: 700; }

/* ---------- 空态 / 提示 ---------- */
.empty-state {
  padding: 32px; text-align: center; color: var(--hub-faint); font-size: 14px;
  border: 1px dashed var(--hub-border-strong); border-radius: var(--hub-radius); background: var(--hub-surface-soft);
}
.hub-note { font-size: 12.5px; color: var(--hub-faint); margin-top: 10px; }
.inline-hint { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--hub-blue-soft); color: var(--hub-blue); font-size: 12px; font-weight: 600; }

/* ---------- Toast ---------- */
.hub-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px);
  background: #16233a; color: #fff; padding: 12px 20px; border-radius: 12px; font-size: 14px; font-weight: 600;
  box-shadow: 0 12px 30px rgba(0,0,0,.25); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 200;
}
.hub-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 页脚 ---------- */
.hub-footer { padding: 26px 0; text-align: center; color: var(--hub-faint); font-size: 13px; border-top: 1px solid var(--hub-border); background: #fff; }

/* ---------- 响应式 ---------- */
@media (max-width: 940px) {
  .hub-hero-grid { grid-template-columns: 1fr; }
  .module-grid, .library-grid { grid-template-columns: repeat(2, 1fr); }
  .teacher-lane-grid { grid-template-columns: 1fr; }
  .courseware-manager { grid-template-columns: 1fr; }
  .stage-pipeline { grid-template-columns: repeat(2, 1fr); }
  .stage-col::after { display: none; }
  .panel-grid, .profile-grid { grid-template-columns: 1fr; }
  .plan-row { grid-template-columns: 1fr 1fr; }
  .hub-nav { display: none; }
}
@media (max-width: 560px) {
  .module-grid, .library-grid { grid-template-columns: 1fr; }
  .hub-metric-grid { grid-template-columns: 1fr 1fr; }
  .courseware-upload-panel { grid-template-columns: 1fr; }
  .courseware-file-card { grid-template-columns: 38px 1fr; }
  .courseware-file-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .mastery-row { grid-template-columns: 96px 1fr 40px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto; }
}
