/* ============================================================
   办公百事通 · PC 端在线学习平台
   Design System  v1.0
   ============================================================ */
:root {
  --c-primary: #2f54eb;
  --c-primary-dark: #1d39c4;
  --c-primary-light: #f0f4ff;
  --c-accent: #ff6a00;
  --c-price: #ff4d4f;
  --c-success: #16a34a;
  --c-warning: #f59e0b;
  --c-text: #1f2329;
  --c-text2: #646a73;
  --c-text3: #8f959e;
  --c-bg: #f5f7fa;
  --c-card: #ffffff;
  --c-line: #e7eaf0;
  --c-vip-1: #3b2c20;
  --shadow-sm: 0 1px 3px rgba(31, 35, 41, .08);
  --shadow-md: 0 6px 18px rgba(31, 35, 41, .10);
  --shadow-lg: 0 12px 32px rgba(31, 35, 41, .14);
  --radius: 10px;
  --radius-lg: 14px;
  --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 14px;
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.6;
  min-width: 1200px;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--c-primary); }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
button { font-family: var(--font); cursor: pointer; }
input, select, textarea { font-family: var(--font); outline: none; }

.container { width: 1200px; margin: 0 auto; }

/* ---------------- 顶部 ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.header-inner { display: flex; align-items: center; height: 68px; gap: 28px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--c-primary), #6a8bff);
  color: #fff; font-size: 20px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.logo-name { font-size: 20px; font-weight: 700; color: var(--c-text); letter-spacing: .5px; }
.logo-name:hover { color: var(--c-text); }
.logo-sub { font-size: 11px; color: var(--c-text3); letter-spacing: 2px; display: block; margin-top: -4px; }

.main-nav { display: flex; gap: 6px; }
.main-nav a {
  padding: 8px 16px; border-radius: 8px;
  font-size: 15px; font-weight: 500; color: var(--c-text);
}
.main-nav a:hover { background: var(--c-primary-light); color: var(--c-primary); }
.main-nav a.active { background: var(--c-primary-light); color: var(--c-primary); font-weight: 600; }

.header-search { flex: 1; max-width: 380px; position: relative; }
.header-search input {
  width: 100%; height: 40px; border: 1.5px solid var(--c-line); border-radius: 20px;
  padding: 0 52px 0 18px; font-size: 14px; background: var(--c-bg);
  transition: all .2s;
}
.header-search input:focus { border-color: var(--c-primary); background: #fff; }
.header-search button {
  position: absolute; right: 4px; top: 4px; width: 34px; height: 32px;
  border: none; border-radius: 16px; background: var(--c-primary); color: #fff;
  font-size: 14px;
}
.header-search button:hover { background: var(--c-primary-dark); }

.header-right { margin-left: auto; display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.btn-vip-entry {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 16px; border-radius: 18px; font-size: 13px; font-weight: 600;
  color: #8a5a00; background: linear-gradient(135deg, #ffe9c2, #ffd591);
  border: 1px solid #ffd591;
}
.btn-vip-entry:hover { color: #6d4700; box-shadow: var(--shadow-sm); }

.header-user { position: relative; }
.header-user .user-trigger { display: flex; align-items: center; gap: 9px; cursor: pointer; padding: 4px 6px; border-radius: 8px; }
.header-user .user-trigger:hover { background: var(--c-bg); }
.user-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--c-line); }
.user-avatar-default {
  width: 34px; height: 34px; border-radius: 50%; background: var(--c-primary-light);
  color: var(--c-primary); display: flex; align-items: center; justify-content: center; font-weight: 600;
}
.user-name { max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.user-dropdown {
  position: absolute; right: 0; top: calc(100% + 8px); width: 168px;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 6px; display: none; border: 1px solid var(--c-line);
}
/* 悬停桥：补上头像与菜单之间的 8px 空隙。
   没有它，鼠标从触发器滑向菜单时会短暂离开 .header-user，:hover 断开导致菜单闪没、点不到。
   这块透明区域属于 .user-dropdown（其子伪元素），悬停它 = 悬停 .header-user，滑动路径全程连续 */
.user-dropdown::before {
  content: ""; position: absolute; left: -14px; right: -14px;
  top: -12px; height: 12px;
}
.header-user:hover .user-dropdown, .header-user.open .user-dropdown { display: block; }
.user-dropdown a { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 8px; font-size: 13.5px; color: var(--c-text); }
.user-dropdown a:hover { background: var(--c-primary-light); color: var(--c-primary); }
.user-dropdown .divider { height: 1px; background: var(--c-line); margin: 5px 8px; }
.vip-tag-mini {
  font-size: 10px; padding: 1px 6px; border-radius: 8px; color: #8a5a00;
  background: linear-gradient(135deg, #ffe9c2, #ffd591); font-weight: 600; margin-left: auto;
}

.auth-links { display: flex; align-items: center; gap: 10px; }
.auth-links .login-link { font-size: 14.5px; font-weight: 500; }
.auth-links .reg-btn {
  padding: 7px 18px; border-radius: 18px; font-size: 13.5px; font-weight: 600;
  background: var(--c-primary); color: #fff;
}
.auth-links .reg-btn:hover { background: var(--c-primary-dark); color: #fff; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 22px; border-radius: 8px; border: 1px solid transparent;
  font-size: 14.5px; font-weight: 500; transition: all .18s; white-space: nowrap;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary-dark); color: #fff; }
.btn-outline { border-color: var(--c-primary); color: var(--c-primary); background: #fff; }
.btn-outline:hover { background: var(--c-primary-light); color: var(--c-primary); }
.btn-ghost { border-color: var(--c-line); color: var(--c-text); background: #fff; }
.btn-ghost:hover { border-color: var(--c-primary); color: var(--c-primary); }
.btn-danger { background: var(--c-price); color: #fff; }
.btn-danger:hover { background: #d9363e; color: #fff; }
.btn-lg { height: 46px; padding: 0 30px; font-size: 16px; border-radius: 10px; }
.btn-sm { height: 32px; padding: 0 14px; font-size: 13px; border-radius: 7px; }
.btn-block { width: 100%; }
.btn-gradient-orange { background: linear-gradient(135deg, #ff8f1f, #ff6a00); color: #fff; }
.btn-gradient-orange:hover { filter: brightness(.95); color: #fff; }

/* ---------------- 标签 ---------------- */
.tag { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 5px; font-size: 12px; line-height: 20px; }
.tag-vip { color: #8a5a00; background: linear-gradient(135deg, #ffe9c2, #ffd591); font-weight: 600; }
.tag-free { color: var(--c-success); background: #e8f7ee; font-weight: 500; }
.tag-blue { color: var(--c-primary); background: var(--c-primary-light); font-weight: 500; }
.tag-gray { color: var(--c-text3); background: var(--c-bg); }

/* ---------------- 区块 ---------------- */
.section { margin-top: 44px; }
.section-head { display: flex; align-items: baseline; margin-bottom: 20px; }
.section-title { font-size: 24px; font-weight: 700; letter-spacing: .5px; }
.section-sub { margin-left: 14px; color: var(--c-text3); font-size: 13.5px; }
.section-more { margin-left: auto; color: var(--c-text2); font-size: 13.5px; }
.section-more:hover { color: var(--c-primary); }

/* ---------------- 课程卡片 ---------------- */
.course-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.course-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.course-card {
  background: var(--c-card); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: all .22s; cursor: pointer;
  display: flex; flex-direction: column;
}
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.course-card .cover-wrap { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #e9edf3; }
.course-card .cover { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.course-card:hover .cover { transform: scale(1.05); }
.course-card .cover-fallback {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #4c6ef5, #2f54eb); color: #fff; font-size: 30px; font-weight: 700;
}
.course-card .card-vip {
  position: absolute; left: 10px; top: 10px;
  background: linear-gradient(135deg, #ffb800, #ff7a00); color: #fff;
  font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 4px 4px 4px 0;
}
.course-card .card-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.course-card .card-title {
  font-size: 15.5px; font-weight: 600; line-height: 1.45; height: 45px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.course-card .card-meta { margin-top: auto; padding-top: 12px; display: flex; align-items: center; color: var(--c-text3); font-size: 12.5px; gap: 12px; }
.course-card .card-price-row { display: flex; align-items: center; margin-top: 6px; }
.price { color: var(--c-price); font-weight: 700; font-size: 18px; }
.price::before { content: "¥"; font-size: 13px; margin-right: 1px; }
.price-free { color: var(--c-success); font-weight: 700; font-size: 16px; }
.price-strike { color: var(--c-text3); font-size: 12.5px; text-decoration: line-through; margin-left: 8px; }
/* 会员专享徽标（课程价格不外显） */
.price-exclusive {
  display: inline-block; padding: 3px 14px; border-radius: 15px;
  background: linear-gradient(135deg, #ffb800, #ff7a00); color: #fff;
  font-size: 13px; font-weight: 700; letter-spacing: .5px; line-height: 1.5;
}
/* 免费专区占位卡片 */
.course-card.ph { cursor: default; }
.course-card.ph:hover { transform: none; box-shadow: var(--shadow-sm); }
.course-card.ph:hover .cover { transform: none; }
.course-card.ph .ph-tag {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 0; z-index: 2;
  background: rgba(15, 20, 34, .58); color: #fff; font-size: 13px; font-weight: 600;
  text-align: center; letter-spacing: 2px;
}

/* ---------------- Banner ---------------- */
.hero { margin-top: 24px; }
.hero-banner {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; height: 340px;
  background: linear-gradient(120deg, #1d39c4 0%, #2f54eb 45%, #6a8bff 100%);
  color: #fff; display: flex; align-items: center;
}
.hero-banner::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 420px; height: 420px;
  border-radius: 50%; background: rgba(255,255,255,.08);
}
.hero-banner::before {
  content: ""; position: absolute; right: 120px; bottom: -140px; width: 320px; height: 320px;
  border-radius: 50%; background: rgba(255,255,255,.06);
}
.hero-content { position: relative; z-index: 2; padding: 0 64px; max-width: 640px; }
.hero-title { font-size: 38px; font-weight: 800; letter-spacing: 1px; line-height: 1.3; }
.hero-desc { margin-top: 14px; font-size: 16px; opacity: .88; }
.hero-actions { margin-top: 28px; display: flex; gap: 14px; }
.hero-stats { position: absolute; right: 64px; bottom: 40px; z-index: 2; display: flex; gap: 44px; }
.hero-stats .stat { text-align: center; }
.hero-stats .num { font-size: 26px; font-weight: 800; }
.hero-stats .label { font-size: 12.5px; opacity: .8; }

/* ---------------- VIP 横幅 ---------------- */
.vip-banner {
  border-radius: var(--radius-lg); padding: 30px 40px; display: flex; align-items: center;
  background: linear-gradient(120deg, #2b2118, #4a3722 60%, #6b4f2e); color: #f5e6c8;
  position: relative; overflow: hidden;
}
.vip-banner::after {
  content: "VIP"; position: absolute; right: 28px; top: -14px; font-size: 110px; font-weight: 900;
  color: rgba(255, 205, 120, .12); letter-spacing: 6px;
}
.vip-banner .vb-title { font-size: 24px; font-weight: 800; color: #ffd591; letter-spacing: 1px; }
.vip-banner .vb-desc { margin-top: 6px; opacity: .85; font-size: 14px; }
.vip-banner .btn { margin-left: auto; position: relative; z-index: 2; }

/* ---------------- 分类条 ---------------- */
.cate-strip { display: flex; gap: 14px; flex-wrap: wrap; }
.cate-chip {
  padding: 10px 22px; background: #fff; border-radius: 10px; font-size: 15px; font-weight: 500;
  color: var(--c-text); box-shadow: var(--shadow-sm); transition: all .18s; cursor: pointer;
  display: flex; align-items: center; gap: 8px;
}
.cate-chip:hover, .cate-chip.active { background: var(--c-primary); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ---------------- 名师 ---------------- */
.teacher-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.teacher-card {
  background: #fff; border-radius: var(--radius-lg); padding: 28px 22px; text-align: center;
  box-shadow: var(--shadow-sm); transition: all .2s;
}
.teacher-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.teacher-card .avatar { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; border: 3px solid var(--c-primary-light); }
.teacher-card .t-name { font-size: 17px; font-weight: 700; }
.teacher-card .t-intro { margin-top: 8px; color: var(--c-text2); font-size: 13px; height: 44px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* ---------------- 面包屑 ---------------- */
.breadcrumb { display: flex; align-items: center; padding: 18px 0; color: var(--c-text3); font-size: 13.5px; gap: 8px; }
.breadcrumb a:hover { color: var(--c-primary); }
.breadcrumb .sep { color: #c9cdd4; }

/* ---------------- 课程列表页 ---------------- */
.list-layout { display: flex; gap: 24px; align-items: flex-start; padding-bottom: 48px; }
.side-panel { width: 240px; flex-shrink: 0; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.side-title { padding: 16px 20px 10px; font-size: 16px; font-weight: 700; }
.cate-tree { padding: 0 8px 12px; }
.cate-tree a { display: block; padding: 10px 14px; border-radius: 8px; font-size: 14px; color: var(--c-text); }
.cate-tree a:hover { background: var(--c-primary-light); color: var(--c-primary); }
.cate-tree a.active { background: var(--c-primary); color: #fff; font-weight: 600; }
.cate-tree a.child { padding-left: 30px; font-size: 13.5px; color: var(--c-text2); }
.list-main { flex: 1; min-width: 0; }
.filter-bar {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  padding: 14px 22px; display: flex; align-items: center; gap: 10px;
}
.filter-bar .f-label { color: var(--c-text3); font-size: 13.5px; margin-right: 4px; }
.filter-item { padding: 6px 16px; border-radius: 17px; font-size: 13.5px; color: var(--c-text2); cursor: pointer; border: 1px solid transparent; }
.filter-item:hover { color: var(--c-primary); }
.filter-item.active { background: var(--c-primary-light); color: var(--c-primary); font-weight: 600; border-color: #c3d0ff; }
.result-tip { padding: 18px 4px; color: var(--c-text3); font-size: 13.5px; }
.result-tip b { color: var(--c-primary); }

/* ---------------- 分页 ---------------- */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 36px 0 10px; }
.pagination button {
  min-width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--c-line);
  background: #fff; color: var(--c-text); font-size: 14px; padding: 0 10px;
}
.pagination button:hover:not(:disabled) { border-color: var(--c-primary); color: var(--c-primary); }
.pagination button.active { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.pagination button:disabled { opacity: .45; cursor: not-allowed; }
.pagination .page-info { color: var(--c-text3); font-size: 13px; margin: 0 6px; }

/* ---------------- 详情页 ---------------- */
.detail-hero { background: linear-gradient(115deg, #232a3d, #2d3a5c 60%, #3a4a77); color: #fff; }
.detail-hero-inner { display: flex; gap: 30px; padding: 34px 0 38px; }
.detail-cover { width: 420px; height: 236px; border-radius: var(--radius-lg); overflow: hidden; flex-shrink: 0; box-shadow: var(--shadow-lg); background: #1a2030; }
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-info { flex: 1; min-width: 0; padding-top: 4px; }
.detail-title { font-size: 26px; font-weight: 700; line-height: 1.4; }
.detail-desc { margin-top: 10px; color: rgba(255,255,255,.75); font-size: 14px; }
.detail-tags { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }
.detail-tags .tag { background: rgba(255,255,255,.14); color: #fff; }
.detail-stats { margin-top: 18px; display: flex; gap: 26px; color: rgba(255,255,255,.72); font-size: 13px; }
.detail-stats b { color: #fff; }

.detail-body { display: flex; gap: 24px; align-items: flex-start; padding: 28px 0 60px; }
.detail-main { flex: 1; min-width: 0; }
.detail-side { width: 320px; flex-shrink: 0; display: flex; flex-direction: column; gap: 20px; }

.panel { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.panel-head { padding: 18px 24px 0; display: flex; align-items: center; }
.panel-title { font-size: 17px; font-weight: 700; }
.panel-head .sub { margin-left: 10px; color: var(--c-text3); font-size: 13px; }
.panel-body { padding: 18px 24px 22px; }

/* 播放器 */
.player-panel { overflow: hidden; }
.player-box { position: relative; background: #000; aspect-ratio: 16/9; }
.player-box video, .player-box audio { width: 100%; height: 100%; display: block; }
.player-box.audio-mode { aspect-ratio: auto; height: 130px; }
.rich-content { padding: 6px 2px; font-size: 15px; color: var(--c-text); line-height: 1.9; word-break: break-word; }
.rich-content img { max-width: 100%; margin: 8px 0; }
.trial-mask {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: rgba(10, 14, 26, .86); z-index: 5;
  display: none; flex-direction: column; align-items: center; justify-content: center; color: #fff; gap: 14px;
}
.trial-mask.show { display: flex; }
.trial-mask .tm-title { font-size: 20px; font-weight: 700; }
.trial-mask .tm-desc { color: rgba(255,255,255,.7); font-size: 13.5px; }
.player-placeholder {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #98a2b3; gap: 12px; z-index: 2;
}
.player-placeholder .pp-icon { font-size: 46px; opacity: .5; }

/* 章节目录 */
.chapter-group { margin-bottom: 6px; }
.chapter-title {
  padding: 12px 8px; font-size: 14.5px; font-weight: 600; color: var(--c-text);
  display: flex; align-items: center; gap: 8px;
}
.chapter-title .cnt { color: var(--c-text3); font-weight: 400; font-size: 12.5px; margin-left: auto; }
.lesson-item {
  display: flex; align-items: center; gap: 10px; padding: 11px 10px; border-radius: 8px;
  cursor: pointer; color: var(--c-text2); font-size: 14px; transition: background .15s;
}
.lesson-item:hover { background: var(--c-primary-light); color: var(--c-primary); }
.lesson-item.active { background: var(--c-primary); color: #fff; font-weight: 600; }
.lesson-item .l-ico { flex-shrink: 0; font-size: 13px; width: 18px; text-align: center; }
.lesson-item .l-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lesson-item .l-dur { font-size: 12px; color: var(--c-text3); flex-shrink: 0; }
.lesson-item.active .l-dur { color: rgba(255,255,255,.8); }
.lesson-item .l-lock { flex-shrink: 0; font-size: 12px; color: var(--c-warning); }
.lesson-item .l-progress { width: 34px; height: 4px; border-radius: 2px; background: var(--c-line); overflow: hidden; flex-shrink: 0; }
.lesson-item .l-progress i { display: block; height: 100%; background: var(--c-success); }

/* 未登录：第 3 节起模糊遮挡 */
.lesson-item.locked { color: var(--c-text3); cursor: pointer; }
.lesson-item.locked:hover { background: #f6f7f9; color: var(--c-text3); }
.lesson-item.locked .l-name,
.lesson-item.locked .l-dur {
  -webkit-filter: blur(4px); filter: blur(4px);
  opacity: .62;
  pointer-events: none;
  -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;
}
.lesson-item.locked .l-ico { opacity: .6; }
.lesson-item .l-vip {
  flex-shrink: 0; height: 19px; line-height: 17px; padding: 0 7px; border-radius: 10px;
  font-size: 11.5px; color: #a95b00;
  background: linear-gradient(135deg, #fff2dd, #ffe2b8);
  border: 1px solid #ffd7a1;
}
/* 不支持 filter 的内核：文字用掩码替换，靠样式再兜一层 */
.no-blur .lesson-item.locked .l-name { color: #b8bec9; letter-spacing: 1px; }

/* 锁定提示条 */
.chapter-lock-tip {
  margin: 16px 0 2px; padding: 16px 18px; border-radius: 10px;
  background: linear-gradient(135deg, #fffaf3, #fff 70%);
  border: 1px dashed #ffd7a8;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.chapter-lock-tip .clt-icon { font-size: 22px; line-height: 1; flex-shrink: 0; }
.chapter-lock-tip .clt-main { flex: 1 1 220px; min-width: 0; }
.chapter-lock-tip .clt-title { font-size: 14.5px; font-weight: 700; color: #8a5a00; }
.chapter-lock-tip .clt-desc { margin-top: 3px; font-size: 12.5px; color: #a5793f; line-height: 1.65; }
.chapter-lock-tip .clt-desc b { color: #8a5a00; }
.chapter-lock-tip .clt-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* 购买卡片 */
.buy-card { overflow: hidden; }
.buy-price-row { display: flex; align-items: baseline; padding: 20px 24px 4px; }
.buy-price { color: var(--c-price); font-size: 34px; font-weight: 800; }
.buy-price::before { content: "¥"; font-size: 20px; margin-right: 2px; }
.buy-price-free { color: var(--c-success); font-size: 28px; font-weight: 800; }
.buy-vip-tip { margin: 0 24px; background: #fffbf2; border: 1px solid #ffe7ba; color: #8a5a00; border-radius: 8px; padding: 8px 12px; font-size: 12.5px; line-height: 1.6; }
.buy-actions { padding: 16px 24px 6px; display: flex; flex-direction: column; gap: 10px; }
.buy-meta { padding: 12px 24px 20px; color: var(--c-text3); font-size: 12.5px; display: flex; gap: 18px; }
.teacher-mini { display: flex; align-items: center; gap: 12px; padding: 16px 24px 20px; }
.teacher-mini img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.teacher-mini .t-name { font-weight: 600; font-size: 15px; }
.teacher-mini .t-sub { color: var(--c-text3); font-size: 12.5px; }

/* 课程介绍 */
.course-intro { font-size: 15px; line-height: 1.9; color: var(--c-text); word-break: break-word; }
.course-intro img { max-width: 100%; border-radius: 8px; margin: 10px 0; }

/* 评价 */
.eval-item { padding: 16px 0; border-bottom: 1px dashed var(--c-line); display: flex; gap: 12px; }
.eval-item:last-child { border-bottom: none; }
.eval-item .avatar { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; }
.eval-item .e-name { font-weight: 600; font-size: 13.5px; }
.eval-item .e-text { margin-top: 4px; color: var(--c-text2); font-size: 14px; }

/* ---------------- 表单 ---------------- */
.form-item { margin-bottom: 18px; }
.form-label { display: block; font-size: 13.5px; color: var(--c-text2); margin-bottom: 7px; font-weight: 500; }
.form-input {
  width: 100%; height: 44px; border: 1.5px solid var(--c-line); border-radius: 9px;
  padding: 0 14px; font-size: 14.5px; transition: border-color .18s; background: #fff;
}
.form-input:focus { border-color: var(--c-primary); }
.form-row { display: flex; gap: 10px; }
.form-row .form-input { flex: 1; }
.captcha-btn { height: 44px; padding: 0 16px; border: 1px solid var(--c-primary); color: var(--c-primary); background: #fff; border-radius: 9px; font-size: 13.5px; white-space: nowrap; }
.captcha-btn:disabled { border-color: var(--c-line); color: var(--c-text3); cursor: not-allowed; }

/* ---------------- 登录页 ---------------- */
.auth-page { display: flex; align-items: stretch; min-height: calc(100vh - 68px - 260px); margin: 40px auto 60px; max-width: 1000px; }
.auth-side {
  flex: 1; border-radius: var(--radius-lg) 0 0 var(--radius-lg); padding: 56px 48px; color: #fff;
  background: linear-gradient(150deg, #1d39c4, #2f54eb 55%, #5b7cfa); position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
}
.auth-side::after { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: rgba(255,255,255,.07); right: -90px; bottom: -90px; }
.auth-side h2 { font-size: 28px; font-weight: 800; line-height: 1.4; }
.auth-side p { margin-top: 14px; opacity: .85; font-size: 14.5px; line-height: 1.9; }
.auth-side .feat { margin-top: 30px; display: flex; flex-direction: column; gap: 14px; font-size: 14px; }
.auth-side .feat span { display: flex; align-items: center; gap: 9px; }
.auth-main { width: 440px; background: #fff; border-radius: 0 var(--radius-lg) var(--radius-lg) 0; box-shadow: var(--shadow-md); padding: 44px 44px 36px; }
.auth-tabs { display: flex; gap: 30px; margin-bottom: 30px; }
.auth-tab { font-size: 18px; font-weight: 600; color: var(--c-text3); padding-bottom: 8px; cursor: pointer; border-bottom: 3px solid transparent; }
.auth-tab.active { color: var(--c-text); border-bottom-color: var(--c-primary); }
.auth-footer { margin-top: 20px; text-align: center; color: var(--c-text3); font-size: 13.5px; }
.auth-footer a { color: var(--c-primary); font-weight: 500; }

/* ---------------- 个人中心 ---------------- */
.user-layout { display: flex; gap: 24px; align-items: flex-start; padding: 28px 0 60px; }
.user-side { width: 220px; flex-shrink: 0; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.user-side-head { padding: 26px 20px; text-align: center; border-bottom: 1px solid var(--c-line); }
.user-side-head .avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px; }
.user-side-head .u-name { font-weight: 700; font-size: 16px; }
.user-side-head .u-sub { color: var(--c-text3); font-size: 12.5px; margin-top: 2px; }
.user-menu a { display: flex; align-items: center; gap: 10px; padding: 13px 22px; font-size: 14.5px; color: var(--c-text); border-left: 3px solid transparent; }
.user-menu a:hover { color: var(--c-primary); background: var(--c-primary-light); }
.user-menu a.active { color: var(--c-primary); background: var(--c-primary-light); border-left-color: var(--c-primary); font-weight: 600; }
.user-main { flex: 1; min-width: 0; }
.my-course-item { display: flex; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--c-line); }
.my-course-item:last-child { border-bottom: none; }
.my-course-item .cover { width: 168px; height: 95px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: #e9edf3; }
.my-course-item .cover img { width: 100%; height: 100%; object-fit: cover; }
.my-course-item .mc-title { font-size: 16px; font-weight: 600; }
.my-course-item .mc-title:hover { color: var(--c-primary); }
.my-course-item .mc-meta { color: var(--c-text3); font-size: 12.5px; margin-top: 6px; display: flex; gap: 16px; }
.progress-line { height: 6px; background: var(--c-line); border-radius: 3px; overflow: hidden; margin-top: 12px; width: 280px; }
.progress-line i { display: block; height: 100%; background: linear-gradient(90deg, var(--c-primary), #6a8bff); border-radius: 3px; }
.progress-text { font-size: 12px; color: var(--c-text3); margin-top: 4px; }

.order-item { padding: 18px 22px; border-bottom: 1px solid var(--c-line); }
.order-head { display: flex; align-items: center; color: var(--c-text3); font-size: 12.5px; gap: 18px; }
.order-head .o-no { color: var(--c-text2); }
.order-head .o-status { margin-left: auto; font-weight: 600; }
.status-wait { color: var(--c-warning); } .status-ok { color: var(--c-success); }
.status-cancel { color: var(--c-text3); }
.order-goods { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.order-goods img { width: 84px; height: 48px; border-radius: 6px; object-fit: cover; background: #e9edf3; }
.order-goods .g-name { font-size: 14.5px; font-weight: 500; }
.order-foot { display: flex; align-items: center; margin-top: 14px; }
.order-foot .amount { font-size: 13px; color: var(--c-text2); }
.order-foot .amount b { color: var(--c-price); font-size: 17px; }
.order-foot .actions { margin-left: auto; display: flex; gap: 10px; }

/* ---------------- 购物车 ---------------- */
.cart-row { display: flex; align-items: center; gap: 16px; padding: 18px 24px; border-bottom: 1px solid var(--c-line); }
.cart-row:last-child { border-bottom: none; }
.cart-row .cover { width: 150px; height: 84px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: #e9edf3; }
.cart-row .cover img { width: 100%; height: 100%; object-fit: cover; }
.cart-row .c-name { font-size: 15.5px; font-weight: 600; }
.cart-row .c-tag { margin-top: 8px; }
.cart-row .c-price { margin-left: auto; font-weight: 700; color: var(--c-price); font-size: 17px; }
.cart-bar {
  display: flex; align-items: center; padding: 16px 24px; background: #fff;
  border-top: 1px solid var(--c-line); border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  position: sticky; bottom: 0;
}
.cart-bar .total { font-size: 14px; color: var(--c-text2); }
.cart-bar .total b { color: var(--c-price); font-size: 22px; }
.cart-bar .btn { margin-left: auto; }
.cart-check { width: 18px; height: 18px; accent-color: var(--c-primary); cursor: pointer; }

/* ---------------- 收银台 ---------------- */
.pay-layout { max-width: 860px; margin: 30px auto 70px; }
.pay-amount-row { display: flex; align-items: baseline; padding: 26px 28px 6px; }
.pay-amount { color: var(--c-price); font-size: 38px; font-weight: 800; }
.pay-amount::before { content: "¥"; font-size: 22px; margin-right: 3px; }
.pay-goods-name { padding: 0 28px; color: var(--c-text2); font-size: 14px; }
.pay-channels { padding: 20px 28px 8px; display: flex; gap: 14px; }
.pay-channel {
  width: 190px; border: 2px solid var(--c-line); border-radius: var(--radius); padding: 14px 16px;
  cursor: pointer; display: flex; align-items: center; gap: 10px; font-weight: 600; transition: all .15s;
}
.pay-channel:hover { border-color: #b8c6ff; }
.pay-channel.active { border-color: var(--c-primary); background: var(--c-primary-light); }
.pay-channel .ico { width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 17px; font-weight: 800; }
.pay-channel .ico.wechat { background: #07c160; }
.pay-channel .ico.alipay { background: #1677ff; }
.pay-qr-wrap { display: flex; flex-direction: column; align-items: center; padding: 30px 0 36px; }
.pay-qr-box { width: 196px; height: 196px; padding: 10px; border: 1px solid var(--c-line); border-radius: 12px; background: #fff; position: relative; }
.pay-qr-box canvas, .pay-qr-box img { width: 100% !important; height: 100% !important; }
.pay-qr-tip { margin-top: 16px; color: var(--c-text2); font-size: 14px; display: flex; align-items: center; gap: 7px; }
.pay-qr-tip .refresh { color: var(--c-primary); cursor: pointer; font-weight: 500; }
.pay-success { text-align: center; padding: 60px 0; }
.pay-success .icon { width: 74px; height: 74px; margin: 0 auto 20px; border-radius: 50%; background: #e8f7ee; color: var(--c-success); font-size: 36px; display: flex; align-items: center; justify-content: center; }
.pay-success h3 { font-size: 22px; margin-bottom: 8px; }
.pay-success p { color: var(--c-text3); }
.pay-success .actions { margin-top: 28px; display: flex; justify-content: center; gap: 14px; }

/* ---------------- 会员页 ---------------- */
.vip-hero { border-radius: var(--radius-lg); padding: 46px 52px; color: #f5e6c8; position: relative; overflow: hidden;
  background: linear-gradient(120deg, #241b12, #46351f 55%, #77572f); }
.vip-hero::after { content: "VIP"; position: absolute; right: 30px; top: -22px; font-size: 130px; font-weight: 900; color: rgba(255,205,120,.10); }
.vip-hero .vh-state { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,213,145,.16); border: 1px solid rgba(255,213,145,.4); padding: 5px 14px; border-radius: 18px; font-size: 13px; }
.vip-hero .vh-title { margin-top: 16px; font-size: 30px; font-weight: 800; color: #ffd591; }
.vip-hero .vh-desc { margin-top: 8px; opacity: .8; font-size: 14px; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 28px; }
.vip-card {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  padding: 32px 28px; text-align: center; border: 2px solid transparent; transition: all .2s; position: relative;
}
.vip-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.vip-card .vc-name { font-size: 20px; font-weight: 800; }
.vip-card .vc-price { margin-top: 16px; color: var(--c-price); font-size: 42px; font-weight: 800; }
.vip-card .vc-price::before { content: "¥"; font-size: 22px; }
.vip-card .vc-origin { color: var(--c-text3); font-size: 13px; margin-top: 4px; }
.vip-card .vc-origin s { margin-left: 6px; }
.vip-card .vc-days { margin-top: 10px; color: var(--c-text2); font-size: 13.5px; }
.vip-card .btn { margin-top: 24px; }
.vip-card.recommend { border-color: var(--c-accent); }
.vip-card .vc-ribbon {
  position: absolute; top: 14px; right: -32px; transform: rotate(45deg);
  background: linear-gradient(135deg, #ff8f1f, #ff6a00); color: #fff; font-size: 12px; font-weight: 700;
  padding: 4px 40px;
}
.vip-privilege { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 24px; }
.privilege-item { background: #fff; border-radius: var(--radius-lg); padding: 26px 24px; box-shadow: var(--shadow-sm); }
.privilege-item .p-ico { width: 48px; height: 48px; border-radius: 12px; background: var(--c-primary-light); color: var(--c-primary); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.privilege-item .p-name { font-weight: 700; margin-top: 14px; font-size: 15.5px; }
.privilege-item .p-desc { color: var(--c-text3); font-size: 13px; margin-top: 5px; }

/* ---------------- 通用组件 ---------------- */
.empty-state { text-align: center; padding: 70px 0; color: var(--c-text3); }
.empty-state .icon { font-size: 52px; opacity: .4; }
.empty-state p { margin-top: 12px; font-size: 14px; }
.empty-state .btn { margin-top: 20px; }

.loading-spin { display: inline-block; width: 26px; height: 26px; border: 3px solid var(--c-line); border-top-color: var(--c-primary); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-wrap { text-align: center; padding: 60px 0; color: var(--c-text3); }
.loading-wrap .loading-spin { margin-bottom: 12px; }

.toast-wrap { position: fixed; top: 84px; left: 50%; transform: translateX(-50%); z-index: 9999; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast-item {
  background: rgba(29, 33, 41, .92); color: #fff; padding: 11px 22px; border-radius: 8px;
  font-size: 14px; box-shadow: var(--shadow-lg); animation: toastIn .25s ease;
}
.toast-item.err { background: rgba(207, 48, 48, .95); }
.toast-item.ok { background: rgba(22, 130, 74, .95); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }

.modal-mask { position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: rgba(15, 18, 25, .55); z-index: 900; display: none; align-items: center; justify-content: center; }
.modal-mask.show { display: flex; }
.modal-box { width: 420px; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 28px; }
.modal-box h4 { font-size: 17px; margin-bottom: 10px; }
.modal-box .m-text { color: var(--c-text2); font-size: 14px; }
.modal-box .m-actions { margin-top: 24px; display: flex; justify-content: flex-end; gap: 12px; }

/* ---------------- 页脚 ---------------- */
.site-footer { margin-top: 70px; background: #23262e; color: #9aa0ab; }
.footer-inner { display: flex; padding: 46px 0 30px; gap: 60px; }
.footer-brand .f-name { color: #fff; font-size: 20px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.footer-brand .f-logo { width: 34px; height: 34px; border-radius: 8px; background: var(--c-primary); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; }
.footer-brand p { margin-top: 14px; font-size: 13px; line-height: 1.9; max-width: 300px; }
.footer-col h5 { color: #e6e8ec; font-size: 14.5px; margin-bottom: 14px; font-weight: 600; }
.footer-col a { display: block; font-size: 13px; padding: 4px 0; color: #9aa0ab; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #33363f; padding: 18px 0; text-align: center; font-size: 12.5px; color: #6b7078; }
.footer-beian { margin-left: 12px; }
.footer-beian:empty { display: none; }
.footer-bottom .footer-beian a { color: #8b9098; text-decoration: none; }
.footer-bottom .footer-beian a:hover { color: #c8ccd2; text-decoration: underline; }

/* ---------------- 其他 ---------------- */
.mt-20 { margin-top: 20px; } .mt-30 { margin-top: 30px; }
.text-danger { color: var(--c-price); }
.text-muted { color: var(--c-text3); }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #d3d8e0; border-radius: 4px; }

/* ============================================================
   悬浮播放器 v2
   实现方式：播放器面板自身 position:fixed 变成悬浮窗（不搬动 video 节点）
   兼容：Chrome / Edge / Firefox / Safari / 360 / 搜狗 / QQ（含 IE 兼容模式）
   ============================================================ */
body.fp-noselect { user-select: none; -webkit-user-select: none; -ms-user-select: none; }

/* 页面占位：视频悬浮后留在原位，保持页面高度不跳动 */
.player-detached {
  display: none; padding: 30px 20px; text-align: center;
  background: #eef1f7; border-radius: var(--radius-lg);
}
.player-detached.show {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.player-detached .pd-icon { font-size: 30px; color: #a9b3c6; line-height: 1; }
.player-detached .pd-title { margin-top: 12px; font-size: 15px; font-weight: 600; color: #2b3343; }
.player-detached .pd-desc { margin-top: 5px; font-size: 12.5px; color: #79839a; }
.player-detached .btn {
  margin-top: 16px; height: 34px; background: #fff;
  border: 1px solid #d5dbe6; color: #46506a;
}
.player-detached .btn:hover { border-color: var(--c-primary); color: var(--c-primary); }

/* ---------------- 悬浮窗本体（复用播放器面板） ---------------- */
.player-panel.fp-floating {
  position: fixed; z-index: 870;
  display: block; margin: 0; padding: 0;
  background: #0b0e14;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(9, 12, 20, .44), 0 3px 10px rgba(9, 12, 20, .3);
}
.player-panel.fp-floating.dragging,
.player-panel.fp-floating.resizing { box-shadow: 0 26px 64px rgba(9, 12, 20, .56); }
.player-panel.fp-floating:fullscreen,
.player-panel.fp-floating:-webkit-full-screen,
.player-panel.fp-floating:-ms-fullscreen {
  left: 0 !important; top: 0 !important;
  width: 100% !important; height: 100% !important;
  border-radius: 0; border: 0;
}

/* 标题栏（拖动区） */
.fp-head { display: none; }
.player-panel.fp-floating > .fp-head {
  display: block; position: relative; height: 34px; box-sizing: border-box;
  background: linear-gradient(180deg, #171b24, #12151c);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  cursor: move; user-select: none; -webkit-user-select: none;
}
.fp-head .fp-dot {
  position: absolute; left: 12px; top: 14px; width: 6px; height: 6px; border-radius: 50%;
  background: #22c55e; box-shadow: 0 0 6px rgba(34, 197, 94, .9);
}
.player-panel.fp-floating.paused .fp-head .fp-dot { background: #f59e0b; box-shadow: 0 0 6px rgba(245, 158, 11, .85); }
.fp-title {
  position: absolute; left: 26px; right: 160px; top: 0; height: 34px; line-height: 34px;
  font-size: 12.5px; font-weight: 500; color: #e6eaf2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fp-dims {
  position: absolute; right: 134px; top: 0; height: 34px; line-height: 34px;
  font-size: 11px; color: #6b7488; font-variant-numeric: tabular-nums;
}
.fp-tools { position: absolute; right: 4px; top: 4px; height: 26px; }
.fp-btn {
  float: left; width: 26px; height: 26px; margin-left: 2px; padding: 0;
  border: 0; border-radius: 6px; background: transparent;
  color: #9aa4b8; font-size: 13px; line-height: 26px; text-align: center;
}
.fp-btn:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.fp-btn.on { background: rgba(47, 84, 235, .85); color: #fff; }
.fp-btn.close:hover { background: #e5484d; color: #fff; }

/* 画面区：高度由脚本精确设置，避免依赖 flex / aspect-ratio */
.player-panel.fp-floating > .player-box {
  width: 100%; height: 300px; margin: 0; border-radius: 0;
  aspect-ratio: auto; overflow: hidden;
}
.player-panel.fp-floating > .player-box video,
.player-panel.fp-floating > .player-box audio {
  width: 100%; height: 100%; background: #000;
}
.player-panel.fp-floating > .player-box video { object-fit: contain; }

/* 悬浮态控制条：紧凑深色皮肤 */
.player-panel.fp-floating #player-controls {
  padding: 8px 10px 10px !important;
  background: #12151c;
  border-top: 1px solid rgba(255, 255, 255, .06);
}
.player-panel.fp-floating #player-controls > div:first-child { flex-wrap: wrap !important; }
.player-panel.fp-floating #pc-seek {
  order: -1; flex: 1 0 100% !important; width: 100%; height: 14px; margin-bottom: 6px;
}
/* 课程名那一行在悬浮窗里由标题栏承担，必须强制隐藏（行内有 display:flex 内联样式） */
.player-panel.fp-floating #player-controls > div:nth-child(2) { display: none !important; }
.player-panel.fp-floating #pc-float,
.player-panel.fp-floating #pc-pip { display: none !important; }
.player-panel.fp-floating #player-controls .btn-ghost {
  background: rgba(255, 255, 255, .07); border-color: transparent; color: #ccd3e1;
}
.player-panel.fp-floating #player-controls .btn-ghost:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.player-panel.fp-floating #player-controls .btn-primary { background: var(--c-primary); }
.player-panel.fp-floating #pc-cur,
.player-panel.fp-floating #pc-dur { color: #8b95aa !important; }
.player-panel.fp-floating #pc-rate {
  background: #1b202b; color: #ccd3e1; border-color: rgba(255, 255, 255, .12);
}
.player-panel.fp-floating #pc-play { width: 58px !important; padding: 0 8px; }
.player-panel.fp-floating #pc-cur,
.player-panel.fp-floating #pc-dur { min-width: 38px !important; font-size: 11.5px !important; }
.player-panel.fp-floating #pc-rate { height: 28px; padding: 0 4px; font-size: 12px; }
.player-panel.fp-floating #pc-fs { padding: 0 10px; }

/* 缩放手柄（仅悬浮态显示） */
.fp-rs { display: none; position: absolute; z-index: 8; }
.player-panel.fp-floating > .fp-rs { display: block; }
.fp-rs.e { top: 34px; right: 0; bottom: 0; width: 6px; cursor: ew-resize; }
.fp-rs.s { left: 0; right: 0; bottom: 0; height: 6px; cursor: ns-resize; }
.fp-rs.se { right: 0; bottom: 0; width: 18px; height: 18px; cursor: nwse-resize; }
.fp-rs.se:after {
  content: ''; position: absolute; right: 3px; bottom: 3px; width: 9px; height: 9px;
  border-right: 2px solid rgba(255, 255, 255, .4); border-bottom: 2px solid rgba(255, 255, 255, .4);
}
.fp-rs.se:hover:after { border-color: #fff; }

/* 尺寸设置面板 */
.fp-size-pop {
  position: absolute; top: 40px; right: 6px; width: 244px; z-index: 20;
  display: none; padding: 12px; color: #dfe4ee; box-sizing: border-box;
  background: #1a1e28; border: 1px solid rgba(255, 255, 255, .1); border-radius: 10px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, .55);
}
.fp-size-pop.show { display: block; }
.fp-pop-label { font-size: 11.5px; color: #7d8798; letter-spacing: .3px; margin: 0 0 7px; }
.fp-pop-label + .fp-presets { margin-bottom: 12px; }
.fp-presets { margin: -3px; }
.fp-presets button {
  float: left; width: 103px; height: 30px; margin: 3px; padding: 0;
  border-radius: 7px; font-size: 12px;
  background: rgba(255, 255, 255, .06); border: 1px solid transparent; color: #ccd3e1;
}
.fp-presets button em { font-style: normal; color: #6b7488; font-size: 11px; margin-left: 2px; }
.fp-presets button:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.fp-presets button.cur { border-color: var(--c-primary); background: rgba(47, 84, 235, .24); color: #fff; }
.fp-presets:after { content: ''; display: block; clear: both; }
.fp-custom { margin-top: 2px; }
.fp-custom label {
  float: left; width: 103px; margin: 3px; font-size: 11.5px; color: #8b95aa;
}
.fp-custom label input { display: block; width: 100%; margin-top: 3px; }
.fp-custom:after { content: ''; display: block; clear: both; }
.fp-custom input {
  height: 28px; padding: 0 6px; font-size: 12px; box-sizing: border-box;
  color: #e6eaf2; background: #10131b; border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 6px;
}
.fp-custom input:focus { border-color: var(--c-primary); }
.fp-ratio {
  display: block; margin: 10px 0 0; font-size: 11.5px; color: #8b95aa; cursor: pointer;
}
.fp-ratio input { vertical-align: -2px; margin-right: 4px; }
.fp-apply {
  display: block; width: 100%; height: 30px; margin-top: 10px; border: 0; border-radius: 7px;
  font-size: 12.5px; color: #fff; background: var(--c-primary);
}
.fp-apply:hover { background: var(--c-primary-dark); }

/* ============================================================
   兼容降级：老内核（IE11 / 360、搜狗、QQ 兼容模式）
   ============================================================ */

/* 不支持 aspect-ratio：用固定比例高度兜底（脚本会按真实宽度覆盖） */
.no-aspect .player-box { height: 405px; }
.no-aspect .player-box video,
.no-aspect .player-box audio { height: 100%; }

/* 不支持 object-fit：视频可能变形，改为按容器宽度缩放 */
.no-objectfit .player-box video { width: 100%; height: auto; max-height: 100%; }

/* 卡片封面：padding-top 撑出 16:9 */
.no-aspect .course-card .cover-wrap { height: 0; padding-top: 56.25%; position: relative; }
.no-aspect .course-card .cover,
.no-aspect .course-card .cover-fallback {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
}
.no-aspect .cover-fallback { display: flex !important; }

/* 不支持 flex gap：用 margin 兜底常用横排 */
.no-flexgap .header-inner > * + * { margin-left: 28px; }
.no-flexgap .main-nav > * + * { margin-left: 6px; }
.no-flexgap .header-right > * + * { margin-left: 14px; }
.no-flexgap #player-controls > div:first-child > * + * { margin-left: 10px; }
.no-flexgap .fp-tools > * + * { margin-left: 2px; }
.no-flexgap .detail-stats > span + span { margin-left: 18px; }
.no-flexgap .footer-inner > * + * { margin-left: 40px; }
.no-flexgap .buy-actions > * + * { margin-top: 10px; }
.no-flexgap .player-detached > * + * { margin-top: 6px; }

/* IE11 不支持 position:sticky，退化为静态头部 */
.is-ie .site-header { position: relative; }

/* 老内核不支持 grid：用 flex + 百分比宽度还原栅格 */
.no-flexgap .course-grid,
.no-flexgap .teacher-grid,
.no-flexgap .card-grid,
.no-flexgap .vip-privilege { display: flex; flex-wrap: wrap; margin: -11px; }
.no-flexgap .course-grid > *,
.no-flexgap .teacher-grid > * { width: 25%; padding: 11px; }
.no-flexgap .card-grid > *,
.no-flexgap .vip-privilege > * { width: 33.3333%; padding: 11px; }
.no-flexgap .course-grid.cols-3 > * { width: 33.3333%; }

/* ============================================================
   文档画中画窗口（Document Picture-in-Picture）
   Chrome / Edge 116+ 支持：播放器整体搬到浏览器之外的置顶窗口，
   浏览器最小化后仍可继续播放
   ============================================================ */
.pc-pip-body { margin: 0; height: 100%; background: #0b0e14; overflow: hidden; }
#pc-pip-root.pc-pip {
  position: relative; left: auto; top: auto; right: auto; bottom: auto;
  width: 100%; height: 100%; margin: 0; border: 0; border-radius: 0;
  box-shadow: none; display: flex; flex-direction: column; overflow: hidden;
}
#pc-pip-root.pc-pip > .player-box {
  flex: 1 1 auto; width: 100%; height: 0 !important; min-height: 0;
}
#pc-pip-root.pc-pip > #player-controls { flex: 0 0 auto; }

/* 画中画文档要清掉主站的最小宽度，否则窗口被撑到 1200px 出现横向裁切 */
html.pc-pip-html, html.pc-pip-html body.pc-pip-body {
  min-width: 0 !important; width: 100%; height: 100%;
  margin: 0 !important; padding: 0 !important;
  overflow: hidden !important; background: #0b0e14;
}

/* ============================================================
   学恒优学（微信小程序）会员 · 手机号快捷登录
   ============================================================ */
.auth-sep { display: flex; align-items: center; gap: 12px; margin: 26px 0 16px; color: var(--c-text3); font-size: 12.5px; }
.auth-sep::before, .auth-sep::after { content: ''; flex: 1; height: 1px; background: var(--c-line); }

.wx-login-btn {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 11px 16px; border-radius: 10px; text-align: left;
  border: 1px solid #bfe8ce; background: #f3fdf7;
  transition: background .18s, border-color .18s;
}
.wx-login-btn:hover { background: #e9fbf0; border-color: #7fd3a1; }
.wx-login-btn b { display: block; font-size: 14px; color: #0b7a41; font-weight: 600; }
.wx-login-btn em { display: block; font-style: normal; font-size: 12px; color: var(--c-text3); margin-top: 2px; }
.wx-login-btn .wx-ico { flex: 0 0 auto; }

.wx-ico {
  width: 34px; height: 34px; border-radius: 50%; background: #07c160; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.wx-ico-inline { width: 24px; height: 24px; margin-right: 8px; vertical-align: -5px; }

.modal-box.modal-wide { width: 480px; }
.modal-box h4.m-title { display: flex; align-items: center; font-size: 17px; margin-bottom: 12px; }
.modal-box .m-tip { font-size: 13px; color: var(--c-text2); line-height: 1.85; margin-bottom: 18px; }
.modal-box .m-tip b { color: var(--c-text); }
.modal-field { margin-bottom: 14px; }
.modal-field label { display: block; font-size: 12.5px; color: var(--c-text2); margin-bottom: 6px; }
.modal-field .form-input { height: 42px; font-size: 14px; }
.modal-err { min-height: 18px; font-size: 12.5px; color: var(--c-price); }
.modal-box .m-actions .btn { min-width: 86px; }

/* ============ 未登录访问拦截（会员专享 · 请登录） ============ */
html.gate-on, html.gate-on body { overflow: hidden; }
.gate-mask {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 9000;
  background: rgba(243, 246, 252, .82);
  -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.gate-card {
  width: 384px; max-width: 100%; background: #fff; border-radius: 18px;
  box-shadow: 0 24px 64px rgba(20, 30, 60, .18);
  padding: 34px 30px 26px; text-align: center;
}
.gate-lock { font-size: 40px; line-height: 1; }
.gate-title { margin-top: 14px; font-size: 21px; font-weight: 800; color: var(--c-text); letter-spacing: 1px; }
.gate-desc { margin-top: 10px; font-size: 13.5px; line-height: 1.85; color: var(--c-text2); }
.gate-actions { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.gate-wx { display: inline-block; margin-top: 16px; font-size: 12.5px; color: var(--c-primary); }
.gate-wx:hover { text-decoration: underline; }
