/* ==================================================================
   在线视频学习 H5 —— 金融简约大气版（手机 / 平板 / 桌面自适应）
   主题色由后台“主题配色”控制；标题、Logo 由“品牌设置”控制
   ================================================================== */

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }

:root {
  --brand:     #1769d6;
  --brand-d:   #0b4ca3;
  --brand-l:   #4a93e8;
  --brand-rgb: 23, 105, 214;
  --ink:    #162033;
  --text:   #1b2434;
  --sub:    #6b778c;
  --muted:  #98a3b5;
  --line:   #e8ecf2;
  --card:   #ffffff;
  --bg:     #f4f6fa;
  --radius: 18px;
}

body {
  margin: 0;
  color: var(--text);
  font: 15px/1.65 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(100% 45% at 100% -5%, rgba(var(--brand-rgb), .08), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

.hidden { display: none !important; }
img { max-width: 100%; }
button { font-family: inherit; }

#app { max-width: 640px; margin: 0 auto; min-height: 100%; position: relative; }

/* ---------- 通用视图 ---------- */
.view {
  padding: 0 16px calc(82px + env(safe-area-inset-bottom));
  animation: viewIn .35s ease both;
}
@keyframes viewIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.card {
  background: var(--card);
  border: 1px solid rgba(22, 32, 51, .05);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(22, 38, 66, .07);
  padding: 18px;
}

/* ==================================================================
   登录页
   ================================================================== */
#view-login { padding: 0 0 calc(40px + env(safe-area-inset-bottom)); }

.login-shell { position: relative; }

.hero {
  position: relative; overflow: hidden;
  color: #fff;
  background: linear-gradient(140deg, var(--brand-l) 0%, var(--brand) 46%, var(--brand-d) 100%);
  background-size: 180% 180%;
  animation: heroShift 14s ease-in-out infinite;
}
@keyframes heroShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
/* 细网格纹理，克制不抢眼 */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(120% 100% at 15% 0%, #000, transparent 80%);
}
/* 右上角柔光圆 */
.hero::after {
  content: "";
  position: absolute; right: -80px; top: -90px;
  width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,.28), rgba(255,255,255,.04) 70%);
}
.hero-inner {
  position: relative; z-index: 2;
  padding: 52px 26px 66px;
}
.brand-logo {
  width: 58px; height: 58px; border-radius: 14px;
  object-fit: contain; display: block; margin-bottom: 18px;
  background: rgba(255,255,255,.16);
  padding: 6px;
}
.hero-mark {
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.32);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 600; margin-bottom: 18px;
}
.hero-title {
  margin: 0 0 6px;
  font-size: 26px; font-weight: 700; letter-spacing: 1px;
}
.hero-sub {
  margin: 0; font-size: 13px; letter-spacing: 3px; opacity: .82;
}
.hero-line {
  display: block; width: 42px; height: 3px; border-radius: 2px;
  background: rgba(255,255,255,.75); margin: 20px 0 14px;
}
.hero-desc {
  margin: 0; font-size: 12px; letter-spacing: 2px; opacity: .7;
}

.login-side { padding: 0 16px; }

.login-card {
  margin-top: -42px; position: relative; z-index: 3;
  border-radius: 20px;
  padding: 22px 20px 24px;
}
.form-cap h3 { margin: 0 0 4px; font-size: 18px; font-weight: 700; color: var(--ink); letter-spacing: .5px; }
.form-cap p { margin: 0 0 8px; font-size: 12.5px; color: var(--muted); }

.field { padding: 13px 0; border-bottom: 1px solid var(--line); }
.field:last-of-type { border-bottom: 0; }
.field label {
  display: block; font-size: 12px; color: var(--sub);
  margin-bottom: 7px; letter-spacing: 1px;
}
.field select, .field input {
  width: 100%; border: 0; outline: 0; background: transparent;
  font-size: 16px; color: var(--text); padding: 2px 0;
  appearance: none; -webkit-appearance: none;
}
.field input::placeholder { color: #b7c0cf; font-size: 15px; }
.field select:invalid { color: #b7c0cf; }
.field select[disabled] { color: var(--text); opacity: .85; }
/* 输入聚焦时底部细线变主题色 */
.field:focus-within { border-bottom-color: rgba(var(--brand-rgb), .55); }

.btn-primary {
  width: 100%; margin-top: 22px; height: 50px;
  border: 0; border-radius: 25px;
  background: linear-gradient(135deg, var(--brand-l), var(--brand) 55%, var(--brand-d));
  color: #fff; font-size: 16px; font-weight: 600; letter-spacing: 4px;
  box-shadow: 0 14px 28px rgba(var(--brand-rgb), .34);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary:active { transform: translateY(1px); box-shadow: 0 8px 18px rgba(var(--brand-rgb), .3); }
.btn-primary[disabled] { opacity: .65; }

.login-tip {
  margin: 18px 14px 0; font-size: 12px; line-height: 1.8;
  color: var(--muted); text-align: center;
}
.login-foot {
  margin: 26px 10px 0; font-size: 11.5px; letter-spacing: 1px;
  color: var(--muted); text-align: center;
}
/* 隐蔽的管理入口：小字、低调，学员一般不会注意 */
.admin-entry { margin: 14px 0 0; text-align: center; }
.admin-entry a {
  font-size: 11px; color: #b6bfcc; letter-spacing: 1px;
  text-decoration: none; opacity: .8;
}
.admin-entry a:active { color: var(--brand); }

/* 第二步验证码通过条 */
.code-ok {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.code-ok-tag {
  font-size: 12.5px; color: var(--sub);
  background: rgba(var(--brand-rgb), .1);
  padding: 5px 11px; border-radius: 8px;
}
.code-ok-tag b { color: var(--brand); letter-spacing: 1px; }
.code-ok a { font-size: 12.5px; color: var(--brand); text-decoration: none; }
.code-ok a:active { opacity: .6; }

/* ==================================================================
   课程列表
   ================================================================== */
.page-head {
  padding: 26px 2px 14px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
}
.page-head h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: .5px; }
.page-sub { margin: 5px 0 0; font-size: 12.5px; color: var(--sub); }
.head-user {
  font-size: 12.5px; color: var(--sub); text-align: right;
  max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.course-list { display: flex; flex-direction: column; gap: 14px; }
.course-item {
  display: flex; gap: 13px; background: #fff;
  border: 1px solid rgba(22, 32, 51, .05);
  border-radius: var(--radius);
  padding: 11px;
  box-shadow: 0 10px 26px rgba(22, 38, 66, .07);
  transition: transform .18s ease, box-shadow .18s ease;
}
.course-item:active { transform: scale(.98); box-shadow: 0 6px 16px rgba(22, 38, 66, .1); }
.course-thumb {
  position: relative; flex: 0 0 118px; height: 76px; border-radius: 13px;
  overflow: hidden; background: #0d1a2b;
}
.course-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.course-thumb .ph {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #9db4d0; font-size: 12px; letter-spacing: 1px;
  background: linear-gradient(135deg, var(--brand-d), #0d1a2b);
}
.course-thumb .badge {
  position: absolute; left: 6px; top: 6px;
  background: rgba(0,0,0,.55); color: #fff;
  font-size: 11px; padding: 2px 7px; border-radius: 5px;
}
.course-thumb .dur {
  position: absolute; right: 6px; bottom: 6px;
  background: rgba(0,0,0,.62); color: #fff;
  font-size: 11px; padding: 2px 6px; border-radius: 5px;
}
.course-thumb .play-mask {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.92); font-size: 22px;
  text-shadow: 0 2px 10px rgba(0,0,0,.5);
}
.course-main { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 2px 0; }
.course-title {
  font-size: 15.5px; font-weight: 600; line-height: 1.45; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.course-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.mini-bar { flex: 1; height: 5px; border-radius: 3px; background: #edf0f6; overflow: hidden; }
.mini-bar i {
  display: block; height: 100%; border-radius: 3px; width: 0;
  background: linear-gradient(90deg, var(--brand-l), var(--brand));
  transition: width .3s ease;
}
.course-state { font-size: 12px; color: var(--sub); white-space: nowrap; }
.course-state.finished { color: #17a673; font-weight: 600; }

.empty { text-align: center; padding: 72px 0; color: var(--sub); }
.empty p { margin: 0 0 6px; font-size: 16px; color: #55637a; }
.empty span { font-size: 12.5px; }

/* ==================================================================
   播放页
   ================================================================== */
#view-player { padding: 0 0 calc(30px + env(safe-area-inset-bottom)); }
.player-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 13px;
  background: linear-gradient(135deg, #12203a, #0c1523); color: #fff;
}
.player-bar h2 {
  flex: 1; margin: 0; font-size: 15px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.btn-icon {
  width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff; font-size: 22px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.btn-icon:active { background: rgba(var(--brand-rgb), .5); }
.player-type { font-size: 11px; padding: 2px 9px; border-radius: 10px; background: rgba(255,255,255,.16); }

.player-box { position: relative; width: 100%; background: #000; aspect-ratio: 16/9; }
.player-box video { width: 100%; height: 100%; display: block; background: #000; }
/* TCPlayer 基于 Video.js，会把 video 包进 .video-js 容器，强制容器与视频铺满，避免视频缩在左上角 */
.player-box .video-js,
.player-box [data-vjs-player] {
  width: 100% !important;
  height: 100% !important;
  position: absolute;
  inset: 0;
  font-size: 14px;
}
.player-box video.vjs-tech {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
}
.player-loading {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #8fa3ba; font-size: 13px; background: #000; z-index: 3;
}
.player-loading.hidden { display: none !important; }

.player-progress-card {
  margin: 16px; padding: 16px 18px;
  background: #fff; border-radius: var(--radius);
  border: 1px solid rgba(22, 32, 51, .05);
  box-shadow: 0 10px 26px rgba(22, 38, 66, .07);
}
.pp-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--sub); }
.pp-row #player-percent { color: var(--brand); font-weight: 700; }
.pp-bar { margin: 10px 0 9px; height: 7px; border-radius: 4px; background: #edf0f6; overflow: hidden; }
.pp-bar i {
  display: block; height: 100%; width: 0; border-radius: 4px;
  background: linear-gradient(90deg, var(--brand-l), var(--brand));
  transition: width .3s ease;
}
.pp-tip { margin: 0; font-size: 12px; color: var(--muted); }

.intro-card { margin: 0 16px 12px; }
.intro-card h3 { margin: 0 0 8px; font-size: 14px; font-weight: 700; color: var(--ink); }
.intro-text { font-size: 13.5px; color: #5a697e; line-height: 1.9; white-space: pre-wrap; }
.intro-text.muted { color: var(--muted); }

/* ==================================================================
   我的
   ================================================================== */
.me-head {
  display: flex; align-items: center; gap: 15px;
  padding: 30px 4px 20px;
}
.me-avatar {
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-l), var(--brand-d));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700;
  box-shadow: 0 12px 26px rgba(var(--brand-rgb), .32);
}
.me-info h2 { margin: 0; font-size: 19px; font-weight: 700; }
.me-info p { margin: 4px 0 0; font-size: 12.5px; color: var(--sub); }

.stat-row { display: flex; gap: 13px; margin-bottom: 13px; }
.stat-box {
  position: relative; overflow: hidden;
  flex: 1; background: #fff; border-radius: var(--radius); padding: 17px 15px;
  border: 1px solid rgba(22, 32, 51, .05);
  box-shadow: 0 10px 26px rgba(22, 38, 66, .07);
}
.stat-box::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(var(--brand-l), var(--brand-d));
}
.stat-box b { display: block; font-size: 24px; font-weight: 700; color: var(--brand); }
.stat-box span { font-size: 12px; color: var(--sub); }

.card-title { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: var(--ink); }
.rec-item { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.rec-item:last-child { border-bottom: 0; }
.rec-name { flex: 1; min-width: 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-pct { font-size: 12px; color: var(--sub); width: 42px; text-align: right; }
.rec-pct.ok { color: #17a673; font-weight: 600; }

.btn-ghost {
  width: 100%; margin-top: 20px; height: 47px; border-radius: 24px;
  border: 1px solid #d9e0ea; background: #fff; color: #55637a; font-size: 15px;
  transition: border-color .2s ease, color .2s ease;
}
.btn-ghost:active { border-color: var(--brand); color: var(--brand); }

/* ==================================================================
   底部导航
   ================================================================== */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; max-width: 640px; margin: 0 auto;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
  /* 强制独立合成层，修复 iOS 微信滚动时 fixed 导航跟着动/抖动 */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: transform;
}
.tab {
  flex: 1; padding: 10px 0 8px; text-align: center;
  color: #8b98ab; text-decoration: none; font-size: 12px;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  transition: color .2s ease;
}
.tab i {
  font-style: normal; line-height: 1;
  width: 44px; height: 25px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease;
}
.tab.active { color: var(--brand); font-weight: 600; }
.tab.active i { background: rgba(var(--brand-rgb), .13); }

/* ==================================================================
   提示
   ================================================================== */
.toast {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: rgba(18, 28, 44, .92); color: #fff;
  padding: 12px 20px; border-radius: 12px; font-size: 14px;
  max-width: 80%; text-align: center; z-index: 99;
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.toast.show { opacity: 1; }

/* ==================================================================
   平板 / 桌面自适应
   ================================================================== */

/* 大手机横屏与小平板：放宽内容宽度 */
@media (min-width: 560px) {
  .course-thumb { flex: 0 0 150px; height: 92px; }
  .hero-inner { padding: 60px 34px 74px; }
  .login-side { padding: 0 24px; }
}

/* 平板竖屏：登录页左右分栏，品牌区成为侧面板 */
@media (min-width: 900px) {
  #app { max-width: 1080px; }
  #view-login { padding-bottom: 0; }
  .login-shell {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    min-height: 100vh;
  }
  .hero { display: flex; align-items: center; }
  .hero-inner { padding: 48px 44px; width: 100%; max-width: 480px; margin: 0 auto; }
  .login-side {
    display: flex; flex-direction: column; justify-content: center;
    padding: 40px 32px; max-width: 520px; width: 100%; margin: 0 auto;
  }
  .login-card { margin-top: 0; }
  .login-tip { margin-top: 16px; }
  .login-foot { margin-top: 24px; }

  /* 其余页面在平板上居中收窄，保持阅读感 */
  .view { padding-left: 28px; padding-right: 28px; }
  .tabbar { border-radius: 16px 16px 0 0; }
}

/* 平板横屏 / 桌面：更宽松的留白 */
@media (min-width: 1200px) {
  .hero-inner { padding: 56px 56px; }
  .login-side { padding: 56px 40px; }
  .course-thumb { flex: 0 0 168px; height: 100px; }
}

/* 尊重系统“减少动态效果” */
@media (prefers-reduced-motion: reduce) {
  .hero, .view { animation: none; }
}

/* ==================================================================
   v6 首页（知识付费风格）
   ================================================================== */
.home-banner {
  margin: 16px 0 14px;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-l) 0%, var(--brand) 52%, var(--brand-d) 100%);
  box-shadow: 0 16px 34px rgba(var(--brand-rgb), .3);
  position: relative;
  overflow: hidden;
}
.home-banner::after {
  content: "";
  position: absolute; right: -60px; top: -70px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,.25), rgba(255,255,255,.03) 70%);
}
.hb-inner { position: relative; z-index: 2; padding: 22px 22px 18px; }
.hb-hello { margin: 0 0 4px; font-size: 12.5px; letter-spacing: 2px; opacity: .85; }
.hb-title { margin: 0 0 16px; font-size: 20px; font-weight: 700; letter-spacing: .5px; }
.hb-stats { display: flex; gap: 10px; }
.hb-stats div {
  flex: 1; background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 13px; padding: 10px 8px; text-align: center;
}
.hb-stats b { display: block; font-size: 19px; font-weight: 700; }
.hb-stats span { font-size: 11px; opacity: .85; letter-spacing: 1px; }

/* 分类横滑标签 */
.cat-tabs {
  display: flex; gap: 9px; overflow-x: auto;
  padding: 4px 2px 12px;
  scrollbar-width: none;
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
  flex: 0 0 auto; padding: 7px 16px; border-radius: 18px;
  background: #fff; border: 1px solid var(--line);
  font-size: 13.5px; color: var(--sub); text-decoration: none;
  transition: all .2s ease;
}
.cat-tab.on {
  background: linear-gradient(135deg, var(--brand-l), var(--brand-d));
  color: #fff; border-color: transparent; font-weight: 600;
  box-shadow: 0 8px 18px rgba(var(--brand-rgb), .28);
}

/* 课程卡片网格（手机两列） */
.course-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 13px;
}
.course-card {
  background: #fff; border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(22,32,51,.05);
  box-shadow: 0 10px 24px rgba(22,38,66,.07);
  transition: transform .18s ease;
}
.course-card:active { transform: scale(.97); }
.cc-thumb {
  position: relative; aspect-ratio: 16/10;
  background: #0d1a2b; overflow: hidden;
}
.cc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cc-thumb .ph {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand-d), #0d1a2b);
}
.cc-thumb .ph span { color: rgba(255,255,255,.8); font-size: 26px; }
.cc-badge {
  position: absolute; left: 7px; top: 7px;
  background: rgba(0,0,0,.55); color: #fff;
  font-size: 10.5px; padding: 2px 7px; border-radius: 5px;
}
.cc-dur {
  position: absolute; right: 7px; bottom: 7px;
  background: rgba(0,0,0,.62); color: #fff;
  font-size: 10.5px; padding: 2px 6px; border-radius: 5px;
}
.cc-body { padding: 11px 11px 12px; }
.cc-title {
  font-size: 14px; font-weight: 600; line-height: 1.45; min-height: 40px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cc-foot { margin-top: 9px; }
.cc-bar { height: 4px; border-radius: 3px; background: #edf0f6; overflow: hidden; margin-bottom: 6px; }
.cc-bar i {
  display: block; height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--brand-l), var(--brand));
}
.cc-state { font-size: 11.5px; color: var(--sub); }
.cc-state.ok { color: #17a673; font-weight: 600; }

/* ==================================================================
   v6 学习页：音频 / 文档 / 图片 / 操作按钮
   ================================================================== */
.audio-box {
  background: linear-gradient(160deg, #14263f, #0b1626);
  padding: 34px 26px 28px; text-align: center; color: #fff;
}
.audio-disc {
  width: 150px; height: 150px; border-radius: 50%;
  margin: 0 auto 22px;
  background:
    radial-gradient(circle at center, #22385a 0 22%, #11203a 23% 38%, #1b3150 39% 41%, #11203a 42% 60%, #1b3150 61% 63%, #0d1a2b 64%);
  border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
}
.audio-disc span {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-l), var(--brand-d));
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700;
}
.audio-disc.playing { animation: spin 9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.audio-time {
  display: flex; justify-content: space-between;
  font-size: 12px; color: #9db0c8; margin-bottom: 9px;
}
.audio-seek {
  height: 6px; border-radius: 3px; background: rgba(255,255,255,.14);
  position: relative; overflow: hidden; cursor: pointer;
}
.audio-seek i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--brand-l), var(--brand));
}

.doc-box { background: #eef1f6; }
.doc-box iframe {
  width: 100%; height: 70vh; min-height: 420px; border: 0; display: block;
}
.image-box { background: #0d1a2b; padding: 18px; text-align: center; }
.image-box img {
  max-width: 100%; max-height: 70vh;
  width: auto; height: auto; border-radius: 10px;
}

.player-actions { display: flex; gap: 10px; padding: 14px 16px 0; flex-wrap: wrap; }
.act-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 42px; padding: 0 22px; border-radius: 21px;
  background: linear-gradient(135deg, var(--brand-l), var(--brand-d));
  color: #fff; font-size: 14px; font-weight: 600; text-decoration: none;
  box-shadow: 0 10px 20px rgba(var(--brand-rgb), .28);
}
.act-btn.ghost {
  background: #fff; color: var(--brand);
  border: 1px solid rgba(var(--brand-rgb), .4); box-shadow: none;
}
.act-btn.hidden { display: none !important; }

/* ==================================================================
   动态防录屏水印
   ================================================================== */
.wm-layer {
  position: fixed; inset: 0; z-index: 60;
  pointer-events: none; display: none;
}
.wm-layer.on { display: block; }
.wm-layer span {
  position: absolute; white-space: nowrap;
  color: rgba(40, 55, 80, .08);
  font-size: 13px; letter-spacing: 1px;
  user-select: none; -webkit-user-select: none;
}
body {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
input, textarea { -webkit-user-select: text; user-select: text; }

/* 平板/宽屏：首页卡片三列，内容区放宽 */
@media (min-width: 900px) {
  .course-grid { grid-template-columns: repeat(3, 1fr); }
  .doc-box iframe { height: 78vh; }
}
@media (min-width: 1200px) {
  .course-grid { grid-template-columns: repeat(4, 1fr); }
}

/* 下一集快捷条 */
.next-bar { margin: 14px 0 4px; }
.btn-next {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 14px 16px;
  background: linear-gradient(135deg, rgba(var(--brand-rgb),.10), rgba(var(--brand-rgb),.04));
  border: 1px solid rgba(var(--brand-rgb),.25);
  border-radius: 14px; color: #24324a;
}
.btn-next .nx-label {
  background: rgb(var(--brand-rgb)); color: #fff;
  font-size: 12px; padding: 3px 10px; border-radius: 20px; flex: none;
}
.btn-next .nx-title { flex: 1; text-align: left; font-size: 14px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-next .nx-arrow { font-size: 22px; color: rgb(var(--brand-rgb)); line-height: 1; flex: none; }
.btn-next:active { transform: scale(.99); }

/* 系列课程卡片 */
.series-card { margin-top: 14px; }
.series-card h3 { display: flex; align-items: baseline; gap: 6px; }
.series-card h3 em { font-style: normal; font-size: 12px; color: #8b98ab; font-weight: 400; }
.series-list { list-style: none; margin: 6px 0 0; padding: 0; }
.series-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 8px; border-top: 1px solid #f0f3f8;
}
.series-item:first-child { border-top: none; }
.si-num {
  width: 26px; height: 26px; flex: none; border-radius: 50%;
  background: #eef2f7; color: #7a8aa0;
  font-size: 12px; display: flex; align-items: center; justify-content: center;
}
.si-name { flex: 1; font-size: 14px; color: #33425c;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.si-type { font-size: 11px; color: #93a1b5; flex: none; }
.series-item.current { background: rgba(var(--brand-rgb),.06); border-radius: 10px; }
.series-item.current .si-num { background: rgb(var(--brand-rgb)); color: #fff; }
.series-item.current .si-name { color: rgb(var(--brand-rgb)); font-weight: 600; }
.series-item:not(.current) { cursor: pointer; }
.series-item:not(.current):active { background: #f5f8fc; }

/* 电脑浏览器拦截层 */
.pc-block {
  position: fixed; inset: 0; z-index: 9999;
  background: linear-gradient(160deg, #0f2748 0%, #143d72 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 32px;
}
.pc-block.hidden { display: none; }
.pcb-inner { text-align: center; max-width: 420px; color: #fff; }
.pcb-ico { font-size: 64px; margin-bottom: 18px; }
.pcb-inner h2 { font-size: 22px; margin: 0 0 14px; }
.pcb-inner p { font-size: 15px; line-height: 1.7; color: rgba(255,255,255,.85); margin: 6px 0; }
.pcb-sub { color: rgba(255,255,255,.6) !important; font-size: 13px !important; }
