* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --primary: #2F6BFF;
  --primary-dark: #1E55E8;
  --brand: #2F6BFF;
  --brand-dark: #1E55E8;
  --ink: #1D2129;
  --ink-1: #1D2129;
  --ink-2: #4E5969;
  --ink-3: #86909C;
  --bg: #F4F5F7;
  --card: #ffffff;
  --line: #ECEEF1;
  --danger: #F53F3F;
  --live: #FF4D5E;
  --success: #00B42A;
  --warning: #FF7D00;
  --purple: #8557A0;
  --radius: 0px;
  --shadow: 0 1px 3px rgba(16, 24, 40, .04);
}
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei','Segoe UI',Roboto,sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- 头部 ---------- */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner { display: flex; align-items: center; height: 60px; }
.brand { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; color: var(--ink); }
.brand-logo { color: var(--primary); }

/* ---------- 全局导航（PC 顶部 + 手机底部 Tab） ---------- */
.nav-top {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-top-inner { display: flex; align-items: center; height: 60px; }
.nav-brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); flex: none; }
.nav-brand-mark {
  width: 28px; height: 28px; background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.nav-brand-name { font-size: 18px; font-weight: 800; letter-spacing: .2px; }
.nav-menu { display: flex; align-items: center; margin-left: 42px; height: 60px; }
.nav-link {
  position: relative; display: flex; align-items: center; gap: 7px;
  height: 60px; padding: 0 18px;
  color: var(--ink-2); font-size: 15px; font-weight: 500; text-decoration: none;
  transition: color .15s;
}
.nav-ico { display: none; }
.nav-link:hover { color: var(--brand); }
.nav-link.on { color: var(--brand); font-weight: 600; }
.nav-link.on::after {
  content: ''; position: absolute; left: 18px; right: 18px; bottom: 0;
  height: 2px; background: var(--brand);
}
.nav-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 1px 7px; background: var(--live); color: #fff;
  font-size: 11px; font-weight: 700; margin-left: 3px;
}
.nav-badge i { width: 6px; height: 6px; border-radius: 50%; background: #fff; }

/* 手机底部 Tab（PC 隐藏） */
.nav-tabbar { display: none; }
.tab-ico-wrap { position: relative; display: flex; }

/* ---------- 页面标题 ---------- */
.page-head { display: flex; align-items: baseline; gap: 12px; margin: 32px 0 20px; }
.page-title { font-size: 26px; font-weight: 700; }
.page-sub { color: var(--ink-3); font-size: 14px; }

/* ---------- 专栏网格 ---------- */
.col-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
  padding-bottom: 40px;
}
.col-grid-4 { grid-template-columns: repeat(4, 1fr); }
.col-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .15s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}
.col-card:hover { border-color: var(--brand); }
.col-cover-wrap { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #e8ebf2; }
.col-cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.col-cover-ph {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}
.col-body { padding: 13px 15px 15px; display: flex; flex-direction: column; gap: 6px; }
.col-title { font-size: 15px; font-weight: 700; margin: 0; line-height: 1.4; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.col-desc {
  color: var(--ink-2);
  font-size: 12.5px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}
.col-meta { color: var(--ink-3); font-size: 12.5px; }

/* ---------- 首页区块标题 ---------- */
.home-sec { padding-bottom: 8px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; margin: 34px 0 16px; }
.sec-head-l { display: flex; align-items: center; gap: 10px; }
.sec-bar { width: 4px; height: 20px; background: var(--brand); }
.sec-title { font-size: 19px; font-weight: 800; margin: 0; color: var(--ink); }
.sec-count { color: var(--ink-3); font-size: 13px; }
.sec-live { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px;
  background: #FFE8EB; color: var(--live); font-size: 12px; font-weight: 700; }
.sec-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--live); }

/* ---------- 品牌 Banner ---------- */
.hero {
  position: relative; overflow: hidden; margin-top: 24px;
  height: 300px;
  background: linear-gradient(120deg, #0B1A45 0%, #1E46C9 55%, #5B3FA0 100%);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}
.hero-glow {
  position: absolute; right: -120px; top: -120px;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(150,120,220,0.5), transparent 65%);
}
.hero-inner { position: relative; padding: 48px; }
.hero-tag {
  display: inline-block; padding: 5px 14px;
  background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.25);
  color: #E8F0FF; font-size: 12px; letter-spacing: 2px;
}
.hero-title { font-size: 34px; font-weight: 800; color: #fff; margin: 18px 0 0; line-height: 1.3; }
.hero-sub { display: block; font-size: 20px; font-weight: 500; color: #CFE0FF; margin-top: 6px; }
.hero-cta { display: flex; gap: 14px; margin-top: 24px; }
.hero-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; font-size: 14px; text-decoration: none;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.3); color: #fff;
}
.hero-btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }
.hero-arrow { font-size: 14px; }

/* ---------- 正在直播卡片 ---------- */
.live-now-list { display: flex; flex-direction: column; gap: 14px; }
.live-now-card {
  display: flex; background: #fff; border: 1px solid var(--line);
  text-decoration: none; transition: border-color .15s;
}
.live-now-card:hover { border-color: var(--brand); }
.live-now-cover { position: relative; width: 280px; flex: none; aspect-ratio: 16/9; background: #2a2350; overflow: hidden; }
.live-now-cover img { width: 100%; height: 100%; object-fit: cover; }
.live-now-ph { position: absolute; inset: 0; }
.live-now-badge {
  position: absolute; top: 12px; left: 12px;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; background: var(--live); color: #fff;
  font-size: 11px; font-weight: 700;
}
.live-now-badge i { width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.live-now-type { position: absolute; top: 12px; right: 12px; padding: 3px 9px;
  background: rgba(0,0,0,.5); color: #fff; font-size: 11px; }
.live-now-body { flex: 1; padding: 20px 24px; display: flex; flex-direction: column; gap: 10px; }
.live-now-title { font-size: 18px; font-weight: 700; margin: 0; color: var(--ink); }
.live-now-meta { color: var(--ink-3); font-size: 13px; line-height: 1.7; margin: 0; }
.live-now-hint { display: block; color: var(--ink-3); }
.live-now-enter { margin-top: auto; align-self: flex-start;
  padding: 9px 24px; background: var(--brand); color: #fff; font-size: 13px; font-weight: 700; }
.badge-lock {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(20, 24, 40, .72);
  color: #fff;
  font-size: 12px;
  padding: 4px 9px;
  border-radius: 0;
  backdrop-filter: blur(2px);
}
/* 直播卡片状态角标：预告 / 回放（直角） */
.live-tag-scheduled,
.live-tag-replay {
  position: absolute; top: 0; left: 0;
  padding: 4px 12px;
  font-size: 12px; font-weight: 700; color: #fff;
}
.live-tag-scheduled { background: #F59E0B; }
.live-tag-replay { background: var(--brand); }

/* ---------- 空状态 ---------- */
.empty-state {
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 60px 20px;
  text-align: center;
  color: var(--ink-3);
  margin-bottom: 40px;
}

/* ---------- 密码门 ---------- */
.gate-card {
  max-width: 420px;
  margin: 48px auto 60px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: center;
}
.gate-cover { display: block; width: 100%; height: auto; }
.gate-cover-ph { height: 130px; background-size: cover; background-position: center; }
.gate-title { font-size: 22px; font-weight: 700; margin: 22px 24px 6px; }
.gate-hint { color: var(--ink-2); font-size: 14px; margin: 6px 24px 14px; }
.gate-form { padding: 0 24px 28px; display: flex; flex-direction: column; gap: 12px; }
.gate-form input {
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0 14px;
  font-size: 15px;
  outline: none;
  transition: border-color .15s;
}
.gate-form input:focus { border-color: var(--primary); }
.btn-primary {
  height: 46px;
  border: none;
  border-radius: 0;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.btn-primary:hover { background: var(--primary-dark); }
/* 专栏密码门：上下排列、输入框与按钮等宽（覆盖后面的行内 gate-form 规则） */
.gate-form.gate-form-stack { flex-direction: column; align-items: stretch; gap: 14px; margin-top: 0; }
.gate-form.gate-form-stack input { flex: none; width: 100%; height: 52px; box-sizing: border-box; }
.gate-form.gate-form-stack .btn-primary { width: 100%; height: 52px; box-sizing: border-box; }
.form-error { color: var(--danger); font-size: 14px; margin: 0 24px 10px; }

/* ---------- 专栏详情 ---------- */
.back-link { display: inline-block; margin: 22px 0 18px; color: var(--ink-2); font-size: 14px; }
.back-link:hover { color: var(--primary); }
/* ---------- 面包屑 ---------- */
.breadcrumb { display: flex; align-items: center; gap: 8px; padding: 16px 0 0; font-size: 13px; color: var(--ink-3); flex-wrap: wrap; }
.breadcrumb a { color: var(--ink-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); }
.bc-sep { color: var(--line); }
.bc-strong { color: var(--ink); font-weight: 600; }

/* ---------- 专栏头部 Banner ---------- */
.col-banner {
  display: flex; gap: 24px; align-items: center;
  background: #fff; border: 1px solid var(--line);
  padding: 22px 24px; margin-top: 18px;
}
.col-banner-cover { width: 200px; flex: none; aspect-ratio: 16/9; overflow: hidden; background: #e8ebf2; }
.col-banner-cover img { width: 100%; height: 100%; object-fit: cover; }
.col-banner-ph { width: 100%; height: 100%; }
.col-banner-info { flex: 1; min-width: 0; }
.col-banner-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.col-banner-title { font-size: 20px; font-weight: 800; margin: 0; color: var(--ink); }
.tag-lock { display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 9px; background: #E8F0FF; color: var(--brand); font-size: 11px; font-weight: 700; }
.col-banner-desc { color: var(--ink-3); font-size: 13px; line-height: 1.7; margin: 10px 0 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.col-banner-progress { flex: none; width: 170px; display: flex; flex-direction: column; gap: 9px; }
.cb-progress-text { font-size: 13px; color: var(--ink-2); text-align: right; }
.cb-progress-text b { color: var(--brand); font-size: 18px; }
.cb-progress-bar { width: 100%; height: 8px; background: #F2F3F5; }
.cb-progress-bar i { display: block; height: 100%; background: var(--brand); }

/* ---------- 视频列表 ---------- */
.video-list { display: flex; flex-direction: column; gap: 12px; padding: 20px 0 40px; }
.video-row {
  display: flex;
  gap: 18px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 14px 16px;
  transition: border-color .12s ease;
  text-decoration: none;
}
.video-row:hover { border-color: var(--brand); }
.thumb-wrap { position: relative; flex: none; }
.thumb { width: 240px; height: 135px; object-fit: cover; border-radius: 0; background: #e8ebf2; }
.thumb-placeholder { background: linear-gradient(135deg, #e3e8f5, #e8ebf2); }
.play-badge {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 42px;
  height: 42px;
  border-radius: 0;
  background: rgba(20, 24, 40, .55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.thumb-duration { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.65);
  color: #fff; font-size: 11px; padding: 1px 7px; }
.v-info { flex: 1; min-width: 0; }
.v-title { font-size: 16px; font-weight: 700; margin: 0 0 6px; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-desc { color: var(--ink-3); font-size: 12.5px; line-height: 1.6; margin: 0 0 8px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.v-tag { padding: 2px 9px; background: #F2F3F5; color: var(--ink-2); font-size: 11px; }

/* 右侧学习状态 */
.v-state { flex: none; width: 160px; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.vs-bar { width: 100%; height: 7px; background: #F2F3F5; }
.vs-bar i { display: block; height: 100%; background: var(--brand); }
.vs-bar i.is-done { background: var(--success); }
.vs-text { font-size: 11px; color: var(--ink-3); }
.vs-text.is-doing { color: var(--brand); font-weight: 600; }
.vs-text.is-done { color: var(--success); font-weight: 600; }
.vs-btn { padding: 8px 20px; background: var(--brand); color: #fff; font-size: 13px; font-weight: 700; }
.vs-btn.is-outline { background: #fff; border: 1px solid var(--brand); color: var(--brand); }

/* ---------- 播放页 ---------- */
.player-wrap {
  position: relative;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 占位，兼容不支持 aspect-ratio 的内核 */
  background: #000;
  border-radius: 0;
  margin: 22px 0 20px;
  box-shadow: var(--shadow);
}
.player-wrap video {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  display: block; background: #000;
}
.player-empty {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: #cfd3dc; font-size: 14px;
}
.center { text-align: center; }

/* ---------- 页脚 ---------- */
.site-footer { margin-top: auto; padding: 26px 0; text-align: center; color: var(--ink-3); font-size: 13px; }

@media (max-width: 720px) {
  .thumb { width: 160px; height: 90px; }

  /* 专栏头部：纵向堆叠 */
  .col-banner { flex-direction: column; align-items: stretch; gap: 14px; padding: 16px; }
  .col-banner-cover { width: 100%; }
  .col-banner-title { font-size: 17px; }
  .col-banner-progress { width: 100%; }
  .cb-progress-text { text-align: left; }

  /* 视频行：缩略图 + 右侧信息，状态按钮独占一行右对齐 */
  .video-row { flex-wrap: wrap; gap: 10px; padding: 12px; }
  .thumb-wrap .thumb { width: 120px; height: 68px; }
  .v-info { flex: 1 1 calc(100% - 140px); min-width: 0; }
  .v-title { font-size: 14px; white-space: normal;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .v-desc { display: none; }
  .v-state { flex: 1 1 100%; width: 100%; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 10px; }
  .vs-bar { flex: 1 1 100%; width: 100%; order: -1; }
  .vs-text { font-size: 12px; }
  .vs-btn { padding: 7px 20px; margin-left: auto; }

  /* 顶部导航：手机端只保留品牌，菜单收到底部 Tab */
  .nav-top-inner { height: 52px; }
  .nav-brand-name { font-size: 16px; }
  .nav-menu { display: none; }

  /* 手机底部 Tab */
  .nav-tabbar {
    display: flex;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
    background: #fff; border-top: 1px solid var(--line);
    height: 58px; padding-bottom: env(safe-area-inset-bottom);
  }
  .tab-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; flex: 1; color: var(--ink-3); text-decoration: none; font-size: 11px;
  }
  .tab-item svg { width: 22px; height: 22px; }
  .tab-item.on { color: var(--brand); }
  .tab-badge {
    position: absolute; top: -5px; right: -9px;
    background: var(--live); color: #fff; font-size: 9px; font-weight: 700;
    min-width: 14px; height: 14px; line-height: 14px; text-align: center; padding: 0 3px;
  }
  /* 主内容底部避开 Tab，防止末项被遮挡 */
  body { padding-bottom: 66px; }
  .site-footer { padding-bottom: 20px; }

  /* 视频页：卡片紧凑、操作栏 3 等宽、评论紧凑 */
  .v-card { padding: 16px; }
  .v-title-lg { font-size: 17px; }
  .v-desc-lg { font-size: 12.5px; }
  .action-bar { gap: 10px; }
  .ab-btn { flex: 1; justify-content: center; padding: 9px 8px; }
  .ab-num { display: none; }
  .prev-next { grid-template-columns: 1fr; gap: 10px; }
  .cs-box { gap: 8px; flex-wrap: wrap; }
  .cs-my-avatar { display: none; }
  .cs-box input { flex: 1 1 100%; order: 1; }
  .cs-send { margin-left: auto; order: 2; height: 38px; padding: 0 22px; }
  .cp-avatar { width: 34px; height: 34px; }
  .cp-body p { font-size: 14px; }

  /* 图片库：头部紧凑、双列小间距 */
  .pl-head { padding: 16px; margin-top: 14px; }
  .pl-title { font-size: 17px; }
  .pl-gallery { gap: 10px; padding: 14px 0 30px; }
  .pl-col { gap: 10px; }
  .pl-gallery > .pl-item { flex-basis: calc(50% - 5px); }

  /* 首页 Banner */
  .hero { height: auto; margin-top: 14px; }
  .hero-inner { padding: 26px 22px; }
  .hero-tag { font-size: 11px; padding: 4px 11px; }
  .hero-title { font-size: 24px; margin-top: 14px; }
  .hero-sub { font-size: 14px; margin-top: 8px; }
  .hero-cta { margin-top: 18px; flex-wrap: wrap; }
  .hero-btn { padding: 10px 18px; font-size: 13px; }

  /* 区块标题 */
  .sec-head { margin: 26px 0 12px; }
  .sec-title { font-size: 16px; }
  .sec-bar { height: 16px; }

  /* 正在直播卡片：纵向堆叠 */
  .live-now-card { flex-direction: column; }
  .live-now-cover { width: 100%; }
  .live-now-body { padding: 14px 16px 16px; }
  .live-now-title { font-size: 16px; }
  .live-now-enter { margin-top: 6px; }

  /* 专栏 2 列 */
  .col-grid-4 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .col-body { padding: 10px 11px 12px; gap: 4px; }
  .col-title { font-size: 13px; }
  .col-meta { font-size: 11px; }
}

/* ---------- 播放页 ---------- */
.player-stage { position: relative; }
/* ---------- 标题下方横向操作条 ---------- */
/* 白色内容卡片（标题/操作栏、评论区） */
.v-card { background: #fff; border: 1px solid var(--line); padding: 18px 22px; margin-top: 16px; }
.v-title-lg { font-size: 19px; font-weight: 800; margin: 0 0 6px; color: var(--ink); }
.v-desc-lg { color: var(--ink-3); font-size: 13.5px; line-height: 1.7; margin: 0 0 14px; }

.action-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.ab-btn {
  background: #fff; border: 1px solid var(--line); padding: 9px 20px; cursor: pointer;
  display: flex; flex-direction: row; align-items: center; gap: 6px;
  color: var(--ink-2); font-size: 13.5px;
  transition: border-color .15s, color .15s;
}
.ab-btn:hover { border-color: var(--brand); color: var(--brand); }
.ab-num { font-size: 12.5px; color: var(--ink-3); line-height: 1; white-space: nowrap; }
.ab-label { font-size: 13.5px; color: inherit; line-height: 1; white-space: nowrap; }
.ab-btn.active { color: var(--brand); border-color: var(--brand); font-weight: 700; }
.ab-btn.active .ab-num { color: var(--brand); }

/* ---------- 分享引导遮罩 ---------- */
.guide-mask {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.82);
}
.guide-mask[hidden] { display: none; }
.guide-top {
  position: absolute; top: 10px; right: 14px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  animation: guidePulse 1.4s ease-in-out infinite;
}
.guide-dots {
  color: #fff; font-size: 40px; font-weight: 700; line-height: 1; letter-spacing: 2px;
}
@keyframes guidePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.12); opacity: .75; }
}
.guide-text {
  position: absolute; top: 26%; left: 0; right: 0;
  text-align: center; color: #fff;
  font-size: 19px; line-height: 1.7; font-weight: 500;
}
.guide-ok {
  position: absolute; bottom: calc(40px + env(safe-area-inset-bottom));
  left: 50%; transform: translateX(-50%);
  border: none; border-radius: 0; background: #fff; color: #111;
  font-size: 16px; font-weight: 600; padding: 12px 46px; cursor: pointer;
}
.mini-toast {
  position: fixed; left: 50%; bottom: 18%; transform: translateX(-50%);
  z-index: 210; max-width: 80%;
  background: rgba(0,0,0,.78); color: #fff;
  font-size: 14px; line-height: 1.5; text-align: center;
  padding: 10px 18px; border-radius: 0;
}
.mini-toast[hidden] { display: none; }

/* ---------- 评论侧滑面板 ---------- */
.side-panel {
  position: fixed; top: 0; right: 0; height: 100%;
  width: 380px; max-width: 92vw; z-index: 80;
  background: #fff; box-shadow: -6px 0 24px rgba(0,0,0,.18);
  display: flex; flex-direction: column;
}
.sp-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.sp-head h3 { font-size: 16px; font-weight: 700; }
.cp-count { color: var(--ink-3); font-size: 13px; font-weight: 400; }
.sp-body { flex: 1; overflow-y: auto; padding: 14px 16px; }
.sp-foot { display: flex; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--line); }
.sp-foot input { flex: 1; min-width: 0; padding: 9px 12px; border: 1px solid var(--line); border-radius: 0; font-size: 14px; }
.sp-foot input:focus { outline: none; border-color: var(--brand); }
/* ---------- 页面下方评论区 ---------- */
[hidden] { display: none !important; }
.comments-section { margin-top: 16px; }
.cs-head { font-size: 16px; font-weight: 800; margin-bottom: 16px; }
.cs-box { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.cs-my-avatar { width: 40px; height: 40px; flex: none; }
.cs-box input {
  flex: 1; min-width: 0; box-sizing: border-box;
  padding: 0 14px; height: 42px; border: 1px solid #C9CDD4;
  font-size: 14px; background: #fff;
}
.cs-box input:focus { outline: none; border-color: var(--brand); }
.cs-send {
  border: none; cursor: pointer; background: var(--brand); color: #fff;
  font-size: 14px; font-weight: 700; padding: 0 28px; height: 42px; flex: none;
}
.cs-send:disabled { opacity: .6; }
.cp-item { display: flex; gap: 12px; margin-bottom: 16px; }
.cp-avatar { width: 40px; height: 40px; border-radius: 0; object-fit: cover; flex: none; background: #e8ebf2; }
.cp-body { min-width: 0; flex: 1; }
.cp-body strong { font-size: 13.5px; color: var(--ink); font-weight: 700; display: flex; align-items: center; gap: 8px; }
.cp-body p { font-size: 14.5px; color: var(--ink); margin: 5px 0 0; line-height: 1.6; word-break: break-word; }
.cp-time { font-size: 11.5px; color: var(--ink-3); font-weight: 400; }

/* ---------- 转发弹层 ---------- */
.share-pop {
  position: fixed; right: 16px; bottom: 16px; z-index: 80;
  width: 330px; max-width: 92vw;
  background: #fff; border-radius: 0; padding: 14px;
  box-shadow: 0 8px 30px rgba(20,22,29,.22);
}
.share-tip { font-size: 13px; color: var(--ink-1); margin-bottom: 10px; }
.share-pop .share-url-row { display: flex; gap: 8px; }
.share-pop .share-url-row input { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 0; font-size: 12.5px; }

/* ---------- 上一条/下一条 ---------- */
.prev-next {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0 8px;
}
.pn-btn {
  display: block;
  padding: 13px 18px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-1);
  font-size: 13px;
  text-decoration: none;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
a.pn-btn:hover { border-color: var(--brand); color: var(--brand); }
.pn-btn.disabled { color: var(--ink-3); cursor: default; }

/* ---------- 已学进度 ---------- */
.learn-line { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.learn-bar {
  flex: 1; max-width: 260px; height: 6px; border-radius: 0;
  background: #e8ebf2; overflow: hidden;
}
.learn-bar i { display: block; height: 100%; background: var(--brand); }
.learn-text { color: var(--ink-3); font-size: 12.5px; white-space: nowrap; }

/* ---------- 分享下载页 ---------- */
.dl-card { max-width: 720px; margin: 26px auto; background: #fff; border: 1px solid #ececf1; border-radius: 0; padding: 26px 28px; }
.dl-title { font-size: 20px; margin: 0 0 16px; }
.dl-expired { text-align: center; padding: 30px 0 24px; }
.dl-expired-main { font-size: 18px; font-weight: 600; color: #1a1d29; margin: 0 0 10px; }
.dl-code-box { padding: 10px 0 4px; }
.dl-form { display: flex; gap: 10px; margin-top: 12px; }
.dl-input { flex: 1; height: 42px; border: 1px solid #d9dce3; border-radius: 0; padding: 0 14px; font-size: 16px; letter-spacing: 2px; }
.dl-input:focus { outline: none; border-color: #2F6BFF; }
.dl-err { color: #e03131; font-size: 14px; margin-top: 10px; }
.dl-list { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.dl-item { display: flex; align-items: center; gap: 12px; border: 1px solid #ececf1; border-radius: 0; padding: 12px 14px; color: #1a1d29; }
.dl-item:active { background: #f7f8fa; }
.dl-item-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.dl-item-size { color: #8b94a8; font-size: 13px; white-space: nowrap; }
.dl-item-btn { background: #2F6BFF; color: #fff; border-radius: 0; padding: 7px 16px; font-size: 14px; white-space: nowrap; }

/* 网盘分享浏览 */
.drive-crumb { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0 14px; font-size: 14px; }
.drive-crumb a { color: #2F6BFF; }
.drive-crumb .sep { color: #c5cad6; }
.drive-crumb .cur { color: #1a1d29; }
.drive-ico { flex: none; width: 22px; text-align: center; font-size: 17px; }
.drive-ico-folder { color: #f0a92b; }
.drive-ico-file { color: #8b94a8; }
.drive-empty { color: #8b94a8; text-align: center; padding: 26px 0; font-size: 14px; }

/* ================= 网盘文件在线预览弹窗 ================= */
.pv-mask { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: center;
  justify-content: center; background: rgba(15,18,28,.55); padding: 16px; }
.pv-modal { display: flex; flex-direction: column; width: 100%; max-height: 92vh;
  background: #fff; border-radius: 0; overflow: hidden; box-shadow: 0 18px 50px rgba(15,20,40,.3); }
.pv-lg { max-width: min(920px,96vw); }
.pv-xl { max-width: min(1120px,97vw); }
.pv-head { display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid #ececf1; }
.pv-head h3 { margin: 0; font-size: 16px; }
.pv-close { border: none; background: none; font-size: 24px; line-height: 1;
  color: #8b94a8; cursor: pointer; padding: 0 4px; }
.pv-body { padding: 18px; overflow: auto; }
.pv-docstage { min-height: 160px; }
.pv-foot { display: flex; justify-content: flex-end; gap: 10px;
  padding: 12px 18px; border-top: 1px solid #ececf1; }
.pv-btn { display: inline-block; border: 1px solid #d9dce3; background: #fff; color: #374151;
  border-radius: 0; padding: 8px 18px; font-size: 14px; cursor: pointer; text-decoration: none; }
.pv-btn-primary { background: #2F6BFF; border-color: #2F6BFF; color: #fff; }

.pv-loading { display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 60px 10px; color: #8b94a8; font-size: 14px; }
.pv-spin { width: 18px; height: 18px; border: 2px solid #dfe3ec; border-top-color: #2F6BFF;
  border-radius: 50%; animation: pv-spin .8s linear infinite; }
@keyframes pv-spin { to { transform: rotate(360deg); } }
.pv-note { padding: 38px 14px; margin: 0; text-align: center; color: #8b94a8;
  font-size: 14px; line-height: 1.8; }

/* ---------- 全屏整页预览（微信/腾讯文档式：顶部返回+文件名，内容整页滚动） ---------- */
.pv-back { flex: none; display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; margin-left: -6px;
  border: none; background: none; color: #1a1d29; cursor: pointer; }
.pv-mask.is-fs { padding: 0; background: #fff; }
.pv-modal.is-fs { max-width: none; width: 100%; height: 100%; height: 100dvh;
  max-height: none; border-radius: 0; }
.pv-modal.is-fs .pv-head { padding: 10px 12px; gap: 6px;
  position: relative; z-index: 3; background: #fff; }
.pv-modal.is-fs .pv-head h3 { flex: 1; min-width: 0; margin: 0; text-align: center;
  font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-modal.is-fs .pv-close { display: none; }
.pv-modal.is-fs .pv-body { flex: 1; min-height: 0; padding: 0; overflow: hidden;
  display: flex; flex-direction: column; background: #fff; }
.pv-modal.is-fs .pv-foot { flex: none; padding: 10px 14px calc(12px + env(safe-area-inset-bottom));
  position: relative; z-index: 3; background: #fff; }
.pv-btn-block { display: block; width: 100%; text-align: center;
  padding: 13px; font-size: 16px; border-radius: 0; }
.pv-modal.is-fs .pv-docstage { flex: 1; min-height: 0; overflow: auto; }
.pv-modal.is-fs .pv-docx-html { max-height: none; border: none; border-radius: 0; padding: 18px 16px 44px; }
.pv-modal.is-fs .pv-text-pre { max-height: none; border: none; border-radius: 0; }
.pv-modal.is-fs .pv-sheet-scroll { max-height: none; }
.pv-modal.is-fs .pv-ppt-wrap { max-height: none; }
.pv-modal.is-fs .pv-note { padding-top: 90px; }
.pv-modal.is-fs .pv-loading { padding-top: 120px; }

/* PDF（pdf.js 渲染为 canvas，整页滚动；灰底衬白纸页，全端一致） */
.pv-pdf-pages { background: #eef1f6; padding: 12px; min-height: 100%; box-sizing: border-box; }
.pv-pdf-page { background: #fff; margin: 0 auto 12px; max-width: 900px; overflow: hidden;
  border-radius: 0; box-shadow: 0 1px 6px rgba(20,30,60,.18); }
.pv-pdf-page:last-child { margin-bottom: 0; }
.pv-pdf-page canvas { display: block; width: 100%; height: auto; }

.pv-text-bar { font-size: 12.5px; color: #8b94a8; padding: 2px 2px 8px; }
.pv-text-pre { margin: 0; padding: 14px 16px; max-height: 62vh; overflow: auto;
  background: #f7f9fc; border: 1px solid #e6e8ee; border-radius: 0;
  font-family: Consolas,'Courier New',monospace; font-size: 12.5px; line-height: 1.65;
  white-space: pre-wrap; word-break: break-word; color: #2d3748; tab-size: 4; }

.pv-docx-html { padding: 24px 28px; max-height: 64vh; overflow: auto; background: #fff;
  border: 1px solid #e6e8ee; border-radius: 0; font-size: 14px; line-height: 1.75; color: #2d3748; }
.pv-docx-html h1 { font-size: 22px; margin: 14px 0 10px; }
.pv-docx-html h2 { font-size: 18px; margin: 14px 0 8px; }
.pv-docx-html h3 { font-size: 16px; margin: 12px 0 8px; }
.pv-docx-html p { margin: 8px 0; }
.pv-docx-html ul, .pv-docx-html ol { padding-left: 26px; margin: 8px 0; }
.pv-docx-html table { border-collapse: collapse; margin: 10px 0; width: 100%; }
.pv-docx-html th, .pv-docx-html td { border: 1px solid #dfe3ec; padding: 6px 10px; font-size: 13px; }
.pv-docx-html th { background: #f3f6fb; }
.pv-docx-html img { max-width: 100%; }
.pv-docx-html blockquote { margin: 8px 0; padding: 4px 14px; border-left: 3px solid #dfe3ec; color: #64708a; }

.pv-sheet-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid #ececf1; margin-bottom: 10px; }
.pv-sheet-tab { padding: 7px 14px; font-size: 13px; background: #f3f5f9; border: 1px solid #e6e8ee;
  border-bottom: none; border-radius: 0; cursor: pointer; color: #4a5568; }
.pv-sheet-tab.on { background: #fff; color: #2F6BFF; font-weight: 600; }
.pv-sheet-scroll { max-height: 58vh; overflow: auto; }
.pv-sheet-table { border-collapse: collapse; font-size: 12.5px; }
.pv-sheet-table td { border: 1px solid #e1e5ee; padding: 4px 9px; white-space: nowrap;
  color: #2d3748; min-width: 48px; }
.pv-trunc { font-size: 12.5px; color: #8b94a8; padding: 6px 4px; margin: 0; }

.pv-ppt-wrap { display: flex; flex-direction: column; gap: 22px; max-height: 66vh;
  overflow: auto; padding: 6px 4px; }
.pv-ppt-pagewrap { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.pv-ppt-page { position: relative; width: 100%; background: #fff; border: 1px solid #e6e8ee;
  box-shadow: 0 4px 16px rgba(20,30,60,.1); overflow: hidden; container-type: inline-size; }
.pv-ppt-text { position: absolute; display: flex; flex-direction: column; justify-content: center;
  overflow: hidden; font-size: 1.5cqw; line-height: 1.35; color: #26314a; }
.pv-ppt-line { white-space: pre-wrap; word-break: break-word; }
.pv-ppt-img { position: absolute; object-fit: contain; }
.pv-ppt-no { font-size: 12.5px; color: #8b94a8; }
@supports not (font-size: 1cqw) { .pv-ppt-text { font-size: 12px; } }

/* ================= 网盘分享：文件列表（缩略图/彩色类型图标 + 多选） ================= */
.dl-list.drive-list-rows { gap: 0; }
.dl-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  background: #fff; border-bottom: 1px solid #f1f2f5; color: #1a1d29; text-decoration: none; }
.dl-row:last-child { border-bottom: none; }
.dl-row:active { background: #f7f8fa; }
.dl-row.selected { background: #f4f7ff; }
.dl-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.dl-name { font-size: 15px; color: #1a1d29; line-height: 1.35;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-sub { font-size: 12.5px; color: #9aa3b2;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-thumb { flex: none; width: 46px; height: 46px; border-radius: 0; object-fit: cover;
  border: 1px solid #e6e8ee; background: #f3f5f9; }
.dl-ftype { flex: none; width: 46px; height: 46px; border-radius: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 19px; letter-spacing: -.5px; line-height: 1; }
.dl-ftype.is-sm { font-size: 11px; letter-spacing: 0; }
.dl-ftype-folder { background: #fdf3df !important; font-size: 26px; }
.dl-arrow { flex: none; color: #c5cad6; font-size: 24px; line-height: 1; }
.dl-check-wrap { flex: none; display: flex; align-items: center; cursor: pointer; }
.dl-check { flex: none; width: 24px; height: 24px; border-radius: 0;
  border: 1.6px solid #cdd2dd; background: #fff; position: relative; cursor: pointer;
  box-sizing: border-box; transition: background .12s ease, border-color .12s ease; }
.dl-row.selected .dl-check { background: #2F6BFF; border-color: #2F6BFF; }
.dl-row.selected .dl-check::after { content: ''; position: absolute; left: 50%; top: 44%;
  width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0;
  transform: translate(-50%, -50%) rotate(45deg); }
#browserBox { padding-bottom: 88px; }

/* 底部多选操作栏 */
.dl-actionbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 8000;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid #ececf1;
  box-shadow: 0 -4px 18px rgba(20,30,60,.08); }
.dl-ab-clear { flex: none; border: none; background: none; color: #64708a;
  font-size: 15px; padding: 8px 4px; cursor: pointer; }
.dl-ab-count { flex: 1; text-align: center; font-size: 15px; font-weight: 600; color: #1a1d29; }
.dl-ab-dl { flex: none; border: none; background: #2F6BFF; color: #fff;
  font-size: 15px; font-weight: 600; border-radius: 0; padding: 10px 28px; cursor: pointer; }
.dl-ab-dl:active { background: #1E55E8; }

/* ================= 直播平台 ================= */
.gate-card { max-width: 560px; margin: 40px auto; background: #fff; border: 1px solid #ececf1; border-radius: 0; padding: 30px 28px; text-align: center; }
.gate-title { font-size: 19px; margin: 0 0 12px; }
.gate-form { display: flex; gap: 10px; margin-top: 14px; align-items: center; }
.gate-form input { flex: 1; height: 56px; border: 1px solid #d9dce3; border-radius: 0; padding: 0 14px; font-size: 16px; }
.gate-form input:focus { outline: none; border-color: var(--brand); }
.gate-form .btn { white-space: nowrap; height: 44px; padding: 0 22px; }

/* 视频直播 */
.live-cover { position: relative; border-radius: 0; overflow: hidden; margin: 22px 0 0; box-shadow: var(--shadow); }
.live-cover img { width: 100%; display: block; }
.live-cover-mask { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(10, 12, 18, .25); }
.live-state-pill { display: inline-block; padding: 7px 18px; border-radius: 0; font-size: 14px; font-weight: 600; }
.live-state-pill.wait { background: rgba(0,0,0,.55); color: #fff; }
.live-state-pill.live { background: #e03131; color: #fff; }
.warmup-box { margin-top: 16px; border-radius: 0; overflow: hidden; }
.warmup-box img, .warmup-box video { width: 100%; display: block; }
.live-start-time { text-align: center; color: var(--ink-3); font-size: 14px; margin-top: 16px; }
.live-player-wrap { position: relative; }
.live-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #e9ecf5; background: #0b0d13; font-size: 15px; }
.ended-notice { background: #14161d; color: #e9ecf5; text-align: center; padding: 70px 20px; margin: 22px 0; }
.ended-notice p { font-size: 18px; margin: 0 0 10px; }
.live-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.live-dot { color: #e03131; font-size: 13px; font-weight: 600; }
.live-meta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; color: var(--ink-3); font-size: 13.5px; }
.heat-item b { color: var(--ink-1); }

/* 直播聊天 */
.live-chat-list { max-height: 420px; overflow-y: auto; padding: 12px; background: #f7f8fa; border-radius: 0; margin-bottom: 12px; }
.live-chat-box { display: flex; gap: 10px; align-items: center; }
.live-chat-box input { flex: 1; height: 44px; border: 1px solid var(--line); border-radius: 0; padding: 0 18px; font-size: 15px; background: #f7f8fa; }
.live-chat-box input:focus { outline: none; border-color: var(--brand); background: #fff; }
.live-chat-box .cs-send { padding: 10px 26px; }
.lc-item { display: flex; gap: 10px; padding: 8px 2px; }
.lc-body { min-width: 0; }
.lc-body strong { font-size: 13px; color: var(--ink-2); }
.lc-body p { font-size: 14.5px; color: var(--ink-1); margin: 3px 0 0; word-break: break-word; }
.lc-notice { margin: 8px auto; padding: 7px 14px; background: #fff4e6; color: #d9480f; border-radius: 0; font-size: 13.5px; text-align: center; width: fit-content; max-width: 92%; }

/* 图片直播（通栏封面直接接导航 → 标题热度 → 栏头 → 分类页签 → 双列瀑布流图墙） */
/* 图片库头部（白色卡片） */
.pl-head { padding: 18px 22px; background: #fff; border: 1px solid var(--line); margin-top: 18px; }
.pl-title { font-size: 19px; font-weight: 800; color: var(--ink); line-height: 1.4; margin: 0; }
.pl-desc { font-size: 13px; color: var(--ink-3); line-height: 1.7; margin: 8px 0 0; }
.pl-meta { display: flex; align-items: center; gap: 11px; margin: 12px 0 0; font-size: 12px; color: var(--ink-3); }
/* 宫格用 flex 双列 + JS 分发，不用 CSS columns——微信 X5 内核长按图片时
   原生菜单会强制多列容器重排，布局塌成单列 */
.pl-gallery { display: flex; flex-wrap: wrap; gap: 14px; padding: 18px 0 40px; align-items: flex-start; }
.pl-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
/* 无 JS 兜底：直属于 gallery 的 item 按两列排 */
.pl-gallery > .pl-item { flex: 0 0 calc(50% - 7px); }
.pl-item { margin: 0; border: none; overflow: hidden; background: #F2F3F5; }
.pl-item img { width: 100%; display: block; }
.pl-item.pl-hide { display: none; }
.pl-empty { flex: 0 0 100%; padding: 40px 0; color: var(--ink-3); }
/* ============================================================
   图片直播 · 大图查看器（微赞版：顶栏 i/计数/关闭，底部缩略图条 + 查看原图/下载/分享）
   ============================================================ */
.pl-item img { cursor: zoom-in; }
.pl-viewer {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0;
  z-index: 9999; background: #000;
  display: none; -webkit-tap-highlight-color: transparent;
}
.pl-viewer.show { display: block; }
.pv-stage {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  overflow: hidden; touch-action: none;
}
.pv-track { display: flex; height: 100%; will-change: transform; }
.pv-slide {
  flex: 0 0 100%; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  /* 视觉重心上移 15% 屏高，底部留白给操作区 */
  padding-bottom: 30vh;
}
.pv-slide img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  -webkit-user-select: none; user-select: none; -webkit-user-drag: none;
  /* 必须保持 default：微信内长按图片才会弹出「转发给朋友 / 收藏 / 保存图片」原生菜单 */
  -webkit-touch-callout: default;
}
/* 顶栏：i 信息 / n-N 计数 / 圆形关闭 */
.pv-top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3;
  height: 56px; display: flex; align-items: center;
  padding: 0 14px;
}
.pv-count {
  position: absolute; left: 50%; transform: translateX(-50%);
  color: rgba(255, 255, 255, .92); font-size: 14.5px; letter-spacing: .5px;
}
.pv-info, .pv-close {
  width: 36px; height: 36px; padding: 0; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  border: none; border-radius: 0;
  background: rgba(255, 255, 255, .16); color: #fff;
  font-size: 24px; cursor: pointer;
}
.pv-info { font-size: 15px; font-family: inherit; font-weight: 700; }
.pv-close { margin-left: auto; }
.pv-info:active, .pv-close:active { background: rgba(255, 255, 255, .32); }
/* 底部：缩略图条 + 操作行 */
.pv-bottom {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 10px 14px 16px;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.82));
}
.pv-strip {
  /* 禁止 justify-content: flex-end——溢出的 flex 容器用 flex-end 会把内容挤到左半
     （负 offsetLeft、前几张缩略图永远滚不到，marker 也会被画到屏幕外），
     必须默认 flex-start，让内容从左往右溢出、可正常横向滚动 */
  display: flex; gap: 6px;
  overflow-x: auto; padding-bottom: 12px;
  -webkit-overflow-scrolling: touch;
  position: relative;
}
.pv-thumb {
  flex: 0 0 48px; width: 48px; height: 48px; padding: 0;
  border: 2px solid transparent; border-radius: 0;
  overflow: hidden; background: #222; cursor: pointer;
  opacity: .45; transition: opacity .15s ease, border-color .15s ease;
}
.pv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pv-thumb.on { border-color: #fff; opacity: 1; }
.pv-dbg {
  position: absolute; left: 8px; bottom: 112px; z-index: 6;
  font: 10px/1.5 Menlo, Consolas, monospace;
  color: rgba(255,255,255,.55); pointer-events: none;
  text-shadow: 0 1px 2px rgba(0,0,0,.8);
}
/* 选中态标记：独立 DOM 元素，靠 translate3d 跟随当前缩略图，绕开真机 class/inline 怪癖 */
.pv-marker {
  position: absolute; top: 0; left: 0;
  width: 48px; height: 48px;
  border: 2px solid #fff; border-radius: 0;
  pointer-events: none; z-index: 5;
  will-change: transform;
  transform: translate3d(0,0,0);
}
.pv-ops {
  display: flex; align-items: flex-end; justify-content: center; gap: 34px;
}
.pv-orig, .pv-download, .pv-share {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  background: none; border: none; color: #fff;
  font-size: 12px; padding: 4px 2px; cursor: pointer;
}
.pv-orig:disabled { opacity: .5; }
.pv-orig:active, .pv-download:active, .pv-share:active { opacity: .6; }
/* 轻提示 */
.pv-tip {
  position: absolute; left: 50%; bottom: 128px; transform: translateX(-50%);
  z-index: 4; max-width: 82%;
  background: rgba(40, 40, 40, .92); color: #fff;
  font-size: 13px; line-height: 1.5; padding: 9px 16px;
  border-radius: 0; text-align: center;
}
/* 左右箭头（桌面） */
.pv-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 46px; height: 46px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border: none; border-radius: 0;
  background: rgba(255, 255, 255, .14); color: #fff;
  font-size: 30px; line-height: 1; cursor: pointer;
}
.pv-nav:active { background: rgba(255, 255, 255, .32); }
.pv-prev { left: 12px; }
.pv-next { right: 12px; }
@media (max-width: 640px) {
  .pv-nav { display: none; }
  .pv-count { font-size: 13.5px; }
  .pv-top { height: 50px; padding: 0 10px; }
  .pv-bottom { padding: 8px 10px 14px; }

  /* 网盘分享页：紧凑列表，留出更多标题空间（参照 360/百度网盘） */
  .wrap { padding: 0 12px; }
  .dl-card { margin: 12px auto; padding: 16px 14px; }
  .dl-title { font-size: 18px; margin-bottom: 10px; }
  .dl-list { margin-top: 8px; }
  .dl-row { gap: 10px; padding: 10px 4px; }
  .dl-main { gap: 5px; }
  .dl-thumb, .dl-ftype { width: 40px; height: 40px; border-radius: 0; }
  .dl-ftype { font-size: 16px; }
  .dl-ftype.is-sm { font-size: 10px; }
  .dl-ftype-folder { font-size: 22px; }
  .dl-name { font-size: 14px; line-height: 1.35; white-space: normal;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
    overflow: hidden; text-overflow: ellipsis; }
  .dl-sub { font-size: 10.5px; }
  .dl-arrow { font-size: 20px; }
  .dl-check-wrap { padding: 10px; margin: -10px; }
  .dl-check { width: 17px; height: 17px; border-width: 1.2px; }
  .dl-row.selected .dl-check::after { width: 4.5px; height: 7.5px; border-width: 0 1.4px 1.4px 0; }
  #browserBox { padding-bottom: 80px; }
}

/* ---------- 专栏内图片库 ---------- */
.col-galleries { margin: 8px 0 40px; }
.section-title { font-size: 19px; font-weight: 700; margin: 28px 0 14px; }
.gallery-mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.gallery-mini-card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease; }
.gallery-mini-card:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(20,24,40,.08), 0 14px 32px rgba(20,24,40,.10); }
.gallery-mini-cover { aspect-ratio: 16 / 10; background: #eef1f6; }
.gallery-mini-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-mini-ph { width: 100%; height: 100%; background: linear-gradient(135deg,#e9edf5,#f7f9fc); }
.gallery-mini-body { padding: 10px 12px 12px; }
.gallery-mini-name { font-size: 14.5px; font-weight: 700; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gallery-mini-count { color: var(--ink-3); font-size: 12px; }

/* ---------- 专栏网盘库 ---------- */
.drive-mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.drive-mini-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease; }
.drive-mini-card:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(20,24,40,.08), 0 14px 32px rgba(20,24,40,.10); }
.drive-mini-icon { flex: 0 0 auto; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: linear-gradient(135deg,#eaf1ff,#f3f7ff); color: #2b6fe0; }
.drive-mini-body { min-width: 0; }
.drive-mini-name { font-size: 14.5px; font-weight: 700; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drive-mini-count { color: var(--ink-3); font-size: 12px; }

/* ---------- 我的学习 ---------- */
.my-profile {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 22px 24px;
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.my-avatar {
  width: 64px; height: 64px; border-radius: 0; flex: none;
  background: var(--brand); color: #fff; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 700;
}
.my-avatar img { width: 100%; height: 100%; object-fit: cover; }
.my-id { flex: 1; min-width: 0; }
.my-name { font-size: 20px; font-weight: 800; color: var(--ink); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.my-source { font-size: 11px; padding: 2px 8px; font-weight: 600; border-radius: 0; }
.my-source.wechat { background: #E8F7EE; color: #0A8A3E; }
.my-source.pc { background: #EDF2FF; color: var(--brand); }
.my-source.guest { background: #F2F3F5; color: var(--ink-2); }
.my-since { font-size: 12px; color: var(--ink-3); margin-top: 5px; }
.my-stat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  flex: none; width: 380px;
}
.my-stat { background: #F7F8FA; padding: 12px 8px; text-align: center; }
.my-stat b { display: block; font-size: 22px; font-weight: 800; color: var(--brand); line-height: 1.2; }
.my-stat span { font-size: 12px; color: var(--ink-3); }

/* 收藏视频卡片 */
.my-video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; padding-bottom: 40px; }
.my-video-card { position: relative; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; }
.my-video-card:hover { border-color: var(--brand); }
.my-video-cover { position: relative; aspect-ratio: 16/9; background: #e8ebf2; overflow: hidden; }
.my-video-cover img { width: 100%; height: 100%; object-fit: cover; }
.my-video-ph { position: absolute; inset: 0; background: linear-gradient(135deg,#e9edf5,#f7f9fc); }
.my-video-duration { position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,.65); color: #fff; font-size: 11px; padding: 1px 6px; }
.my-video-body { padding: 11px 12px 12px; }
.my-video-title { font-size: 14px; font-weight: 700; line-height: 1.4; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

@media (max-width: 720px) {
  .my-profile { flex-direction: column; align-items: stretch; gap: 14px; padding: 18px 16px; }
  .my-stat-grid { width: 100%; gap: 8px; }
  .my-stat { padding: 10px 4px; }
  .my-stat b { font-size: 19px; }
}
