:root {
  --bg: #eef3fb;
  --card: #ffffff;
  --primary: #2f6bff;
  --primary-weak: #e8efff;
  --text: #1c2333;
  --muted: #8a94a6;
  --line: #e8ecf3;
  --radius: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, #dfe9fb 0%, var(--bg) 240px);
  color: var(--text);
  max-width: 520px; margin: 0 auto; min-height: 100vh;
}
button { font-family: inherit; border: none; cursor: pointer; background: none; }

/* 顶栏 */
.topbar { padding: 14px 16px 0; }
.brand-row { display: flex; align-items: baseline; gap: 10px; }
.date-box b { font-size: 30px; font-weight: 800; }
.date-box i { font-style: normal; font-size: 12px; color: var(--muted); margin-left: 2px; }
.slogan { font-size: 13px; color: #4a5b7d; flex: 1; }
.top-auth {
  flex: none; align-self: center; border: none; cursor: pointer;
  padding: 6px 15px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--primary); color: #fff; box-shadow: 0 3px 10px rgba(47,107,255,.25);
}
.top-auth.on { background: #eef2fb; color: var(--primary); box-shadow: none; max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-entry {
  flex: none; align-self: center; margin-left: 8px;
  font-size: 11px; color: #9aa5bb; text-decoration: none;
  padding: 3px 7px; border-radius: 6px; border: 1px solid #e6eaf3; white-space: nowrap;
}
.admin-entry:hover { color: var(--primary); border-color: var(--primary); }
.search-row { margin: 12px 0 4px; }
.search-box {
  display: flex; align-items: center; gap: 8px;
  background: var(--card); border-radius: 999px; padding: 4px 4px 4px 14px;
  box-shadow: 0 4px 16px rgba(47,107,255,.08);
}
.search-ico { font-size: 14px; }
.search-box input { flex: 1; border: none; outline: none; font-size: 14px; background: transparent; height: 34px; }
.search-box button {
  background: linear-gradient(90deg, #ffd77a, #ffb84d);
  color: #7a4b00; font-weight: 600; font-size: 13px;
  border-radius: 999px; padding: 8px 16px;
}
.cat-nav {
  display: flex; gap: 15px; overflow-x: auto; padding: 12px 2px 10px; scrollbar-width: none;
  /* 右侧渐隐，提示还能往左滑 */
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 22px), transparent 100%);
  mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 22px), transparent 100%);
}
.cat-nav::-webkit-scrollbar { display: none; }
.cat-item { font-size: 14.5px; color: var(--muted); white-space: nowrap; padding: 2px 0; border-bottom: 2px solid transparent; }
.cat-item.active { color: var(--primary); font-weight: 700; border-color: var(--primary); }

/* 课程列表 */
#main { padding: 6px 16px 8px; }

/* 备案信息（工信部要求：首页底部展示备案号并链接备案系统） */
.site-footer {
  max-width: 520px; margin: 0 auto;
  padding: 12px 16px calc(74px + env(safe-area-inset-bottom));
  text-align: center; font-size: 12px; line-height: 1.7; color: var(--muted);
}
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--primary); text-decoration: underline; }
.beian-row {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 6px;
}
.beian-sep { color: var(--muted); opacity: .6; }
.beian-ico {
  width: 13px; height: 13px; vertical-align: -2px;
  margin-right: 3px;
}
.sub-row { display: flex; align-items: center; gap: 8px; padding: 6px 0 12px; }
.chip {
  font-size: 12px; padding: 5px 12px; border-radius: 999px;
  background: var(--card); color: var(--muted);
}
.chip.active { background: var(--primary-weak); color: var(--primary); font-weight: 600; }
.sub-row .spacer { flex: 1; }
/* ☰ / ▦ 视图切换（可点，选中态高亮） */
.sub-ico {
  flex: none; width: 30px; height: 28px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; line-height: 1; color: #9099ab; background: transparent;
  transition: background .16s, color .16s;
}
.sub-ico:active { background: #e6edff; }
.sub-ico.active { color: var(--primary); background: var(--primary-weak); font-weight: 700; }

/* 宫格视图：双列竖卡 */
.course-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.course-grid .course-item { flex-direction: column; gap: 8px; padding: 8px; margin-bottom: 0; }
.course-grid .course-cover { width: 100%; height: 96px; border-radius: 10px; }
.course-grid .course-cover .cv-emoji { font-size: 22px; }
.course-grid .course-info { flex: none; display: block; }
.course-grid .course-title { font-size: 12.5px; line-height: 1.4; -webkit-line-clamp: 2; min-height: 35px; }
.course-grid .course-meta { margin-top: 4px; gap: 3px 6px; font-size: 11px; row-gap: 3px; }
.course-grid .course-meta .cm-sub { font-size: 10.5px; color: #b0b8c8; }
.course-grid .trial-tag { display: none; }
.course-grid .course-price { margin-left: 0; font-size: 12.5px; }

.course-item {
  display: flex; gap: 12px; background: var(--card);
  border-radius: var(--radius); padding: 10px; margin-bottom: 12px;
  box-shadow: 0 2px 10px rgba(28,35,51,.04);
}
.course-cover {
  width: 112px; height: 84px; border-radius: 10px; flex-shrink: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 8px; color: #fff; position: relative; overflow: hidden;
}
.course-cover .cv-emoji { font-size: 26px; }
.course-cover .cv-img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; position: absolute; inset: 0; }
.detail-cover { position: relative; overflow: hidden; }
.detail-cover .detail-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.detail-cover .cat {
  position: relative; align-self: stretch; text-align: center;
  padding: 6px 0; background: linear-gradient(0deg, rgba(0,0,0,.45), rgba(0,0,0,0));
  margin-top: auto; width: 100%;
}
.course-cover .cv-tag {
  position: absolute; right: 0; bottom: 8px;
  background: rgba(0,0,0,.22); color: #fff; font-size: 10px;
  padding: 3px 8px; border-radius: 8px 0 0 8px;
}
/* 管理员在课程卡片上看到的「未发布 / 仅管理员」标记 */
.course-cover .cv-flag {
  position: absolute; left: 8px; bottom: 8px;
  font-size: 10px; font-weight: 700; color: #fff;
  padding: 3px 8px; border-radius: 8px;
  background: rgba(180, 83, 9, .92);
  backdrop-filter: blur(2px);
}
.course-cover .cv-flag.hide { background: rgba(67, 56, 202, .92); }
.admin-note {
  margin-top: 10px; padding: 8px 11px; border-radius: 9px;
  background: #fff7ed; border: 1px dashed #fdba74;
  color: #9a3412; font-size: 12px; line-height: 1.6;
}
.course-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.course-title {
  font-size: 14px; font-weight: 600; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.course-meta {
  margin-top: auto; display: flex; align-items: center; flex-wrap: wrap;
  gap: 4px 8px; row-gap: 6px; font-size: 12px; color: var(--muted);
}
.course-meta .cm-sub {
  flex: 1 1 100%; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.course-price { margin-left: auto; color: #ff6a3c; font-weight: 700; }
.course-price.free { color: #12b76a; }

/* 详情 */
.detail-cover {
  height: 170px; border-radius: 16px; display: flex; flex-direction: column;
  justify-content: center; align-items: center; color: #fff; margin-top: 8px;
}
.detail-cover .big { font-size: 52px; }
.detail-cover .cat { margin-top: 8px; font-size: 12px; opacity: .85; }
.detail-card { background: var(--card); border-radius: var(--radius); padding: 16px; margin-top: 14px; }
.detail-title { font-size: 17px; font-weight: 700; line-height: 1.5; }
.detail-sub { font-size: 13px; color: var(--muted); margin-top: 6px; }
.detail-stats { display: flex; gap: 14px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.lesson-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 4px; border-bottom: 1px solid var(--line);
}
.lesson-item:last-child { border-bottom: none; }
.lesson-idx {
  width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0;
  background: var(--primary-weak); color: var(--primary);
  font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.lesson-name { font-size: 14px; }
.lesson-dur { margin-left: auto; font-size: 12px; color: var(--muted); }
.lesson-progress { font-size: 11px; color: #12b76a; margin-top: 2px; }

/* 试看 / 加锁 */
.lesson-item.locked { cursor: pointer; }
.lesson-item.locked .lesson-idx { background: #f1f3f8; color: #98a2b3; font-size: 13px; }
.lesson-item.locked .lesson-name { color: #8a94a6; }
.lesson-lock { font-size: 11px; color: #ef8b1f; margin-top: 2px; }
.lesson-free { font-size: 11px; color: #12b76a; margin-top: 2px; }
.trial-badge {
  display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px;
  background: #e8f7ee; color: #12b76a; font-size: 11px; font-weight: 600; vertical-align: middle;
}
.trial-tag {
  font-size: 10px; color: #ef8b1f; background: #fff6e8;
  padding: 2px 7px; border-radius: 999px; flex-shrink: 0;
}
.preview-tip { font-size: 12px; color: #ef8b1f; background: #fff8ec; border-radius: 8px; padding: 8px 10px; margin-top: 10px; line-height: 1.6; }
.lock-hero { background: #101828; }
.lock-hero .lock-sub { font-size: 12px; opacity: .7; }

/* 章节目录树 */
.chapter-item { border-bottom: 1px solid var(--line); }
.chapter-item:last-child { border-bottom: none; }
.chapter-row {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 4px; cursor: pointer; user-select: none;
  border-radius: 8px;
}
.chapter-row:active { background: #f4f7ff; }
.chapter-row .ch-caret { font-size: 11px; color: var(--muted); width: 10px; flex-shrink: 0; }
.chapter-row .ch-ico { font-size: 13px; flex-shrink: 0; }
.chapter-row .ch-name { font-size: 14px; font-weight: 600; color: #1e293b; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chapter-row .ch-count { font-size: 11px; color: var(--muted); margin-left: auto; white-space: nowrap; }
.chapter-lessons { display: none; margin-left: 15px; padding-left: 12px; border-left: 2px solid #dfe6f5; }
.chapter-item.open > .chapter-lessons { display: block; }
/* 二级及更深的章节：缩进 + 淡一点的连接线，让「目录树」的层级一眼可见 */
.chapter-lessons .chapter-item > .chapter-row { border-radius: 6px; }
.chapter-lessons .chapter-item > .chapter-row:active { background: #f4f7ff; }
.chapter-item[data-depth="1"] > .chapter-row .ch-name,
.chapter-item[data-depth="2"] > .chapter-row .ch-name,
.chapter-item[data-depth="3"] > .chapter-row .ch-name { font-weight: 500; }
.chapter-lessons .lesson-item:first-child { padding-top: 8px; }
.chapter-lessons .lesson-item { border-bottom: 1px solid #f2f5fb; }

.btn-primary {
  display: block; width: 100%; margin-top: 16px;
  background: linear-gradient(90deg, var(--primary), #5b8cff);
  color: #fff; font-size: 15px; font-weight: 600;
  padding: 13px; border-radius: 999px; text-align: center;
}
.btn-ghost {
  display: block; width: 100%; margin-top: 10px;
  border: 1px solid var(--primary); color: var(--primary);
  font-size: 14px; padding: 11px; border-radius: 999px; text-align: center; background: var(--card);
}

/* 播放（课时页） */
.player-hero {
  height: 200px; border-radius: 16px; margin-top: 8px;
  background: #101828; color: #fff; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px; overflow: hidden;
}
.player-hero:has(.lesson-video) { height: auto; background: #000; }
.lesson-video { width: 100%; aspect-ratio: 16 / 9; display: block; background: #000; border-radius: 16px; }
.player-hero:has(.doc-frame) { height: 72vh; background: #f1f3f8; padding: 0; }
.player-hero:has(.doc-hero) { background: #f1f3f8; color: #1e293b; }
.doc-frame { width: 100%; height: 100%; border: 0; display: block; background: #fff; border-radius: 16px; }
.doc-hero { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 24px 20px; text-align: center; }
.doc-emoji { font-size: 52px; line-height: 1; }
.doc-title { font-size: 15px; font-weight: 600; color: #1e293b; word-break: break-all; }
.doc-sub { font-size: 12px; color: #64748b; line-height: 1.7; }
.doc-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.doc-actions .btn-primary, .doc-actions .btn-ghost { flex: 1; min-width: 120px; text-align: center; text-decoration: none; }
/* 课程详情页「课程讲义」下载区 */
.doc-cnt { font-size: 12px; font-weight: 400; color: #8a94a6; margin-left: 4px; }
.doc-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.doc-row { display: flex; align-items: center; gap: 10px; background: #f8fafc; border: 1px solid #e8edf6; border-radius: 10px; padding: 10px 12px; }
.doc-row.locked { background: #f7f8fa; border-style: dashed; }
.doc-ico { font-size: 22px; flex: none; width: 26px; text-align: center; }
.doc-info { flex: 1; min-width: 0; }
.doc-nm { font-size: 13px; color: #1f2937; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-meta { font-size: 11px; color: #8a94a6; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-dl { flex: none; font-size: 12px; font-weight: 600; color: #2563eb; background: #eaf1ff; border: 1px solid #cfe0ff; border-radius: 99px; padding: 6px 14px; cursor: pointer; }
.doc-dl:active { transform: scale(.97); }
.doc-dl:disabled { opacity: .6; }
.doc-tip { font-size: 12px; color: #b45309; background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 8px 10px; margin-top: 10px; }
.player-hero .ph-emoji { font-size: 56px; }
.player-hero .ph-title { font-size: 15px; opacity: .9; padding: 0 20px; text-align: center; }
.progress-bar { width: 70%; height: 5px; background: rgba(255,255,255,.2); border-radius: 999px; overflow: hidden; }
.progress-bar > div { height: 100%; background: #4ade80; border-radius: 999px; transition: width .3s; }

/* 我的 / 登录 */
.me-card { background: var(--card); border-radius: var(--radius); padding: 18px; margin-top: 10px; display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #7ea4ff);
  color: #fff; font-size: 22px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.me-name { font-size: 16px; font-weight: 700; }
.me-sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.me-stats { display: flex; background: var(--card); border-radius: var(--radius); margin-top: 12px; padding: 14px 0; }
.me-stat { flex: 1; text-align: center; }
.me-stat b { font-size: 18px; display: block; }
.me-stat span { font-size: 11px; color: var(--muted); }
.section-title { font-size: 15px; font-weight: 700; margin: 18px 0 10px; }

/* 登录表单 */
.login-card { background: var(--card); border-radius: 16px; padding: 22px 18px; margin-top: 16px; }
.login-tabs { display: flex; gap: 20px; margin-bottom: 18px; }
.login-tab { font-size: 16px; color: var(--muted); padding-bottom: 6px; }
.login-tab.active { color: var(--text); font-weight: 700; border-bottom: 2px solid var(--primary); }
.field { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); padding: 12px 0; }
.field input { flex: 1; border: none; outline: none; font-size: 15px; background: transparent; }
.field .code-btn { font-size: 13px; color: var(--primary); font-weight: 600; white-space: nowrap; }
.field-err { font-size: 12px; color: #ef4444; padding: 6px 2px 0; min-height: 18px; }
.login-err { font-size: 13px; color: #ef4444; margin-top: 10px; min-height: 18px; }
.wechat-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; margin-top: 14px; padding: 12px;
  background: #07c160; color: #fff; font-size: 14px; font-weight: 600; border-radius: 999px;
}
.login-tip { font-size: 11px; color: var(--muted); text-align: center; margin-top: 12px; }
.order-wait {
  margin-top: 16px; padding: 12px 14px; border-radius: 12px;
  background: #fff7e6; color: #b45309; font-size: 13px; line-height: 1.6; text-align: center;
}

/* 消息 */
.msg-item { display: flex; gap: 12px; background: var(--card); border-radius: var(--radius); padding: 14px; margin-bottom: 10px; }
.msg-ico { width: 42px; height: 42px; border-radius: 12px; background: var(--primary-weak); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.msg-title { font-size: 14px; font-weight: 600; }
.msg-body { font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.msg-time { font-size: 11px; color: #b3bac7; margin-top: 6px; }

/* 底部导航 */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 520px;
  background: var(--card); border-top: 1px solid var(--line);
  display: flex; padding: 6px 0 calc(6px + env(safe-area-inset-bottom)); z-index: 50;
}
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--muted); }
.tab.active { color: var(--primary); }
.tab.active .tab-ico-bg, .t-ico { font-size: 20px; }
.tab.active .t-label { font-weight: 600; }
.t-label { font-size: 11px; }

/* 通用 */
.empty { text-align: center; color: var(--muted); font-size: 13px; padding: 50px 0; }
.back-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; }
.back-btn { font-size: 20px; color: var(--text); }
.page-title { font-size: 16px; font-weight: 700; }
.toast {
  position: fixed; left: 50%; bottom: 120px; transform: translateX(-50%) translateY(20px);
  background: rgba(28,35,51,.9); color: #fff; font-size: 13px;
  padding: 10px 18px; border-radius: 999px; opacity: 0; pointer-events: none;
  transition: all .25s; z-index: 99; max-width: 80%;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.loading { text-align: center; color: var(--muted); font-size: 13px; padding: 30px 0; }

/* ---------- 支付弹窗 ---------- */
.pay-mask {
  position: fixed; inset: 0; background: rgba(16,24,40,.55);
  display: flex; align-items: flex-end; justify-content: center;
  z-index: 200; opacity: 0; pointer-events: none; transition: opacity .22s;
}
.pay-mask.show { opacity: 1; pointer-events: auto; }
.pay-sheet {
  width: 100%; max-width: 520px; background: var(--card);
  border-radius: 20px 20px 0 0; padding: 20px 18px calc(20px + env(safe-area-inset-bottom));
  transform: translateY(28px); transition: transform .25s; max-height: 92vh; overflow-y: auto;
}
.pay-mask.show .pay-sheet { transform: translateY(0); }
.pay-head { display: flex; align-items: center; margin-bottom: 4px; }
.pay-head h3 { font-size: 17px; font-weight: 700; flex: 1; }
.pay-close { font-size: 18px; color: var(--muted); padding: 4px 8px; }
.pay-amount { font-size: 26px; font-weight: 800; color: #ef4444; margin: 6px 0 2px; }
.pay-amount small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 6px; }
.pay-course { font-size: 12px; color: var(--muted); margin-bottom: 14px; }

.pay-tabs { display: flex; gap: 10px; margin-bottom: 14px; }
.pay-tab {
  flex: 1; padding: 10px; border-radius: 12px; font-size: 14px; font-weight: 600;
  background: #f2f4f9; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 6px;
}
.pay-tab.active { background: var(--primary-weak); color: var(--primary); box-shadow: inset 0 0 0 1.5px var(--primary); }

.pay-qrbox { text-align: center; padding: 6px 0 10px; }
.pay-qr {
  width: 216px; height: 216px; margin: 0 auto; border-radius: 14px;
  background: #fff; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.pay-qr img { width: 100%; height: 100%; object-fit: contain; }
.pay-qr .qhint { font-size: 12px; color: var(--muted); padding: 0 24px; line-height: 1.6; }
.pay-method-tip { font-size: 12px; color: var(--muted); margin-top: 10px; line-height: 1.6; }
.pay-method-tip b { color: var(--text); }

.pay-steps { background: #f7f9fc; border-radius: 12px; padding: 12px 14px; margin-top: 14px; }
.pay-step { font-size: 12px; color: var(--muted); line-height: 1.9; display: flex; gap: 8px; }
.pay-step i {
  flex-shrink: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--primary);
  color: #fff; font-size: 10px; font-style: normal; display: flex; align-items: center; justify-content: center;
  margin-top: 3px;
}
.pay-actions { display: flex; gap: 10px; margin-top: 16px; }
.pay-actions .btn-ghost { margin-top: 0; }
.pay-actions .done-btn {
  flex: 1; background: linear-gradient(90deg, var(--primary), #5b8cff); color: #fff;
  font-size: 15px; font-weight: 600; padding: 12px; border-radius: 999px;
}
.pay-status { font-size: 13px; color: #12b76a; text-align: center; padding: 8px 0; min-height: 18px; }
.pay-status.err { color: #ef4444; }

/* ---------- 投稿上传 ---------- */
.up-card { background:#fff; border:1px solid #e7ebf3; border-radius:14px; padding:16px; }
.up-label { display:block; font-size:13px; font-weight:600; color:#3a4358; margin-bottom:6px; }
.up-card input#upTitle { width:100%; box-sizing:border-box; border:1px solid #dfe5f0; border-radius:10px; padding:10px 12px; font-size:14px; margin-bottom:12px; }
/* 投稿课程分类（必选） */
.up-req { color:#ef4444; font-weight:700; font-size:11px; margin-left:2px; }
.up-select {
  width:100%; box-sizing:border-box; appearance:none; -webkit-appearance:none;
  border:1px solid #dfe5f0; border-radius:10px; padding:10px 34px 10px 12px;
  font-size:14px; color:#1c2333; background:#fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' fill='none' stroke='%238a94a6' stroke-width='1.6' stroke-linecap='round'/></svg>") no-repeat right 12px center;
}
.up-select.err { border-color:#ef4444; box-shadow:0 0 0 3px rgba(239,68,68,.12); }
.up-tip { font-size:11px; color:#8a94a6; margin:6px 0 12px; line-height:1.5; }
.up-row { display:flex; align-items:center; gap:10px; margin-bottom:10px; flex-wrap:wrap; }
.up-drop { border:2px dashed #c9d4ee; border-radius:12px; padding:26px 14px; text-align:center; color:#8a94a6; font-size:14px; transition:.2s; }
.up-drop.over { border-color:#6366f1; background:#f4f5ff; }
.up-list-head { display:flex; align-items:center; justify-content:space-between; margin:12px 0 8px; font-size:13px; }
.up-items { max-height:260px; overflow:auto; border:1px solid #eef1f8; border-radius:10px; }
.up-item { display:flex; align-items:center; gap:8px; padding:7px 10px; font-size:12px; border-bottom:1px solid #f2f4fa; }
.up-item:last-child { border-bottom:none; }
.up-idx { width:22px; color:#b3bac7; flex:none; }
.up-name { flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#3a4358; }
.up-size { color:#b3bac7; flex:none; }
.up-st { flex:none; min-width:60px; text-align:right; color:#16a34a; font-size:11px; }
.up-st[data-st] { color:#b3bac7; }
.up-badge { font-size:12px; padding:2px 10px; border-radius:99px; flex:none; }
.up-badge.pending { background:#fef3c7; color:#b45309; }
.up-badge.ok { background:#dcfce7; color:#15803d; }
.up-badge.rejected { background:#fee2e2; color:#b91c1c; }
.up-mine-row { display:flex; align-items:center; gap:10px; background:#fff; border:1px solid #eef1f8; border-radius:10px; padding:10px 14px; margin-bottom:8px; }
.up-mine-title { flex:1; font-size:14px; color:#1f2937; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.primary-btn { background:#6366f1; color:#fff; border-color:#6366f1 !important; font-weight:600; padding:10px 22px !important; }

/* ---------- 私信聊天 ---------- */
.chat-box {
  min-height: 320px;
  max-height: 60vh;
  overflow-y: auto;
  padding: 10px 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.chat-row { display: flex; flex-direction: column; align-items: flex-start; margin-bottom: 8px; }
.chat-row.mine { align-items: flex-end; }
.chat-bubble {
  max-width: 78%;
  padding: 8px 12px;
  border-radius: 14px;
  background: #f1f3f7;
  color: #2a3142;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
  white-space: pre-wrap;
}
.chat-row.mine .chat-bubble { background: #6366f1; color: #fff; border-bottom-right-radius: 4px; }
.chat-row:not(.mine) .chat-bubble { border-bottom-left-radius: 4px; }
.chat-time { font-size: 10px; color: #b3bac7; margin: 2px 6px 0; }
.chat-input-row { display: flex; gap: 8px; padding: 8px 0 16px; position: sticky; bottom: 0; background: #fff; }
.chat-input {
  flex: 1;
  border: 1px solid #e3e6ec;
  border-radius: 20px;
  padding: 9px 14px;
  font-size: 14px;
  outline: none;
}
.chat-input:focus { border-color: #6366f1; }
.chat-send { border-radius: 20px; padding: 8px 18px; }
.chat-unread {
  display: inline-block;
  min-width: 16px;
  padding: 0 5px;
  margin-left: 6px;
  border-radius: 9px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  line-height: 16px;
  text-align: center;
  vertical-align: 1px;
}

/* ---------- 我的：用户编号 ---------- */
.me-id {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  padding: 2px 8px 2px 6px;
  border-radius: 9px;
  background: #f1f3f7;
  cursor: pointer;
  max-width: 100%;
}
.me-id:hover { background: #e8ebf2; }
.me-id-label { font-size: 11px; color: #8a94a6; flex: none; }
.me-id-code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 11px;
  color: #4b5563;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}
.me-id-copy { font-size: 11px; color: #6366f1; flex: none; }

/* ---------- PWA 安装提示 ---------- */
.pwa-hint {
  margin: 8px 0 0;
  padding: 8px 12px;
  border-radius: 10px;
  background: #eef2ff;
  color: #4f46e5;
  font-size: 12px;
  line-height: 1.5;
}

/* ---------- 课程视频提供者 ---------- */
.provider-row {
  margin-top: 8px;
  padding: 7px 12px;
  border-radius: 10px;
  background: #f5f6ff;
  color: #4b4f6b;
  font-size: 12px;
  line-height: 1.5;
}
.provider-row b { color: #4338ca; font-weight: 600; }
.up-badge.rate { background: #eef2ff; color: #4338ca; }
.up-badge.cat { background: #f0f9ff; color: #0369a1; }
.up-badge.cat.none { background: #f1f5f9; color: #94a3b8; }

/* ---------- 我的收益 ---------- */
.earn-hero {
  margin: 4px 0 12px;
  padding: 18px 16px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ff5e57, #ffcd00);
  color: #fff;
  box-shadow: 0 6px 20px rgba(255, 94, 87, .22);
}
.earn-hero-label { font-size: 12px; opacity: .9; }
.earn-hero-val { font-size: 34px; font-weight: 800; line-height: 1.2; margin-top: 2px; letter-spacing: -.5px; }
.earn-hero-cols { display: flex; gap: 18px; margin-top: 12px; }
.earn-hero-cols > div { display: flex; flex-direction: column; gap: 2px; }
.earn-hero-cols span { font-size: 11px; opacity: .88; }
.earn-hero-cols b { font-size: 15px; font-weight: 700; }
.earn-hero-tip { font-size: 11px; opacity: .85; margin-top: 10px; }

.earn-today {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 14px; background: #fff;
  border: 1px solid #eef0f5; margin-bottom: 4px;
}
.earn-today-main { flex: 1; }
.earn-today-l { font-size: 12px; color: #8a94a6; }
.earn-today-v { font-size: 24px; font-weight: 800; color: #e2574c; line-height: 1.3; }
.earn-today-c { font-size: 11px; color: #b3bac7; }
.earn-today-side { text-align: right; font-size: 12px; color: #8a94a6; line-height: 1.9; }
.earn-today-side b { color: #2a3142; font-weight: 700; }

.earn-range { display: flex; gap: 8px; margin: 0 0 10px; }
.earn-range button {
  font-size: 12px; padding: 4px 12px; border-radius: 99px;
  border: 1px solid #e3e6ec; background: #fff; color: #5b6577; cursor: pointer;
}
.earn-range button.on { background: #1f2437; border-color: #1f2437; color: #fff; }

.earn-chart { background: #fff; border: 1px solid #eef0f5; border-radius: 14px; padding: 12px 8px 4px; }
.earn-bars { display: flex; align-items: flex-end; gap: 2px; height: 120px; }
.earn-bar-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; min-width: 0; }
.earn-bar { width: 70%; max-width: 22px; border-radius: 4px 4px 0 0; background: #eef0f5; transition: height .3s; }
.earn-bar.has { background: linear-gradient(180deg, #ffb347, #ff5e57); }
.earn-bar.today { box-shadow: 0 0 0 2px rgba(255, 94, 87, .18); }
.earn-bar-x { font-size: 9px; color: #b3bac7; white-space: nowrap; height: 11px; }
.earn-bar-x.hide { visibility: hidden; }

.earn-days { margin-top: 10px; background: #fff; border: 1px solid #eef0f5; border-radius: 14px; overflow: hidden; }
.earn-day-row {
  display: flex; align-items: center; gap: 8px; padding: 11px 14px;
  border-bottom: 1px solid #f4f5f9; font-size: 13px;
}
.earn-day-row:last-child { border-bottom: none; }
.earn-day-k { flex: 1; color: #2a3142; font-variant-numeric: tabular-nums; }
.earn-day-n { color: #8a94a6; font-size: 12px; width: 46px; text-align: right; }
.earn-day-s { color: #8a94a6; font-size: 12px; width: 88px; text-align: right; }
.earn-day-cm { color: #e2574c; font-weight: 700; width: 74px; text-align: right; font-variant-numeric: tabular-nums; }
.earn-today-tag {
  font-style: normal; font-size: 10px; padding: 1px 6px; border-radius: 99px;
  background: #fff1ef; color: #e2574c; margin-left: 4px;
}

.earn-courses { display: flex; flex-direction: column; gap: 8px; }
.earn-course {
  display: flex; align-items: center; gap: 10px; padding: 11px 13px;
  background: #fff; border: 1px solid #eef0f5; border-radius: 12px; cursor: pointer;
}
.earn-course:active { background: #fafbff; }
.earn-course-ico { font-size: 20px; flex: none; }
.earn-course-main { flex: 1; min-width: 0; }
.earn-course-t { font-size: 14px; font-weight: 600; color: #2a3142; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.earn-course-m { font-size: 11px; color: #8a94a6; margin-top: 2px; }
.earn-course-right { text-align: right; flex: none; }
.earn-rate { font-size: 13px; font-weight: 700; color: #4338ca; }
.earn-rate.off { color: #c2c8d4; font-weight: 500; }
.earn-course-cm { font-size: 11px; color: #e2574c; margin-top: 2px; }

.earn-list { display: flex; flex-direction: column; gap: 8px; }
.earn-item {
  display: flex; align-items: center; gap: 10px; padding: 11px 13px;
  background: #fff; border: 1px solid #eef0f5; border-radius: 12px;
}
.earn-item-main { flex: 1; min-width: 0; }
.earn-item-t { font-size: 13px; color: #2a3142; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.earn-item-m { font-size: 11px; color: #8a94a6; margin-top: 3px; }
.earn-item-right { text-align: right; flex: none; }
.earn-item-cm { font-size: 15px; font-weight: 700; color: #e2574c; }
.earn-item-st { font-size: 10px; color: #b45309; margin-top: 2px; }
.earn-item-st.ok { color: #15803d; }

/* ---------- 付款核对码 / 支付截图 ---------- */
.pay-code-box {
  margin: 10px 0 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff8ed;
  border: 1px dashed #f0c36d;
  text-align: center;
}
.pay-code-l { font-size: 11px; color: #a06818; }
.pay-code-v {
  margin-top: 4px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #b45309;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.pay-code-v button {
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  padding: 2px 8px;
  border-radius: 8px;
  border: 1px solid #e8c88a;
  background: #fff;
  color: #b45309;
  cursor: pointer;
}
.pay-proof {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 6px 0 2px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f7f8fb;
  border: 1px solid #eceff5;
}
.pay-proof-main { flex: 1; min-width: 0; }
.pay-proof-t { font-size: 13px; font-weight: 600; color: #2a3142; }
.pay-proof-st { font-size: 11px; color: #8a94a6; margin-top: 3px; line-height: 1.5; }
.pay-proof .btn-ghost {
  width: auto; flex: none; margin-top: 0;
  padding: 8px 18px; font-size: 13px;
}
.pay-proof-thumb {
  width: 42px; height: 42px; border-radius: 8px; object-fit: cover;
  border: 1px solid #e3e6ec; flex: none;
}
.pay-tail { margin: -2px 0 8px; text-align: center; font-size: 11px; color: #a06818; line-height: 1.5; }

/* 视频操作条：全屏 / 横屏入口 */
.video-actions {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 10px 2px 0;
}
.video-fs {
  width: auto; flex: none;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; font-size: 13px; font-weight: 600;
  color: #2a3142; background: #fff;
  border: 1px solid #dfe5ef; border-radius: 10px;
  -webkit-appearance: none; appearance: none;
  transition: transform .12s ease, box-shadow .12s ease;
}
.video-fs:active { transform: scale(.97); box-shadow: inset 0 1px 3px rgba(20,30,60,.06); }
.video-fs-tip { font-size: 11px; color: #8a94a6; line-height: 1.5; }

/* 手机横屏：收起搜索和分类，把屏幕让给视频 */
@media (orientation: landscape) and (max-height: 560px) {
  .topbar-inner { padding-top: 8px; padding-bottom: 6px; }
  .search-row, .cat-nav, .brand-row .slogan { display: none; }
  .player-hero { border-radius: 0; }
  .lesson-video { max-height: calc(100vh - 132px); object-fit: contain; border-radius: 0; }
}

/* ---------- 自绘全屏层（iOS / 微信内也能横屏） ---------- */
.fs-layer {
  position: fixed; inset: 0; z-index: 99999;
  display: none; align-items: center; justify-content: center;
  background: #000; overflow: hidden;
}
.fs-layer.show { display: flex; }
body.fs-open { overflow: hidden; }
.fs-stage {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: #000;
}
.fs-stage video,
.fs-stage .lesson-video {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  border-radius: 0 !important;
  background: #000;
}
/* 竖屏时旋转 90°，制造横屏视角（系统方向锁打开也有效） */
.fs-layer.rotated .fs-stage {
  position: absolute;
  left: 50%; top: 50%;
  width: 100vh; height: 100vw;
  transform: translate(-50%, -50%) rotate(90deg);
}
.fs-bar {
  position: absolute; top: calc(10px + env(safe-area-inset-top)); right: 12px;
  display: flex; gap: 8px; z-index: 2;
}
.fs-btn {
  width: auto; flex: none;
  padding: 7px 13px; font-size: 12px; font-weight: 600;
  color: #fff; background: rgba(0, 0, 0, .52);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  -webkit-appearance: none; appearance: none;
}
.fs-btn:active { background: rgba(0, 0, 0, .75); }
.fs-btn-exit { background: rgba(255, 94, 87, .9); border-color: rgba(255, 255, 255, .3); }

/* 视频画面右上角的常驻全屏按钮 */
.video-wrap { position: relative; }
.video-fs-ov {
  position: absolute; top: 10px; right: 10px; z-index: 6;
  width: auto; flex: none;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 14px; font-size: 13px; font-weight: 600;
  color: #fff; background: rgba(0, 0, 0, .5);
  border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  -webkit-appearance: none; appearance: none;
  transition: transform .12s ease;
}
.video-fs-ov:active { transform: scale(.95); background: rgba(0, 0, 0, .75); }

/* 版本号标记（确认手机加载的是哪一版） */
.ver-stamp {
  margin-left: auto; font-size: 11px; font-weight: 600;
  color: #8a94a6; background: #eef1f6;
  padding: 2px 8px; border-radius: 999px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
}
/* 常驻屏幕右下角的横屏入口（滚动也不消失） */
.video-fs-float {
  position: fixed; right: 14px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 900;
  width: auto; flex: none;
  padding: 11px 18px; font-size: 14px; font-weight: 700;
  color: #fff; border: 0; border-radius: 999px;
  background: linear-gradient(135deg, #ff5e57, #ff8a3d);
  box-shadow: 0 8px 22px rgba(255, 94, 87, .38);
  -webkit-appearance: none; appearance: none;
}
.video-fs-float:active { transform: scale(.95); }

/* ---------- 会员 ---------- */
.member-banner {
  display: flex; align-items: center; gap: 12px;
  margin: 10px 0 12px; padding: 13px 15px;
  border-radius: 14px; cursor: pointer;
  background: linear-gradient(135deg, #3a2a16 0%, #6b4a1c 55%, #8a5c1d 100%);
  color: #f8e7c2;
  box-shadow: 0 6px 18px rgba(107, 74, 28, .22);
}
.member-banner.me { margin: 10px 0 6px; }
.mb-left { flex: 1; min-width: 0; }
.mb-title { font-size: 14px; font-weight: 800; letter-spacing: .5px; color: #ffd98a; }
.mb-sub { font-size: 11.5px; color: #e3cfa6; margin-top: 3px; line-height: 1.5; }
.mb-right { display: flex; align-items: center; gap: 8px; flex: none; }
.mb-price { font-size: 18px; font-weight: 800; color: #fff3d6; }
.mb-price i { font-size: 11px; font-weight: 500; font-style: normal; color: #d9c093; }
.mb-go {
  font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px;
  background: linear-gradient(135deg, #ffcd00, #ff9f1a); color: #4a3208; white-space: nowrap;
}
.member-line {
  margin: 8px 0 4px; padding: 8px 12px; border-radius: 10px;
  background: #fff8e6; border: 1px solid #f2dfae;
  font-size: 12.5px; color: #8a5c1d; font-weight: 600;
}

/* 会员中心 */
.mc-hero {
  position: relative; overflow: hidden;
  margin: 4px 0 12px; padding: 22px 20px 20px;
  border-radius: 18px; text-align: center;
  background: linear-gradient(140deg, #3a2a16, #6b4a1c 60%, #8a5c1d);
  color: #f8e7c2;
  box-shadow: 0 10px 26px rgba(107, 74, 28, .25);
}
.mc-hero::after {
  content: ""; position: absolute; right: -40px; top: -40px;
  width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 205, 0, .22), transparent 68%);
}
.mc-crown { font-size: 30px; line-height: 1; }
.mc-title { font-size: 19px; font-weight: 800; margin-top: 8px; color: #ffd98a; letter-spacing: 1px; }
.mc-state { font-size: 13px; margin-top: 8px; color: #e9d6ae; }
.mc-state b { font-size: 20px; color: #fff3d6; }
.mc-sub { font-size: 11.5px; color: #cdb88f; margin-top: 5px; line-height: 1.6; }
.mc-btn {
  width: 100%; max-width: 320px; margin: 16px auto 0;
  padding: 12px 0; border: 0; border-radius: 999px;
  font-size: 15px; font-weight: 800; color: #4a3208;
  background: linear-gradient(135deg, #ffd75e, #ffab2e);
  box-shadow: 0 8px 20px rgba(255, 171, 46, .35);
  -webkit-appearance: none; appearance: none;
}
.mc-btn:active { transform: scale(.98); }

.mc-benefit { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px dashed #eef1f6; }
.mc-benefit:last-child { border-bottom: 0; }
.mc-benefit i {
  flex: none; width: 22px; height: 22px; margin-top: 1px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: 12px; font-style: normal; font-weight: 700;
  color: #8a5c1d; background: #fff8e6; border: 1px solid #f2dfae;
}
.mc-benefit b { display: block; font-size: 13.5px; color: #2a3142; }
.mc-benefit span { display: block; font-size: 12px; color: #8a94a6; margin-top: 3px; line-height: 1.55; }

.mc-order { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid #f1f4f9; }
.mc-order:last-child { border-bottom: 0; }
.mc-order-l { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mc-order-l b { font-size: 14px; color: #2a3142; }
.mc-order-l span { font-size: 11.5px; color: #8a94a6; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-order-r { flex: none; text-align: right; display: flex; flex-direction: column; gap: 3px; }
.mc-ost { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #eef1f6; color: #6b7c99; }
.mc-ost.confirmed { background: #e8f7ee; color: #1a7f45; }
.mc-ost.pending { background: #fff4e5; color: #a86318; }
.mc-ost.cancelled { background: #fdecec; color: #b03b3b; }
.mc-time { font-size: 10.5px; color: #aab2c0; }

/* ---------- 推广码：支付面板输入区 ---------- */
.promo-box {
  margin: 10px 0 2px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f7f8fb;
  border: 1px solid #eef1f6;
}
.promo-hd { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.promo-lab { font-size: 12.5px; font-weight: 700; color: #2a3142; }
.promo-lab em { font-style: normal; font-weight: 400; font-size: 11px; color: #9aa4b5; margin-left: 4px; }
.promo-state { font-size: 11px; color: #9aa4b5; max-width: 55%; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.promo-state.ok { color: #1a7f45; font-weight: 600; }
.promo-state.bad { color: #c0392b; font-weight: 600; }
.promo-bound {
  margin-top: 8px; padding: 7px 10px; border-radius: 8px;
  background: #f0fbf4; border: 1px solid #cdeed9;
  font-size: 11px; color: #1a7f45; line-height: 1.6;
}
.promo-bound b { color: #146b3a; letter-spacing: .5px; }
.promo-in { display: flex; align-items: center; gap: 8px; margin-top: 7px; }
.promo-input {
  flex: 1; min-width: 0;
  height: 34px; padding: 0 10px;
  font-size: 13px; letter-spacing: 1px;
  color: #2a3142; background: #fff;
  border: 1px solid #dfe5ef; border-radius: 9px;
  -webkit-appearance: none; appearance: none;
  outline: none;
}
.promo-input:focus { border-color: #f0b429; box-shadow: 0 0 0 3px rgba(240, 180, 41, .14); }
.promo-input.lg { height: 44px; font-size: 15px; border-radius: 12px; }
.promo-apply {
  width: auto; flex: none;
  height: 34px; padding: 0 14px;
  font-size: 12.5px; font-weight: 700;
  color: #7a4c06; background: #fff2cf;
  border: 1px solid #f0d79a; border-radius: 9px;
  -webkit-appearance: none; appearance: none;
}
.promo-apply:active { transform: scale(.97); }

/* ---------- 推广收益查询页 ---------- */
.pq-hero {
  position: relative; overflow: hidden;
  margin: 4px 0 12px; padding: 20px 18px 18px;
  border-radius: 18px;
  background: linear-gradient(140deg, #3a2a16 0%, #7a5220 62%, #a8752a 100%);
  color: #f7e7c6;
  box-shadow: 0 10px 24px rgba(122, 82, 32, .24);
}
.pq-k { font-size: 12px; letter-spacing: 2px; color: #ffd98a; font-weight: 700; }
.pq-t { font-size: 19px; font-weight: 800; margin-top: 8px; color: #fff6e2; line-height: 1.35; }
.pq-s { font-size: 11.5px; color: #dcc49a; margin-top: 6px; line-height: 1.6; }
.pq-in { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.pq-in .promo-input { border-color: rgba(255, 255, 255, .28); }
.pq-in button {
  width: auto; flex: none; height: 44px; padding: 0 16px;
  font-size: 14px; font-weight: 800; color: #4a3208;
  background: linear-gradient(135deg, #ffd75e, #ffab2e);
  border: 0; border-radius: 12px;
  box-shadow: 0 6px 16px rgba(255, 171, 46, .32);
  -webkit-appearance: none; appearance: none;
}
.pq-in button:active { transform: scale(.97); }
.pq-hint { font-size: 12.5px; color: #97a0b1; line-height: 1.7; padding: 6px 4px; }
.pq-empty {
  margin-top: 10px; padding: 26px 16px; text-align: center;
  background: #fff; border: 1px dashed #e3e8f0; border-radius: 14px;
}

.pq-card {
  margin-top: 4px; padding: 16px 16px 14px;
  border-radius: 16px; color: #f7e7c6;
  background: linear-gradient(140deg, #2f2413, #6b4718 65%, #8a5c1d);
  box-shadow: 0 8px 22px rgba(107, 74, 28, .22);
}
.pq-card-hd { display: flex; align-items: flex-start; gap: 10px; }
.pq-ch { flex: 1; min-width: 0; }
.pq-ch b { display: block; font-size: 15px; color: #fff6e2; }
.pq-ch span { display: block; font-size: 11.5px; color: #d6bd90; margin-top: 3px; }
.pq-badge { flex: none; font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.pq-badge.on { background: rgba(120, 230, 160, .18); color: #8ff0b4; border: 1px solid rgba(120, 230, 160, .35); }
.pq-badge.off { background: rgba(255, 120, 110, .16); color: #ffb3ad; border: 1px solid rgba(255, 120, 110, .32); }
.pq-total { text-align: center; margin: 14px 0 10px; }
.pq-total-v { font-size: 34px; font-weight: 800; letter-spacing: -.5px; color: #ffd98a; line-height: 1.1; }
.pq-total-l { font-size: 11.5px; color: #cdb88f; margin-top: 3px; }
.pq-cols { display: flex; gap: 8px; margin-top: 4px; }
.pq-cols > div {
  flex: 1; text-align: center; padding: 8px 4px;
  background: rgba(255, 255, 255, .07); border-radius: 10px;
}
.pq-cols span { display: block; font-size: 10.5px; color: #c9b28a; }
.pq-cols b { display: block; font-size: 14px; color: #fff3d6; margin-top: 3px; }
.pq-warn { margin-top: 10px; font-size: 11.5px; color: #ffc7c2; background: rgba(255, 90, 80, .14); padding: 7px 10px; border-radius: 9px; }

.pq-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 10px; }
.pq-kpi { background: #fff; border: 1px solid #eef1f6; border-radius: 12px; padding: 9px 8px; text-align: center; }
.pq-kpi span { display: block; font-size: 10.5px; color: #98a1b3; }
.pq-kpi b { display: block; font-size: 13.5px; color: #2a3142; margin-top: 4px; }

.pq-actions { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.pq-btn {
  width: auto; flex: none;
  padding: 9px 16px; font-size: 12.5px; font-weight: 700;
  color: #7a4c06; background: #fff2cf; border: 1px solid #f0d79a; border-radius: 10px;
  -webkit-appearance: none; appearance: none;
}
.pq-btn:active { transform: scale(.97); }
.pq-link {
  font-size: 11px; color: #9aa4b5; word-break: break-all; line-height: 1.5;
  font-family: ui-monospace, Menlo, Consolas, monospace;
}

.pq-list { background: #fff; border: 1px solid #eef1f6; border-radius: 14px; overflow: hidden; }
.pq-item { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-bottom: 1px solid #f3f6fa; }
.pq-item:last-child { border-bottom: 0; }
.pq-item-l { flex: 1; min-width: 0; }
.pq-item-l b { display: block; font-size: 13px; color: #2a3142; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pq-item-l span { display: block; font-size: 10.5px; color: #9aa4b5; margin-top: 3px; }
.pq-item-r { flex: none; text-align: right; }
.pq-item-r b { display: block; font-size: 13.5px; color: #c8860d; }
.pq-item-r span { display: block; font-size: 10.5px; color: #a86318; margin-top: 3px; }
.pq-item-r span.done { color: #1a7f45; }
.pq-more { padding: 10px; text-align: center; font-size: 11.5px; color: #9aa4b5; background: #fafbfd; }

/* 首页底部推广入口 */
.promo-foot {
  display: flex; align-items: center; gap: 10px;
  margin: 14px 0 6px; padding: 12px 14px;
  border-radius: 12px; cursor: pointer;
  background: #fffaf0; border: 1px solid #f3e2bd;
}
.pf-l { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pf-l b { font-size: 12.5px; color: #7a4c06; }
.pf-l span { font-size: 11px; color: #a98d5c; margin-top: 2px; }
.pf-go { flex: none; font-size: 12px; font-weight: 700; color: #a8752a; }

/* ===== 我的推广（学员自建推广码 + 二合一二维码） ===== */
.mp-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #241d17, #3b2c1f 55%, #553a1f);
  border-radius: 16px; padding: 16px 16px 18px; margin: 8px 0 12px;
  color: #fff6e2;
}
.mp-hero::after {
  content: ""; position: absolute; right: -46px; top: -46px; width: 168px; height: 168px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255, 205, 120, .22), transparent 70%);
}
.mp-hk { font-size: 11px; letter-spacing: 2px; color: #ffd98a; font-weight: 700; }
.mp-ht { font-size: 17px; font-weight: 800; margin-top: 8px; line-height: 1.55; }
.mp-hs { font-size: 12px; color: #d6bd90; margin-top: 6px; line-height: 1.6; }

.mp-card { background: #fff; border: 1px solid #eef1f6; border-radius: 16px; padding: 16px 14px 14px; text-align: center; }
.mp-poster {
  width: 100%; max-width: 292px; display: block; margin: 0 auto;
  border-radius: 12px; box-shadow: 0 6px 20px rgba(31, 27, 22, .10);
}
.mp-code {
  margin-top: 12px; font-size: 22px; font-weight: 800; letter-spacing: 4px;
  font-family: ui-monospace, Menlo, Consolas, monospace; color: #1f1b16;
}
.mp-meta { font-size: 12px; color: #8a94a6; margin-top: 6px; }
.mp-meta b { color: #b45309; }
.mp-btns { display: flex; gap: 8px; margin-top: 12px; }
.mp-btn {
  flex: 1; padding: 10px 6px; border-radius: 10px; cursor: pointer;
  border: 1px solid #e6e9ef; background: #fff; color: #4a5464;
  font-size: 12.5px; font-weight: 600; white-space: nowrap;
}
.mp-btn.primary { background: #ff5e57; border-color: #ff5e57; color: #fff; }
.mp-btn.lg { width: 100%; flex: none; padding: 13px; font-size: 14.5px; margin-top: 16px; }
.mp-btn:active { transform: scale(.98); }
.mp-btn:disabled { opacity: .65; }
.mp-link { margin-top: 10px; font-size: 10.5px; color: #b3bac7; word-break: break-all; line-height: 1.5; }

.mp-joins { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mp-join { background: #fafbfd; border: 1px solid #eef1f6; border-radius: 12px; padding: 12px 6px; }
.mp-join b { display: block; font-size: 17px; color: #b45309; }
.mp-join span { display: block; font-size: 10.5px; color: #9aa4b5; margin-top: 4px; }
.mp-fine { font-size: 11px; color: #9aa4b5; line-height: 1.75; margin-top: 12px; text-align: left; }

.mp-tip {
  background: #fafbfd; border: 1px solid #eef1f6; border-radius: 12px;
  padding: 12px 14px; font-size: 12px; color: #6b7484; line-height: 1.95; margin-top: 12px;
}
.mp-tip > b { display: block; color: #2a3142; font-size: 12.5px; margin-bottom: 4px; }
.mp-tip b { color: #b45309; }
.mp-stop { text-align: center; margin: 12px 0 4px; }

