/* ============ 全站主题变量（改配色只动这里） ============ */
:root {
  /* 主题色（品牌蓝）：主按钮、链接、徽标 */
  --brand: #2b5aed;
  /* 主题浅色：封面/详情图渐变右端 */
  --brand-light: #6a8dff;
  /* 深色主色：顶栏背景、登录页渐变起点 */
  --brand-dark: #1c2434;
  /* 页面背景色 */
  --bg: #f5f7fb;
  /* 正文文字色 */
  --text: #1f2d3d;
  /* 次要文字色（提示、说明文字） */
  --muted: #8a94a6;
  /* 边框 / 分割线颜色 */
  --line: #e6eaf2;
  /* 强调色（价格、警示、删除/危险按钮） */
  --red: #e64545;
  /* 成功 / 营收色（免费标识、收入数字、已开通标签） */
  --green: #1faa59;
  /* 提醒色（待审核等需要关注的数字） */
  --orange: #e6932b;
  /* Element Plus 主按钮色跟随主题色，不要单独改 */
  --el-color-primary: var(--brand);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text);
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif; }
[v-cloak] { display: none !important; }
a { text-decoration: none; color: inherit; }

/* 兜底：<svg> 没有宽度约束时，部分浏览器会按「100% 宽 + 等比高」渲染，
 * 一个 24×24 的图标会被放大到整屏大小盖住页面。这里加一道保险。 */
svg { max-width: 100%; }

/* 启动页 */
.boot { height: 100vh; display: flex; align-items: center; justify-content: center; color: var(--muted); }

/* 登录页 */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 130%); padding: 24px 16px; }
.auth-card { width: 100%; max-width: 420px; background: #fff; border-radius: 14px; padding: 28px 26px 22px;
  box-shadow: 0 18px 50px rgba(10, 20, 50, .35); }
.auth-card h1 { margin: 0 0 4px; font-size: 22px; }
.auth-card .sub { margin: 0 0 18px; color: var(--muted); font-size: 13px; }
.code-row { display: flex; gap: 8px; width: 100%; }
.code-row .el-input { flex: 1; }
/* 微信一键登录按钮（微信绿 #07C160，仅微信内置浏览器显示） */
.wx-btn { background: #07C160 !important; border-color: #07C160 !important; color: #fff !important; font-weight: 600; }
.wx-btn:hover, .wx-btn:focus { background: #06ad56 !important; border-color: #06ad56 !important; color: #fff !important; }
.wx-divider { display: flex; align-items: center; gap: 10px; margin: 14px 0 4px; color: var(--muted); font-size: 12px; }
.wx-divider::before, .wx-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth-links { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.auth-links .tip { font-size: 12px; color: var(--muted); }

/* 登录页内的提示条：目前用于「短信服务尚未开通」。
   刻意不用 el-alert —— 全站只此一处，不值得为它多一个组件依赖。 */
.auth-hint { margin: 0 0 14px; padding: 9px 12px; font-size: 13px; line-height: 1.6;
  color: #8a6d3b; background: #fdf6ec; border: 1px solid #f5dab1; border-radius: 6px; }

/* 「我的 → 账号」里手机号那一行：只读输入框 + 绑定按钮 */
.bind-row { display: flex; gap: 8px; width: 100%; }
.bind-row .el-input { flex: 1; }

/* 顶栏 */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--brand-dark); color: #fff;
  display: flex; align-items: center; gap: 18px; padding: 0 20px; height: 56px; }
.topbar .brand { font-size: 17px; font-weight: 600; white-space: nowrap; }
.topbar nav { display: flex; gap: 4px; overflow-x: auto; flex: 1; min-width: 0; }
.topbar nav a { color: #b9c2d4; padding: 6px 12px; border-radius: 6px; font-size: 14px; white-space: nowrap; }
.topbar nav a.on, .topbar nav a:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.topbar .user { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #b9c2d4; white-space: nowrap; }

/* 顶栏右上角「账号」：做成一个小胶囊，跟「退出」区分开。
   窄屏只隐藏昵称，这个入口必须留着 —— 手机上也得能一眼找到账号设置。 */
.topbar .user a.acct-link { color: #dce5f7; font-size: 13px; text-decoration: none;
  padding: 5px 10px; border: 1px solid rgba(255,255,255,.24); border-radius: 6px; white-space: nowrap; }
.topbar .user a.acct-link:hover { color: #fff; background: rgba(255,255,255,.14); }
.side-foot a.acct-link { color: #dce5f7; }
.side-foot a.acct-link.acct-on { color: #fff; font-weight: 600; }

.page { max-width: 1200px; margin: 0 auto; padding: 20px 16px 60px; }
.page-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 16px; flex-wrap: wrap; }
.page-title h2 { margin: 0; font-size: 20px; }

/* 学员端课程卡片 */
.toolbar { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar .el-input { max-width: 260px; }
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.course-card { background: #fff; border-radius: 12px; overflow: hidden; cursor: pointer;
  border: 1px solid var(--line); transition: transform .15s, box-shadow .15s; display: flex; flex-direction: column; }
.course-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(30, 50, 100, .12); }
.course-cover { height: 140px; background: linear-gradient(135deg, var(--brand), var(--brand-light)); position: relative;
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 34px; font-weight: 700; overflow: hidden; }
.course-cover img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.course-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.course-title { font-size: 15px; font-weight: 600; line-height: 1.4; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.course-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.course-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.price { color: var(--red); font-weight: 700; font-size: 16px; }
.price.free { color: var(--green); }
.badge { font-size: 11px; padding: 2px 8px; border-radius: 20px; background: #eef2ff; color: var(--brand); }
.badge.live { background: #fdeaea; color: var(--red); }
.badge.lock { background: #f3f4f6; color: var(--muted); }
.badge.done { background: #e8f6ee; color: #1f8a4c; }
.badge.prog { background: #fff4e5; color: #b8720c; }
/* 我的课程卡片上的学习进度条：比只写「已开通」更能推着人往下学 */
.course-progress { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.cp-bar { flex: 1; height: 4px; border-radius: 4px; background: #eceff5; overflow: hidden; }
.cp-bar i { display: block; height: 100%; border-radius: 4px; background: var(--brand); transition: width .2s; }
.course-progress span { font-size: 11.5px; color: var(--muted); flex: 0 0 auto; }
.empty { text-align: center; color: var(--muted); padding: 60px 0; }

/* 课程详情 */
.detail-head { display: grid; grid-template-columns: 380px 1fr; gap: 22px; margin-bottom: 20px; }
.detail-cover { border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, var(--brand), var(--brand-light));
  min-height: 210px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 44px; font-weight: 700; }
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-info h2 { margin: 0 0 10px; font-size: 22px; }
.detail-info .intro { color: #5b6577; font-size: 14px; line-height: 1.7; white-space: pre-wrap; margin: 12px 0; }
.detail-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin-bottom: 18px; }
.panel h3 { margin: 0 0 14px; font-size: 16px; }
/* 付费课试看限次提示条 */
.preview-tip { background: #f0f6ff; border: 1px solid #d6e6ff; color: #34558a; font-size: 13px; line-height: 1.6; padding: 9px 12px; border-radius: 8px; margin: -2px 0 12px; }

/* 课时列表与播放器 */
.lesson-item { display: flex; align-items: center; gap: 10px; padding: 12px 10px; border-bottom: 1px solid var(--line); cursor: pointer; }
.lesson-item:last-child { border-bottom: none; }
.lesson-item:hover { background: #f7f9ff; }
.lesson-item .no { color: var(--muted); font-size: 13px; width: 26px; text-align: right; }
.lesson-item .name { flex: 1; font-size: 14px; }
.lesson-item .dur { color: var(--muted); font-size: 12px; }
.player-box { background: #000; border-radius: 12px; overflow: hidden; margin-bottom: 18px; }
.player-box video { width: 100%; max-height: 65vh; display: block; }
.player-tip { color: #cfd6e4; text-align: center; padding: 40px 16px; font-size: 14px; }

/* 申请已提交：等待审批 + 倒计时关闭 */
.done-mark { width: 56px; height: 56px; margin: 2px auto 14px; border-radius: 50%; background: #e8f8ef;
  display: flex; align-items: center; justify-content: center; }
.auth-card .countdown { margin: 0 0 14px; text-align: center; font-size: 13px; color: var(--muted); }
.auth-card .countdown b { color: var(--brand); font-size: 17px; padding: 0 2px; }
.auth-card .countdown.warn { color: var(--orange); }

/* ============ 学员端课程详情页（版式参考千聊） ============ */
.cd { max-width: 760px; margin: 0 auto; padding: 0 0 96px; }
.cd-hero { position: relative; background: #0d1424; }
.cd-cover { width: 100%; display: block; aspect-ratio: 16 / 9; object-fit: cover; }
.cd-cover-ph { display: flex; align-items: center; justify-content: center; color: #fff; font-size: 64px;
  font-weight: 700; background: linear-gradient(135deg, var(--brand), var(--brand-light)); }
.cd-player { background: #000; position: relative; }
.cd-player video { width: 100%; max-height: 70vh; display: block; }
/* 全屏时解掉高度限制，否则画面只占 70% 高、上下留大黑边 */
.cd-player:fullscreen video { max-height: 100vh; }

/* ---------- 防盗录水印 ---------- */
/* 单个小块随机换位置，不再平铺满屏。pointer-events:none 保证不挡任何操作 */
.wm-layer { position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  user-select: none; -webkit-user-select: none; z-index: 3; }
/* 浅灰半透明 + 细体：白底课件上是淡灰字、暗场上是柔和灰字，两种底色都留痕，
   又不像原来「白字 + 黑描边 + 三层黑阴影」那样在白底上糊成一团、挡住课件小字。
   仍然不要用父级 opacity —— 那样会连阴影一起吃掉，字会发飘。 */
.wm-float { position: absolute; transform: translate(-50%, -50%);
  font-family: "Microsoft YaHei Light", "DengXian Light", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 300; font-size: 12px; line-height: 1.4; letter-spacing: 1.1px; white-space: nowrap;
  color: rgba(205, 213, 228, .52);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .10);
  animation: wmShow .6s ease both; }
@keyframes wmShow { from { opacity: 0 } to { opacity: 1 } }

/* 版权声明：顶部细字，每 16 秒从右往左飘过一次（约 6 秒飘完，其余时间不占画面）。
   z-index 低于全屏/返回按钮，文字从按钮后面穿过，不抢操作。 */
.cp-layer { position: absolute; left: 0; right: 0; top: 0; height: 24px;
  overflow: hidden; pointer-events: none; z-index: 2;
  user-select: none; -webkit-user-select: none; }
.cp-text { position: absolute; left: 100%; top: 2px; white-space: nowrap;
  font-family: "Microsoft YaHei Light", "DengXian Light", "PingFang SC", sans-serif;
  font-weight: 300; font-size: 11px; letter-spacing: .6px;
  color: rgba(205, 213, 228, .62);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .12);
  animation: cpPass 16s linear infinite; }
@keyframes cpPass {
  0%   { left: 100%; transform: translateX(0);       opacity: 0 }
  3%   {                                              opacity: 1 }
  40%  { left: 0;    transform: translateX(-100%);   opacity: 1 }
  44%  {                                              opacity: 0 }
  100% { left: 0;    transform: translateX(-100%);   opacity: 0 }
}

/* 全屏只留右上角自建 .cd-fs 一个：它全屏整个播放器容器，水印层在容器内不会被切掉。
   浏览器原生那个全屏只全屏 <video>，水印会被甩出去，而且 controlslist=nofullscreen
   在新版 Chrome 上已经失效（实测按钮又冒出来了），所以这里用 CSS 精准隐藏，
   音量、进度、三点菜单都保留。 */
.cd-player video::-webkit-media-controls-fullscreen-button,
.cd-player video::-webkit-media-controls-enter-fullscreen-button,
.cd-player video::-webkit-media-controls-exit-fullscreen-button { display: none !important; }
.cd-fs { position: absolute; right: 10px; top: 10px; width: 34px; height: 34px; border: 0;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(12, 18, 32, .45); color: #fff; cursor: pointer; z-index: 4; }
.cd-fs:hover { background: rgba(12, 18, 32, .72); }
.cd-tip { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px; font-size: 13px;
  color: #dfe6f5; background: rgba(8, 14, 28, .78); }
.cd-back { position: absolute; left: 12px; top: 12px; width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: rgba(12, 18, 32, .45); }
.cd-back:hover { background: rgba(12, 18, 32, .72); }

.cd-bar { display: flex; align-items: center; gap: 12px; padding: 17px 16px; background: #fff;
  border-bottom: 1px solid var(--line); }
.cd-title { flex: 1; margin: 0; font-size: 19px; font-weight: 700; line-height: 1.35; }
.cd-home { flex: none; font-size: 13px; color: var(--brand); white-space: nowrap; }

.cd-stats { display: flex; background: #fff; border-bottom: 1px solid var(--line); }
.cd-stat { flex: 1; padding: 13px 6px; text-align: center; }
.cd-stat + .cd-stat { border-left: 1px solid var(--line); }
.cd-stat span { display: block; font-size: 17px; font-weight: 700; }
.cd-stat em { display: block; margin-top: 3px; font-size: 12px; font-style: normal; color: var(--muted); }

.cd-teacher { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff;
  border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.cd-avatar { width: 44px; height: 44px; flex: none; border-radius: 50%; color: #fff; font-size: 17px;
  font-weight: 700; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-light)); }
.cd-tinfo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cd-tinfo b { font-size: 14px; }
.cd-tinfo span { font-size: 12px; color: var(--muted); }
.cd-more { flex: none; padding: 6px 14px; border-radius: 999px; font-size: 13px;
  color: var(--red); background: #fff0f0; border: 1px solid #ffd6d6; }

.cd .panel { margin: 0 16px 12px; }
/* 课程介绍：和公开介绍页同一套 [H2]/[IMG]/[LINK] 标记渲染，
   没有标记的老课程就是一个个 <p>，和原来纯文本观感一致 */
/* 资料弹窗按钮区（直接放在主体里，不用 dialog 的 footer slot） */
.profile-actions { display: flex; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.profile-actions .el-button { flex: 1; margin: 0; }

.cd-intro { color: #5b6577; font-size: 14px; line-height: 1.75; }
.cd-intro p { margin: 0 0 9px; }
.cd-intro p:last-child { margin-bottom: 0; }
.cd-intro h3.ih2 { font-size: 15px; color: var(--text); margin: 18px 0 9px; font-weight: 700; }
.cd-intro .guide { width: 100%; display: block; border: 1px solid var(--line); border-radius: 10px; background: #fff; margin: 4px 0 6px; }
.cd-intro .flowmap { position: relative; margin: 4px 0 6px; }
.cd-intro .flowmap .hot { position: absolute; top: 0; height: 100%; width: 20%; display: block; text-decoration: none; }
.cd-intro .flowcap { font-size: 12px; color: var(--muted); margin: 0 0 12px; line-height: 1.6; }
.cd-intro .links { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 14px; }
.cd-intro .links a { display: flex; align-items: center; gap: 9px; padding: 11px 12px; border: 1px solid #dbe6f8;
  background: #f6f9ff; border-radius: 9px; color: #1d4fa8; text-decoration: none; font-size: 14px; line-height: 1.45; }
.cd-intro .links .ar { margin-left: auto; color: #8aa7d4; flex: 0 0 auto; font-size: 13px; }

.cd-footbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 16px;
  background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(16, 28, 60, .08); }
.cd-fb-inner { display: flex; align-items: center; gap: 10px; max-width: 760px; margin: 0 auto; }
.cd-fb-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cd-fb-info span { font-size: 12px; color: var(--muted); }
.cd-price { font-size: 20px; font-weight: 700; color: var(--red); }
.cd-price.free { color: var(--green); }
.cd-ok { font-size: 15px; font-weight: 700; color: var(--green); }
/* 咨询 / 预约试听：做成文字链而不是第三个按钮 —— 手机上底部塞不下三个按钮，
   硬塞会把价格挤变形，而这条恰恰是未注册用户唯一能做的动作，必须留得下 */
.cd-consult-line { display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; }
.cd-consult { color: var(--brand); font-weight: 600; text-decoration: none; white-space: nowrap; }
.cd-consult:hover { text-decoration: underline; }
.lead-intro { font-size: 12.5px; color: var(--muted); line-height: 1.7; }
/* 窄屏兜底：底部那行本来就挤，提示语让位给「咨询」和两个按钮，
   免得 flex 收缩不干净把「立即购买」推出屏幕 */
@media (max-width: 430px) {
  .cd-hint { display: none; }
}

/* ===== 管理端：左侧导航布局 ===== */
.admin-shell { display: flex; min-height: 100vh; align-items: stretch; }

.side-nav { position: sticky; top: 0; z-index: 20; width: 214px; flex: none; height: 100vh;
  background: var(--brand-dark); color: #fff; display: flex; flex-direction: column; overflow: hidden; }
.side-brand { display: flex; align-items: center; gap: 10px; padding: 18px 16px 14px; }
.side-brand .logo { width: 36px; height: 36px; flex: none; border-radius: 9px; font-size: 17px;
  font-weight: 700; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-light)); }
.side-brand .btext { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.side-brand .btext b { font-size: 15px; letter-spacing: .3px; }
.side-brand .btext span { font-size: 11.5px; color: #8b95a8; }

.side-menu { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.side-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px;
  color: #b9c2d4; font-size: 14px; transition: background .15s, color .15s; }
.side-menu a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.side-menu a.on { color: #fff; background: var(--brand); font-weight: 500; }
.side-menu .ico { width: 17px; height: 17px; min-width: 17px; min-height: 17px; max-width: 17px; max-height: 17px;
  flex: none; fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.side-foot { padding: 12px 16px 16px; border-top: 1px solid rgba(255, 255, 255, .08);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.side-mail { width: 100%; font-size: 11.5px; color: #77808f; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.side-foot a { font-size: 12.5px; color: #b9c2d4; }
.side-foot a:hover { color: #fff; }
/* 页面版本戳：改 admin.html 时同步改 data 里的 BUILD，用来一眼判断浏览器拿的是不是新版 */
.side-ver { width: 100%; font-size: 10.5px; color: #5d6675; letter-spacing: .2px; }

.admin-main { flex: 1; min-width: 0; }

/* 后台内容区：铺满侧栏右侧的整块空间。
 * .page 默认是给学员端做的（max-width:1200 + 居中），后台加了侧栏后再居中，
 * 宽屏上会左右各留一大片空白，看起来像布局坏了。 */
.admin-main .page { max-width: none; margin: 0; padding: 20px 22px 60px; }

/* 学员列表 */
.stu-cell { display: flex; align-items: center; gap: 10px; }
.stu-avatar { width: 34px; height: 34px; flex: none; border-radius: 50%; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px; font-weight: 600; }
.stu-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stu-meta { min-width: 0; }
.stu-name { font-size: 13.5px; line-height: 1.45; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stu-id { font-size: 11.5px; color: var(--muted); line-height: 1.45; }
.stu-line { font-size: 12.5px; line-height: 1.65; word-break: break-all; }
.stu-sub { font-size: 11.5px; color: var(--muted); }
.stu-count { margin-left: auto; font-size: 13px; color: var(--muted); }
.stu-count b { color: var(--text); font-size: 15px; }
.stu-money { color: var(--green); font-weight: 600; }
.stu-enroll { color: var(--brand); }
.stu-muted { color: var(--muted); }

/* ---------- 线索池 ---------- */
/* 页面右上角并排两个按钮（刷新 / 导出）：.page-title 是 space-between，
   直接放两个按钮会被推到两边，得包一层 */
.title-actions { display: flex; gap: 10px; }
.lead-name { font-size: 13.5px; font-weight: 600; line-height: 1.45; }
.lead-phone { font-variant-numeric: tabular-nums; letter-spacing: .2px; }
.lead-follow-n { font-size: 12.5px; color: var(--brand); }

/* 跟进弹窗顶部的「这人是谁」摘要 */
.lead-sum { background: #f7f9fc; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.lead-sum-row { display: flex; gap: 10px; font-size: 13.5px; line-height: 2; align-items: baseline; }
.lead-k { flex: none; width: 48px; font-size: 12.5px; color: var(--muted); }

/* 跟进历史：内容长了就自己滚，别把弹窗撑到屏幕外 */
.lead-history { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 12px;
  max-height: 210px; overflow-y: auto; }
.lead-history h4 { margin: 0 0 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.lead-hi { padding: 7px 0; border-bottom: 1px solid var(--line); }
.lead-hi:last-child { border-bottom: none; }
.lead-hi-meta { font-size: 11px; color: var(--muted); }
.lead-hi-body { font-size: 13px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }

/* 管理端 */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.stat-card .num { font-size: 24px; font-weight: 700; margin-top: 6px; }
.stat-card .label { font-size: 13px; color: var(--muted); }
.stat-card.warn .num { color: var(--red); }
.stat-card.money .num { color: var(--green); }
/* 待审核卡片：默认橙色，有待处理数据时加深并显示可点击 */
.stat-card.orange .num { color: var(--orange); }
.stat-card.orange.alert { border-color: var(--orange); }
.stat-card.clickable { cursor: pointer; transition: box-shadow .15s; }
.stat-card.clickable:hover { box-shadow: 0 6px 18px rgba(30, 50, 100, .12); }
.table-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.filter-row { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; align-items: center; }
/* 收款 / 退款弹窗的信息块：左标签右值，一眼看清这笔钱是谁的 */
.pay-summary { background: #f7f9fc; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.pay-summary > div { display: flex; gap: 10px; font-size: 13px; line-height: 1.95; }
.pay-summary > div > span { color: var(--muted); flex: 0 0 52px; }
.pay-summary code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; }
.pager { display: flex; justify-content: flex-end; margin-top: 14px; }
.form-tip { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.6; }
.upload-preview { margin-top: 8px; max-width: 220px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.upload-preview img { width: 100%; display: block; }

/* 表格在手机上横向滚动 */
.table-scroll { overflow-x: auto; }

/* ===== 管理端：课时预览播放器 ===== */
/* 弹窗里的播放区。aspect-ratio 让容器先占好 16:9 的位置，
   否则视频加载出来前弹窗是矮的，加载完猛地撑开一变，很难看 */
.pv-box { position: relative; background: #000; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; }
.pv-box video { display: block; width: 100%; height: 100%; background: #000; }
.pv-mask { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .55); color: #cfd6e4; font-size: 13.5px; }
/* 报错文案直接盖在播放区上，不留黑屏让人以为还在加载 */
.pv-err { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 24px; text-align: center; color: #ffd9d9; font-size: 13.5px; line-height: 1.9; }
.pv-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.pv-note { font-size: 12.5px; color: var(--muted); line-height: 1.7; }

@media (max-width: 768px) {
  .topbar { gap: 8px; padding: 0 12px; }
  /* 加了「会员专区」之后，品牌名 + 四个入口 + 账号 在 390px 下放不下。
   * 品牌名在手机上信息量最低（页面里已经有标题），先让它让位。 */
  .topbar .brand { display: none; }
  .topbar nav { gap: 2px; }
  .topbar nav a { padding: 6px 7px; font-size: 12.5px; }
  /* 手机上五个入口放不下：活动报名收进「我的 → 我的活动」，导航只留四个主入口 */
  .topbar nav a.nav-activity { display: none; }
  .topbar .user span.mail { display: none; }
  /* 昵称可以给窄屏让位，账号入口不行：手机上也要看得见、点得到 */
  .topbar .user { gap: 6px; }
  .topbar .user a.acct-link { font-size: 12.5px; padding: 4px 8px; }
  .detail-head { grid-template-columns: 1fr; }
  .toolbar .el-input { max-width: none; flex: 1; }
  .page { padding: 14px 10px 50px; }
  .course-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
  .course-cover { height: 100px; }
  .cd-bar { padding: 14px 12px; }
  .cd-title { font-size: 17px; }
  .cd .panel { margin: 0 10px 10px; }
  .cd-footbar { padding: 8px 10px; }
  .cd-back { left: 10px; top: 10px; }
}

/* 窄屏（平板/手机）：左侧栏折成顶部横条，菜单横向滚动 */
@media (max-width: 900px) {
  .admin-shell { display: block; }
  .admin-main .page { padding: 14px 12px 50px; }
  .side-nav { position: sticky; top: 0; width: auto; height: auto; flex-direction: row;
    align-items: center; gap: 8px; padding: 8px 10px; }
  .side-brand { padding: 0 4px 0 0; }
  .side-brand .btext { display: none; }
  .side-menu { flex-direction: row; overflow-x: auto; overflow-y: hidden; padding: 0; gap: 4px; }
  .side-menu a { padding: 8px 12px; white-space: nowrap; }
  .side-menu .ico { display: none; }
  .side-foot { border-top: none; padding: 0; margin-left: auto; flex-wrap: nowrap; }
  .side-mail { display: none; }
  /* 手机上顶栏已经塞满，版本戳在这里显示不下，隐藏掉 */
  .side-ver { display: none; }
}

/* ============ 我的证书（学员端） ============ */
.cert-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.cert-card { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 12px;
  background: linear-gradient(135deg, #fffdf8 0%, #fff 60%); border: 1px solid #efe6d3;
  border-radius: 12px; cursor: pointer; transition: box-shadow .18s, transform .18s; }
.cert-card:active { transform: scale(.995); box-shadow: 0 4px 16px rgba(160,130,70,.16); }
.cert-seal { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; color: #a9843f;
  background: #fbf6ea; border: 1px solid #e7d9bb; display: flex; align-items: center; justify-content: center; }
.cert-info { flex: 1; min-width: 0; }
.cert-info b { display: block; font-size: 15px; color: #16324f; line-height: 1.4;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cert-info span { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.cert-info em { display: block; font-size: 11px; color: #a9843f; font-style: normal;
  font-family: ui-monospace, Menlo, Consolas, monospace; margin-top: 4px; letter-spacing: .4px; }
.cert-go { flex: 0 0 auto; font-size: 12.5px; color: var(--brand); }

.cert-prog-wrap { margin-top: 4px; }
.cert-sub-title { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.cert-prog { padding: 13px 14px; border: 1px solid var(--line); border-radius: 11px;
  margin-bottom: 10px; background: #fff; }
.cert-prog .cp-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.cert-prog .cp-head b { font-size: 14.5px; color: var(--text); font-weight: 600; }
.cert-prog .cp-head span { font-size: 12px; color: var(--muted); flex: 0 0 auto; }
.cert-prog .cp-bar { width: 100%; margin: 9px 0 8px; height: 5px; }
.cert-prog .cp-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cert-prog .cp-reason { font-size: 11.5px; color: var(--muted); line-height: 1.5;
  overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cert-prog .cp-foot a { flex: 0 0 auto; font-size: 12.5px; color: var(--brand); }

/* 拿到证书的恭喜框 */
.cert-pop { text-align: center; padding: 6px 4px 2px; }
.cert-pop-badge { width: 62px; height: 62px; margin: 0 auto 12px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: #a9843f;
  background: radial-gradient(circle at 50% 40%, #fff8e8, #f6ead1); border: 1px solid #e7d9bb; }
.cert-pop h3 { margin: 0 0 8px; font-size: 19px; color: #16324f; letter-spacing: 1px; }
.cert-pop p { margin: 0 0 12px; font-size: 13.5px; color: #4a5a6a; line-height: 1.7; }
.cert-pop-no { display: inline-block; padding: 6px 14px; border-radius: 20px; background: #fbf6ea;
  border: 1px solid #eee1c8; font-size: 12.5px; color: #a9843f;
  font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .5px; }
.cert-pop-tip { margin-top: 14px; font-size: 11.5px; color: var(--muted); line-height: 1.6; }

/* ============ 后台：证书系列编辑 ============ */
/* 展开「证书文案」以后弹窗会很长，在笔记本屏幕上会顶出屏幕外、保存按钮找不到。
 * 让弹窗内部自己滚，右边预览 sticky 不动 —— 改文案时眼睛不用来回找。 */
.se-dialog .el-dialog__body { max-height: 74vh; overflow-y: auto; }
.se-wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 22px; align-items: start; }
.se-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.se-empty { font-size: 12.5px; color: var(--muted); padding: 8px 0; }

.se-themes { display: flex; gap: 10px; }
.se-theme { width: 62px; height: 34px; border-radius: 7px; display: flex; align-items: center;
  justify-content: center; color: #fff; font-size: 11.5px; letter-spacing: .5px; opacity: .78;
  border: 2px solid transparent; transition: opacity .15s; }
.se-theme:hover { opacity: .92; }
.se-theme.on { opacity: 1; border-color: #b9975b; box-shadow: 0 0 0 2px rgba(185,151,91,.22); }

.se-courses { display: flex; flex-direction: column; gap: 6px; max-height: 190px; overflow-y: auto;
  border: 1px solid var(--line); border-radius: 9px; padding: 8px; width: 100%; background: #fbfcfe; }
.se-course { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 7px;
  font-size: 13px; cursor: pointer; border: 1px solid transparent; }
.se-course:hover { background: #f4f6fb; }
.se-course.on { background: #eef4ff; border-color: #cddcff; }
.se-course input { flex: 0 0 auto; margin: 0; }
.se-course span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.se-course em { flex: 0 0 auto; font-style: normal; font-size: 11.5px; color: var(--muted); }

.se-preview { position: sticky; top: 12px; }
.se-preview-label { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.se-preview-box { background: #fff; border: 1px solid #ece7db; border-radius: 8px; overflow: hidden;
  box-shadow: 0 3px 14px rgba(60,50,20,.08); }
.se-preview-box svg { display: block; width: 100%; height: auto; }
.se-preview-tip { font-size: 11.5px; color: var(--muted); margin-top: 8px; line-height: 1.6; }

.cert-no-link { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px;
  color: var(--brand); letter-spacing: .3px; }

@media (max-width: 760px) {
  .se-wrap { grid-template-columns: 1fr; gap: 14px; }
  .se-grid2 { grid-template-columns: 1fr; }
  .se-preview { position: static; }
  .se-courses { max-height: 150px; }
}

/* 系列编辑里的警告条：不拦保存，但要说清楚后果 */
.se-warn { font-size: 12px; line-height: 1.6; color: #8a6d3b; background: #fdf6ec;
  border: 1px solid #f5dab1; border-radius: 7px; padding: 7px 10px; margin-bottom: 10px; }

/* ============ 后台：证书文案（可折叠，默认收起） ============ */
.se-wording { border: 1px solid var(--line); border-radius: 9px; margin-bottom: 18px;
  background: #fbfcfe; overflow: hidden; }
.se-word-head { display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; cursor: pointer; user-select: none; font-size: 13px; color: var(--text); }
.se-word-head:hover { background: #f4f6fb; }
.se-word-head em { font-style: normal; font-size: 11.5px; color: var(--brand); }
.se-word-body { padding: 0 12px 10px; border-top: 1px solid var(--line); }
.se-word-note { font-size: 11.5px; line-height: 1.7; color: var(--muted);
  padding: 9px 0 4px; }
.se-word-note b { color: #c0392b; font-weight: 600; }
.se-word-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.se-word-wide { grid-column: 1 / -1; }
.se-word-grid .el-form-item { margin-bottom: 12px; }
.se-word-grid .el-form-item__label { font-size: 12px; padding-bottom: 2px; color: var(--muted); }

@media (max-width: 760px) {
  .se-word-grid { grid-template-columns: 1fr; }
}

/* ============ 学员端：推广赚钱 ============ */

.dist-hero .dh-title { font-size: 18px; font-weight: 600; color: var(--text); letter-spacing: .5px; }
.dist-hero .dh-sub { font-size: 13.5px; line-height: 1.72; color: #4a5666; margin-top: 8px; }
.dist-hero .dh-sub b { color: var(--brand); font-size: 15px; }
.dist-hero .dh-rules { margin: 16px 0 18px; display: flex; flex-direction: column; gap: 10px; }
.dist-hero .dh-rules > div { display: flex; gap: 9px; align-items: flex-start;
  font-size: 13px; line-height: 1.65; color: #4a5666; }
.dist-hero .dh-rules i { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%;
  background: #eef2fe; color: var(--brand); font-style: normal; font-size: 11px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; }
.dist-hero .dh-rules b { color: var(--text); }
.dist-hero .dh-btn { width: 100%; }

/* 待审 / 驳回 / 停用 */
.dist-state { text-align: center; padding: 26px 20px; }
.dist-state .ds-badge { display: inline-block; font-size: 12px; padding: 4px 12px; border-radius: 20px;
  margin-bottom: 12px; font-weight: 600; }
.dist-state .ds-badge.is-pending { background: #fdf6ec; color: #a7711d; }
.dist-state .ds-badge.is-rejected { background: #fdeeee; color: #b93b3b; }
.dist-state .ds-badge.is-disabled { background: #f1f3f7; color: #7b8598; }
.dist-state p { font-size: 13.5px; line-height: 1.75; color: #4a5666; margin: 0 0 14px; }

/* 收益三栏 */
.dist-money { display: grid; grid-template-columns: repeat(3, 1fr); padding: 0; overflow: hidden; }
.dist-money .dm-item { padding: 16px 8px; text-align: center; border-right: 1px solid var(--line); min-width: 0; }
.dist-money .dm-item:last-child { border-right: 0; }
.dist-money .dm-item b { display: block; font-size: 19px; font-weight: 600; color: var(--text);
  font-variant-numeric: tabular-nums; letter-spacing: -.2px; }
.dist-money .dm-item span { display: block; font-size: 12px; color: var(--muted); margin-top: 5px; }
.dist-money .dm-item.hl b { color: var(--brand); }

.dist-tip { font-size: 12.5px; line-height: 1.75; color: var(--muted); margin: -6px 2px 16px; }
.dist-tip b { color: var(--text); }

/* 推广链接与二维码 */
.dl-code { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.dl-code b { font-size: 17px; color: var(--brand); letter-spacing: 2.5px; margin-left: 6px;
  font-family: ui-monospace, Menlo, Consolas, monospace; }
.dl-row { display: flex; gap: 8px; }
.dl-row input { flex: 1; min-width: 0; height: 34px; padding: 0 10px; font-size: 12.5px;
  border: 1px solid var(--line); border-radius: 8px; background: #fafbfd; color: #4a5666;
  font-family: ui-monospace, Menlo, Consolas, monospace; }
.dl-qr { margin-top: 16px; text-align: center; }
.dl-qr img { width: 180px; height: 180px; display: block; margin: 0 auto 8px;
  border: 1px solid var(--line); border-radius: 10px; padding: 8px; background: #fff; }
.dl-qr span { font-size: 12px; color: var(--muted); }

.dist-sub-title { font-size: 13px; color: var(--muted); margin: 0 0 12px; }

/* 佣金明细 */
.cm-row { display: flex; align-items: center; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid #f1f4f9; }
.cm-row:last-child { border-bottom: 0; padding-bottom: 0; }
.cm-main { flex: 1; min-width: 0; }
.cm-main b { display: block; font-size: 14px; color: var(--text); font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-main span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.cm-right { flex: 0 0 auto; text-align: right; }
.cm-right b { display: block; font-size: 15px; color: var(--text); font-weight: 600;
  font-variant-numeric: tabular-nums; }
.cm-st { display: inline-block; font-size: 11px; margin-top: 4px; padding: 1px 7px; border-radius: 10px; }
.cm-st.is-pending { background: #fdf6ec; color: #a7711d; }
.cm-st.is-unlocked { background: #eef2fe; color: var(--brand); }
.cm-st.is-settled { background: #eef8f1; color: var(--green); }
.cm-st.is-cancelled { background: #f1f3f7; color: #8a94a6; text-decoration: line-through; }

@media (max-width: 520px) {
  .dist-money .dm-item b { font-size: 17px; }
  .dl-qr img { width: 156px; height: 156px; }
}

/* ============ 后台：推广分销 ============ */
.dist-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px;
  font-weight: 600; color: var(--brand); letter-spacing: 1.2px; }
.dist-code:hover { text-decoration: underline; }

.dist-note { font-size: 12.5px; line-height: 1.7; color: #6b7789; background: #f7f9fd;
  border: 1px solid #e8eefb; border-radius: 8px; padding: 9px 12px; margin-bottom: 12px; }
.dist-note code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px;
  background: #fff; border: 1px solid #dfe7f6; border-radius: 4px; padding: 1px 5px; color: #33415c; }

.dist-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.dist-bar-tip { font-size: 12.5px; color: #8a94a6; }
.dist-bar-tip b { color: var(--text); }

.dist-hint { font-size: 12px; line-height: 1.65; color: #8a94a6; margin-top: 4px; }
.dist-hint b { color: #5a6678; }

/* ============ 学员端：直播互动（浮标 + 底部抽屉） ============
 * 旧版是页面里嵌一块面板，学员得滚到播放器下面才看得见，
 * 手机上还要在一行里挤「输入框 + 提问开关 + 发送」—— 那是表单，不是聊天。
 * 直播时手机就在手里，学员只有两个动作：看一眼，想到什么就问一句。
 * 所以入口浮在视频上，点开从底部升起，进去就是键盘，其余全让位给内容。 */

/* ---- 浮标 ---- */
.lc-fab {
  position: fixed; right: 16px; bottom: 92px; z-index: 2100;
  width: 52px; height: 52px; border-radius: 50%; border: 0;
  background: #1f2a3d; color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(16, 26, 44, .28), 0 1px 3px rgba(16, 26, 44, .2);
  transition: transform .16s ease, background .16s ease;
}
.lc-fab:active { transform: scale(.94); }
.lc-fab.hot { background: var(--brand); }

.lc-fab-dot {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px;
  padding: 0 5px; border-radius: 10px; background: #e5484d; color: #fff;
  font-size: 11px; font-weight: 600; line-height: 18px; text-align: center;
  border: 2px solid #fff; box-sizing: content-box;
}
.lc-fab-ok {
  position: absolute; top: -4px; right: -4px; width: 18px; height: 18px;
  border-radius: 50%; background: #16a34a; color: #fff; font-size: 11.5px;
  line-height: 18px; text-align: center; font-weight: 700;
  border: 2px solid #fff; box-sizing: content-box;
}

/* 首次进直播间的引导气泡：说一次就够，之后靠未读数说话 */
.lc-fab-tip {
  position: absolute; right: 62px; top: 50%; transform: translateY(-50%);
  white-space: nowrap; background: rgba(31, 42, 61, .94); color: #fff;
  font-size: 12.5px; padding: 7px 12px; border-radius: 8px; pointer-events: none;
  animation: lcTipIn .32s cubic-bezier(.22, .7, .3, 1) both;
}
.lc-fab-tip::after {
  content: ''; position: absolute; right: -4px; top: 50%; margin-top: -4px;
  width: 8px; height: 8px; background: inherit; transform: rotate(45deg);
}
@keyframes lcTipIn {
  from { opacity: 0; transform: translateY(-50%) translateX(8px); }
  to { opacity: 1; transform: translateY(-50%) translateX(0); }
}

/* ---- 遮罩 + 抽屉 ---- */
/* z-index 拉得很高：Element Plus 的弹窗是 2000 出头，页面底栏虽然只有 30，
 * 但它是 fixed，压在抽屉下面会从输入框底下露出半截「开始学习」，非常脏。 */
.lc-mask {
  position: fixed; inset: 0; z-index: 20000;
  background: rgba(12, 19, 32, .42);
  display: flex; align-items: flex-end; justify-content: center;
}
/* 聊天时课程底栏直接让位：学员这会儿不需要「开始学习」，露一条反而挡输入框 */
body.lc-on .cd-footbar { display: none; }
.lc-sheet {
  width: 100%; max-width: 560px; max-height: 78vh;
  background: #fff; border-radius: 16px 16px 0 0;
  display: flex; flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -8px 40px rgba(16, 26, 44, .18);
}

.lc-up-enter-active, .lc-up-leave-active { transition: opacity .2s ease; }
.lc-up-enter-from, .lc-up-leave-to { opacity: 0; }
.lc-up-enter-active .lc-sheet { transition: transform .26s cubic-bezier(.22, .7, .3, 1); }
.lc-up-leave-active .lc-sheet { transition: transform .19s ease-in; }
.lc-up-enter-from .lc-sheet, .lc-up-leave-to .lc-sheet { transform: translateY(100%); }

.lc-grip {
  flex: 0 0 auto; width: 36px; height: 4px; border-radius: 2px;
  background: #e2e7ef; margin: 8px auto 0;
}

.lc-head { display: flex; align-items: center; gap: 8px; padding: 10px 16px 8px; flex: 0 0 auto; }
.lc-head b { font-size: 15.5px; font-weight: 600; color: var(--text); }
.lc-sub { font-size: 12px; color: #9aa4b5; }
.lc-x {
  margin-left: auto; width: 30px; height: 30px; border-radius: 50%; border: 0;
  background: #f2f5fa; color: #6b7686; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

/* 老师回答了你的问题 */
.lc-answered {
  flex: 0 0 auto; margin: 0 16px 8px; padding: 9px 12px; border-radius: 9px;
  background: #eaf7ef; color: #15803d; font-size: 13px; cursor: pointer;
  display: flex; align-items: center; gap: 8px;
}
.lc-answered i { flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: #16a34a; }

/* 置顶：老师钉的公告，永远在最上面 */
.lc-pins { flex: 0 0 auto; margin: 0 16px 6px; display: flex; flex-direction: column; gap: 5px; }
.lc-pin {
  display: flex; gap: 8px; align-items: flex-start; font-size: 12.8px; line-height: 1.6;
  color: #5a4a2a; background: #fdf9ef; border: 1px solid #f2e4c4;
  border-radius: 8px; padding: 6px 10px;
}
.lc-pin-tag {
  flex: 0 0 auto; font-size: 10.5px; color: #a7711d; background: #f7e8c8;
  border-radius: 4px; padding: 1px 5px; margin-top: 2px;
}
.lc-pin-text { flex: 1; min-width: 0; word-break: break-word; }

/* ---- 消息流 ---- */
.lc-list {
  flex: 1 1 auto; min-height: 0; overflow-y: auto;
  padding: 6px 12px 10px; -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.lc-empty { text-align: center; color: #9aa4b5; font-size: 13px; padding: 40px 0; }

.lc-row { display: flex; gap: 8px; align-items: flex-start; padding: 7px 4px; border-radius: 10px; }
/* 自己的话靠右，和微信一致：不用读名字也知道哪句是自己说的 */
.lc-row.mine { flex-direction: row-reverse; }
.lc-row.flash { animation: lcFlash 1.7s ease both; }
@keyframes lcFlash {
  0%, 60% { background: #fff6dc; }
  100% { background: transparent; }
}

.lc-ava {
  flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%;
  background: #e8eefb; color: #4a6bb5; font-size: 13px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.lc-row.teacher .lc-ava { background: #f0e6cf; color: #8a6d2b; }

.lc-main { flex: 0 1 auto; min-width: 0; max-width: 78%; display: flex; flex-direction: column; }
.lc-row.mine .lc-main { align-items: flex-end; }
.lc-row.teacher .lc-main { max-width: 86%; }

.lc-meta {
  display: flex; align-items: center; gap: 5px; flex-wrap: nowrap;
  font-size: 11.5px; color: #9aa4b5; margin-bottom: 3px; max-width: 100%;
}
.lc-row.mine .lc-meta { justify-content: flex-end; }
.lc-meta b {
  font-size: 12px; color: #5a6678; font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 9em;
}
.lc-meta em { font-style: normal; font-size: 11px; color: #a8b1c0; flex: 0 0 auto; }

.lc-tag { flex: 0 0 auto; font-size: 10.5px; border-radius: 4px; padding: 1px 5px; line-height: 1.5; }
.lc-tag.q { background: #eaf1ff; color: var(--brand); }
.lc-tag.a { background: #eaf7ef; color: #15803d; }

.lc-text {
  padding: 9px 12px; border-radius: 12px; background: #f3f5f9;
  font-size: 14px; line-height: 1.6; color: var(--text);
  word-break: break-word; white-space: pre-wrap;
}
.lc-row.mine .lc-text { background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.lc-row.teacher .lc-text { background: #fdf8ec; box-shadow: inset 0 0 0 1px #f0e2c4; }
/* 自己的消息不署自己的名：气泡靠右已经说明了，再写一遍只是占宽 */
.lc-row.mine .lc-meta b { display: none; }

.lc-row.sending .lc-text { opacity: .55; }
.lc-row.fail .lc-text {
  background: #fdecec; color: #b42318; box-shadow: inset 0 0 0 1px #f6cfcf; cursor: pointer;
}

/* ---- 输入区 ---- */
.lc-compose {
  flex: 0 0 auto; position: relative; padding: 8px 12px 10px;
  border-top: 1px solid #f0f3f8; background: #fff;
}
.lc-bar { display: flex; gap: 8px; align-items: center; }
.lc-field {
  flex: 1; min-width: 0; height: 42px; padding: 0 15px; font-size: 16px;
  border: 1px solid var(--line); border-radius: 21px; background: #f6f8fb;
  color: var(--text); outline: none; transition: border-color .15s, background .15s;
}
.lc-field:focus { border-color: var(--brand); background: #fff; }
.lc-field::placeholder { color: #a8b1c0; font-size: 14.5px; }

.lc-send {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; border: 0;
  background: var(--brand); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform .14s ease, background .14s ease;
}
.lc-send:active:not(:disabled) { transform: scale(.9); }
.lc-send:disabled { background: #c8d2e2; cursor: not-allowed; }

/* 问句提示占固定一行：绝对定位会浮在最后一条消息上，一打字就糊住别人的话；
 * 高度写死则出现/消失都不会把上面的消息挤得跳一下。 */
.lc-qhint {
  height: 18px; line-height: 18px; font-size: 11.5px; color: var(--brand);
  text-align: right; padding-right: 4px; opacity: 0;
  transition: opacity .16s ease; pointer-events: none;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.lc-qhint.on { opacity: 1; }

.lc-readonly {
  flex: 0 0 auto; padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #f0f3f8; text-align: center; font-size: 12.5px; color: #9aa4b5;
}

@media (max-width: 640px) {
  .lc-sheet { max-height: 82vh; border-radius: 14px 14px 0 0; }
  .lc-fab { right: 14px; bottom: 82px; width: 50px; height: 50px; }
  .lc-fab-tip { right: 58px; }
  .lc-text { font-size: 15px; }
  .lc-main { max-width: 82%; }
}


/* ============ 活动报名（学员端 / 凭证 / 核销） ============
   三个页面共用：activity.html、t.html、checkin.html
   前缀 ac-（活动）、tk-（票/凭证）、ck-（核销） */

/* ---- 活动列表 ---- */
.ac-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.ac-card { background: #fff; border-radius: 14px; overflow: hidden; cursor: pointer;
  box-shadow: 0 2px 12px rgba(20, 40, 80, .06); transition: transform .15s, box-shadow .15s; }
.ac-card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(20, 40, 80, .12); }
.ac-card.ended { opacity: .72; }

.ac-cover { position: relative; height: 150px; background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
  background-size: cover; background-position: center; }
/* 无封面时的兜底：显示完整标题，最多两行，两侧留白防贴边
 * （原来取标题前 6 个字，长标题会被切得像 bug，比如「AI短视频实」）
 * 用 -webkit-box 做两行截断就不能同时用 flex 居中，垂直位置靠 padding-top 折算：150px 高、两行 60px */
.ac-cover-ph { position: absolute; inset: 0; padding: 45px 28px 0; text-align: center;
  color: rgba(255, 255, 255, .92); font-size: 20px; font-weight: 600; letter-spacing: 1px; line-height: 1.5;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ac-flag { position: absolute; left: 12px; top: 12px; font-size: 12px; padding: 3px 10px;
  border-radius: 12px; background: rgba(255, 255, 255, .92); color: var(--brand); font-weight: 600; }
.ac-flag.off { color: var(--muted); }
.ac-flag.full { color: var(--orange); }

.ac-body { padding: 14px 16px 16px; }
.ac-body h3 { margin: 0 0 8px; font-size: 16px; line-height: 1.45;
  overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ac-meta { font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.ac-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.ac-foot b { color: var(--red); font-size: 17px; }
.ac-foot b.free { color: var(--green); font-size: 14px; }
.ac-seat { font-size: 12px; color: var(--muted); }

/* ---- 活动详情 ---- */
.ac-detail { max-width: 720px; }
.ac-hero { height: 200px; border-radius: 14px; overflow: hidden; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
  background-size: cover; background-position: center; }
.ac-hero-ph { height: 100%; }
.ac-title { margin: 0 0 6px; font-size: 22px; line-height: 1.4; }
.ac-sub { margin: 0 0 16px; color: var(--muted); font-size: 14px; }

.ac-info { background: #fff; border-radius: 12px; padding: 4px 16px; margin-bottom: 16px;
  box-shadow: 0 2px 12px rgba(20, 40, 80, .05); }
.ac-info-row { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.ac-info-row:last-child { border-bottom: 0; }
.ac-info-row .k { flex: 0 0 56px; color: var(--muted); }
.ac-info-row .v { flex: 1; min-width: 0; line-height: 1.65; }
.ac-bar { display: inline-block; width: 96px; height: 6px; border-radius: 4px; margin-left: 8px;
  background: #eef2fa; vertical-align: middle; overflow: hidden; }
.ac-bar i { display: block; height: 100%; background: var(--brand); }

.ac-intro { background: #fff; border-radius: 12px; padding: 18px; margin-bottom: 16px;
  font-size: 14.5px; line-height: 1.85; white-space: pre-wrap; word-break: break-word;
  box-shadow: 0 2px 12px rgba(20, 40, 80, .05); }

/* ---- 报名表单 ---- */
.ac-form h3 { margin: 0 0 16px; font-size: 16px; }
.ac-field { margin-bottom: 14px; }
.ac-field label { display: block; font-size: 13.5px; color: #47536b; margin-bottom: 6px; }
.ac-field label em { color: var(--red); font-style: normal; margin-left: 2px; }
.ac-submit { margin-top: 20px; }
.ac-submit .el-button { width: 100%; height: 46px; font-size: 16px; }

/* ---- 已报名状态 ---- */
.ac-done { border-left: 4px solid var(--green); }
.ac-done-head { font-size: 14px; line-height: 2; color: #48546b; }
.ac-done-head code { font-size: 15px; letter-spacing: 2px; color: var(--brand);
  background: #eef3ff; padding: 2px 8px; border-radius: 6px; }
.ac-done-foot { margin-top: 14px; }
.ac-link { color: var(--brand); font-size: 13.5px; }
.ac-qr { display: block; width: 100%; max-width: 260px; margin: 10px auto; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; }
.ac-tip { font-size: 12.5px; color: var(--muted); line-height: 1.7; margin: 8px 0 0; }
.ac-tip.muted { color: #a8b1c0; }
.ac-warn { font-size: 13.5px; color: #a7711d; background: #fdf6ec; border-radius: 8px;
  padding: 10px 12px; line-height: 1.7; margin: 10px 0 0; }
.ac-closed { text-align: center; padding: 30px 18px; }
.ac-closed b { font-size: 15px; }

.ac-stamp { display: inline-block; font-size: 11.5px; padding: 2px 9px; border-radius: 10px;
  margin-right: 8px; background: #f1f4f9; color: var(--muted); }
.ac-stamp.confirmed { background: #eaf7ef; color: var(--green); }
.ac-stamp.checked { background: #eef3ff; color: var(--brand); }
.ac-stamp.pending { background: #fdf6ec; color: #a7711d; }
.ac-stamp.cancelled { background: #f4f5f8; color: #9aa4b5; }

/* ---- 我的报名 ---- */
.ac-mine { display: flex; flex-direction: column; gap: 12px; }
.ac-mine-card { display: flex; align-items: center; gap: 14px; background: #fff;
  border-radius: 12px; padding: 14px 16px; box-shadow: 0 2px 12px rgba(20, 40, 80, .05); }
.ac-mine-l { flex: 1; min-width: 0; }
.ac-mine-l h4 { margin: 0 0 6px; font-size: 15px; }
.ac-mine-code { margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.ac-mine-code code { letter-spacing: 1.5px; color: var(--brand); font-weight: 600; }
.ac-mine-r { flex: 0 0 auto; text-align: right; display: flex; flex-direction: column;
  align-items: flex-end; gap: 8px; }

/* ---- 凭证页 / 签到页 ---- */
.tk-body { background: #eef1f7; }
.tk-wrap { min-height: 100vh; display: flex; align-items: flex-start; justify-content: center;
  padding: 28px 16px 48px; }
.tk-card { width: 100%; max-width: 420px; background: #fff; border-radius: 18px; padding: 20px 22px 22px;
  box-shadow: 0 12px 40px rgba(20, 40, 80, .12); }
.tk-card.st-checked { box-shadow: 0 12px 40px rgba(31, 170, 89, .16); }
.tk-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.tk-brand { font-size: 12.5px; color: var(--muted); letter-spacing: 3px; }
.tk-stamp { font-size: 12px; padding: 3px 10px; border-radius: 11px; background: #f1f4f9; color: var(--muted); }
.tk-stamp.confirmed { background: #eaf7ef; color: var(--green); }
.tk-stamp.checked { background: #eef3ff; color: var(--brand); }
.tk-stamp.pending { background: #fdf6ec; color: #a7711d; }
.tk-stamp.cancelled { background: #f4f5f8; color: #9aa4b5; }

.tk-title { margin: 0 0 16px; font-size: 19px; line-height: 1.45; }
.tk-rows { border-top: 1px dashed var(--line); }
.tk-row { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.tk-row span { flex: 0 0 48px; color: var(--muted); }
.tk-row b { flex: 1; min-width: 0; font-weight: 500; line-height: 1.6; word-break: break-word; }

.tk-code { margin: 18px 0 8px; text-align: center; background: #f7f9fd; border-radius: 12px; padding: 14px; }
.tk-code-label { font-size: 12px; color: var(--muted); }
.tk-code-val { font-size: 26px; font-weight: 700; letter-spacing: 6px; color: var(--brand);
  font-family: ui-monospace, Menlo, Consolas, monospace; margin-top: 4px; }

.tk-op { margin-top: 16px; }
.tk-btn { display: block; width: 100%; height: 46px; line-height: 46px; text-align: center;
  border: 0; border-radius: 11px; background: var(--brand); color: #fff; font-size: 16px;
  font-weight: 600; cursor: pointer; }
.tk-btn:disabled { background: #c3cde0; cursor: not-allowed; }
.tk-btn.ghost { background: #fff; color: var(--brand); border: 1px solid var(--brand); line-height: 44px; }
.tk-hint { font-size: 12px; color: var(--muted); text-align: center; margin: 10px 0 0; line-height: 1.7; }
.tk-ok { background: #eaf7ef; color: #17864a; border-radius: 10px; padding: 12px; text-align: center; font-size: 14px; }
.tk-warn { background: #fdf6ec; color: #a7711d; border-radius: 10px; padding: 12px; text-align: center; font-size: 13.5px; line-height: 1.7; }
.tk-muted { font-size: 13px; color: var(--muted); line-height: 1.8; text-align: center; margin: 6px 0 14px; }
.tk-x { width: 44px; height: 44px; border-radius: 50%; background: #fdf0f0; color: var(--red);
  font-size: 24px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.tk-wrap h2 { margin: 0 0 8px; font-size: 18px; text-align: center; }

/* ---- 核销台 ---- */
.ck-h2 { margin: 0 0 6px; font-size: 19px; }
.ck-input { width: 100%; height: 54px; margin: 16px 0; text-align: center; font-size: 22px;
  letter-spacing: 5px; font-weight: 600; color: var(--text); border: 1px solid var(--line);
  border-radius: 12px; background: #fafbfd; outline: none; text-transform: uppercase;
  font-family: ui-monospace, Menlo, Consolas, monospace; }
.ck-input:focus { border-color: var(--brand); background: #fff; }
/* 占位提示不能跟着 22px 走，否则「例如 K7M2QP4X」比标题还大，像报错 */
.ck-input::placeholder { font-size: 15px; letter-spacing: 1px; font-weight: 400; color: #a8b1c0; }
.ck-result { margin-top: 14px; border-radius: 10px; padding: 12px 14px; font-size: 13.5px; line-height: 1.75; }
.ck-result.ok { background: #eaf7ef; color: #17864a; }
.ck-result.bad { background: #fdf0f0; color: #b83333; }

@media (max-width: 640px) {
  .ac-list { grid-template-columns: 1fr; gap: 14px; }
  .ac-cover { height: 132px; }
  .ac-cover-ph { padding-top: 36px; font-size: 18px; }
  .ac-detail { max-width: none; }
  .ac-hero { height: 156px; border-radius: 12px; }
  .ac-title { font-size: 19px; }
  .ac-info-row .k { flex: 0 0 48px; }
  .tk-wrap { padding: 16px 12px 36px; }
  .tk-card { border-radius: 16px; padding: 18px 16px 20px; }
  .tk-code-val { font-size: 23px; letter-spacing: 4px; }
}

/* ---- 后台：活动报名 ---- */
/* 地址列：一行省略 + title 看全文。不换行，否则「临沂市河东区创业孵化基地4楼 海淘电商会议室」
 * 这种长地址会把行高撑开、还会被 clamp 吃掉开头，看着像数据缺了 */
.act-addr { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act-stat { display: flex; gap: 18px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 12px;
  background: #f7f9fd; border-radius: 10px; font-size: 13px; color: var(--muted); }
.act-stat b { font-size: 17px; color: var(--text); margin-left: 4px; }
.act-stat b.green { color: var(--green); }
.act-stat b.orange { color: var(--orange); }
.act-stat b.muted { color: var(--muted); }

.act-toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.act-pager { display: flex; justify-content: flex-end; margin-top: 12px; }

.act-code { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: 1.5px;
  color: var(--brand); background: #eef3ff; padding: 1px 6px; border-radius: 5px; font-size: 12.5px; }

.act-field-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  padding: 8px 10px; margin-bottom: 8px; background: #fafbfd; border: 1px solid var(--line); border-radius: 8px; }

.act-img-prev { display: block; margin-top: 8px; width: 100%; max-width: 240px; height: 96px;
  object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.act-qr-prev { display: block; margin-top: 8px; width: 120px; height: 120px;
  object-fit: contain; border-radius: 8px; border: 1px solid var(--line); background: #fff; }

@media (max-width: 640px) {
  .act-field-row { padding: 8px; }
  .act-stat { gap: 12px; font-size: 12.5px; }
}

/* ============ 会员专区 ============ */
.mb-head { margin: 4px 0 18px; }
.mb-head h2 { margin: 0 0 6px; font-size: 22px; color: var(--text); }
.mb-head p { margin: 0; font-size: 13px; color: var(--muted); }
.mb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.mb-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  cursor: pointer; transition: box-shadow .18s, transform .18s; display: flex; flex-direction: column; }
.mb-card:hover { box-shadow: 0 10px 28px rgba(30, 45, 80, .1); transform: translateY(-2px); }
.mb-cover { position: relative; height: 132px; background: linear-gradient(135deg, #1b2b6b, var(--brand) 62%, #f0a92c);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 34px; font-weight: 700; }
.mb-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mb-flag { position: absolute; top: 10px; right: 10px; font-style: normal; font-size: 12px;
  background: rgba(255,255,255,.92); color: var(--green); padding: 3px 9px; border-radius: 20px; font-weight: 600; }
.mb-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.mb-name { font-size: 16px; font-weight: 600; color: var(--text); }
.mb-sub { font-size: 12.5px; color: var(--muted); }
.mb-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.mb-tags span { font-size: 11.5px; color: #5a6478; background: #f2f5fb; border-radius: 5px; padding: 2px 7px; }
.mb-foot { margin-top: auto; padding-top: 6px; display: flex; align-items: baseline; justify-content: space-between; }
.mb-price { font-size: 21px; color: var(--red); font-weight: 700; }
.mb-go { font-size: 13px; color: var(--brand); }
.mb-owned { font-size: 12px; color: var(--green); }

/* 会员卡详情 */
.mb-detail { max-width: 860px; margin: 0 auto; padding: 0 16px 110px; position: relative; }
.mb-detail .cd-back { position: fixed; top: 62px; left: 14px; z-index: 5; width: 34px; height: 34px;
  border-radius: 50%; background: rgba(20, 28, 45, .55); display: flex; align-items: center; justify-content: center; }
.mb-hero { display: flex; gap: 18px; padding: 22px; margin: 18px 0 16px; border-radius: 16px;
  background: linear-gradient(135deg, #17224a, #24356e 55%, #3a4f95); color: #fff; flex-wrap: wrap; }
.mb-hero-cover { width: 168px; height: 112px; border-radius: 12px; overflow: hidden; flex: none;
  background: rgba(255,255,255,.06); border: 1px dashed rgba(255,255,255,.26);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 600; letter-spacing: 3px; color: rgba(255,255,255,.82); }
.mb-hero-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mb-hero-main { flex: 1; min-width: 220px; }
.mb-hero-main h1 { margin: 0 0 6px; font-size: 21px; }
.mb-hero-main p { margin: 0 0 10px; font-size: 13px; color: rgba(255,255,255,.72); }
.mb-hero-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.mb-hero-tags span { font-size: 11.5px; color: rgba(255,255,255,.86); border: 1px solid rgba(255,255,255,.24);
  border-radius: 20px; padding: 2px 9px; }
.mb-hero-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.mb-hero-price b { font-size: 28px; color: #ffd166; }
.mb-hero-price small { font-size: 12px; color: rgba(255,255,255,.6); text-decoration: line-through; }

.mb-sec { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin-bottom: 14px; }
.mb-sec h3 { margin: 0 0 12px; font-size: 15px; color: var(--text); }
.mb-sec h3 small { font-size: 12px; color: var(--muted); font-weight: 400; }
.mb-intro { margin: 0; font-size: 13.5px; line-height: 1.9; color: #46536b; white-space: pre-wrap; }
.mb-course { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); cursor: pointer; }
.mb-course:last-child { border-bottom: none; }
.mb-course-cover { width: 92px; height: 56px; border-radius: 8px; overflow: hidden; flex: none;
  background: linear-gradient(135deg, var(--brand), var(--brand-light)); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; }
.mb-course-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mb-course-main { flex: 1; min-width: 0; }
.mb-course-main b { display: block; font-size: 14px; color: var(--text); font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mb-course-main span { font-size: 12px; color: var(--muted); }
.mb-course-tag { font-size: 11.5px; color: var(--green); background: #eaf8f0; padding: 2px 8px; border-radius: 20px; flex: none; }

.mb-buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: #fff;
  border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
.mb-buybar-in { max-width: 860px; margin: 0 auto; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; }
.mb-buybar-l { display: flex; flex-direction: column; gap: 2px; }
.mb-buybar-l b { font-size: 22px; color: var(--red); line-height: 1.1; }
.mb-buybar-l span { font-size: 12px; color: var(--muted); }

@media (max-width: 640px) {
  .mb-grid { grid-template-columns: 1fr; }
  .mb-detail { padding: 0 12px 108px; }
  .mb-hero { padding: 16px; gap: 14px; }
  .mb-hero-cover { width: 100%; height: 88px; }
  .mb-hero-main h1 { font-size: 18px; }
  .mb-hero-price b { font-size: 24px; }
  .mb-buybar { gap: 10px; }
  .mb-buybar-l b { font-size: 20px; }
}

/* 我的：会员横幅 */
.my-mb { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.my-mb-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 13px 16px; border-radius: 12px; color: #fff;
  background: linear-gradient(120deg, #1b2b6b, var(--brand) 70%, #5b7bf0); }
.my-mb-main { display: flex; align-items: center; gap: 9px; }
.my-mb-main b { font-size: 15px; }
.my-mb-tag { font-size: 11px; padding: 2px 8px; border-radius: 20px; }
.my-mb-tag.on { background: rgba(255,255,255,.9); color: var(--green); font-weight: 600; }
.my-mb-tag.off { background: rgba(0,0,0,.28); color: rgba(255,255,255,.72); }
/* 试用中的标签用暖黄：和「生效中」的绿色分开，一眼看得出这人是来试的，还没付钱 */
.my-mb-tag.trial { background: #ffb020; color: #4a2f00; font-weight: 600; }
.my-mb-meta { font-size: 12px; color: rgba(255,255,255,.82); }
.my-mb-link { color: #ffd166; margin-left: 10px; }

/* 我的：待确认的会员订单 */
.my-mb-pending { border: 1px solid #ffe0b2; background: #fffaf1; border-radius: 12px;
  padding: 12px 16px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 4px; }
.my-mb-pending b { font-size: 13.5px; color: #a7711d; }
.my-mb-pending span { font-size: 13px; color: #46536b; }
.my-mb-pending em { font-style: normal; font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ============ 训练营 ============ */
/* 学号：后台名单里一眼能念给学员听，用等宽字避免 0/O、1/l 看混 */
.stu-no { font-family: 'SFMono-Regular', Menlo, Consolas, monospace; font-size: 12.5px;
  letter-spacing: .4px; color: #344054; background: #f4f6fb;
  border: 1px solid #e6eaf2; border-radius: 6px; padding: 1px 7px; }
/* 二维码：白底 + 细边框。二维码压深色底或贴边都会扫不出来 */
.qr-plate { display: inline-block; padding: 10px; background: #fff;
  border: 1px solid #e6eaf2; border-radius: 12px; }
.qr-plate img { display: block; width: 200px; height: 200px; }
/* 长原因只露两行，鼠标悬停看全文 —— 表格行高不能被一段话撑到半屏 */
.cell-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; line-height: 1.55; }
/* 学员端看到的学号：老师群里点名用，得显眼但不抢标题 */
.my-no { display: inline-block; font-family: 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 12px; font-weight: 600; letter-spacing: .4px; color: #1b2b6b;
  background: #eef2ff; border: 1px solid #dde5ff; border-radius: 6px;
  padding: 2px 8px; margin-left: 8px; vertical-align: 2px; }
.my-no.sm { font-size: 11px; padding: 1px 6px; margin: 0 6px 0 0; vertical-align: 1px; }
.camp-hw-line { display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:9px 0; border-bottom:1px dashed var(--line); font-size:13.5px; color:#46536b; }
.camp-hw-line:last-child { border-bottom:none; }
.camp-hw-line em { font-style:normal; font-size:11.5px; color:#b26a00; background:#fff6e6;
  padding:1px 7px; border-radius:20px; flex:none; }

.mycamp-head { display:flex; align-items:flex-end; justify-content:space-between; gap:12px;
  margin:4px 0 16px; flex-wrap:wrap; }
.mycamp-head h2 { margin:0 0 4px; font-size:21px; color:var(--text); }
.mycamp-head p { margin:0; font-size:12.5px; color:var(--muted); }
.mycamp-head a { font-size:13px; color:var(--brand); white-space:nowrap; }

.mycamp-cert { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap;
  padding:16px 18px; border-radius:14px; margin-bottom:14px; color:#fff;
  background:linear-gradient(120deg,#1b2b6b,var(--brand) 70%,#5b7bf0); }
.mycamp-cert.done { background:linear-gradient(120deg,#0f5132,#12b76a 80%,#5ad8a0); }
.mycamp-cert-main { display:flex; flex-direction:column; gap:5px; min-width:200px; }
.mycamp-cert-main b { font-size:16px; }
.mycamp-cert-main span { font-size:12.5px; color:rgba(255,255,255,.82); line-height:1.6; }
.mycamp-cert-nums { display:flex; gap:22px; }
.mycamp-cert-nums div { text-align:right; }
.mycamp-cert-nums b { font-size:22px; }
.mycamp-cert-nums span { font-size:12px; color:rgba(255,255,255,.72); margin-left:2px; }

.mc-prog { display:flex; align-items:center; gap:12px; padding:10px 0;
  border-bottom:1px dashed var(--line); cursor:pointer; }
.mc-prog:last-child { border-bottom:none; }
.mc-prog-cover { width:92px; height:56px; border-radius:8px; overflow:hidden; flex:none;
  background:linear-gradient(135deg,var(--brand),var(--brand-light)); color:#fff;
  display:flex; align-items:center; justify-content:center; font-size:18px; font-weight:700; }
.mc-prog-cover img { width:100%; height:100%; object-fit:cover; display:block; }
.mc-prog-main { flex:1; min-width:0; }
.mc-prog-main b { display:block; font-size:14px; color:var(--text); font-weight:500;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mc-prog-main span { font-size:12px; color:var(--muted); }
.mc-bar { height:6px; border-radius:4px; background:#eef1f7; margin:6px 0 4px; overflow:hidden; }
.mc-bar i { display:block; height:100%; border-radius:4px;
  background:linear-gradient(90deg,var(--brand),#5b7bf0); }
.mc-prog-go { font-size:12.5px; color:var(--brand); flex:none; }

.my-hw { display:flex; align-items:flex-start; justify-content:space-between; gap:14px;
  padding:12px 0; border-bottom:1px dashed var(--line); }
.my-hw:last-child { border-bottom:none; }
.my-hw-main { display:flex; flex-direction:column; gap:4px; min-width:0; }
.my-hw-main b { font-size:14px; color:var(--text); font-weight:500; }
.my-hw-main span { font-size:12px; color:var(--muted); }
.my-hw-comment { color:#a7711d !important; background:#fffaf1; border-radius:6px; padding:3px 8px; margin-top:2px; }
.my-hw-act { display:flex; flex-direction:column; align-items:flex-end; gap:6px; flex:none; }
.my-hw-act em { font-style:normal; font-size:11.5px; padding:1px 8px; border-radius:20px; }
.my-hw-act .st-none { color:#8a94a6; background:#f2f5fb; }
.my-hw-act .st-pending { color:#a7711d; background:#fff6e6; }
.my-hw-act .st-passed { color:var(--green); background:#eaf8f0; }
.my-hw-act .st-rejected { color:#d9534f; background:#fdecec; }

.hw-req { margin:0 0 10px; padding:10px 12px; background:#f5f7fc; border-radius:8px;
  font-size:13px; line-height:1.8; color:#46536b; white-space:pre-wrap; }
.hw-comment { margin-bottom:10px; padding:8px 12px; border-radius:8px; background:#fffaf1;
  color:#a7711d; font-size:12.5px; line-height:1.7; }
.hw-comment.pass { background:#eaf8f0; color:var(--green); }
.hw-imgs { display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }
.hw-img { position:relative; width:76px; height:76px; border-radius:8px; overflow:hidden;
  border:1px solid var(--line); }
.hw-img img { width:100%; height:100%; object-fit:cover; display:block; }
.hw-img i { position:absolute; top:0; right:0; width:18px; height:18px; line-height:17px;
  text-align:center; background:rgba(20,28,45,.62); color:#fff; font-style:normal; font-size:13px;
  cursor:pointer; border-bottom-left-radius:6px; }
.hw-add { width:76px; height:76px; border:1px dashed #cfd6e4; border-radius:8px; color:#98a2b3;
  display:flex; align-items:center; justify-content:center; font-size:24px; cursor:pointer; background:#fafbfe; }
.hw-tip { font-size:11.5px; color:var(--muted); margin-top:8px; }

@media (max-width: 640px) {
  .my-hw { flex-direction:column; gap:8px; }
  .my-hw-act { flex-direction:row; align-items:center; width:100%; justify-content:space-between; }
  .mycamp-cert { padding:14px; }
  .mycamp-cert-nums { gap:16px; }
}

/* ---------- 首页弹窗（后台「首页弹窗」配置，学员端首页盖一张图） ---------- */
.hp-mask {
  position: fixed; inset: 0; z-index: 3000; display: flex; overflow: hidden;
  align-items: center; justify-content: center; padding: 30px 26px;
  background: rgba(15, 23, 42, .62);
}
/* min-width:0 必须有：.hp-box 是 flex item，宽度由内容撑时 img 的 width:100%
 * 会绕回图片固有宽度（1024px 的竖版海报直接顶出屏幕），加上它宽度才收得住 */
.hp-box { position: relative; width: 100%; max-width: 330px; min-width: 0; }
.hp-img {
  width: 100%; max-width: 100%; height: auto; display: block;
  max-height: calc(100vh - 100px); object-fit: contain;
  border-radius: 14px; cursor: pointer;
  box-shadow: 0 14px 44px rgba(0, 0, 0, .38);
}
.hp-close {
  position: absolute; right: -10px; top: -10px; width: 30px; height: 30px;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .94); color: #4b5563;
  font-size: 20px; line-height: 30px; text-align: center; cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .22);
}
.hp-close:active { background: #fff; }
@media (max-width: 360px) { .hp-box { max-width: 290px; } }
