﻿/* ==========================================================================
   Jeff教练英国驾考学习平台 — PC 端静态原型样式表
   设计令牌 + 基础组件 + 应用外壳 + 页面样式
   作者：UI Designer ｜ 版本：v1.0 ｜ 2026-10
   ========================================================================== */

/* ---------- 1. 设计令牌 ---------- */
/* 1.1 与皮肤无关的令牌：尺寸 / 圆角 / 阴影 / 动效 / 字体 */
:root {
  /* 圆角 */
  --r-xs: 6px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-pill: 999px;

  /* 尺寸 */
  --sidebar-w: 248px;
  --topbar-h: 64px;
  --page-max: min(1560px, 92vw);

  /* 动效 */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --t-fast: 140ms var(--ease);
  --t-base: 220ms var(--ease);

  /* 字体 */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
  --font-mono: "SF Mono", "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
  /* 品牌字：Optima / Didot 一类的古典无衬线 + 中文宋体，用于 Logo 与品牌名（区别于导航正文的 Inter） */
  --font-display: "Optima", "Palatino Linotype", "Bodoni MT", "Didot",
                  "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC",
                  Georgia, serif;
}

/* ---------- 1.2 配色皮肤 ----------
   切换方式：给 <html> 加 data-theme="light|dark|green"，未标记时按 light 处理。
   新增一套皮肤只需复制下面任意一段改色值，不需要动任何组件样式。
   变量语义（改皮肤时按这个理解，不要按字面颜色理解）：
     --ink        主标题 / 强调文字
     --ink-bg     深色块背景（tag--dark、章节激活、深色封面）
     --blue       品牌主色（绿色皮肤下它就是绿色）
     --gold       第二强调色（徽章 / 会员 / 高亮词）
     --surface    卡片面            --bg  页面底色
     --*-soft     对应色的淡底      --*-line  对应色的描边
   */

/* 浅色课堂（默认） */
:root,
[data-theme="light"] {
  color-scheme: light;
  --ink:          #0B1B33;
  --ink-bg:       #0B1B33;
  --ink-2:        #16294A;
  --blue:         #2B6CFF;
  --blue-dark:    #1B52D8;
  --blue-soft:    #EBF1FF;
  --blue-line:    #CBD9FF;
  --gold:         #F5B400;
  --gold-dark:    #D89B00;
  --gold-soft:    #FFF7E3;
  --gold-line:    #F3DCA0;
  --gold-text:    #8A6400;
  --gold-hover:   #FFC21A;
  --im-bar-bg:    #2B6CFF;   /* 沉浸答题顶栏底色 */
  --blue-solid:   #2B6CFF;   /* 实底按钮：白字对比 4.4:1 */

  --bg:           #F5F7FB;
  --surface:      #FFFFFF;
  --surface-2:    #FBFCFE;
  --line:         #E5E9F1;
  --line-strong:  #D3DAE7;
  --text:         #101828;
  --text-2:       #55617A;
  --text-3:       #8A94A6;

  --success:      #0E9F6E;
  --success-soft: #E6F7F0;
  --success-line: #BFE8D7;
  --success-text: #07774F;
  --danger:       #E0483F;
  --danger-soft:  #FDECEA;
  --danger-line:  #F5C7C4;
  --danger-text:  #B02F27;
  --warning-soft: #FFF4E0;

  --hover-bg:     #EEF2F9;   /* 幽灵按钮 / 列表项 hover */
  --opt-hover-bg: #FAFCFF;   /* 选项 hover */

  /* 重点词高亮：6 组色，每组「底色 / 文字色」分开给 —— 只调底色的话，
     浅底深字在深色皮肤下会读不出来 */
  --hl-gold:   #F5B400;  --hl-gold-ink:   #8A6400;
  --hl-green:  #34C759;  --hl-green-ink:  #0F7A3D;
  --hl-blue:   #2B6CFF;  --hl-blue-ink:   #1B4FCC;
  --hl-purple: #8B5CF6;  --hl-purple-ink: #6A34D6;
  --hl-pink:   #EC4899;  --hl-pink-ink:   #BE1B6B;
  --hl-orange: #F97316;  --hl-orange-ink: #B24A05;

  --sh-xs: 0 1px 2px rgba(11, 27, 51, .05);
  --sh-sm: 0 2px 6px rgba(11, 27, 51, .06);
  --sh-md: 0 10px 28px -14px rgba(11, 27, 51, .22);
  --sh-lg: 0 28px 70px -30px rgba(11, 27, 51, .35);
}

/* 深色（深空蓝 + 蓝主色） */
[data-theme="dark"] {
  color-scheme: dark;
  --ink:          #E9EEF8;
  --ink-bg:       #22304A;
  --ink-2:        #0D1728;
  --blue:         #5A8DFF;
  --blue-dark:    #86AAFF;   /* 深色下 hover 是「更亮」，不是更深 */
  --blue-soft:    #1B2A47;
  --blue-line:    #2E4570;
  --gold:         #FFC21A;
  --gold-dark:    #FFD75E;
  --gold-soft:    #3A2E10;
  --gold-line:    #5C4A1C;
  --gold-text:    #FFC21A;
  --gold-hover:   #FFD75E;
  --im-bar-bg:    #3E6BD8;
  --blue-solid:   #3D6FD6;

  --bg:           #0D121C;
  --surface:      #161E2C;
  --surface-2:    #1B2434;
  --line:         #26303F;
  --line-strong:  #38445A;
  --text:         #E9EEF8;
  --text-2:       #A2AEC2;
  --text-3:       #7C8A9E;

  --success:      #2DD4A0;
  --success-soft: #12312A;
  --success-line: #1E5145;
  --success-text: #5FE3B8;
  --danger:       #FF6B60;
  --danger-soft:  #3A1D1B;
  --danger-line:  #5C2B27;
  --danger-text:  #FF9A92;
  --warning-soft: #3A2E10;

  --hover-bg:     #202A3A;
  --opt-hover-bg: #1C2838;

  /* 深色下文字色要往亮里走，否则金底压深蓝会糊成一片 */
  --hl-gold:   #FFC21A;  --hl-gold-ink:   #FFC21A;
  --hl-green:  #34C759;  --hl-green-ink:  #6EE7A0;
  --hl-blue:   #5A8DFF;  --hl-blue-ink:   #86AAFF;
  --hl-purple: #A78BFA;  --hl-purple-ink: #C4B5FD;
  --hl-pink:   #F472B6;  --hl-pink-ink:   #F9A8D4;
  --hl-orange: #FB923C;  --hl-orange-ink: #FDBA74;

  --sh-xs: 0 1px 2px rgba(0, 0, 0, .5);
  --sh-sm: 0 2px 8px rgba(0, 0, 0, .45);
  --sh-md: 0 12px 30px -14px rgba(0, 0, 0, .75);
  --sh-lg: 0 28px 70px -30px rgba(0, 0, 0, .9);
}

/* 护眼绿（深蓝灰底 + 亮绿主色，即客户截图那套） */
[data-theme="green"] {
  color-scheme: dark;
  --ink:          #EAF3EC;
  --ink-bg:       #263442;
  --ink-2:        #0F1A15;
  --blue:         #34C759;
  --blue-dark:    #4ADE80;
  --blue-soft:    #12301F;
  --blue-line:    #24582F;
  --gold:         #4ADE80;
  --gold-dark:    #86EFAC;
  --gold-soft:    #14351F;
  --gold-line:    #256B37;
  --gold-text:    #6EE7A0;
  --gold-hover:   #86EFAC;
  --im-bar-bg:    #289850;
  --blue-solid:   #1E8A42;

  --bg:           #11151C;
  --surface:      #1A212C;
  --surface-2:    #202836;
  --line:         #2A3340;
  --line-strong:  #3C4757;
  --text:         #EAF3EC;
  --text-2:       #A9BCB0;
  --text-3:       #7F928A;

  --success:      #34C759;
  --success-soft: #12301F;
  --success-line: #24582F;
  --success-text: #7BEBA4;
  --danger:       #FF6B60;
  --danger-soft:  #3A1D1B;
  --danger-line:  #5C2B27;
  --danger-text:  #FF9A92;
  --warning-soft: #33290E;

  --hover-bg:     #232C38;
  --opt-hover-bg: #1F2836;

  /* 护眼绿是深底，配色跟深色皮肤同一套亮色 */
  --hl-gold:   #FACC15;  --hl-gold-ink:   #FDE68A;
  --hl-green:  #34C759;  --hl-green-ink:  #86EFAC;
  --hl-blue:   #60A5FA;  --hl-blue-ink:   #93C5FD;
  --hl-purple: #A78BFA;  --hl-purple-ink: #C4B5FD;
  --hl-pink:   #F472B6;  --hl-pink-ink:   #F9A8D4;
  --hl-orange: #FB923C;  --hl-orange-ink: #FDBA74;

  --sh-xs: 0 1px 2px rgba(0, 0, 0, .5);
  --sh-sm: 0 2px 8px rgba(0, 0, 0, .45);
  --sh-md: 0 12px 30px -14px rgba(0, 0, 0, .75);
  --sh-lg: 0 28px 70px -30px rgba(0, 0, 0, .9);
}

/* ---------- 2. 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

/* scrollbar-gutter: 始终预留滚动条位置 —— 切换页签导致页面高度变化时，宽度不再跳动（视频不会突然变小） */
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 { margin: 0; font-weight: 700; letter-spacing: -.015em; line-height: 1.25; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: var(--blue-soft); color: var(--ink); }

/* ---------- 3. 排版工具 ---------- */
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-3);
}
.eyebrow--gold { color: var(--gold-dark); }
.eyebrow--light { color: rgba(255, 255, 255, .55); }

.num { font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }

.h-display { font-size: clamp(34px, 4.4vw, 60px); line-height: 1.08; letter-spacing: -.03em; font-weight: 800; }
.h1 { font-size: 30px; font-weight: 800; letter-spacing: -.028em; }
.h2 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.h3 { font-size: 17px; font-weight: 700; letter-spacing: -.012em; }
.h4 { font-size: 15px; font-weight: 650; }
.lead { font-size: 16px; line-height: 1.65; color: var(--text-2); }
.muted { color: var(--text-3); }
.dim { color: var(--text-2); }
.small { font-size: 12px; }
.tiny { font-size: 11px; }
.serif { font-family: var(--font-serif); }

/* ---------- 4. 按钮 ---------- */
.btn {
  --btn-bg: var(--surface);
  --btn-fg: var(--text);
  --btn-bd: var(--line-strong);
  --btn-bg-hover: #F7F9FD;
  --btn-bd-hover: var(--line-strong);
  --btn-fg-hover: var(--btn-fg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border: 1px solid var(--btn-bd);
  border-radius: var(--r-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--t-fast), border-color var(--t-fast),
              transform var(--t-fast), box-shadow var(--t-fast), color var(--t-fast);
}
.btn:hover { background: var(--btn-bg-hover); border-color: var(--btn-bd-hover); color: var(--btn-fg-hover); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn:disabled:hover { background: var(--btn-bg); border-color: var(--btn-bd); }

.btn--primary {
  --btn-bg: var(--blue-solid); --btn-fg: #fff; --btn-bd: var(--blue-solid);
  --btn-bg-hover: color-mix(in srgb, var(--blue-solid) 86%, #000);
  --btn-bd-hover: color-mix(in srgb, var(--blue-solid) 86%, #000);
  box-shadow: 0 6px 18px -10px color-mix(in srgb, var(--blue) 70%, transparent);
}
.btn--primary:hover { box-shadow: 0 10px 26px -12px color-mix(in srgb, var(--blue) 78%, transparent); }

.btn--dark {
  --btn-bg: var(--ink-bg); --btn-fg: #fff; --btn-bd: var(--ink-bg);
  --btn-bg-hover: color-mix(in srgb, var(--ink-bg) 84%, #fff); --btn-bd-hover: color-mix(in srgb, var(--ink-bg) 84%, #fff);
}

.btn--gold {
  --btn-bg: var(--gold); --btn-fg: #2A1F00; --btn-bd: var(--gold);
  --btn-bg-hover: var(--gold-hover); --btn-bd-hover: var(--gold-hover);
}

.btn--ghost {
  --btn-bg: transparent; --btn-bd: transparent; --btn-fg: var(--text-2);
  --btn-bg-hover: var(--hover-bg); --btn-bd-hover: transparent;
}

.btn--outline-light {
  --btn-bg: rgba(255,255,255,.06); --btn-bd: rgba(255,255,255,.28); --btn-fg: #fff;
  --btn-bg-hover: rgba(255,255,255,.15); --btn-bd-hover: rgba(255,255,255,.5);
}

.btn--sm { height: 34px; padding: 0 13px; font-size: 13px; border-radius: var(--r-xs); }
.btn--lg { height: 50px; padding: 0 26px; font-size: 15px; border-radius: var(--r-md); }
.btn--block { width: 100%; }
.btn--icon { width: 42px; padding: 0; }

/* ---------- 5. 标签 / 徽章 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--r-xs);
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text-2);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .01em;
  white-space: nowrap;
}
.tag--blue { background: var(--blue-soft); border-color: var(--blue-line); color: var(--blue-dark); }
.tag--gold { background: var(--gold-soft); border-color: var(--gold-line); color: var(--gold-text); }
.tag--green { background: var(--success-soft); border-color: var(--success-line); color: var(--success-text); }
.tag--red { background: var(--danger-soft); border-color: var(--danger-line); color: var(--danger-text); }
.tag--dark { background: var(--ink-bg); border-color: var(--ink-bg); color: #fff; }
.tag--dot::before {
  content: "";
  width: 5px; height: 5px; border-radius: 50%;
  background: currentColor;
}

/* ---------- 6. 卡片 ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-xs);
}
.card--pad { padding: 22px; }
.card--hover { transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base); }
.card--hover:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--line-strong); }

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.card-body { padding: 22px; }

.divider { height: 1px; background: var(--line); border: 0; margin: 18px 0; }

/* ---------- 7. 表单 ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field > label { font-size: 12.5px; font-weight: 650; color: var(--text-2); }

.input, .select, .textarea {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.textarea { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.6; }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:hover, .select:hover { border-color: #BCC6D8; }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(43, 108, 255, .14);
}
.input--with-icon { padding-left: 40px; }

.search { position: relative; }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--text-3); }
.search .input { padding-left: 38px; height: 38px; font-size: 13px; }

/* ---------- 8. 头像 / 进度 ---------- */
.avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(140deg, var(--ink-bg) 0%, #2C4B7C 100%);
  border: 1px solid rgba(255,255,255,.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
  flex: none;
}
.avatar--lg { width: 56px; height: 56px; font-size: 19px; }
.avatar--sm { width: 28px; height: 28px; font-size: 11px; }

.progress {
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--line);
  overflow: hidden;
}
.progress > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue) 0%, color-mix(in srgb, var(--blue) 62%, #fff) 100%);
  transition: width 500ms var(--ease);
}
.progress--gold > i { background: linear-gradient(90deg, var(--gold) 0%, color-mix(in srgb, var(--gold) 55%, #fff) 100%); }
.progress--lg { height: 10px; }

.ring {
  --pct: 0;
  --size: 96px;
  --thick: 8px;
  width: var(--size); height: var(--size);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    conic-gradient(var(--blue) calc(var(--pct) * 1%), #EAEEF6 0);
  position: relative;
  flex: none;
}
.ring::after {
  content: "";
  position: absolute;
  inset: var(--thick);
  border-radius: 50%;
  background: var(--surface);
}
.ring > span {
  position: relative;
  z-index: 1;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.ring--gold { background: conic-gradient(var(--gold) calc(var(--pct) * 1%), #F0EAD8 0); }

/* ---------- 9. 应用外壳 ---------- */
.app { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  flex: none;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 14px 16px;
  background: var(--surface);
  border-right: 1px solid var(--line);
  z-index: 40;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 4px 8px 18px;
}
.brand-mark {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: linear-gradient(150deg, #08152B 0%, #16345F 58%, #2B6CFF 145%);
  display: grid; place-items: center;
  color: #fff;
  flex: none;
  position: relative;
  box-shadow: 0 10px 20px -12px rgba(11, 27, 51, .85), inset 0 0 0 1px rgba(255, 255, 255, .13);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.22; min-width: 0; }
.brand-text b {
  font-family: var(--font-display);
  font-size: 18.5px;
  font-weight: 600;
  letter-spacing: .035em;
}
.brand-text span {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--text-3);
}

.nav-group { margin-top: 12px; }
.nav-group > p {
  padding: 0 10px 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 10px;
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 550;
  position: relative;
  transition: background var(--t-fast), color var(--t-fast);
}
.nav-item svg { flex: none; opacity: .8; }
.nav-item:hover { background: var(--hover-bg); color: var(--text); }
.nav-item.is-active {
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-weight: 650;
}
.nav-item.is-active svg { opacity: 1; }
.nav-item.is-active::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 9px; bottom: 9px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--blue);
}
.nav-item .tag { margin-left: auto; height: 18px; font-size: 10px; padding: 0 6px; }
/* 完整名 / 短名：桌面走 .nav-l，手机底部 tab 走 .nav-s（窄屏 5 个字就折行） */
.nav-l { display: inline; }
.nav-s { display: none; }
/* 「会员」入口只在窄屏出现；桌面侧栏已经平铺了账户组。
   它是 <button>（不是 <a>），要清掉浏览器默认的边框和底色 */
.nav-member {
  display: none;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
}
.nav-member.is-active { background: var(--blue-soft); color: var(--blue-dark); font-weight: 650; }

.sidebar-foot { margin-top: auto; padding-top: 14px; }

.mini-card {
  border-radius: var(--r-md);
  padding: 14px;
  background: linear-gradient(160deg, #0B1B33 0%, #17315C 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.mini-card::after {
  content: "";
  position: absolute;
  right: -30px; top: -40px;
  width: 110px; height: 110px;
  border-radius: 50%;
  background: rgba(245, 180, 0, .18);
  filter: blur(2px);
}
.mini-card .eyebrow { color: rgba(255,255,255,.55); }
.mini-card b { display: block; margin: 6px 0 2px; font-size: 14px; }
.mini-card .small { color: rgba(255,255,255,.62); }
.mini-card .btn { margin-top: 12px; height: 32px; font-size: 12.5px; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  height: var(--topbar-h);
  flex: none;
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 28px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-title { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.topbar-title h1 { font-size: 16px; font-weight: 700; letter-spacing: -.015em; }
.topbar-title span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.topbar-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.icon-btn {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  position: relative;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.icon-btn:hover { background: var(--hover-bg); color: var(--text); border-color: var(--line-strong); }
.icon-btn .dot {
  position: absolute; top: 7px; right: 8px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 0 2px #fff;
}

.streak {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 11px;
  border-radius: var(--r-pill);
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  color: var(--gold-text);
  font-size: 12.5px;
  font-weight: 650;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 10px 4px 4px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.user-chip:hover { border-color: var(--line-strong); background: var(--hover-bg); }
.user-chip b { font-size: 12.5px; font-weight: 650; }
.user-chip small { display: block; font-size: 10.5px; color: var(--text-3); line-height: 1.2; }

.page {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding: 28px clamp(24px, 1.6vw, 44px) 40px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.page--wide { max-width: 100%; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.page-head .lead { margin-top: 6px; max-width: 60ch; }

.grid { display: grid; gap: 18px; }
.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-main { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
.grid-main-lg { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }

.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wrap { flex-wrap: wrap; }

/* 章节标题（带序号） */
.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.section-label::before {
  content: attr(data-index);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: .06em;
}
.section-label h2 { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.section-label .line { flex: 1; height: 1px; background: var(--line); }

/* ---------- 10. 落地页 ---------- */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 34px;
  height: 76px;
  width: 100%;
  max-width: calc(var(--page-max) + 2 * clamp(20px, 4vw, 56px));
  margin-inline: auto;
  padding: 0 clamp(20px, 4vw, 56px);
  color: #fff;
}
.site-header .brand-text b { color: #fff; }
.site-header .brand-text span { color: rgba(255,255,255,.5); }
.site-nav { display: flex; align-items: center; gap: 26px; margin-left: 18px; }
.site-nav a {
  font-size: 13.5px;
  color: rgba(255,255,255,.72);
  transition: color var(--t-fast);
  position: relative;
}
.site-nav a:hover { color: #fff; }
.site-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.hero {
  position: relative;
  background: var(--ink-bg);
  color: #fff;
  padding: 132px clamp(20px, 4vw, 56px) 0;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 420px at 78% 8%, rgba(43, 108, 255, .38), transparent 62%),
    radial-gradient(520px 300px at 8% 100%, rgba(245, 180, 0, .12), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 78%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--page-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 56px;
  align-items: center;
  padding-bottom: 84px;
}
.hero h1 { font-size: clamp(38px, 4.6vw, 62px); line-height: 1.06; letter-spacing: -.035em; font-weight: 800; }
.hero h1 em {
  font-style: normal;
  color: var(--gold);
  position: relative;
  white-space: nowrap;
}
.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 6px;
  height: 8px;
  background: rgba(245, 180, 0, .22);
  z-index: -1;
}
.hero .lead { color: rgba(255,255,255,.68); max-width: 480px; margin-top: 20px; font-size: 15.5px; }
.hero-cta { display: flex; align-items: center; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-note { display: flex; align-items: center; gap: 18px; margin-top: 26px; color: rgba(255,255,255,.5); font-size: 12px; }

.hero-art { position: relative; display: flex; flex-direction: column; align-items: stretch; }

/* 课程实拍截图（从真实课时里截的画面，不是设计稿合成图） */
.hero-shot {
  position: relative;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #050C18;
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8);
  transform: rotate(-1.2deg);
  transition: transform var(--t-base);
}
.hero-shot:hover { transform: rotate(0deg); }
.hero-shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.hs-play {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .93);
  display: grid; place-items: center;
  box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .8), 0 0 0 8px rgba(255, 255, 255, .12);
}
.hs-play svg { width: 20px; height: 20px; margin-left: 3px; color: #0B1B33; }
.hs-badge {
  position: absolute; left: 13px; top: 13px;
  height: 25px; padding: 0 10px;
  border-radius: var(--r-pill);
  background: rgba(8, 18, 34, .55);
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(8px);
  color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .02em;
  display: inline-flex; align-items: center; gap: 7px;
}
.hs-badge::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: #FF5A5A; box-shadow: 0 0 0 3px rgba(255, 90, 90, .24);
}
.hs-time {
  position: absolute; right: 13px; top: 13px;
  height: 25px; padding: 0 9px;
  border-radius: var(--r-pill);
  background: rgba(8, 18, 34, .55);
  border: 1px solid rgba(255, 255, 255, .2);
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, .88);
  font-size: 11px; font-variant-numeric: tabular-nums;
  display: inline-flex; align-items: center;
}

/* 浮在大纲卡：把「课程大纲」直接摆在首屏，一眼看到学什么 */
.hero-outline {
  position: relative;
  margin: -26px 0 0 auto;
  /* 2026-10-29：底部一行要放下「星级+评分+学员+粉丝」，卡片比原来略宽一点 */
  width: min(92%, 356px);
  background: color-mix(in srgb, var(--surface) 98%, transparent);
  border-radius: 15px;
  padding: 15px 16px 13px;
  color: var(--text);
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .6);
  transform: rotate(1.3deg);
  z-index: 2;
}
.ho-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.ho-head b { font-family: var(--font-display); font-size: 14.5px; font-weight: 700; letter-spacing: .03em; color: var(--ink); }
.ho-head span { font-size: 10.5px; color: var(--text-3); letter-spacing: .04em; }
.ho-list { margin-top: 8px; display: flex; flex-direction: column; }
.ho-list li {
  display: flex; align-items: center; gap: 9px;
  padding: 6.5px 0;
  font-size: 12.5px;
  color: var(--text);
  border-bottom: 1px dashed var(--line);
}
.ho-list li:last-child { border-bottom: 0; }
.ho-list i {
  width: 21px; height: 21px; flex: none;
  border-radius: 6px;
  display: grid; place-items: center;
  font-style: normal; font-size: 10px; font-weight: 800;
  background: var(--blue-soft); color: var(--blue-dark);
}
.ho-list li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ho-list li em { font-style: normal; font-size: 10.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.ho-list li.is-theory i { background: var(--gold-soft); color: var(--gold-text); }
.ho-foot {
  /* 客户 2026-10-29 第 1 条：星级 · 评分 · 500+ 在英学员 · 全网粉丝 2.6 万 必须在同一行 */
  display: flex; align-items: baseline; flex-wrap: nowrap; gap: 7px;
  margin-top: 10px; padding-top: 9px;
  border-top: 1px solid var(--line);
  font-size: 10.5px; color: var(--text-3);
  white-space: nowrap;
}
.ho-foot b { color: var(--ink); font-size: 12.5px; }
.ho-foot .stars { color: var(--gold); letter-spacing: .04em; font-size: 10.5px; }
.ho-foot .ho-stu b { font-size: 12.5px; }
/* 粉丝信息紧接学员人数，不再另起一行 */
.ho-foot .ho-fans {
  display: inline-flex; align-items: baseline; gap: 3px;
  font-size: 10.5px; letter-spacing: .01em;
}
.ho-foot .ho-fans b { font-size: 12px; color: var(--gold-text); }

.trust-bar {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.03);
}
.trust-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
}
.trust-item { padding: 22px 6px; text-align: center; }
.trust-item b { display: block; font-size: 26px; letter-spacing: -.03em; font-weight: 750; }
.trust-item span { font-size: 11.5px; color: rgba(255,255,255,.5); letter-spacing: .04em; }

.section { padding: 76px clamp(20px, 4vw, 56px); }
.section--tight { padding: 56px clamp(20px, 4vw, 56px); }
.section--alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-inner { max-width: var(--page-max); margin: 0 auto; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 34px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -.03em; margin-top: 10px; }
.section-head p { color: var(--text-2); max-width: 52ch; margin-top: 10px; }

.feature { padding: 26px 22px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.feature .ico {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--blue-soft);
  color: var(--blue-dark);
  margin-bottom: 16px;
}
.feature h3 { font-size: 15.5px; margin-bottom: 8px; }
.feature p { font-size: 13.5px; color: var(--text-2); line-height: 1.65; }
.feature--gold .ico { background: var(--gold-soft); color: var(--gold-text); }

.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }

.course-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.course-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--line-strong); }
.course-card .thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink-bg); }
.course-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.course-card .thumb .badge {
  position: absolute; top: 12px; left: 12px;
  backdrop-filter: blur(6px);
}
.course-card .body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.course-card .body h3 { font-size: 15.5px; line-height: 1.4; }
.course-card .body p { font-size: 12.5px; color: var(--text-2); line-height: 1.6; }
.course-card .foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; margin-top: auto; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--text-3);
}

.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(212px, 1fr)); gap: 20px; align-items: stretch; }
/* 正在测试中的套餐（客户 2026-10-29 第 3 条「理论视频精讲」）：虚线边 + 稍淡，
   一眼看出「还没上架」，但卡片内容与其它卡片同样完整 */
.price-card--soon { border-style: dashed; border-color: var(--line-2, var(--line)); background: var(--surface-2); }
.price-card--soon .btn:disabled { opacity: 1; color: var(--text-2); }
.price-tagline { color: var(--gold-text); font-weight: 600; margin: 2px 0 0; line-height: 1.6; }
/* 「按每月 30 天折算」：单独一行小字，不塞进每日费用胶囊（窄卡片里会折成两行） */
.price-daily-note { display: block; font-size: 11.5px; color: var(--text-3); margin-top: 5px; line-height: 1.5; }
.price-card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: 26px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.price-card--featured {
  border-color: var(--ink-bg);
  box-shadow: var(--sh-md);
}
.price-card--featured::before {
  content: "最受欢迎";
  position: absolute;
  top: -1px; right: 20px;
  transform: translateY(-50%);
  background: var(--gold);
  color: #2A1F00;
  font-size: 11px;
  font-weight: 750;
  padding: 4px 10px;
  border-radius: var(--r-pill);
}
.price-card .amount { display: flex; align-items: baseline; gap: 4px; margin: 14px 0 4px; }
.price-card .amount b { font-size: 40px; letter-spacing: -.04em; font-weight: 800; }
.price-card .amount span { font-size: 13px; color: var(--text-3); }

/* 折合每天多少钱：强调每天的成本，做成金色小胶囊（颜色全走主题变量，深色/绿色皮肤也读得清） */
.price-card .price-daily {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  max-width: 100%;
  margin: 2px 0 6px; padding: 5px 11px;
  border-radius: var(--r-pill);
  background: var(--gold-soft); border: 1px solid var(--gold-line);
  color: var(--gold-text);
  font-size: 12.5px; font-weight: 750; letter-spacing: -.01em; line-height: 1.45;
}
.price-card .price-daily svg { flex: none; color: var(--gold-text); }
.price-card--featured .price-daily { background: var(--gold); border-color: var(--gold); color: #2A1F00; }
.price-card--featured .price-daily svg { color: #2A1F00; }
.price-card ul { display: flex; flex-direction: column; gap: 9px; margin: 20px 0 24px; }
.price-card li { display: flex; gap: 9px; font-size: 13px; color: var(--text-2); }
.price-card li svg { flex: none; margin-top: 3px; color: var(--blue); }
.price-card .btn { margin-top: auto; }

.quote {
  padding: 24px;
  border-radius: var(--r-lg);
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px;
}
.quote p { font-size: 14px; line-height: 1.7; color: var(--text); }
.quote .who { display: flex; align-items: center; gap: 10px; }
.quote .who b { font-size: 12.5px; }
.quote .who small { display: block; color: var(--text-3); font-size: 11px; }

.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 14.5px;
  font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 18px;
  color: var(--text-3);
  transition: transform var(--t-fast);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 4px 18px; color: var(--text-2); font-size: 13.5px; line-height: 1.75; max-width: 78ch; }

.cta-band {
  background: var(--ink-bg);
  color: #fff;
  border-radius: var(--r-xl);
  padding: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  right: -60px; top: -80px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43,108,255,.55), transparent 68%);
}
.cta-band h2 { font-size: 28px; letter-spacing: -.03em; }
.cta-band p { color: rgba(255,255,255,.6); margin-top: 8px; font-size: 14px; }

.site-footer {
  background: #08142A;
  color: rgba(255,255,255,.55);
  padding: 48px clamp(20px, 4vw, 56px) 32px;
}
.footer-inner { max-width: var(--page-max); margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: rgba(255,255,255,.85); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a { display: block; font-size: 13px; padding: 5px 0; color: rgba(255,255,255,.55); }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  max-width: var(--page-max);
  margin: 36px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 11.5px;
}

/* ---------- 11. 登录页 ---------- */
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
}
.auth-side {
  background: var(--ink-bg);
  color: #fff;
  padding: 56px clamp(32px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.auth-side::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 380px at 80% 10%, rgba(43,108,255,.35), transparent 65%),
    radial-gradient(420px 260px at 10% 92%, rgba(245,180,0,.14), transparent 70%);
}
.auth-side::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(120deg, rgba(0,0,0,.8), transparent 70%);
}
.auth-side > * { position: relative; z-index: 1; }
.auth-quote { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.35; letter-spacing: -.02em; font-weight: 700; max-width: 20ch; }
.auth-quote em { font-style: normal; color: var(--gold); }
.auth-stats { display: flex; gap: 40px; margin-top: 28px; }
.auth-stats b { display: block; font-size: 24px; letter-spacing: -.03em; }
.auth-stats span { font-size: 11.5px; color: rgba(255,255,255,.5); }

.auth-main {
  display: grid;
  place-items: center;
  padding: 40px;
  background: var(--surface);
}
.auth-box { width: 100%; max-width: 372px; }
.auth-box h1 { font-size: 26px; letter-spacing: -.03em; margin-bottom: 8px; }
.auth-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  background: var(--bg);
  border-radius: var(--r-sm);
  margin: 26px 0 20px;
}
.auth-tab {
  height: 34px;
  border: 0;
  background: transparent;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
}
.auth-tab.is-active { background: var(--surface); color: var(--text); box-shadow: var(--sh-xs); }
.auth-tab:disabled { opacity: .45; cursor: not-allowed; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-alt { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.auth-foot { margin-top: 26px; font-size: 11.5px; color: var(--text-3); line-height: 1.7; }

/* ---------- 12. 仪表盘 ---------- */
.welcome {
  position: relative;
  border-radius: var(--r-lg);
  padding: 26px 28px;
  background: linear-gradient(112deg, #0B1B33 0%, #17376A 62%, #2B6CFF 130%);
  color: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.welcome::after {
  content: "";
  position: absolute;
  right: -70px; bottom: -90px;
  width: 280px; height: 280px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.16);
}
.welcome::before {
  content: "";
  position: absolute;
  right: 60px; top: -110px;
  width: 220px; height: 220px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.1);
}
.welcome h2 { font-size: 23px; letter-spacing: -.02em; }
.welcome p { color: rgba(255,255,255,.62); margin-top: 6px; font-size: 13px; }
.welcome .row { gap: 8px; margin-top: 16px; }
.welcome-stat { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; }
.welcome-stat .ring { --size: 82px; --thick: 7px; background: conic-gradient(var(--gold) calc(var(--pct) * 1%), rgba(255,255,255,.16) 0); }
.welcome-stat .ring::after { background: #16305A; }
.welcome-stat .ring > span { color: #fff; font-size: 19px; }

.kpi { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.kpi .label { font-size: 11.5px; color: var(--text-3); font-weight: 600; letter-spacing: .03em; }
.kpi .value { font-size: 27px; font-weight: 800; letter-spacing: -.035em; line-height: 1.15; }
.kpi .value small { font-size: 13px; font-weight: 600; color: var(--text-3); letter-spacing: 0; }
.kpi .delta { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--success); font-weight: 650; }
.kpi .delta.is-down { color: var(--danger); }

.continue-card {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
}
.continue-card .thumb { position: relative; background: var(--ink-bg); min-height: 190px; }
.continue-card .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 55%; position: absolute; inset: 0; }
.continue-card .thumb .play {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(11,27,51,.05), rgba(11,27,51,.45));
}
.continue-card .thumb .play span {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  display: grid; place-items: center;
  color: var(--ink);
  box-shadow: 0 10px 30px -12px rgba(0,0,0,.6);
  transition: transform var(--t-base);
}
.continue-card:hover .thumb .play span { transform: scale(1.06); }
.continue-body { padding: 24px 26px; display: flex; flex-direction: column; gap: 12px; }
.continue-body h3 { font-size: 19px; letter-spacing: -.02em; }
.lesson-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-2);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  padding: 3px 8px;
}

.course-row {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  transition: background var(--t-fast);
}
.course-row:last-child { border-bottom: 0; }
.course-row:hover { background: var(--hover-bg); }
.course-row .cover { border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 16/10; background: var(--ink-bg); }
.course-row .cover img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 55%; }
.course-row h4 { font-size: 14.5px; margin-bottom: 4px; }
.course-row .prog { display: flex; align-items: center; gap: 10px; margin-top: 10px; max-width: 340px; }

.list-row {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 2px;
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
}
.list-row:last-child { border-bottom: 0; }
.list-row .t { color: var(--text-3); font-size: 11.5px; margin-left: auto; white-space: nowrap; }

/* ---------- 13. 课程广场 ---------- */
.toolbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
}
.seg { display: inline-flex; padding: 3px; background: var(--bg); border-radius: var(--r-sm); gap: 2px; }
.seg button {
  height: 32px; padding: 0 14px;
  border: 0; background: transparent;
  border-radius: 6px;
  font-size: 12.5px; font-weight: 600; color: var(--text-2);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
}
.seg button.is-active { background: var(--surface); color: var(--text); box-shadow: var(--sh-xs); }

/* ---------- 14. 课程详情 ---------- */
.course-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 28px;
  padding: 26px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
}
.course-hero .preview {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--ink-bg);
}
.course-hero .preview img { width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.course-hero .preview .play-btn {
  position: absolute;
  right: 16px; bottom: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.94);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  box-shadow: 0 8px 24px -10px rgba(0,0,0,.5);
  transition: transform var(--t-fast);
}
.course-hero .preview .play-btn:hover { transform: translateY(-1px); }
.course-hero .info { display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.course-hero .info h1 { font-size: 26px; letter-spacing: -.03em; }
.course-hero .info .lead { font-size: 14px; }
.meta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 4px; }
.meta-grid > div { padding: 12px; border-radius: var(--r-sm); background: var(--bg); }
.meta-grid b { display: block; font-size: 16px; letter-spacing: -.02em; }
.meta-grid span { font-size: 11px; color: var(--text-3); }

.unit { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); overflow: hidden; }
.unit + .unit { margin-top: 12px; }
.unit-head {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
  background: var(--surface-2);
  border-bottom: 1px solid transparent;
  transition: background var(--t-fast);
}
.unit-head:hover { background: #F5F8FE; }
.unit.is-open .unit-head { border-bottom-color: var(--line); }
.unit-head .idx {
  width: 30px; height: 30px;
  border-radius: 8px;
  display: grid; place-items: center;
  background: var(--ink-bg);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .02em;
  flex: none;
}
.unit-head h3 { font-size: 14.5px; }
.unit-head .meta { margin-left: auto; font-size: 11.5px; color: var(--text-3); display: flex; align-items: center; gap: 10px; }
.unit-head .chev { color: var(--text-3); transition: transform var(--t-base); }
.unit.is-open .chev { transform: rotate(180deg); }
.unit-body { display: none; }
.unit.is-open .unit-body { display: block; }

.lesson-row {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background var(--t-fast);
}
.lesson-row:last-child { border-bottom: 0; }
.lesson-row:hover { background: var(--hover-bg); }
.lesson-row .n {
  width: 26px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-3);
  flex: none;
}
.lesson-row .t { font-size: 13.5px; font-weight: 550; }
.lesson-row .d { margin-left: auto; font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.lesson-row .state { width: 74px; text-align: right; flex: none; }
.lesson-row.is-locked { color: var(--text-3); }
.lesson-row.is-locked .t { font-weight: 500; color: var(--text-2); }
.lesson-row.is-done .n { color: var(--success); }
.lesson-row.is-current { background: var(--blue-soft); }
.lesson-row.is-current .t { color: var(--blue-dark); font-weight: 700; }

.buy-card { position: sticky; top: calc(var(--topbar-h) + 20px); }
.price-line { display: flex; align-items: baseline; gap: 6px; }
.price-line b { font-size: 34px; letter-spacing: -.035em; }
.price-line span { font-size: 12px; color: var(--text-3); }
.perk { display: flex; gap: 9px; font-size: 13px; color: var(--text-2); padding: 5px 0; }
.perk svg { flex: none; margin-top: 3px; color: var(--success); }

/* ---------- 15. 播放页 ---------- */
.player-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: start;
}
.player-shell {
  background: var(--ink-bg);
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
  box-shadow: 0 26px 60px -34px rgba(11, 27, 51, .55);
}
.player-stage {
  position: relative;
  aspect-ratio: 16/9;
  background:
    radial-gradient(900px 400px at 50% 0%, #1B3763, #0A1526 70%);
  display: grid;
  place-items: center;
  overflow: hidden;
  /* 整块画面都可点：播放 / 暂停。见 player.js 的 stage 点击监听 */
  cursor: pointer;
  /* 手机上长按画面别弹系统菜单（保存视频之类），点按响应更干脆 */
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
.player-stage .cover {
  position: absolute; inset: 0;
  object-fit: cover; width: 100%; height: 100%;
  opacity: .45;
}
.player-stage .center {
  position: relative; z-index: 2;
  width: 74px; height: 74px;
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  display: grid; place-items: center;
  color: var(--ink);
  border: 0; cursor: pointer;
  box-shadow: 0 18px 50px -18px rgba(0,0,0,.8);
  transition: transform var(--t-fast);
}
.player-stage .center:hover { transform: scale(1.05); }
.player-stage .hint {
  position: absolute; z-index: 2; bottom: 96px; left: 0; right: 0;
  text-align: center; color: rgba(255,255,255,.55); font-size: 12px;
}
.player-bar {
  position: relative;
  z-index: 3;
  padding: 10px 16px 14px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.55));
}
.player-progress { height: 5px; border-radius: 3px; background: rgba(255,255,255,.2); position: relative; cursor: pointer; }
.player-progress > i { position: absolute; inset: 0 auto 0 0; width: 34%; background: var(--blue); border-radius: 3px; }
.player-progress .mark {
  position: absolute; top: -3px;
  width: 2px; height: 11px;
  background: rgba(255,255,255,.65);
}
.player-controls { display: flex; align-items: center; gap: 14px; margin-top: 10px; font-size: 12px; color: rgba(255,255,255,.8); }
.player-controls .spacer { flex: 1; }
.player-controls .btn-mini {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border: 0; border-radius: 6px;
  background: transparent; color: inherit; cursor: pointer;
}
.player-controls .btn-mini:hover { background: rgba(255,255,255,.12); }
.player-controls select {
  background: rgba(255,255,255,.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 6px;
  height: 26px;
  font-size: 11.5px;
  padding: 0 6px;
}
.timecode { font-variant-numeric: tabular-nums; font-size: 11.5px; }

.chapters { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: thin; }
@media (min-width: 760px) {
  .chapters { flex-wrap: wrap; overflow: visible; }
}
.chapter {
  flex: none;
  display: inline-flex; align-items: center; gap: 7px;
  height: 32px; padding: 0 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 12px;
  color: var(--text-2);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--t-fast);
}
.chapter:hover { border-color: var(--blue-line); color: var(--blue-dark); }
.chapter.is-active { background: var(--ink-bg); border-color: var(--ink-bg); color: #fff; }
.chapter .tm { font-variant-numeric: tabular-nums; opacity: .65; font-size: 11px; }

.lesson-list { max-height: 560px; overflow-y: auto; }
@media (min-width: 1080px) {
  /* 目录高度跟随视口，让右侧卡片整体更有"贴边"的整体感 */
  .lesson-list { max-height: clamp(280px, calc(100vh - 330px), 620px); }
}
.lesson-list::-webkit-scrollbar { width: 6px; }
.lesson-list::-webkit-scrollbar-thumb { background: #D8DEEA; border-radius: 3px; }

.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px 11px;
  border: 0;
  border-radius: 10px 10px 0 0;
  background: transparent;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast);
}
.tabs button:hover { background: var(--bg); color: var(--text); }
.tabs button.is-active { color: var(--blue-dark); background: linear-gradient(180deg, transparent, rgba(43, 108, 255, .07)); }
.tabs button.is-active::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px;
  background: var(--blue); border-radius: 2px;
}
/* 面板高度兜底：切换页签时卡片高度不来回跳，页面不抖 */
.tab-panel { padding-top: 16px; display: none; min-height: 300px; }
.tab-panel.is-active { display: block; animation: tabIn .2s var(--ease) both; }
@keyframes tabIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 16. 开通 / 兑换 ---------- */
.redeem {
  display: flex; gap: 10px;
  padding: 18px;
  border-radius: var(--r-md);
  border: 1px dashed var(--line-strong);
  background: var(--surface-2);
  align-items: center;
  flex-wrap: wrap;
}
.redeem .field { flex: 1; min-width: 220px; }
.redeem input { letter-spacing: .16em; font-family: var(--font-mono); text-transform: uppercase; }

.wechat-card {
  display: flex; gap: 16px; align-items: center;
  padding: 18px;
  border-radius: var(--r-md);
  background: linear-gradient(120deg, #0B1B33, #1B3A6E);
  color: #fff;
}
.wechat-card .qr {
  width: 76px; height: 76px;
  border-radius: 10px;
  background:
    repeating-conic-gradient(#fff 0 25%, #0B1B33 0 50%) 0 0 / 12px 12px,
    #fff;
  flex: none;
  border: 4px solid #fff;
}
.wechat-card b { font-size: 15px; letter-spacing: .02em; }
.wechat-card .small { color: rgba(255,255,255,.6); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.step { padding: 18px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.step::before {
  counter-increment: s;
  content: "STEP 0" counter(s);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  color: var(--blue);
}
.step h4 { margin: 8px 0 6px; font-size: 14px; }
.step p { font-size: 12.5px; color: var(--text-2); line-height: 1.65; }

/* ---------- 17. 我的账户 ---------- */
.profile-head { display: flex; align-items: center; gap: 18px; }
.profile-head h2 { font-size: 22px; letter-spacing: -.02em; }
.profile-head .row { margin-top: 6px; gap: 8px; }

.settings-row {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.settings-row:last-child { border-bottom: 0; }
.settings-row .label { width: 150px; font-size: 13px; color: var(--text-2); flex: none; }
.settings-row .value { font-size: 13.5px; font-weight: 550; }
.settings-row .act { margin-left: auto; }

.table { font-size: 13px; }
.table th {
  text-align: left;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 700;
  padding: 0 12px 10px;
  border-bottom: 1px solid var(--line);
}
.table td { padding: 13px 12px; border-bottom: 1px solid var(--line); color: var(--text-2); }
.table tr:last-child td { border-bottom: 0; }
.table td b { color: var(--text); font-weight: 600; }

/* ---------- 18. 理论（规划中） ---------- */
.soon-banner {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  border-radius: var(--r-md);
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  color: var(--gold-text);
  font-size: 13px;
}
.soon-banner b { font-weight: 700; }

.quiz-card { padding: 22px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); }
.option {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  cursor: pointer;
  margin-bottom: 10px;
  font-size: 13.5px;
  transition: all var(--t-fast);
}
.option:hover { border-color: var(--blue-line); background: var(--opt-hover-bg); }
.option .k {
  width: 22px; height: 22px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700; color: var(--text-3);
  flex: none;
}
.option.is-picked { border-color: var(--blue); background: var(--blue-soft); }
.option.is-picked .k { background: var(--blue); border-color: var(--blue); color: #fff; }
.option.is-correct { border-color: var(--success); background: var(--success-soft); }
.option.is-wrong { border-color: var(--danger); background: var(--danger-soft); }

/* ---------- 19. 空态 / 锁 / toast ---------- */
.empty {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 54px 20px;
  text-align: center;
  color: var(--text-3);
}
.empty .ico {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--bg); color: var(--text-3);
  margin-bottom: 4px;
}
.empty b { color: var(--text); font-size: 14px; }
.empty p { font-size: 12.5px; max-width: 34ch; }

.lock-note {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: var(--warning-soft);
  border: 1px solid #F5DFB3;
  color: #7A5900;
  font-size: 12.5px;
}

.toast-wrap {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 9px;
  padding: 11px 18px;
  border-radius: var(--r-pill);
  background: var(--ink-bg);
  color: #fff;
  font-size: 13px;
  font-weight: 550;
  box-shadow: var(--sh-lg);
  animation: toast-in 260ms var(--ease);
}
.toast--ok { background: #0B6B4A; }
.toast--warn { background: #7A5900; }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(10px) scale(.97); }
  to { opacity: 1; transform: none; }
}

.fade-up { animation: fade-up 480ms var(--ease) both; }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 20. 设计规范页 ---------- */
.ds-section { scroll-margin-top: 90px; }
.ds-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.swatch { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.swatch .chip { height: 64px; }
.swatch .info { padding: 10px 12px; }
.swatch b { display: block; font-size: 12.5px; }
.swatch code { font-size: 10.5px; color: var(--text-3); font-family: var(--font-mono); }
.ds-type-row { display: flex; align-items: baseline; gap: 18px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.ds-type-row code { width: 92px; flex: none; font-size: 11px; color: var(--text-3); font-family: var(--font-mono); }
.ds-demo { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; padding: 16px 0; }

/* ---------- 21. 响应式 ---------- */
@media (max-width: 1180px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-art { max-width: 620px; width: 100%; margin: 0 auto; }
  .grid-main, .grid-main-lg { grid-template-columns: 1fr; }
  .buy-card { position: static; }
  .player-layout { grid-template-columns: minmax(0, 1fr); }
  .player-layout > * { min-width: 0; }
  .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 980px) {
  :root { --sidebar-w: 0px; }
  .sidebar {
    position: fixed;
    left: 0; right: 0; bottom: 0; top: auto;
    width: 100%;
    height: calc(62px + env(safe-area-inset-bottom, 0px));
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    padding: 0 4px env(safe-area-inset-bottom, 0px);
    border-right: 0;
    border-top: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 96%, transparent);
    backdrop-filter: blur(14px);
    z-index: 60;
  }
  .sidebar .brand, .sidebar .nav-group > p, .sidebar .sidebar-foot, .sidebar .nav-item .tag { display: none; }
  .sidebar .nav-group { display: contents; margin: 0; }
  /* 账户组的两项 + 登录/退出 收进「会员」抽屉，底部只留 5 个主 tab + 1 个会员 */
  .sidebar .nav-item.nav-acct { display: none; }
  .sidebar .nav-member { display: flex; }
  /* 均分宽度：项数变了也不会溢出；文字一律不折行 */
  .nav-item {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    max-width: 92px;
    flex-direction: column;
    gap: 3px;
    height: 54px;
    justify-content: center;
    padding: 0 2px;
    font-size: 10px;
    border-radius: 8px;
    overflow: hidden;
    white-space: nowrap;
  }
  .nav-item > span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .nav-l { display: none; }
  .nav-s { display: inline; }
  .nav-item.is-active::before { display: none; }
  .nav-item svg { width: 19px; height: 19px; }
  .main { padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }
  .topbar { padding: 0 16px; }
  .topbar .streak, .topbar .search { display: none; }
  /* 窄屏顶栏空间不够：标题不换行，英文副标题让位给用户信息 */
  .topbar-title { gap: 0; }
  .topbar-title h1 { white-space: nowrap; }
  .topbar-title span { display: none; }
  .page { padding: 18px 16px 26px; gap: 18px; }
  .course-hero { grid-template-columns: 1fr; }
  .continue-card { grid-template-columns: 1fr; }
  .continue-card .thumb { min-height: 170px; position: relative; }
  .price-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .section { padding: 52px 20px; }
  .trust-inner { grid-template-columns: repeat(2, 1fr); }
  .welcome { flex-direction: column; align-items: flex-start; }
  .course-row { grid-template-columns: 96px minmax(0, 1fr); }
  .course-row .act { grid-column: 2; }
  .meta-grid { grid-template-columns: repeat(3, 1fr); }
}

/* 超窄屏（iPhone SE 一代 320px 一类）：底部变成 7 个 tab 后每格只有 41px，
   4 个字的短名（危险感知 / 线下学车）会被省略号截断，这里单独压字号 */
@media (max-width: 360px) {
  .nav-item { font-size: 9px; padding: 0 1px; }
  .nav-item > span { letter-spacing: -.02em; }
}

@media (max-width: 720px) {
  .player-shell, .player-stage, .player-bar, .player-controls { min-width: 0; }
  .player-controls { flex-wrap: wrap; row-gap: 8px; gap: 10px; }
  .player-bar .row-between { flex-wrap: wrap; gap: 8px; }
  .player-stage .hint { bottom: 84px; font-size: 11px; padding: 0 16px; }
  .course-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section-head h2 { font-size: 24px; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 28px; }
  .footer-inner { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .hero { padding-top: 108px; }
  .course-hero { padding: 16px; }
  .meta-grid { grid-template-columns: 1fr; }
  .toolbar { padding: 12px; }
  .page-head { align-items: flex-start; }
  .profile-head { flex-wrap: wrap; }
  .settings-row { flex-wrap: wrap; gap: 8px; }
  .settings-row .label { width: 100%; }
  .settings-row .act { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* 打印 / 截图友好 */
@media print {
  .sidebar, .topbar, .site-header, .toast-wrap { display: none !important; }
}

/* ==========================================================================
   7. 高级质感升级（v2）
   ========================================================================== */

/* --- 7.1 金色渐变文字 --- */
.grad-gold {
  background: linear-gradient(96deg, #FFE08A 0%, #F5B400 42%, #FFD35C 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --- 7.2 Hero 极光层 --- */
.hero-aurora {
  position: absolute;
  inset: -10% -5%;
  pointer-events: none;
  z-index: 1;
  opacity: .85;
}
.hero-aurora i {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(70px);
  mix-blend-mode: screen;
}
.hero-aurora .a1 {
  width: 46vw; height: 46vw; max-width: 620px; max-height: 620px;
  right: -6%; top: -18%;
  background: radial-gradient(circle at 40% 40%, rgba(43,108,255,.55), rgba(43,108,255,0) 68%);
  animation: aurora-a 22s var(--ease) infinite alternate;
}
.hero-aurora .a2 {
  width: 32vw; height: 32vw; max-width: 430px; max-height: 430px;
  left: -8%; bottom: -22%;
  background: radial-gradient(circle at 50% 50%, rgba(245,180,0,.22), rgba(245,180,0,0) 70%);
  animation: aurora-b 26s var(--ease) infinite alternate;
}
.hero-aurora .a3 {
  width: 24vw; height: 24vw; max-width: 320px; max-height: 320px;
  left: 38%; top: 12%;
  background: radial-gradient(circle at 50% 50%, rgba(124,77,255,.25), rgba(124,77,255,0) 70%);
  animation: aurora-a 30s var(--ease) infinite alternate-reverse;
}
@keyframes aurora-a {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(-4%, 5%, 0) scale(1.12); }
}
@keyframes aurora-b {
  from { transform: translate3d(0,0,0) scale(1.05); }
  to   { transform: translate3d(6%, -4%, 0) scale(.94); }
}

/* --- 7.3 首页服务条跑马灯 --- */
.marquee {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(600px 120px at 50% 0%, rgba(43,108,255,.16), transparent 70%),
    var(--ink-bg);
  padding: 17px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee-group {
  display: flex;
  align-items: center;
  gap: 46px;
  padding-right: 46px;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.42);
  white-space: nowrap;
}
.marquee-item b { color: rgba(255,255,255,.82); font-weight: 600; letter-spacing: .06em; }
.marquee .sep { width: 4px; height: 4px; border-radius: 50%; background: rgba(245,180,0,.7); flex: none; }

/* --- 7.4 滚动入场 --- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-aurora i, .marquee-track { animation: none !important; }
}

/* --- 7.5 课程卡封面缩放 --- */
.course-card .thumb { overflow: hidden; position: relative; }
.course-card .thumb img { transition: transform .7s var(--ease); }
.course-card:hover .thumb img { transform: scale(1.045); }
.course-card { position: relative; }
.course-card::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0);
  transition: box-shadow var(--t-base);
}
.course-card:hover::after { box-shadow: inset 0 0 0 1px rgba(43,108,255,.25); }

/* --- 7.6 价格卡精品化 --- */
.price-card {
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--line-strong); }
.price-card--featured {
  position: relative;
  background:
    radial-gradient(420px 240px at 100% 0%, rgba(43,108,255,.07), transparent 70%),
    var(--surface);
}

/* --- 7.7 深色区块细腻噪点 --- */
.cta-band, .hero { position: relative; }
.cta-band::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
}

/* --- 7.8 按钮光泽 --- */
.btn--gold, .btn--primary { position: relative; overflow: hidden; }
.btn--gold::after, .btn--primary::after {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.42), transparent);
  transform: skewX(-18deg);
  transition: left .55s var(--ease);
}
.btn--gold:hover::after, .btn--primary:hover::after { left: 120%; }

/* --- 7.9 指标条更精致 --- */
.trust-item b { font-size: 30px; letter-spacing: -.04em; }
.trust-item { position: relative; }

/* --- 7.10 封面卡细节 --- */
.course-card .thumb::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(8,20,38,0) 55%, rgba(8,20,38,.28));
  pointer-events: none;
}

/* ==========================================================================
   8. 版式大气化（v2.1）
   ========================================================================== */

/* 区块留白更舒展 */
.section { padding: 96px clamp(20px, 4vw, 56px); }
.section--tight { padding: 68px clamp(20px, 4vw, 56px); }
.section-head { margin-bottom: 44px; }
.section-head h2 { font-size: clamp(28px, 2.9vw, 38px); }

/* 小标题金色短线 */
.section-head .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.section-head .eyebrow::before {
  content: "";
  width: 22px; height: 1.5px;
  background: var(--gold);
  opacity: .85;
}

/* 导航悬停下划线 */
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.site-nav a:hover::after { transform: scaleX(1); }

/* 特性卡悬停 */
.feature {
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
  border-color: var(--line-strong);
}
.feature .ico { transition: transform var(--t-base); }
.feature:hover .ico { transform: scale(1.06); }

/* Hero 更从容 */
.hero { padding-top: 148px; }
.hero h1 { letter-spacing: -.04em; }
.hero .lead { max-width: 480px; }

/* 评价卡 */
.quote {
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.quote:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }

/* 页脚更沉稳 */
.site-footer { padding-top: 64px; }

/* ==========================================================================
   9. 宽度自适应与悬停可读性修正（v2.2）
   ========================================================================== */

/* 9.1 中小屏回到满宽（避免流式上限在窄屏留下大留白） */
@media (max-width: 1200px) {
  :root { --page-max: 100%; }
  .site-header { max-width: none; }
  .page--wide { max-width: 100%; }
}

/* 9.2 宽屏：主视觉与播放区限制最大尺寸，避免被无限拉伸 */
@media (min-width: 1441px) {
  /* 主视觉占 48%，左文右图等比生长，避免超宽屏中间出现大片空洞 */
  .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 48%); gap: 56px; align-items: center; }
  .hero .lead { max-width: 520px; }
  /* 注意：必须显式 width:100%，否则 flex 子项在 margin-inline:auto 下会按内容收缩，
     切换页签（内容变短/变长）时播放器尺寸会跟着跳 */
  .player-layout { width: 100%; max-width: 1500px; margin-inline: auto; }
}

/* 9.3 悬停态文字与背景保证对比度（深色按钮永不被浅色底覆盖） */
.btn { color: var(--btn-fg); }
.btn--primary:hover, .btn--dark:hover, .btn--gold:hover,
.btn--outline-light:hover { color: var(--btn-fg); }

/* 9.4 超宽屏：课程库多留一点间距，卡片不至于过宽 */
@media (min-width: 1700px) {
  .course-grid { gap: 26px; }
  .page { padding-top: 34px; }
}

/* ==========================================================================
   10. 课程广场改版：导学课 + 六单元（v2.3）
   ========================================================================== */

/* 10.1 品牌文字（中文副标不再强制大写） */
.brand-text span { text-transform: none; letter-spacing: .06em; font-size: 10px; }

/* 10.2 页头整体进度 */
.catalog-progress {
  flex: 1 1 250px;
  min-width: 220px;
  max-width: 300px;
  padding: 13px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

/* 10.3 导学课大卡 */
.guide-card {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) auto;
  gap: 26px;
  align-items: center;
  padding: 16px;
  border-radius: var(--r-xl);
  color: #fff;
  background:
    radial-gradient(720px 320px at 92% -10%, rgba(43, 108, 255, .42), transparent 68%),
    linear-gradient(118deg, #0B1B33 0%, #17376A 68%, #1E4A8F 100%);
  box-shadow: var(--sh-md);
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); }
.guide-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #0A1526;
}
.guide-thumb img { width: 100%; height: 100%; object-fit: cover; }
.guide-play {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(8, 20, 38, .04), rgba(8, 20, 38, .34));
}
.guide-play::before {
  content: "";
  position: absolute;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 10px 26px -10px rgba(0, 0, 0, .6);
}
.guide-play svg { position: relative; color: #0B1B33; margin-left: 3px; width: 22px; height: 22px; }
.guide-badge {
  position: absolute; top: 10px; right: 10px;
  height: 30px; padding: 0 14px;
  border-radius: var(--r-pill);
  background: var(--gold);
  color: #2A1F00;
  font-size: 13.5px; font-weight: 800;
  letter-spacing: .04em;
  display: inline-flex; align-items: center;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .7);
}
.guide-body h2 { font-size: clamp(21px, 1.9vw, 27px); letter-spacing: -.025em; margin-top: 8px; }
.guide-desc { color: rgba(255, 255, 255, .66); font-size: 13.5px; line-height: 1.75; margin-top: 8px; max-width: 62ch; }
.guide-tag {
  height: 22px; padding: 0 9px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .07);
  font-size: 11px;
  display: inline-flex; align-items: center;
  color: rgba(255, 255, 255, .78);
}
.guide-tag--gold { border-color: rgba(245, 180, 0, .45); background: rgba(245, 180, 0, .14); color: #FFD98A; }
.guide-cta { padding-right: 8px; }
.guide-cta .btn { pointer-events: none; }

/* 10.4 六个单元列表 */
.unit-list { position: relative; display: flex; flex-direction: column; gap: 12px; }
.unit-item {
  display: grid;
  grid-template-columns: 62px 168px minmax(0, 1fr) auto 20px;
  align-items: center;
  gap: 20px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
}
.unit-item:hover { border-color: var(--line-strong); box-shadow: var(--sh-md); transform: translateY(-2px); }
.unit-no {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--line-strong);
}
.unit-item[data-state="learning"] .unit-no { color: var(--blue); }
.unit-item[data-state="done"] .unit-no { color: var(--success); }
.unit-thumb {
  width: 168px;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: var(--ink-bg);
}
.unit-thumb img { width: 100%; height: 100%; object-fit: cover; }
.unit-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.unit-title h3 { font-size: 16px; letter-spacing: -.015em; }
.unit-desc {
  font-size: 13px;
  color: var(--text-2);
  margin-top: 5px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.unit-meta { display: flex; align-items: center; gap: 10px; margin-top: 10px; max-width: 440px; }
.unit-meta .progress { flex: 1; }
.unit-meta .num { font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.unit-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.unit-arrow { color: var(--text-3); display: grid; place-items: center; }
.unit-item:hover .unit-arrow { color: var(--blue); }

@media (max-width: 1180px) {
  .guide-card { grid-template-columns: 240px minmax(0, 1fr); gap: 20px; }
  .guide-cta { grid-column: 2; padding-right: 0; }
  .unit-item { grid-template-columns: 52px 140px minmax(0, 1fr) auto 18px; gap: 16px; }
  .unit-thumb { width: 140px; }
}

/* 10.5 手机端：序号气泡 + 虚线时间轴 */
@media (max-width: 720px) {
  .catalog-progress { max-width: none; width: 100%; }
  .guide-card { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 12px; border-radius: 18px; }
  .guide-cta { grid-column: 1; }
  .guide-cta .btn { width: 100%; }
  .guide-desc { font-size: 12.5px; }
  .guide-body h2 { font-size: 18px; }

  .unit-list { gap: 10px; }
  .unit-list::before {
    content: "";
    position: absolute;
    left: 27px; top: 30px; bottom: 30px;
    border-left: 2px dotted var(--line-strong);
    z-index: 0;
  }
  .unit-item {
    position: relative;
    z-index: 1;
    grid-template-columns: 30px 86px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 13px;
    border-radius: 14px;
  }
  .unit-no {
    width: 30px; height: 30px;
    border-radius: 50%;
    display: grid; place-items: center;
    font-family: var(--font-sans);
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: -.02em;
    background: #E9EEF7;
    color: var(--text-3);
  }
  .unit-item[data-state="learning"] .unit-no { background: var(--blue); color: #fff; }
  .unit-item[data-state="done"] .unit-no { background: var(--success); color: #fff; }
  .unit-thumb { width: 86px; border-radius: 9px; }
  .unit-title h3 { font-size: 14px; }
  .unit-title .tag { height: 19px; font-size: 10px; padding: 0 7px; }
  .unit-desc { display: none; }
  .unit-meta { margin-top: 8px; max-width: none; gap: 8px; }
  .unit-side, .unit-arrow { display: none; }
}

/* ==========================================================================
   11. 理论学习模块化（v2.3）
   ========================================================================== */
.theory-ready {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 20px 24px;
  flex-wrap: wrap;
}
.theory-ready .ring { flex: none; }
.theory-ready-text { flex: 1; min-width: 220px; }
.theory-ready-cta { flex: none; }

.theory-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.theory-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  cursor: pointer;
  text-align: left;
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
}
.theory-card:hover { border-color: var(--line-strong); box-shadow: var(--sh-md); transform: translateY(-2px); }
.theory-card--hp {
  background:
    radial-gradient(320px 160px at 100% 0%, rgba(43, 108, 255, .07), transparent 70%),
    var(--surface);
}

.tc-top { display: flex; gap: 14px; align-items: flex-start; }
.tc-body { min-width: 0; flex: 1; }
.tc-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  flex: none;
}
.tc-icon--blue { background: var(--blue-soft); color: var(--blue-dark); }
.tc-icon--red { background: #FDECEA; color: #C93A32; }
.tc-icon--gold { background: var(--gold-soft); color: var(--gold-text); }
.tc-icon--navy { background: #E7EDF7; color: var(--ink); }
.tc-icon--violet { background: #F0EBFF; color: #5B39C9; }

.tc-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tc-head h3 { font-size: 15.5px; letter-spacing: -.015em; }
.tc-desc { font-size: 12.5px; color: var(--text-2); line-height: 1.65; margin-top: 6px; }
.tc-chips { gap: 6px; margin-top: 10px; }
.tc-chips span {
  height: 22px; padding: 0 8px;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text-2);
  font-size: 11px;
  display: inline-flex; align-items: center;
}

.tc-bar { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.tc-bar .progress { flex: 1; }
.tc-bar .num { font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }

.theory-slim {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  flex-wrap: wrap;
  cursor: pointer;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
.theory-slim:hover { border-color: var(--line-strong); box-shadow: var(--sh-md); }

@media (max-width: 720px) {
  .theory-ready { padding: 16px; gap: 14px; }
  .theory-ready .ring { --size: 64px !important; }
  .theory-ready-cta { width: 100%; }
  .theory-card { padding: 14px; gap: 12px; }
  .tc-icon { width: 40px; height: 40px; border-radius: 11px; }
  .tc-head h3 { font-size: 14.5px; }
  .theory-slim { padding: 14px; gap: 12px; }
  .theory-slim .btn { width: 100%; }
}

/* ==========================================================================
   12. 播放器：UID 滚动弹幕水印 + 4K（v2.3）
   ========================================================================== */
.danmaku-layer {
  position: absolute;
  inset: 0 0 54px 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 3;
}
.danmaku-item {
  position: absolute;
  left: 100%;
  white-space: nowrap;
  color: #fff;
  font-weight: 600;
  letter-spacing: .02em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .7);
  will-change: transform;
  animation-name: dm-move;
  animation-duration: var(--dur, 13s);
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}
@keyframes dm-move {
  from { transform: translateX(0); }
  to   { transform: translateX(var(--dist, -1200px)); }
}
@media (prefers-reduced-motion: reduce) {
  .danmaku-item { animation: none !important; }
}

.player-watermark {
  position: absolute;
  /* 位置由 MediaUI.watermark() 用 left/top 接管（right/bottom 同时存在会把 width 拉满），
     下面这两行只是 JS 没跑起来时的兜底 */
  right: 12px;
  bottom: 62px;
  /* 换位平滑滑过去而不是瞬移，减少对观感的打断 */
  transition: left 1.1s cubic-bezier(.22, .61, .36, 1), top 1.1s cubic-bezier(.22, .61, .36, 1);
  will-change: left, top;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: rgba(4, 12, 24, .38);
  color: rgba(255, 255, 255, .62);
  font-size: 10.5px;
  letter-spacing: .06em;
  z-index: 4;
  pointer-events: none;
  backdrop-filter: blur(4px);
}
/* 全屏 / 半屏 / 横竖屏切换时位置整体重算，这一下不要做过渡动画 */
.player-watermark.is-jump { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .player-watermark { transition: none; }
}
.wm-dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(255, 255, 255, .4); }

.btn-mini.is-on {
  background: rgba(43, 108, 255, .3);
  color: #fff;
}
.btn-mini.is-on:hover { background: rgba(43, 108, 255, .45); }

@media (max-width: 720px) {
  .danmaku-layer { inset: 0 0 66px 0; }
  .player-watermark { right: 8px; bottom: 70px; font-size: 9.5px; padding: 3px 8px; }
  .player-watermark #wm-user { max-width: 128px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* ==========================================================================
   13. 手机端空间利用（APP 化，v2.3）
   ========================================================================== */
@media (max-width: 720px) {
  .page { padding: 12px 12px 30px; gap: 14px; }
  .card { border-radius: 16px; }
  .topbar { padding: 0 14px; }
  .topbar-title h1 { font-size: 17px; }
  .h1 { font-size: 25px; letter-spacing: -.03em; }
  .page-head .lead { font-size: 13px; line-height: 1.65; }
  .grid { gap: 12px; }
  .stack { gap: 12px; }
  .card--pad { padding: 15px; }
  .card-head { padding: 14px 15px; }
  .card-body { padding: 15px; }
  .kpi { padding: 14px 15px; }
  .kpi .value { font-size: 23px; }
  .btn { height: 44px; }
  .btn--sm { height: 38px; font-size: 13px; }
  .toolbar { padding: 10px 12px; gap: 10px; }
  .seg button { height: 34px; padding: 0 12px; font-size: 12.5px; }
  .soon-banner { padding: 12px 14px; font-size: 12.5px; }
}

/* 13.1 手机端 KPI 两列排布，避免每个数字占一整屏 */
@media (max-width: 720px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 12px 13px; gap: 4px; }
  .kpi .label { font-size: 10.5px; }
  .kpi .value { font-size: 21px; }
  .kpi .delta { font-size: 10.5px; }
  .welcome { padding: 18px 16px; gap: 14px; }
  .welcome h2 { font-size: 20px; }
  .welcome-stat .ring { --size: 64px !important; }
}

/* ==========================================================================
   14. 单元详情页（course.html）— 单元头图 + 课时列表 + 单元导航
   ========================================================================== */
.unit-hero {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 30px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background:
    radial-gradient(120% 150% at 100% 0%, rgba(43, 108, 255, .08), transparent 58%),
    /* 原来这里写死 #FFFFFF → #F7FAFF：深色 / 护眼绿皮肤下整块仍是白底，
       而标题、简介取的是 --ink / --text（深色皮肤下变浅），对比度掉到 1.2:1 左右 */
    linear-gradient(150deg, var(--surface) 0%, var(--surface-2) 100%);
  box-shadow: var(--sh-sm);
}

.uh-media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  align-self: center;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink-bg);
  isolation: isolate;
}
.uh-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.uh-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11, 27, 51, .34) 0%, rgba(11, 27, 51, 0) 34%, rgba(11, 27, 51, .28) 100%);
}
.uh-badge {
  position: absolute; left: 14px; top: 12px; z-index: 2;
  height: 24px; padding: 0 10px; border-radius: var(--r-pill);
  display: inline-flex; align-items: center;
  font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: #fff; background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .3);
  backdrop-filter: blur(8px);
}
.uh-play {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; gap: 9px;
  height: 46px; padding: 0 20px 0 8px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .94); color: var(--ink-bg);
  font-size: 13.5px; font-weight: 650; text-decoration: none;
  box-shadow: 0 12px 30px -12px rgba(11, 27, 51, .55);
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.uh-play i {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--blue); color: #fff;
}
.uh-play:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(11, 27, 51, .6); }
.uh-foot {
  position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 2;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  color: #fff;
}
.uh-foot span { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; opacity: .85; }

.uh-info { position: relative; display: flex; flex-direction: column; gap: 14px; justify-content: center; padding: 4px 6px; }
.uh-ghost {
  position: absolute; right: 0; top: -14px;
  font-size: 112px; font-weight: 800; line-height: 1; letter-spacing: -.07em;
  color: rgba(43, 108, 255, .07);
  pointer-events: none; user-select: none;
}
.uh-info h1 { font-size: clamp(26px, 2.4vw, 34px); letter-spacing: -.035em; margin: 0; }
.uh-info .lead { font-size: 14px; max-width: 620px; margin: 0; }

.uh-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 470px; }
.uh-stats > div { padding: 11px 13px; border-radius: var(--r-sm); background: var(--bg); border: 1px solid var(--line); }
.uh-stats b { display: block; font-size: 15.5px; letter-spacing: -.02em; }
.uh-stats span { font-size: 11px; color: var(--text-3); }

.uh-progress { max-width: 470px; }

/* ---- 课时列表 ---- */
.lesson-card { overflow: hidden; }
.lesson-head {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
}
.lesson-head .tag { margin-left: auto; }
.lesson-list { display: flex; flex-direction: column; }

.lesson-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto 62px 32px;
  gap: 14px; align-items: center;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  text-decoration: none; color: inherit;
  transition: background var(--t-fast);
}
.lesson-item:first-child { border-top: 0; }
.lesson-item:hover { background: var(--hover-bg); }
.lesson-item .li-no {
  font-size: 13px; font-weight: 700; color: var(--text-3);
  font-variant-numeric: tabular-nums; letter-spacing: .02em;
}
.lesson-item .li-main h4 { font-size: 14px; font-weight: 600; letter-spacing: -.01em; line-height: 1.45; }
.lesson-item .li-main p { margin: 3px 0 0; font-size: 11.5px; color: var(--text-3); }
.lesson-item .li-time { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; text-align: right; }
.lesson-item .li-play {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; flex: none;
  border: 1px solid var(--line); background: var(--surface); color: var(--text-2);
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.lesson-item:hover .li-play { background: var(--blue); border-color: var(--blue); color: #fff; }
.lesson-item.is-done .li-no { color: var(--success); }
.lesson-item.is-done .li-main h4 { color: var(--text-2); }
.lesson-item.is-current { background: var(--blue-soft); }
.lesson-item.is-current:hover { background: #E2EBFF; }
.lesson-item.is-current .li-no { color: var(--blue); }
.lesson-item.is-current .li-main h4 { color: var(--blue-dark); font-weight: 700; }
.lesson-item.is-current .li-play { background: var(--blue); border-color: var(--blue); color: #fff; }
.lesson-item.is-locked { opacity: .62; }
.lesson-item.is-locked .li-play { border-style: dashed; }

/* ---- 右侧单元导航 ---- */
.unit-aside {
  display: flex; flex-direction: column; gap: 16px;
  position: sticky; top: calc(var(--topbar-h) + 20px); align-self: start;
}
.unit-nav { display: flex; flex-direction: column; gap: 2px; }
.unit-nav .eyebrow { padding: 0 10px 8px; }
.un-item {
  display: grid; grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 10px; align-items: center;
  padding: 9px 10px; border-radius: 10px;
  text-decoration: none; color: inherit;
  transition: background var(--t-fast);
}
.un-item:hover { background: var(--bg); }
.un-item .un-no {
  font-size: 11px; font-weight: 700; color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.un-item .un-title { font-size: 13px; font-weight: 550; line-height: 1.4; }
.un-item .un-meta { font-size: 10.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.un-item.is-guide .un-no { color: var(--gold-dark); }
.un-item.is-active { background: var(--blue-soft); }
.un-item.is-active .un-title { color: var(--blue-dark); font-weight: 700; }
.un-item.is-active .un-no { color: var(--blue); }

.unit-note { display: flex; gap: 11px; align-items: flex-start; }
.unit-note svg { flex: none; margin-top: 3px; }
.unit-note p { margin: 0; font-size: 11.5px; line-height: 1.75; color: var(--text-3); }

@media (max-width: 1180px) {
  .unit-hero { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 22px; padding: 18px; }
  .uh-ghost { font-size: 84px; top: -8px; }
}

@media (max-width: 980px) {
  .unit-hero { grid-template-columns: minmax(0, 1fr); }
  .uh-media { max-width: 560px; }
  .unit-aside { position: static; }
}

@media (max-width: 720px) {
  .unit-hero { padding: 12px; gap: 14px; border-radius: 18px; }
  .uh-media { border-radius: 13px; }
  .uh-play { height: 40px; padding: 0 16px 0 6px; font-size: 12.5px; }
  .uh-play i { width: 26px; height: 26px; }
  .uh-info { gap: 11px; padding: 0; }
  .uh-ghost { font-size: 62px; top: -6px; right: -2px; }
  .uh-info h1 { font-size: 24px; }
  .uh-info .lead { font-size: 13px; line-height: 1.65; }
  .uh-stats { gap: 8px; }
  .uh-stats > div { padding: 9px 10px; }
  .uh-stats b { font-size: 13.5px; }
  .uh-stats span { font-size: 10px; }
  .lesson-head { padding: 13px 14px; gap: 8px; }
  .lesson-head .tag { margin-left: 0; }
  .lesson-item { grid-template-columns: 30px minmax(0, 1fr) 28px; gap: 10px; padding: 12px 14px; }
  .lesson-item .li-main h4 { font-size: 13px; }
  .lesson-item .li-main p { font-size: 10.5px; }
  .lesson-item .li-time { display: none; }
  .lesson-item .li-state { display: none; }
  .lesson-item .li-play { width: 28px; height: 28px; }
  .un-item { padding: 8px 9px; }
}

/* 播放页课时列表：单元序号徽标 */
.pl-unit-no {
  width: 21px; height: 21px; flex: none;
  display: grid; place-items: center;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-size: 10px; font-weight: 700;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.pl-unit-no.is-guide { background: var(--gold-soft); border-color: var(--gold-line); color: var(--gold-text); }

/* ==========================================================================
   15. 手机端「充分利用屏幕空间」二轮压缩（v2.4）
   —— 对应修改意见：手机版一定要尽量充分利用屏幕空间 / 理论学习参考 APP 模块化
   ========================================================================== */
@media (max-width: 720px) {

  /* 15.1 学习进度：继续学习卡改为横幅封面 + 紧凑信息 */
  .continue-card { grid-template-columns: minmax(0, 1fr); }
  .continue-card .thumb { min-height: 0; aspect-ratio: 2.5 / 1; height: auto; }
  .continue-card .thumb .play span { width: 40px; height: 40px; }
  .continue-card .thumb .play svg { width: 17px; height: 17px; }
  .continue-body { padding: 13px 14px 14px; gap: 8px; }
  .continue-body h3 { font-size: 15.5px; line-height: 1.45; }
  .continue-body > p.dim { display: none; }
  .continue-body .row .btn { height: 38px; }
  .continue-body .row .btn:not(.btn--primary) { display: none; }

  /* 15.2 学习进度：我的单元行，操作按钮回到同一行 */
  .course-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
  .course-row .cover { width: 76px; flex: none; }
  .course-row > div:not(.act) { flex: 1; min-width: 0; }
  .course-row .act { flex: none; }
  .course-row h4 { font-size: 13.5px; margin-bottom: 3px; }
  .course-row .prog { margin-top: 7px; gap: 8px; }
  .course-row .act .btn { height: 32px; padding: 0 11px; font-size: 12px; }

  /* 15.3 理论学习：四模块 2×2 宫格，一屏看全 */
  .theory-ready { padding: 15px 16px; gap: 14px; }
  .theory-ready-text { min-width: 0; }
  .theory-ready .ring { --size: 62px !important; --thick: 6px !important; }
  .theory-ready-cta { width: 100%; }
  .theory-ready-cta .btn { width: 100%; }

  .theory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .theory-card { padding: 12px; gap: 9px; border-radius: 14px; }
  .tc-top { flex-direction: column; gap: 8px; }
  .tc-icon { width: 34px; height: 34px; border-radius: 10px; }
  .tc-icon svg { width: 17px; height: 17px; }
  .tc-head h3 { font-size: 13px; line-height: 1.35; }
  .tc-head .tag { display: none; }
  .tc-desc {
    font-size: 11px; line-height: 1.5; margin-top: 4px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .tc-chips { display: none; }
  .tc-bar { gap: 6px; justify-content: flex-end; margin-top: auto; }
  .tc-bar .progress { display: none; }
  .tc-bar .num { font-size: 10.5px; }
  .tc-bar .btn { width: 100%; height: 34px; padding: 0 8px; font-size: 11.5px; }

  /* 15.4 理论页：答题预览与右侧统计同步收紧 */
  .theory-slim { padding: 13px 14px; gap: 12px; }
  .theory-slim h3 { font-size: 14px; }
  .theory-slim .btn { height: 36px; }
}

/* 15.5 手机端首页：课程大纲浮卡改为常规块，避免压住视频截图 */
@media (max-width: 720px) {
  .hero-outline { width: 100%; margin: -14px 0 0; transform: none; }
  .hero-shot { transform: none; }
  .hero-shot:hover { transform: none; }
}

/* 15.6 手机端播放器控件：一组装进一行（隐藏画中画，由系统手势接管） */
@media (max-width: 720px) {
  .player-controls { flex-wrap: wrap; row-gap: 8px; column-gap: 6px; }
  .player-controls button[aria-label="画中画"] { display: none; }
  .player-controls .spacer { display: none; }
  .player-controls .timecode { margin-right: auto; font-size: 11.5px; }
  .player-controls select { height: 30px; padding: 0 4px; font-size: 11px; }
  .player-controls select[aria-label="播放速度"] { width: 56px; }
  .player-controls #quality { width: 74px; }
  .player-controls .btn-mini { width: 30px; height: 30px; }
  .player-stage .hint { bottom: 74px; font-size: 10.5px; }

  /* 单元列表行：按钮文字与进度百分比都不再被压成省略号 */
  .course-row .act .btn { white-space: nowrap; min-width: 56px; }
  .course-row .prog .num { width: auto !important; flex: none; font-size: 10.5px; white-space: nowrap; }
  .course-row .prog { gap: 8px; }
}

/* ==========================================================================
   16. 课程广场 — 三列单元卡片网格（v2.5）
   对应修改意见：PC 版六个单元应「一行好几个」，与参考截图一致
   ========================================================================== */
.unit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 4px;
}

.unit-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--sh-sm);
  text-decoration: none;
  color: inherit;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.unit-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 46px -22px rgba(11, 27, 51, .3);
  border-color: var(--line-strong);
}
.unit-card[hidden] { display: none; }

/* 单元序号：压在封面左上角，白字玻璃底 */
.uc-no {
  position: absolute;
  left: 13px; top: 12px;
  z-index: 3;
  height: 32px; padding: 0 12px;
  display: inline-flex; align-items: center;
  border-radius: 9px;
  background: rgba(11, 27, 51, .6);
  border: 1px solid rgba(255, 255, 255, .34);
  backdrop-filter: blur(8px);
  color: #fff;
  font-family: var(--font-display);
  font-size: 17px; font-weight: 700;
  letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
}

.uc-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  overflow: hidden;
  background: var(--ink-bg);
}
.uc-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.uc-cover::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11, 27, 51, .34) 0%, rgba(11, 27, 51, 0) 34%, rgba(11, 27, 51, .1) 100%);
  pointer-events: none;
}

/* 状态胶囊：封面右上角 */
.uc-chip {
  position: absolute; right: 12px; top: 12px; z-index: 3;
  height: 22px; padding: 0 9px;
  display: inline-flex; align-items: center; gap: 5px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .94);
  color: var(--ink-bg);
  font-size: 10.5px; font-weight: 700; letter-spacing: .02em;
  box-shadow: 0 4px 12px -6px rgba(11, 27, 51, .5);
}
.uc-chip--gold { background: rgba(255, 214, 102, .96); color: #6B4B00; }
.uc-chip--gold::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #B8860B; }
.uc-chip--green { background: rgba(212, 244, 231, .96); color: #076B48; }
.uc-chip--green::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #0E9F6E; }

.uc-body {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 15px 16px 14px;
  flex: 1;
}
.uc-title {
  margin: 0;
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.35;
  color: var(--ink);
}
.unit-card:hover .uc-title { color: var(--blue-dark); }
.uc-desc {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.62;
  color: var(--text-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
}

.uc-progress { display: flex; align-items: center; gap: 9px; margin-top: 2px; }
.uc-progress .progress { flex: 1; }
.uc-progress .num {
  font-size: 11.5px; font-weight: 700;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
  flex: none;
}
.unit-card[data-state="todo"] .uc-progress .num { color: var(--text-3); font-weight: 600; }

.uc-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 3px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}
.uc-meta {
  font-size: 11.5px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.uc-link {
  display: inline-flex; align-items: center; gap: 4px;
  flex: none;
  font-size: 12.5px; font-weight: 700;
  color: var(--blue);
  white-space: nowrap;
  transition: gap var(--t-fast);
}
.unit-card:hover .uc-link { gap: 7px; }
.unit-card[data-state="done"] .uc-link { color: #07774F; }

/* 1180 以下两列，保持卡片比例 */
@media (max-width: 1180px) {
  .unit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .uc-title { font-size: 15.5px; }
}

/* ==========================================================================
   16.2 手机端：左侧虚线 + 圆形序号的时间轴卡片（对齐参考图）
   ========================================================================== */
@media (max-width: 720px) {
  .unit-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 11px;
    padding-left: 34px;
    position: relative;
    margin-top: 14px;
  }
  .unit-grid::before {
    content: '';
    position: absolute;
    left: 14px; top: 12px; bottom: 12px;
    border-left: 1px dashed #D5DCE8;
  }
  .unit-card {
    flex-direction: row;
    align-items: stretch;
    gap: 11px;
    padding: 11px;
    border-radius: 14px;
    overflow: visible;
  }
  .uc-no {
    left: -34px; top: 12px;
    width: 28px; height: 28px; padding: 0;
    justify-content: center;
    border-radius: 50%;
    background: var(--surface);
    border: 1.5px solid var(--line-strong);
    color: var(--text-2);
    font-size: 11px;
    letter-spacing: 0;
  }
  .unit-card[data-state="learning"] .uc-no { background: var(--blue); border-color: var(--blue); color: #fff; }
  .unit-card[data-state="done"] .uc-no { background: var(--success); border-color: var(--success); color: #fff; }

  .uc-cover {
    width: 96px; flex: none;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    align-self: stretch;
  }
  .uc-cover img { height: 100%; object-fit: cover; }
  .uc-chip { display: none; }

  .uc-body { padding: 1px 2px 1px 0; gap: 6px; min-width: 0; }
  .uc-title { font-size: 14.5px; line-height: 1.3; }
  .uc-desc { display: none; }
  .uc-progress { gap: 7px; margin-top: 0; }
  .uc-progress .num { font-size: 11px; }
  .uc-foot { padding-top: 7px; margin-top: auto; gap: 8px; }
  .uc-meta { font-size: 10.5px; }
  .uc-link { font-size: 0; gap: 0; }
  .uc-link svg { width: 15px; height: 15px; }
  .unit-card[data-state="todo"] .uc-foot { border-top-color: transparent; padding-top: 4px; }
}

/* ==========================================================================
   17. 真实视频播放器（v2.5）
   —— <video> 铺满舞台；弹幕 / 水印 / 中央按钮叠在上层
   ========================================================================== */
.player-stage .stage-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #05080F;
  z-index: 0;
  cursor: pointer;
}

/* 播放中：中央按钮淡出，鼠标移入再出现 */
.player-stage .center {
  transition: transform var(--t-fast), opacity var(--t-base), visibility var(--t-base);
}
.player-stage.is-playing .center {
  opacity: 0;
  visibility: hidden;
  transform: scale(.86);
}
.player-stage.is-playing:hover .center {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

/* 触屏设备没有真正的 hover：点过画面后 :hover 会「粘住」，
   中央播放键就一直盖在视频上挡画面。手机上一律按播放态彻底隐藏。 */
@media (hover: none) {
  .player-stage .center { width: 62px; height: 62px; }
  .player-stage .center svg { width: 22px; height: 22px; }
  .player-stage.is-playing .center,
  .player-stage.is-playing:hover .center,
  .player-stage.is-playing:focus-within .center {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(.86);
  }
}
.player-stage.is-playing .hint { opacity: 0; }

/* 视频加载失败时的兜底文案 */
.player-stage .stage-video:not([src]) { background: var(--ink-bg); }

/* ---- 腾讯云 VOD（TCPlayer）容器 ----
   走 VOD 时原生 <video> 隐藏，换成 .vod-shell 里的 TCPlayer。
   注意：TCPlayer 会把我们传进去的 <video id="vod-stage"> 改造成 div 并覆盖 class，
   所以这里只能按 id 选，不能按 class 选。
   叠层顺序：TCPlayer 0 < 中央播放键 / 提示 2 < 弹幕 3。 */
.player-stage .vod-shell {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #05080F;
  overflow: hidden;
}
.player-stage #vod-stage {
  width: 100% !important;
  height: 100% !important;
  background: #05080F;
  outline: none;
}
.player-stage #vod-stage .vjs-tech { width: 100%; height: 100%; }
.player-stage .stage-video.is-hidden { display: none !important; }

/* 移动端：视频按容器高度裁切，避免上下黑边占满屏 */
@media (max-width: 720px) {
  .player-stage .stage-video { object-fit: cover; }
  .player-stage #vod-stage .vjs-tech { object-fit: cover; }
}

/* ==========================================================================
   18. 手机端版式回归参考图（v2.5）
   —— 理论四模块改单列横向大卡（参考 APP 截图），导学课压缩为横卡，筛选同一行
   ========================================================================== */
@media (max-width: 720px) {

  /* 18.1 理论知识四模块：单列横向卡（图标左、内容右、按钮满宽） */
  .theory-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .theory-card { padding: 14px; gap: 11px; border-radius: 16px; }
  .tc-top { flex-direction: row; gap: 11px; align-items: flex-start; }
  .tc-icon { width: 42px; height: 42px; border-radius: 12px; }
  .tc-icon svg { width: 20px; height: 20px; }
  .tc-body { flex: 1; min-width: 0; }
  .tc-head { flex-wrap: wrap; gap: 6px; }
  .tc-head h3 { font-size: 15px; line-height: 1.35; }
  .tc-head .tag { display: inline-flex; height: 18px; padding: 0 7px; font-size: 10px; }
  .tc-desc { font-size: 12px; line-height: 1.6; margin-top: 5px; -webkit-line-clamp: 2; }
  .tc-chips { display: flex; gap: 5px; margin-top: 8px; }
  .tc-chips span { font-size: 10.5px; padding: 3px 8px; }
  .tc-bar { justify-content: flex-start; gap: 8px; margin-top: 1px; }
  .tc-bar .progress { display: block; flex: 1; }
  .tc-bar .num { font-size: 11px; font-weight: 700; }
  .tc-bar .btn { width: 100%; height: 38px; font-size: 13px; }

  /* 18.2 导学课：横卡压缩，正文只留标题 + 标签 */
  .guide-card { grid-template-columns: 104px minmax(0, 1fr); gap: 11px; padding: 11px; border-radius: 16px; align-items: center; }
  .guide-thumb { aspect-ratio: 4 / 3; border-radius: 10px; }
  .guide-play::before { width: 34px; height: 34px; }
  .guide-play svg { width: 14px; height: 14px; }
  .guide-badge { top: 6px; right: 6px; height: 22px; padding: 0 9px; font-size: 11px; }
  .guide-body { min-width: 0; }
  .guide-body .eyebrow { display: none; }
  .guide-body h2 { font-size: 15px; margin-top: 0; line-height: 1.35; }
  .guide-desc { display: none; }
  .guide-body .row { margin-top: 7px !important; gap: 5px !important; }
  .guide-tag { height: 19px; padding: 0 7px; font-size: 10px; }
  .guide-cta { display: none; }

  /* 18.3 筛选栏：分段控件与搜索同一行 */
  .toolbar { flex-wrap: nowrap; gap: 8px; padding: 7px 9px; }
  .toolbar .seg { flex: none; }
  .toolbar .seg button { height: 30px; padding: 0 9px; font-size: 11.5px; }
  .toolbar .search { flex: 1 1 auto; min-width: 0 !important; max-width: none !important; margin-left: 0 !important; }
  .toolbar .search .input { height: 32px; font-size: 12px; }

  /* 18.4 时间轴卡片：略微增高封面，箭头弱化 */
  .uc-cover { width: 104px; }
  .uc-link { color: var(--text-3); }
  .unit-card[data-state="learning"] .uc-link { color: var(--blue); }
}

/* 17.1 播放器提示条：放低并加底色，避免与弹幕文字叠在一起 */
.player-stage .hint {
  bottom: 18px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: auto;
  max-width: 88%;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: rgba(8, 16, 30, .62);
  backdrop-filter: blur(6px);
  font-size: 11.5px;
  color: rgba(255, 255, 255, .82);
  white-space: nowrap;
  transition: opacity var(--t-base);
}

/* 17.2 UID 弹幕：降低存在感，做到「看得见但不挡画面」 */
.danmaku-item {
  font-weight: 500;
  letter-spacing: .02em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .55);
  white-space: nowrap;
  pointer-events: none;
}

/* Mobile bottom tab: hide logout to keep 5 tabs on narrow screens (logout lives in Account) */
@media (max-width: 980px) {
  .sidebar a[data-logout] { display: none; }
}

/* ---------- 18. 课时附件资料（PDF 等） ---------- */
.attach-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.attach {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.attach:hover {
  border-color: var(--blue-line);
  background: var(--blue-soft);
}
.attach .a-ico {
  flex: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--r-xs);
  background: var(--blue-soft);
  border: 1px solid var(--blue-line);
  color: var(--blue-dark);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .02em;
}
.attach .a-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.attach .a-meta b {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.attach .a-meta small {
  font-size: 12px;
  color: var(--text-3);
}
.attach .a-dl {
  flex: none;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--blue-dark);
}

/* ==========================================================================
   19. 弹幕 / 笔记 / 提问（真实数据，v2.4）
   ========================================================================== */

/* 19.1 播放器内的弹幕输入条（深色，紧贴控制栏） */
.dm-send {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 16px 14px;
  background: var(--ink-bg);
}
.dm-send-tag {
  flex: none;
  font-size: 10.5px;
  letter-spacing: .1em;
  font-weight: 700;
  color: rgba(255, 255, 255, .38);
}
.dm-send input {
  flex: 1;
  min-width: 0;
  height: 34px;
  padding: 0 13px;
  border-radius: 17px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .07);
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.dm-send input::placeholder { color: rgba(255, 255, 255, .38); }
.dm-send input:focus {
  outline: none;
  border-color: rgba(43, 108, 255, .8);
  background: rgba(255, 255, 255, .11);
}
.dm-send input:disabled { opacity: .55; cursor: not-allowed; }
.dm-send .dm-count {
  flex: none;
  font-size: 11px;
  color: rgba(255, 255, 255, .35);
  font-variant-numeric: tabular-nums;
}
.dm-send .btn { flex: none; }

/* 19.2 弹幕层补充：自己的弹幕高亮、暂停时冻结动画 */
.danmaku-item.is-mine { color: #FFD75E; }
.danmaku-item.is-static { animation: none !important; }
.danmaku-layer.is-paused .danmaku-item { animation-play-state: paused; }

/* 19.3 tab 上的数字角标 */
.tab-num {
  display: inline-block;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  margin-left: 3px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--bg);
  color: var(--text-3);
  font-size: 10.5px;
  font-weight: 700;
  text-align: center;
  vertical-align: 1px;
}
.tabs button.is-active .tab-num { background: var(--blue); color: #fff; }

/* 19.4 弹幕列表 */
.dm-list {
  max-height: 286px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  scrollbar-width: thin;
}
.dm-list::-webkit-scrollbar { width: 6px; }
.dm-list::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }
.dm-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  transition: background var(--t-fast);
}
.dm-row:last-child { border-bottom: 0; }
.dm-row:hover { background: var(--bg); }
.dm-time {
  flex: none;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--blue-dark);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.dm-time:hover { border-color: var(--blue-line); background: var(--blue-soft); }
.dm-text { flex: 1; min-width: 0; color: var(--text); word-break: break-word; }
.dm-user { flex: none; font-size: 11.5px; color: var(--text-3); }
.dm-del {
  flex: none;
  padding: 2px 8px;
  border: 1px solid #ffd9d0;
  border-radius: 6px;
  background: #fff5f2;
  color: #d93a18;
  font-size: 11.5px;
  cursor: pointer;
  opacity: .85;
}
.dm-del:hover { opacity: 1; background: #ffe9e3; }
.dm-empty {
  padding: 30px 16px;
  text-align: center;
  color: var(--text-3);
  font-size: 13px;
}

/* 19.5 提问 */
.ask-form {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg);
}
.qa-item {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.qa-item:first-child { border-top: 0; padding-top: 0; }
.qa-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 7px;
}
.qa-head b { font-size: 13px; color: var(--text); }
.qa-head .qa-time { font-size: 11.5px; color: var(--text-3); }
.qa-head .dm-del { margin-left: auto; }
.qa-body {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-2);
  white-space: pre-wrap;
  word-break: break-word;
}
.qa-reply {
  margin-top: 10px;
  padding: 11px 13px;
  border-radius: var(--r-sm);
  background: var(--blue-soft);
  border-left: 3px solid var(--blue);
}
.qa-reply-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
  font-size: 11.5px;
  color: var(--text-3);
}
.qa-reply-head b { font-size: 12.5px; color: var(--blue-dark); }
.qa-reply p { font-size: 13px; line-height: 1.75; color: var(--text-2); white-space: pre-wrap; word-break: break-word; }

/* 19.6 控制栏静音态 */
.btn-mini.is-muted { color: rgba(255, 255, 255, .4); }

/* 19.6.1 提问列表内部滚动：卡片高度稳定，切页签视频尺寸不变 */
#q-list { max-height: 264px; overflow-y: auto; scrollbar-width: thin; }
#q-list::-webkit-scrollbar { width: 6px; }
#q-list::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }
/* 19.6.2 播放器内弹幕输入条：与控制栏之间加一条分隔线 */
.dm-send { border-top: 1px solid rgba(255, 255, 255, .07); padding-top: 10px; }
.dm-send input:focus { box-shadow: 0 0 0 3px rgba(43, 108, 255, .18); }

@media (max-width: 720px) {
  /* 手机端不需要固定高度占位，内容多长就多长 */
  .tab-panel { min-height: 0; }
  .tabs button { padding: 8px 10px 10px; font-size: 12.5px; }
  .dm-send { padding: 10px 12px 12px; gap: 8px; }
  .dm-send-tag, .dm-send .dm-count { display: none; }
  .dm-list { max-height: 320px; }
  .dm-row { padding: 8px 10px; font-size: 12.5px; }
  .dm-user { display: none; }
}

/* 19.7 账户页：我的笔记汇总 */
.note-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.note-row:first-child { border-top: 0; }
.note-row:hover .note-main b { color: var(--blue-dark); }
.note-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.note-main b { font-size: 13.5px; font-weight: 600; color: var(--text); transition: color var(--t-fast); }
.note-main small { font-size: 11.5px; color: var(--text-3); }
.note-excerpt {
  font-size: 12.5px;
  color: var(--text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.note-time { flex: none; font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }

/* ==========================================================================
   24. 官网首页 v3（2026-10 客户改版）
   —— 品牌字、Hero 实拍 + 大纲、一条龙（理论 + 路考）、六个单元、评价墙
   ========================================================================== */

/* ---------- 24.1 板块标题补充 ---------- */
.section-head h2 .accent {
  background: linear-gradient(180deg, transparent 62%, rgba(245, 180, 0, .34) 62%);
  padding: 0 2px;
}
.section-head .head-note {
  display: inline-flex; align-items: center; gap: 6px;
  margin-left: 10px;
  height: 22px; padding: 0 9px;
  border-radius: var(--r-pill);
  background: var(--gold-soft);
  color: var(--gold-text);
  font-size: 11px; font-weight: 700;
  vertical-align: middle;
}

/* ---------- 24.2 四张能力卡（理论 + 路考一条龙） ---------- */
.feature { position: relative; overflow: hidden; }
.feature h3 { display: flex; align-items: center; gap: 8px; }
.feature--theory {
  border-color: rgba(245, 180, 0, .5);
  /* 用主题变量而不是写死白色：写死 #FFFFFF 会让深色 / 护眼绿皮肤下这张卡片变成白底，
     而标题文字跟其他卡片一样取 --ink（深色皮肤下是浅色），对比度只剩 1.1:1 */
  background: linear-gradient(165deg,
    color-mix(in srgb, var(--gold-soft) 92%, var(--surface)) 0%,
    var(--surface) 62%);
}
.feature--theory::after {
  content: "NEW";
  position: absolute; top: 14px; right: 14px;
  font-size: 9.5px; font-weight: 800; letter-spacing: .14em;
  color: var(--gold-text); background: var(--gold-soft);
  padding: 3px 7px; border-radius: var(--r-pill);
}
.feature .ico svg { width: 20px; height: 20px; }
.feature p { font-size: 13px; }

/* ---------- 24.3 一条龙 三步条 ---------- */
.pipeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}
.pipe-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px 18px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}
.pipe-item b { display: block; font-size: 13.5px; margin-bottom: 3px; }
.pipe-item p { font-size: 12.5px; color: var(--text-2); line-height: 1.6; }
.pipe-no {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 8px;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 13px; font-weight: 700;
  background: var(--ink-bg); color: #fff;
}
.pipe-item:nth-child(2) .pipe-no { background: var(--blue-solid); }
.pipe-item:nth-child(3) .pipe-no { background: var(--gold); color: #2A1F00; }

/* ---------- 24.4 首页单元卡（更小，六张铺满） ---------- */
.course-grid--six { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.course-grid--six .course-card .thumb { aspect-ratio: 16 / 9; }
.course-grid--six .course-card .body { padding: 13px 14px 14px; gap: 6px; }
.course-grid--six .course-card .body h3 { font-size: 14px; line-height: 1.4; }
.course-grid--six .course-card .body p {
  font-size: 11.5px; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 36px;
}
.course-grid--six .course-card .foot { padding-top: 9px; font-size: 11px; }
.course-grid--six .course-card .thumb .badge { top: 9px; left: 9px; font-size: 10px; padding: 3px 8px; }
/* 封面左下角的大号单元数字已下线：封面图本身带编号，再叠一层「01 / UNIT」属于重复
   （客户 2026-10-28 反馈）。规则留着会把将来加的 .cc-num 又变回来，故整段删除。 */
.course-card--theory { border-color: rgba(245, 180, 0, .45); }
.course-card--theory .thumb { background: linear-gradient(150deg, #12233D, #1E4A8F); }
/* 后台「理论题库配置」上传的封面图：铺满卡片上半部，压住内置题目样张 */
.course-card--theory .th-cover {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; object-fit: cover; object-position: center;
}
.course-card--theory .thumb .badge { z-index: 2; }
.course-card--theory .thumb .th-art[hidden] { display: none !important; }
.course-card--theory .thumb .th-art {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  padding: 16px 18px;
  color: #fff;
}
.th-art .q {
  font-size: 12px; line-height: 1.55; color: rgba(255, 255, 255, .88);
  max-width: 26ch;
}
.th-art .opts { display: flex; flex-direction: column; gap: 5px; margin-top: 2px; }
.th-art .opt {
  display: flex; align-items: center; gap: 7px;
  font-size: 10.5px; color: rgba(255, 255, 255, .72);
}
.th-art .opt i {
  width: 15px; height: 15px; border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, .3);
  display: grid; place-items: center; font-style: normal; font-size: 8.5px;
}
.th-art .opt.is-right i { background: var(--gold); border-color: var(--gold); color: #2A1F00; font-weight: 800; }
.th-art .opt.is-right { color: #FFE2A6; }

/* ---------- 24.5 理论题库 + 危险感知 板块 ---------- */
.theory-band {
  position: relative;
  border-radius: var(--r-xl);
  padding: clamp(24px, 3vw, 40px);
  background:
    radial-gradient(680px 320px at 88% -20%, rgba(43, 108, 255, .28), transparent 66%),
    linear-gradient(135deg, #08152B 0%, #12233D 52%, #17376A 100%);
  color: #fff;
  overflow: hidden;
}
.theory-band::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 70% at 70% 20%, #000, transparent 78%);
  pointer-events: none;
}
.theory-band > * { position: relative; z-index: 1; }
.tb-head { max-width: 62ch; }
.tb-head .eyebrow { color: rgba(255, 255, 255, .55); }
.tb-head h2 { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -.03em; margin-top: 10px; }
.tb-head p { color: rgba(255, 255, 255, .68); margin-top: 10px; font-size: 14px; }
.tb-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}
.tb-card {
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--r-lg);
  padding: 22px;
  display: flex; flex-direction: column;
  transition: background var(--t-base), transform var(--t-base);
}
.tb-card:hover { background: rgba(255, 255, 255, .085); transform: translateY(-2px); }
.tb-card--gold { border-color: rgba(245, 180, 0, .42); background: rgba(245, 180, 0, .07); }
.tb-kicker {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}
.tb-kicker b { color: var(--gold); letter-spacing: .04em; }
.tb-card h3 { font-size: 19px; margin-top: 10px; letter-spacing: -.02em; }
.tb-card > p { font-size: 13px; color: rgba(255, 255, 255, .66); line-height: 1.7; margin-top: 8px; }
.tb-list { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.tb-list li { display: flex; gap: 9px; font-size: 12.5px; color: rgba(255, 255, 255, .8); }
.tb-list li svg { flex: none; margin-top: 3px; color: var(--gold); }
.tb-stats {
  display: flex; gap: 22px; flex-wrap: wrap;
  margin-top: 16px; padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.tb-stats div b { display: block; font-family: var(--font-display); font-size: 22px; letter-spacing: -.01em; }
.tb-stats div span { font-size: 10.5px; color: rgba(255, 255, 255, .5); letter-spacing: .04em; }
.tb-cta { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }

/* 危险感知：点击时机示意 */
.hp-demo {
  margin-top: 14px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  background: #060F1E;
}
.hp-demo .hp-bar {
  position: relative;
  height: 6px;
  background: rgba(255, 255, 255, .12);
}
.hp-demo .hp-bar i { position: absolute; inset: 0 auto 0 0; width: 46%; background: var(--gold); }
.hp-demo .hp-bar u {
  position: absolute; top: -3px; width: 2px; height: 12px;
  background: #fff; border-radius: 2px;
}
.hp-demo .hp-cap {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 10px; font-size: 10.5px; color: rgba(255, 255, 255, .6);
  font-variant-numeric: tabular-nums;
}
.hp-demo .hp-cap b { color: var(--gold); font-size: 11px; }

/* ---------- 24.6 学员评价墙（小红书截图） ---------- */
.wall-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wall-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
}
.wall-card {
  position: relative;
  width: 430px;
  max-width: calc(50% - 8px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
  cursor: zoom-in;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.wall-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--line-strong); }
/* 后台截图多为横向长图（约 2:1）：按原图比例完整显示，不再裁切 */
.wall-shot { position: relative; background: var(--surface-2); }
.wall-shot img { width: 100%; height: auto; display: block; }
.wall-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
}
.wall-meta b { font-size: 12.5px; }
.wall-meta span { font-size: 11px; color: var(--text-3); }
.wall-badge {
  position: absolute; left: 10px; top: 10px; z-index: 2;
  height: 22px; padding: 0 8px;
  border-radius: var(--r-pill);
  background: rgba(8, 20, 38, .55);
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(6px);
  color: #fff; font-size: 10px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 5px;
}
.wall-badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #FF4D6D; }
.wall-fold { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 16px; margin-top: 16px; }
.wall-fold[hidden] { display: none !important; }
.wall-more {
  display: flex; justify-content: center; margin-top: 22px;
}
.wall-more button {
  height: 40px; padding: 0 22px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 13px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer;
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
}
.wall-more button:hover { border-color: var(--ink-bg); background: var(--ink-bg); color: #fff; }
.wall-more button svg { transition: transform var(--t-base); }
.wall-more button.is-open svg { transform: rotate(180deg); }

/* 评价大图查看 */
.shot-lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(6, 14, 26, .86);
  backdrop-filter: blur(6px);
  display: grid; place-items: center;
  padding: 26px;
  cursor: zoom-out;
  animation: shotIn .18s var(--ease);
}
.shot-lightbox img {
  max-width: min(560px, 92vw);
  max-height: 88vh;
  border-radius: 14px;
  box-shadow: 0 40px 90px -40px #000;
}
@keyframes shotIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- 24.7 价格：方案调整中 ---------- */
.price-hold {
  display: inline-flex; align-items: center; gap: 7px;
  height: 26px; padding: 0 11px;
  border-radius: var(--r-pill);
  background: var(--gold-soft);
  color: var(--gold-text);
  font-size: 11.5px; font-weight: 700;
  vertical-align: middle;
}

/* ---------- 24.8 响应式 ---------- */
@media (max-width: 1180px) {
  .course-grid--six { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb-grid { grid-template-columns: minmax(0, 1fr); }
  .pipeline { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .course-grid--six { grid-template-columns: minmax(0, 1fr); }
  .wall-grid, .wall-fold { gap: 12px; }
  .wall-card { width: 100%; max-width: none; }
  .theory-band { border-radius: var(--r-lg); }
  .tb-stats { gap: 16px; }
}

/* ---------- 24.9 移动端细节：品牌名不换行、Hero 卖点单行 ---------- */
.brand-text b, .brand-text span { white-space: nowrap; }
.hero-note span { white-space: nowrap; }
@media (max-width: 860px) {
  .site-header .brand { padding: 0; gap: 9px; }
  .site-header .brand-mark { width: 32px; height: 32px; border-radius: 9px; }
  .site-header .brand-mark svg { width: 22px; height: 22px; }
  .site-header .brand-text b { font-size: 15px; letter-spacing: .02em; }
  .site-header .brand-text span { font-size: 8px; letter-spacing: .16em; }
  .hero-note { flex-wrap: wrap; gap: 6px 16px; }
}
@media (max-width: 420px) {
  .hero-note { gap: 5px 12px; font-size: 11px; }
  .site-actions .btn { padding: 0 12px; height: 34px; font-size: 12.5px; }
}

/* ---------- 24.10 板块 01：六个板块真实课时截图（小图并排） ---------- */
.unit-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}
.us-item {
  position: relative;
  display: block;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--ink-bg);
  box-shadow: 0 8px 20px rgba(11, 27, 51, .14);
  transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s;
}
.us-item:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(11, 27, 51, .22); }
.us-item img {
  width: 100%; height: 100%; display: block; object-fit: cover;
  transition: transform .5s cubic-bezier(.2,.7,.3,1);
}
.us-item:hover img { transform: scale(1.06); }
.us-item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,27,51,0) 42%, rgba(11,27,51,.82) 100%);
}
.us-item em {
  position: absolute; top: 7px; left: 7px; z-index: 2;
  font-style: normal; font-size: 10.5px; font-weight: 800; letter-spacing: .06em;
  color: var(--ink); background: var(--gold);
  padding: 2px 6px; border-radius: 5px; line-height: 1.5;
}
.us-item span {
  position: absolute; left: 9px; right: 9px; bottom: 7px; z-index: 2;
  font-size: 11.5px; font-weight: 600; line-height: 1.3; color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .55);
}
@media (max-width: 1180px) {
  .unit-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
}
@media (max-width: 560px) {
  .unit-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .us-item span { font-size: 11px; }
}

/* ---------- 24.11 价格待定：金额位不摆数字 ---------- */
.price-card .amount--hold b {
  font-size: 27px;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--text-2);
}
.price-card .amount--hold::after {
  content: "· 现在可以先咨询教练";
  font-size: 12px;
  color: var(--text-3);
  margin-left: 2px;
}
.price-card--featured .amount--hold b { color: var(--ink); }
@media (max-width: 560px) {
  .price-card .amount--hold b { font-size: 23px; }
  .price-card .amount--hold::after { content: "· 可先咨询"; font-size: 11px; }
}

/* ---------- 24.12 价格未定提示条（开通页） ---------- */
.hold-tip {
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  border-radius: var(--r-md);
  padding: 13px 16px;
  color: var(--gold-text);
}
.hold-tip p { color: var(--gold-text); line-height: 1.65; }

/* ==========================================================================
   25. 播放器控制条 2.0
   —— 自绘下拉菜单（替掉白底白字的原生 <select>）、音量滑杆、
      网页全屏 / 系统全屏、缓冲进度、起播转圈、通用迷你控制条
   ========================================================================== */

/* ---------- 25.1 深色下拉菜单（倍速 / 清晰度） ---------- */
.pc-wrap { position: relative; display: inline-flex; align-items: center; }

.pmenu {
  position: fixed;
  z-index: 9500;
  min-width: 134px;
  max-height: 64vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
  border-radius: 12px;
  background: #0E1B2E;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 22px 48px -18px rgba(0, 0, 0, .78);
  color: #EAF0FA;
  font-size: 12.5px;
  animation: pmenu-in .15s var(--ease);
}
.pmenu[hidden] { display: none !important; }
@keyframes pmenu-in { from { opacity: 0; transform: translateY(5px); } }

.pmenu-title {
  padding: 5px 10px 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .42);
}
.pmenu-sep { height: 1px; margin: 5px 6px; background: rgba(255, 255, 255, .1); }

.pmenu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #EAF0FA;                 /* 显式亮色：不再被系统白底吞掉 */
  font-size: 12.5px;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}
.pmenu-item:hover,
.pmenu-item:focus-visible { background: rgba(255, 255, 255, .1); outline: none; }
.pmenu-item.is-active { background: rgba(43, 108, 255, .26); color: #fff; }
.pmenu-item[disabled] { opacity: .5; cursor: default; }
.pmenu-label { flex: 1 1 auto; white-space: nowrap; }
.pmenu-note { color: rgba(255, 255, 255, .38); font-size: 10.5px; }
.pmenu-ico { display: inline-flex; color: #8FB1FF; }
.pmenu-ico svg { width: 13px; height: 13px; }
.pmenu-empty { padding: 9px 10px; color: rgba(255, 255, 255, .45); }

/* 兼容：万一还有原生 <select>，也别再出现白底白字 */
.player-controls select option,
.player-controls select optgroup { background: #0E1B2E; color: #fff; }

/* ---------- 25.2 控制条按钮：文字型（倍速 / 清晰度） ---------- */
.player-controls .pc-txt {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 26px;
  padding: 0 7px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.player-controls .pc-txt:hover { background: rgba(255, 255, 255, .2); }
.player-controls .pc-txt svg { opacity: .7; flex: none; }
.pc-wrap.is-open .pc-txt { background: rgba(255, 255, 255, .24); border-color: rgba(255, 255, 255, .38); }
.player-controls .pc-txt[hidden] { display: none !important; }

/* ---------- 25.3 音量：按钮 + 竖版弹层 ----------
 * 之前是横条 + 靠 hover 展开：触屏没有真的 hover，点一下按钮直接静音，
 * 面板又是 translate(-50%) 居中在贴着左边的那颗按钮上，于是有一半跑到屏幕外。
 * 现在统一改成竖版弹层：「点按钮展开 / 再点或点空白收起」，宽度只有 54px、
 * 始终以按钮为中心，按钮在哪个位置都不会溢出；竖条也更适合手指上下拖。 */
.pc-vol { position: relative; display: inline-flex; align-items: center; }

.vol-panel {
  --vrail: 96px;
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 54px;
  padding: 9px 0 7px;
  border-radius: 14px;
  background: #0E1B2E;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 22px 48px -18px rgba(0, 0, 0, .78);
  color: #EAF0FA;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition: opacity var(--t-fast), transform var(--t-fast), visibility var(--t-fast);
}
.vol-panel.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
@media (max-height: 700px) { .vol-panel { --vrail: 78px; } }

.vol-val {
  font-size: 11px;
  font-weight: 650;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

/* 竖条 = 水平 range 旋转 -90°，各浏览器都稳，拖动方向自动变成上下 */
.vol-rail { position: relative; width: 30px; height: var(--vrail); }
.vol-rail input[type="range"] {
  position: absolute;
  left: 50%; top: 50%;
  width: var(--vrail);
  height: 26px;
  margin: 0;
  transform: translate(-50%, -50%) rotate(-90deg);
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  outline: none;
  cursor: pointer;
}
.vol-rail input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right,
    #4B86FF 0%, #4B86FF var(--vp, 0%),
    rgba(255, 255, 255, .24) var(--vp, 0%), rgba(255, 255, 255, .24) 100%);
}
.vol-rail input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 15px; height: 15px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: #fff;
  border: 0;
  box-shadow: 0 1px 5px rgba(0, 0, 0, .55);
}
.vol-rail input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .24); }
.vol-rail input[type="range"]::-moz-range-progress { height: 6px; border-radius: 3px; background: #4B86FF; }
.vol-rail input[type="range"]::-moz-range-thumb {
  width: 15px; height: 15px; border: 0; border-radius: 50%; background: #fff;
}

/* 弹层里的静音键：手机上想静音点这里，不再占用主按钮的点击 */
.vol-mute {
  width: 34px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 8px;
  background: rgba(255, 255, 255, .1);
  color: #EAF0FA;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}
.vol-mute:hover { background: rgba(255, 255, 255, .2); }
.vol-mute.is-off { color: rgba(255, 255, 255, .45); }
.vol-mute svg { width: 14px; height: 14px; }

.vol-tip { font-size: 9px; line-height: 1.25; color: rgba(255, 255, 255, .55); text-align: center; padding: 0 3px; }

/* iOS 不允许脚本改音量：滑杆置灰并提示用侧边键 */
.vol-panel.is-locked .vol-rail { opacity: .45; }
.vol-panel.is-locked .vol-rail input[type="range"] { cursor: default; }

/* 兼容：万一还有原生 <select>，也别再出现白底白字 */
.player-controls .btn-mini.is-muted { color: rgba(255, 255, 255, .42); }

/* ---------- 25.4 进度条：缓冲 + 已播 ---------- */
.player-progress { overflow: visible; }
.player-progress > i { pointer-events: none; }
.player-progress > i.buf {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: rgba(255, 255, 255, .3);
  border-radius: 3px;
  transition: width .25s linear;
}
.player-progress > i.fill { position: absolute; inset: 0 auto 0 0; background: var(--blue); border-radius: 3px; }

/* ---------- 25.5 起播 / 卡顿转圈 ---------- */
.player-stage.is-buffering::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 34px; height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .22);
  border-top-color: #fff;
  animation: pc-spin .8s linear infinite;
  z-index: 4;
  pointer-events: none;
}
@keyframes pc-spin { to { transform: rotate(360deg); } }

/* ---------- 25.6 网页全屏 ---------- */
body.is-webfs-lock,
html.is-webfs-lock { overflow: hidden !important; }

.player-shell.is-webfs {
  position: fixed;
  inset: 0;
  /* iOS Safari 的 100vh 含地址栏占掉的那截，铺满时底部会露出来，用 dvh 校正 */
  height: 100vh;
  height: 100dvh;
  z-index: 9400;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  background: #000;
}
.player-shell.is-webfs .player-stage {
  flex: 1 1 auto;
  aspect-ratio: auto;
  min-height: 0;
}
.player-shell.is-webfs .player-stage .stage-video,
.player-shell.is-webfs .player-stage .vod-shell { object-fit: contain; }
.player-shell.is-webfs .dm-send { flex: none; }
/* 全屏时鼠标不动就藏控制条 */
.player-shell.is-quiet .player-bar,
.player-shell.is-quiet .dm-send { opacity: 0; pointer-events: none; }
.player-shell .player-bar,
.player-shell .dm-send { transition: opacity var(--t-base); }
.player-shell.is-webfs .player-stage .hint { bottom: 12px; }
@media (max-width: 720px) {
  .player-shell.is-webfs .player-stage .stage-video,
  .player-shell.is-webfs .player-stage #vod-stage .vjs-tech { object-fit: contain; }
}

/* iPhone 的「全屏」走的就是网页全屏（系统全屏会把水印盖掉），
   所以这层必须真的铺满：控制条改成浮层，弹幕发送条收起，画面占满整屏 */
@media (hover: none), (max-width: 900px) {
  .player-shell.is-webfs .dm-send { display: none; }
  .player-shell.is-webfs #btn-pip { display: none; }   /* 已经铺满了，画中画没意义，腾出位置 */
  .player-shell.is-webfs .player-controls { gap: 2px; }
  .player-shell.is-webfs .player-bar {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: 5;
    background: linear-gradient(180deg, rgba(5, 8, 15, 0), rgba(5, 8, 15, .88) 46%);
  }
  .player-shell.is-webfs .player-stage .hint { bottom: 84px; }
  .player-shell.is-webfs .pc-break { display: none; }
}

/* 系统全屏（Fullscreen API）下也把视频按比例放完，别裁切 */
.player-shell:fullscreen .player-stage .stage-video,
.player-shell:-webkit-full-screen .player-stage .stage-video,
.player-shell:fullscreen .player-stage #vod-stage .vjs-tech { object-fit: contain; }
.player-shell:fullscreen,
.player-shell:-webkit-full-screen {
  display: flex;
  flex-direction: column;
  background: #000;
}
.player-shell:fullscreen .player-stage,
.player-shell:-webkit-full-screen .player-stage { flex: 1 1 auto; aspect-ratio: auto; min-height: 0; }

/* ---------- 25.7 通用迷你控制条（案例视频 / 解析视频） ---------- */
.pn-host { position: relative; }
.pn-bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 9px;
  background: linear-gradient(180deg, rgba(5, 8, 15, 0), rgba(5, 8, 15, .82));
  color: #fff;
  font-size: 11.5px;
  transition: opacity var(--t-base);
}
.pn-host.is-idle .pn-bar { opacity: 0; pointer-events: none; }
.pn-host.is-idle { cursor: none; }

.pn-btn {
  flex: none;
  width: 28px; height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.pn-btn:hover { background: rgba(255, 255, 255, .14); }
.pn-btn svg { width: 15px; height: 15px; }
.pn-btn.is-on { color: #8FB1FF; background: rgba(43, 108, 255, .28); }
.pn-btn.pn-txt {
  width: auto;
  gap: 3px;
  padding: 0 7px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .1);
  font-variant-numeric: tabular-nums;
}
.pn-btn.pn-txt:hover { background: rgba(255, 255, 255, .2); }
.pn-btn.pn-txt svg { width: 10px; height: 10px; opacity: .7; }
.pn-btn[hidden] { display: none !important; }

.pn-track {
  position: relative;
  flex: 1 1 auto;
  min-width: 40px;
  height: 5px;
  margin: 0 2px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .22);
  cursor: pointer;
}
.pn-track .pn-buf { position: absolute; inset: 0 auto 0 0; width: 0; background: rgba(255, 255, 255, .32); border-radius: 3px; }
.pn-track .pn-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--blue); border-radius: 3px; }
.pn-track .pn-dot {
  position: absolute; top: 50%; left: 0;
  width: 9px; height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  transition: opacity var(--t-fast);
}
.pn-track:hover .pn-dot { opacity: 1; }

.pn-time { flex: none; color: rgba(255, 255, 255, .82); font-variant-numeric: tabular-nums; }
.pn-gap { flex: 1 1 auto; }
.pn-vol { position: relative; display: inline-flex; align-items: center; }
.pn-btn.is-muted { color: rgba(255, 255, 255, .45); }
.pn-host.is-loading::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 30px; height: 30px;
  margin: -15px 0 0 -15px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .22);
  border-top-color: #fff;
  animation: pc-spin .8s linear infinite;
  pointer-events: none;
}
.pn-host:fullscreen { background: #000; display: flex; align-items: center; }
.pn-host:fullscreen video { height: calc(100% - 46px); }
@media (max-width: 720px) {
  .pn-bar { gap: 6px; padding: 7px 8px 8px; }
  .pn-time { display: none; }
  .pn-gap { display: none; }
  .pn-btn[data-act="pip"] { display: none; }
  .pn-btn[data-act="webfs"] { display: none; }
}

/* ---------- 25.8 手机端：控制条再收一档 ---------- */
@media (max-width: 720px) {
  .player-controls .pc-txt { height: 26px; padding: 0 6px; font-size: 11px; }
  .player-controls { column-gap: 6px; row-gap: 6px; }
  #btn-webfs { display: none; }
}

/* 25.9 控制条永不超过一行宽度：窄屏自动换行，时间码不被压扁 */
.player-controls { flex-wrap: wrap; row-gap: 8px; }
.player-controls .timecode { white-space: nowrap; }
.player-controls .spacer { min-width: 8px; }

/* ---------- 25.10 半屏 / 横屏（手机端） ----------
 * 半屏：播放器钉在屏幕顶部、保持原来的大小，页面内容在它下面照常滚动，
 *       适合边看边对着下面的笔记 / 题目；退出时用占位块顶住原位，页面不会跳。
 * 横屏：把整块播放器旋转 90° 铺满屏幕 —— 系统开了「竖屏锁定」也能看横屏；
 *       手机本来就是横着的时候不旋转，直接铺满；控制条浮在画面上，画面占满。 */
body.is-fs-lock, html.is-fs-lock { overflow: hidden !important; }

.player-shell.is-half,
.player-shell.is-land {
  display: flex;
  flex-direction: column;
  background: #05080F;
  border-radius: 0;
  box-shadow: 0 24px 70px -20px rgba(0, 0, 0, .85);
}
.player-shell.is-half .player-stage .stage-video,
.player-shell.is-land .player-stage .stage-video,
.player-shell.is-half .player-stage #vod-stage .vjs-tech,
.player-shell.is-land .player-stage #vod-stage .vjs-tech {
  object-fit: contain;
  width: 100%;
  height: 100%;
}
.player-shell.is-half .dm-send,
.player-shell.is-land .dm-send { display: none; }

/* --- 半屏：吸顶，保持 16:9 原始高度，不在画面上压黑边 ---
 * 用 sticky 而不是 fixed：页面不用放假占位、也不锁滚动，
 * 往下滚时视频钉在顶部，笔记 / 题目从下面滚过去，退出时也不会跳。 */
.player-shell.is-half {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 900;
  height: auto;
  max-height: 64vh;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 18px 50px -18px rgba(0, 0, 0, .8);
}
.player-shell.is-half .player-stage { flex: 0 0 auto; }
.player-shell.is-half .player-bar { padding: 8px 12px 10px; }

/* --- 横屏：整块旋转 90° 铺满，控制条浮在画面上 --- */
.player-shell.is-land {
  position: fixed;
  top: 50%; left: 50%;
  width: 100vh; height: 100vw;      /* JS 会按实际视口覆盖成像素值 */
  z-index: 9450;
  transform: translate(-50%, -50%) rotate(90deg);
}
.player-shell.is-land.is-land-flat { transform: translate(-50%, -50%); }
.player-shell.is-land .player-stage {
  flex: 1 1 auto;
  aspect-ratio: auto;
  min-height: 0;
}
.player-shell.is-land .player-bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 5;
  padding: 10px 12px 10px;
  background: linear-gradient(180deg, rgba(5, 8, 15, 0), rgba(5, 8, 15, .88) 46%);
}
.player-shell.is-land .player-stage .hint { bottom: 84px; }
.player-shell.is-land .pc-break { display: none; }              /* 横屏够宽，不用另起一行 */

/* 半屏 / 横屏时收起画中画、网页全屏这类重复入口 */
.player-shell.is-half #btn-webfs,
.player-shell.is-land #btn-webfs,
.player-shell.is-half #btn-pip,
.player-shell.is-land #btn-pip { display: none; }

/* 手机上才出现「半屏 / 横屏」两颗按钮；桌面用网页全屏 + 全屏就够 */
#btn-half, #btn-land { display: none; }
@media (hover: none), (max-width: 900px) {
  #btn-half, #btn-land { display: grid; }
  #btn-webfs { display: none; }
}

/* 手机端把「半屏 / 横屏 / 全屏」这三颗屏幕模式按钮整行放下，别和前面的挤在一起 */
.pc-break { display: none; }
@media (max-width: 720px), (hover: none) {
  .pc-break { display: block; flex: 0 0 100%; height: 0; margin: 0; }
  .player-controls { row-gap: 6px; }
}

/* ============ 理论题重点词汇：高亮 + 释义弹窗 ============ */

/* 用金色波浪下划线 + 淡底，和「链接蓝」「按钮蓝」区分开；
   颜色继承正文，深浅色背景都能读。
   ---- 现在颜色和效果都可配：<html data-hl-color / data-hl-style> 由 /theme.js 在 <head> 里就写好，
        学员在答题页齿轮面板里改，存 localStorage（jeff_hl）。四种效果共用一套变量。 ---- */

/* 颜色：只改 --hl（底色）/ --hl-ink（文字色），效果规则不用跟着复制六遍 */
html[data-hl-color="gold"]   { --hl: var(--hl-gold);   --hl-ink: var(--hl-gold-ink); }
html[data-hl-color="green"]  { --hl: var(--hl-green);  --hl-ink: var(--hl-green-ink); }
html[data-hl-color="blue"]   { --hl: var(--hl-blue);   --hl-ink: var(--hl-blue-ink); }
html[data-hl-color="purple"] { --hl: var(--hl-purple); --hl-ink: var(--hl-purple-ink); }
html[data-hl-color="pink"]   { --hl: var(--hl-pink);   --hl-ink: var(--hl-pink-ink); }
html[data-hl-color="orange"] { --hl: var(--hl-orange); --hl-ink: var(--hl-orange-ink); }

mark.vw {
  --hl-c: var(--hl, var(--gold));
  --hl-t: var(--hl-ink, var(--gold-text));
  background: none;
  color: var(--hl-t);
  font-weight: 650;
  padding: 0 1px;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .12s ease, color .12s ease;
}

/* ① 淡底：下缘半高底色 + 虚线下划线（默认，原来的样子） */
html[data-hl-style="soft"] mark.vw,
html:not([data-hl-style]) mark.vw {
  background: linear-gradient(transparent 58%, color-mix(in srgb, var(--hl-c) 30%, transparent) 58%);
  text-decoration: underline dotted color-mix(in srgb, var(--hl-c) 85%, transparent);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
html[data-hl-style="soft"] mark.vw:hover,
html[data-hl-style="soft"] mark.vw.is-open,
html:not([data-hl-style]) mark.vw:hover,
html:not([data-hl-style]) mark.vw.is-open { background: color-mix(in srgb, var(--hl-c) 40%, transparent); }

/* ② 下划线：只有一条实线，正文最干净 */
html[data-hl-style="underline"] mark.vw {
  font-weight: 600;
  text-decoration: underline solid var(--hl-c);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
html[data-hl-style="underline"] mark.vw:hover,
html[data-hl-style="underline"] mark.vw.is-open { background: color-mix(in srgb, var(--hl-c) 18%, transparent); }

/* ③ 加粗：只变色加粗，不加任何装饰（适合已经花哨的页面） */
html[data-hl-style="bold"] mark.vw { font-weight: 800; }
html[data-hl-style="bold"] mark.vw:hover,
html[data-hl-style="bold"] mark.vw.is-open { background: color-mix(in srgb, var(--hl-c) 16%, transparent); }

/* ④ 荧光笔：整块淡底铺满，最醒目 */
html[data-hl-style="marker"] mark.vw {
  background: color-mix(in srgb, var(--hl-c) 28%, transparent);
  font-weight: 700;
}
html[data-hl-style="marker"] mark.vw:hover,
html[data-hl-style="marker"] mark.vw.is-open { background: color-mix(in srgb, var(--hl-c) 46%, transparent); }

/* 关掉高亮：还原成普通文字，顺便断掉点击（否则看不出是重点词却还能弹释义，很怪） */
html[data-hl="off"] mark.vw,
html[data-hl="off"] mark.vw:hover,
html[data-hl="off"] mark.vw.is-open {
  background: none !important;
  color: inherit !important;
  font-weight: inherit !important;
  text-decoration: none !important;
  padding: 0;
  cursor: default;
  pointer-events: none !important;
}

mark.vw:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* 选项卡片里高亮词也要能点，别把卡片撑变形 */
.option mark.vw { pointer-events: auto; }

.vw-pop {
  position: fixed;
  z-index: 9999;
  max-width: min(330px, calc(100vw - 16px));
  min-width: 140px;
  padding: 11px 30px 11px 14px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  box-shadow: 0 20px 48px -20px rgba(11, 27, 51, .45);
  animation: vw-pop-in .12s ease-out;
}
@keyframes vw-pop-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}
.vw-pop-w {
  font-size: 15px; font-weight: 700; line-height: 1.35;
  color: var(--ink); word-break: break-word;
}
.vw-pop-c {
  margin-top: 5px; font-size: 13px; line-height: 1.6;
  color: var(--text-2); word-break: break-word;
}
.vw-pop-tip {
  margin-top: 7px; font-size: 11.5px; color: var(--success);
}
.vw-pop-tip:empty { display: none; }

/* 手机端的显式保存按钮（电脑端隐藏，点词即存） */
.vw-pop-save {
  display: block;
  width: 100%;
  margin-top: 10px;
  height: 33px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: var(--blue-solid);
  color: #fff;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: .01em;
  cursor: pointer;
  transition: filter .12s ease, background-color .12s ease;
}
.vw-pop-save:hover { filter: brightness(1.07); }
.vw-pop-save:disabled,
.vw-pop-save.is-saved {
  background: var(--success-soft);
  color: var(--success-text);
  cursor: default;
  filter: none;
}
.vw-pop-x {
  position: absolute; top: 4px; right: 4px;
  width: 22px; height: 22px; line-height: 1;
  border: 0; background: transparent; color: var(--text-3);
  font-size: 17px; cursor: pointer; border-radius: 6px;
}
.vw-pop-x:hover { background: var(--bg); color: var(--text); }

/* 深色背景下也能看清（站点目前是浅色，这里按系统偏好兜底） */
/* 说明：原来这里有一层 prefers-color-scheme 深色兜底，
   现在皮肤由 data-theme 统一管理，保留会导致「系统深色 + 学员选浅色」时弹窗变深色，故移除。 */

/* ---------- 外观切换面板（顶栏右上角） ---------- */
.theme-pop {
  position: fixed;
  z-index: 9998;
  width: 236px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  animation: theme-pop-in .14s var(--ease);
}
@keyframes theme-pop-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
.theme-pop-h {
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  color: var(--text-3); padding: 4px 8px 8px;
}
.theme-opt {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 8px; border: 0; background: none; border-radius: var(--r-sm);
  cursor: pointer; text-align: left; transition: background var(--t-fast);
}
.theme-opt:hover { background: var(--hover-bg); }
.theme-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.theme-txt b { font-size: 13px; font-weight: 650; color: var(--text); }
.theme-txt small { font-size: 11px; color: var(--text-3); line-height: 1.35; }
.theme-tick { color: var(--blue); flex: none; display: flex; }
/* 小色卡：不用图片，纯 CSS，避免多几个请求 */
.theme-sw {
  width: 26px; height: 26px; border-radius: 7px; flex: none;
  border: 1px solid var(--line-strong); position: relative; overflow: hidden;
}
.theme-sw--auto { background: linear-gradient(135deg, #FFFFFF 0 50%, #1B2434 50% 100%); }
.theme-sw--light { background: #FFFFFF; box-shadow: inset 0 0 0 3px #EBF1FF; }
.theme-sw--dark { background: #161E2C; box-shadow: inset 0 0 0 3px #1B2A47; }
.theme-sw--green { background: #1A212C; }
.theme-sw--green::after {
  content: ''; position: absolute; inset: 7px; border-radius: 3px; background: #34C759;
}

/* ---------- 会员抽屉（手机底部 tab 第 6 项） ----------
 * 把「开通与兑换 / 我的账户 / 登录注册」三合一，避免底部 8 个 tab 挤成一坨。
 * 只在 ≤980px 出现，位置贴着底部 tab 条往上弹。
 */
.mem-mask {
  position: fixed; inset: 0; z-index: 9997;
  background: rgba(8, 14, 26, .42);
  animation: mem-fade .16s var(--ease);
}
@keyframes mem-fade { from { opacity: 0; } to { opacity: 1; } }

.mem-panel {
  position: fixed; z-index: 9998;
  left: 8px; right: 8px;
  bottom: calc(70px + env(safe-area-inset-bottom, 0px));
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  box-shadow: var(--sh-lg);
  animation: mem-up .18s var(--ease);
}
@keyframes mem-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

.mem-head {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 8px 12px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}
.mem-av {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue-dark);
  font-size: 14px; font-weight: 700;
}
.mem-id { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.mem-id b {
  font-size: 14px; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mem-id small { font-size: 11px; color: var(--text-3); }
.mem-x {
  flex: none; display: flex; padding: 6px;
  border: 0; background: none; border-radius: 8px;
  color: var(--text-3); cursor: pointer;
}
.mem-x:hover { background: var(--hover-bg); color: var(--text); }

.mem-row {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 11px 10px;
  border: 0; background: none; border-radius: 10px;
  color: var(--text); text-decoration: none; text-align: left;
  font-family: inherit; cursor: pointer;
  transition: background var(--t-fast);
}
.mem-row:hover, .mem-row:focus-visible { background: var(--hover-bg); }
.mem-row > svg:first-child { color: var(--blue); flex: none; }
.mem-row > svg:last-child { color: var(--text-3); flex: none; }
.mem-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.mem-txt b { font-size: 14px; font-weight: 600; }
.mem-txt small { font-size: 11.5px; color: var(--text-3); }
.mem-row--quit .mem-txt b { color: var(--danger-text); }


/* ---------- 个性化设置面板（答题页齿轮） ----------
 * 桌面从齿轮按钮旁边弹；手机上贴底当抽屉（内容有一屏高，气泡会被顶出屏幕）。
 * 内容：界面皮肤 / 重点词高亮开关 / 效果 / 颜色 + 实时预览。
 */
.cfg-mask {
  position: fixed; inset: 0; z-index: 9997;
  background: rgba(8, 14, 26, .42);
  animation: mem-fade .16s var(--ease);
}
.cfg-pop {
  position: fixed; z-index: 9998;
  width: 326px; max-width: calc(100vw - 16px);
  max-height: calc(100vh - 24px); overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  animation: theme-pop-in .14s var(--ease);
}
.cfg-h { display: flex; align-items: center; gap: 8px; padding: 4px 6px 10px; }
.cfg-h b { flex: 1; font-size: 13.5px; font-weight: 700; color: var(--text); }
.cfg-x {
  flex: none; display: flex; padding: 5px; border: 0; background: none;
  border-radius: 8px; color: var(--text-3); cursor: pointer;
}
.cfg-x:hover { background: var(--hover-bg); color: var(--text); }

.cfg-sec { padding: 9px 6px; border-top: 1px solid var(--line); }
.cfg-sec:first-of-type { border-top: 0; }
.cfg-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
  color: var(--text-3); margin-bottom: 9px;
}
.cfg-label .cfg-onoff { margin-left: auto; display: flex; gap: 4px; letter-spacing: 0; }
.cfg-onoff button {
  height: 24px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--r-pill);
  background: var(--surface); color: var(--text-2);
  font: inherit; font-size: 11.5px; font-weight: 650; cursor: pointer;
}
.cfg-onoff button.is-on { border-color: var(--blue); background: var(--blue-soft); color: var(--blue-dark); }

/* 皮肤：4 个色卡横排 */
.cfg-skins { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cfg-skin {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 8px 2px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--text-2);
  font: inherit; font-size: 10.5px; cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.cfg-skin:hover { background: var(--hover-bg); }
.cfg-skin.is-on { border-color: var(--blue); background: var(--blue-soft); color: var(--blue-dark); font-weight: 650; }
.cfg-skin .theme-sw { width: 24px; height: 24px; border-radius: 6px; }

/* 高亮效果：4 张卡，卡里那半句就是效果本身 */
.cfg-effects { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cfg-fx {
  display: flex; flex-direction: column; gap: 5px;
  padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); font: inherit; text-align: left; cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.cfg-fx:hover { background: var(--hover-bg); }
.cfg-fx.is-on { border-color: var(--blue); background: var(--blue-soft); }
.cfg-fx small { font-size: 10.5px; color: var(--text-3); }
.cfg-fx.is-on small { color: var(--blue-dark); }
/* 这里不要给 em 设 color：示例色由 .hlfx 自带的 color 决定 */
.cfg-fx em { font-style: normal; font-size: 13px; line-height: 1.5; }
.cfg-note { font-size: 11px; line-height: 1.55; color: var(--text-3); }
/* 高亮关掉时，效果/颜色两栏变淡（仍可点，点了会自动打开） */
.cfg-sec.is-off { opacity: .5; }

/* 效果示例（.hlfx）：跟着当前选的色走，四档各画各的 */
.hlfx {
  --c: var(--hl, var(--gold));
  --t: var(--hl-ink, var(--gold-text));
  color: var(--t); font-weight: 650; padding: 0 1px; border-radius: 2px;
}
.hlfx-soft {
  background: linear-gradient(transparent 58%, color-mix(in srgb, var(--c) 30%, transparent) 58%);
  text-decoration: underline dotted color-mix(in srgb, var(--c) 85%, transparent);
  text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.hlfx-underline { font-weight: 600; text-decoration: underline solid var(--c); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.hlfx-bold { font-weight: 800; }
.hlfx-marker { font-weight: 700; background: color-mix(in srgb, var(--c) 28%, transparent); }

/* 颜色：6 个色点，选中的套一圈主色描边 */
.cfg-colors { display: flex; flex-wrap: wrap; gap: 10px; }
.cfg-color {
  width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%;
  cursor: pointer; position: relative;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14);
}
.cfg-color.is-on { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14), 0 0 0 2px var(--surface), 0 0 0 4px var(--blue); }
/* 注意属性名是 data-cfg-color（面板按钮自己的），别写成 data-hl-color（那是 html 上的当前色） */
.cfg-color[data-cfg-color="gold"]   { background: var(--hl-gold); }
.cfg-color[data-cfg-color="green"]  { background: var(--hl-green); }
.cfg-color[data-cfg-color="blue"]   { background: var(--hl-blue); }
.cfg-color[data-cfg-color="purple"] { background: var(--hl-purple); }
.cfg-color[data-cfg-color="pink"]   { background: var(--hl-pink); }
.cfg-color[data-cfg-color="orange"] { background: var(--hl-orange); }
.cfg-cname { margin-top: 8px; font-size: 11px; color: var(--text-3); }

/* 实时预览 */
.cfg-preview {
  margin-top: 10px; padding: 10px 12px;
  border: 1px dashed var(--line-strong); border-radius: 10px;
  background: var(--bg); color: var(--text);
  font-size: 13px; line-height: 1.75;
}
.cfg-preview .hlfx { cursor: pointer; }

.cfg-reset {
  display: block; width: 100%; height: 36px; margin-top: 8px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--text-2);
  font: inherit; font-size: 12.5px; cursor: pointer;
}
.cfg-reset:hover { background: var(--hover-bg); color: var(--text); }

/* 手机：贴底抽屉，别用气泡（内容比屏幕还高） */
@media (max-width: 760px) {
  .cfg-pop {
    left: 8px; right: 8px; top: auto; bottom: 8px;
    width: auto; max-width: none;
    max-height: 84vh;
    border-radius: 16px;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
    animation: mem-up .18s var(--ease);
  }
  .cfg-h { position: sticky; top: -6px; background: var(--surface); z-index: 1; }
}

/* ==========================================================================
   33. 理论刷题学习 · 首屏教练视频（2026-10-28 需求第 6 条）
   原来视频占满整行 16:9，1500px 宽的屏幕上光它就有 800 多像素高，
   把下面的学习进度和练习入口全推到首屏之外。改成「视频 + 导语」并排，
   视频最多 420px 宽，比例仍是 16:9（不拉伸、不裁切）。
   ========================================================================== */
.coach-card {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 14px;
  margin-bottom: 18px;
}
.coach-media { min-width: 0; }
#coach-player {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #0B1B33;
}
#coach-player > img,
#coach-player > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#coach-player > video { object-fit: contain; background: #000; }
#coach-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 16px; text-align: center; color: #fff;
  background: radial-gradient(120% 120% at 30% 10%, #1B3A6B 0%, #0B1B33 70%);
}
/* 后台传了封面图但视频还没就绪时：封面铺在占位层下面，加一层压暗渐变保证文字读得清
   （客户 2026-10-29 第 4 条：封面传到哪都能看到） */
#coach-player.has-cover #coach-placeholder {
  background: linear-gradient(180deg, rgba(11, 27, 51, .42) 0%, rgba(11, 27, 51, .74) 62%, rgba(11, 27, 51, .88) 100%);
}
/* 有封面、而且视频能播：封面就是主视觉，占位层的标题/副标题全部让路，
   只留一层很轻的压暗把播放按钮托出来 —— 否则两行大字正压在封面人物脸上，
   看起来就像「封面没换对」。（客户 2026-10-29 第 4 条的观感问题） */
#coach-player.has-cover.has-video #coach-placeholder {
  background: linear-gradient(180deg, rgba(8, 18, 34, .08) 0%, rgba(8, 18, 34, .14) 52%, rgba(8, 18, 34, .44) 100%);
}
#coach-player.has-cover.has-video .cp-ico,
#coach-player.has-cover.has-video .cp-t,
#coach-player.has-cover.has-video .cp-s { display: none; }
.cp-ico {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .16);
}
.cp-t { margin: 0; font-size: 13.5px; font-weight: 700; line-height: 1.5; }
.cp-s { margin: 0; font-size: 11.5px; line-height: 1.6; color: rgba(255, 255, 255, .62); }
#coach-play {
  position: absolute; inset: 0; width: 100%;
  background: transparent; border: 0; cursor: pointer; padding: 0;
}
.cp-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .22);
  backdrop-filter: blur(4px);
  transition: transform var(--t-base), background-color var(--t-base);
}
#coach-play:hover .cp-play { transform: translate(-50%, -50%) scale(1.06); background: rgba(255, 255, 255, .32); }
.coach-side { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.coach-side .eyebrow { margin: 0; }
.coach-h { font-size: clamp(17px, 1.5vw, 21px); letter-spacing: -.02em; margin: 0; color: var(--ink); }
.coach-by { margin: 0; font-size: 12.5px; font-weight: 700; color: var(--gold-text); }
.coach-side p.tiny { margin: 0; line-height: 1.7; }
/* 导学区只剩一个按钮（客户 2026-10-29 第 2 条删掉了「去看视频课」）：
   不能让原位置留一块空白，这里统一收紧上方间距 */
.coach-cta { margin-top: 6px; }

@media (max-width: 860px) {
  .coach-card { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 12px; }
  .coach-side { gap: 6px; }
}

/* ==========================================================================
   34. 使用条款页 / 开通同意项 / 开通确认页（客户 2026-10-28 需求第 13 条）
   ========================================================================== */

/* ---- 条款页 ---- */
.terms-wrap { display: grid; grid-template-columns: 208px minmax(0, 1fr); gap: 22px; align-items: start; }
.terms-toc { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 2px;
  padding: 14px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.terms-toc-h { margin: 0 0 8px; padding: 0 8px; font-size: 11px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-3); }
.terms-toc a { display: block; padding: 7px 8px; border-radius: 8px; font-size: 12.5px; line-height: 1.45;
  color: var(--text-2); text-decoration: none; transition: background .16s var(--ease), color .16s var(--ease); }
.terms-toc a:hover { background: var(--hover-bg); color: var(--ink); }

.terms-doc { padding: 30px 34px 34px; max-width: 860px; }
.terms-title { font-family: var(--font-display); font-size: clamp(21px, 2vw, 26px); line-height: 1.3;
  letter-spacing: -.02em; margin: 0 0 16px; color: var(--ink); }
.terms-meta { display: grid; gap: 1px; padding: 12px 14px; margin-bottom: 26px; border-radius: 12px;
  background: var(--bg); border: 1px solid var(--line); }
.terms-meta-i { display: flex; gap: 10px; font-size: 12.5px; line-height: 1.7; }
.terms-meta-i > span { flex: 0 0 74px; color: var(--text-2); }
.terms-meta-i > b { font-weight: 700; color: var(--ink); }

.terms-sec { padding-top: 4px; }
.terms-sec + .terms-sec { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.terms-h { display: flex; align-items: baseline; gap: 10px; margin: 0 0 10px;
  font-size: 15.5px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); scroll-margin-top: 88px; }
.terms-n { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 5px; border-radius: 7px; font-size: 11.5px; font-weight: 800;
  color: var(--gold-text); background: var(--gold-soft); }
.terms-p { margin: 0 0 10px; font-size: 13.5px; line-height: 1.9; color: var(--text-2); text-align: justify; }
.terms-p:last-child { margin-bottom: 0; }
.terms-foot { margin-top: 16px; text-align: center; }

.no-print { }
.page-head-act { display: flex; gap: 8px; flex-wrap: wrap; }

@media (max-width: 1024px) {
  .terms-wrap { grid-template-columns: minmax(0, 1fr); }
  .terms-toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 4px; padding: 10px; }
  .terms-toc-h { display: none; }
  .terms-toc a { padding: 6px 9px; background: var(--bg); font-size: 12px; }
}
@media (max-width: 720px) {
  .terms-doc { padding: 20px 16px 24px; }
  .terms-p { font-size: 13px; line-height: 1.85; text-align: left; }
  .terms-meta-i { flex-direction: column; gap: 0; }
  .terms-meta-i > span { flex: none; font-size: 11px; }
}

/* ---- 开通页的两个同意项 ---- */
.consent-box { display: grid; gap: 12px; padding: 16px 18px; margin-bottom: 14px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.consent-note { margin: 0; font-size: 12.5px; line-height: 1.8; color: var(--text-2); }
.consent-note b { color: var(--ink); }
.consent-list { display: grid; gap: 10px; }
.consent-row { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.consent-row input { flex: 0 0 auto; width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--blue-solid);
  cursor: pointer; }
.consent-t { font-size: 13px; line-height: 1.75; color: var(--ink); }
.consent-t a { color: var(--gold-text); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.consent-t .consent-sub { display: block; margin-top: 2px; font-size: 11.5px; color: var(--text-2); }
/* is-miss 一直留红，直到用户勾上；shake 只管那一下抖动 */
.consent-row.is-miss .consent-t { color: var(--danger-text); }
.consent-row.is-miss input { outline: 2px solid var(--danger); outline-offset: 2px; border-radius: 4px; }
.consent-row.shake { animation: consentShake .32s var(--ease); }
@keyframes consentShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}
.consent-err { margin: 0; font-size: 12px; color: var(--danger-text); display: none; }
.consent-err.show { display: block; }

/* ---- 开通确认页 ---- */
.ord-hero { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.ord-ico { flex: 0 0 auto; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--success-soft, rgba(14, 159, 110, .12)); color: var(--success, #0E9F6E); }
.ord-hero h1 { margin: 0; font-family: var(--font-display); font-size: clamp(20px, 2vw, 25px); letter-spacing: -.02em; }
.ord-hero p { margin: 3px 0 0; font-size: 12.5px; color: var(--text-2); }

.ord-sheet { max-width: 720px; padding: 26px 28px; border: 1px solid var(--line); border-radius: 16px;
  background: var(--surface); }
.ord-no { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px dashed var(--line-strong); }
.ord-no b { font-family: var(--font-mono); font-size: 17px; letter-spacing: .01em; color: var(--ink); }
.ord-no span { font-size: 11.5px; color: var(--text-2); }
.ord-rows { display: grid; gap: 9px; }
.ord-row { display: flex; gap: 14px; font-size: 13px; line-height: 1.6; }
.ord-row > span { flex: 0 0 96px; color: var(--text-2); }
.ord-row > b { font-weight: 700; color: var(--ink); }
.ord-consent { margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: var(--bg);
  border: 1px solid var(--line); }
.ord-consent h4 { margin: 0 0 8px; font-size: 12.5px; font-weight: 800; color: var(--ink); }
.ord-consent li { font-size: 12px; line-height: 1.8; color: var(--text-2); }
.ord-consent ul { margin: 0; padding-left: 18px; }
.ord-acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.ord-tip { margin-top: 12px; font-size: 12px; color: var(--text-2); }

@media (max-width: 720px) {
  .ord-sheet { padding: 20px 16px; }
  .ord-row { flex-direction: column; gap: 0; }
  .ord-row > span { flex: none; font-size: 11px; }
  .ord-acts .btn { flex: 1 1 100%; }
}

/* ---- 打印：条款页与开通确认只留正文 ---- */
@media print {
  .sidebar, .topbar, .no-print, .terms-toc, .ord-acts, .terms-foot { display: none !important; }
  html, body { background: #fff !important; }
  .app, .main, .page { display: block !important; margin: 0 !important; padding: 0 !important; max-width: none !important; }
  .terms-wrap { display: block !important; }
  .terms-doc, .ord-sheet { border: 0 !important; box-shadow: none !important; max-width: none !important;
    padding: 0 !important; background: #fff !important; }
  .terms-sec + .terms-sec { break-inside: avoid; }
  .terms-p, .terms-h { color: #111 !important; }
  .terms-sec { break-inside: avoid-page; }
}

/* ==========================================================================
   35. 理论「按分类练习」分类入口（客户 2026-10-29 第 5 条）
   等宽分列网格：列宽一致、行列间距统一，列数按可用宽度自适应
   ========================================================================== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  gap: 10px;
}
.cat-tab {
  position: relative;
  display: flex; align-items: center; gap: 11px;
  min-height: 64px; padding: 13px 14px;
  border: 1px solid var(--line); border-radius: 13px;
  background: var(--surface-2);
  color: var(--ink); text-decoration: none;
  transition: border-color .16s var(--ease), background .16s var(--ease),
              transform .16s var(--ease), box-shadow .16s var(--ease);
}
.cat-tab-ico {
  flex: none; display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--blue-soft); color: var(--blue-dark);
  font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.cat-tab-t {
  flex: 1 1 auto; min-width: 0;
  font-size: 14px; font-weight: 700; line-height: 1.4; letter-spacing: -.01em;
  overflow-wrap: anywhere;
}
.cat-tab-n {
  flex: none; padding: 2px 8px; border-radius: 999px;
  background: var(--bg); color: var(--text-3);
  font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.cat-tab:hover {
  border-color: var(--blue); background: var(--hover-bg);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -20px rgba(0, 0, 0, .55);
}
.cat-tab:active { transform: translateY(0); box-shadow: none; }
.cat-tab:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* 选中态：上次练过的分类 */
.cat-tab.is-active { border-color: var(--gold-line); background: var(--gold-soft); }
.cat-tab.is-active .cat-tab-ico { background: var(--gold); color: #2A1F00; }
.cat-tab.is-active .cat-tab-n { background: color-mix(in srgb, var(--gold) 22%, transparent); color: var(--gold-text); }
.cat-tab-badge {
  position: absolute; top: -7px; right: 10px;
  padding: 1px 7px; border-radius: 999px;
  background: var(--gold); color: #2A1F00;
  font-size: 10px; font-weight: 800; letter-spacing: .01em;
}

@media (max-width: 760px) {
  .cat-grid { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 8px; }
  .cat-tab { min-height: 58px; padding: 11px 12px; gap: 8px; border-radius: 12px; }
  .cat-tab-ico { width: 28px; height: 28px; border-radius: 8px; font-size: 11px; }
  .cat-tab-t { font-size: 13px; }
  .cat-tab-n { font-size: 11px; padding: 1px 6px; }
}
@media (max-width: 350px) {
  .cat-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   线下学车记录（学员端，客户 2026-10-29 需求）
   视觉基准：已认可的离线原型 —— 浅色底 / 白卡 / 绿色主色 / 琥珀色复习标记。
   颜色全部走主题变量，明暗皮肤自动适配；等级另有文字，不只靠颜色表达。
   ========================================================================== */
.dr-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.dr-head h1 { font-size: 26px; letter-spacing: -.02em; margin: 0 0 6px; color: var(--text); }
.dr-head p { margin: 0; font-size: 13.5px; color: var(--text-2); }
.dr-tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--line); margin: 6px 0 20px; overflow-x: auto; }
.dr-tabs button {
  border: 0; background: none; padding: 13px 1px; margin-bottom: -1px; cursor: pointer;
  font: inherit; font-size: 14px; color: var(--text-2); white-space: nowrap;
  border-bottom: 2px solid transparent; transition: color var(--t-fast), border-color var(--t-fast);
}
.dr-tabs button.on { color: var(--success-text); font-weight: 700; border-bottom-color: var(--success); }

.dr-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.dr-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; box-shadow: var(--sh-xs); }
.dr-label { font-size: 12px; color: var(--text-3); }
.dr-num { font-size: 30px; font-weight: 650; letter-spacing: -.02em; margin: 12px 0 5px; line-height: 1.12; color: var(--text); }
.dr-num small { font-size: 13px; font-weight: 400; color: var(--text-3); }
.dr-mini { font-size: 12px; color: var(--text-3); line-height: 1.6; }
.dr-cols { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; align-items: start; }
.dr-sec { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.dr-sec h2, .dr-sec h3 { font-size: 16px; margin: 0; color: var(--text); }
.dr-sec h4 { font-size: 14px; margin: 0; color: var(--text); }

.dr-row { display: grid; grid-template-columns: 150px 1fr 52px; gap: 14px; align-items: center; margin: 18px 0; }
.dr-row .nm { font-size: 12.5px; color: var(--text-2); line-height: 1.5; }
.dr-bar { height: 7px; border-radius: 9px; background: var(--hover-bg); overflow: hidden; }
.dr-bar > i { display: block; height: 100%; border-radius: 9px; background: var(--success); opacity: .75; }
.dr-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11px; color: var(--text-3); margin-top: 14px; }

.dr-focus { padding: 14px 0; border-bottom: 1px solid var(--line); }
.dr-focus:last-child { border-bottom: 0; padding-bottom: 0; }
.dr-focus h3 { font-size: 13.5px; margin: 0 0 4px; display: flex; justify-content: space-between; gap: 8px; color: var(--text); }
.dr-focus p { margin: 0; font-size: 12.5px; color: var(--text-2); line-height: 1.7; }
.dr-plan { background: var(--success-soft); border-color: var(--success-line); }
.dr-plan ol { padding-left: 20px; margin: 10px 0; list-style: decimal; }
.dr-plan li { font-size: 13px; line-height: 1.85; color: var(--text); }
.dr-plan ol li::marker { color: var(--success-text); font-weight: 600; }

.dr-cat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 11px; overflow: hidden; }
.dr-cat > summary { padding: 16px 18px; cursor: pointer; font-size: 13.5px; font-weight: 650; color: var(--text); list-style: none; display: flex; align-items: center; gap: 10px; }
.dr-cat > summary::-webkit-details-marker { display: none; }
.dr-cat > summary::before { content: '▸'; color: var(--text-3); font-size: 11px; transition: transform var(--t-fast); }
.dr-cat[open] > summary::before { transform: rotate(90deg); }
.dr-cat .body { padding: 0 18px 4px; border-top: 1px solid var(--line); }
.dr-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.dr-item:last-child { border-bottom: 0; }
.dr-item .top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.dr-item .code { font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.dr-item .name { font-size: 13px; line-height: 1.6; color: var(--text); }
.dr-lv { display: inline-flex; gap: 4px; margin-top: 9px; }
.dr-lv i { width: 28px; height: 6px; border-radius: 5px; background: var(--hover-bg); }
.dr-lv i.on { background: var(--success); opacity: .8; }
/* 等级条与「查看评估历史」同一行：按钮靠右，留足间隙；窄屏自动换行不挤压 */
.dr-acts { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.dr-acts .dr-lv { margin-top: 0; }
.dr-acts .dr-hist-btn { margin-left: auto; }

.dr-badge { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 6px; font-size: 11.5px; font-weight: 600; white-space: nowrap; background: var(--success-soft); color: var(--success-text); }
.dr-badge.amber { background: var(--gold-soft); color: var(--gold-text); }
.dr-badge.gray { background: var(--hover-bg); color: var(--text-3); }

.dr-lesson { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.dr-lesson:last-child { border-bottom: 0; }
.dr-date { flex: none; width: 64px; text-align: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 0; }
.dr-date strong { display: block; font-size: 21px; line-height: 1.1; color: var(--text); }
.dr-date small { font-size: 11px; color: var(--text-3); }
.dr-lesson .txt { flex: 1; min-width: 0; }
.dr-lesson h3 { font-size: 14.5px; margin: 0 0 3px; color: var(--text); }
.dr-pill { display: inline-block; font-size: 11px; background: var(--hover-bg); color: var(--text-2); border-radius: var(--r-pill); padding: 4px 10px; margin: 7px 5px 0 0; }

.dr-mockstats { display: flex; gap: 32px; margin: 16px 0; flex-wrap: wrap; }
.dr-mockstats strong { display: block; font-size: 27px; line-height: 1.15; color: var(--text); }
.dr-mockstats span { font-size: 11.5px; color: var(--text-3); }
.dr-note { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 13px 15px; margin-top: 10px; font-size: 12.5px; line-height: 1.75; color: var(--text-2); }
.dr-note b { color: var(--text); display: block; margin-bottom: 3px; }
.dr-empty { padding: 40px 20px; text-align: center; color: var(--text-3); font-size: 13px; }
.dr-err { padding: 16px; border-radius: var(--r-sm); background: var(--danger-soft); border: 1px solid var(--danger-line); color: var(--danger-text); font-size: 13px; }
.dr-skel { height: 14px; border-radius: 6px; background: linear-gradient(90deg, var(--hover-bg), var(--surface-2), var(--hover-bg)); background-size: 200% 100%; animation: drsk 1.1s linear infinite; margin: 10px 0; }
@keyframes drsk { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* 弹窗：复用站点的 .modal 约定太重，这里自带一套轻量遮罩 */
.dr-mask { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(11, 27, 51, .45); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity .18s var(--ease), visibility .18s var(--ease); }
.dr-mask.show { opacity: 1; visibility: visible; }
.dr-modal { width: 620px; max-width: 100%; max-height: calc(100vh - 40px); display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--sh-lg); overflow: hidden; transform: translateY(10px); transition: transform .18s var(--ease); }
.dr-mask.show .dr-modal { transform: none; }
.dr-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 22px 14px; border-bottom: 1px solid var(--line); }
.dr-modal-head h3 { font-size: 16px; margin: 0; color: var(--text); }
.dr-modal-x { width: 30px; height: 30px; border: 0; border-radius: 8px; background: var(--hover-bg); color: var(--text-2); font-size: 18px; line-height: 1; cursor: pointer; }
.dr-modal-body { padding: 18px 22px 22px; overflow-y: auto; }
.dr-hist { border-left: 2px solid var(--success-line); padding-left: 16px; margin-left: 6px; }
.dr-hist .h { padding: 11px 0; border-bottom: 1px dashed var(--line); }
.dr-hist .h:last-child { border-bottom: 0; }
.dr-hist .h b { font-size: 13px; color: var(--text); }
.dr-hist .h p { margin: 4px 0 0; font-size: 12.5px; color: var(--text-2); line-height: 1.7; }

@media (max-width: 1100px) {
  .dr-cols { grid-template-columns: 1fr; }
  .dr-stats { grid-template-columns: repeat(2, 1fr); }
  .dr-row { grid-template-columns: 118px 1fr 46px; gap: 10px; }
}
@media (max-width: 760px) {
  .dr-head h1 { font-size: 22px; }
  .dr-card { padding: 16px; }
  .dr-num { font-size: 26px; }
  .dr-lesson { flex-wrap: wrap; }
  .dr-tabs { gap: 20px; }
  .dr-modal-body { padding: 14px 16px 18px; }
}
@media (max-width: 380px) {
  .dr-row { grid-template-columns: 96px 1fr 40px; font-size: 12px; }
  .dr-lv i { width: 22px; }
  .dr-acts { gap: 10px; }
}
/* 这个宽度下等级条 + 按钮必定换行，让按钮占满整行，不留右侧孤零零的空白 */
@media (max-width: 340px) {
  .dr-acts .dr-hist-btn { margin-left: 0; width: 100%; }
}

/* ==========================================================================
   理论刷题页：学习进度 + 模拟考试成绩（客户 2026-10-31 需求）
   PC 一行两列、等宽等高；≤980px 上下堆叠（进度在上）。
   颜色全部走主题变量，浅色 / 深色 / 绿色皮肤都可读；状态同时给文字，不只靠颜色。
   ========================================================================== */
.theory-duo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
.theory-duo > .card { display: flex; flex-direction: column; min-width: 0; }

/* 学习进度：环 + 2×2 指标格，窄的时候自动折行 */
.progress-flex { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; flex: 1; }
.progress-lines { flex: 1; min-width: 190px; }
.pg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
.pg-k { display: block; font-size: 11.5px; color: var(--text-3); line-height: 1.35; }
.pg-v { display: block; font-size: 16px; font-weight: 700; color: var(--text); margin-top: 3px; white-space: nowrap; }

.ms-link { font-size: 12.5px; color: var(--text-2); text-decoration: none; white-space: nowrap; border-radius: var(--r-xs); padding: 3px 6px; }
.ms-link:hover { color: var(--blue); background: var(--blue-soft); }
.ms-link:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* 最近一次成绩：大号数字 + 状态徽标 */
.ms-latest-label { font-size: 12px; color: var(--text-3); }
.ms-latest { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 2px; }
.ms-score { font-size: 34px; line-height: 1.1; font-weight: 750; letter-spacing: -.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.ms-score .ms-total { font-size: 17px; font-weight: 600; color: var(--text-3); }
.ms-pass { font-size: 12px; font-weight: 650; padding: 2px 9px; border-radius: var(--r-pill); border: 1px solid; }
.ms-pass.is-pass { color: var(--success-text); background: var(--success-soft); border-color: var(--success-line); }
.ms-pass.is-fail { color: var(--danger-text); background: var(--danger-soft); border-color: var(--danger-line); }
.ms-pass.is-pending { color: var(--gold-text); background: var(--gold-soft); border-color: var(--gold-line); }

/* 三项辅助统计 */
.ms-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.ms-cell { min-width: 0; }
.ms-k { display: block; font-size: 11.5px; color: var(--text-3); line-height: 1.35; }
.ms-v { display: block; font-size: 16px; font-weight: 700; color: var(--text); margin-top: 3px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ms-v.is-pending { font-size: 12.5px; font-weight: 600; color: var(--gold-text); white-space: normal; }

/* 趋势：紧凑折线 + 一行可读文字（不能只靠 hover 才知道分数） */
.ms-trend { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.ms-spark { margin: 6px 0 2px; }
.ms-spark svg { display: block; width: 100%; height: 44px; overflow: visible; }
.ms-spark .ms-line { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ms-spark .ms-dot { fill: var(--surface); stroke: var(--blue); stroke-width: 2; }
.ms-spark .ms-dot.is-last { fill: var(--blue); }
.ms-spark .ms-grid-line { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 3; }
.ms-trend-txt { font-size: 12px; color: var(--text-2); line-height: 1.6; overflow-wrap: anywhere; }
.ms-trend-txt .ms-arrow { color: var(--text-3); margin: 0 2px; }
.ms-trend-txt .ms-cur { color: var(--text); font-weight: 700; }
.ms-scope { font-size: 11.5px; color: var(--text-3); margin-top: 8px; line-height: 1.5; }

/* 空 / 失败 / 待更新 */
.ms-empty, .ms-err { padding: 6px 0 2px; }
.ms-empty p, .ms-err p { font-size: 13px; color: var(--text-2); line-height: 1.65; }
.ms-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

/* 加载骨架（沿用线下学车记录那套 drsk 动画，不另造一套） */
.ms-skel { display: block; }
.ms-skel-line { display: block; height: 13px; border-radius: 6px; margin: 12px 0; background: linear-gradient(90deg, var(--hover-bg), var(--surface-2), var(--hover-bg)); background-size: 200% 100%; animation: drsk 1.1s linear infinite; }
.ms-skel-big { height: 30px; border-radius: 8px; }

/* 会员卡：整宽细条 */
.theory-member .tm-row { display: flex; align-items: center; gap: 16px; justify-content: space-between; flex-wrap: wrap; }

@media (max-width: 980px) {
  .theory-duo { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .ms-score { font-size: 30px; }
  .ms-grid { gap: 6px; }
  .ms-v { font-size: 15px; }
  .theory-member .tm-row { gap: 12px; }
  .theory-member .tm-row .btn { width: 100%; }
}
/* 极窄屏（≤340）三项统计才改两列，375 仍保持三列，避免第三项单独占一行留白 */
@media (max-width: 380px) {
  .progress-flex { gap: 14px; }
  .progress-lines { min-width: 150px; }
}
@media (max-width: 340px) {
  .ms-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; }
}

/* 模拟考试记录列表（theory-mock-history.html） */
.mh-row { display: flex; align-items: center; gap: 14px; padding: 13px 8px; margin: 0 -8px; border-top: 1px solid var(--line); flex-wrap: wrap; color: inherit; text-decoration: none; border-radius: var(--r-sm); }
.mh-row:hover { background: var(--hover-bg); }
.mh-row:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.mh-row:first-child { border-top: 0; }
.mh-when { min-width: 96px; display: flex; flex-direction: column; }
.mh-when b { font-size: 14px; font-weight: 650; color: var(--text); font-variant-numeric: tabular-nums; }
.mh-when span { font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.mh-score { min-width: 108px; font-variant-numeric: tabular-nums; }
.mh-score-num { font-size: 20px; font-weight: 700; color: var(--text); }
.mh-score-total { font-size: 12.5px; color: var(--text-3); }
.mh-tag { flex: 1; min-width: 84px; }
.mh-open { margin-left: auto; }
@media (max-width: 560px) {
  .mh-row { gap: 10px; padding: 12px 6px; margin: 0 -6px; }
  .mh-when { min-width: 78px; }
  .mh-score { min-width: 78px; }
  .mh-tag { flex: 0 0 auto; }
  /* 整行可点，手机上不需要再挤一个按钮（挤了会换行、行高翻倍） */
  .mh-open { display: none; }
}

/* Unit downloads: independent from the video lesson list and its progress. */
.unit-materials[hidden] { display:none; }
.unit-material-row { display:flex; align-items:center; gap:16px; padding:20px 24px; }
.unit-material-row + .unit-material-row { border-top:1px solid var(--line); }
.unit-material-no { flex:0 0 48px; height:48px; display:grid; place-items:center; border-radius:12px; background:var(--blue-soft); color:var(--blue); font-weight:700; }
.unit-material-info { flex:1; min-width:0; }
.unit-material-info h3 { font-size:15px; line-height:1.5; margin:0 0 5px; }
.unit-material-info p { margin:0; font-size:12px; color:var(--text-3); }
.unit-material-format { font-weight:600; color:var(--blue); }
.unit-material-row > .btn { flex-shrink:0; }
@media(max-width:600px) {
  .unit-material-row { gap:10px; padding:16px; flex-wrap:wrap; }
  .unit-material-no { flex-basis:40px; height:40px; font-size:13px; }
  .unit-material-info h3 { font-size:14px; }
  .unit-material-row > .btn { margin-left:50px; }
}
