:root {
  --color-primary-base: 32 62 97;
  --color-primary-gradient: 91 123 162;
  --color-primary-button-text: 32 62 97;
  --color-primary-button-alternative-text: 255 255 255;
  --color-secondary-base: 242 103 34;
  --color-secondary-gradient: 194 57 0;
  --color-secondary-button-text: 255 255 255;
  --color-tertiary-base: 68 68 68;
  --color-tertiary-gradient: 134 134 134;
  --color-tertiary-button-text: 68 68 68;
  --color-success-base: 122 166 12;
  --color-success-gradient: 84 125 0;
  --color-success-button-text: 255 255 255;
  --color-info-base: 53 132 228;
  --color-info-gradient: 0 94 187;
  --color-info-button-text: 255 255 255;
  --color-warning-base: 240 163 13;
  --color-warning-gradient: 188 115 0;
  --color-warning-button-text: 0 0 0;
  --color-danger-base: 224 27 36;
  --color-danger-gradient: 182 0 0;
  --color-danger-button-text: 255 255 255;
  --color-form-base: 32 62 97;
}

/* ===== 宇辰自定义 · 学习路径视频自适应（2026-10-23，整段删除即可回滚） =====
   问题：LP 播放器把视频按原始像素写死（1920×1080），远超内容区宽度，把界面撑破。
   处理：播放器容器改为 16:9 等比、宽度跟随内容区；视频绝对定位填充，控制条回到容器底部。
   适用：精斗云 98 门课程均为 1920×1080（16:9），已 ffprobe 全量核对。 */
.lp-runtime-content-stage .mejs__container,
.lp-runtime-content-stage .mejs__mediaelement {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
  margin: 0 auto !important;
  position: relative !important;
}
.lp-runtime-content-stage .mejs__inner {
  width: 100% !important;
  height: 100% !important;
  position: relative !important;
}
.lp-runtime-content-stage video,
.lp-runtime-content-stage video.lp-runtime-video {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  background: #000 !important;
  display: block !important;
}

/* 播放器遮罩层（点击播放/加载中）同样被写死 1920×1080，会把半透明蓝铺到视频下方 */
.lp-runtime-content-stage .mejs__layers {
  position: absolute !important;
  inset: 0 !important;
  width: auto !important;
  height: auto !important;
}
.lp-runtime-content-stage .mejs__overlay {
  width: 100% !important;
  height: 100% !important;
  top: 0 !important;
  left: 0 !important;
}

/* ============================================================
 * 学习路径运行页：侧栏加宽 + 标题折行（2026-10-24）
 * 原侧栏写死 300px，标题容器只有 187px（约 13 个汉字），
 * 精斗云的官方课程名与 FAQ 问题动辄 20~39 字，全部被截成「...」。
 * 处理：侧栏 300 → 400px，标题允许折两行，超长再省略。
 * 回滚：删掉本段即可，不影响上面的视频自适应规则。
 * ============================================================ */
/* 宽度由 CSS 变量 --lp-sidebar-width 驱动（原 300px），
   原规则 #learning_path_main.lp-runtime-player #learning_path_left_zone.lp-runtime-sidebar 带 !important，
   优先级高于普通覆盖，故在侧栏元素自身重定义变量，让原规则自动读新值。 */
#learning_path_main.lp-runtime-player #learning_path_left_zone.lp-runtime-sidebar {
  --lp-sidebar-width: 400px !important;
}
aside.lp-runtime-sidebar .lp-runtime-item-title {
  white-space: normal !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35 !important;
  padding-top: 1px;
  padding-bottom: 1px;
}


/* ============================================================
   2026-10-26 在线考试页调整
   隐藏每道题下方的「保存草稿」按钮，只保留页面最底部「结束测试」
   作用域 body.page-tool-exercise 仅考试页生效，不影响其他页面
   ============================================================ */
body.page-tool-exercise .mt-4.flex.justify-end.border-t.border-gray-20.pt-4,
body.page-tool-exercise div.mt-4.flex.justify-end.border-t > button.p-button-success {
  display: none !important;
}
