/* 钊哥 AI 创业说 · 设计系统 v1
   风格：浅色 SaaS 商务咨询风
   白底 + 深蓝(Navy) + 青(Cyan) + 橙色强调 + 极浅边框
   零外部依赖：无字体文件、无背景图、无图标库 */

:root {
  --navy: #0f2a44;
  --navy-2: #1b3a5c;
  --navy-3: #2d5478;
  --cyan: #0e7490;
  --cyan-soft: #e6f4f8;
  --orange: #e8722c;
  --orange-soft: #fdf1e8;
  --orange-line: #f6d4ba;

  --bg: #ffffff;
  --bg-soft: #f7fafc;
  --bg-sink: #f1f5f9;

  --line: #e7edf4;
  --line-2: #d6e0ea;

  --text: #12212f;
  --text-2: #4a5f73;
  --text-3: #8095a8;

  --ok: #1d9e75;
  --warn: #ba7517;

  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --r-xl: 20px;

  --sh-1: 0 1px 2px rgba(15, 42, 68, .04);
  --sh-2: 0 2px 8px rgba(15, 42, 68, .06);
  --sh-3: 0 8px 28px rgba(15, 42, 68, .09);

  --max: 1140px;
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "SF Mono", "Cascadia Mono", Consolas, "Courier New", monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--navy-2); }

h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.35; color: var(--navy); letter-spacing: -.01em; }
h1 { font-size: 40px; }
h2 { font-size: 28px; }
h3 { font-size: 18px; }
h4 { font-size: 15px; }
p { margin: 0 0 14px; color: var(--text-2); }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding-left: 20px; color: var(--text-2); }
li { margin-bottom: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-in { max-width: var(--max); margin: 0 auto; padding: 0 24px; height: 62px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--navy); font-size: 16px; }
.brand:hover { color: var(--navy); }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px; background: var(--navy);
  color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  letter-spacing: .02em;
}
.nav { display: flex; gap: 22px; margin-left: auto; font-size: 14px; }
.nav a { color: var(--text-2); }
.nav a:hover { color: var(--navy); }
.nav a.on { color: var(--navy); font-weight: 600; }
.topbar-cta {
  display: inline-flex; align-items: center; height: 34px; padding: 0 16px; border-radius: 8px;
  background: var(--orange); color: #fff; font-size: 14px; font-weight: 600;
}
.topbar-cta:hover { background: #d5641f; color: #fff; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 44px; padding: 0 24px; border-radius: var(--r); border: 1px solid transparent;
  font-size: 15px; font-weight: 600; font-family: var(--font); cursor: pointer;
  transition: background .16s, border-color .16s, color .16s, transform .16s;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); color: #fff; }
.btn-accent { background: var(--orange); color: #fff; }
.btn-accent:hover { background: #d5641f; color: #fff; }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--navy-3); color: var(--navy); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn:disabled { opacity: .5; cursor: default; }

/* ---------- 通用区块 ---------- */
.section { padding: 68px 0; }
.section.soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { margin-bottom: 34px; max-width: 720px; }
.sec-head h2 { margin-bottom: 10px; }
.sec-head p { font-size: 15px; margin: 0; }

.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--cyan); margin-bottom: 10px;
}
.eyebrow.orange { color: var(--orange); }

.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.about-photo { max-width: 420px; margin: 0; }
.about-photo-col { display: flex; justify-content: flex-start; align-items: flex-start; }
.about-hero { grid-template-columns: 260px minmax(0, 1fr); gap: 30px; align-items: center; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px; box-shadow: var(--sh-1);
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: 14px; margin: 0; }

/* ---------- 首页 Hero ---------- */
.hero { padding: 76px 0 64px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #fbfdff 0%, #ffffff 100%); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { font-size: 44px; line-height: 1.22; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero .lead { font-size: 17px; line-height: 1.75; color: var(--text-2); margin-bottom: 26px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 34px; }

.hero-side {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 26px; box-shadow: var(--sh-3);
}
.hero-side h3 { font-size: 16px; margin-bottom: 4px; }
.hero-side .side-sub { font-size: 13px; color: var(--text-3); margin-bottom: 18px; }
.funnel-mini { display: flex; flex-direction: column; gap: 1px; }
.funnel-mini .fm-row {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px;
  background: var(--bg-soft); border-radius: 8px; font-size: 14px;
}
.funnel-mini .fm-row:first-child { border-radius: 8px 8px 0 0; }
.funnel-mini .fm-row:last-child { border-radius: 0 0 8px 8px; }
.funnel-mini .fm-price { font-weight: 700; color: var(--orange); min-width: 74px; font-size: 14px; }
.funnel-mini .fm-title { color: var(--text); font-weight: 500; }

/* ---------- 数字条 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.stats > div { background: #fff; padding: 20px 22px; }
.stats b { display: block; font-size: 26px; color: var(--navy); font-weight: 700; line-height: 1.2; }
.stats span { font-size: 13px; color: var(--text-3); }

/* ---------- 漏斗（价格阶梯） ---------- */
.funnel { display: grid; gap: 16px; }
.funnel-row {
  display: grid; grid-template-columns: 130px 1fr auto; gap: 24px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 26px;
  box-shadow: var(--sh-1); transition: box-shadow .18s, border-color .18s;
}
.funnel-row:hover { box-shadow: var(--sh-2); border-color: var(--line-2); }
.funnel-row.hot { border-color: var(--orange-line); background: linear-gradient(180deg, #fffaf6 0%, #fff 60%); }
.funnel-price { font-size: 26px; font-weight: 700; color: var(--navy); line-height: 1.2; }
.funnel-price small { display: block; font-size: 12px; font-weight: 500; color: var(--text-3); margin-top: 2px; }
.funnel-body h3 { margin-bottom: 6px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.funnel-body p { font-size: 14px; margin: 0 0 8px; }
.funnel-body ul { font-size: 13.5px; columns: 2; column-gap: 28px; }
.tag {
  display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 20px;
  background: var(--cyan-soft); color: var(--cyan); letter-spacing: .02em;
}
.tag.orange { background: var(--orange-soft); color: var(--orange); }
.tag.navy { background: #eef3f8; color: var(--navy-2); }
.funnel-cta { text-align: right; }

/* ---------- 课程模块 ---------- */
.module { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 16px; background: #fff; }
.module-head { display: flex; align-items: center; gap: 16px; padding: 20px 24px; background: var(--bg-soft); border-bottom: 1px solid var(--line); cursor: pointer; }
.module-idx { font-size: 13px; font-weight: 700; color: #fff; background: var(--navy); border-radius: 6px; padding: 3px 9px; font-family: var(--mono); }
.module-head h3 { margin: 0; font-size: 17px; }
.module-head .m-desc { font-size: 13px; color: var(--text-3); margin-left: auto; }
.module-body { padding: 8px 0; }
.lesson-row {
  display: flex; align-items: center; gap: 14px; padding: 11px 24px; font-size: 14px;
  border-bottom: 1px solid #f2f6fa; transition: background .14s;
}
.lesson-row:last-child { border-bottom: 0; }
.lesson-row:hover { background: var(--bg-soft); }
.lesson-n { font-family: var(--mono); font-size: 12.5px; color: var(--text-3); min-width: 28px; }
.lesson-t { flex: 1; color: var(--text); }
.lesson-tag { font-size: 11.5px; color: var(--text-3); background: var(--bg-sink); padding: 2px 8px; border-radius: 20px; }
.lesson-go { font-size: 13px; color: var(--cyan); opacity: 0; transition: opacity .14s; }
.lesson-row:hover .lesson-go { opacity: 1; }

/* ---------- 播放器 ---------- */
/* 整块高度由右侧课件区决定：目录栏内容（.player-side-in）绝对定位，不参与 grid 行高计算，
   否则 30 讲长目录会把整块顶高、目录栏比课件高出一大截 */
.player-shell { display: grid; grid-template-columns: 292px minmax(0, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff; box-shadow: var(--sh-2); align-content: start; }
.player-side { position: relative; border-right: 1px solid var(--line); background: var(--bg-soft); }
.player-side-in { position: absolute; inset: 0; display: flex; flex-direction: column; }
.player-side-head { padding: 16px 18px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--navy); flex: none; }
.player-side-list { overflow-y: auto; flex: 1; min-height: 0; }
.pl-item { display: flex; gap: 10px; padding: 10px 18px; font-size: 13.5px; cursor: pointer; color: var(--text-2); border-left: 2px solid transparent; }
.pl-item:hover { background: #eef4f9; color: var(--navy); }
.pl-item.on { background: #fff; border-left-color: var(--orange); color: var(--navy); font-weight: 600; }
.pl-item .n { font-family: var(--mono); font-size: 12px; color: var(--text-3); min-width: 20px; }
.pl-group { padding: 12px 18px 6px; font-size: 11.5px; font-weight: 700; color: var(--text-3); letter-spacing: .06em; text-transform: uppercase; }

.player-main { display: flex; flex-direction: column; background: #fff; min-width: 0; }
.player-bar { display: flex; align-items: center; gap: 14px; padding: 14px 22px; border-bottom: 1px solid var(--line); }
.player-bar .pb-title { font-weight: 600; color: var(--navy); font-size: 15px; flex: 1; min-width: 0; }
.player-bar button { height: 34px; padding: 0 14px; border: 1px solid var(--line-2); background: #fff; border-radius: 8px; font-size: 13.5px; color: var(--navy); cursor: pointer; font-family: var(--font); }
.player-bar button:hover:not(:disabled) { border-color: var(--navy-3); }
.player-bar button:disabled { opacity: .4; cursor: default; }

.slide-stage { flex: 1; padding: 30px 38px; display: flex; flex-direction: column; }
.slide-frame { position: relative; }   /* 右下角控件贴着课件本身定位 */
.slide-canvas { aspect-ratio: 16 / 9; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; padding: 40px 44px; display: flex; flex-direction: column; box-shadow: var(--sh-1); }
.slide-kicker { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--orange); text-transform: uppercase; margin-bottom: 14px; }
.slide-title { font-size: 27px; font-weight: 600; color: var(--navy); line-height: 1.3; margin-bottom: 16px; }
.slide-rule { width: 40px; height: 3px; background: var(--orange); border-radius: 2px; margin-bottom: 20px; }
.slide-body { font-size: 15.5px; color: var(--text-2); line-height: 1.85; }
.slide-body ul { padding-left: 18px; }
.slide-foot { margin-top: auto; display: flex; justify-content: space-between; font-size: 12px; color: var(--text-3); padding-top: 20px; }
.slide-canvas.is-image { padding: 0; overflow: hidden; }
.slide-canvas.is-image .slide-img { display: block; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.slide-progress { height: 3px; background: var(--bg-sink); border-radius: 2px; margin-top: 22px; overflow: hidden; }
.slide-progress i { display: block; height: 100%; background: var(--orange); border-radius: 2px; transition: width .22s; }

/* 播放控件：页数 + 上/下页 + 全屏，固定贴在课件右下角（符合看课习惯） */
.slide-ctrl {
  position: absolute; right: 14px; bottom: 14px; z-index: 4;
  display: flex; align-items: center; gap: 2px; padding: 4px 6px 4px 14px;
  border-radius: 999px; background: rgba(255, 255, 255, .9);
  border: 1px solid var(--line-2); box-shadow: 0 6px 20px rgba(15, 42, 68, .12);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.slide-ctrl .pb-count { font-family: var(--mono); font-size: 12.5px; color: var(--text-2); margin-right: 6px; white-space: nowrap; }
.slide-ctrl .ctl-btn {
  width: 30px; height: 30px; padding: 0; border: 0; background: transparent; border-radius: 50%;
  color: var(--navy); font-family: var(--font); font-size: 16px; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.slide-ctrl .ctl-btn:hover:not(:disabled) { background: var(--bg-sink); }
.slide-ctrl .ctl-btn:disabled { opacity: .3; cursor: default; }
.slide-ctrl .ctl-btn:focus-visible { outline: 2px solid var(--navy-3); outline-offset: 1px; }

/* ---------- 流程 ---------- */
.steps { counter-reset: st; display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 46px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px dashed var(--line-2); }
.step:last-child { border-bottom: 0; }
.step-n { width: 34px; height: 34px; border-radius: 50%; background: var(--cyan-soft); color: var(--cyan); font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.step h4 { margin-bottom: 4px; font-size: 15.5px; }
.step p { font-size: 14px; margin: 0; }

/* ---------- 学院 ---------- */
.league-hero { background: var(--navy); color: #fff; padding: 66px 0; }
.league-hero h1 { color: #fff; }
.league-hero .lead { color: #b9cddd; font-size: 17px; max-width: 640px; }
.league-hero .eyebrow { color: #7fc4d8; }

/* ---------- 表格 ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.tbl th, .tbl td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.tbl th { background: var(--bg-soft); font-weight: 600; color: var(--navy); font-size: 13px; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td { color: var(--text-2); }
.tbl td strong { color: var(--navy); }
.tbl .yes { color: var(--ok); font-weight: 600; }
.tbl .no { color: var(--text-3); }

/* ---------- 聊天组件 ---------- */
.chat-fab {
  position: fixed; right: 26px; bottom: 26px; z-index: 80;
  display: flex; align-items: center; gap: 10px; padding: 12px 18px 12px 12px;
  background: var(--navy); color: #fff; border: 0; border-radius: 30px; cursor: pointer;
  box-shadow: var(--sh-3); font-family: var(--font); font-size: 14px; font-weight: 600;
}
.chat-fab:hover { background: var(--navy-2); }
.chat-fab .dot { width: 9px; height: 9px; border-radius: 50%; background: #4ade80; }
.chat-modal { position: fixed; inset: 0; background: rgba(18, 33, 47, .38); z-index: 90; display: flex; align-items: center; justify-content: center; padding: 24px; }
.chat-modal[hidden] { display: none; }
.chat-panel { width: 100%; max-width: 460px; background: #fff; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-3); display: flex; flex-direction: column; max-height: 82vh; }
.chat-head { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.chat-head h3 { font-size: 16px; margin: 0; }
.chat-head .ch-sub { font-size: 12.5px; color: var(--text-3); }
.chat-head .ch-x { margin-left: auto; border: 0; background: none; font-size: 22px; line-height: 1; color: var(--text-3); cursor: pointer; padding: 0 4px; }
.chat-body { flex: 1; overflow-y: auto; padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 84%; padding: 11px 15px; border-radius: 12px; font-size: 14px; line-height: 1.7; }
.msg.bot { background: var(--bg-soft); color: var(--text); border: 1px solid var(--line); align-self: flex-start; border-radius: 12px 12px 12px 3px; }
.msg.me { background: var(--navy); color: #fff; align-self: flex-end; border-radius: 12px 12px 3px 12px; }
.chat-quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 22px 14px; }
.chat-quick button { border: 1px solid var(--line-2); background: #fff; border-radius: 20px; padding: 7px 13px; font-size: 13px; color: var(--navy-2); cursor: pointer; font-family: var(--font); }
.chat-quick button:hover { border-color: var(--cyan); color: var(--cyan); }
.chat-form { display: flex; gap: 10px; padding: 14px 22px 18px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; height: 42px; border: 1px solid var(--line-2); border-radius: var(--r); padding: 0 14px; font-size: 14px; font-family: var(--font); color: var(--text); }
.chat-form input:focus { outline: none; border-color: var(--cyan); }
.chat-form button { height: 42px; padding: 0 20px; border: 0; border-radius: var(--r); background: var(--orange); color: #fff; font-weight: 600; font-size: 14px; cursor: pointer; font-family: var(--font); }
.chat-form button:disabled { opacity: .55; cursor: default; }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 44px 0 34px; margin-top: 0; }
.footer-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 30px; }
.footer h4 { font-size: 13px; color: var(--navy); margin-bottom: 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 7px; }
.footer a { font-size: 13.5px; color: var(--text-2); }
.footer a:hover { color: var(--navy); }
.footer .f-brand { font-size: 15px; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.footer .f-desc { font-size: 13px; color: var(--text-3); line-height: 1.7; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 20px; display: flex; gap: 18px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-3); }
.footer-bottom a { color: var(--text-3); }

/* ---------- 提示条 ---------- */
.notice { display: flex; gap: 12px; padding: 14px 18px; border-radius: var(--r); font-size: 13.5px; line-height: 1.7; }
.notice.info { background: var(--cyan-soft); color: #0b5b70; border: 1px solid #c9e6ef; }
.notice.warn { background: var(--orange-soft); color: #8a4212; border: 1px solid var(--orange-line); }

/* ---------- 汉堡按钮（移动端显示） ---------- */
.menu-btn {
  display: none; margin-left: auto; width: 40px; height: 40px; flex-shrink: 0;
  border: 1px solid var(--line-2); background: #fff; border-radius: 8px; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 0;
}
.menu-btn i { display: block; width: 16px; height: 2px; background: var(--navy); border-radius: 2px; }
.menu-btn:active { border-color: var(--navy-3); }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .hero-grid, .g4, .g3 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .funnel-row { grid-template-columns: 1fr; gap: 14px; }
  .funnel-cta { text-align: left; }
  .player-shell { grid-template-columns: 1fr; }
  .player-side { height: 260px; border-right: 0; border-bottom: 1px solid var(--line); }
  .footer-in { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 32px; }
  .hero h1 { font-size: 33px; }
  .nav { gap: 14px; font-size: 13.5px; }
  .topbar-in { gap: 16px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .g2 { grid-template-columns: 1fr; }
  .about-photo { max-width: 320px; }
  .section { padding: 44px 0; }

  /* 顶栏：汉堡菜单 */
  .topbar-in { padding: 0 16px; height: 56px; gap: 12px; }
  .menu-btn { display: flex; }
  .topbar-cta { display: none; }
  .nav {
    display: none; position: absolute; top: 56px; left: 0; right: 0; z-index: 60;
    background: #fff; flex-direction: column; gap: 0; margin-left: 0;
    padding: 6px 18px 14px; border-bottom: 1px solid var(--line); box-shadow: var(--sh-2);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 2px; font-size: 15px; border-bottom: 1px solid var(--bg-sink); }
  .nav a:last-child { border-bottom: 0; }

  /* Hero 与卡片 */
  .hero { padding: 40px 0 36px; }
  .hero h1 { font-size: 26px; line-height: 1.3; }
  .hero .lead { font-size: 15px; }
  h1 { font-size: 27px; }
  h2 { font-size: 22px; }
  .hero-side { padding: 20px; }
  .funnel-mini .fm-row { flex-wrap: wrap; gap: 8px; font-size: 13px; padding: 10px; }
  .funnel-mini .fm-price { min-width: 54px; font-size: 13px; }
  .card { padding: 18px; }

  /* 漏斗与表格 */
  .funnel-row { padding: 18px; }
  .funnel-price { font-size: 22px; }
  .funnel-body ul { columns: 1; }
  .tbl { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }

  /* 模块列表 */
  .lesson-row { padding: 11px 16px; gap: 10px; }
  .lesson-tag { display: none; }
  .lesson-go { opacity: 1; }
  .module-head { padding: 16px; flex-wrap: wrap; }
  .module-head .m-desc { margin-left: 0; width: 100%; }

  /* 播放器 */
  .slide-stage { padding: 16px; }
  .slide-canvas { padding: 20px 18px; }
  .slide-title { font-size: 19px; }
  .slide-body { font-size: 14px; }
  .player-bar { padding: 12px 14px; }

  /* 右下角控件在手机上收紧 */
  .slide-ctrl { right: 8px; bottom: 8px; padding: 3px 4px 3px 10px; }
  .slide-ctrl .pb-count { font-size: 11.5px; margin-right: 4px; }
  .slide-ctrl .ctl-btn { width: 27px; height: 27px; font-size: 15px; }

  /* 弹层与悬浮球 */
  .chat-fab { right: 14px; bottom: 14px; padding: 10px 14px 10px 10px; font-size: 13px; }
  .chat-modal { padding: 12px; }
  .chat-panel { max-height: 92vh; }

  /* 页脚 */
  .footer { padding: 36px 0 28px; }
  .footer-in { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- 全屏课件 ---------- */
.player-shell:fullscreen {
  grid-template-columns: 240px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);   /* 行高严格锁死视口，否则目录的完整高度会把整页顶出屏幕 */
  min-height: 0; height: 100vh; overflow: hidden;
  border: 0; border-radius: 0; box-shadow: none;
}
.player-shell:fullscreen .player-side { max-height: none; min-height: 0; height: auto; overflow: hidden; }
.player-shell:fullscreen .player-main { min-height: 0; overflow: hidden; }
.player-shell:fullscreen .player-bar { padding: 12px 18px; }
.player-shell:fullscreen .slide-stage {
  min-height: 0; padding: 14px 18px 10px; background: var(--bg-soft);
}
.player-shell:fullscreen .slide-frame { flex: 1 1 auto; min-height: 0; display: flex; }
.player-shell:fullscreen .slide-canvas {
  flex: 1 1 auto; min-height: 0; aspect-ratio: auto;
  border-radius: 10px; box-shadow: none;
}
.player-shell:fullscreen .slide-progress { margin-top: 12px; }
.player-shell:fullscreen .slide-ctrl { right: 18px; bottom: 18px; }

/* 全屏时可收起目录，课件铺满整屏（必须写在 :fullscreen 规则之后） */
.player-shell.no-side { grid-template-columns: minmax(0, 1fr); }
.player-shell.no-side .player-side { display: none; }
#pbDock { display: none; }
.player-shell:fullscreen #pbDock { display: inline-block; }

/* 全屏宽屏下工具条锁一行，标题过长省略号（窄屏/手机仍可换行） */
@media (min-width: 641px) {
  .player-shell:fullscreen .player-bar { flex-wrap: nowrap; gap: 10px; padding: 10px 16px; }
  .player-shell:fullscreen .player-bar .pb-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .player-shell:fullscreen .player-bar button { height: 30px; padding: 0 11px; font-size: 13px; white-space: nowrap; }
}

/* ---------- 内容解锁（案例正文 / 课件） ---------- */
.unlock-panel { display: flex; flex-direction: column; gap: 10px; padding: 20px; margin-top: 14px;
  border: 1px dashed var(--line-2); border-radius: var(--r); background: var(--bg-soft); }
.unlock-panel .up-head { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--navy); }
.unlock-panel .up-lock { width: 22px; height: 22px; border-radius: 6px; background: var(--navy); color: #fff;
  font-size: 12px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.unlock-panel .up-desc { font-size: 13px; color: var(--text-2); line-height: 1.75; }
.unlock-panel .up-desc b { color: var(--navy); }
.unlock-row { display: flex; gap: 8px; flex-wrap: wrap; }
.unlock-row input { flex: 1; min-width: 160px; height: 40px; padding: 0 13px; font-size: 14.5px; letter-spacing: .08em;
  border: 1px solid var(--line-2); border-radius: var(--r-sm); background: #fff; color: var(--text); font-family: var(--font); }
.unlock-row input:focus { outline: 0; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(14,116,144,.10); }
.unlock-row button { height: 40px; padding: 0 20px; border: 0; border-radius: var(--r-sm); background: var(--navy);
  color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; font-family: var(--font); white-space: nowrap; }
.unlock-row button:hover:not(:disabled) { background: var(--navy-2); }
.unlock-row button:disabled { opacity: .55; cursor: default; }
.unlock-msg { font-size: 12.5px; color: #c0392b; min-height: 16px; }
.unlock-msg.ok { color: var(--ok); }
.unlock-tip { font-size: 12px; color: var(--text-3); }

/* 锁状态提示条 */
.lock-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px;
  padding: 10px 14px; border-radius: var(--r); font-size: 13px; line-height: 1.6;
  background: var(--orange-soft); border: 1px solid var(--orange-line); color: var(--warn); }
.lock-bar.on { background: #edf7f2; border-color: #cfe8dc; color: var(--ok); }
.lock-bar .lb-btn { margin-left: auto; border: 1px solid currentColor; background: none; color: inherit;
  font-size: 12.5px; padding: 3px 12px; border-radius: 999px; cursor: pointer; font-family: var(--font); opacity: .8; }
.lock-bar .lb-btn:hover { opacity: 1; }
.case-go .need { font-weight: 400; color: var(--text-3); }

/* 课件锁定态 */
.slide-canvas.is-locked { padding: 0; border-style: dashed; background: var(--bg-soft);
  align-items: center; justify-content: center; }
.slide-lock { width: 100%; max-width: 460px; padding: 26px; display: flex; flex-direction: column; gap: 11px; }
.slide-lock .up-head { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--navy); }
.slide-lock .up-lock { width: 22px; height: 22px; border-radius: 6px; background: var(--navy); color: #fff;
  font-size: 12px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.slide-lock .up-desc { font-size: 13.5px; color: var(--text-2); line-height: 1.8; margin: 0; }
.slide-lock .up-desc b { color: var(--navy); }
.slide-lock .unlock-tip { font-size: 12.5px; color: var(--text-3); }
