/* 学生中心：延续烽火铸魂视觉语言 */
:root {
  --fh-red: #8b1a1a;
  --fh-red-deep: #6e1515;
  --fh-red-soft: #a83232;
  --fh-gold: #c9a84c;
  --fh-gold-light: #e8d49a;
  --fh-gold-bright: #f3e6b8;
  --fh-ink: #2a2222;
  --fh-paper: #fbf7f0;
}

.font-brand {
  font-family: "Noto Serif SC", "Songti SC", serif;
}

.text-fh-red { color: var(--fh-red); }
.text-fh-red-deep { color: var(--fh-red-deep); }
.text-fh-gold { color: var(--fh-gold); }
.text-fh-gold-light { color: var(--fh-gold-light); }
.text-fh-gold-bright { color: var(--fh-gold-bright); }
.text-fh-ink { color: var(--fh-ink); }
.bg-fh-red { background-color: var(--fh-red); }
.bg-fh-red-deep { background-color: var(--fh-red-deep); }
.bg-fh-red\/80 { background-color: rgba(139, 26, 26, 0.8); }
.bg-fh-red\/5 { background-color: rgba(139, 26, 26, 0.05); }
.bg-fh-gold\/10 { background-color: rgba(201, 168, 76, 0.1); }
.bg-fh-gold\/15 { background-color: rgba(201, 168, 76, 0.15); }
.bg-fh-gold\/20 { background-color: rgba(201, 168, 76, 0.2); }
.bg-fh-gold\/25 { background-color: rgba(201, 168, 76, 0.25); }
.border-fh-gold\/15 { border-color: rgba(201, 168, 76, 0.15); }
.border-fh-gold\/20 { border-color: rgba(201, 168, 76, 0.2); }
.border-fh-gold\/25 { border-color: rgba(201, 168, 76, 0.25); }
.border-fh-gold\/30 { border-color: rgba(201, 168, 76, 0.3); }
.border-fh-gold\/40 { border-color: rgba(201, 168, 76, 0.4); }
.hover\:bg-fh-red-deep:hover { background-color: var(--fh-red-deep); }
.hover\:bg-fh-gold\/25:hover { background-color: rgba(201, 168, 76, 0.25); }
.focus\:border-fh-red:focus { border-color: var(--fh-red); }
.focus\:ring-fh-red\/15:focus { --tw-ring-color: rgba(139, 26, 26, 0.15); }
.focus\:ring-fh-red\/20:focus { --tw-ring-color: rgba(139, 26, 26, 0.2); }

.sc-body {
  margin: 0;
  background:
    radial-gradient(ellipse 80% 40% at 10% -10%, rgba(201, 168, 76, 0.12), transparent 50%),
    radial-gradient(ellipse 60% 35% at 100% 0%, rgba(139, 26, 26, 0.08), transparent 45%),
    linear-gradient(180deg, #f7f1e8 0%, var(--fh-paper) 40%, #f3eee6 100%);
  color: #4a4a4a;
  font-family: "Noto Sans SC", system-ui, sans-serif;
}

/* 统一门户 fixed 顶栏后为内容区留出高度 */
.sc-body--portal-nav {
  padding-top: 4rem;
}

/* 修改密码弹窗：必须高于带 backdrop-filter 的面板（勿依赖未编译的 Tailwind 任意 z） */
#tc-pwd-modal,
#sc-pwd-modal,
.tc-pwd-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
}

/* 花名册弹窗：须盖过门户 fixed 顶栏（z-50）与下拉（z-80） */
#tc-stu-modal,
#tc-dash-modal,
#tc-exam-modal,
#tc-practice-modal {
  z-index: 2147483000;
}

.sc-header,
.sc-footer {
  background:
    radial-gradient(ellipse 70% 80% at 15% 0%, rgba(201, 168, 76, 0.22), transparent 55%),
    linear-gradient(165deg, #8b1a1a 0%, #6e1515 55%, #4a2a2a 100%);
  color: #fff;
}

@font-face {
  font-family: 'FZXiaoBiaoSong';
  src: url('../fonts/FZXiaoBiaoSong-B05S.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

.sc-footer-brand {
  margin: 0;
  font-family: 'FZXiaoBiaoSong', '方正小标宋简体', 'FZXiaoBiaoSong-B05S', '小标宋', 'Noto Serif SC', Songti SC, serif;
  font-size: 0.95rem;
  font-weight: normal;
  line-height: 1.5;
  letter-spacing: 0.16em;
  color: #f4e2bb;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .sc-footer-brand {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    white-space: normal;
  }
}

.sc-nav-link {
  display: inline-flex;
  align-items: center;
  border-radius: 0.5rem;
  padding: 0.3rem 0.65rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.72);
  transition: background 0.15s, color 0.15s;
}
.sc-nav-home {
  color: #f3e6b8;
  font-weight: 600;
}
.sc-nav-home:hover {
  color: #fff;
}
button.sc-nav-link {
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  line-height: inherit;
}
.sc-nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.sc-nav-link.is-active {
  background: rgba(201, 168, 76, 0.22);
  color: var(--fh-gold-bright);
  box-shadow: inset 0 0 0 1px rgba(201, 168, 76, 0.35);
}

.sc-panel {
  border-radius: 1rem;
  border: 1px solid rgba(201, 168, 76, 0.22);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 30px rgba(42, 34, 34, 0.06);
  backdrop-filter: blur(8px);
}

.sc-page-meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.85rem;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #5c4f4f;
}
.sc-page-meta-item {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
}
.sc-page-meta-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #a0894a;
  text-transform: none;
}
.sc-page-meta-sep {
  width: 1px;
  height: 0.85rem;
  background: rgba(201, 168, 76, 0.45);
}
.sc-page-meta::before {
  content: none;
}

/* 学生个人数据页：宽屏强制六指标单行 */
.sc-profile-banner .sc-stat-row {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
@media (max-width: 900px) {
  .sc-profile-banner .sc-stat-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .sc-profile-banner .sc-stat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.sc-profile-banner {
  background:
    radial-gradient(ellipse 60% 80% at 80% 20%, rgba(201, 168, 76, 0.28), transparent 50%),
    linear-gradient(135deg, #8b1a1a 0%, #6e1515 48%, #4a2a2a 100%);
  color: #fff;
}

.sc-stat {
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  padding: 0.75rem 0.85rem;
  backdrop-filter: blur(4px);
}
.sc-stat-label {
  font-size: 0.6875rem;
  color: rgba(243, 230, 184, 0.7);
  letter-spacing: 0.04em;
}
.sc-stat-value {
  margin-top: 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--fh-gold-bright);
  font-variant-numeric: tabular-nums;
}

/* 教师看板：指标单行紧凑排布 */
.sc-stat-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.5rem;
}
.sc-stat-row--5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.sc-stat--compact {
  padding: 0.45rem 0.65rem;
  min-width: 0;
}
.sc-stat--compact .sc-stat-value {
  margin-top: 0.1rem;
  font-size: 0.95rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sc-stat--wide {
  min-width: 0;
}
@media (max-width: 900px) {
  .sc-stat-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .sc-stat-row--5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .sc-stat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sc-stat-row--5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sc-stat--wide {
    grid-column: 1 / -1;
  }
}

/* 看板图表固定比例容器，避免单柱撑满整屏 */
.sc-chart-frame {
  position: relative;
  width: 100%;
  max-width: 42rem;
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  max-height: 18rem;
}
.sc-chart-frame--task {
  max-width: none;
  margin-inline: 0;
  aspect-ratio: 16 / 10;
  max-height: 16rem;
  min-height: 12rem;
}
.sc-chart-frame--effect-bar {
  max-width: none;
  margin-inline: 0;
  aspect-ratio: 16 / 10;
  max-height: 14rem;
  min-height: 11rem;
}
.sc-chart-frame--effect-pie {
  max-width: 16rem;
  margin-inline: auto;
  aspect-ratio: 1 / 1;
  max-height: 14rem;
  min-height: 11rem;
}
.sc-chart-frame canvas {
  width: 100% !important;
  height: 100% !important;
}

/* 教学效果看板 */
.td-effect-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
@media (max-width: 768px) {
  .td-effect-stats {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}
.sc-chart-frame--effect-wide {
  max-width: none;
  margin-inline: 0;
  aspect-ratio: 21 / 7;
  max-height: 14rem;
  min-height: 11rem;
}
.td-effect-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.td-effect-rank-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-radius: 0.55rem;
  border: 1px solid #efeae0;
  background: #faf8f4;
  padding: 0.45rem 0.65rem;
}
.td-effect-rank-no {
  flex-shrink: 0;
  width: 1.4rem;
  height: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: rgba(139, 26, 26, 0.1);
  color: #8b1a1a;
  font-size: 0.6875rem;
  font-weight: 700;
}
.td-effect-rank-main {
  min-width: 0;
  flex: 1;
}
.td-effect-rank-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #4a2a2a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.td-effect-rank-meta {
  margin-top: 0.1rem;
  font-size: 0.6875rem;
  color: #9a9185;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.td-effect-rank-val {
  flex-shrink: 0;
  text-align: right;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  color: #8b1a1a;
  font-weight: 600;
}
.td-effect-stat {
  border-radius: 0.75rem;
  border: 1px solid #efeae0;
  background: linear-gradient(180deg, #faf8f4 0%, #fff 100%);
  padding: 0.75rem 0.85rem;
  text-align: center;
}
.td-effect-stat-label {
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: #8a8174;
}
.td-effect-stat-value {
  margin-top: 0.25rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: #4a2a2a;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.td-effect-chart-card {
  border-radius: 0.875rem;
  border: 1px solid #efeae0;
  background: #fff;
  padding: 0.85rem 1rem 1rem;
}
.td-effect-chart-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}
.td-effect-chart-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #4a2a2a;
}
.td-effect-chart-sub {
  font-size: 0.6875rem;
  color: #9a9185;
}

.td-class-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 9999px;
  border: 1px solid #e7e2d8;
  background: #fff;
  padding: 0.35rem 0.85rem;
  font-size: 0.8125rem;
  color: #4a4038;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.td-class-tag:hover {
  border-color: rgba(139, 26, 26, 0.35);
  color: #8b1a1a;
}
.td-class-tag.is-active {
  border-color: rgba(139, 26, 26, 0.45);
  background: rgba(139, 26, 26, 0.08);
  color: #8b1a1a;
  font-weight: 600;
}
.td-class-tag-count {
  font-variant-numeric: tabular-nums;
  color: #a08a5c;
  font-size: 0.75rem;
}
.td-class-tag.is-active .td-class-tag-count {
  color: #8b1a1a;
}

/* 智能预警：学生姓名标签 */
.td-warn-stu {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 9999px;
  border: 1px solid #fecaca;
  background: #fff1f2;
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
  color: #9f1239;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.td-warn-stu:hover {
  background: #ffe4e6;
  border-color: #fda4a4;
  box-shadow: 0 1px 4px rgba(159, 18, 57, 0.12);
}
.td-warn-stu.is-medium {
  border-color: #fcd34d;
  background: #fffbeb;
  color: #92400e;
}
.td-warn-stu.is-medium:hover {
  background: #fef3c7;
  border-color: #fbbf24;
}
.td-warn-stu.is-low {
  border-color: #e7e5e4;
  background: #fafaf9;
  color: #57534e;
}
.td-warn-stu-name {
  font-weight: 600;
}
.td-warn-stu-level {
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.7);
  padding: 0.05rem 0.4rem;
  font-size: 0.6875rem;
  font-weight: 600;
}

/* 教师 · 我的班级：一行最多 5 个，超出换行 */
.tc-class-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
}
@media (max-width: 1100px) {
  .tc-class-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .tc-class-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .tc-class-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.tc-class-card {
  min-width: 0;
  border-radius: 0.75rem;
  border: 1px solid #efeae0;
  background: #faf8f4;
  padding: 0.7rem 0.8rem;
  text-align: left;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.tc-class-card:hover {
  background: #fff;
  border-color: rgba(201, 168, 76, 0.45);
}
.tc-class-card.is-active {
  background: rgba(201, 168, 76, 0.14);
  border-color: rgba(201, 168, 76, 0.5);
  box-shadow: inset 0 0 0 1px rgba(201, 168, 76, 0.2);
}
.tc-practice-content img {
  max-width: 100%;
  height: auto;
}
.tc-practice-content p + p {
  margin-top: 0.5rem;
}

.sc-player-wrap .video-js {
  width: 100%;
  height: 100%;
}
.sc-player-wrap .video-js .vjs-tech {
  object-fit: contain;
}

/* B站式学习剧场：左约 2/3 播放，右约 1/3 列表（不依赖未编译的 Tailwind 任意值） */
.sc-learn-theater {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(17rem, 1fr);
  gap: 0.75rem;
  align-items: start;
}

.sc-learn-main {
  min-width: 0;
}

.sc-learn-complete-tip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.65rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid #a7f3d0;
  background: linear-gradient(90deg, #ecfdf5 0%, #f0fdf4 100%);
  color: #047857;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
}
.sc-learn-complete-tip.hidden {
  display: none !important;
}
.sc-learn-complete-tip.is-pop {
  animation: sc-learn-complete-pop 0.45s ease-out;
}
.sc-learn-complete-tip-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  background: #059669;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}
@keyframes sc-learn-complete-pop {
  0% { transform: translateY(4px); opacity: 0.4; }
  60% { transform: translateY(-1px); opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}

#learn-progress-bar.is-complete {
  background: #059669;
}

.sc-learn-sidebar {
  min-width: 0;
  /* 与左侧播放窗 + 底部信息区大致齐高 */
  height: calc(var(--sc-learn-stage-h, 26rem) + 11.5rem);
  max-height: none;
}

/* 固定播放窗：顶栏工具条 + 内容区 */
.sc-learn-stage {
  --sc-learn-stage-h: 26rem;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: var(--sc-learn-stage-h);
  overflow: hidden;
  background: #e8f1f8;
}

.sc-learn-toolbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border-bottom: 1px solid #d4e4f0;
  background: #eef5fa;
}

.sc-learn-toolbar-left {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
}

.sc-learn-toolbar-sep {
  display: inline-block;
  width: 1px;
  height: 1rem;
  margin: 0 0.25rem;
  background: #c5d5e3;
}

.sc-learn-page-controls {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.sc-learn-page-controls.hidden,
.sc-learn-toolbar-sep.hidden {
  display: none !important;
}

.sc-learn-page-info {
  margin-left: 0.25rem;
  font-size: 0.75rem;
  color: #64748b;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sc-toolbar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  height: 1.75rem;
  padding: 0 0.55rem;
  border: 1px solid #c5d5e3;
  border-radius: 0.375rem;
  background: #fff;
  color: #334155;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}
.sc-toolbar-btn:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}
.sc-toolbar-btn-pct {
  min-width: 3rem;
  font-variant-numeric: tabular-nums;
}

.sc-learn-type-badge {
  flex-shrink: 0;
  border-radius: 0.375rem;
  background: #334155;
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #fff;
  pointer-events: none;
}

.sc-learn-main .sc-player-wrap {
  flex: 1;
  width: 100%;
  height: auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8f1f8;
}

.sc-learn-main .sc-player-wrap.is-zoomed {
  overflow: auto;
  display: block;
}

.sc-learn-main .sc-player-wrap > * {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}

.sc-learn-main .sc-player-wrap.is-zoomed > * {
  width: 100%;
  height: 100%;
  transform-origin: center center;
  will-change: transform;
}

.sc-learn-fit {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.sc-learn-fit img,
.sc-learn-fit video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.sc-learn-pdf {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #e8f1f8;
}

.sc-learn-pdf-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  background: #e8f1f8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  box-sizing: border-box;
}

.sc-learn-guide {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  overflow: auto;
  padding: 1.25rem 1.5rem;
  background: #e8f1f8;
  color: #334155;
  text-align: left;
}

.sc-learn-guide-title {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: #2a2222;
}

.sc-learn-guide-lead {
  margin: 0.5rem 0 1rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #64748b;
}

.sc-learn-guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 720px) {
  .sc-learn-guide-grid {
    grid-template-columns: 1fr;
  }
}

.sc-learn-guide-card {
  border: 1px solid #d4e4f0;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.88);
  padding: 0.85rem 1rem;
}

.sc-learn-guide-card h4 {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #8b1a1a;
}

.sc-learn-guide-card ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.75rem;
  line-height: 1.65;
  color: #475569;
}

.sc-learn-guide-card li + li {
  margin-top: 0.35rem;
}

.sc-learn-guide-tip {
  margin: 0.85rem 0 0;
  font-size: 0.75rem;
  color: #64748b;
}

.sc-learn-pdf-body canvas {
  display: block;
  flex-shrink: 0;
  max-width: none;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.12);
}

@media (max-width: 1024px) {
  .sc-learn-stage {
    --sc-learn-stage-h: 22rem;
  }
}

.sc-learn-stage:fullscreen,
.sc-learn-stage:-webkit-full-screen {
  width: 100%;
  height: 100%;
  --sc-learn-stage-h: 100%;
  background: #e8f1f8;
}
.sc-learn-stage:fullscreen .sc-player-wrap,
.sc-learn-stage:-webkit-full-screen .sc-player-wrap {
  flex: 1;
  height: auto;
  min-height: 0;
}
.sc-learn-stage:fullscreen .sc-learn-pdf,
.sc-learn-stage:-webkit-full-screen .sc-learn-pdf,
.sc-learn-stage:fullscreen .sc-learn-fit,
.sc-learn-stage:-webkit-full-screen .sc-learn-fit {
  width: 100%;
  height: 100%;
}
.sc-learn-stage:fullscreen .video-js,
.sc-learn-stage:-webkit-full-screen .video-js {
  height: 100% !important;
}

@media (max-width: 900px) {
  .sc-learn-theater {
    grid-template-columns: 1fr;
  }
  .sc-learn-sidebar {
    height: auto;
    max-height: 22rem;
  }
  .sc-learn-stage {
    --sc-learn-stage-h: 18rem;
  }
}

.sc-playlist-chapter {
  border-bottom: 1px solid #ebe6dc;
}

.sc-playlist-chapter-head {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.5rem;
  border: 0;
  border-bottom: 1px solid #ebe6dc;
  background: #f5f1ea;
  padding: 0.65rem 0.85rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s;
}
.sc-playlist-chapter-head:hover {
  background: #efe8dc;
}

.sc-playlist-chevron {
  flex-shrink: 0;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid #78716c;
  border-bottom: 2px solid #78716c;
  transform: rotate(-45deg);
  transition: transform 0.15s;
}
.sc-playlist-chapter.is-open .sc-playlist-chevron {
  transform: rotate(45deg);
  margin-top: -0.15rem;
}

.sc-playlist-chapter-main {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.sc-playlist-chapter-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #44403c;
  line-height: 1.3;
}

.sc-playlist-chapter-meta {
  font-size: 0.6875rem;
  color: #78716c;
  line-height: 1.35;
}

.sc-playlist-chapter-pct {
  flex-shrink: 0;
  min-width: 2.5rem;
  text-align: right;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--fh-red);
}

.sc-playlist-chapter-body[hidden] {
  display: none !important;
}

.sc-playlist-group-head {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 0.5rem 0.85rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #8b1a1a;
  background: linear-gradient(90deg, #f7f1e8, #faf7f2);
  border-bottom: 1px solid #ebe6dc;
  border-top: 1px solid #ebe6dc;
}
.sc-playlist-phase:first-child .sc-playlist-group-head {
  border-top: 0;
}

.sc-playlist-item {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px solid #f0ebe3;
  background: #fff;
  padding: 0.7rem 0.85rem;
  cursor: pointer;
  transition: background 0.12s;
}
.sc-playlist-item:hover {
  background: #faf7f2;
}
.sc-playlist-item.is-active {
  background: rgba(139, 26, 26, 0.06);
  box-shadow: inset 3px 0 0 var(--fh-red);
}
.sc-playlist-item.is-done {
  background: #f0fdf4;
}
.sc-playlist-item.is-done:hover {
  background: #ecfdf5;
}
.sc-playlist-item.is-done.is-active {
  background: #ecfdf5;
  box-shadow: inset 3px 0 0 #059669;
}
.sc-playlist-item.is-done .sc-playlist-type {
  background: #d1fae5;
  color: #047857;
}
.sc-playlist-done-badge {
  flex-shrink: 0;
  border-radius: 999px;
  background: #059669;
  color: #fff;
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.2rem 0.4rem;
}
.sc-playlist-bar-done {
  background: #10b981;
}
.sc-playlist-meta-done {
  color: #059669;
  font-weight: 600;
}
.sc-playlist-chapter.is-chapter-done .sc-playlist-chapter-pct {
  color: #059669;
}
.sc-playlist-type {
  flex-shrink: 0;
  margin-top: 0.1rem;
  border-radius: 0.25rem;
  background: #f1f5f9;
  padding: 0.1rem 0.35rem;
  font-size: 0.625rem;
  font-weight: 600;
  color: #64748b;
}

.sc-task-item {
  border-radius: 0.75rem;
  border: 1px solid #e8e4dc;
  background: #fff;
  padding: 0.75rem 0.85rem;
}

/* 教学看板 · 节安排分组列表 */
.td-assign-tree {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.td-assign-course {
  border: 1px solid rgba(201, 168, 76, 0.28);
  border-radius: 0.85rem;
  background: #fff;
  overflow: hidden;
}
.td-assign-course-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  background: linear-gradient(105deg, rgba(139, 26, 26, 0.08), rgba(201, 168, 76, 0.1));
  border-bottom: 1px solid rgba(201, 168, 76, 0.22);
}
.td-assign-course-badge,
.td-assign-chapter-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 0.25rem;
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1;
}
.td-assign-course-badge {
  background: #8b1a1a;
  color: #f3e6b8;
}
.td-assign-course-title {
  margin: 0;
  font-family: "Noto Serif SC", serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #8b1a1a;
  line-height: 1.35;
}
.td-assign-chapter {
  padding: 0.55rem 0.65rem 0.65rem;
}
.td-assign-chapter + .td-assign-chapter {
  border-top: 1px dashed #efe6d8;
}
.td-assign-chapter-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.45rem;
}
.td-assign-chapter-badge {
  background: rgba(139, 26, 26, 0.12);
  color: #8b1a1a;
}
.td-assign-chapter-title {
  margin: 0;
  min-width: 0;
  flex: 1;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #4a4040;
  line-height: 1.35;
}
.td-assign-chapter-count {
  flex-shrink: 0;
  font-size: 0.6875rem;
  color: #8a7a6a;
}
.td-assign-period-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #efe6d8;
  border-radius: 0.65rem;
  background: #fcfaf6;
  overflow: hidden;
}
.td-assign-period {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.65rem 0.75rem;
}
.td-assign-period + .td-assign-period {
  border-top: 1px solid #efe6d8;
}
.td-assign-period-main {
  min-width: 0;
  flex: 1;
}
.td-assign-period-title {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #2a2222;
  line-height: 1.4;
}
.td-assign-period-classes {
  margin: 0.25rem 0 0;
  font-size: 0.6875rem;
  color: #6b5e5e;
  line-height: 1.35;
}
.td-assign-period-meta {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.3rem;
  max-width: 14rem;
}
.td-assign-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  background: #f1ebe1;
  color: #6b5e5e;
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}
.td-assign-chip.is-open {
  background: rgba(5, 150, 105, 0.12);
  color: #047857;
}
.td-assign-chip.is-closed {
  background: rgba(148, 163, 184, 0.18);
  color: #64748b;
}
.td-assign-chip.is-due {
  background: rgba(194, 65, 12, 0.1);
  color: #c2410c;
}
@media (max-width: 640px) {
  .td-assign-period {
    flex-direction: column;
  }
  .td-assign-period-meta {
    max-width: none;
    justify-content: flex-start;
  }
}

.sc-task-badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.6875rem;
  font-weight: 500;
}
.sc-task-badge.pending { background: #fff7ed; color: #c2410c; }
.sc-task-badge.completed { background: #ecfdf5; color: #047857; }
.sc-task-badge.overdue { background: #fff1f2; color: #be123c; }

.sc-qna-card {
  border-radius: 0.75rem;
  border: 1px solid #ece7df;
  background: #fff;
  padding: 0.85rem 1rem;
}
.sc-qna-card.is-resolved {
  border-color: rgba(201, 168, 76, 0.35);
}

.sc-record-row {
  display: grid;
  gap: 0.35rem;
  border-bottom: 1px solid #f1ebe3;
  padding: 0.85rem 1rem;
}
.sc-record-row:last-child { border-bottom: 0; }

.sc-record-table-wrap {
  width: 100%;
  overflow-x: auto;
}
.sc-record-table {
  width: 100%;
  min-width: 52rem;
  border-collapse: collapse;
  font-size: 0.75rem;
  line-height: 1.35;
}
.sc-record-table th,
.sc-record-table td {
  padding: 0.55rem 0.65rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #f1ebe3;
  color: #3f3535;
}
.sc-record-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #faf7f2;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #8a6f3a;
  white-space: nowrap;
}
.sc-record-table tbody tr:hover td {
  background: rgba(201, 168, 76, 0.06);
}
.sc-record-nowrap {
  white-space: nowrap;
}
.sc-record-dt {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  white-space: nowrap;
}
.sc-record-dt-date {
  font-size: 0.75rem;
  font-weight: 600;
  color: #3f3535;
}
.sc-record-dt-time {
  font-size: 0.6875rem;
  color: #8a7a6a;
  font-variant-numeric: tabular-nums;
}
.sc-record-status-cell {
  white-space: nowrap;
  width: 1%;
}
.sc-record-stack {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 7.5rem;
  max-width: 14rem;
}
.sc-record-primary {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #2a2222;
  letter-spacing: 0.02em;
}
.sc-record-secondary {
  font-size: 0.6875rem;
  line-height: 1.35;
  color: #8a7a6a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sc-record-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  word-break: keep-all;
  background: #f1f5f9;
  color: #64748b;
}
.sc-record-status.is-active {
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
}
.sc-record-status.is-done {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}
.sc-record-status.is-idle {
  background: #f1f5f9;
  color: #64748b;
}

/* 我的学习 · 课程大纲折叠树 */
.sc-outline {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.sc-outline-course-title {
  margin: 0 0 0.75rem;
  font-family: "Noto Serif SC", serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #8b1a1a;
  line-height: 1.4;
}
.sc-outline-chapters {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.sc-outline-chapter {
  border-radius: 0.75rem;
  overflow: hidden;
}
.sc-outline-chapter-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  border: 0;
  border-radius: 0.75rem;
  background: #f3e8d4;
  color: #3f3535;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease;
}
.sc-outline-chapter-head:hover {
  background: #eee0c8;
}
.sc-outline-chapter.is-open .sc-outline-chapter-head {
  border-radius: 0.75rem 0.75rem 0 0;
}
.sc-outline-chapter-left {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  flex: 1;
}
.sc-outline-caret {
  flex-shrink: 0;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid #8a7560;
  border-bottom: 2px solid #8a7560;
  transform: rotate(-45deg);
  transition: transform 0.18s ease;
  margin-right: 0.1rem;
}
.sc-outline-chapter.is-open .sc-outline-caret {
  transform: rotate(45deg);
  margin-top: -0.15rem;
}
.sc-outline-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 0.25rem;
  background: #8b1a1a;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
}
.sc-outline-chapter-title {
  min-width: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: #3a3030;
  line-height: 1.35;
}
.sc-outline-quiz {
  display: inline-flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.28rem;
  margin-left: 0.35rem;
  padding: 0.18rem 0.4rem;
  border-radius: 0.55rem;
  background: rgba(139, 26, 26, 0.06);
  border: 1px solid rgba(139, 26, 26, 0.12);
  max-width: 100%;
}
.sc-outline-quiz-label {
  font-size: 0.65rem;
  font-weight: 800;
  color: #8B1A1A;
  letter-spacing: 0.04em;
}
.sc-outline-quiz-score {
  display: inline-flex;
  align-items: baseline;
  gap: 0.2rem;
  font-size: 0.68rem;
  font-weight: 800;
  color: #8a6f3a;
  white-space: nowrap;
}
.sc-outline-quiz-score i {
  font-style: normal;
  font-size: 0.6rem;
  font-weight: 700;
  color: #a18a55;
}
.sc-outline-quiz-score b {
  font-weight: 800;
  color: #6E1515;
}
.sc-outline-quiz-score em {
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 700;
  color: #8a6f3a;
}
.sc-outline-quiz-score.is-empty b {
  color: #94a3b8;
  font-weight: 700;
}
.sc-outline-quiz.has-score {
  background: rgba(22, 163, 74, 0.08);
  border-color: rgba(22, 163, 74, 0.22);
}
.sc-outline-quiz-grade {
  display: inline-flex;
  align-items: center;
}
.sc-outline-quiz .sc-assess-grade {
  min-width: 1.5rem;
  padding: 0.1rem 0.4rem;
  font-size: 0.72rem;
}
.sc-outline-quiz .sc-assess-pill {
  font-size: 0.62rem;
  padding: 0.08rem 0.4rem;
}
.sc-outline-quiz .sc-assess-eval {
  min-width: 0;
  gap: 0.25rem;
}
.sc-outline-quiz .sc-assess-eval.is-compact {
  padding: 0.1rem 0.15rem;
  border-radius: 0.4rem;
  background: rgba(255, 255, 255, 0.85);
}
.sc-assess-eval-label {
  font-size: 0.6rem;
  font-weight: 800;
  color: #8B1A1A;
  letter-spacing: 0.04em;
}
.sc-outline-quiz .sc-assess-select {
  min-width: 4.6rem;
  max-width: 6rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.18rem 0.3rem;
  border-color: rgba(139, 26, 26, 0.35);
  background: #fff;
}
.sc-outline-quiz .sc-assess-save {
  font-size: 0.68rem;
  padding: 0.18rem 0.5rem;
  background: #8B1A1A;
  color: #fff;
  border-color: #8B1A1A;
}
.sc-outline-quiz .sc-assess-save:hover {
  background: #6e1515;
}
.sc-outline-chapter-right {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.55rem;
  max-width: 58%;
}
.sc-outline-chapter-count {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 500;
  color: #8a7a6a;
  white-space: nowrap;
}
.sc-outline-period-panel {
  padding: 0.55rem 0.55rem 0.65rem;
  background: #f7f0e4;
  border-radius: 0 0 0.75rem 0.75rem;
}
.sc-outline-period-list {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0.55rem;
  border-radius: 0.65rem;
  background: #fff;
  border: 1px solid rgba(201, 168, 76, 0.22);
}
.sc-outline-period + .sc-outline-period {
  border-top: 1px solid #f1ebe1;
}
.sc-outline-period-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.35rem;
  text-decoration: none;
  color: inherit;
}
.sc-outline-period-link:hover .sc-outline-period-title {
  color: #8b1a1a;
}
.sc-outline-period-title {
  min-width: 0;
  flex: 1;
  font-size: 0.875rem;
  font-weight: 500;
  color: #2a2222;
  line-height: 1.4;
}
.sc-outline-journey {
  display: inline-flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.28rem;
}
.sc-outline-bar {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-right: 0.1rem;
}
.sc-outline-bar-track {
  display: block;
  width: 3.25rem;
  height: 0.35rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.28);
}
.sc-outline-bar--sm .sc-outline-bar-track {
  width: 2.5rem;
  height: 0.3rem;
}
.sc-outline-bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8B1A1A, #C9A84C);
  transition: width 0.25s ease;
}
.sc-outline-bar.is-done .sc-outline-bar-fill {
  background: linear-gradient(90deg, #15803d, #4ade80);
}
.sc-outline-bar.is-empty .sc-outline-bar-fill {
  width: 0 !important;
}
.sc-outline-bar-pct {
  font-size: 0.6875rem;
  font-weight: 800;
  color: #8a6f3a;
  font-variant-numeric: tabular-nums;
  min-width: 2.1rem;
}
.sc-outline-bar.is-done .sc-outline-bar-pct {
  color: #15803d;
}
.sc-outline-journey-meta {
  margin-right: 0.15rem;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #8a6f3a;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.sc-outline-period-main {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 0.45rem;
}
.sc-outline-period-done {
  flex-shrink: 0;
  border-radius: 999px;
  padding: 0.08rem 0.4rem;
  font-size: 0.625rem;
  font-weight: 700;
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}
.sc-outline-period.is-complete .sc-outline-period-title {
  color: #166534;
}
.sc-outline-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 0.12rem 0.35rem;
  border-radius: 0.3rem;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.2;
  border: 1px solid transparent;
}
.sc-outline-step.is-done {
  background: rgba(22, 163, 74, 0.14);
  color: #15803d;
  border-color: rgba(22, 163, 74, 0.22);
}
.sc-outline-step.is-todo {
  background: rgba(139, 26, 26, 0.08);
  color: #8B1A1A;
  border-color: rgba(139, 26, 26, 0.12);
}
.sc-outline-step.is-na {
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
  border-color: rgba(148, 163, 184, 0.18);
}
.sc-outline-period-link.is-static {
  cursor: default;
}
.sc-outline-empty {
  margin: 0;
  padding: 0.65rem 0.85rem;
  font-size: 0.75rem;
  color: #94a3b8;
}

@media (max-width: 640px) {
  .sc-outline-period-link {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .sc-outline-chapter-right {
    max-width: 100%;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .sc-outline-journey {
    width: 100%;
    justify-content: flex-start;
  }
}

.sc-records-more-btn {
  flex-shrink: 0;
  border-radius: 0.5rem;
  border: 1px solid rgba(201, 168, 76, 0.45);
  background: rgba(201, 168, 76, 0.08);
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #8b1a1a;
  transition: background 0.15s, border-color 0.15s;
}
.sc-records-more-btn:hover {
  background: rgba(201, 168, 76, 0.16);
  border-color: rgba(201, 168, 76, 0.7);
}

.sc-records-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.sc-records-modal.hidden {
  display: none;
}
.sc-records-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(42, 34, 34, 0.45);
  backdrop-filter: blur(2px);
}
.sc-records-modal-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(72rem, 100%);
  max-height: min(88vh, 52rem);
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid #efe6d8;
  background: #fff;
  box-shadow: 0 24px 60px rgba(42, 34, 34, 0.2);
}
.sc-records-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid #f1ebe3;
}
.sc-records-modal-close {
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 0.5rem;
  background: #f8fafc;
  color: #64748b;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.sc-records-modal-close:hover {
  background: #f1f5f9;
  color: #334155;
}
.sc-records-modal-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0.25rem 0;
}
.sc-records-modal-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid #f1ebe3;
  background: #faf7f2;
}
.sc-records-page-btn {
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 0.35rem 0.85rem;
  font-size: 0.8125rem;
  color: #334155;
  cursor: pointer;
}
.sc-records-page-btn:hover:not(:disabled) {
  border-color: rgba(201, 168, 76, 0.55);
  color: #8b1a1a;
}
.sc-records-page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.sc-records-page-info {
  min-width: 9rem;
  text-align: center;
  font-size: 0.75rem;
  color: #6b5e5e;
}

/* 教师资源绑定：左右分栏（左侧随章节内容增高，不截断） */
.tr-bind-layout {
  display: grid;
  grid-template-columns: minmax(17rem, 0.92fr) minmax(0, 1.45fr);
  gap: 1rem;
  align-items: start;
}
.tr-bind-sidebar,
.tr-bind-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.tr-bind-sidebar {
  max-height: none;
}
.tr-bind-sidebar-body {
  flex: none;
  overflow: visible;
}
.tr-bind-main-body {
  flex: 1;
  min-height: 12rem;
}
@media (max-width: 960px) {
  .tr-bind-layout {
    grid-template-columns: 1fr;
  }
  .tr-bind-main-body {
    min-height: 14rem;
  }
}

/* 教师资源绑定：复用教学安排的课程/章样式，节列表保留选择态 */
.tr-period-tree {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.tr-period-tree .tt-course-panel {
  margin: 0;
  border: 1px solid #efe6d8;
  border-radius: 0.75rem;
  box-shadow: none;
}
.tr-period-tree .tt-course-panel + .tt-course-panel {
  margin-top: 0;
}
.tr-period-tree .tt-course-head {
  padding: 0.75rem 0.85rem;
}
.tr-period-tree .tt-course-title {
  font-size: 1.0625rem;
}
.tr-period-tree .tt-chapter-list {
  padding: 0.45rem;
}
.tr-period-tree .tt-chapter-body.tr-period-list {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.35rem 0.35rem 0.45rem 0.55rem;
  background: #fff;
}
.tr-period-tree .tt-chapter-body.tr-period-list[hidden] {
  display: none !important;
}

.tr-period-item {
  display: block;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 0.55rem;
  background: transparent;
  padding: 0.45rem 0.55rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}
.tr-period-item:hover {
  background: #faf7f2;
  border-color: #efe6d8;
}
.tr-period-item.is-active {
  background: rgba(201, 168, 76, 0.14);
  border-color: rgba(201, 168, 76, 0.45);
}

.tr-period-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.tr-period-title {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.35;
  color: #3f3535;
}
.tr-period-item.is-active .tr-period-title {
  color: #2a2222;
  font-weight: 600;
}

/* 教师教学安排：课程 > 章（手风琴）> 节 */
.tt-course-panel + .tt-course-panel {
  margin-top: 1rem;
}
.tt-course-head {
  border-bottom: 1px solid #efe6d8;
  padding: 1rem 1.1rem;
  background: linear-gradient(90deg, rgba(139, 26, 26, 0.08), rgba(201, 168, 76, 0.14));
}
.tt-course-head--actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.tt-course-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.tt-course-title {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  color: #8b1a1a;
}
.tt-class-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.55rem;
}
.tt-class-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid #e7e5e4;
  background: #fff;
  font-size: 0.72rem;
  color: #57534e;
  cursor: pointer;
  user-select: none;
}
.tt-class-chip input {
  margin: 0;
  accent-color: #8b1a1a;
}
.tt-class-chip.is-on {
  border-color: rgba(139, 26, 26, 0.35);
  background: rgba(139, 26, 26, 0.08);
  color: #8b1a1a;
  font-weight: 650;
}
.tt-class-chip.is-saving {
  opacity: 0.65;
  pointer-events: none;
}
.tt-book {
  margin: 0.65rem 0.5rem 0;
  border: 1px solid rgba(139, 26, 26, 0.18);
  border-radius: 0.75rem;
  background: rgba(251, 247, 240, 0.65);
  overflow: hidden;
}
.tt-book + .tt-book {
  margin-top: 0.75rem;
}
.tt-book-head {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid rgba(201, 168, 76, 0.35);
  background: linear-gradient(90deg, rgba(139, 26, 26, 0.06), rgba(201, 168, 76, 0.1));
}
.tt-book-label {
  flex-shrink: 0;
  margin-top: 0.15rem;
  border-radius: 0.3rem;
  background: #8b1a1a;
  color: #f3e6b8;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.25rem 0.35rem;
}
.tt-book-title {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: #6e1515;
  line-height: 1.4;
}
.tt-chapter-list {
  padding: 0.5rem;
}
.tt-book > .tt-chapter-list {
  padding-top: 0.35rem;
}
.tt-chapter {
  border: 1px solid rgba(201, 168, 76, 0.45);
  border-radius: 0.75rem;
  background: #fff;
  overflow: hidden;
}
.tt-chapter + .tt-chapter {
  margin-top: 0.5rem;
}
.tt-chapter-head {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.5rem;
  border: 0;
  background: linear-gradient(90deg, #f3e8d0 0%, #f7efdf 55%, #faf6ee 100%);
  padding: 0.8rem 0.9rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s, filter 0.12s;
}
.tt-chapter-head:hover {
  filter: brightness(0.97);
  background: linear-gradient(90deg, #eedfbf 0%, #f3e8d0 55%, #f7efdf 100%);
}
.tt-chapter.is-open .tt-chapter-head {
  background: linear-gradient(90deg, #e8d5a8 0%, #f0e2c0 50%, #f5ebd4 100%);
  border-bottom: 1px solid rgba(201, 168, 76, 0.4);
}
.tt-chapter-chevron {
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid #8a6f3a;
  border-bottom: 2px solid #8a6f3a;
  transform: rotate(-45deg);
  transition: transform 0.15s;
}
.tt-chapter.is-open .tt-chapter-chevron {
  transform: rotate(45deg);
  margin-top: -0.15rem;
}
.tt-chapter-label {
  flex-shrink: 0;
  border-radius: 0.25rem;
  background: #8b1a1a;
  color: #f8f1dc;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.4rem;
}
.tt-chapter-title {
  min-width: 0;
  flex: 1;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  color: #3f3535;
}
.tt-chapter-count {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: #8a6f3a;
  font-variant-numeric: tabular-nums;
}
.tt-chapter-body[hidden] {
  display: none !important;
}
.tt-period-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  padding: 0.7rem 0.85rem 0.7rem 1.75rem;
  border-top: 1px solid #f3ece3;
  background: #fff;
}
.tt-period-item:first-child {
  border-top: 0;
}
.tt-period-main {
  min-width: 0;
  flex: 1;
}
.tt-period-title {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.35;
  color: #3f3535;
}
.tt-period-meta {
  margin: 0.2rem 0 0;
  font-size: 0.6875rem;
  line-height: 1.4;
  color: #8a7a6a;
}
.tt-period-actions {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.tt-btn-primary,
.tt-btn-secondary {
  display: inline-flex;
  align-items: center;
  border-radius: 0.5rem;
  padding: 0.35rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.tt-btn-primary {
  border: 1px solid rgba(201, 168, 76, 0.45);
  background: rgba(201, 168, 76, 0.12);
  color: #8b1a1a;
}
.tt-btn-primary:hover {
  background: rgba(201, 168, 76, 0.22);
}
.tt-btn-secondary {
  border: 1px solid #e7e5e4;
  background: #fff;
  color: #57534e;
}
.tt-btn-secondary:hover {
  background: #fafaf9;
}
.tt-period-empty {
  margin: 0;
  padding: 0.85rem 1rem;
  font-size: 0.75rem;
  color: #a8a29e;
  text-align: center;
}

/* —— 成长数据 —— */
.sc-growth-period {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(201, 168, 76, 0.25);
}
.sc-growth-period-btn {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.sc-growth-period-btn.is-active {
  background: #fff;
  color: #8b1a1a;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}
.sc-growth-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
@media (min-width: 768px) {
  .sc-growth-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.sc-growth-kpi {
  border-radius: 1rem;
  border: 1px solid rgba(201, 168, 76, 0.22);
  background: rgba(255, 255, 255, 0.88);
  padding: 0.9rem 1rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.sc-growth-kpi .label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 0.35rem;
}
.sc-growth-kpi strong {
  font-size: 1.35rem;
  font-weight: 800;
  color: #1e293b;
  letter-spacing: 0.02em;
}
.sc-growth-kpi strong.sc-growth-kpi-time {
  font-size: 1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  line-height: 1.35;
  word-break: break-all;
}
.sc-growth-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 1024px) {
  .sc-growth-grid { grid-template-columns: 1.15fr 0.85fr; }
}
.sc-growth-card {
  border-radius: 1.15rem;
  border: 1px solid rgba(201, 168, 76, 0.2);
  background: rgba(255, 255, 255, 0.9);
  padding: 1.15rem 1.25rem 1.35rem;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}
.sc-growth-card-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #1e293b;
}
.sc-growth-card-head p {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  color: #94a3b8;
}
.sc-growth-card-head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.sc-growth-radar-wrap {
  max-width: 22rem;
  margin: 0.75rem auto 0.5rem;
}
.sc-growth-dim-panel {
  margin-top: 0;
}
.sc-growth-dim-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  color: #1e293b;
}
.sc-growth-dim-head strong {
  font-family: "Noto Serif SC", "Source Han Serif SC", Songti SC, serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.sc-growth-dim-head strong::before {
  content: "";
  display: inline-block;
  width: 0.28rem;
  height: 1em;
  margin-right: 0.45rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #c9a84c, #8b1a1a);
  vertical-align: -0.12em;
}
.sc-growth-rank-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 0.85rem;
}
@media (min-width: 480px) {
  .sc-growth-rank-grid { grid-template-columns: 1fr 1fr; }
}
.sc-growth-rank-card {
  border-radius: 0.9rem;
  padding: 0.95rem 1rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}
.sc-growth-rank-card.is-top10 {
  border-color: rgba(180, 35, 45, 0.35);
  background: linear-gradient(145deg, rgba(180, 35, 45, 0.08), #fff);
}
.sc-growth-rank-card.is-top25 {
  border-color: rgba(201, 168, 76, 0.45);
  background: linear-gradient(145deg, rgba(201, 168, 76, 0.12), #fff);
}
.sc-growth-rank-card.is-top50 {
  border-color: rgba(59, 130, 246, 0.3);
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.08), #fff);
}
.sc-growth-rank-card.is-below50 {
  border-color: #e2e8f0;
  background: #f8fafc;
}
.sc-growth-rank-scope {
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
}
.sc-growth-rank-band {
  margin-top: 0.35rem;
  font-size: 1.35rem;
  font-weight: 900;
  color: #1e293b;
  letter-spacing: 0.04em;
}
.sc-growth-rank-meta,
.sc-growth-rank-score {
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: #64748b;
}
.sc-growth-band-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.9rem;
}
.sc-growth-band-legend span {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  color: #64748b;
}
.sc-growth-band-legend .is-top10 { border-color: rgba(180, 35, 45, 0.35); color: #b4232d; }
.sc-growth-band-legend .is-top25 { border-color: rgba(201, 168, 76, 0.45); color: #a16207; }
.sc-growth-band-legend .is-top50 { border-color: rgba(59, 130, 246, 0.35); color: #2563eb; }
.sc-growth-chart-toggle {
  display: inline-flex;
  gap: 0.2rem;
  padding: 0.2rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
}
.sc-growth-toggle-btn {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
}
.sc-growth-toggle-btn.is-active {
  background: #fff;
  color: #8b1a1a;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}
.sc-growth-chapter-chart {
  position: relative;
  height: 16rem;
  margin: 0.5rem 0 1rem;
}
.sc-growth-table-wrap {
  overflow-x: auto;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
}
.sc-growth-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}
.sc-growth-table th,
.sc-growth-table td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid #f1f5f9;
  white-space: nowrap;
}
.sc-growth-table th {
  background: #f8fafc;
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.04em;
}
.sc-growth-table tbody tr:last-child td { border-bottom: 0; }
.sc-growth-delta.is-up { color: #15803d; font-weight: 700; }
.sc-growth-delta.is-down { color: #b4232d; font-weight: 700; }
.sc-growth-delta.is-flat { color: #94a3b8; }

/* —— 知信行雷达强化 —— */
.sc-growth-radar-card { margin-bottom: 0; }
.sc-growth-radar-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  margin-top: 0.85rem;
}
@media (min-width: 960px) {
  .sc-growth-radar-layout {
    grid-template-columns: minmax(16rem, 0.95fr) minmax(0, 1.05fr);
    align-items: start;
  }
}
.sc-growth-dim-chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.sc-growth-dim-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.85rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.sc-growth-dim-chip:hover {
  border-color: rgba(201, 168, 76, 0.55);
  background: #fff;
}
.sc-growth-dim-chip.is-active {
  border-color: rgba(139, 26, 26, 0.45);
  background: linear-gradient(160deg, rgba(139, 26, 26, 0.08), #fff);
  box-shadow: 0 4px 14px rgba(139, 26, 26, 0.08);
}
.sc-growth-dim-chip-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
}
.sc-growth-dim-chip.is-active .sc-growth-dim-chip-label { color: #8b1a1a; }
.sc-growth-dim-chip-score {
  font-size: 1.25rem;
  font-weight: 900;
  color: #1e293b;
  letter-spacing: 0.02em;
}
.sc-growth-radar-detail {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 100%;
}
.sc-growth-radar-detail .sc-growth-dim-panel {
  margin-top: 0;
  padding: 0;
  border: 0;
}
.sc-growth-advice,
.sc-growth-insight-block {
  margin-top: 0;
  padding: 0.9rem 1rem;
  border-radius: 0.9rem;
  background: rgba(248, 250, 252, 0.95);
  border: 1px solid #e8e4dc;
}
.sc-growth-advice.is-primary {
  background: linear-gradient(160deg, rgba(139, 26, 26, 0.06), #fff 55%);
  border-color: rgba(139, 26, 26, 0.16);
  box-shadow: 0 6px 18px rgba(139, 26, 26, 0.05);
}
.sc-growth-insight-block.is-suggest {
  background: linear-gradient(145deg, rgba(201, 168, 76, 0.12), #fff);
  border-color: rgba(201, 168, 76, 0.35);
}
.sc-growth-advice-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #8b1a1a;
  margin-bottom: 0.4rem;
}
.sc-growth-advice p,
.sc-growth-insight-block p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.7;
  color: #475569;
}
.sc-growth-insight {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0;
  flex: 1;
}

/* —— 每章学习进展 —— */
.sc-growth-chapter-chart--wide {
  height: 18rem;
  margin-bottom: 1.1rem;
}
.sc-growth-chapter-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.35rem 0 0.75rem;
}
.sc-growth-chapter-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
}
.sc-growth-chapter-legend span::before {
  content: '';
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 0.2rem;
}
.sc-growth-chapter-legend .is-completion::before { background: #8b1a1a; }
.sc-growth-chapter-legend .is-quiz::before { background: #c9a84c; }
.sc-growth-chapter-legend .is-practice::before { background: #3b82f6; }
.sc-growth-chapter-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}
@media (min-width: 768px) {
  .sc-growth-chapter-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .sc-growth-chapter-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.sc-growth-chapter-card {
  border-radius: 0.95rem;
  border: 1px solid rgba(201, 168, 76, 0.22);
  background: linear-gradient(180deg, #fff 0%, #fbf7f0 100%);
  padding: 0.95rem 1rem 1.05rem;
}
.sc-growth-chapter-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}
.sc-growth-chapter-index {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #c9a84c;
}
.sc-growth-chapter-card h3 {
  margin: 0.15rem 0 0;
  font-size: 0.92rem;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.4;
}
.sc-growth-chapter-card-head p {
  margin: 0.2rem 0 0;
  font-size: 0.72rem;
  color: #94a3b8;
}
.sc-growth-metric { margin-top: 0.55rem; }
.sc-growth-metric-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.28rem;
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
}
.sc-growth-metric-head strong {
  font-size: 0.82rem;
  font-weight: 800;
  color: #1e293b;
}
.sc-growth-metric-track {
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  overflow: hidden;
}
.sc-growth-metric-fill {
  height: 100%;
  border-radius: 999px;
  min-width: 0;
  transition: width 0.35s ease;
}
.sc-growth-metric-fill.is-completion { background: linear-gradient(90deg, #a83232, #8b1a1a); }
.sc-growth-metric-fill.is-quiz { background: linear-gradient(90deg, #e8d49a, #c9a84c); }
.sc-growth-metric-fill.is-practice { background: linear-gradient(90deg, #93c5fd, #3b82f6); }

/* —— 章节切换 / 排名区间条 —— */
.sc-growth-chapter-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  justify-content: flex-end;
}
.sc-growth-chapter-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
}
.sc-growth-chapter-switch select {
  min-width: 12rem;
  max-width: min(22rem, 70vw);
  border-radius: 0.65rem;
  border: 1px solid rgba(201, 168, 76, 0.35);
  background: #fff;
  padding: 0.4rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #1e293b;
}
.sc-growth-chapter-card.is-focus {
  border-color: rgba(139, 26, 26, 0.28);
  box-shadow: 0 8px 22px rgba(74, 22, 22, 0.06);
}
.sc-growth-chapter-nav {
  display: inline-flex;
  gap: 0.35rem;
}
.sc-growth-chapter-nav-btn {
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
}
.sc-growth-chapter-nav-btn:hover:not(:disabled) {
  border-color: rgba(201, 168, 76, 0.5);
  color: #8b1a1a;
}
.sc-growth-chapter-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.sc-growth-metric-values {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.sc-growth-chapter-delta-note {
  margin: 0.85rem 0 0;
  font-size: 0.72rem;
  color: #94a3b8;
}
.sc-growth-rank-track {
  position: relative;
  margin: 0.85rem 0 0.55rem;
  padding-top: 1.35rem;
}
.sc-growth-rank-segs {
  display: flex;
  width: 100%;
  height: 0.85rem;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.25);
}
.sc-growth-rank-seg {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  position: relative;
}
.sc-growth-rank-seg span {
  position: absolute;
  top: -1.15rem;
  font-size: 0.62rem;
  font-weight: 800;
  color: #94a3b8;
  white-space: nowrap;
}
.sc-growth-rank-seg.top10 { background: linear-gradient(90deg, #8b1a1a, #a83232); }
.sc-growth-rank-seg.top25 { background: linear-gradient(90deg, #c9a84c, #e8d49a); }
.sc-growth-rank-seg.top50 { background: linear-gradient(90deg, #3b82f6, #93c5fd); }
.sc-growth-rank-seg.below50 { background: linear-gradient(90deg, #cbd5e1, #e2e8f0); }
.sc-growth-rank-marker {
  position: absolute;
  top: 1.15rem;
  transform: translateX(-50%);
  z-index: 2;
}
.sc-growth-rank-pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.55rem;
  height: 1.55rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: #8b1a1a;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.95), 0 4px 10px rgba(139, 26, 26, 0.35);
}
.sc-growth-rank-encourage {
  margin: 0.65rem 0 0.2rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.7rem;
  background: linear-gradient(145deg, rgba(201, 168, 76, 0.12), #fff);
  border: 1px solid rgba(201, 168, 76, 0.28);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.55;
  color: #6e1515;
}

/* 测评与实践：卡片化展示 */
.sc-assess-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}
.sc-assess-kpi {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.35rem;
  padding: 0.7rem 0.85rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(201, 168, 76, 0.28);
  background: linear-gradient(160deg, rgba(201, 168, 76, 0.12), #fff 55%);
}
.sc-assess-kpi-label {
  width: 100%;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #8a6f3a;
}
.sc-assess-kpi strong {
  font-family: "Noto Serif SC", serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #8B1A1A;
  line-height: 1;
}
.sc-assess-kpi em {
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
}
.sc-assess-block + .sc-assess-block {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(139, 26, 26, 0.15);
}
.sc-assess-block-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}
.sc-assess-block-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.4rem;
  background: #8B1A1A;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
}
.sc-assess-title {
  margin: 0;
  font-family: "Noto Serif SC", serif;
  font-size: 0.98rem;
  font-weight: 700;
  color: #6E1515;
}
.sc-assess-empty {
  margin: 0;
  padding: 0.9rem 0;
  font-size: 0.8125rem;
  color: #94a3b8;
  text-align: center;
}
.sc-assess-cards,
.sc-assess-quiz-grid {
  display: grid;
  gap: 0.65rem;
}
.sc-assess-quiz-grid {
  grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr));
}
.sc-assess-cards--final {
  grid-template-columns: 1fr;
}
.sc-final-block {
  display: grid;
  gap: 0.65rem;
}
.sc-final-eval-panel {
  padding: 0.9rem 1rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(139, 26, 26, 0.18);
  background: linear-gradient(160deg, rgba(139, 26, 26, 0.05), #fff 48%);
}
.sc-final-eval-panel.sc-final-eval-focus,
[data-an="assessments-section"].sc-final-eval-focus {
  box-shadow: 0 0 0 3px rgba(139, 26, 26, 0.22);
  transition: box-shadow 0.35s ease;
}
.sc-final-eval-panel.is-readonly {
  background: #faf7f2;
  border-color: #efe6d6;
}
.sc-final-eval-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.65rem;
}
.sc-final-eval-head strong {
  font-family: "Noto Serif SC", serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: #6E1515;
}
.sc-final-eval-head span {
  font-size: 0.72rem;
  font-weight: 600;
  color: #8a6f3a;
}
.sc-final-eval-hint,
.sc-final-eval-empty,
.sc-final-eval-suggest {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  color: #8a7a6a;
}
.sc-final-eval-tip {
  display: grid;
  gap: 0.2rem;
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.65rem;
  font-size: 0.75rem;
  line-height: 1.45;
}
.sc-final-eval-tip strong {
  font-weight: 800;
}
.sc-final-eval-tip.is-wait {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #92400e;
}
.sc-final-eval-tip.is-ok {
  background: rgba(22, 163, 74, 0.1);
  border: 1px solid rgba(22, 163, 74, 0.28);
  color: #166534;
  font-weight: 700;
}
.sc-final-eval-panel.is-locked .sc-final-eval-pick {
  opacity: 0.45;
  cursor: not-allowed;
}
.sc-final-eval-panel.is-locked .sc-final-eval-save {
  opacity: 0.55;
  cursor: not-allowed;
}
.sc-final-eval-pick:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.sc-final-eval-suggest {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.sc-final-eval-choices {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}
.sc-final-eval-pick {
  border: 1px solid #e2d6c2;
  border-radius: 0.65rem;
  background: #fff;
  padding: 0.55rem 0.35rem;
  font-family: "Noto Serif SC", serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: #6b6258;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}
.sc-final-eval-pick:hover {
  transform: translateY(-1px);
}
.sc-final-eval-pick.is-excellent.is-active,
.sc-final-eval-pick.is-excellent:hover {
  background: linear-gradient(145deg, #fff7db, #fde68a);
  border-color: rgba(201, 168, 76, 0.55);
  color: #92400e;
}
.sc-final-eval-pick.is-good.is-active,
.sc-final-eval-pick.is-good:hover {
  background: rgba(22, 163, 74, 0.14);
  border-color: rgba(22, 163, 74, 0.35);
  color: #166534;
}
.sc-final-eval-pick.is-medium.is-active,
.sc-final-eval-pick.is-medium:hover {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.35);
  color: #1d4ed8;
}
.sc-final-eval-pick.is-poor.is-active,
.sc-final-eval-pick.is-poor:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
  color: #b91c1c;
}
.sc-final-eval-pick.is-active {
  box-shadow: 0 0 0 2px rgba(139, 26, 26, 0.12);
}
.sc-final-eval-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}
.sc-final-eval-save {
  background: #8B1A1A !important;
  color: #fff !important;
  border-color: #8B1A1A !important;
  padding: 0.4rem 0.9rem !important;
  font-size: 0.8rem !important;
}
.sc-final-eval-save:hover {
  background: #6e1515 !important;
}
.sc-final-eval-current {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: #6b6258;
}
.sc-final-eval-result {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.sc-final-eval-result-tip {
  font-size: 0.72rem;
  color: #94a3b8;
}
@media (max-width: 640px) {
  .sc-final-eval-choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.sc-assess-card {
  position: relative;
  padding: 0.85rem 0.9rem;
  border-radius: 0.95rem;
  border: 1px solid #efe6d6;
  background: #fff;
  box-shadow: 0 1px 0 rgba(139, 26, 26, 0.03);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.sc-assess-card:hover {
  border-color: rgba(201, 168, 76, 0.55);
  box-shadow: 0 8px 20px rgba(139, 26, 26, 0.06);
}
.sc-assess-card.is-final {
  background: linear-gradient(145deg, #fffaf0, #fff);
  border-color: rgba(201, 168, 76, 0.4);
}
.sc-assess-card.is-practice.is-submitted,
.sc-assess-card.is-practice.is-reviewed {
  border-color: rgba(22, 163, 74, 0.28);
}
.sc-assess-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.sc-assess-card-kicker {
  margin: 0;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #a18a55;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sc-assess-card-title {
  margin: 0.2rem 0 0;
  font-size: 0.86rem;
  font-weight: 700;
  color: #2f2626;
  line-height: 1.35;
}
.sc-assess-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin-top: 0.7rem;
  padding-top: 0.65rem;
  border-top: 1px dashed #f0e7d8;
}
.sc-assess-card-meta span {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: #3f3535;
}
.sc-assess-card-meta i {
  font-style: normal;
  font-size: 0.65rem;
  font-weight: 700;
  color: #94a3b8;
}
.sc-assess-card-meta b {
  font-weight: 700;
}
.sc-assess-card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin-top: 0.7rem;
}
.sc-assess-card-grade {
  margin-left: auto;
}
.sc-assess-card-time {
  width: 100%;
  font-size: 0.68rem;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
}
.sc-assess-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
}
.sc-assess-pill.is-done {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}
.sc-assess-pill.is-miss {
  background: rgba(148, 163, 184, 0.16);
  color: #64748b;
}
.sc-assess-pill.is-draft {
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
}
.sc-assess-pill.is-closed {
  background: rgba(100, 116, 139, 0.12);
  color: #475569;
}
.sc-assess-pill.is-pending {
  background: rgba(139, 26, 26, 0.08);
  color: #8B1A1A;
}
.sc-assess-grade {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.85rem;
  padding: 0.18rem 0.55rem;
  border-radius: 0.45rem;
  font-family: "Noto Serif SC", serif;
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.04em;
}
.sc-assess-grade.is-excellent {
  background: linear-gradient(145deg, #fff7db, #fde68a);
  color: #92400e;
  box-shadow: inset 0 0 0 1px rgba(201, 168, 76, 0.45);
}
.sc-assess-grade.is-good {
  background: rgba(22, 163, 74, 0.14);
  color: #166534;
  box-shadow: inset 0 0 0 1px rgba(22, 163, 74, 0.22);
}
.sc-assess-grade.is-medium {
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.2);
}
.sc-assess-grade.is-poor {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
  box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.2);
}
.sc-assess-grade.is-suggest {
  opacity: 0.92;
  font-size: 0.72rem;
  font-weight: 700;
}
.sc-assess-grade.is-empty,
.sc-assess-grade.is-neutral {
  background: #f8fafc;
  color: #94a3b8;
  box-shadow: inset 0 0 0 1px #e2e8f0;
  font-size: 0.72rem;
  font-weight: 700;
}
.sc-assess-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  flex-shrink: 0;
}
.sc-assess-score-ring {
  --pct: 0;
  display: grid;
  place-items: center;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 999px;
  background:
    radial-gradient(closest-side, #fff 68%, transparent 70% 100%),
    conic-gradient(#8B1A1A calc(var(--pct) * 1%), #efe6d6 0);
}
.sc-assess-score-num {
  font-family: "Noto Serif SC", serif;
  font-size: 0.82rem;
  font-weight: 800;
  color: #8B1A1A;
  line-height: 1;
}
.sc-assess-score-num small {
  font-size: 0.58rem;
  font-weight: 700;
  margin-left: 0.05rem;
}
.sc-assess-score-sub {
  font-size: 0.62rem;
  color: #94a3b8;
  white-space: nowrap;
}
.sc-assess-score.is-empty .sc-assess-score-ring {
  background:
    radial-gradient(closest-side, #fff 68%, transparent 70% 100%),
    conic-gradient(#e2e8f0 100%, #e2e8f0 0);
}
.sc-assess-score.is-empty .sc-assess-score-num {
  color: #94a3b8;
  font-size: 0.95rem;
}
.sc-assess-table-wrap {
  width: 100%;
  overflow-x: auto;
}
.sc-assess-table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: 0.78rem;
  line-height: 1.4;
}
.sc-assess-table th,
.sc-assess-table td {
  padding: 0.5rem 0.6rem;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid #f1ebe3;
  color: #3f3535;
}
.sc-assess-table th {
  background: #faf7f2;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #8a6f3a;
  white-space: nowrap;
}
.sc-assess-table tbody tr:hover td {
  background: rgba(201, 168, 76, 0.06);
}
.sc-assess-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(139, 26, 26, 0.08);
  color: #8B1A1A;
}
.sc-assess-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}
.sc-assess-badge.is-eval {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}
.sc-assess-badge.is-suggest {
  background: rgba(201, 168, 76, 0.18);
  color: #8a6f3a;
}
@media (max-width: 640px) {
  .sc-assess-summary {
    grid-template-columns: 1fr;
  }
  .sc-assess-quiz-grid {
    grid-template-columns: 1fr;
  }
}
.sc-assess-eval {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  min-width: 11rem;
}
.sc-assess-select {
  border: 1px solid #e2d6c2;
  border-radius: 0.4rem;
  background: #fff;
  padding: 0.2rem 0.4rem;
  font-size: 0.75rem;
  color: #3f3535;
}
.sc-assess-save {
  border: 1px solid rgba(139, 26, 26, 0.35);
  border-radius: 0.4rem;
  background: rgba(139, 26, 26, 0.08);
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #8B1A1A;
  cursor: pointer;
}
.sc-assess-save:hover {
  background: rgba(139, 26, 26, 0.14);
}
.sc-assess-save:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.sc-assess-eval-msg {
  width: 100%;
  font-size: 0.68rem;
  color: #8a6f3a;
}
.sc-assess-eval-msg.is-ok {
  color: #15803d;
}
.sc-assess-eval-msg.is-err {
  color: #b91c1c;
}
.sc-login-list {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0.5rem 0.15rem;
}
.sc-login-item {
  padding: 0.55rem 0.45rem;
  border-bottom: 1px dashed #eee4d6;
}
.sc-login-item:last-child {
  border-bottom: 0;
}
.sc-login-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.sc-login-action {
  font-size: 0.78rem;
  font-weight: 700;
  color: #8B1A1A;
}
.sc-login-ip {
  font-size: 0.7rem;
  color: #8a7a6a;
  font-variant-numeric: tabular-nums;
}
.sc-login-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  margin-top: 0.2rem;
  font-size: 0.68rem;
  color: #94a3b8;
}
.sc-login-module {
  color: #8a6f3a;
}
.sc-login-content {
  margin: 0.25rem 0 0;
  font-size: 0.7rem;
  color: #6b6258;
  line-height: 1.4;
}
