/* ============ 依繁钢管舞教程 · 全局样式 ============ */
:root {
  --bg: #0d0a12;
  --bg-soft: #17111f;
  --card: #1e1629;
  --card-2: #251b33;
  --line: rgba(255,255,255,.08);
  --txt: #f4ecf8;
  --txt-dim: #a99ab8;
  --gold: #f5c542;
  --rose: #e62e6b;
  --purple: #8e2de2;
  --green: #2ec48a;
  --grad: linear-gradient(135deg, #e62e6b, #8e2de2);
  --grad-gold: linear-gradient(135deg, #f5c542, #e62e6b);
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,.45);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--txt);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  min-height: 100vh;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

/* 页面容器（手机优先，宽屏限宽居中） */
.page { max-width: 720px; margin: 0 auto; padding: 0 16px 80px; }

/* 顶部品牌栏 */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(13,10,18,.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 14px max(16px, calc((100vw - 720px) / 2));   /* 桌面与内容对齐 */
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
}
@media (min-width: 760px) { .topbar { padding-left: max(24px, calc((100vw - 720px) / 2)); padding-right: max(24px, calc((100vw - 720px) / 2)); } }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-badge {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800; color: #fff;
  box-shadow: 0 4px 14px rgba(230,46,107,.45);
}
.brand-name { font-size: 17px; font-weight: 800; letter-spacing: 1px; }
.brand-name small { display: block; font-size: 11px; font-weight: 400; color: var(--txt-dim); letter-spacing: 2px; }
.topbar .user-chip { font-size: 13px; color: var(--txt-dim); }
.topbar .logout { font-size: 13px; color: var(--rose); border: 1px solid rgba(230,46,107,.4); padding: 6px 12px; border-radius: 20px; }

/* 通用卡片 */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: none; border-radius: 12px;
  padding: 13px 20px; font-size: 15px; font-weight: 600;
  color: #fff; background: var(--grad);
  width: 100%;
  transition: transform .12s ease, opacity .2s;
}
.btn:active { transform: scale(.97); }
.btn.gold { background: var(--grad-gold); color: #1a1206; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--txt); }
.btn.danger { background: rgba(230,46,107,.15); color: var(--rose); border: 1px solid rgba(230,46,107,.35); }
.btn.sm { padding: 8px 14px; font-size: 13px; width: auto; border-radius: 10px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* 表单 */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--txt-dim); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 10px; color: var(--txt); font-size: 15px;
  outline: none;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--rose); }
.field textarea { resize: vertical; min-height: 60px; }

/* 标签 */
.tag {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 12px; font-weight: 600;
}
.tag.on { background: rgba(46,196,138,.15); color: var(--green); border: 1px solid rgba(46,196,138,.4); }
.tag.off { background: rgba(169,154,184,.12); color: var(--txt-dim); border: 1px solid var(--line); }
.tag.warn { background: rgba(245,197,66,.12); color: var(--gold); border: 1px solid rgba(245,197,66,.35); }
.tag.done { background: rgba(230,46,107,.14); color: var(--rose); border: 1px solid rgba(230,46,107,.45); }
.tag.fresh { background: rgba(46,196,138,.12); color: var(--green); border: 1px solid rgba(46,196,138,.35); }

/* 观看进度条（列表内） */
.prog-bar {
  height: 5px; border-radius: 3px; background: var(--bg-soft);
  border: 1px solid var(--line); overflow: hidden; margin-top: 7px;
}
.prog-fill { height: 100%; border-radius: 3px; background: var(--grad-gold); }

/* 续播提示 */
.resume-tip {
  margin: 6px 0 12px; padding: 9px 12px;
  background: rgba(245,197,66,.1); border: 1px solid rgba(245,197,66,.35);
  border-radius: 10px; color: var(--gold); font-size: 13px;
}
/* 横屏提示 */
.orient-tip {
  margin: 0 0 10px; padding: 8px 12px;
  background: rgba(142,45,226,.12); border: 1px solid rgba(142,45,226,.4);
  border-radius: 10px; color: #c9a6f5; font-size: 12px;
}

/* 提示条 */
.toast-wrap { position: fixed; top: 70px; left: 0; right: 0; z-index: 99; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast {
  background: var(--card-2); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 18px; font-size: 14px;
  box-shadow: var(--shadow); animation: toastIn .25s ease;
  max-width: 86%;
}
.toast.err { border-color: rgba(230,46,107,.5); color: #ff8fb3; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* 加载骨架 */
.skeleton { border-radius: var(--radius); background: linear-gradient(90deg, #1e1629 25%, #2a1f38 50%, #1e1629 75%); background-size: 200% 100%; animation: sk 1.4s infinite; }
@keyframes sk { to { background-position: -200% 0; } }

/* ============ 登录页 ============ */
.login-page {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 24px 20px 36px; position: relative;
  background: #0a070e;
}
/* 全屏背景：优先显示 bg-teacher.jpg 大图；没放图时用渐变氛围兜底 */
.bg-photo {
  position: absolute; inset: 0; z-index: 0;
  background-color: #0a070e;
  background-image:
    url('/img/bg-teacher.jpg'),
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(230,46,107,.22), transparent 60%),
    radial-gradient(ellipse 70% 50% at 85% 110%, rgba(245,197,66,.10), transparent 55%),
    radial-gradient(ellipse 60% 40% at 8% 95%, rgba(120,80,220,.14), transparent 55%);
  background-size: cover; background-position: center;
}
.bg-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,7,14,.55) 0%, rgba(10,7,14,.18) 40%, rgba(10,7,14,.62) 100%);
}
/* 中央宣传片区 */
.promo-box {
  position: relative; z-index: 1;
  width: 100%; max-width: 380px; aspect-ratio: 16 / 9;
  border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  background: #000; margin-bottom: 16px;
  box-shadow: 0 16px 44px rgba(0,0,0,.5);
}
.promo-box video { width: 100%; height: 100%; object-fit: cover; display: block; }
.promo-mask {
  position: absolute; inset: 0; z-index: 2;
  background: rgba(10,7,14,.45);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer;
}
.promo-playbtn {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--grad); color: #fff; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(230,46,107,.45);
}
.promo-label { font-size: 12px; color: rgba(255,255,255,.85); letter-spacing: 2px; }
.login-title {
  position: relative; z-index: 1;
  font-size: 22px; font-weight: 800; letter-spacing: 2px; margin-bottom: 4px; color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.6);
}
.login-sub {
  position: relative; z-index: 1;
  font-size: 13px; color: rgba(255,255,255,.65); margin-bottom: 18px; letter-spacing: 3px;
}
.login-card {
  position: relative; z-index: 1; width: 100%; max-width: 380px;
  background: rgba(30,22,41,.96); border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.login-tip { margin-top: 16px; text-align: center; font-size: 12px; color: var(--txt-dim); }
/* 试看卡片（已下线，保留样式以防复用） */
.preview-card {
  width: 100%; max-width: 380px; display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px; margin-top: 18px; cursor: pointer;
  transition: transform .12s ease, border-color .2s;
}
.preview-card:active { transform: scale(.97); border-color: rgba(245,197,66,.5); }
.preview-thumb {
  width: 92px; height: 56px; flex: none; border-radius: 10px; position: relative;
  background: var(--grad); display: flex; align-items: center; justify-content: center;
}
.preview-play { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--rose); display: flex; align-items: center; justify-content: center; font-size: 13px; }
.preview-badge {
  position: absolute; top: 4px; left: 4px; background: rgba(230,46,107,.9);
  color: #fff; font-size: 10px; padding: 2px 6px; border-radius: 6px;
}
.preview-info { flex: 1; min-width: 0; }
.preview-t { font-size: 14px; font-weight: 700; }
.preview-d { font-size: 12px; color: var(--txt-dim); margin-top: 3px; }

/* ============ 专栏卡片 ============ */
.col-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
@media (max-width: 380px) { .col-grid { grid-template-columns: 1fr; } }
.col-card {
  position: relative; border-radius: var(--radius); padding: 16px;
  background: var(--card); border: 1px solid var(--line);
  overflow: hidden; display: flex; flex-direction: column; gap: 8px;
  transition: transform .12s ease, border-color .2s;
}
.col-card:active { transform: scale(.97); }
@media (hover: hover) { .col-card:hover { border-color: rgba(230,46,107,.45); transform: translateY(-2px); } }
.col-card.locked { opacity: .75; }
.col-card .col-badge {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--grad); display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; color: #fff;
}
.col-card.locked .col-badge { background: #2c2337; color: var(--txt-dim); }
.col-card .col-name { font-size: 16px; font-weight: 700; }
.col-card .col-desc { font-size: 12px; color: var(--txt-dim); min-height: 32px; }
.col-card .col-meta { font-size: 12px; color: var(--txt-dim); margin-top: auto; }
.col-card .lock-hint {
  margin-top: 6px; font-size: 12px; color: var(--gold);
  background: rgba(245,197,66,.08); border: 1px dashed rgba(245,197,66,.35);
  border-radius: 8px; padding: 6px 8px; text-align: center;
}

/* ============ 视频卡片（封面+标题+简介） ============ */
.vcard {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px; margin-top: 12px;
  transition: transform .12s ease, border-color .2s;
}
.vcard:active { transform: scale(.97); }
@media (hover: hover) { .vcard:hover { border-color: rgba(230,46,107,.4); } }
.vcover {
  width: 116px; height: 65px; flex: none; border-radius: 10px;
  overflow: hidden; background: var(--bg-soft); position: relative;
}
.vcover-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vcover-ph {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: var(--grad); color: rgba(255,255,255,.85); font-size: 22px; font-weight: 800;
}
.vbody { flex: 1; min-width: 0; }
.vbody .vt { font-size: 15px; font-weight: 700; line-height: 1.4; }
.vbody .vd { font-size: 12px; color: var(--txt-dim); margin-top: 4px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vbody .vs { display: flex; align-items: center; gap: 8px; margin-top: 7px; font-size: 12px; }
/* 视频卡片：播放按钮圆形化（原"▶"文本又粗又丑） */
.vcard .play-ic, .video-item .play-ic {
  width: 34px; height: 34px; flex: none; border-radius: 50%;
  background: rgba(230,46,107,.14); border: 1px solid rgba(230,46,107,.4);
  color: var(--rose); display: flex; align-items: center; justify-content: center;
  font-size: 11px; transition: transform .12s ease;
}
.vcard .play-ic, .video-item .play-ic { margin-top: auto; }
.vcard .play-ic:hover, .video-item .play-ic:hover { transform: scale(1.08); }
@media (max-width: 380px) { .vcover { width: 96px; height: 56px; } }

/* 筛选 Tab */
.filter-row { display: flex; gap: 8px; margin-top: 14px; overflow-x: auto; }
.filter-row .f-btn {
  flex: none; background: var(--card); border: 1px solid var(--line); color: var(--txt-dim);
  padding: 7px 16px; border-radius: 20px; font-size: 13px;
}
.filter-row .f-btn.active { background: var(--grad); color: #fff; border-color: transparent; }

/* 试看横幅 & 锁定提示 */
.preview-banner {
  margin-top: 14px; padding: 10px 14px; text-align: center;
  background: rgba(245,197,66,.1); border: 1px solid rgba(245,197,66,.4);
  border-radius: 12px; color: var(--gold); font-size: 13px; font-weight: 600;
}
.lock-hint-box {
  margin-top: 14px; padding: 16px; text-align: center;
  background: rgba(230,46,107,.07); border: 1px dashed rgba(230,46,107,.4);
  border-radius: 12px; color: var(--rose); font-size: 13px; line-height: 1.8;
}

/* 播放页：倍速 & 上下集 */
.speed-row { display: flex; align-items: center; gap: 6px; margin: 4px 0 12px; flex-wrap: wrap; }
.speed-label { font-size: 12px; color: var(--txt-dim); margin-right: 2px; }
.speed-btn {
  background: var(--bg-soft); border: 1px solid var(--line); color: var(--txt-dim);
  padding: 5px 10px; border-radius: 8px; font-size: 12px;
}
.speed-btn.active { background: var(--grad); color: #fff; border-color: transparent; }
.nav-row { display: flex; gap: 8px; margin: 0 0 14px; align-items: center; }
.nav-row .btn { flex: 1; }

/* 首页：继续学习卡片 */
.resume-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid rgba(245,197,66,.4);
  border-radius: 14px; padding: 14px; margin-top: 14px; cursor: pointer;
  transition: transform .12s ease;
}
.resume-card:active { transform: scale(.97); }
.resume-ic {
  width: 42px; height: 42px; flex: none; border-radius: 12px;
  background: var(--grad-gold); display: flex; align-items: center; justify-content: center;
  color: #1a1206; font-size: 16px;
}
.resume-info { flex: 1; min-width: 0; }
.resume-t { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.resume-d { font-size: 12px; color: var(--txt-dim); margin-top: 3px; }
.resume-go { font-size: 13px; color: var(--gold); flex: none; }

/* 联系老师卡片 */
.contact-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 16px; margin-top: 14px; text-align: center;
}
.contact-t { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.contact-qr { width: 130px; height: 130px; object-fit: contain; border-radius: 10px; background: #fff; padding: 6px; }
.contact-wx { font-size: 14px; color: var(--gold); margin-top: 8px; }

/* ============ 视频列表 ============ */
.video-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px; margin-top: 10px;
}
.video-item .num {
  width: 34px; height: 34px; flex: none; border-radius: 10px;
  background: var(--bg-soft); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
}
.video-item .info { flex: 1; min-width: 0; }
.video-item .info .t { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.video-item .info .s { font-size: 12px; color: var(--txt-dim); }
.video-item .play-ic { color: var(--rose); font-size: 18px; flex: none; }
.col-head { margin-top: 16px; display: flex; align-items: center; gap: 10px; }
.col-head .back { font-size: 13px; color: var(--txt-dim); padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; }
.col-head h2 { font-size: 18px; flex: 1; }

/* ============ 播放页 ============ */
.watch-wrap { background: #000; }
.video-box { position: relative; width: 100%; background: #000; }
.video-box video { width: 100%; display: block; max-height: 62vh; }
/* 防盗水印 */
.wm-corner {
  position: absolute; right: 10px; bottom: 36px; z-index: 3;
  color: rgba(255,255,255,.30); font-size: 12px; letter-spacing: 1px;
  pointer-events: none; text-shadow: 0 1px 2px rgba(0,0,0,.6);
}
.wm-float {
  position: absolute; z-index: 3; color: rgba(255,255,255,.20);
  font-size: 34px; font-weight: 800; letter-spacing: 3px; white-space: nowrap;
  transform: rotate(-18deg); opacity: 0; transition: opacity .4s;
  pointer-events: none; text-shadow: 0 2px 8px rgba(0,0,0,.7);
}
.wm-float.show { opacity: 1; }
.watch-body { max-width: 720px; margin: 0 auto; padding: 16px; }
.watch-title { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.watch-sub { font-size: 13px; color: var(--txt-dim); margin-bottom: 14px; }
.warn-box {
  background: rgba(245,197,66,.07); border: 1px solid rgba(245,197,66,.25);
  color: var(--gold); border-radius: 10px; padding: 10px 12px; font-size: 12px; line-height: 1.6;
  margin-top: 12px;
}

/* 空状态 */
.empty { text-align: center; color: var(--txt-dim); padding: 40px 0; font-size: 14px; }

/* ============ 管理端 ============ */
.admin-body { background: var(--bg); min-height: 100vh; padding-bottom: 90px; }
/* 管理端桌面宽屏适配（电脑上用后台不浪费屏幕） */
.admin-body .page { max-width: 1024px; }
.admin-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
  background: rgba(23,17,31,.95); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  display: flex;
  padding-bottom: env(safe-area-inset-bottom);   /* iPhone/iPad 底部安全区 */
}
/* 宽屏（电脑/平板横屏）：底部导航收窄居中，避免通栏过于空旷
   注意：必须写在 .admin-nav 基础规则之后，否则 left:0 会覆盖 left:50% */
@media (min-width: 900px) {
  .admin-body .page { max-width: 1100px; padding-left: 24px; padding-right: 24px; }
  .admin-nav { width: 100%; max-width: 480px; left: 50%; right: auto; transform: translateX(-50%); border-radius: 16px 16px 0 0; border: 1px solid var(--line); border-bottom: none; }
}
.admin-nav button {
  flex: 1; background: none; border: none; color: var(--txt-dim);
  padding: 12px 0 14px; font-size: 12px; display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.admin-nav button .ic { font-size: 20px; }
.admin-nav button.active { color: var(--rose); }
.admin-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; gap: 10px; }
.admin-head h1 { font-size: 18px; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
@media (max-width: 480px) { .stat-row { grid-template-columns: 1fr 1fr; } }
.stat-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; text-align: center; }
.stat-card .n { font-size: 20px; font-weight: 800; color: var(--gold); }
.stat-card .l { font-size: 11px; color: var(--txt-dim); margin-top: 2px; }
.section-title { font-size: 14px; font-weight: 700; margin: 20px 0 4px; color: var(--txt-dim); letter-spacing: 1px; }

/* 学员行 */
.stu-row {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px; margin-top: 10px;
}
.stu-row .top { display: flex; align-items: center; gap: 10px; }
.stu-row .uname { font-size: 15px; font-weight: 700; }
.stu-row .uname small { display: block; font-size: 11px; color: var(--txt-dim); font-weight: 400; }
.stu-row .meta { font-size: 12px; color: var(--txt-dim); margin-top: 6px; }
.stu-row .grants { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.stu-row .actions { display: flex; gap: 8px; margin-top: 10px; }
.stu-stats { margin-top: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.stu-stat { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; }

/* 到期提醒 */
.expire-block { margin-top: 10px; padding: 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.expire-block.danger { border-color: rgba(230,46,107,.5); }
.expire-block.warn { border-color: rgba(245,197,66,.45); }
.expire-title { font-size: 13px; font-weight: 700; margin-bottom: 8px; color: var(--txt); }
.expire-item {
  display: flex; align-items: center; gap: 8px; width: 100%;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 8px;
  padding: 7px 10px; margin-top: 6px; color: var(--txt); font-size: 13px; text-align: left;
}

/* 授权弹层 */
.modal-mask {
  position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.6);
  display: flex; align-items: flex-end; justify-content: center;
}
.modal {
  width: 100%; max-width: 560px; max-height: 86vh; overflow-y: auto;
  background: var(--card); border-radius: 18px 18px 0 0; padding: 20px 18px 30px;
}
@media (min-width: 600px) { .modal { border-radius: 18px; margin-bottom: 20px; } }
.modal .m-title { font-size: 17px; font-weight: 800; margin-bottom: 4px; }
.modal .m-sub { font-size: 12px; color: var(--txt-dim); margin-bottom: 14px; }
.modal .close-x { position: absolute; right: 14px; font-size: 22px; color: var(--txt-dim); background: none; border: none; }
.grant-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px; margin-top: 10px;
}
.grant-row .g-name { font-size: 14px; font-weight: 700; }
.grant-row .g-ctrl { display: flex; align-items: center; gap: 8px; }
.grant-row select { background: var(--card); border: 1px solid var(--line); color: var(--txt); border-radius: 8px; padding: 6px 8px; font-size: 12px; outline: none; }
/* 开关 */
.switch { position: relative; width: 46px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
  position: absolute; inset: 0; background: #332a3f; border-radius: 20px; transition: .2s;
}
.switch .slider::before {
  content: ''; position: absolute; width: 20px; height: 20px; border-radius: 50%;
  left: 3px; top: 3px; background: #fff; transition: .2s;
}
.switch input:checked + .slider { background: var(--grad); }
.switch input:checked + .slider::before { transform: translateX(20px); }

/* 视频管理 */
.vtabs { display: flex; gap: 8px; margin-top: 14px; overflow-x: auto; }
.vtabs button {
  flex: none; background: var(--card); border: 1px solid var(--line); color: var(--txt-dim);
  padding: 8px 16px; border-radius: 20px; font-size: 13px;
}
.vtabs button.active { background: var(--grad); color: #fff; border-color: transparent; }
.upload-box {
  width: 100%; box-sizing: border-box; position: static;
  border: 2px dashed rgba(230,46,107,.45);
  background: linear-gradient(180deg, rgba(230,46,107,.07), rgba(245,197,66,.05));
  border-radius: 14px; padding: 26px 18px; margin-top: 14px;
  text-align: center; cursor: pointer; transition: border-color .2s, background .2s, transform .2s;
}
.upload-box:hover { border-color: var(--rose); background: rgba(230,46,107,.11); }
.upload-box.dragover { border-color: var(--gold); background: rgba(245,197,66,.13); transform: scale(1.01); }
.upload-box .ub-icon { font-size: 34px; line-height: 1; }
.upload-box .ub-title { font-size: 15px; font-weight: 700; color: var(--txt); margin-top: 10px; }
.upload-box .ub-sub { font-size: 12px; color: var(--txt-dim); margin-top: 5px; }
.upload-box .ub-target {
  display: inline-block; margin-top: 12px; font-size: 12px;
  color: var(--gold); background: rgba(245,197,66,.09);
  border: 1px solid rgba(245,197,66,.28); border-radius: 20px; padding: 5px 14px;
}
.upload-box input[type=file] { display: none; }
/* 上传弹窗：等级段选择 */
.col-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.col-pick-btn {
  flex: 1 1 calc(50% - 4px); background: var(--bg-soft); border: 1px solid var(--line);
  color: var(--txt-dim); border-radius: 10px; padding: 11px 0; font-size: 13px; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.col-pick-btn:active { transform: scale(.97); }
.col-pick-btn.active { background: var(--grad); color: #fff; border-color: transparent; font-weight: 700; }
.video-file-row { display: flex; align-items: center; gap: 10px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-top: 8px; }
.video-file-row .vf-name { flex: 1; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.video-file-row .vf-size { font-size: 12px; color: var(--txt-dim); }

.admin-ver {
  position: fixed; bottom: 74px; left: 0; right: 0;
  text-align: center; font-size: 11px; color: rgba(255,255,255,.25);
  pointer-events: none; z-index: 20;
}

/* 空安全 */

.hidden { display: none !important; }

/* ============================================================
   2026-09 学员端新版（vtk- 前缀，与管理端类名隔离）
   ============================================================ */

/* 底部弹层（分享 / 联系老师 / 目录抽屉共用） */
.vtk-sheet-mask {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(5,3,8,.72);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: flex; align-items: flex-end; justify-content: center;
  animation: vtkFade .2s ease;
}
.vtk-sheet {
  width: 100%; max-width: 640px;
  background: linear-gradient(180deg, #241a30, #17111f);
  border: 1px solid rgba(255,255,255,.12);
  border-bottom: none;
  border-radius: 20px 20px 0 0;
  padding: 10px 20px calc(26px + env(safe-area-inset-bottom));
  position: relative;
  max-height: 84vh; overflow-y: auto;
  animation: vtkUp .28s cubic-bezier(.2,.9,.3,1.2);
  box-shadow: 0 -18px 50px rgba(0,0,0,.55);
}
@keyframes vtkFade { from { opacity: 0; } }
@keyframes vtkUp { from { transform: translateY(46px); opacity: .4; } }
.vtk-sheet-bar {
  width: 44px; height: 4px; border-radius: 2px;
  background: rgba(255,255,255,.18); margin: 0 auto 12px;
}
.vtk-sheet-x {
  position: absolute; right: 14px; top: 18px; z-index: 2;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: none;
  color: var(--txt-dim); font-size: 14px; cursor: pointer;
}
.vtk-sheet-x:active { background: rgba(255,255,255,.16); }

/* 分享 */
.vtk-share { text-align: center; padding: 6px 4px 4px; }
.vtk-share-ic {
  width: 58px; height: 58px; margin: 2px auto 12px;
  border-radius: 18px; background: var(--grad-gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: #1a1206; font-weight: 800;
  box-shadow: 0 10px 26px rgba(245,197,66,.35);
}
.vtk-share-t { font-size: 17px; font-weight: 800; }
.vtk-share-d { font-size: 12.5px; color: var(--txt-dim); line-height: 1.8; margin-top: 8px; }
.vtk-share-d b { color: var(--rose); }
.vtk-share-url {
  margin-top: 14px; font-size: 14px; color: var(--gold);
  background: rgba(245,197,66,.08); border: 1px dashed rgba(245,197,66,.4);
  border-radius: 10px; padding: 11px; word-break: break-all; line-height: 1.5;
}
.vtk-share-note { font-size: 11.5px; color: var(--txt-dim); margin-top: 12px; line-height: 1.7; }

/* 联系老师 */
.vtk-teacher { text-align: center; padding: 4px 2px; }
.vtk-teacher-t { font-size: 17px; font-weight: 800; }
.vtk-teacher-d { font-size: 12.5px; color: var(--txt-dim); margin-top: 6px; line-height: 1.8; }
.vtk-teacher-qr {
  width: 132px; height: 132px; object-fit: contain;
  border-radius: 12px; background: #fff; padding: 7px; margin-top: 14px;
}
.vtk-teacher-wx { font-size: 15px; color: var(--gold); margin-top: 14px; }
.vtk-teacher-wx b { letter-spacing: .5px; }
.vtk-teacher-note { font-size: 12px; color: var(--txt-dim); margin-top: 14px; line-height: 1.7; }
.vtk-teacher-steps { margin-top: 16px; text-align: left; }
.vtk-step {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 12.5px; color: var(--txt-dim); line-height: 1.6;
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
  border-radius: 10px; padding: 9px 12px; margin-top: 8px;
}
.vtk-step i {
  flex: none; width: 18px; height: 18px; border-radius: 50%;
  background: var(--grad); color: #fff; font-style: normal;
  font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}

/* ============ 首页（学员端） ============ */
.vtk-home .topbar { padding-top: 12px; padding-bottom: 12px; }
.vtk-icon-btn {
  display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid rgba(245,197,66,.45); background: rgba(245,197,66,.08);
  color: var(--gold); border-radius: 18px; padding: 7px 13px;
  font-size: 12.5px; font-weight: 700; cursor: pointer;
  transition: transform .12s ease;
}
.vtk-icon-btn:active { transform: scale(.95); }
.vtk-banner {
  position: relative; overflow: hidden; margin-top: 16px;
  border-radius: 18px; padding: 18px 16px 16px;
  background:
    radial-gradient(ellipse 80% 120% at 100% 0%, rgba(230,46,107,.35), transparent 55%),
    radial-gradient(ellipse 70% 100% at 0% 110%, rgba(142,45,226,.30), transparent 60%),
    linear-gradient(135deg, #241a30, #17111f);
  border: 1px solid var(--line);
}
.vtk-banner .b1 { font-size: 18px; font-weight: 800; letter-spacing: 1px; }
.vtk-banner .b2 { font-size: 12px; color: var(--txt-dim); margin-top: 6px; line-height: 1.7; }
.vtk-banner .b2 b { color: var(--gold); }
.vtk-banner-row { display: flex; gap: 10px; margin-top: 14px; }
.vtk-banner-row .btn { flex: 1; }

/* 已开通统计条 */
.vtk-progress-strip {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 12px 14px; margin-top: 14px;
}
.vtk-progress-strip .ps-ring { flex: none; }
.vtk-progress-strip .ps-info { flex: 1; min-width: 0; }
.vtk-progress-strip .ps-t { font-size: 14px; font-weight: 700; }
.vtk-progress-strip .ps-d { font-size: 12px; color: var(--txt-dim); margin-top: 3px; }

/* 环形进度 */
.vtk-ring { position: relative; width: 46px; height: 46px; }
.vtk-ring svg { transform: rotate(-90deg); }
.vtk-ring .ring-bg { stroke: rgba(255,255,255,.1); }
.vtk-ring .ring-fg { stroke: url(#vtkGrad); stroke-linecap: round; transition: stroke-dashoffset .5s ease; }
.vtk-ring .ring-txt {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: var(--gold);
}

/* ============ 专栏卡片（新版） ============ */
.vtk-col-card {
  position: relative; border-radius: 18px; overflow: hidden;
  background: var(--card); border: 1px solid var(--line);
  cursor: pointer; transition: transform .12s ease, border-color .2s;
  display: flex; flex-direction: column;
}
.vtk-col-card:active { transform: scale(.975); }
.vtk-col-card.granted:hover { border-color: rgba(245,197,66,.4); }
.vtk-col-card.locked { opacity: .88; }
.vtk-col-head {
  position: relative; padding: 16px 16px 13px;
  display: flex; align-items: center; gap: 12px;
  background:
    radial-gradient(ellipse 90% 140% at 110% -20%, rgba(230,46,107,.28), transparent 55%),
    radial-gradient(ellipse 70% 120% at -10% 130%, rgba(142,45,226,.24), transparent 55%),
    #1d1527;
}
.vtk-col-badge {
  width: 50px; height: 50px; flex: none; border-radius: 15px;
  background: var(--grad); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800; letter-spacing: 1px;
  box-shadow: 0 8px 20px rgba(230,46,107,.35);
}
.vtk-col-card.locked .vtk-col-badge {
  background: #332a3f; color: var(--txt-dim);
  box-shadow: none;
}
.vtk-col-name { font-size: 17px; font-weight: 800; line-height: 1.3; }
.vtk-col-sub { font-size: 11.5px; color: var(--txt-dim); letter-spacing: .5px; margin-top: 2px; }
.vtk-col-foot {
  padding: 11px 16px 14px;
  border-top: 1px dashed rgba(255,255,255,.09);
  display: flex; align-items: center; gap: 10px;
}
.vtk-col-count { font-size: 12px; color: var(--txt-dim); }
.vtk-col-count b { color: var(--txt); }
.vtk-col-go {
  margin-left: auto; flex: none;
  font-size: 12px; color: var(--txt-dim);
}
.vtk-col-card.granted .vtk-col-go { color: var(--gold); }
.vtk-card-lock {
  margin-left: auto; flex: none;
  font-size: 11px; color: var(--gold);
  background: rgba(245,197,66,.1); border: 1px solid rgba(245,197,66,.35);
  border-radius: 14px; padding: 4px 10px;
}
.vtk-card-expired {
  margin-left: auto; flex: none;
  font-size: 11px; color: var(--rose);
  background: rgba(230,46,107,.12); border: 1px solid rgba(230,46,107,.4);
  border-radius: 14px; padding: 4px 10px;
}
.vtk-col-mini { margin-left: 2px; font-size: 11.5px; color: var(--txt-dim); }

/* ============ 课程页（专栏详情） ============ */
.vtk-page { max-width: 760px; margin: 0 auto; padding: 0 14px 90px; }
.vtk-top {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 4px;
  background: rgba(13,10,18,.9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.vtk-back {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.07); border: 1px solid var(--line);
  color: var(--txt); font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.vtk-back:active { transform: scale(.93); }
.vtk-top-mid { flex: 1; min-width: 0; }
.vtk-top-t { font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vtk-top-s { font-size: 11px; color: var(--txt-dim); margin-top: 1px; }
.vtk-top .vtk-icon-btn { flex: none; }

/* 专栏 Hero */
.vtk-hero {
  position: relative; overflow: hidden;
  border-radius: 20px; margin-top: 8px; padding: 20px 18px 16px;
  background:
    radial-gradient(ellipse 90% 150% at 110% -30%, rgba(230,46,107,.40), transparent 55%),
    radial-gradient(ellipse 80% 130% at -15% 130%, rgba(142,45,226,.30), transparent 60%),
    linear-gradient(150deg, #281c36, #161020);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 14px 40px rgba(0,0,0,.35);
}
.vtk-hero-top { display: flex; align-items: center; gap: 13px; }
.vtk-hero-badge {
  width: 58px; height: 58px; flex: none; border-radius: 17px;
  background: var(--grad); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 800;
  box-shadow: 0 10px 26px rgba(230,46,107,.4);
}
.vtk-hero-name { font-size: 21px; font-weight: 800; letter-spacing: 1px; }
.vtk-hero-sub { font-size: 12px; color: rgba(255,255,255,.55); margin-top: 3px; letter-spacing: 2px; }
.vtk-hero-desc { font-size: 13px; color: rgba(255,255,255,.75); margin-top: 13px; line-height: 1.7; }
.vtk-hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.vtk-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; color: var(--txt-dim);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px; padding: 5px 12px;
}
.vtk-chip b { color: var(--txt); }
.vtk-chip.gold { color: var(--gold); border-color: rgba(245,197,66,.4); background: rgba(245,197,66,.08); }
.vtk-chip.green { color: var(--green); border-color: rgba(46,196,138,.4); background: rgba(46,196,138,.08); }
.vtk-chip.rose { color: var(--rose); border-color: rgba(230,46,107,.45); background: rgba(230,46,107,.1); }
.vtk-hero-cta { margin-top: 16px; }
.vtk-hero-cta .btn { flex: 1; }
.vtk-hero-progress { margin-top: 15px; }
.vtk-hp-top { display: flex; justify-content: space-between; font-size: 12px; color: var(--txt-dim); margin-bottom: 6px; }
.vtk-hp-top b { color: var(--gold); }

/* 章节小节列表（课程页 / 目录抽屉共用） */
.vtk-ep {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 12px 14px; margin-top: 10px;
  cursor: pointer; transition: transform .12s ease, border-color .2s;
}
.vtk-ep:active { transform: scale(.98); }
.vtk-ep .ep-num {
  flex: none; width: 34px; height: 34px; border-radius: 11px;
  background: var(--bg-soft); border: 1px solid var(--line);
  color: var(--txt-dim); font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.vtk-ep.cur .ep-num { background: var(--grad); color: #fff; border-color: transparent; }
.vtk-ep.locked .ep-num { background: transparent; color: #5b4d6b; }
.vtk-ep .ep-body { flex: 1; min-width: 0; }
.vtk-ep .ep-t { font-size: 14.5px; font-weight: 600; line-height: 1.4; }
.vtk-ep.locked .ep-t { color: var(--txt-dim); }
.vtk-ep .ep-m { font-size: 11.5px; color: var(--txt-dim); margin-top: 3px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.vtk-ep .ep-go { flex: none; font-size: 17px; color: var(--txt-dim); }
.vtk-ep.cur { border-color: rgba(245,197,66,.55); background: linear-gradient(180deg, rgba(245,197,66,.06), var(--card)); }
.vtk-ep.cur .ep-go { color: var(--gold); }
.vtk-ep .ep-pctbar { height: 3px; border-radius: 2px; background: rgba(255,255,255,.08); overflow: hidden; margin-top: 5px; max-width: 200px; }
.vtk-ep .ep-pctfill { height: 100%; background: var(--grad-gold); }
.vtk-mini-tag {
  display: inline-block; font-size: 10.5px; padding: 1px 8px; border-radius: 10px;
  background: rgba(46,196,138,.12); color: var(--green); border: 1px solid rgba(46,196,138,.3);
}
.vtk-mini-tag.lock { background: rgba(169,154,184,.1); color: var(--txt-dim); border-color: var(--line); }
.vtk-lock-note {
  display: flex; align-items: center; gap: 10px;
  background: rgba(230,46,107,.07); border: 1px dashed rgba(230,46,107,.35);
  border-radius: 14px; padding: 13px 14px; margin-top: 10px;
  color: var(--txt-dim); font-size: 12.5px; line-height: 1.6;
}
.vtk-lock-note b { color: var(--rose); }

/* ============ 播放页 ============ */
.vtk-watch-body { max-width: 1180px; margin: 0 auto; padding: 0 0 60px; }
.vtk-watch-main { display: flex; gap: 18px; align-items: flex-start; }
.vtk-watch-left { flex: 1; min-width: 0; }
.vtk-watch-aside {
  flex: none; width: 330px;
  position: sticky; top: 14px; max-height: calc(100vh - 40px); overflow-y: auto;
  border-radius: 16px; background: rgba(23,17,31,.6);
  border: 1px solid var(--line); padding: 12px;
}
@media (max-width: 959px) { .vtk-watch-aside { display: none; } }
.vtk-aside-t { font-size: 14px; font-weight: 800; padding: 4px 6px 8px; display: flex; align-items: center; justify-content: space-between; }
.vtk-aside-t small { font-size: 11px; color: var(--txt-dim); font-weight: 400; }

/* 播放器容器 */
.vtk-player { position: relative; background: #000; border-radius: 16px; overflow: hidden; }
.vtk-player video { width: 100%; display: block; max-height: 68vh; background: #000; }
.vtk-player .wm-corner { bottom: 42px; right: 12px; }
.vtk-player .wm-float { top: 0; left: 0; }
/* 容器全屏（防盗水印不丢） */
.vtk-fs {
  position: absolute; top: 10px; right: 10px; z-index: 6;
  width: 34px; height: 34px; border-radius: 10px;
  background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.9); font-size: 15px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .15s;
}
.vtk-fs:active { background: rgba(0,0,0,.7); }
.vtk-player:fullscreen, .vtk-player:-webkit-full-screen {
  display: flex; align-items: center; justify-content: center;
  background: #000; border-radius: 0; width: 100vw; height: 100vh;
}
.vtk-player:fullscreen video, .vtk-player:-webkit-full-screen video { max-height: 100vh; width: 100%; }
/* 防手机端长按呼出"存储视频/保存图片"菜单（iOS Safari 长按用） */
.vtk-watch-page, .vtk-watch-page * { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.vtk-player video { -webkit-touch-callout: none; }

/* 403 锁屏 */
.vtk-lockscreen { display: none; }
.vtk-lockscreen.show { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 56px 24px; text-align: center; }
.vtk-lock-ic {
  width: 74px; height: 74px; border-radius: 24px;
  background: linear-gradient(135deg, rgba(230,46,107,.25), rgba(142,45,226,.25));
  border: 1px solid rgba(230,46,107,.5);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
}
.vtk-lock-ic .lk { position: relative; }
.vtk-lockscreen .lt { font-size: 18px; font-weight: 800; margin-top: 14px; }
.vtk-lockscreen .ld { font-size: 13px; color: var(--txt-dim); margin-top: 8px; line-height: 1.8; max-width: 300px; }
.vtk-lockscreen .btn { max-width: 300px; margin-top: 18px; }

/* 播放页元信息 */
.vtk-meta { padding: 16px 16px 4px; }
.vtk-meta .mt-title { font-size: 19px; font-weight: 800; line-height: 1.45; }
.vtk-meta .mt-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.vtk-meta .mt-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.vtk-meta .mt-tag {
  font-size: 11px; color: var(--txt-dim);
  background: rgba(255,255,255,.05); border: 1px solid var(--line);
  border-radius: 6px; padding: 3px 8px;
}
.vtk-sec-t { font-size: 15px; font-weight: 800; margin: 18px 4px 2px; display: flex; align-items: center; gap: 8px; }
.vtk-sec-t small { font-size: 12px; color: var(--txt-dim); font-weight: 400; }

/* 播放页工具栏（倍速/画质） */
.vtk-tools {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 11px 12px; margin-top: 14px;
}
.vtk-tools .tk-label { font-size: 12px; color: var(--txt-dim); }
.vtk-tools .speed-btn { padding: 6px 12px; }

/* 播放页操作行 */
.vtk-actions { display: flex; gap: 10px; margin-top: 14px; }
.vtk-actions .btn { flex: 1; }
.vtk-actions .btn.ghost { flex: none; width: auto; padding: 13px 18px; }
.vtk-ep-inline { display: none; }
@media (max-width: 959px) {
  .vtk-ep-inline { display: block; }
}

/* 自动连播浮层（播完提示下一集） */
.vtk-nextcard {
  display: none; position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 0; z-index: 60; width: 100%; max-width: 640px;
}
.vtk-nextcard.show { display: block; animation: vtkUp .3s cubic-bezier(.2,.9,.3,1.1); }
.vtk-nextcard-in {
  margin: 0 12px calc(16px + env(safe-area-inset-bottom));
  border-radius: 16px; padding: 14px 16px;
  background: rgba(30,22,41,.96); border: 1px solid rgba(245,197,66,.45);
  box-shadow: 0 18px 50px rgba(0,0,0,.6);
  display: flex; align-items: center; gap: 12px;
}
.vtk-nextcard .nc-info { flex: 1; min-width: 0; }
.vtk-nextcard .nc-t { font-size: 12px; color: var(--txt-dim); }
.vtk-nextcard .nc-n { font-size: 14.5px; font-weight: 700; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vtk-nextcard .nc-count { font-size: 11px; color: var(--gold); margin-top: 2px; }
.vtk-nextcard button {
  border: none; border-radius: 12px; padding: 12px 16px; font-size: 13px; font-weight: 700; cursor: pointer;
}
.vtk-nextcard .nc-now { background: var(--grad-gold); color: #1a1206; }
.vtk-nextcard .nc-cancel { background: rgba(255,255,255,.08); color: var(--txt-dim); }
.vtk-nextcard .nc-cancel:active, .vtk-nextcard .nc-now:active { transform: scale(.96); }

/* 试看结束卡片 */
.vtk-endcard {
  display: none; flex-direction: column; align-items: center; text-align: center;
  padding: 46px 22px; gap: 4px;
}
.vtk-endcard.show { display: flex; }
.vtk-endcard .ec-ic { font-size: 40px; }
.vtk-endcard .ec-t { font-size: 18px; font-weight: 800; margin-top: 8px; }
.vtk-endcard .ec-d { font-size: 13px; color: var(--txt-dim); margin-top: 6px; line-height: 1.8; }
.vtk-endcard .btn { max-width: 320px; margin-top: 16px; }
.vtk-endcard .ec-sub { font-size: 11px; color: rgba(255,255,255,.3); margin-top: 10px; }

@media (min-width: 960px) {
  .vtk-watch-body { padding-left: 18px; padding-right: 18px; }
}
@media (max-width: 959px) {
  .vtk-watch-body { padding-top: 0; }
}
/* 播放页提示（续播/横屏）占满一行 */
.vtk-meta .resume-tip, .vtk-meta .orient-tip { width: 100%; margin: 2px 0 0; }

/* ============ 退出/中转/引导 统一 splash ============ */
.vtk-splash {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 32px 24px; position: relative; overflow: hidden;
  background-color: #0a070e;
  background-image:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(230,46,107,.20), transparent 60%),
    radial-gradient(ellipse 70% 50% at 85% 110%, rgba(245,197,66,.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 8% 95%, rgba(120,80,220,.12), transparent 55%);
}
.vtk-splash .logo {
  width: 66px; height: 66px; border-radius: 20px;
  background: linear-gradient(135deg, #e62e6b, #8e2de2);
  color: #fff; font-size: 32px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 32px rgba(230,46,107,.4);
}
.vtk-splash .s-name { font-size: 20px; font-weight: 800; letter-spacing: 1px; margin-top: 16px; }
.vtk-splash .s-sub { font-size: 11px; color: rgba(255,255,255,.5); letter-spacing: 3px; margin-top: 4px; }
.vtk-splash .s-msg { font-size: 13.5px; color: rgba(255,255,255,.75); margin-top: 18px; line-height: 1.8; }
.vtk-spin {
  width: 26px; height: 26px; margin-top: 22px;
  border: 3px solid rgba(255,255,255,.15); border-top-color: #f5c542;
  border-radius: 50%; animation: vtkSpin 1s linear infinite;
}
@keyframes vtkSpin { to { transform: rotate(360deg); } }
.vtk-splash .s-btn { margin-top: 22px; min-width: 220px; }

/* 登录页：课程体系条与信任提示 */
.login-more {
  position: relative; z-index: 1;
  width: 100%; max-width: 380px; margin-top: 14px; text-align: center;
}
.login-levels { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.login-levels .vtk-chip { background: rgba(255,255,255,.05); }
.login-try {
  font-size: 12.5px; color: var(--gold); margin-top: 12px; line-height: 1.7;
  background: rgba(245,197,66,.08); border: 1px solid rgba(245,197,66,.3);
  border-radius: 10px; padding: 8px 12px;
}
.login-try b { color: #fff; }
.login-flag { font-size: 11px; color: rgba(255,255,255,.4); margin-top: 12px; line-height: 1.7; }

/* 登录页：购课二维码块 */
.buy-box {
  position: relative; z-index: 1;
  width: 100%; max-width: 380px; margin-top: 14px;
  background: rgba(30,22,41,.96); border: 1px solid rgba(245,197,66,.4);
  border-radius: 16px; padding: 16px 18px 18px; text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
}
.buy-t { font-size: 16px; font-weight: 800; color: var(--gold); }
.buy-d { font-size: 12.5px; color: var(--txt-dim); line-height: 1.9; margin-top: 8px; }
.buy-d b { color: var(--gold); }
.buy-qr { margin-top: 12px; }
.buy-qr img { width: 150px; height: 150px; margin: 0 auto; }
.buy-qrnote { font-size: 12px; color: var(--txt); margin-top: 8px; font-weight: 600; }
.buy-wx { font-size: 13px; color: var(--gold); margin-top: 12px; }
.buy-wx b { letter-spacing: .5px; }
.buy-empty { font-size: 12px; color: var(--txt-dim); margin-top: 12px; line-height: 1.8; }

/* 登录页：免费试看 3 节 */
.free-box {
  position: relative; z-index: 1;
  width: 100%; max-width: 380px; margin-top: 14px;
}
.free-h { font-size: 16px; font-weight: 800; text-align: center; color: #fff; }
.free-sub { font-size: 12px; color: rgba(255,255,255,.55); text-align: center; margin-top: 4px; }
.free-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.free-card {
  position: relative; border-radius: 14px; overflow: hidden;
  background:
    radial-gradient(ellipse 120% 100% at 100% 0%, rgba(230,46,107,.35), transparent 55%),
    radial-gradient(ellipse 90% 90% at 0% 110%, rgba(142,45,226,.3), transparent 60%),
    linear-gradient(150deg, #2a2036, #17111f);
  border: 1px solid rgba(255,255,255,.14);
  padding: 14px 12px 12px; min-height: 118px;
  display: flex; flex-direction: column; cursor: pointer;
  transition: transform .12s ease, border-color .2s;
}
.free-card:active { transform: scale(.96); }
.free-card.empty { opacity: .55; cursor: default; }
.free-play {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--grad-gold); color: #1a1206;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; margin-bottom: 8px;
}
.free-t { font-size: 12.5px; font-weight: 700; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.free-d { font-size: 10.5px; color: var(--txt-dim); margin-top: 4px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.free-soon { font-size: 10px; color: var(--gold); margin-top: auto; padding-top: 6px; }
@media (max-width: 380px) { .free-grid { grid-template-columns: 1fr; } .free-card { min-height: 90px; flex-direction: row; align-items: center; gap: 10px; } .free-play { margin-bottom: 0; } .free-t { -webkit-line-clamp: 1; } .free-soon { margin-top: 0; margin-left: auto; padding-top: 0; } }

/* 播放页：本集简介 */
.vtk-meta .mt-desc {
  margin-top: 10px; padding: 9px 12px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
  border-radius: 10px; font-size: 12.5px; color: var(--txt-dim); line-height: 1.7;
}

/* 首页：授权提醒条 */
.vtk-alert {
  display: flex; align-items: center; gap: 10px;
  margin-top: 14px; padding: 11px 12px;
  background: rgba(245,197,66,.09); border: 1px solid rgba(245,197,66,.45);
  border-radius: 14px; font-size: 12.5px; line-height: 1.6;
}
.vtk-alert.urgent { background: rgba(230,46,107,.09); border-color: rgba(230,46,107,.5); }
.vtk-alert-ic { flex: none; font-size: 18px; }
.vtk-alert-body { flex: 1; min-width: 0; color: var(--txt-dim); }
.vtk-alert-body b { color: var(--txt); }
.vtk-alert-cta {
  flex: none; border: none; border-radius: 16px; padding: 7px 13px;
  background: var(--grad-gold); color: #1a1206; font-size: 12px; font-weight: 700; cursor: pointer;
}
.vtk-alert-cta:active { transform: scale(.96); }
.vtk-alert-x {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: none; color: var(--txt-dim); font-size: 11px; cursor: pointer;
}

/* 学完一专栏 → 进阶推荐卡 */
.vtk-rec {
  margin-top: 16px; border-radius: 18px; overflow: hidden;
  background:
    radial-gradient(ellipse 90% 140% at 110% -30%, rgba(245,197,66,.30), transparent 55%),
    radial-gradient(ellipse 70% 120% at -10% 130%, rgba(230,46,107,.22), transparent 55%),
    linear-gradient(150deg, #2a2036, #181226);
  border: 1px solid rgba(245,197,66,.35);
  padding: 16px; display: flex; align-items: center; gap: 14px;
}
.vtk-rec .rec-ic {
  flex: none; width: 52px; height: 52px; border-radius: 15px;
  background: var(--grad-gold); display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #1a1206;
}
.vtk-rec .rec-body { flex: 1; min-width: 0; }
.vtk-rec .rec-t { font-size: 15px; font-weight: 800; }
.vtk-rec .rec-d { font-size: 12px; color: var(--txt-dim); margin-top: 4px; line-height: 1.6; }
.vtk-rec .rec-btn {
  flex: none; border: none; border-radius: 14px; padding: 11px 16px;
  background: var(--grad); color: #fff; font-size: 13px; font-weight: 700; cursor: pointer;
}
.vtk-rec .rec-btn:active { transform: scale(.96); }

/* 首页：添加到主屏幕小提示 */
.vtk-home-tip {
  margin-top: 10px; font-size: 12px; color: var(--txt-dim); line-height: 1.7;
  background: rgba(142,45,226,.08); border: 1px dashed rgba(142,45,226,.35);
  border-radius: 12px; padding: 10px 14px;
}
.vtk-home-tip b { color: #c9a6f5; font-weight: 600; }

/* 首页：站点公告条 */
.vtk-notice {
  display: flex; align-items: flex-start; gap: 8px;
  margin-top: 14px; padding: 11px 13px;
  background: rgba(142,45,226,.1); border: 1px solid rgba(142,45,226,.4);
  border-radius: 14px; font-size: 13px; line-height: 1.7; color: var(--txt);
}
.vtk-notice-ic { flex: none; }
.vtk-notice span:last-child { flex: 1; min-width: 0; }

/* iPhone 刘海/底部安全区适配 */
.vtk-home .topbar { padding-top: calc(12px + env(safe-area-inset-top)); }
.vtk-top { padding-top: calc(12px + env(safe-area-inset-top)); }
.vtk-page { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
.vtk-watch-body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
.vtk-nextcard-in { margin-bottom: calc(16px + env(safe-area-inset-bottom)); }

/* ============================================================
   登录/主页首屏 · 简洁高级风（2026-09 重做，覆盖旧登录样式）
   ============================================================ */
body.login-page.lg-page { background: #0b0910; }
body.login-page.lg-page .bg-photo { display: none; }
.lg-root { position: relative; z-index: 1; width: 100%; max-width: 430px; margin: 0 auto; padding: 26px 22px calc(46px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 26px; }
/* 背景氛围 */
body.login-page.lg-page { background-image: radial-gradient(ellipse 70% 45% at 50% -5%, rgba(230,46,107,.16), transparent 60%), radial-gradient(ellipse 55% 40% at 88% 105%, rgba(245,197,66,.07), transparent 55%), radial-gradient(ellipse 50% 35% at 8% 100%, rgba(120,80,220,.10), transparent 55%); background-attachment: fixed; }

/* 宣传片 */
.lg-promo { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 22px; overflow: hidden; background: #000; border: 1px solid rgba(255,255,255,.10); box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.lg-promo video { width: 100%; height: 100%; object-fit: cover; display: block; }
.lg-promo-mask { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: linear-gradient(180deg, rgba(11,9,16,.05), rgba(11,9,16,.55)); cursor: pointer; }
.lg-play { width: 62px; height: 62px; border-radius: 50%; background: rgba(11,9,16,.35); border: 1px solid rgba(255,255,255,.55); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 17px; padding-left: 4px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: transform .18s ease, background .18s; }
.lg-promo-mask:active .lg-play { transform: scale(.93); }
.lg-play-t { font-size: 12px; letter-spacing: .35em; color: rgba(255,255,255,.85); }

/* 品牌区 */
.lg-brand { text-align: center; }
.lg-eyebrow { font-size: 11px; letter-spacing: .32em; color: #d9b45c; text-transform: uppercase; }
.lg-title { font-size: clamp(25px, 6.2vw, 30px); font-weight: 800; letter-spacing: .04em; color: #f6f1e9; margin-top: 14px; line-height: 1.35; }
.lg-lead { font-size: 12.5px; color: rgba(246,241,233,.5); margin-top: 12px; line-height: 1.8; letter-spacing: .02em; }

/* 分区 */
.lg-sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.lg-sec-t { font-size: 15px; font-weight: 800; letter-spacing: .1em; color: #f6f1e9; }
.lg-sec-t::before { content: ""; display: inline-block; width: 14px; height: 2px; background: linear-gradient(90deg,#f5c542,#e62e6b); margin-right: 8px; vertical-align: 3px; border-radius: 2px; }
.lg-sec-note { font-size: 11px; color: rgba(246,241,233,.4); letter-spacing: .08em; }

/* 免费试看：克制列表，细分割线 */
.lg-free { border-top: 1px solid rgba(255,255,255,.07); }
.lg-free-row { display: flex; align-items: center; gap: 14px; padding: 15px 4px; border-bottom: 1px solid rgba(255,255,255,.07); cursor: pointer; transition: background .15s; border-radius: 8px; }
.lg-free-row:active { background: rgba(255,255,255,.05); }
.lg-idx { font-family: Georgia, serif; font-size: 13px; color: #d9b45c; letter-spacing: .1em; }
.lg-free-t { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 600; color: #efe8dc; letter-spacing: .02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-arr { font-size: 22px; color: #d9b45c; font-weight: 300; }
.lg-free-row.empty { cursor: default; opacity: .5; }
.lg-soon { font-size: 11px; color: rgba(246,241,233,.45); letter-spacing: .1em; }

/* 登录表单：轻玻璃卡 */
.lg-login { background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.09); border-radius: 20px; padding: 20px 18px 18px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.lg-field { margin-bottom: 13px; }
.lg-field label { display: block; font-size: 11px; color: rgba(246,241,233,.55); letter-spacing: .15em; margin-bottom: 7px; }
.lg-field input { width: 100%; background: rgba(11,9,16,.55); border: 1px solid rgba(255,255,255,.10); border-radius: 12px; padding: 13px 15px; color: #f6f1e9; font-size: 15px; outline: none; transition: border-color .15s; }
.lg-field input:focus { border-color: rgba(245,197,66,.75); }
.lg-field input::placeholder { color: rgba(246,241,233,.3); }
.lg-btn { width: 100%; border: none; border-radius: 12px; padding: 14px 0; font-size: 15px; font-weight: 800; letter-spacing: .3em; color: #16100a; background: linear-gradient(135deg, #f5c542, #e9b63a); cursor: pointer; transition: opacity .15s, transform .1s; margin-top: 4px; }
.lg-btn:active { transform: scale(.98); }
.lg-btn:disabled { opacity: .55; }
.lg-tip { font-size: 11px; color: rgba(246,241,233,.42); text-align: center; margin-top: 12px; line-height: 1.7; }

/* 购课 */
.lg-buy { text-align: center; border-top: 1px solid rgba(255,255,255,.07); padding-top: 22px; }
.lg-buy-t { font-size: 15px; font-weight: 800; color: #f6f1e9; letter-spacing: .06em; }
.lg-buy-sub { font-size: 12px; color: rgba(246,241,233,.5); margin-top: 8px; line-height: 1.7; }
.lg-buy-qr { margin-top: 14px; }
.lg-buy-qr img { width: 128px; height: 128px; border-radius: 14px; background: #fff; padding: 7px; }
.lg-buy-wx { font-size: 13px; color: #d9b45c; margin-top: 12px; }
.lg-buy-wx b { letter-spacing: .04em; }
.lg-buy-empty { font-size: 11.5px; color: rgba(246,241,233,.4); margin-top: 12px; }

/* 脚注 */
.lg-foot { text-align: center; }
.lg-pack { font-size: 11px; color: rgba(246,241,233,.38); letter-spacing: .1em; line-height: 1.9; }
.lg-note { font-size: 10.5px; color: rgba(246,241,233,.26); margin-top: 8px; letter-spacing: .04em; }
body.login-page.lg-page { display: block !important; min-height: 100vh; padding: 0 !important; }

/* ============================================================
   课程页 / 播放页 · 简洁高级风统一（2026-09，仅学员端）
   ============================================================ */
.vtk-tap {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 7;
  width: 74px; height: 74px; border-radius: 50%; border: 1px solid rgba(255,255,255,.6);
  background: rgba(11,9,16,.45); color: #fff; font-size: 22px; padding-left: 5px;
  display: none; align-items: center; justify-content: center; cursor: pointer;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 18px 44px rgba(0,0,0,.45);
}
.vtk-tap.show { display: flex; animation: vtkTapIn .25s ease; }
.vtk-tap:active { transform: translate(-50%,-50%) scale(.94); }
@keyframes vtkTapIn { from { opacity: 0; transform: translate(-50%,-50%) scale(.8); } }

/* 页面底与字色向精致靠拢 */
body.vtk-home, body.vtk-watch-page, body { background: #0b0910; }
body.vtk-home .topbar { background: rgba(11,9,16,.85); border-bottom-color: rgba(255,255,255,.08); }
.vtk-top { background: rgba(11,9,16,.9); }
.vtk-top-t { letter-spacing: .04em; }
.vtk-top-s { letter-spacing: .14em; }

/* 通用容器精致化 */
.vtk-home .page, .vtk-page, .vtk-watch-body { }
.vtk-home .col-head h2, .vtk-sec-t { letter-spacing: .08em; }
.vtk-icon-btn { border-radius: 20px; }

/* 卡片：轻透 + 细描边 + 统一圆角 */
.resume-card, .col-card, .vtk-col-card, .vtk-ep, .contact-card,
.vtk-progress-strip, .vtk-tools, .vtk-banner, .vtk-hero, .vtk-rec {
  border-radius: 18px;
  background: rgba(255,255,255,.045);
  border-color: rgba(255,255,255,.09);
}
.vtk-banner, .vtk-hero, .vtk-col-head {
  background-image:
    radial-gradient(ellipse 90% 130% at 105% -20%, rgba(230,46,107,.16), transparent 55%),
    radial-gradient(ellipse 70% 110% at -10% 130%, rgba(142,45,226,.14), transparent 60%),
    linear-gradient(150deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
}
.vtk-col-badge, .vtk-hero-badge { box-shadow: 0 10px 24px rgba(230,46,107,.28); }
.vtk-col-card.locked .vtk-col-badge, .vtk-hero .vtk-hero-badge { }
.vtk-ep { margin-top: 9px; }
.vtk-ep.cur { border-color: rgba(245,197,66,.5); background: linear-gradient(180deg, rgba(245,197,66,.07), rgba(255,255,255,.03)); }

/* 主行动按钮：暖金实底 */
body.vtk-home .btn.gold, .vtk-page .btn.gold, .vtk-watch-page .btn.gold,
.vtk-banner-row .btn.gold, .vtk-nextcard .nc-now, .vtk-actions .btn.gold, .vtk-ep-inline .btn, .vtk-meta .btn.gold {
  background: linear-gradient(135deg, #f0c04a, #e0a93a); color: #1a1206; font-weight: 700; letter-spacing: .06em;
}

/* 标签/徽章收敛 */
.tag, .vtk-chip, .vtk-mini-tag, .f-btn { letter-spacing: .02em; }

/* 进度细节 */
.prog-fill, .ep-pctfill { background: linear-gradient(90deg, #f0c04a, #e62e6b); }
.ring-fg { stroke: url(#vtkGrad); }

/* 顶栏按钮/返回 */
.vtk-back { border-radius: 50%; background: rgba(255,255,255,.06); }

/* 播放器壳 */
.vtk-player { border-radius: 18px; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.vtk-aside { border-radius: 18px; background: rgba(255,255,255,.035); }

/* 弹层底 sheet */
.vtk-sheet { border-radius: 22px 22px 0 0; background: linear-gradient(180deg, #1d1726, #120e18); }

/* 预警/提示条轻量化边 */
.warn-box, .resume-tip, .orient-tip, .vtk-lock-note, .preview-banner { border-radius: 12px; }

/* 主页(免费试看首页) 顶栏与提示 */
.lg-toprow { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lg-topbrand { display: flex; align-items: center; gap: 10px; }
.lg-logo { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg,#e62e6b,#8e2de2); color: #fff; font-size: 20px; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(230,46,107,.35); }
.lg-name { font-size: 15px; font-weight: 800; color: #f6f1e9; letter-spacing: .04em; }
.lg-name small { display: block; font-size: 9px; color: rgba(246,241,233,.4); letter-spacing: .18em; font-weight: 400; }
.lg-gologin { border: 1px solid rgba(245,197,66,.55); background: rgba(245,197,66,.12); color: #f0c04a; border-radius: 999px; padding: 9px 18px; font-size: 13px; font-weight: 700; cursor: pointer; letter-spacing: .05em; }
.lg-gologin:active { transform: scale(.96); }
.lg-free-cta { text-align: center; font-size: 11.5px; color: rgba(246,241,233,.45); margin-top: 12px; letter-spacing: .04em; }
.lg-sec { scroll-margin-top: 18px; }

/* 主页购课二维码：点击展开式 */
.lg-qrbtn { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 10px; background: none; border: none; padding: 0; cursor: pointer; text-align: left; }
.lg-qrbtn .lg-buy-t { font-size: 15px; font-weight: 800; color: #f6f1e9; letter-spacing: .06em; }
.lg-qrarr { flex: none; font-size: 14px; color: #d9b45c; transition: transform .2s; }
.lg-qrbtn.open .lg-qrarr { transform: rotate(180deg); }
.lg-qrarea { margin-top: 14px; }
.lg-buy-qr img { width: 128px; height: 128px; border-radius: 14px; background: #fff; padding: 7px; }
.lg-qrnote { font-size: 12px; color: #d9b45c; margin-top: 8px; }

/* 购课二维码展开钮：黑字金底（可点击感强） */
.lg-qrbtn { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 10px; background: linear-gradient(135deg, #f0c04a, #e0a93a); border: none; border-radius: 14px; padding: 15px 16px; cursor: pointer; text-align: left; box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.lg-qrbtn:active { transform: scale(.985); }
.lg-qrbtn .lg-qr-txt { font-size: 14.5px; font-weight: 800; color: #1a1206; letter-spacing: .02em; line-height: 1.4; }
.lg-qrarr { flex: none; font-size: 16px; color: #1a1206; font-weight: 900; transition: transform .2s; }
.lg-qrbtn.open .lg-qrarr { transform: rotate(180deg); }
.lg-qrsub { font-size: 11.5px; color: rgba(246,241,233,.5); margin-top: 10px; line-height: 1.6; text-align: center; }

/* 页脚：一行居左小字 + ICP 最底 */
.lg-foot { text-align: left; }
.lg-pack { font-size: 10.5px; color: rgba(246,241,233,.42); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-note { font-size: 10px; color: rgba(246,241,233,.28); margin-top: 8px; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-icp { font-size: 8.5px; color: rgba(246,241,233,.24); margin-top: 10px; letter-spacing: .05em; }

/* 主页免费试看：展开播放窗口 + 三个切换 */
.lg-free-player { position: relative; border-radius: 18px; overflow: hidden; background: #000; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 22px 55px rgba(0,0,0,.45); }
.lg-free-player video { width: 100%; display: block; aspect-ratio: 16/9; background: #000; }
.lg-free-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 64px; height: 64px; border-radius: 50%; border: 1px solid rgba(255,255,255,.55); background: rgba(11,9,16,.4); color: #fff; font-size: 20px; padding-left: 4px; display: flex; align-items: center; justify-content: center; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.lg-free-play:active { transform: translate(-50%,-50%) scale(.94); }
.lg-free-none { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.55); font-size: 13px; background: rgba(0,0,0,.6); }
.lg-free-tabs { display: flex; gap: 8px; margin-top: 10px; }
.lg-free-tab { flex: 1; min-width: 0; padding: 10px 4px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); color: rgba(246,241,233,.85); font-size: 11.5px; cursor: pointer; line-height: 1.35; letter-spacing: .01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-free-tab.active { background: linear-gradient(135deg,#f0c04a,#e0a93a); color: #1a1206; font-weight: 700; border-color: transparent; }
.lg-free-tab.off { opacity: .45; }

/* 免费视频窗口收窄到与登录卡一致（居中） */
.lg-free-player { max-width: 340px; margin-left: auto; margin-right: auto; }
.lg-free-tabs { max-width: 340px; margin-left: auto; margin-right: auto; }
.lg-free-cta { max-width: 340px; margin-left: auto; margin-right: auto; }

/* 免费视频窗口：满宽贴边 + 直角 */
.lg-free-player { max-width: none; border-radius: 0; margin-left: 0; margin-right: 0; }
.lg-free-player video { border-radius: 0; }
.lg-free-tabs { max-width: none; margin-left: 0; margin-right: 0; }
.lg-free-cta { max-width: none; margin-left: 0; margin-right: 0; }

/* 页脚：居中、行距收紧 */
.lg-foot { text-align: center; }
.lg-foot .lg-pack, .lg-foot .lg-note, .lg-foot .lg-icp { margin-left: auto; margin-right: auto; }
.lg-foot .lg-pack { margin-top: 0; }
.lg-foot .lg-note { margin-top: 6px; }
.lg-foot .lg-icp { margin-top: 6px; }

/* 间歇全号闪现水印（取证） */
.wm-flash {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); z-index: 3;
  color: rgba(255,255,255,.6); font-size: clamp(15px,3vw,24px); font-weight: 800;
  letter-spacing: 3px; white-space: nowrap;
  opacity: 0; transition: opacity .3s; pointer-events: none;
  text-shadow: 0 0 10px rgba(0,0,0,.9), 0 1px 3px rgba(0,0,0,.8);
}
.wm-flash.show { opacity: 1; }
