/* ============================================================
   CAIE 学习中心 — 设计系统 + 组件 + 页面样式
   ============================================================ */

/* ---------- 1. Design Tokens ---------- */
:root {
  /* 品牌色 */
  --brand: #1b6ef3;
  --brand-strong: #0f5ad6;
  --brand-soft: #e8f1ff;
  --brand-softer: #f4f8ff;
  --brand-ring: #b9d5ff;

  /* 语义色 */
  --success: #2fae76;
  --success-soft: #e7f7ef;
  --success-strong: #1f8f5f;
  --warn: #e8804a;
  --warn-soft: #fdf0e8;
  --warn-strong: #c9672f;
  --info: #1b6ef3;
  --info-soft: #e8f1ff;
  --muted: #8a94a6;
  --muted-soft: #f1f3f7;

  /* 中性色 */
  --ink: #1a2233;
  --ink-2: #414b5e;
  --ink-3: #6b7488;
  --ink-4: #99a1b0;
  --line: #e7ebf2;
  --line-soft: #f0f3f8;
  --page: #f5f8fd;
  --surface: #ffffff;
  --surface-2: #fafbfe;

  /* 尺寸 */
  --topbar-h: 60px;
  /* 左侧栏总宽（含左侧留白） */
  --shell-max: 1480px;      /* 整个外壳（导航2 + 核心6 + 右栏2）定宽居中，超宽屏时左右留白 */
  --rail-w: 240px;          /* 导航栏宽度（≈2 份） */
  /* 导航文字距外壳左缘的距离（外壳自带左右留白，导航不再额外内缩） */
  --nav-inset: 24px;
  /* 导航栏与核心内容区之间的距离（示意图实测约 56px） */
  --nav-gap: 56px;
  /* 内容区右侧内边距 */
  --content-pad: 24px;
  --aside-w: 320px;         /* 右栏（课件卡 / 进度卡）宽度 ≈ 2 份 */
  --col-gap: 40px;          /* 核心内容与右栏之间的间距（示意图实测约 47px） */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --gap: 20px;

  /* 阴影 */
  --shadow-xs: 0 1px 2px rgba(26, 34, 51, .04);
  --shadow-sm: 0 2px 8px rgba(26, 34, 51, .05);
  --shadow-md: 0 8px 24px rgba(26, 34, 51, .08);
  --shadow-lg: 0 18px 48px rgba(26, 34, 51, .16);

  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- 2. Reset & Base ---------- */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
/* 内联 SVG 图标默认尺寸（避免 SVG 默认 300×150 撑破布局） */
svg { width: 16px; height: 16px; flex: none; }
.donut svg { width: 100%; height: 100%; }
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}
::selection { background: var(--brand-ring); color: #0b1b33; }

/* ---------- 3. App Shell ---------- */
.app {
  min-height: 100vh;
  background: var(--page);
}

/* 顶栏 */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 18px;
  /* 左：与外壳左缘的导航文字对齐；右：与外壳右缘对齐 */
  padding-top: 0;
  padding-bottom: 0;
  padding-left: max(24px, calc((100vw - var(--shell-max)) / 2 + var(--nav-inset)));
  padding-right: max(24px, calc((100vw - var(--shell-max)) / 2 + 24px));
  z-index: 60;
}
.topbar__brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}
.topbar__logo {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--brand);
  flex: none;
}
.topbar__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.topbar__sub {
  font-size: 12.5px;
  color: var(--ink-3);
  padding-left: 12px;
  border-left: 1px solid var(--line);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar__spacer { flex: 1; }
.topbar__level {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 999px;
  padding: 4px 12px;
  white-space: nowrap;
}
.level-switch {
  position: relative;
}
.level-switch__btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.level-switch__btn:hover,
.level-switch__btn[aria-expanded="true"] {
  border-color: var(--brand);
}
.level-switch__caret {
  font-size: 10px;
  line-height: 1;
  opacity: .8;
  transition: transform .15s;
}
.level-switch__btn[aria-expanded="true"] .level-switch__caret {
  transform: rotate(180deg);
}
.level-switch__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 196px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  z-index: 60;
}
.level-switch__item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--ink);
  font-size: 12.5px;
  text-align: left;
  cursor: pointer;
  transition: background .12s, color .12s;
}
.level-switch__item:hover {
  background: var(--surface-2);
}
.level-switch__item.is-active {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
}
.level-switch__desc {
  font-size: 11px;
  color: var(--ink-4);
  font-weight: 400;
}
.level-switch__item.is-active .level-switch__desc {
  color: var(--brand);
  opacity: .85;
}
.topbar__user {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--ink-2);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.topbar__user:hover { background: var(--surface-2); border-color: var(--line); }
.topbar__avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}
.topbar__caret { color: var(--ink-4); font-size: 10px; }

/* 外壳：导航 + 主内容定宽居中（2 : 6 : 2 的整体比例） */
.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  /* 顶栏为 fixed，整体下移让首项导航不被遮挡 */
  padding-top: var(--topbar-h);
}

/* 侧栏 */
.sidebar {
  position: sticky;
  top: var(--topbar-h);
  height: calc(100vh - var(--topbar-h));
  flex: none;
  width: var(--rail-w);
  background: var(--surface);
  border-right: 1px solid var(--line);
  overflow-y: auto;
  padding: 14px 0 28px var(--nav-inset);
  z-index: 50;
}
.sidebar__foot {
  margin-top: 20px;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  font-size: 11.5px;
  color: var(--ink-4);
  letter-spacing: .02em;
}

.nav__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: var(--ink-2);
  text-align: left;
  transition: background .15s, color .15s;
}
.nav__item { position: relative; }
.nav__item:hover { background: var(--surface-2); color: var(--ink); }
.nav__item:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.nav__item.is-active {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--brand);
}
.nav__item.is-active .nav__icon { opacity: 1; }
.nav__icon {
  flex: none;
  width: 16px; height: 16px;
  display: grid; place-items: center;
  color: currentColor;
  opacity: .85;
}
.nav__icon svg { width: 16px; height: 16px; }
.nav__label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav__caret {
  flex: none;
  color: var(--ink-4);
  transition: transform .18s ease;
  font-size: 10px;
}
.nav__caret.is-open { transform: rotate(90deg); color: var(--brand); }
.nav__item.is-open .nav__caret { transform: rotate(90deg); }
.nav__ext {
  flex: none;
  font-size: 11px;
  color: var(--ink-4);
  line-height: 1;
}
.nav__item:hover .nav__ext { color: var(--brand); }

/* 学习状态预览切换（研发调试用） */
.ov-state {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ov-state__label { font-size: 12.5px; color: var(--ink-3); }
.ov-state__tabs {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  gap: 2px;
}
.ov-state__tab {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 12.5px;
  color: var(--ink-2);
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}
.ov-state__tab:hover { color: var(--brand); }
.ov-state__tab.is-active {
  background: var(--surface);
  color: var(--brand);
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(16, 32, 60, .08);
}
.ov-state__tab:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.nav__badge {
  flex: none;
  font-size: 11px;
  color: var(--ink-4);
}

.nav__sub { margin: 2px 0 8px; padding-left: 6px; }
.nav__subitem {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 10px 8px 26px;
  border-radius: var(--radius-sm);
  position: relative;
  transition: background .15s;
}
.nav__subitem:hover { background: var(--surface-2); }
.nav__subitem.is-active {
  background: var(--brand-soft);
  box-shadow: inset 2px 0 0 var(--brand);
}
.nav__subtitle {
  display: block;
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav__subitem.is-active .nav__subtitle { color: var(--brand); font-weight: 600; }
.nav__substatus {
  font-size: 11px;
  color: var(--ink-4);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__substatus .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.nav__substatus.is-learning { color: var(--info); }
.nav__substatus.is-completed { color: var(--success); }
.nav__subitem .nav__bul {
  position: absolute;
  left: 12px; top: 15px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--ink-4);
}
.nav__subitem.is-active .nav__bul { background: var(--brand); }

/* 主区域 */
.main {
  flex: 1;
  min-width: 0;
}
/* 内容区：整块外壳已定宽居中，这里不再居中限宽，
   保证「左侧导航」与「主视觉区」紧挨在一起 */
.container {
  max-width: none;
  margin: 0;
  padding: 28px var(--content-pad) 64px var(--nav-gap);
}
.container--wide { max-width: 1440px; }

/* ---------- 4. 通用组件 ---------- */

/* 页面标题 */
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}
.page-head__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--brand);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.page-head h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.3;
}
.page-head__lead {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--ink-3);
  max-width: 760px;
}
.page-head__aside { flex: none; }

/* 卡片 */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}
.card--pad { padding: 22px 24px; }
.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.card__title {
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card__title .ico { color: var(--brand); display: grid; place-items: center; }
.card__title .ico svg { width: 17px; height: 17px; }
.card__sub { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; line-height: 1.6; }

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .06s;
}
.btn:active { transform: translateY(.5px); }
.btn svg { width: 14px; height: 14px; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-strong); }
.btn--secondary { background: var(--surface); color: var(--ink-2); border-color: var(--line); }
.btn--secondary:hover { border-color: var(--brand-ring); color: var(--brand); background: var(--brand-softer); }
.btn--ghost { background: transparent; color: var(--ink-3); }
.btn--ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn--sm { height: 28px; padding: 0 12px; font-size: 12px; }
.btn--lg { height: 40px; padding: 0 22px; font-size: 14px; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-disabled {
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
}

/* 状态标签 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.tag .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.tag--muted { background: var(--muted-soft); color: var(--ink-3); }
.tag--info { background: var(--info-soft); color: var(--info); }
.tag--success { background: var(--success-soft); color: var(--success-strong); }
.tag--warn { background: var(--warn-soft); color: var(--warn-strong); }
.tag--brand { background: var(--brand-soft); color: var(--brand); }

/* 进度条 */
.progress {
  height: 6px;
  border-radius: 999px;
  background: var(--line-soft);
  overflow: hidden;
}
.progress__fill {
  height: 100%;
  border-radius: 999px;
  background: var(--brand);
  transition: width .3s ease;
}
.progress--thin { height: 4px; }
.progress__meta {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--ink-3);
  margin-bottom: 6px;
}

/* 环形进度 */
.donut { position: relative; display: grid; place-items: center; }
.donut svg { transform: rotate(-90deg); display: block; }
.donut__track { fill: none; stroke: var(--line-soft); }
.donut__fill { fill: none; stroke: var(--brand); stroke-linecap: round; transition: stroke-dashoffset .5s ease; }
.donut__center {
  position: absolute;
  text-align: center;
  line-height: 1.15;
}
.donut__value { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.donut__label { font-size: 11px; color: var(--ink-4); margin-top: 2px; }

/* 提示条 */
.notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--brand-softer);
  border: 1px solid var(--brand-soft);
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.6;
}
.notice .ico { color: var(--brand); flex: none; margin-top: 1px; }
.notice .ico svg { width: 15px; height: 15px; }
.notice--warn { background: var(--warn-soft); border-color: #f6ddcb; }
.notice--warn .ico { color: var(--warn); }
.notice--muted { background: var(--surface-2); border-color: var(--line); }
.notice--muted .ico { color: var(--ink-4); }

/* 空状态 */
.empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--ink-3);
}
.empty__icon {
  width: 44px; height: 44px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--ink-4);
}
.empty__icon svg { width: 20px; height: 20px; }
.empty__title { font-size: 14px; font-weight: 700; color: var(--ink-2); margin-bottom: 4px; }
.empty__desc { font-size: 12.5px; max-width: 420px; margin: 0 auto; }

/* 演示数据标记 */
.mock-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--ink-4);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 6px;
  vertical-align: middle;
}

/* 分区标题 */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 30px 0 14px;
}
.section-head h2 {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-head h2::before {
  content: "";
  width: 3px; height: 14px;
  border-radius: 2px;
  background: var(--brand);
}
.section-head__desc { font-size: 12.5px; color: var(--ink-3); }

/* 网格 */
.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* ---------- 5. 学习总览 ---------- */
.ov-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--aside-w);
  gap: var(--col-gap);
  margin-bottom: 18px;
}
.ov-continue {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 160% at 100% 0%, rgba(27, 110, 243, .07) 0%, rgba(27, 110, 243, 0) 55%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
}
.ov-continue__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--brand);
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
}
.ov-continue__label .ico svg { width: 15px; height: 15px; }
.ov-continue__chapter {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.ov-continue__lesson {
  margin-top: 6px;
  font-size: 14px;
  color: var(--ink-2);
}
.ov-continue__meta {
  margin-top: 16px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 12.5px;
  color: var(--ink-3);
}
.ov-continue__actions { margin-top: 20px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ov-continue__note { font-size: 11.5px; color: var(--ink-4); }

.ov-progress {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
}
.ov-progress__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.ov-progress__title { font-size: 15px; font-weight: 700; }
.ov-progress__body { display: flex; align-items: center; gap: 24px; }
.ov-progress__legend { flex: 1; min-width: 0; }
.ov-legend__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  font-size: 13px;
  border-bottom: 1px dashed var(--line-soft);
}
.ov-legend__row:last-child { border-bottom: 0; }
.ov-legend__key { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.ov-legend__dot { width: 8px; height: 8px; border-radius: 50%; }
.ov-legend__val { font-weight: 700; font-variant-numeric: tabular-nums; }
.ov-progress__note { margin-top: 14px; font-size: 11.5px; color: var(--ink-4); line-height: 1.6; }

.ov-next {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: var(--shadow-xs);
  margin-bottom: 4px;
}
.ov-next__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--brand);
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
}
.ov-next__label .ico svg { width: 15px; height: 15px; }
.ov-next__text { font-size: 14px; color: var(--ink-2); }
.ov-next__text strong { color: var(--ink); font-weight: 600; }

.res-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 18px 16px;
  cursor: pointer;
  text-align: left;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.res-card:hover {
  border-color: var(--brand-ring);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.res-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.res-card__icon {
  width: 34px; height: 34px;
  border-radius: 9px;
  display: grid; place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
}
.res-card__icon svg { width: 18px; height: 18px; }
.res-card__name { font-size: 14.5px; font-weight: 700; margin-bottom: 5px; }
.res-card__desc {
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.6;
  min-height: 40px;
}
.res-card__stat {
  margin-top: 12px;
  font-size: 12px;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.res-card__foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.res-card__action {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.res-card__action svg { width: 13px; height: 13px; }

.ov-goal {
  margin-top: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.ov-goal__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--ink-4);
  margin-bottom: 5px;
}
.ov-goal__text { font-size: 14px; color: var(--ink-2); }

/* ---------- 6. 大纲解析 ---------- */
.syl {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.syl-nav {
  position: sticky;
  top: calc(var(--topbar-h) + 20px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px 10px;
  max-height: calc(100vh - var(--topbar-h) - 48px);
  overflow-y: auto;
}
.syl-nav__title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--ink-4);
  padding: 4px 12px 10px;
}
.syl-nav__item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.45;
  transition: background .15s, color .15s;
}
.syl-nav__item:hover { background: var(--surface-2); color: var(--ink); }
.syl-nav__item.is-active {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
}
.syl-nav__item.is-pending { color: var(--ink-4); }
.syl-doc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 38px 40px;
  min-height: 520px;
}
.syl-doc__crumb {
  font-size: 12px;
  color: var(--ink-4);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.syl-doc__title { font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.syl-doc__meta {
  margin-top: 10px;
  font-size: 12px;
  color: var(--ink-4);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.syl-doc__body { margin-top: 24px; max-width: 760px; }
.syl-doc__body h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 26px 0 10px;
  padding-left: 11px;
  border-left: 3px solid var(--brand);
  line-height: 1.4;
}
.syl-doc__body h3:first-child { margin-top: 0; }
.syl-doc__body p { font-size: 14px; color: var(--ink-2); line-height: 1.85; margin: 10px 0; }
.syl-doc__body ul li,
.syl-doc__body ol li {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.85;
  padding-left: 18px;
  position: relative;
  margin: 6px 0;
}
.syl-doc__body ul li::before {
  content: "";
  position: absolute; left: 4px; top: 12px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brand-ring);
}
.syl-doc__body ol { counter-reset: n; }
.syl-doc__body ol li { counter-increment: n; }
.syl-doc__body ol li::before {
  content: counter(n) ".";
  position: absolute; left: 0; top: 0;
  color: var(--brand);
  font-weight: 700;
  font-size: 13px;
}
.syl-doc__callout {
  margin: 22px 0;
  padding: 16px 18px;
  background: var(--brand-softer);
  border: 1px solid var(--brand-soft);
  border-radius: var(--radius);
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.8;
}
.syl-doc__foot {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.syl-doc__foot .mock-badge { font-size: 11px; }

/* ---------- 7. 题库卡片 ---------- */
.bank-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 22px 18px;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.bank-card:hover { border-color: var(--brand-ring); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.bank-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.bank-card__part {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--brand);
}
.bank-card__name {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 6px;
}
.bank-card__desc { font-size: 12.5px; color: var(--ink-3); line-height: 1.65; min-height: 41px; }
.bank-card__meta {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12.5px;
  color: var(--ink-2);
}
.bank-card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.bank-card__meta svg { width: 14px; height: 14px; color: var(--ink-4); }
.bank-card__state {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--ink-3);
}
.bank-card__foot { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft); }

.exam-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.exam-card:hover { border-color: var(--brand-ring); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.exam-card__name { font-size: 15px; font-weight: 700; line-height: 1.5; }
.exam-card__meta { display: flex; gap: 18px; font-size: 12.5px; color: var(--ink-3); flex-wrap: wrap; }
.exam-card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.exam-card__meta svg { width: 14px; height: 14px; color: var(--ink-4); }
.exam-card__foot {
  margin-top: 2px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tip-card {
  background: var(--brand-softer);
  border: 1px solid var(--brand-soft);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}
.tip-card__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
}
.tip-card__title svg { width: 15px; height: 15px; }
.tip-card__text { font-size: 13px; color: var(--ink-2); line-height: 1.75; }

.page-foot-note {
  margin-top: 26px;
  font-size: 12px;
  color: var(--ink-4);
  text-align: center;
  line-height: 1.7;
}

/* ---------- 8. AI 闪卡（产品说明 + App 导流） ---------- */
.fc-section { margin-top: 30px; }

/* --- Hero：左侧文案，右侧 App 实拍产品图 --- */
.fc-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: var(--col-gap);
  align-items: center;
}
.fc-hero__title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.3;
}
.fc-hero__headline {
  margin-top: 8px;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink-2);
}
.fc-hero__lead {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.9;
  max-width: 560px;
}
.fc-hero__actions { margin-top: 24px; }
.fc-hero__hint { margin-top: 12px; font-size: 12.5px; color: var(--ink-3); }

/* --- 产品图区 --- */
.fc-side {
  background: var(--brand-softer);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 22px 18px;
}
.fc-side__label {
  display: inline-block;
  padding: 4px 12px;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  border-radius: 99px;
  margin-bottom: 16px;
}
.fc-showcase {
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: 12px;
  align-items: end;
}
/* 截图按钮（点击查看大图） */
.fc-shot {
  margin: 0;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: center;
  cursor: pointer;
  border-radius: 16px;
}
.fc-shot:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.fc-shot__frame {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 14px 30px rgba(26, 34, 51, .08);
  transition: transform .2s ease, box-shadow .2s ease;
}
.fc-shot__frame img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: contain;
  object-position: center bottom;
}
.fc-shot--sm .fc-shot__frame { border-radius: 12px; }
.fc-shot--sm .fc-shot__frame img {
  height: 142px;
  object-fit: cover;
  object-position: top center;
}
.fc-shot:hover .fc-shot__frame {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(26, 34, 51, .14);
}
.fc-shot__zoom {
  position: absolute;
  right: 10px; bottom: 10px;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(20, 30, 48, .62);
  color: #fff;
  opacity: 0;
  transition: opacity .2s ease;
}
.fc-shot__zoom svg { width: 15px; height: 15px; }
.fc-shot:hover .fc-shot__zoom,
.fc-shot:focus-visible .fc-shot__zoom { opacity: 1; }
.fc-shot__cap {
  display: block;
  margin-top: 7px;
  font-size: 11.5px;
  color: var(--ink-4);
}
.fc-shot:hover .fc-shot__cap { color: var(--brand); }
.fc-shot-stack { display: grid; gap: 12px; }
/* 三项数据（位于 Hero 左侧介绍区下方） */
.fc-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 26px;
  max-width: 480px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.fc-mini-stat {
  padding: 14px 10px;
  text-align: center;
}
.fc-mini-stat + .fc-mini-stat { border-left: 1px solid var(--line); }
.fc-mini-stat b { display: block; font-size: 19px; font-weight: 800; color: var(--brand); letter-spacing: -.01em; }
.fc-mini-stat span { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 3px; }

/* --- 正文说明 --- */
.fc-intro p { font-size: 13.5px; line-height: 1.95; color: var(--ink-2); }
.fc-intro p + p { margin-top: 10px; }
.fc-intro strong { color: var(--brand); font-weight: 700; }

/* --- 4 个能力点 --- */
.fc-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.fc-feat {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 16px 15px;
}
.fc-feat__icon {
  flex: none;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
}
.fc-feat__icon svg { width: 17px; height: 17px; }
.fc-feat__badge {
  flex: none;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
}
.fc-feat__body { min-width: 0; }
.fc-feat__t { font-size: 13.5px; font-weight: 700; line-height: 1.4; }
.fc-feat__s { font-size: 12px; color: var(--ink-3); margin-top: 4px; line-height: 1.7; }

/* --- 3 步记忆闭环 --- */
.fc-closure {
  margin-top: 18px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
}
.fc-closure__label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--ink-4);
  margin-right: 4px;
}
.fc-closure__step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
}
.fc-closure__step b {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
}
.fc-closure__arrow { color: var(--brand); display: flex; }
.fc-closure__arrow svg { width: 17px; height: 17px; }

/* --- 使用方法 --- */
.fc-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fc-step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
}
.fc-step__no {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid; place-items: center;
  font-size: 12.5px; font-weight: 800;
  margin-bottom: 10px;
}
.fc-step__t { font-size: 14.5px; font-weight: 700; }
.fc-step__s { font-size: 12.5px; color: var(--ink-3); margin-top: 5px; line-height: 1.7; }
.fc-tips {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.fc-tips__i {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.6;
}
.fc-tips__i svg { width: 15px; height: 15px; color: var(--success); margin-top: 2px; }

/* --- 底部 CTA --- */
.fc-cta {
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: var(--brand);
  border-radius: var(--radius-lg);
  padding: 26px 32px;
}
.fc-cta__h { font-size: 18px; font-weight: 700; color: #fff; }
.fc-cta__s { margin-top: 6px; font-size: 12.5px; color: rgba(255, 255, 255, .82); line-height: 1.7; }
.btn--light { background: #fff; color: var(--brand); }
.btn--light:hover { background: #eaf2ff; color: var(--brand-strong); }

/* 图片大图查看器 */
.viewer { display: grid; gap: 14px; margin-top: 6px; }
.viewer__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.viewer__img {
  display: block;
  max-width: 100%;
  max-height: 58vh;
  width: auto;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(26, 34, 51, .16);
  background: #fff;
}
.viewer__cap { font-size: 13px; color: var(--ink-3); }
.viewer__thumbs {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.viewer__thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 6px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.viewer__thumb:hover { border-color: var(--brand); }
.viewer__thumb.is-active { border-color: var(--brand); background: var(--brand-soft); }
.viewer__thumb img {
  display: block;
  width: 46px; height: 78px;
  object-fit: cover;
  object-position: top center;
  border-radius: 6px;
}
.viewer__thumb span { font-size: 11px; color: var(--ink-3); }
.viewer__thumb.is-active span { color: var(--brand); font-weight: 600; }

/* ---------- 9. 官方在线课程 ---------- */
.course-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--aside-w);
  gap: var(--col-gap);
  align-items: start;
}
.course-main__head {
  margin-bottom: 18px;
}
.course-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 16px;
}
.course-progress__label { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.course-progress .progress { flex: 1; min-width: 110px; width: 120px; max-width: 260px; }
.course-progress__num { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

.lesson-group { margin-bottom: 22px; }
.lesson-group__head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
  padding-left: 2px;
}
.lesson-group__code {
  min-width: 24px; height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
  flex: none;
  white-space: nowrap;
  font-size: 11.5px; font-weight: 800;
}
.lesson-group__title { font-size: 14px; font-weight: 700; }

/* 模块被左侧导航选中时的视觉强调 */
.lesson-group.is-focus {
  position: relative;
}
.lesson-group.is-focus::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 2px;
  background: var(--brand);
  animation: focusSlideIn .35s ease both;
}
.lesson-group.is-focus .lesson-group__head {
  background: var(--brand-softer);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  margin-left: -2px;
}
.lesson-group.is-focus .lesson-group__code {
  background: var(--brand);
  color: #fff;
}
.lesson-group.is-focus .lesson-group__title {
  color: var(--brand);
}

/* 模块闪屏高亮动画（从左侧导航点击后滚动定位） */
.lesson-group.is-flash {
  animation: moduleFlash 2.4s ease both;
}
.lesson-group.is-flash .lesson-group__head {
  animation: moduleHeadFlash 2.4s ease both;
}

@keyframes focusSlideIn {
  from { transform: scaleY(0); opacity: 0; }
  to   { transform: scaleY(1); opacity: 1; }
}

@keyframes moduleFlash {
  0%   { background: transparent; }
  15%  { background: var(--brand-soft); }
  40%  { background: var(--brand-soft); }
  100% { background: transparent; }
}

@keyframes moduleHeadFlash {
  0%   { background: transparent; }
  15%  { background: var(--brand-soft); border-radius: var(--radius-sm); }
  40%  { background: var(--brand-soft); border-radius: var(--radius-sm); }
  100% { background: transparent; }
}

.lesson-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px 74px 92px;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 8px;
  transition: border-color .16s, box-shadow .16s, background .16s;
}
.lesson-row:hover { border-color: var(--brand-ring); box-shadow: var(--shadow-sm); }
.lesson-row.is-current { border-color: var(--brand); background: var(--brand-softer); }
.lesson-row__main { min-width: 0; }
.lesson-row__title {
  font-size: 13.5px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lesson-row__title .no { color: var(--ink-3); font-weight: 500; margin-right: 6px; }
.lesson-row__sub { font-size: 11.5px; color: var(--ink-4); margin-top: 3px; display: flex; gap: 12px; }
.lesson-row__sub span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.lesson-row__status { font-size: 12px; }
.lesson-row__dur {
  font-size: 12px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: center;
  gap: 5px;
}
.lesson-row__dur svg { width: 13px; height: 13px; color: var(--ink-4); }
.lesson-row__action { text-align: right; }

.side-panel {
  position: sticky;
  top: calc(var(--topbar-h) + 20px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 20px 18px;
}
.side-panel + .side-panel { margin-top: 16px; }
.side-panel__title {
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
}
.side-panel__title svg { width: 16px; height: 16px; color: var(--brand); }
.side-panel__desc { font-size: 12px; color: var(--ink-3); line-height: 1.7; margin-bottom: 14px; }
.cw-list { display: flex; flex-direction: column; gap: 8px; }
.cw-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.cw-item__icon {
  width: 30px; height: 30px;
  border-radius: 7px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-3);
  display: grid; place-items: center;
  flex: none;
}
.cw-item__icon svg { width: 15px; height: 15px; }
.cw-item__main { flex: 1; min-width: 0; }
.cw-item__name {
  display: block;
  font-size: 12.5px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cw-item__meta {
  display: block;
  font-size: 11px; color: var(--ink-4); margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cw-item > .btn { flex: none; }

/* ---------- 10. 视频学习页 ---------- */
.player-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--aside-w);
  gap: var(--col-gap);
  align-items: start;
}
.player {
  background: #0d1420;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
}
.player__poster { text-align: center; color: #c9d4e6; padding: 20px; }
.player__logo {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .22em;
  color: rgba(255, 255, 255, .34);
}
.player__title { font-size: 24px; font-weight: 700; color: #fff; margin-top: 10px; }
.player__sub { font-size: 14px; color: #93a4bd; margin-top: 6px; }
.player__badge {
  position: absolute;
  top: 14px; left: 14px;
  font-size: 11px;
  color: #ffd7a8;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 5px;
  padding: 3px 9px;
  backdrop-filter: blur(4px);
}
.player__play {
  position: absolute;
  width: 62px; height: 62px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .24);
  backdrop-filter: blur(6px);
  display: grid; place-items: center;
  color: #fff;
  transition: background .18s, transform .18s;
}
.player__play:hover { background: rgba(255, 255, 255, .24); transform: scale(1.04); }
.player__play svg { width: 24px; height: 24px; margin-left: 3px; }
.player__controls {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 16px 12px;
  background: linear-gradient(0deg, rgba(8, 13, 22, .88) 0%, rgba(8, 13, 22, 0) 100%);
  display: flex;
  align-items: center;
  gap: 12px;
  color: #dbe4f2;
  font-size: 12px;
}
.player__ctrls-sp { flex: 1; }
.player__ctrl { color: #dbe4f2; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 5px; }
.player__ctrl:hover { background: rgba(255, 255, 255, .12); }
.player__ctrl svg { width: 16px; height: 16px; }
.player__bar {
  position: absolute;
  left: 16px; right: 16px; bottom: 46px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .22);
}
.player__bar span {
  display: block; height: 100%;
  width: 38%;
  border-radius: 999px;
  background: var(--brand);
}
.player__body { margin-top: 16px; }
.player__title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.player__h { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.player__meta { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; display: flex; gap: 14px; flex-wrap: wrap; }
.player__desc {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.85;
  max-width: 720px;
}
.player__nav {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.pl-side { display: flex; flex-direction: column; gap: 16px; }
.pl-list { max-height: 380px; overflow-y: auto; padding-right: 2px; }
.pl-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  transition: background .15s;
}
.pl-item:hover { background: var(--surface-2); }
.pl-item.is-current { background: var(--brand-softer); }
.pl-item__no {
  flex: none;
  font-size: 11px;
  color: var(--ink-4);
  width: 42px;
  font-variant-numeric: tabular-nums;
}
.pl-item.is-current .pl-item__no { color: var(--brand); font-weight: 700; }
.pl-item__main { flex: 1; min-width: 0; }
.pl-item__t {
  font-size: 12.5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pl-item.is-current .pl-item__t { color: var(--brand); font-weight: 600; }
.pl-item__s { font-size: 11px; color: var(--ink-4); margin-top: 2px; display: flex; align-items: center; gap: 5px; }
.pl-item__s .dot { width: 5px; height: 5px; border-radius: 50%; }
.pl-item__s.is-completed .dot { background: var(--success); }
.pl-item__s.is-learning .dot { background: var(--info); }
.pl-item__s.is-notStarted .dot { background: var(--ink-4); }

.chat {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}
.chat__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
}
.chat__title { font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 7px; }
.chat__title .avatar {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; font-size: 10px; font-weight: 800;
}
.chat__body { padding: 14px; display: flex; flex-direction: column; gap: 12px; max-height: 260px; overflow-y: auto; }
.bubble {
  max-width: 88%;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 1.65;
}
.bubble--bot { background: var(--surface-2); border: 1px solid var(--line-soft); color: var(--ink-2); align-self: flex-start; }
.bubble--me { background: var(--brand-soft); color: var(--brand); align-self: flex-end; }
.chat__foot { padding: 10px 12px; border-top: 1px solid var(--line-soft); display: flex; gap: 8px; }
.chat__input {
  flex: 1;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface-2);
  padding: 0 11px;
  font-size: 12.5px;
  outline: none;
}
.chat__input:focus { border-color: var(--brand-ring); background: var(--surface); }

/* ---------- 10b. 独立播放页（player.html）三栏布局 ---------- */
/* 独立页面专属 body 样式：全高、无背景滚动 */
body.player-page {
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
body.player-page .topbar {
  position: relative;     /* 独立页顶栏不 fixed，随页面流 */
  flex: none;
  padding-left: max(24px, calc((100vw - var(--shell-max)) / 2 + 24px));
  padding-right: max(24px, calc((100vw - var(--shell-max)) / 2 + 24px));
}

/* 三栏外壳：左目录 / 中视频 / 右课件 */
.pp-shell {
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 320px;
  gap: 0;
  background: var(--page);
}

/* ---- 左栏：学习目录 ---- */
.pp-dir {
  background: var(--surface);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.pp-dir__title {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--line-soft);
}
.pp-dir__title > span:first-child {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.pp-dir__hint {
  font-size: 11.5px;
  color: var(--ink-4);
  font-weight: 500;
}
.pp-dir__tree {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0 20px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.pp-dir__tree::-webkit-scrollbar { width: 5px; }
.pp-dir__tree::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

/* 章节折叠组 */
.pp-dir__chapter { margin-bottom: 2px; }
.pp-dir__chapter.is-current .pp-dir__chapter-head { background: var(--brand-softer); }
.pp-dir__chapter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 20px 8px;
  cursor: default;
  transition: background .15s;
}
.pp-dir__chapter-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
  line-height: 1.4;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pp-dir__chapter.is-current .pp-dir__chapter-title { color: var(--brand); }
.pp-dir__chapter-stat {
  flex: none;
  font-size: 11px;
  color: var(--ink-4);
  font-variant-numeric: tabular-nums;
  background: var(--surface-2);
  border-radius: 99px;
  padding: 2px 8px;
}
.pp-dir__chapter.is-current .pp-dir__chapter-stat {
  background: var(--brand-soft);
  color: var(--brand);
}

/* 模块标题 */
.pp-dir__module {
  padding: 0 8px;
  margin-bottom: 4px;
}
.pp-dir__module.is-current .pp-dir__module-title { color: var(--brand); }
.pp-dir__module-title {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-3);
  padding: 8px 12px 4px;
  line-height: 1.4;
}

/* 课时条目 */
.pp-dir__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 14px;
  border-radius: var(--radius-sm);
  margin: 1px 4px;
  transition: background .15s;
  text-decoration: none;
  color: var(--ink-2);
}
.pp-dir__item:hover { background: var(--surface-2); }
.pp-dir__item.is-current {
  background: var(--brand-soft);
  box-shadow: inset 2px 0 0 var(--brand);
}
.pp-dir__no {
  flex: none;
  font-size: 10.5px;
  color: var(--ink-4);
  font-variant-numeric: tabular-nums;
  width: 34px;
}
.pp-dir__item.is-current .pp-dir__no { color: var(--brand); font-weight: 700; }
.pp-dir__name {
  flex: 1;
  min-width: 0;
  font-size: 12.5px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pp-dir__item.is-current .pp-dir__name { color: var(--brand); font-weight: 600; }
.pp-dir__dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-4);
}
.pp-dir__dot.is-completed { background: var(--success); }
.pp-dir__dot.is-learning { background: var(--info); }
.pp-dir__dot.is-notStarted { background: var(--line); }

/* ---- 中栏：视频播放区 ---- */
.pp-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  overflow-y: auto;
  padding: 0;
}
.pp-main__head {
  flex: none;
  padding: 20px 28px 14px;
}
.pp-main__crumb {
  font-size: 12px;
  color: var(--ink-4);
  margin-bottom: 8px;
}
.pp-main__crumb a { color: var(--brand); }
.pp-main__crumb a:hover { text-decoration: underline; }
.pp-main__title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.35;
}
.pp-main__meta {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--ink-3);
}
.pp-main__meta b { color: var(--brand); font-weight: 700; }

/* 中栏 — 视频播放器容器 */
.pp-main .player {
  margin: 0 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* 中栏 — 视频下方信息区 */
.pp-main .player__body {
  padding: 18px 28px 24px;
}

/* ---- 右栏：课件下载 ---- */
.pp-aside {
  background: var(--surface);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  padding: 20px 20px 24px;
  gap: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.pp-aside::-webkit-scrollbar { width: 5px; }
.pp-aside::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

/* 右栏内通用 side-panel 在独立页取消 sticky（固定栏内即可滚动） */
body.player-page .side-panel {
  position: static;
  top: auto;
}

/* ---- 独立播放页响应式 ---- */
@media (max-width: 1280px) {
  .pp-shell { grid-template-columns: 240px minmax(0, 1fr) 280px; }
  .pp-main__head { padding: 18px 20px 12px; }
  .pp-main .player { margin: 0 20px; }
  .pp-main .player__body { padding: 16px 20px 20px; }
}
@media (max-width: 1080px) {
  .pp-shell { grid-template-columns: 220px minmax(0, 1fr) 260px; }
  .pp-dir__title { padding: 14px 16px 10px; }
  .pp-dir__chapter-head { padding: 8px 16px 6px; }
  .pp-aside { padding: 16px 16px 20px; }
}
@media (max-width: 900px) {
  body.player-page { overflow: auto; height: auto; }
  .pp-shell {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
  .pp-dir {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    max-height: 280px;
  }
  .pp-dir__tree { max-height: 220px; }
  .pp-aside {
    border-left: 0;
    border-top: 1px solid var(--line);
    overflow: visible;
  }
  .pp-main { overflow: visible; }
  .pp-main__head { padding: 16px 16px 10px; }
  .pp-main .player { margin: 0 16px; }
  .pp-main .player__body { padding: 14px 16px 18px; }
}

/* ---------- 11. 弹窗 ---------- */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 40, .42);
  backdrop-filter: blur(2px);
  display: grid;
  place-items: center;
  z-index: 200;
  padding: 24px;
  animation: fade .18s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px 30px 26px;
  text-align: center;
  position: relative;
  animation: pop .2s cubic-bezier(.2, .8, .3, 1);
}
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.modal__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 28px; height: 28px;
  border-radius: 6px;
  color: var(--ink-4);
  display: grid; place-items: center;
  transition: background .15s, color .15s;
}
.modal__close:hover { background: var(--surface-2); color: var(--ink); }
.modal__close svg { width: 15px; height: 15px; }
.modal__eyebrow {
  font-size: 11px; font-weight: 800; letter-spacing: .18em; color: var(--ink-4);
}
.modal__title { font-size: 20px; font-weight: 800; margin-top: 6px; }
.modal__desc { font-size: 13px; color: var(--ink-3); line-height: 1.75; margin-top: 10px; }
.qr {
  margin: 20px auto 0;
  width: 176px; height: 176px;
  border: 1px dashed var(--brand-ring);
  border-radius: var(--radius);
  background: var(--brand-softer);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 14px;
}
.qr__text { font-size: 12px; color: var(--ink-4); line-height: 1.7; }
.qr__text b { display: block; color: var(--ink-3); font-size: 12.5px; margin-bottom: 4px; }
.modal__foot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  color: var(--ink-4);
  letter-spacing: .02em;
}

/* ---------- 12. 小C 悬浮入口 ---------- */
.fab {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 22px rgba(27, 110, 243, .34);
  z-index: 90;
  transition: transform .18s, box-shadow .18s;
}
.fab:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(27, 110, 243, .42); }
.fab svg { width: 22px; height: 22px; }
.fab__badge {
  position: absolute;
  top: -2px; right: -2px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--warn);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
}
.fab-panel {
  position: fixed;
  right: 28px;
  bottom: 88px;
  width: 330px;
  z-index: 95;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.fab-panel .chat__body { max-height: 300px; }

/* ---------- 13. Toast ---------- */
.toast-host {
  position: fixed;
  top: 76px; left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  pointer-events: none;
}
.toast {
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  border-radius: var(--radius);
  padding: 10px 16px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 460px;
  animation: toastIn .2s ease;
}
.toast svg { width: 15px; height: 15px; flex: none; }
.toast--warn { background: #8a4a1c; }
.toast--ok { background: #14603f; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- 14. 响应式 ---------- */
@media (max-width: 1400px) {
  .grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fc-hero { grid-template-columns: minmax(0, 1fr) 380px; }
}
@media (max-width: 1240px) {
  .ov-hero { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .course-layout { grid-template-columns: minmax(0, 1fr) var(--aside-w); }
  .player-layout { grid-template-columns: minmax(0, 1fr) var(--aside-w); }
  .lesson-row { grid-template-columns: minmax(0, 1fr) 84px 64px 84px; gap: 10px; }
}
@media (max-width: 1080px) {
  :root { --rail-w: 230px; --nav-inset: 20px; --nav-gap: 32px; --content-pad: 22px; --aside-w: 280px; --col-gap: 24px; }
  .container { padding: 22px var(--content-pad) 56px var(--nav-gap); }
  .syl { grid-template-columns: 1fr; }
  .syl-nav { position: static; max-height: none; }
  .course-layout, .player-layout { grid-template-columns: 1fr; }
  .side-panel { position: static; }
  .fc-hero { grid-template-columns: 1fr; gap: 24px; }
  .fc-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fc-steps { grid-template-columns: 1fr; }
  .fc-tips { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .topbar { padding-left: 20px; padding-right: 20px; }
  :root { --rail-w: 0px; --nav-inset: 0px; --nav-gap: 0px; --shell-max: 100%; }
  .sidebar { display: none; }
  .main { margin-left: 0; }
  .topbar { padding-left: 20px; }
  .container { padding: 22px 20px 56px; }
  .grid--5, .grid--3, .grid--2, .grid--4 { grid-template-columns: 1fr; }
  .topbar__sub { display: none; }
}


/* ============================================================
   PC 学习中心生产对接补充样式
   ============================================================ */

/* ---------- 左侧外链导航 ---------- */
.nav__item--ext {
  text-decoration: none;
}
.nav__ext-ico {
  margin-left: auto;
  font-size: 12px;
  color: var(--ink-4);
  line-height: 1;
}
.nav__item--ext:hover .nav__ext-ico {
  color: var(--brand);
}

/* ---------- 加载态 / 登录引导态 / 错误态 ---------- */
.lc-state-card {
  max-width: 560px;
  margin: 48px auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.lc-state-card__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
}
.lc-state-card__icon svg {
  width: 24px;
  height: 24px;
}
.lc-state-card__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}
.lc-state-card__desc {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.7;
}
.lc-state-card__actions {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.lc-spinner {
  width: 30px;
  height: 30px;
  margin: 0 auto 14px;
  border: 3px solid var(--brand-soft);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: lc-spin .75s linear infinite;
}
@keyframes lc-spin {
  to { transform: rotate(360deg); }
}

/* ---------- 大纲解析：多级目录 & 富文本适配 ---------- */
.syl-nav__item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
}
.syl-nav__item--d2 {
  padding-left: 24px;
  font-size: 12.5px;
}
.syl-nav__item--d3 {
  padding-left: 36px;
  font-size: 12px;
}
.syl-nav__item--folder {
  font-weight: 600;
  color: var(--ink);
}
.syl-nav__item--folder .syl-nav__caret {
  flex: none;
  font-size: 10px;
  color: var(--ink-4);
  transition: transform .16s;
  margin-top: 3px;
}
.syl-nav__item--folder.is-open .syl-nav__caret {
  transform: rotate(90deg);
}
.syl-nav__text {
  flex: 1;
  min-width: 0;
  word-break: break-word;
}
.syl-nav__badge {
  flex: none;
  font-size: 11px;
  line-height: 1.4;
  margin-top: 1px;
}
.syl-nav__badge--done { color: var(--success); font-weight: 700; }
.syl-nav__badge--learning {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  margin-top: 6px;
}

.syl-doc__body {
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}
.syl-doc__body h1 {
  font-size: 20px;
  font-weight: 700;
  margin: 24px 0 12px;
  color: var(--ink);
  line-height: 1.4;
}
.syl-doc__body h2 {
  font-size: 17.5px;
  font-weight: 700;
  margin: 24px 0 10px;
  color: var(--ink);
  line-height: 1.4;
}
.syl-doc__body h4 {
  font-size: 15px;
  font-weight: 700;
  margin: 18px 0 8px;
  color: var(--ink);
}
.syl-doc__body img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 12px 0;
}
.syl-doc__body a {
  color: var(--brand);
  text-decoration: underline;
}
.syl-doc__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 13.5px;
  display: block;
  overflow-x: auto;
}
.syl-doc__body th,
.syl-doc__body td {
  border: 1px solid var(--line);
  padding: 8px 12px;
  text-align: left;
  color: var(--ink-2);
}
.syl-doc__body th {
  background: var(--surface-2);
  font-weight: 600;
  color: var(--ink);
}
.syl-doc__body blockquote {
  margin: 14px 0;
  padding: 12px 16px;
  background: var(--brand-softer);
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink-2);
}
.syl-doc__body pre {
  margin: 14px 0;
  padding: 14px 16px;
  background: #f4f6fa;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.65;
}
.syl-doc__body code {
  background: #f1f4fa;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 13px;
}
.syl-doc__body pre code {
  background: none;
  padding: 0;
}

/* ---------- 新版三栏播放页：Polyv 播放器容器 ---------- */
.player-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0d1526;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid #1b2740;
}
.player-stage__mount {
  width: 100%;
  height: 100%;
}
.player-stage__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  color: #e6eefc;
  background: #0d1526;
  gap: 10px;
}
.player-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.player-actions-bar__left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-2);
}
.player-actions-bar__right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.pp-dir__item {
  text-decoration: none;
}
.pp-dir__pct {
  flex: none;
  font-size: 11px;
  color: var(--ink-4);
}
.pp-dir__item.is-current .pp-dir__pct {
  color: var(--brand);
}

/* ---------- 闪卡弹窗二维码容器 ---------- */
.qr-box {
  width: 184px;
  height: 184px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qr-box canvas,
.qr-box img {
  display: block;
  width: 160px !important;
  height: 160px !important;
}

/* ---------- 复用官网现有登录弹窗（login_box.htm）样式 ---------- */
.Landing_page .clearfix::after {
  content: "";
  display: table;
  clear: both;
}
.Landing_page .mask {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
}
.Landing_con {
  position: fixed;
  left: 0;
  bottom: 0;
  right: 0;
  top: 0;
  margin: auto;
  width: 500px;
  height: 404px;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #ececec;
  padding: 70px 60px 0;
  box-sizing: border-box;
  font-family: inherit;
}
.landing_tab {
  width: 380px;
  margin: 0 auto 25px;
}
.landing_top_item {
  float: left;
  width: 50%;
  font-weight: 400;
  font-size: 20px;
  color: rgba(0, 0, 0, 0.6);
  line-height: 30px;
  text-align: center;
  height: 40px;
  cursor: pointer;
}
.landing_top_item.active {
  font-weight: bold;
  color: #333333;
  position: relative;
}
.landing_top_item.active::after {
  display: block;
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background: #0052d9;
  border-radius: 2px;
}
.landing_bot_item {
  display: none;
}
.landing_bot_item.active {
  display: block;
}
.Landing_con input {
  width: 380px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 3px;
  border: 1px solid #dcdcdc;
  line-height: 40px;
  padding: 0 10px;
  margin: 10px 0;
  color: rgba(0, 0, 0, 0.9);
  font-size: 14px;
  outline: none;
}
.Landing_con input:focus {
  border-color: #0052d9;
}
.Landing_con .vcode_ipt {
  width: 260px;
}
.Landing_con .submit_ipt {
  border: none;
  background: #d4e3fc;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  margin-top: 18px;
}
.Landing_con .submit_ipt.vc_done {
  background: rgba(0, 82, 217, 1);
}
.Landing_con .submit_ipt_arround {
  display: none;
  width: 20px;
  height: 20px;
  background: url("/static/pc/img/Notification.png") no-repeat center;
  background-size: 20px;
  position: absolute;
  left: 48%;
  top: 41%;
  animation: lc-spin 2s infinite linear;
}
.Landing_con .submit_ipt_arround.show {
  display: block;
}
.Landing_con input.getVcode {
  display: inline-block;
  vertical-align: middle;
  width: 110px;
  height: 40px;
  background: #0052d9;
  border-radius: 3px;
  border: none;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  line-height: 40px;
  margin-left: 3px;
  cursor: pointer;
  padding: 0;
}
.Landing_con input.getVcode:hover {
  background: rgba(38, 111, 232, 1);
  color: rgba(255, 255, 255, 0.9);
}
.Landing_con input.getVcode.clicked {
  background: rgba(0, 52, 181, 1);
}
.Landing_con input.getVcode.waiting {
  background: rgba(212, 227, 252, 1);
}
.Landing_con .forget_p {
  font-weight: 400;
  font-size: 16px;
  color: #266fe8;
  line-height: 24px;
  text-align: left;
  display: block;
}
.Landing_con .landing_agreement {
  margin-top: 15px;
  font-size: 13px;
  color: #666;
  text-align: left;
  line-height: 20px;
}
.Landing_con .landing_agreement label {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
}
.Landing_con .landing_agreement input.agree_checkbox {
  width: 14px !important;
  height: 14px !important;
  margin: 3px 6px 0 0 !important;
  padding: 0 !important;
  border: none !important;
  cursor: pointer;
  flex-shrink: 0;
}
.Landing_con .landing_agreement span {
  font-size: 13px;
  color: #999;
}
.Landing_con .landing_agreement a {
  color: #0052d9;
  text-decoration: none;
}
.Landing_con .landing_agreement a:hover {
  text-decoration: underline;
}
.Landing_con .landing_close {
  position: absolute;
  width: 24px;
  height: 24px;
  background: url("/static/pc/img/close.png") no-repeat center;
  background-size: 24px;
  top: 30px;
  right: 30px;
  cursor: pointer;
}

/* ---------- 修复：学习总览「继续上次学习」空态卡片（原 Demo CSS 漏定义） ---------- */
.ov-first {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.ov-first__icon {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
}
.ov-first__icon svg {
  width: 22px;
  height: 22px;
}
.ov-first__main {
  flex: 1;
  min-width: 260px;
}
.ov-first__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}
.ov-first__desc {
  margin-top: 5px;
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.65;
}
.ov-first__action {
  flex: none;
}
.sidebar__foot {
  margin-right: 12px;
}
