/**
 * assets/css/theme-geo-tech.css —— 「深空赛博」前台视觉皮肤（纯增量文件）
 *
 * 设计口径（客户已确认）：
 *   1) 深色赛博科技风：深空底 + 青蓝霓虹 + 玻璃拟态 + 粒子特效 + 发光描边 + 微动效。
 *   2) 装饰尺度克制：只做视觉，不动一字文字 —— 所有装饰均由伪元素 / 渐变 / 光效完成，
 *      伪元素 content 一律为空字符串（纯图形，无任何文案）。
 *
 * 技术约束：
 *   - 本文件在 base.css / front.css / ai-consult.css 之后加载，全部覆盖规则使用
 *     「html.geo-tech」前缀提升特异性；全文仅 2 处 !important，均位于
 *     @media (prefers-reduced-motion: reduce) 的动画/过渡关停块内（无障碍必需），
 *     覆盖类规则一律不使用 !important；
 *   - 只新增 --geo- 前缀变量，严禁重定义 --brand / --brand-dark / --brand-soft；
 *   - 不改动任何现有元素的功能性定位（如 .ai-fab 的 position:fixed / z-index），
 *     仅做视觉覆盖；
 *   - 使用 color-mix() 做品牌色光晕时，同一属性上一行必须先写静态 rgba 兜底；
 *   - 无 @import、无外部字体 / CDN / 图片，可离线 / 内网渲染；
 *   - 不覆盖 .player-stage::after（is-debug 反调试提示层）；
 *   - 播放安全层 z-index 顺序保持：水印(5) < 遮罩(6) < 调试层(7)，舞台装饰层 z-index:3 < 5；
 *   - 所有动画写在 @media (prefers-reduced-motion: no-preference) 内，reduce 时全部关闭。
 */

/* ==========================================================
   0. 设计令牌
   ========================================================== */
:root {
  /* 背景层次 */
  --geo-bg-0: #05070E;
  --geo-bg-1: #0A0F1C;
  --geo-bg-2: #0E1424;

  /* 玻璃面板 */
  --geo-glass: rgba(16, 24, 42, .72);
  --geo-glass-2: rgba(22, 32, 54, .55);

  /* 描边 */
  --geo-line: rgba(120, 160, 255, .14);

  /* 文字 */
  --geo-text: #E7EEFA;
  --geo-text-2: #A6B6D0;
  --geo-muted: #6E7E9A;

  /* 科技强调色（青 / 紫，与品牌蓝协调） */
  --geo-cyan: #22D3EE;
  --geo-violet: #818CF8;

  /* 状态霓虹色 */
  --geo-ok: #34D399;
  --geo-amber: #FBBF24;
  --geo-danger: #F87171;

  /* 光效 */
  --geo-glow: 0 0 0 1px rgba(56, 189, 248, .18), 0 8px 32px rgba(8, 20, 50, .6);
  --geo-glow-strong: 0 0 28px rgba(56, 189, 248, .35);

  /* 圆角 */
  --geo-radius: 16px;
  --geo-radius-sm: 10px;

  /* 等宽字体栈（数字 / 编号 / 时长 / 章节号） */
  --geo-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

/* ==========================================================
   1. 全局：深空底 / 光晕 / 选区 / 滚动条
   ========================================================== */
html.geo-tech body {
  color: var(--geo-text);
  background-color: var(--geo-bg-0);
  background-image:
    linear-gradient(180deg, var(--geo-bg-0) 0%, var(--geo-bg-1) 42%, var(--geo-bg-2) 100%);
  background-attachment: fixed;
}

/* 固定装饰底层：两团径向光晕（纯图形，无文字；粒子由 JS 画布层负责） */
html.geo-tech body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(1100px 560px at 82% -8%, rgba(34, 211, 238, .10), transparent 62%),
    radial-gradient(900px 520px at -8% 24%, rgba(129, 140, 248, .10), transparent 58%);
}

/* ::selection 用品牌色 */
html.geo-tech ::selection {
  background: rgba(37, 99, 235, .45);
  background: color-mix(in srgb, var(--brand) 45%, transparent);
  color: #FFFFFF;
}

/* 自定义细滚动条（WebKit 全套） */
html.geo-tech ::-webkit-scrollbar { width: 8px; height: 8px; }
html.geo-tech ::-webkit-scrollbar-track { background: rgba(10, 15, 28, .65); }
html.geo-tech ::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(56, 189, 248, .35);
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 65%, transparent), rgba(34, 211, 238, .55));
}
html.geo-tech ::-webkit-scrollbar-thumb:hover { background: rgba(56, 189, 248, .6); }

/* Firefox 滚动条（标准属性） */
html.geo-tech,
html.geo-tech .catalog,
html.geo-tech .toc-drawer,
html.geo-tech .ai-panel__body,
html.geo-tech .lic-modal__panel,
html.geo-tech .ai-input {
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, .4) rgba(10, 15, 28, .65);
}

/* ==========================================================
   2. JS 注入的装饰背景层（.geo-deco，由 theme-geo-tech.js 创建）
   ========================================================== */
.geo-deco {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
/* 粒子画布（由 theme-geo-tech.js 创建；尺寸由 JS 按视口/DPR 设定） */
.geo-deco canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.geo-deco__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .6;
  will-change: transform;
}
.geo-deco__orb--a {
  width: 46vmax; height: 46vmax;
  left: -14vmax; top: -16vmax;
  background: radial-gradient(circle at 35% 35%, rgba(34, 211, 238, .16), rgba(34, 211, 238, 0) 70%);
}
.geo-deco__orb--b {
  width: 42vmax; height: 42vmax;
  right: -12vmax; bottom: -14vmax;
  background: radial-gradient(circle at 60% 40%, rgba(129, 140, 248, .15), rgba(129, 140, 248, 0) 70%);
}
.geo-deco__dot {
  position: absolute;
  width: 2px; height: 2px;
  border-radius: 50%;
  background: rgba(150, 200, 255, .6);
  box-shadow: 0 0 6px rgba(34, 211, 238, .8);
  opacity: .35;
}

/* ==========================================================
   3. 头部 .site-header
   ========================================================== */
html.geo-tech .site-header {
  position: relative;
  overflow: hidden;
  padding: 44px 0 36px;
  color: var(--geo-text);
  background:
    radial-gradient(720px 300px at 10% -24%, rgba(34, 211, 238, .16), transparent 65%),
    radial-gradient(680px 320px at 90% -32%, rgba(129, 140, 248, .18), transparent 65%),
    linear-gradient(180deg, rgba(14, 20, 36, .94), rgba(5, 7, 14, .86));
  border-bottom: 1px solid var(--geo-line);
}

/* 顶部渐变光带（纯图形） */
html.geo-tech .site-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 4%, var(--geo-cyan) 38%, var(--geo-violet) 62%, transparent 96%);
  opacity: .75;
  pointer-events: none;
}

/* 头部内容提到装饰层之上 */
html.geo-tech .site-header .container {
  position: relative;
  z-index: 1;
}

/* 品牌标题：品牌色 → 青 → 紫渐变文字 + 发光 */
html.geo-tech .brand {
  margin: 0;
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(92deg, var(--brand) 8%, var(--geo-cyan) 55%, var(--geo-violet) 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 14px rgba(34, 211, 238, .3));
}

html.geo-tech .brand-sub {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--geo-text-2);
  opacity: .9;
}
html.geo-tech .brand-intro {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--geo-text-2);
  opacity: .75;
  max-width: 720px;
}

/* ==========================================================
   4. 布局
   ========================================================== */
html.geo-tech .layout { gap: 18px; }

/* ==========================================================
   5. 播放区 .player-card / .player-title / .player-stage
   ========================================================== */
html.geo-tech .player-card {
  position: relative;
  background: var(--geo-glass);
  border: 1px solid var(--geo-line);
  border-radius: var(--geo-radius);
  box-shadow: var(--geo-glow);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  overflow: hidden;
}

/* 顶部内高光（纯图形） */
html.geo-tech .player-card::before {
  content: '';
  position: absolute;
  top: 0; left: 6%; right: 6%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .28), transparent);
  pointer-events: none;
  z-index: 1;
}

html.geo-tech .player-title {
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .3px;
  color: var(--geo-text);
  background: rgba(10, 15, 28, .55);
  border-bottom: 1px solid var(--geo-line);
}

/* 标题前呼吸脉冲小光点（纯图形） */
html.geo-tech .player-title::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  vertical-align: 1px;
  background: var(--geo-cyan);
  box-shadow: 0 0 8px rgba(34, 211, 238, .9);
}

/* 舞台：保持 16:9 与黑底；装饰只用 ::before（::after 留给 is-debug 反调试层） */
html.geo-tech .player-stage {
  background: #000;
}

/* 舞台装饰层：极淡扫描线 + 四角 HUD 直角框
   约束：pointer-events:none；z-index:3（< 水印 5 < 遮罩 6 < 调试层 7，绝不遮挡安全层） */
html.geo-tech .player-stage::before {
  content: '';
  position: absolute;
  inset: 10px;
  z-index: 3;
  pointer-events: none;
  background:
    /* 扫描线 */
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 4px),
    /* 左上角 */
    linear-gradient(var(--geo-cyan), var(--geo-cyan)) 0 0 / 26px 1px no-repeat,
    linear-gradient(var(--geo-cyan), var(--geo-cyan)) 0 0 / 1px 26px no-repeat,
    /* 右上角 */
    linear-gradient(var(--geo-cyan), var(--geo-cyan)) 100% 0 / 26px 1px no-repeat,
    linear-gradient(var(--geo-cyan), var(--geo-cyan)) 100% 0 / 1px 26px no-repeat,
    /* 左下角 */
    linear-gradient(var(--geo-cyan), var(--geo-cyan)) 0 100% / 26px 1px no-repeat,
    linear-gradient(var(--geo-cyan), var(--geo-cyan)) 0 100% / 1px 26px no-repeat,
    /* 右下角 */
    linear-gradient(var(--geo-cyan), var(--geo-cyan)) 100% 100% / 26px 1px no-repeat,
    linear-gradient(var(--geo-cyan), var(--geo-cyan)) 100% 100% / 1px 26px no-repeat;
  opacity: .5;
}

html.geo-tech .player-placeholder {
  color: var(--geo-muted);
  letter-spacing: .5px;
}

/* 失焦遮罩：深色玻璃 + 青色霓虹内描边 */
html.geo-tech .player-mask {
  background: rgba(5, 7, 14, .88);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #BFE9FF;
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .35);
  text-shadow: 0 0 12px rgba(34, 211, 238, .4);
}

/* 反调试提示层：仅调整配色（深色玻璃 + 红色霓虹内描边），
   不改动 z-index(7) / content / 布局，安全层不被覆盖或降级 */
html.geo-tech .player-stage.is-debug::after {
  background: rgba(5, 7, 14, .96);
  color: #FCA5A5;
  box-shadow: inset 0 0 0 1px rgba(248, 113, 113, .35);
  text-shadow: 0 0 12px rgba(248, 113, 113, .35);
}

/* 元信息条：左侧竖条光效 */
html.geo-tech .player-meta {
  position: relative;
  padding: 10px 16px 10px 22px;
  font-size: 12px;
  color: var(--geo-muted);
  border-top: 1px solid var(--geo-line);
  background: rgba(10, 15, 28, .35);
}
html.geo-tech .player-meta::before {
  content: '';
  position: absolute;
  left: 12px; top: 12px; bottom: 12px;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--brand), var(--geo-cyan));
  box-shadow: 0 0 8px rgba(34, 211, 238, .5);
}

/* ==========================================================
   6. 目录 .catalog / .chapter / 课时行
   ========================================================== */
html.geo-tech .catalog {
  background: var(--geo-glass);
  border: 1px solid var(--geo-line);
  border-radius: var(--geo-radius);
  box-shadow: var(--geo-glow);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
html.geo-tech .catalog__error {
  color: var(--geo-muted);
}

html.geo-tech .chapter {
  border-bottom: 1px solid rgba(120, 160, 255, .10);
}

/* 章节头 */
html.geo-tech .chapter__head {
  position: relative;
  overflow: hidden;
  background: rgba(10, 15, 28, .35);
  color: var(--geo-text);
  transition: background .2s ease;
}
html.geo-tech .chapter__head:hover {
  background: rgba(34, 211, 238, .06);
}

/* hover 光扫（纯图形渐变，transform 驱动） */
html.geo-tech .chapter__head::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(34, 211, 238, .10) 45%, rgba(129, 140, 248, .14) 60%, transparent);
  transform: translateX(-130%);
  pointer-events: none;
}

/* 展开态：品牌色微光底 + 左侧 3px 发光竖条 */
html.geo-tech .chapter.is-open .chapter__head {
  background: rgba(37, 99, 235, .10);
  background: linear-gradient(90deg, color-mix(in srgb, var(--brand) 14%, transparent), transparent 72%);
}
html.geo-tech .chapter.is-open .chapter__head::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--brand), var(--geo-cyan));
  box-shadow: 0 0 10px rgba(56, 189, 248, .7);
}

html.geo-tech .chapter__title { color: var(--geo-text); }
html.geo-tech .chapter__icon,
html.geo-tech .chapter__arrow { color: var(--geo-muted); }

/* 章节号：等宽 + 品牌色 + 胶囊化（细描边 + 内发光） */
html.geo-tech .chapter__no {
  font-family: var(--geo-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 2px 10px;
  border-radius: 999px;
  color: var(--brand);
  border: 1px solid rgba(37, 99, 235, .45);
  border-color: color-mix(in srgb, var(--brand) 50%, transparent);
  background: rgba(37, 99, 235, .10);
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  box-shadow: inset 0 0 8px rgba(56, 189, 248, .15);
  white-space: nowrap;
}

/* 锁定章节：更暗一档 */
html.geo-tech .chapter--locked .chapter__head {
  background: rgba(5, 7, 14, .5);
}
html.geo-tech .chapter--locked .chapter__title {
  color: var(--geo-muted);
}
html.geo-tech .chapter__lock { opacity: .7; }

/* 课时行 */
html.geo-tech .lesson { border-top: 1px solid rgba(120, 160, 255, .07); }
html.geo-tech .lesson-row {
  position: relative;
  overflow: hidden;
  color: var(--geo-text);
  transition: background .18s ease;
}
html.geo-tech .lesson-row:hover {
  background: rgba(34, 211, 238, .05);
}
html.geo-tech .lesson-row__title { color: var(--geo-text); }
html.geo-tech .lesson-row__no {
  font-family: var(--geo-mono);
  color: var(--geo-muted);
  letter-spacing: .5px;
}
html.geo-tech .lesson-row__dur {
  font-family: var(--geo-mono);
  color: var(--geo-muted);
  letter-spacing: .5px;
}

/* hover 光扫（复用同一关键帧，位移驱动） */
html.geo-tech .lesson-row::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(34, 211, 238, .08) 50%, transparent);
  transform: translateX(-130%);
  pointer-events: none;
}
/* is-active：左侧发光竖条（未激活时透明） */
html.geo-tech .lesson-row::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--brand), var(--geo-cyan));
  box-shadow: 0 0 10px rgba(56, 189, 248, .7);
  opacity: 0;
  transition: opacity .18s ease;
}
html.geo-tech .lesson-row.is-active {
  background: rgba(37, 99, 235, .12);
  background: linear-gradient(90deg, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%);
  box-shadow: inset 0 0 18px rgba(56, 189, 248, .08);
}
html.geo-tech .lesson-row.is-active::before { opacity: 1; }
html.geo-tech .lesson-row.is-active .lesson-row__title { color: #FFFFFF; }

/* 无视频课时：维持灰化不可点视觉 */
html.geo-tech .lesson-row--novideo:hover { background: transparent; }
html.geo-tech .lesson-row--novideo .lesson-row__title { color: var(--geo-muted); }

/* 「N 个视频」角标：霓虹描边胶囊 */
html.geo-tech .lesson-row__count {
  font-family: var(--geo-mono);
  letter-spacing: .5px;
  color: var(--brand);
  border: 1px solid rgba(37, 99, 235, .5);
  border-color: color-mix(in srgb, var(--brand) 55%, transparent);
  background: rgba(37, 99, 235, .08);
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  box-shadow: 0 0 8px rgba(56, 189, 248, .12);
}

/* 「待更新」徽标：中性灰玻璃，避免抢眼 */
html.geo-tech .lesson-row__badge {
  color: var(--geo-muted);
  border: 1px solid rgba(110, 126, 154, .30);
  background: rgba(110, 126, 154, .14);
}

/* 多视频子条目：更暗一档玻璃底 */
html.geo-tech .lesson-sub {
  background: rgba(5, 7, 14, .38);
}
html.geo-tech .lesson-sub__item { color: var(--geo-text); }
html.geo-tech .lesson-sub__item:hover {
  background: rgba(34, 211, 238, .06);
}
html.geo-tech .lesson-sub__title { color: var(--geo-text-2); }
html.geo-tech .lesson-sub__play { color: var(--geo-cyan); }
html.geo-tech .lesson-sub__dur {
  font-family: var(--geo-mono);
  letter-spacing: .5px;
  color: var(--geo-muted);
}

/* 文字清单 */
html.geo-tech .text-list__item { color: var(--geo-text-2); }
html.geo-tech .text-list__no {
  font-family: var(--geo-mono);
  color: var(--brand);
  letter-spacing: .5px;
}
html.geo-tech .text-list__content { color: var(--geo-text-2); }
html.geo-tech .text-list__empty { color: var(--geo-muted); }

/* 作业卡：玻璃卡 + 左侧品牌色发光边 + 顶部渐隐 */
html.geo-tech .hw-card {
  position: relative;
  overflow: hidden;
  background: var(--geo-glass-2);
  border: 1px solid var(--geo-line);
  border-left: 3px solid var(--brand);
  border-radius: var(--geo-radius-sm);
  box-shadow: inset 0 0 20px rgba(56, 189, 248, .06);
}
html.geo-tech .hw-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(56, 189, 248, .08), transparent);
  pointer-events: none;
}
html.geo-tech .hw-card__title { color: var(--geo-cyan); }
html.geo-tech .hw-card__content { color: var(--geo-text-2); }

/* ==========================================================
   7. 悬浮目录 .toc-fab / .toc-drawer
   ========================================================== */
/* 上移避开 .ai-fab（right:20px bottom:24px，高 54px），按钮功能不变 */
html.geo-tech .toc-fab {
  bottom: 92px;
  background: var(--geo-glass);
  border: 1px solid rgba(37, 99, 235, .55);
  border-color: color-mix(in srgb, var(--brand) 60%, transparent);
  color: var(--geo-text);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, .12), 0 8px 28px rgba(4, 10, 30, .7);
}
html.geo-tech .toc-fab:hover {
  box-shadow: var(--geo-glow-strong);
}

html.geo-tech .toc-drawer {
  background: var(--geo-glass);
  border-top: 1px solid var(--geo-line);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 -12px 40px rgba(4, 10, 30, .8);
}

/* 抽屉顶部把手（纯图形小横条） */
html.geo-tech .toc-drawer::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  width: 42px;
  height: 4px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(120, 160, 255, .35);
  pointer-events: none;
}

html.geo-tech .toc__title { color: var(--geo-text); }
html.geo-tech .toc__item {
  color: var(--geo-text-2);
  border-top: 1px solid rgba(120, 160, 255, .08);
  transition: background .18s ease;
}
html.geo-tech .toc__item:hover {
  background: rgba(37, 99, 235, .10);
  background: color-mix(in srgb, var(--brand) 12%, transparent);
}
html.geo-tech .toc__close {
  background: var(--geo-glass-2);
  border: 1px solid var(--geo-line);
  color: var(--geo-text-2);
}

/* ==========================================================
   8. 页脚 / 预览条
   ========================================================== */
html.geo-tech .site-footer {
  position: relative;
  color: var(--geo-muted);
}
/* 顶部极淡渐变分隔线 */
html.geo-tech .site-footer::before {
  content: '';
  display: block;
  height: 1px;
  margin-bottom: 18px;
  background: linear-gradient(90deg, transparent, rgba(120, 160, 255, .22), transparent);
}

html.geo-tech .preview-bar {
  background: rgba(10, 15, 28, .92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--geo-line);
  color: var(--geo-text-2);
}
/* 保留链接可辨识度 */
html.geo-tech .preview-bar a { color: var(--geo-cyan); }

/* ==========================================================
   9. 授权状态条 .lic-bar
   ========================================================== */
html.geo-tech .lic-bar {
  font-family: var(--geo-mono);
  font-size: 12.5px;
  letter-spacing: .3px;
  background: var(--geo-glass);
  border: 1px solid var(--geo-line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
html.geo-tech .lic-bar--ok {
  background: rgba(6, 28, 22, .72);
  border-color: rgba(52, 211, 153, .45);
  color: #6EE7B7;
  box-shadow: 0 0 14px rgba(52, 211, 153, .12), inset 0 0 12px rgba(52, 211, 153, .06);
}
html.geo-tech .lic-bar--none {
  background: rgba(32, 24, 4, .68);
  border-color: rgba(251, 191, 36, .40);
  color: #FCD34D;
  box-shadow: 0 0 14px rgba(251, 191, 36, .10), inset 0 0 12px rgba(251, 191, 36, .05);
}
html.geo-tech .lic-bar__dot {
  box-shadow: 0 0 8px currentColor;
}

/* [hidden] 兜底守卫：front.css 给 .lic-bar / .player-placeholder 写了 display，
   会压过 UA 的 [hidden]{display:none}，导致 JS 里 el.hidden=true 可能不生效
   （授权条关不掉 / 占位符盖在视频上）。此处以更高的特异性 (0,3,1) 还原 [hidden] 语义。 */
html.geo-tech .lic-bar[hidden],
html.geo-tech .player-placeholder[hidden] {
  display: none;
}

/* ==========================================================
   10. 授权弹窗 .lic-modal
   ========================================================== */
html.geo-tech .lic-modal__mask {
  background: rgba(3, 5, 10, .72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
html.geo-tech .lic-modal__panel {
  position: relative;
  background: var(--geo-glass);
  border: 1px solid rgba(37, 99, 235, .35);
  border-color: color-mix(in srgb, var(--brand) 38%, transparent);
  border-radius: var(--geo-radius);
  box-shadow: var(--geo-glow), 0 24px 80px rgba(2, 6, 18, .85);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
/* 顶部渐变光带（纯图形） */
html.geo-tech .lic-modal__panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: var(--geo-radius) var(--geo-radius) 0 0;
  background: linear-gradient(90deg, var(--brand), var(--geo-cyan) 50%, var(--geo-violet));
  opacity: .85;
  pointer-events: none;
}
html.geo-tech .lic-modal__close {
  color: var(--geo-muted);
}
html.geo-tech .lic-modal__close:hover { color: var(--geo-text); }
html.geo-tech .lic-modal__title {
  color: var(--geo-text);
  letter-spacing: .5px;
}
html.geo-tech .lic-modal__desc {
  color: var(--geo-text-2);
}
html.geo-tech .lic-modal__notice {
  background: rgba(37, 99, 235, .12);
  background: color-mix(in srgb, var(--brand) 14%, transparent);
  border: 1px solid rgba(37, 99, 235, .4);
  border-color: color-mix(in srgb, var(--brand) 45%, transparent);
  color: #9EC1FF;
  color: color-mix(in srgb, var(--brand) 45%, #FFFFFF);
}
html.geo-tech .lic-field__label {
  color: var(--geo-text-2);
}
/* 「选填」小标（深色底上重新着色） */
html.geo-tech .lic-field__opt {
  color: var(--geo-muted);
  background: rgba(110, 126, 154, .16);
}
html.geo-tech .lic-modal__tip {
  color: var(--geo-muted);
}
html.geo-tech .lic-modal__err {
  background: rgba(60, 10, 14, .72);
  border: 1px solid rgba(248, 113, 113, .45);
  color: #FCA5A5;
  box-shadow: 0 0 14px rgba(248, 113, 113, .12), inset 0 0 10px rgba(248, 113, 113, .05);
}
html.geo-tech .lic-modal__foot {
  color: var(--geo-muted);
}

/* ==========================================================
   11. 表单覆盖（覆盖 base.css 白底，保证弹窗内可读 + 光标可见）
   ========================================================== */
html.geo-tech .input,
html.geo-tech .textarea,
html.geo-tech .select {
  background: rgba(8, 12, 24, .85);
  border: 1px solid var(--geo-line);
  color: var(--geo-text);
  caret-color: var(--geo-cyan);
  transition: border-color .18s ease, box-shadow .18s ease;
}
html.geo-tech .input::placeholder,
html.geo-tech .textarea::placeholder {
  color: var(--geo-muted);
  opacity: 1;
}
html.geo-tech .input:focus,
html.geo-tech .textarea:focus,
html.geo-tech .select:focus {
  border-color: rgba(56, 189, 248, .65);
  border-color: color-mix(in srgb, var(--brand) 60%, transparent);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, .18), 0 0 18px rgba(56, 189, 248, .12);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 26%, transparent), 0 0 18px rgba(56, 189, 248, .10);
}

/* ==========================================================
   12. 按钮体系 .btn
   ========================================================== */
html.geo-tech .btn {
  background: var(--geo-glass-2);
  border: 1px solid var(--geo-line);
  color: var(--geo-text);
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
html.geo-tech .btn:hover {
  background: rgba(34, 211, 238, .08);
  border-color: rgba(56, 189, 248, .45);
}
html.geo-tech .btn--primary {
  border-color: rgba(37, 99, 235, .7);
  border-color: color-mix(in srgb, var(--brand) 75%, transparent);
  color: #FFFFFF;
  background: var(--brand);
  background: linear-gradient(135deg, var(--brand) 0%, color-mix(in srgb, var(--brand) 55%, var(--geo-cyan)) 100%);
  box-shadow: 0 4px 16px rgba(37, 99, 235, .35);
}
html.geo-tech .btn--primary:hover {
  border-color: var(--brand);
  box-shadow: 0 6px 26px rgba(37, 99, 235, .5), 0 0 18px rgba(56, 189, 248, .3);
  transform: translateY(-1px);
}
html.geo-tech .btn--danger {
  color: var(--geo-danger);
  border-color: rgba(248, 113, 113, .4);
}
html.geo-tech .btn--danger:hover {
  background: rgba(248, 113, 113, .08);
}
html.geo-tech .btn:disabled {
  opacity: .45;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* ==========================================================
   13. AI 咨询悬浮窗（保持 54×54 与 z-index:99990 不变；
       .ai-panel[hidden]{display:none} 语义不被破坏 —— 不添加任何 display 规则）
   ========================================================== */
html.geo-tech .ai-fab {
  /* 不改定位：保留 ai-consult.css 的 fixed 定位与右下角坐标（54×54 / z-index:99990 原样） */
  background: var(--geo-glass);
  border: 1px solid rgba(37, 99, 235, .5);
  border-color: color-mix(in srgb, var(--brand) 55%, transparent);
  color: var(--geo-cyan);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, .12), 0 8px 24px rgba(4, 10, 30, .7);
}
/* 旋转光环（conic-gradient，纯图形） */
html.geo-tech .ai-fab::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 62%, rgba(34, 211, 238, .85) 82%, rgba(129, 140, 248, .9) 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
  pointer-events: none;
}
html.geo-tech .ai-fab--active {
  background: rgba(37, 99, 235, .3);
  background: color-mix(in srgb, var(--brand) 32%, transparent);
  border-color: var(--geo-cyan);
}

html.geo-tech .ai-panel {
  background: var(--geo-glass);
  border: 1px solid rgba(37, 99, 235, .35);
  border-color: color-mix(in srgb, var(--brand) 38%, transparent);
  border-radius: 14px;
  box-shadow: var(--geo-glow), 0 24px 64px rgba(2, 6, 18, .85);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  color: var(--geo-text);
}
html.geo-tech .ai-panel__head {
  background: var(--brand);
  background: linear-gradient(120deg, var(--brand), color-mix(in srgb, var(--geo-violet) 60%, var(--brand)));
  color: #FFFFFF;
}
html.geo-tech .ai-panel__body {
  background: rgba(8, 12, 22, .55);
}
html.geo-tech .ai-msg--bot {
  background: var(--geo-glass-2);
  border: 1px solid var(--geo-line);
  color: var(--geo-text);
}
html.geo-tech .ai-msg--user {
  background: var(--brand);
  background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 60%, var(--geo-cyan)));
  color: #FFFFFF;
}
html.geo-tech .ai-cites__label,
html.geo-tech .ai-sources__label { color: var(--geo-muted); }
html.geo-tech .ai-chip {
  background: rgba(37, 99, 235, .10);
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  border: 1px solid rgba(37, 99, 235, .5);
  border-color: color-mix(in srgb, var(--brand) 55%, transparent);
  color: var(--geo-cyan);
}
html.geo-tech .ai-chip:hover {
  background: rgba(37, 99, 235, .22);
  background: color-mix(in srgb, var(--brand) 24%, transparent);
}
html.geo-tech .ai-source {
  color: var(--geo-cyan);
}
html.geo-tech .ai-panel__input {
  background: rgba(8, 12, 22, .7);
  border-top: 1px solid var(--geo-line);
}
html.geo-tech .ai-input {
  background: rgba(8, 12, 24, .85);
  border: 1px solid var(--geo-line);
  color: var(--geo-text);
  caret-color: var(--geo-cyan);
}
html.geo-tech .ai-send {
  background: var(--brand);
  background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 60%, var(--geo-cyan)));
  color: #FFFFFF;
}
html.geo-tech .ai-send:hover {
  box-shadow: 0 0 16px rgba(56, 189, 248, .35);
}

/* ==========================================================
   14. 轻提示 .hs-toast
   ========================================================== */
html.geo-tech .hs-toast {
  background: var(--geo-glass);
  border: 1px solid rgba(56, 189, 248, .35);
  color: var(--geo-text);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--geo-glow);
}
html.geo-tech .hs-toast--error {
  background: rgba(48, 10, 14, .88);
  border-color: rgba(248, 113, 113, .5);
  box-shadow: 0 0 20px rgba(248, 113, 113, .2);
}

/* ==========================================================
   15. 动画（全部收在 no-preference 媒体查询内，reduce 全关）
   ========================================================== */
@media (prefers-reduced-motion: no-preference) {

  /* 章节入场：淡入上移，前 8 个阶梯延迟 */
  html.geo-tech .chapter {
    animation: geo-rise .5s cubic-bezier(.22, .61, .36, 1) both;
  }
  html.geo-tech .chapter:nth-child(1) { animation-delay: .02s; }
  html.geo-tech .chapter:nth-child(2) { animation-delay: .05s; }
  html.geo-tech .chapter:nth-child(3) { animation-delay: .08s; }
  html.geo-tech .chapter:nth-child(4) { animation-delay: .11s; }
  html.geo-tech .chapter:nth-child(5) { animation-delay: .14s; }
  html.geo-tech .chapter:nth-child(6) { animation-delay: .17s; }
  html.geo-tech .chapter:nth-child(7) { animation-delay: .20s; }
  html.geo-tech .chapter:nth-child(8) { animation-delay: .23s; }

  /* hover 光扫 */
  html.geo-tech .chapter__head:hover::after { animation: geo-sheen .7s ease forwards; }
  html.geo-tech .lesson-row:hover::after { animation: geo-sheen .6s ease forwards; }

  /* 标题光点呼吸 */
  html.geo-tech .player-title::before { animation: geo-breathe 2.4s ease-in-out infinite; }

  /* 授权状态条圆点脉冲 */
  html.geo-tech .lic-bar__dot { animation: geo-pulse 2s ease-in-out infinite; }

  /* AI 悬浮钮：光环旋转 + hover 放大发光（54×54 不变） */
  html.geo-tech .ai-fab::before { animation: geo-spin 4.2s linear infinite; }
  html.geo-tech .ai-fab:hover {
    transform: scale(1.06);
    box-shadow: 0 0 0 1px rgba(56, 189, 248, .25), 0 0 26px rgba(34, 211, 238, .4);
  }

  /* 装饰层：光晕漂移 + 粒子漂浮 */
  html.geo-tech .geo-deco__orb--a { animation: geo-drift-a 26s ease-in-out infinite; }
  html.geo-tech .geo-deco__orb--b { animation: geo-drift-b 32s ease-in-out infinite; }
  html.geo-tech .geo-deco__dot { animation: geo-float 14s ease-in-out infinite; }

  /* 卡片 hover 上浮 */
  html.geo-tech .player-card,
  html.geo-tech .catalog { transition: transform .25s ease, box-shadow .25s ease; }
  html.geo-tech .player-card:hover { transform: translateY(-1px); }

  @keyframes geo-rise {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes geo-sheen {
    from { transform: translateX(-130%); }
    to { transform: translateX(240%); }
  }
  @keyframes geo-breathe {
    0%, 100% { opacity: 1; }
    50% { opacity: .35; }
  }
  @keyframes geo-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .55; }
  }
  @keyframes geo-spin {
    to { transform: rotate(360deg); }
  }
  @keyframes geo-drift-a {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(6vmax, 4vmax, 0) scale(1.08); }
  }
  @keyframes geo-drift-b {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(-5vmax, -4vmax, 0) scale(1.06); }
  }
  @keyframes geo-float {
    0%, 100% { transform: translateY(0); opacity: .25; }
    50% { transform: translateY(-22px); opacity: .7; }
  }
}

/* 系统开启「减弱动态效果」时：关闭全部动画 / 过渡 */
@media (prefers-reduced-motion: reduce) {
  html.geo-tech *,
  html.geo-tech *::before,
  html.geo-tech *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ==========================================================
   16. 响应式校验（配合 front.css / ai-consult.css 的断点）
   ========================================================== */

/* 手机 <768px：收紧留白，防溢出 */
@media (max-width: 767px) {
  html.geo-tech .site-header { padding: 30px 0 26px; }
  html.geo-tech .layout { gap: 14px; }
}

/* ≤480px：弹窗底部抽屉态 / AI 全宽抽屉态保持协调，toc-fab(92px) 不与 ai-fab(14px,高54) 重叠 */
@media (max-width: 480px) {
  html.geo-tech .site-header { padding: 26px 0 22px; }
  html.geo-tech .lic-modal__panel {
    border-radius: var(--geo-radius) var(--geo-radius) 0 0;
  }
  html.geo-tech .lic-modal__panel::before {
    border-radius: var(--geo-radius) var(--geo-radius) 0 0;
  }
  html.geo-tech .player-title { padding: 12px 14px; }
  html.geo-tech .player-meta { padding-left: 20px; }
  html.geo-tech .player-meta::before { left: 10px; }
  html.geo-tech .chapter__no { padding: 1px 8px; letter-spacing: 0; }
}

/* 平板 768~1024px：玻璃面板保持原居中上限；≥1025px 交回 front.css 的 max-width:none，
   不得泄漏到桌面端（故此处显式收窄区间） */
@media (min-width: 768px) and (max-width: 1024px) {
  html.geo-tech .player-card {
    max-width: 720px;
    margin: 0 auto;
  }
}

/* PC ≥1025px：左目录 / 右播放；toc-fab 按原规则隐藏（重申防止意外显示） */
@media (min-width: 1025px) {
  html.geo-tech .toc-fab { display: none; }
  html.geo-tech .catalog {
    max-height: calc(100vh - 32px);
    overflow-y: auto;
  }
  html.geo-tech .player-col {
    position: sticky;
    top: 16px;
  }
}
