/* ============================================================
 * 学员专属门户（/student）
 * 专属 header / 固定侧栏 / 实训工作台落地页视觉；
 * 仅以 .bt-student-portal* / .student-* 类作用域，不影响管理端。
 * 设计规范：三栏 370/940/370（右栏留白），底色 #FAFAFA，
 * 菜单距顶 164px（header 64 + 内边距 100），强调色 绿 #28b894 + 黑 #111827。
 * ============================================================ */

/* ---------- 全局字体：学员门户统一 HarmonyOS Sans SC（自托管） ---------- */
.student-header-root,
.student-sidebar-root,
.bt-student-portal-page {
  font-family: 'HarmonyOS Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* ---------- 专属 header ---------- */
.student-header-root {
  height: 100%;
  background: #ffffff;
}

.student-header-brand-link {
  text-decoration: none;
  color: inherit;
}

/* 站点 logo：复用后台 header-brand-mark 尺寸基调，学员栏内微调对齐 */
.student-header-brand-mark {
  height: 30px;
  width: auto;
  object-fit: contain;
}

.student-header-brand-text {
  color: #1f2430;
  letter-spacing: 0.5px;
}

/* ---------- 固定侧栏 ---------- */
.student-sidebar-root {
  height: 100%;
  display: flex;
  flex-direction: column;
  /* 侧栏面板底色：纯灰（R=G=B，无彩色倾向） */
  background: #f2f2f2;
  border-right: 1px solid #e6e6e6;
  /* 菜单离页面顶部 164px：navbar 区域已在 64px header 之下，故补 100px */
  padding: 100px 12px 18px;
  box-sizing: border-box;
}

.student-nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.student-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 170px;
  padding: 8px 16px;
  border-radius: 0;
  text-decoration: none;
  color: #4b5563;
  /* Medium 字重（HarmonyOS Sans SC 500）：更粗更清晰 */
  font-weight: 500;
  font-size: 18px;
}

.student-nav-item:hover {
  /* 纯灰、无渐变过渡 */
  background: #e6e6e6;
  color: #1f2430;
}

.student-nav-item .student-nav-icon {
  width: 18px;
  text-align: center;
  color: #9aa1ad;
}

/* 激活项：纯灰底（R=G=B，无圆角、无渐变）+ 黑字 + 绿色图标（#28b894） */
.student-nav-item.is-active {
  background: #d9d9d9;
  color: #111827;
}

.student-nav-item.is-active .student-nav-icon {
  color: #28b894;
}

.student-sidebar-footer-spacer {
  flex: 1;
}

/* ---------- 学员壳内隐藏管理端元素 ---------- */
.bt-student-portal .bt-hero-wrap {
  display: none !important;
}

.bt-student-hide {
  display: none !important;
}

.bt-student-tablist-hidden {
  display: none !important;
}

/* 学员视角选择器：保留挂载（多个回调以其为 Input/Output），仅视觉隐藏 */
.bt-student-scope-hidden {
  display: none !important;
}

/* ---------- 页面底与落地页（三栏 370 / 940 / 370：两侧留白各 370px） ---------- */
.bt-student-portal-page {
  background: #fafafa;
  min-height: 100%;
}

.bt-student-home {
  /* 内容宽 = 可用区 - 两侧留白(370×2)，上限 940px；窄屏逐级收缩并自动居中 */
  width: clamp(320px, calc(100% - 740px), 940px);
  margin-inline: auto;
  padding: 24px 24px 60px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* 欢迎条（高 115px） */
.bt-student-welcome-bar {
  background: #ffffff;
  border-radius: 16px;
  height: 115px;
  box-shadow: 0 2px 12px rgba(31, 36, 48, 0.05);
}

.bt-student-welcome-name {
  color: #111827;
}

.bt-student-welcome-dash {
  display: inline-block;
  width: 18px;
  height: 3px;
  border-radius: 2px;
  background: #28b894;
  flex-shrink: 0;
}

.bt-student-welcome-right {
  border-left: 1px solid #e9ecef;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-align: right;
  flex-shrink: 0;
}

.bt-student-welcome-score {
  color: #111827;
}

.bt-student-welcome-score-label {
  line-height: 1;
}

.bt-student-welcome-rule {
  margin-top: 6px;
}

/* 双模式大卡（高约 262px，顶部装饰条随 accent） */
.bt-student-mode-card {
  position: relative;
  overflow: hidden;
  display: flex;
  background: #ffffff;
  border: 1px solid #eceef2;
  border-radius: 16px;
  min-height: 262px;
  padding: 24px 28px;
  box-shadow: 0 2px 12px rgba(31, 36, 48, 0.05);
}

.bt-student-mode-card-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.bt-student-mode-card--practice .bt-student-mode-card-topbar {
  background: linear-gradient(90deg, #28b894, #7fe3c6);
}

.bt-student-mode-card--exam .bt-student-mode-card-topbar {
  background: linear-gradient(90deg, #111827, #4b5563);
}

.bt-student-mode-card-body {
  flex: 1;
  min-width: 0;
}

.bt-student-mode-title {
  color: #111827;
}

/* 徽章：练习=浅绿底绿字，考试=浅灰底黑字 */
.bt-student-badge--practice {
  background-color: rgba(40, 184, 148, 0.14) !important;
  color: #1f9e7c !important;
}

.bt-student-badge--exam {
  background-color: #f1f3f5 !important;
  color: #111827 !important;
}

.bt-student-mode-divider {
  border-color: #eef0f4;
}

/* 要点列表：自定义圆点色 */
.bt-student-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: #4b5563;
}

.bt-student-bullets li {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.bt-student-bullets li::before {
  content: "●";
  font-size: 8px;
  line-height: 1;
  flex-shrink: 0;
}

.bt-student-bullets--practice li::before {
  color: #28b894;
}

.bt-student-bullets--exam li::before {
  color: #111827;
}

/* 「开始对话」按钮：练习=绿、考试=黑 */
.bt-student-dialog-btn--practice {
  background-color: #28b894 !important;
  color: #ffffff !important;
}

.bt-student-dialog-btn--practice:hover {
  background-color: #1f9e7c !important;
}

.bt-student-dialog-btn--exam {
  background-color: #111827 !important;
  color: #ffffff !important;
}

.bt-student-dialog-btn--exam:hover {
  background-color: #1f2937 !important;
}

/* 记录页 ↔ 错题本 / 隐藏 Tab 返回入口 子导航条 */
.bt-student-subnav {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

/* 「返回工作台」靠左（对练页/考试页顶部） */
.bt-student-subnav--left {
  justify-content: flex-start;
}

/* 学员壳内非落地页（对练/记录等）保持既有工作台留白 */
.bt-student-tabs-shell {
  background: transparent;
}
