/* ============================================================
 * 学员专属门户（/student）
 * 专属 header / 固定侧栏 / 实训工作台落地页视觉；
 * 仅以 .bt-student-portal* / .student-* 类作用域，不影响管理端。
 * ============================================================ */

/* ---------- 专属 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;
  background: #fbfbfd;
  border-right: 1px solid #eef0f4;
  padding: 18px 12px;
  box-sizing: border-box;
}

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

.student-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  text-decoration: none;
  color: #4b5563;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.15s ease, color 0.15s ease;
}

.student-nav-item:hover {
  background: #f1f2f6;
  color: #1f2430;
}

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

/* 激活项：深色圆角块 + 金色图标（仿设计稿） */
.student-nav-item.is-active {
  background: #1f2430;
  color: #f5d67b;
  box-shadow: 0 6px 16px rgba(31, 36, 48, 0.28);
}

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

.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;
}

/* ---------- 页面底与落地页 ---------- */
.bt-student-portal-page {
  background: #f4f5f7;
  min-height: 100%;
}

.bt-student-home {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 24px 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* 欢迎卡 */
.bt-student-welcome-paper {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 2px 12px rgba(31, 36, 48, 0.05);
  position: relative;
  overflow: hidden;
}

.bt-student-welcome-title {
  color: #1f2430;
  font-weight: 800;
}

.bt-student-welcome-deco {
  width: 92px;
  height: 72px;
  border-radius: 18px;
  background: #f5f6f8;
  color: #d6dae1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  flex-shrink: 0;
}

/* 双模式卡 */
.bt-student-mode-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 768px) {
  .bt-student-mode-row {
    grid-template-columns: 1fr;
  }
}

.bt-student-mode-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #ffffff;
  border: 1px solid #eceef2;
  border-radius: 18px;
  padding: 22px 26px;
  cursor: pointer;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.bt-student-mode-card:hover {
  box-shadow: 0 10px 24px rgba(31, 36, 48, 0.1);
  transform: translateY(-2px);
}

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

.bt-student-mode-card .bt-student-mode-chevron {
  margin-left: auto;
  color: #cbd5e1;
  font-size: 14px;
}

/* 画像选择区 */
.bt-student-persona-paper {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 2px 12px rgba(31, 36, 48, 0.05);
}

.bt-student-persona-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.bt-student-persona-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px 16px;
  cursor: pointer;
  min-width: 0;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bt-student-persona-card:hover {
  border-color: #f5a623;
}

.bt-student-persona-card.is-selected {
  border: 2px solid #f5a623;
  box-shadow: 0 4px 14px rgba(245, 166, 35, 0.22);
}

.bt-student-persona-card.is-selected .bt-student-persona-name {
  color: #d97706;
  font-weight: 700;
}

.bt-student-persona-text {
  min-width: 0;
}

/* 开始实训 CTA */
.bt-student-cta.dmc-button-root,
button.bt-student-cta {
  background: #f5a623;
  color: #ffffff;
  font-weight: 700;
  padding-left: 28px;
  padding-right: 28px;
}

.bt-student-cta.dmc-button-root:hover,
button.bt-student-cta:hover {
  background: #e0941a;
}

/* 记录页 ↔ 错题本 / 隐藏 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;
}
