/* 变更注释：2026-06-26，因前端页面组件迁移到 Ant Design 5.x，重写样式为 AntD 组件外层布局、业务态和图表占位补充，移除原生按钮、表格、表单和手写目录树控件样式。 */
/* 变更注释：2026-06-26，因布局 QA 发现移动端导航、筛选、表格固定列和弹窗响应式缺陷，新增移动优先布局保护、触控尺寸、表格滑动提示和弹窗限高样式。 */
/* 变更注释：2026-06-26，因 Playwright 四分辨率验证发现 Card 标题被 extra 按钮挤压且移动端 Tabs more 按钮覆盖标签，新增 Card 头部换行和窄屏 Tabs 滚动保护。 */
/* 变更注释：2026-06-26，因用户截图反馈树区和时间线占比过大、热度趋势需使用 PV/UV 曲线图、部门树与用户列表需左右互换，新增业务分栏宽度和曲线图样式。 */
/* 变更注释：2026-06-26，因登录角色入口、头像菜单、课程管理合并和企业微信式组织架构页改造，新增登录页、用户头像、课程历史弹窗、权限两栏和组织架构工作台样式，并移除内容区顶部说明卡样式。 */
/* 变更注释：2026-06-27，因用户反馈全局搜索、筛选栏、树节点、状态标签、课程弹窗和趋势图不符合 Ant Design 5.x 视觉，新增统一筛选工具栏、宽树面板、紧凑标签、课程弹窗栅格和 Ant Design Charts 容器样式。 */
/* 变更注释：2026-06-27，因用户反馈课程文件树图标与文件名称错位，统一 AntD Tree 节点为同排 flex 对齐并保持长文本单行省略。 */
/* 变更注释：2026-06-27，因用户与部门管理组织树联动验证发现 AntD Tree 隐藏测量节点撑出横向滚动，新增隐藏树节点宽度归零规则。 */
/* 变更注释：2026-06-28，因用户反馈课程树拖拽文件夹后六点手柄与文件夹名称错位，固定 AntD Tree 缩进、拖拽、展开、图标和标题的同排居中布局。 */
/* 变更注释：2026-06-27，因目录与课程权限改为左侧目标树和右侧授权列表，新增授权列表布局与弹窗组织架构树滚动保护。 */
/* 变更注释：2026-06-27，因用户管理导入导出改为弹窗任务流程，新增用户导入导出任务结果块样式。 */
/* 变更注释：2026-06-27，因用户反馈目录树文件夹图标不美观且与文字高度不一致，新增黄色文件夹、课程和锁定课程图标样式。 */
/* 变更注释：2026-06-27，因用户要求用 UIUX Pro Max 优化后台管理系统 UI，新增浅灰工作台背景、紧凑后台面板、统一 token 对应样式、移动弹窗和状态开关触控优化。 */
/* 变更注释：2026-06-28，因用户要求现代 SaaS 工具风并禁止渐变、大阴影和大圆角，重构全局颜色、白色侧栏、48px 顶栏、24px 内容节奏、4px 圆角、状态标签和表格密度。 */
/* 变更注释：2026-06-28，因用户截图反馈桌面端顶部裁切、筛选栏错位、弹窗按钮上方灰线、水印预览裁切和人员标签计数框异常，新增桌面顶栏容错高度、等宽筛选网格、无分割线弹窗页脚、完整水印预览和纯文本人数计数样式。 */
/* 变更注释：2026-06-28，因用户反馈上传 Word 课件后学员端 Word 页签为空，新增后端课件预览列表的紧凑布局与元信息样式。 */
/* 变更注释：2026-06-28，因用户反馈编辑课程课件文件不回显且选择文件后显示 0% 卡住，新增已上传课件回显和待保存上传提示样式。 */
/* 变更注释：2026-06-28，因用户要求登录页参考蓝紫插画玻璃拟态风格，新增全屏插画背景、半透明登录面板、圆角输入和 GSAP 降级样式。 */
/* 变更注释：2026-06-28，因用户反馈登录框过大居中、自动填充黄底和缺少公司名称，收紧登录框尺寸、桌面靠右展示并覆盖输入框 autofill 底色。 */
/* 变更注释：2026-06-28，因用户要求看板指标突出、左上角主题 logo、头像无边框和权限人员标签独立选择，新增对应视觉样式。 */
/* 变更注释：2026-06-28，因浏览器验证发现 900px 平板宽度侧栏折叠后无法进入二级菜单，将移动抽屉导航断点提升到 900px。 */
/* 变更注释：2026-06-28，因学习中心移除右侧清单并改为自动受控预览，调整两栏布局、预览媒体尺寸和隐藏课程树状态样式。 */
/* 变更注释：2026-06-28，因课程热度统计指标卡需要点击查看明细，新增可点击指标卡的指针与键盘焦点样式。 */
/* 变更注释：2026-06-28，因动态水印配置预览使用姓名、工号、IP、时间模拟长样例，新增预览文字换行保护，避免右侧预览区横向截断。 */
/* 变更注释：2026-06-28，因用户反馈成员列表工号重复展示且培训管理员表头换行，新增成员工号与培训管理员列单行保护。 */
/* 变更注释：2026-06-28，因用户要求所有输入提示中文且垂直居中，并修复组织搜索按钮对齐，新增全局控件 placeholder 与搜索工具栏对齐样式。 */
/* 变更注释：2026-06-28，因课程热度 TreeSelect 选中标签被统一行高裁切且审计页 placeholder 仍偏下，拆分单选/多选行高并重新居中输入文字。 */
/* 变更注释：2026-06-28，因输入框 placeholder 仍视觉偏下且权限目录树连接线错位，统一 AntD 输入内部基线与树缩进连接线基准。 */
/* 变更注释：2026-06-28，因用户反馈课程目录树和组织架构目录树连接线方向反了，将 AntD Tree 线条锚点改为左侧竖线并让横线向右连接节点名称。 */
/* 变更注释：2026-06-28，因课程管理目录树带拖拽手柄导致父级竖线偏左，补偿树线锚点到父级展开图标中心线。 */
:root {
  --app-bg: #f5f7fa;
  --app-surface: #ffffff;
  --app-surface-muted: #fafafa;
  --app-table-header: #fafafa;
  --app-border: #e5e6eb;
  --app-divider: #f2f3f5;
  --app-text: #4e5969;
  --app-title: #1d2129;
  --app-text-secondary: #86909c;
  --app-disabled: #c9cdd4;
  --app-primary: #0052d9;
  --app-info: #1890ff;
  --app-success: #00b578;
  --app-warning: #faad14;
  --app-error: #ff4d4f;
  --app-selected: #e8f3ff;
  --app-control-height: 40px;
}

body {
  margin: 0;
  background: var(--app-bg);
  color: var(--app-text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
  font-size: 14px;
  line-height: 1.5;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

img,
video,
iframe,
embed,
object {
  max-width: 100%;
  height: auto;
}

.app-shell {
  min-height: 100vh;
}

.app-shell.learner-mode .main-sidebar {
  display: none;
}

.main-sidebar {
  height: 100vh;
  overflow: auto;
  border-right: 1px solid var(--app-border);
  background: var(--app-surface) !important;
  scrollbar-width: none;
}

.main-sidebar::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.brand-block {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 8px;
  align-items: center;
  min-height: 48px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--app-divider);
}

.brand-block strong {
  display: block;
  color: var(--app-title);
  font-size: 14px;
  font-weight: 500;
}

.brand-block span {
  display: block;
  margin-top: 0;
  color: var(--app-text-secondary);
  font-size: 12px;
}

.brand-logo-mark {
  display: inline-flex !important;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: var(--app-primary);
  color: #ffffff !important;
}

.brand-logo-mark svg {
  width: 18px;
  height: 18px;
}

.workspace {
  min-width: 0;
  background: var(--app-bg);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: auto;
  min-height: 64px;
  padding: 8px 24px;
  border-bottom: 1px solid var(--app-border);
  background: var(--app-surface);
  line-height: 1.35;
}

.topbar h1 {
  margin: 0;
  color: var(--app-title);
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
}

.topbar-title-row {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.topbar-title-text {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.topbar-tools {
  flex: 0 0 auto;
  justify-content: flex-end;
  max-width: 100%;
}

.mobile-menu-trigger {
  display: none;
  flex: 0 0 auto;
}

.profile-trigger {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  border: 1px solid var(--app-border);
  border-radius: 4px;
  background: var(--app-surface);
  cursor: pointer;
}

.profile-trigger-borderless {
  border-color: transparent;
  background: transparent;
}

.profile-avatar-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.login-shell {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 100vh;
  place-items: center;
  overflow: hidden;
  padding: clamp(20px, 4vw, 48px) clamp(44px, 9vw, 150px) clamp(20px, 4vw, 48px) clamp(20px, 4vw, 48px);
  background: #10236a;
}

.login-illustration-panel {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: url("/static/assets/online-course-login-bg.png");
  background-position: center;
  background-size: cover;
  transform-origin: center center;
}

.login-vignette {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 42%, rgba(99, 180, 255, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(8, 74, 148, 0.08), rgba(34, 13, 98, 0.28));
}

.login-glass-panel {
  position: relative;
  justify-self: end;
  width: min(88vw, 420px);
  padding: 30px 34px 24px;
  border: 1px solid rgba(214, 239, 255, 0.48);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(88, 180, 242, 0.42), rgba(54, 42, 158, 0.62)),
    rgba(41, 88, 174, 0.48);
  box-shadow: 0 26px 72px rgba(19, 18, 94, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.34);
  color: #ffffff;
  backdrop-filter: blur(18px) saturate(132%);
  -webkit-backdrop-filter: blur(18px) saturate(132%);
}

.login-glass-panel::before {
  position: absolute;
  inset: 1px;
  border-radius: 21px;
  pointer-events: none;
  content: "";
  box-shadow: inset 0 0 36px rgba(160, 218, 255, 0.18);
}

.login-brand-lockup {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 22px;
}

.login-brand-icon {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px;
  line-height: 42px !important;
  background: rgba(229, 248, 255, 0.24);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.login-brand-text {
  min-width: 0;
}

.login-brand-kicker {
  display: block;
  color: rgba(237, 249, 255, 0.82);
  font-size: 12px;
  line-height: 18px;
}

.login-glass-panel h1.ant-typography {
  margin: 0;
  color: #ffffff;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.12;
  text-shadow: 0 8px 22px rgba(18, 33, 111, 0.28);
}

.login-subtitle {
  display: block;
  margin-bottom: 24px;
  color: rgba(238, 249, 255, 0.86);
  font-size: 15px;
  line-height: 24px;
}

.login-alert {
  margin-bottom: 16px;
}

.login-form {
  display: grid;
  gap: 22px;
}

.login-form .ant-form-item {
  margin-bottom: 0;
}

.login-field-input.ant-input-affix-wrapper {
  min-height: var(--app-control-height);
  padding: 0 16px;
  border: 1px solid rgba(232, 248, 255, 0.22);
  border-radius: 999px;
  background: rgba(129, 171, 245, 0.32);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.18), 0 12px 28px rgba(26, 21, 114, 0.18);
}

.login-field-input.ant-input-affix-wrapper:hover,
.login-field-input.ant-input-affix-wrapper-focused {
  border-color: rgba(232, 248, 255, 0.58);
  background: rgba(145, 189, 255, 0.42);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.22), 0 0 0 3px rgba(68, 190, 255, 0.18);
}

.login-field-input .ant-input,
.login-field-input .ant-input-password {
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  background: transparent;
}

.login-field-input .ant-input:-webkit-autofill,
.login-field-input .ant-input:-webkit-autofill:hover,
.login-field-input .ant-input:-webkit-autofill:focus,
.login-field-input input:-webkit-autofill,
.login-field-input input:-webkit-autofill:hover,
.login-field-input input:-webkit-autofill:focus {
  box-shadow: 0 0 0 1000px rgba(129, 171, 245, 0.32) inset !important;
  -webkit-box-shadow: 0 0 0 1000px rgba(129, 171, 245, 0.32) inset !important;
  -webkit-text-fill-color: #ffffff !important;
  caret-color: #ffffff;
  transition: background-color 9999s ease-out;
}

.login-field-input .ant-input::placeholder {
  color: rgba(255, 255, 255, 0.76);
}

.login-field-input .ant-input-prefix,
.login-field-input .ant-input-suffix,
.login-field-input .anticon {
  color: rgba(255, 255, 255, 0.88);
}

.login-submit.ant-btn-primary {
  min-height: var(--app-control-height);
  margin-top: 6px;
  border: 1px solid rgba(182, 237, 255, 0.52);
  border-radius: 999px;
  background: #31b5ff;
  box-shadow: 0 16px 30px rgba(20, 46, 137, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.24);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
}

.login-submit.ant-btn-primary:hover,
.login-submit.ant-btn-primary:focus-visible {
  border-color: rgba(237, 250, 255, 0.78);
  background: #45c1ff;
}

.login-demo-tip {
  margin-top: 18px;
  border-color: rgba(186, 231, 255, 0.45);
  border-radius: 14px;
  background: rgba(230, 247, 255, 0.2);
  color: #ffffff;
}

.login-demo-tip .ant-alert-message {
  color: rgba(255, 255, 255, 0.92);
}

.login-demo-tip .anticon {
  color: #8edcff;
}

.login-company-name {
  display: block;
  margin-top: 18px;
  color: rgba(238, 249, 255, 0.82);
  font-size: 13px;
  line-height: 20px;
  text-align: center;
}

.login-animated-entry {
  will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
  .login-animated-entry,
  .login-illustration-panel {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}

.eyebrow {
  display: block;
  margin-bottom: 0;
  color: var(--app-primary);
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-stack {
  padding: 24px;
}

.page {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
}

.page-content {
  flex: 1;
  min-width: 0;
  overflow: visible;
}

.page-action-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 24px;
}

.filter-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 24px;
  align-items: start;
  justify-content: space-between;
  width: 100%;
}

.responsive-filter-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px 24px;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.responsive-filter-form .ant-form-item {
  margin: 0;
  width: 100%;
  min-width: 0;
}

.responsive-filter-form .ant-form-item-row {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  align-items: center;
  width: 100%;
}

.responsive-filter-form .ant-form-item-label {
  min-width: 0;
  max-width: none !important;
  padding: 0 8px 0 0;
  line-height: var(--app-control-height);
  text-align: right;
}

.responsive-filter-form .ant-form-item-label > label {
  height: var(--app-control-height);
  color: var(--app-text);
  font-weight: 400;
}

.responsive-filter-form .ant-form-item-control {
  min-width: 160px;
  max-width: none !important;
}

.responsive-filter-form .ant-picker,
.responsive-filter-form .ant-select,
.responsive-filter-form .ant-input,
.responsive-filter-form .ant-input-number {
  width: 100%;
  max-width: 100%;
  min-height: var(--app-control-height);
}

.filter-actions {
  justify-content: flex-end;
  padding-top: 0;
}

.filter-actions .ant-btn {
  min-height: var(--app-control-height);
}

.page .ant-form .ant-input:not(textarea),
.page .ant-form .ant-input-affix-wrapper,
.page .ant-form .ant-picker,
.page .ant-form .ant-select-selector,
.page .ant-form .ant-input-number,
.page .ant-form .ant-input-number-input,
.page .ant-form .ant-select-single,
.page .ant-form .ant-select-multiple,
.ant-modal .ant-form .ant-input:not(textarea),
.ant-modal .ant-form .ant-input-affix-wrapper,
.ant-modal .ant-form .ant-picker,
.ant-modal .ant-form .ant-select-selector,
.ant-modal .ant-form .ant-input-number,
.ant-modal .ant-form .ant-input-number-input,
.ant-modal .ant-form .ant-select-single,
.ant-modal .ant-form .ant-select-multiple,
.tree-panel .ant-input-search .ant-input,
.tree-panel .ant-input-search .ant-input-affix-wrapper,
.org-management-layout .ant-input-search .ant-input,
.org-management-layout .ant-input-search .ant-input-affix-wrapper {
  min-height: var(--app-control-height);
  height: var(--app-control-height);
}

.page .ant-form .ant-input-affix-wrapper,
.ant-modal .ant-form .ant-input-affix-wrapper,
.tree-panel .ant-input-search .ant-input-affix-wrapper,
.org-management-layout .ant-input-search .ant-input-affix-wrapper {
  display: inline-flex;
  align-items: center;
}

.page .ant-form .ant-select-single .ant-select-selection-item,
.page .ant-form .ant-select-single .ant-select-selection-placeholder,
.page .ant-form .ant-select-multiple .ant-select-selection-placeholder,
.page .ant-form .ant-picker-input > input,
.ant-modal .ant-form .ant-select-single .ant-select-selection-item,
.ant-modal .ant-form .ant-select-single .ant-select-selection-placeholder,
.ant-modal .ant-form .ant-select-multiple .ant-select-selection-placeholder,
.ant-modal .ant-form .ant-picker-input > input,
.tree-panel .ant-input-search .ant-input,
.org-management-layout .ant-input-search .ant-input {
  line-height: calc(var(--app-control-height) - 2px);
}

.page .ant-form .ant-input:not(textarea),
.page .ant-form .ant-picker-input > input,
.page .ant-form .ant-input-number-input,
.page .ant-form .ant-input-affix-wrapper > input.ant-input,
.ant-modal .ant-form .ant-input:not(textarea),
.ant-modal .ant-form .ant-picker-input > input,
.ant-modal .ant-form .ant-input-number-input,
.ant-modal .ant-form .ant-input-affix-wrapper > input.ant-input,
.tree-panel .ant-input-search .ant-input,
.tree-panel .ant-input-search .ant-input-affix-wrapper > input.ant-input,
.org-management-layout .ant-input-search .ant-input {
  padding-top: 0;
  padding-bottom: 2px;
  line-height: calc(var(--app-control-height) - 2px);
}

.page .ant-form .ant-input::placeholder,
.page .ant-form .ant-input-number-input::placeholder,
.ant-modal .ant-form .ant-input::placeholder,
.ant-modal .ant-form .ant-input-number-input::placeholder,
.tree-panel .ant-input-search .ant-input::placeholder,
.org-management-layout .ant-input-search .ant-input::placeholder {
  line-height: calc(var(--app-control-height) - 2px);
}

.page .ant-form .ant-select-single .ant-select-selector,
.page .ant-form .ant-select-multiple .ant-select-selector,
.ant-modal .ant-form .ant-select-single .ant-select-selector,
.ant-modal .ant-form .ant-select-multiple .ant-select-selector {
  align-items: center;
}

.page .ant-form .ant-select-single .ant-select-selection-search-input,
.ant-modal .ant-form .ant-select-single .ant-select-selection-search-input {
  height: calc(var(--app-control-height) - 2px) !important;
}

.page .ant-form .ant-select-multiple .ant-select-selection-overflow,
.ant-modal .ant-form .ant-select-multiple .ant-select-selection-overflow {
  min-height: calc(var(--app-control-height) - 2px);
  align-items: center;
}

.page .ant-form .ant-select-multiple .ant-select-selection-overflow-item,
.ant-modal .ant-form .ant-select-multiple .ant-select-selection-overflow-item {
  max-width: calc(100% - 32px);
}

.page .ant-form .ant-select-multiple .ant-select-selection-item,
.ant-modal .ant-form .ant-select-multiple .ant-select-selection-item {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  height: 26px;
  line-height: 24px;
}

.page .ant-form .ant-select-multiple .ant-select-selection-item-content,
.ant-modal .ant-form .ant-select-multiple .ant-select-selection-item-content {
  min-width: 0;
  overflow: hidden;
  line-height: 24px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page .ant-form textarea.ant-input,
.ant-modal .ant-form textarea.ant-input {
  height: auto;
  min-height: 96px;
}

.filter-card,
.panel,
.summary-strip {
  margin-bottom: 24px;
  min-width: 0;
  max-width: 100%;
  border-color: var(--app-border);
  border-radius: 4px;
}

.filter-card {
  background: var(--app-surface);
}

.panel .ant-card-head {
  min-width: 0;
}

.panel .ant-card-head-wrapper {
  flex-wrap: wrap;
  gap: 8px 12px;
}

.panel .ant-card-head-title {
  flex: 1 1 160px;
  min-width: 0;
  white-space: normal;
}

.panel .ant-card-extra {
  flex: 0 1 auto;
  min-width: 0;
  margin-inline-start: 0;
}

.panel .ant-card-extra .ant-space {
  flex-wrap: wrap;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.metric-card {
  min-height: 104px;
  border-color: var(--app-border);
}

.clickable-metric-card {
  cursor: pointer;
}

.clickable-metric-card:focus-visible {
  outline: 2px solid var(--app-primary);
  outline-offset: 2px;
}

.course-row-drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--app-text-secondary);
  cursor: grab;
  border-radius: 6px;
}

.course-row-drag-handle:hover {
  color: var(--app-primary);
  background: #eaf2ff;
}

.course-row-drag-handle:active {
  cursor: grabbing;
}

.course-action-buttons {
  flex-wrap: nowrap !important;
  white-space: nowrap;
}

.course-action-buttons .ant-btn {
  padding-inline: 4px;
}

.metric-value-accent {
  margin: 6px 0 4px;
  color: var(--app-primary);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.content-grid {
  display: grid;
  gap: 24px;
  margin-bottom: 24px;
}

.content-grid > * {
  min-width: 0;
  max-width: 100%;
}

.two-columns {
  grid-template-columns: 1fr 1fr;
}

.main-with-rail {
  grid-template-columns: minmax(0, 1fr) 320px;
}

.watermark-layout {
  grid-template-columns: minmax(0, 1fr) minmax(420px, 30vw);
}

.tree-detail-layout {
  grid-template-columns: 360px minmax(0, 1fr);
}

.history-layout {
  grid-template-columns: 300px minmax(0, 1fr);
}

.department-user-layout {
  grid-template-columns: 320px minmax(0, 1fr);
}

.three-columns {
  grid-template-columns: 280px minmax(0, 1fr) 340px;
}

.permission-layout {
  grid-template-columns: 360px minmax(0, 1fr);
  align-items: start;
}

.permission-subject-modal .folder-tree {
  max-height: min(420px, calc(100vh - 280px));
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--app-border);
  border-radius: 4px;
  background: var(--app-surface-muted);
}

.permission-tag-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 10px 12px;
  border: 1px solid var(--app-border);
  border-radius: 4px;
  background: var(--app-surface-muted);
}

.course-history-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
}

.org-management-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 0;
  min-height: calc(100vh - 128px);
  overflow: hidden;
  border: 1px solid var(--app-border);
  border-radius: 4px;
  background: var(--app-surface);
}

.org-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 18px;
  border-right: 1px solid var(--app-border);
  background: var(--app-surface-muted);
}

.org-search-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) var(--app-control-height);
  gap: 8px !important;
  align-items: center !important;
}

.org-search-actions .ant-space-item,
.org-search-actions .ant-input-search,
.org-search-actions .ant-input-group-wrapper {
  min-width: 0;
}

.org-search-actions .ant-input-search .ant-input,
.org-search-actions .ant-input-search .ant-input-affix-wrapper,
.org-search-actions .ant-input-search .ant-input-group-addon,
.org-search-actions .ant-input-search .ant-input-search-button,
.org-search-actions .ant-btn {
  height: var(--app-control-height);
  min-height: var(--app-control-height);
}

.org-search-actions .ant-input-search .ant-input-search-button,
.org-search-actions > .ant-space-item:last-child .ant-btn {
  width: var(--app-control-height);
  padding: 0;
}

.org-list-item {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 4px;
}

.org-list-item.active {
  background: var(--app-selected);
  color: var(--app-primary);
  font-weight: 500;
}

.org-count-text {
  justify-self: end;
  color: var(--app-text-secondary);
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
  white-space: nowrap;
}

.org-main-panel {
  min-width: 0;
  padding: 22px 24px;
  overflow: auto;
}

.org-title-row {
  margin-bottom: 16px;
}

.org-title-row h3 {
  margin: 0;
}

.org-action-row {
  margin-bottom: 16px;
}

.learning-layout {
  grid-template-columns: 300px minmax(0, 1fr);
}

.tree-panel,
.viewer-panel,
.context-rail {
  min-width: 0;
}

.tree-panel {
  background: var(--app-surface);
}

.viewer-panel {
  background: var(--app-surface);
}

.context-rail {
  background: var(--app-surface-muted);
}

.folder-tree {
  min-width: 0;
}

.folder-tree .ant-tree-treenode {
  display: flex;
  width: 100%;
  min-height: 32px;
  align-items: center;
  padding-block: 2px;
}

.folder-tree .ant-tree-treenode > * {
  align-self: center;
}

.folder-tree .ant-tree-treenode[aria-hidden="true"] {
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
}

.folder-tree .ant-tree-draggable-icon,
.folder-tree .ant-tree-switcher,
.folder-tree .ant-tree-checkbox,
.folder-tree .ant-tree-iconEle {
  display: inline-flex;
  flex: 0 0 auto;
  height: 32px;
  line-height: 32px;
  align-items: center;
  justify-content: center;
}

.folder-tree .ant-tree-switcher {
  width: 24px;
}

.folder-tree .ant-tree-indent {
  display: inline-flex;
  flex: 0 0 auto;
  height: 32px;
  align-items: center;
}

.folder-tree .ant-tree-indent-unit {
  display: inline-flex;
  position: relative;
  flex: 0 0 24px;
  width: 24px;
  height: 32px;
}

.folder-tree .ant-tree-indent-unit::before {
  inset-inline-start: 11px !important;
  inset-inline-end: auto !important;
}

.folder-tree.folder-tree-draggable .ant-tree-indent-unit::before {
  inset-inline-start: 35px !important;
  inset-inline-end: auto !important;
}

.folder-tree .ant-tree-switcher-leaf-line::before,
.folder-tree .ant-tree-switcher-line-icon::before {
  inset-inline-start: 11px !important;
  inset-inline-end: auto !important;
}

.folder-tree .ant-tree-switcher-leaf-line::after,
.folder-tree .ant-tree-switcher-line-icon::after {
  inset-inline-start: 11px !important;
  inset-inline-end: auto !important;
  width: 13px !important;
}

.folder-tree .ant-tree-draggable-icon {
  width: 24px;
  opacity: 0.45;
}

.folder-tree .ant-tree-iconEle svg {
  display: block;
}

.folder-tree-icon {
  display: inline-flex;
  width: 18px;
  height: 32px;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  line-height: 1;
}

.folder-tree-icon-folder {
  color: var(--app-warning);
}

.folder-tree-icon-course {
  color: var(--app-primary);
}

.folder-tree-icon-locked {
  color: var(--app-disabled);
}

.folder-tree .ant-tree-node-content-wrapper {
  display: inline-flex;
  flex: 1 1 0;
  min-width: 0;
  height: 32px;
  line-height: 32px;
  align-items: center;
}

.folder-tree .ant-tree-node-content-wrapper .ant-tree-iconEle {
  margin-inline-end: 6px;
}

.folder-tree .ant-tree-title {
  display: inline-flex;
  flex: 1 1 0;
  min-width: 0;
  height: 32px;
  line-height: 32px;
  align-items: center;
  overflow: hidden;
}

.folder-tree-node-title {
  display: inline-flex;
  width: 100%;
  min-width: 0;
  height: 32px;
  line-height: 32px;
  align-items: center;
  overflow: hidden;
}

.folder-tree-title {
  display: inline-flex;
  max-width: 100%;
  min-width: 0;
  height: 32px;
  align-items: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.department-tree-node-title {
  display: inline-flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.department-tree-node-action {
  flex: 0 0 auto;
  opacity: 0;
  transition: opacity 0.16s ease;
}

.folder-tree .ant-tree-treenode:hover .department-tree-node-action,
.folder-tree .ant-tree-node-content-wrapper:hover .department-tree-node-action,
.department-tree-node-title:hover .department-tree-node-action {
  opacity: 1;
}

.folder-tree .locked-course {
  min-width: 0;
  color: var(--app-disabled);
  overflow: hidden;
}

.folder-tree .hidden-course,
.hidden-course .folder-tree-title {
  color: var(--app-disabled);
}

.chart-panel {
  min-height: 260px;
}

.bar-list {
  display: grid;
  gap: 16px;
}

.bar-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 72px;
  gap: 12px;
  align-items: center;
}

.line-chart-panel {
  min-height: 360px;
}

.line-chart {
  position: relative;
  width: 100%;
  min-width: 0;
}

.antd-line-chart {
  min-height: 320px;
  padding: 10px 6px 0;
}

.detail-list {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 10px 18px;
  margin-bottom: 8px;
}

.status-tag-compact {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  justify-self: start;
  align-items: center;
  min-height: 22px;
  margin-inline-end: 0;
  border: 0;
  border-radius: 2px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
  padding-inline: 8px;
}

.status-tag-success {
  background: var(--app-success);
}

.status-tag-warning {
  background: var(--app-warning);
  color: #1d2129;
}

.status-tag-error {
  background: var(--app-error);
}

.member-employee-no,
.member-training-admin-column,
.member-training-admin-column .ant-table-column-title {
  white-space: nowrap;
}

.status-tag-default {
  border: 1px solid var(--app-border);
  background: var(--app-surface);
  color: var(--app-text);
}

.summary-strip {
  display: flex;
  align-items: center;
  min-height: 58px;
  flex-wrap: wrap;
}

.document-viewer {
  position: relative;
  display: grid;
  gap: 16px;
  min-height: 410px;
  margin-bottom: 16px;
  padding: 48px;
  border: 1px solid var(--app-border);
  border-radius: 4px;
  overflow: hidden;
  background: var(--app-surface);
}

.viewer-stage {
  display: grid;
  place-items: center;
  width: min(100%, 720px);
  min-height: 260px;
  border: 1px solid var(--app-border);
  border-radius: 4px;
  background: var(--app-selected);
  color: var(--app-primary);
  font-weight: 500;
}

.viewer-media {
  display: block;
  width: min(100%, 920px);
  max-height: 520px;
  object-fit: contain;
  border: 1px solid var(--app-border);
  border-radius: 4px;
  background: var(--app-surface-muted);
}

.viewer-actions {
  margin-top: 12px;
}

.file-previewer-host {
  min-height: 420px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.courseware-preview-list {
  display: grid;
  gap: 16px;
}

.courseware-preview {
  min-height: 280px;
  padding: 24px;
}

.courseware-meta-line {
  margin-bottom: 0;
  color: var(--app-text-secondary);
}

/* 变更注释：2026-06-28，因学习中心评论需按附件呈现头像姓名、内容、时间城市、回复、点赞和本人删除，新增线程评论布局样式。 */
.learning-comments-panel {
  gap: 14px !important;
}

.learning-comment-list .ant-list-items {
  display: grid;
  gap: 12px;
}

.learning-comment-list-item {
  padding: 0 !important;
  border-block-end: 0 !important;
}

.learning-comment-thread {
  width: 100%;
}

.learning-comment-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  width: 100%;
  padding: 14px 0;
}

.learning-comment-avatar {
  background: #e8f3ff;
  color: var(--app-primary);
}

.learning-comment-main {
  min-width: 0;
}

.learning-comment-author {
  display: block;
  margin-bottom: 4px;
  color: var(--app-text);
}

.learning-comment-content {
  margin-bottom: 6px !important;
  color: var(--app-text);
  white-space: pre-wrap;
}

.learning-comment-meta {
  color: var(--app-text-secondary);
}

.learning-comment-meta .ant-btn-link {
  height: auto;
  padding: 0;
}

.learning-comment-actions {
  display: flex;
  justify-content: flex-end;
  min-width: 64px;
}

.learning-comment-actions .ant-btn {
  color: var(--app-text-secondary);
}

.learning-comment-replies {
  margin-left: 52px;
  padding-left: 12px;
  border-left: 2px solid var(--app-divider);
}

.learning-comment-reply-thread .learning-comment-row {
  padding-block: 10px;
}

/* 变更注释：2026-06-28，因用户反馈回复他人评论时蓝色提示框过重，将回复关系改为轻量上下文行。 */
.learning-reply-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 30px;
  padding: 0 2px;
  color: var(--app-text-secondary);
}

.learning-reply-context .ant-btn-link {
  height: auto;
  padding: 0;
}

.locked-course {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--app-text-secondary);
  white-space: nowrap;
}

.watermark-preview {
  min-height: 360px;
}

.watermark-preview .ant-card-body {
  display: flex;
  min-height: 320px;
}

.watermark-preview .ant-card-body > div {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
}

.watermark-preview .ant-watermark {
  display: block;
  width: 100%;
  min-height: 280px;
}

.watermark-preview-surface {
  display: grid;
  align-content: start;
  width: 100%;
  min-height: 280px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--app-divider);
  border-radius: 4px;
  background: var(--app-surface);
}

.watermark-preview-surface .ant-typography {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.stacked-alert {
  margin-top: 12px;
}

.full-width {
  width: 100%;
}

.table-wrapper {
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-scroll-hint {
  display: none;
  margin-bottom: 8px;
}

.numeric-cell {
  font-variant-numeric: tabular-nums;
}

.responsive-modal .ant-modal-content {
  overflow: hidden;
  border: 1px solid var(--app-border);
  border-radius: 4px;
  box-shadow: 0 1px 2px rgb(29 33 41 / 8%);
}

.responsive-modal .ant-modal-header {
  margin: 0;
  padding: 20px 24px 10px;
  border-bottom: 0;
}

.responsive-modal .ant-modal-title {
  color: var(--app-title);
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
}

.responsive-modal .ant-modal-close {
  top: 16px;
  inset-inline-end: 16px;
}

.responsive-modal .ant-modal-body {
  max-height: calc(100vh - 180px);
  overflow-y: auto;
  padding: 8px 24px 12px;
}

.responsive-modal .ant-modal-footer {
  position: static;
  margin-top: 0;
  padding: 12px 24px 20px;
  border-top: 0;
  background: #ffffff;
}

.upload-progress-note {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.existing-courseware-list {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid var(--app-border);
  border-radius: 4px;
  background: var(--app-surface-muted);
}

.existing-courseware-list .ant-list-item {
  padding: 6px 0;
}

.existing-courseware-empty {
  display: block;
  margin-bottom: 10px;
}

.entity-modal-grid,
.course-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.course-modal-grid .ant-form-item,
.entity-modal-grid .ant-form-item {
  margin-bottom: 0;
}

.course-modal-span-all,
.course-modal-section {
  grid-column: 1 / -1;
}

.course-modal-section {
  padding: 12px 14px;
  border: 1px solid var(--app-border);
  border-radius: 4px;
  background: var(--app-surface-muted);
}

.status-switch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 10px;
}

.status-switch-row .ant-form-item {
  min-width: 136px;
}

.state-switch {
  min-width: 44px;
  min-height: 22px;
}

.upload-select-button {
  min-height: 32px;
}

.courseware-upload-control {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
}

.user-import-export-task {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--app-border);
  border-radius: 4px;
  background: var(--app-surface-muted);
}

@media (max-width: 1280px) {
  .metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .two-columns,
  .main-with-rail,
  .three-columns,
  .learning-layout {
    grid-template-columns: 1fr;
  }

  .tree-detail-layout {
    grid-template-columns: 320px minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .mobile-menu-trigger {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }

  .ant-layout-sider {
    display: none;
  }

  .tree-detail-layout,
  .history-layout,
  .department-user-layout,
  .permission-layout,
  .course-history-grid,
  .org-management-layout {
    grid-template-columns: 1fr;
  }

  .org-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--app-divider);
  }
}

@media (max-width: 768px) {
  .login-shell {
    align-items: center;
    min-height: 100dvh;
    padding: 18px;
  }

  .login-illustration-panel {
    background-position: center bottom;
  }

  .login-glass-panel {
    justify-self: center;
    width: min(100%, 420px);
    padding: 24px;
    border-radius: 22px;
  }

  .login-glass-panel::before {
    border-radius: 21px;
  }

  .login-brand-lockup {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
  }

  .login-brand-icon {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px;
    line-height: 44px !important;
  }

  .login-glass-panel h1.ant-typography {
    font-size: 30px;
  }

  .login-subtitle {
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 22px;
  }

  .login-form {
    gap: 22px;
  }

  .login-field-input.ant-input-affix-wrapper,
  .login-submit.ant-btn-primary {
    min-height: 52px;
  }

  .login-demo-tip {
    margin-top: 16px;
  }

  .topbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    height: auto;
    min-height: 48px;
    padding: 12px 16px;
  }

  .topbar-title-row {
    align-items: center;
  }

  .topbar-tools {
    width: 100%;
    justify-content: flex-start;
  }

  .topbar-tools .ant-space-item {
    max-width: 100%;
  }

  .mobile-menu-trigger {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }

  .topbar .ant-btn,
  .profile-trigger {
    min-height: 44px;
    align-items: center;
  }

  .page-stack {
    padding: 16px;
  }

  .ant-layout-sider {
    display: none;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .responsive-filter-form {
    display: grid;
    gap: 12px;
    width: 100%;
  }

  .responsive-filter-form .ant-form-item {
    margin-inline-end: 0;
    margin-bottom: 0;
    width: 100%;
  }

  .responsive-filter-form .ant-form-item-row {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .responsive-filter-form .ant-form-item-label {
    flex: 0 0 92px !important;
    min-width: 92px;
    max-width: 92px !important;
  }

  .responsive-filter-form .ant-form-item-control {
    flex: 1 1 0 !important;
    min-width: 0;
    max-width: calc(100% - 92px) !important;
  }

  .responsive-filter-form .ant-picker,
  .responsive-filter-form .ant-select,
  .responsive-filter-form .ant-input,
  .responsive-filter-form .ant-input-number {
    width: 100%;
    max-width: 100%;
  }

  .responsive-filter-form .ant-space,
  .responsive-filter-form .ant-space-item {
    width: 100%;
  }

  .filter-toolbar {
    display: grid;
  }

  .filter-actions {
    width: 100%;
  }

  .filter-actions .ant-space-item,
  .filter-actions .ant-btn {
    width: 100%;
  }

  .course-modal-grid,
  .entity-modal-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .course-modal-section {
    padding: 10px 12px;
  }

  .status-switch-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
  }

  .status-switch-row .ant-form-item {
    min-width: 0;
  }

  .table-scroll-hint {
    display: block;
  }

  .table-wrapper .ant-table-cell-fix-right,
  .table-wrapper .ant-table-cell-fix-right-first,
  .table-wrapper .ant-table-cell-fix-right-last {
    position: static !important;
    right: auto !important;
    box-shadow: none !important;
  }

  .table-wrapper .ant-table-cell-fix-right::after {
    display: none !important;
  }

  .ant-tabs-nav {
    min-width: 0;
  }

  .ant-tabs-nav-wrap {
    overflow-x: auto !important;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .ant-tabs-nav-list {
    min-width: max-content;
  }

  .ant-tabs-nav-more {
    display: none !important;
  }

  .responsive-modal {
    max-width: calc(100vw - 16px);
  }

  .responsive-modal .ant-modal-content {
    max-height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
  }

  .responsive-modal .ant-modal-body {
    flex: 1 1 auto;
    max-height: calc(100vh - 180px);
    overflow-y: auto;
  }

  .document-viewer {
    padding: 24px;
  }

  .antd-line-chart {
    min-height: 280px;
    padding-inline: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-animated-entry,
  .login-illustration-panel {
    transform: none !important;
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}
