/* ===== 手机端 ===== */
html, body { height: 100%; }
body {
  background: #e9edf6;
  display: flex; justify-content: center;
  font-size: 14px;
}
#phone {
  width: 100%; max-width: 430px; height: 100vh; height: 100dvh; background: var(--bg);
  position: relative; display: flex; flex-direction: column;
  box-shadow: 0 0 60px rgba(16,24,40,.14);
  overflow: hidden;
}
@media (max-width: 460px) { #phone { max-width: none; box-shadow: none; } }

.hidden { display: none !important; }

/* 顶部栏 */
.mhead {
  min-height: 52px; display: flex; align-items: center; gap: 10px; padding: 7px 14px;
  background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20;
}
.mhead .back {
  width: 44px; min-height: 40px; flex: 0 0 44px; display: grid; place-items: center;
  padding: 0; margin-left: -8px; background: transparent; border: 0; cursor: pointer;
}
.mhead h1 { font-size: 16px; font-weight: 600; margin: 0; min-width: 0; flex: 1; overflow-wrap: anywhere; }
.mhead .h-act { color: var(--brand); font-size: 13px; }

/* 首页头 */
.hero-m {
  background: radial-gradient(420px 220px at 90% -30%, rgba(124,59,255,.55), transparent 65%),
              linear-gradient(135deg, #1c3fbd, #2f62f4 55%, #5b8bff);
  color: #fff; padding: 16px 18px 56px; position: relative;
  border-radius: 0 0 22px 22px;
}
.hero-m .row1 { display: flex; align-items: center; gap: 10px; }
.hero-m .avatar { width: 36px; height: 36px; font-size: 14px; background: rgba(255,255,255,.22); }
.hero-m .hi { flex: 1; }
.hero-m .hi b { font-size: 15px; display: block; }
.hero-m .hi span { font-size: 11.5px; color: rgba(255,255,255,.66); }
.hero-m .bell { position: relative; width: 32px; height: 32px; display: grid; place-items: center; }
.hero-m .bell i { position: absolute; top: 6px; right: 7px; width: 6px; height: 6px; border-radius: 50%; background: #ff7a45; }
.hero-m .pt-row { display: flex; align-items: flex-end; gap: 10px; margin-top: 18px; }
.hero-m .pt-big { font-size: 36px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.hero-m .pt-lab { font-size: 11.5px; color: rgba(255,255,255,.62); margin-bottom: 4px; }
.hero-m .lv { margin-left: auto; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px; padding: 4px 10px; font-size: 11.5px; display: flex; align-items: center; gap: 5px; }
.hero-m .next { font-size: 11px; color: rgba(255,255,255,.6); margin-top: 8px; }
.hero-m .next b { color: #fff; }

/* 浮动卡片 */
.lift { margin: -40px 14px 0; position: relative; z-index: 5; }
.stat-strip { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); background: #fff; border-radius: 14px;
  padding: 12px 4px; box-shadow: var(--sh-2); }
.stat-strip div { text-align: center; }
.stat-strip b { display: block; font-size: 16px; font-weight: 650; letter-spacing: -.02em; }
.stat-strip span { font-size: 10.5px; color: var(--muted-2); }
.stat-strip button { min-height: 45px; padding: 0 4px; border: 0; background: none; color: var(--ink); cursor: pointer; }
.stat-strip button + button { border-left: 1px solid var(--line); }
.stat-strip button span { font-size: 12px; color: var(--muted); }

.sec { padding: 0 14px; margin-top: 18px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.sec-head h3 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.sec-head a { font-size: 11.5px; color: var(--muted-2); display: flex; align-items: center; gap: 2px; }

.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; background: #fff; border-radius: 14px; padding: 16px 8px; box-shadow: var(--sh-1); }
.quick { display: flex; flex-direction: column; align-items: center; gap: 7px; cursor: pointer; }
.quick .qi { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: #fff; }
.quick span { font-size: 11.5px; color: var(--ink-2); }

.todo-card { background: #fff; border-radius: 14px; box-shadow: var(--sh-1); overflow: hidden; }
.todo-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
.todo-row:last-child { border: none; }
.todo-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: 0 0 34px; }
.todo-tx { flex: 1; min-width: 0; }
.todo-tx b { display: block; font-size: 13px; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.todo-tx span { font-size: 11px; color: var(--muted-2); }
.todo-go { font-size: 11px; color: var(--brand); background: var(--brand-50); padding: 3px 9px; border-radius: 999px; }

.banner { border-radius: 14px; padding: 15px 16px; color: #fff; margin-bottom: 8px;
  background: linear-gradient(120deg, #0ea5a4, #2f62f4); position: relative; overflow: hidden; }
.banner:nth-child(2n) { background: linear-gradient(120deg, #7c3bff, #b14bff); }
.banner b { font-size: 14px; display: block; }
.banner span { font-size: 11.5px; color: rgba(255,255,255,.78); }
.banner::after { content: ""; position: absolute; right: -26px; top: -30px; width: 110px; height: 110px; border-radius: 50%; border: 22px solid rgba(255,255,255,.1); }

.course-row { display: flex; gap: 11px; background: #fff; border-radius: 14px; padding: 11px; margin-bottom: 10px; box-shadow: var(--sh-1); }
.cr-cover { width: 86px; height: 62px; border-radius: 10px; flex: 0 0 86px; display: grid; place-items: center;
  color: #fff; font-size: 11px; text-align: center; padding: 6px; line-height: 1.3; position: relative;
  overflow: hidden; background: linear-gradient(135deg, #2f62f4, #7c3bff); }
.cr-cover.c2 { background: linear-gradient(135deg, #0ea5a4, #2f62f4); }
.cr-cover.c3 { background: linear-gradient(135deg, #ff7a45, #ff3d71); }
.cr-cover.c4 { background: linear-gradient(135deg, #12b76a, #0ea5a4); }
.cr-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; }
.cr-body b { font-size: 13.5px; font-weight: 550; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cr-meta { font-size: 11px; color: var(--muted-2); display: flex; gap: 8px; align-items: center; }

.news-row { display: flex; gap: 10px; padding: 11px 0; border-bottom: 1px dashed var(--line-2); }
.news-row:last-child { border: none; }
.news-row .tag { flex: 0 0 auto; align-self: flex-start; }
.news-row b { font-size: 13px; font-weight: 500; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-row span { font-size: 11px; color: var(--muted-2); }

/* 底部标签 */
.tabbar {
  position: sticky; bottom: 0; margin-top: auto; height: calc(58px + env(safe-area-inset-bottom)); flex-shrink: 0;
  background: rgba(255,255,255,.96); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(5, 1fr); z-index: 30; padding-bottom: env(safe-area-inset-bottom);
}
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #98a2b3; cursor: pointer; font-size: 10.5px; position: relative; }
.tab svg { width: 21px; height: 21px; }
.tab.on { color: var(--brand); }
.tab.on::before { content: ""; position: absolute; top: 0; width: 20px; height: 3px; border-radius: 0 0 3px 3px; background: var(--brand); }
.tab .badge { position: absolute; top: 8px; right: 50%; margin-right: -18px; min-width: 15px; height: 15px; border-radius: 8px; background: var(--danger); color: #fff; font-size: 9.5px; display: grid; place-items: center; padding: 0 4px; }

/* 页面容器 */
#mview { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.page { animation: slidein .22s ease; }
.page > :last-child { margin-bottom: max(18px, env(safe-area-inset-bottom)); }
@keyframes slidein { from { opacity: .4; transform: translateX(10px); } }

/* 签到 */
.sign-hero { margin: 16px 14px; border-radius: 18px; padding: 26px 20px; text-align: center; color: #fff;
  background: radial-gradient(300px 200px at 50% 0%, rgba(124,59,255,.6), transparent 70%), linear-gradient(150deg, #101d3d, #1c3fbd); }
.sign-hero h2 { margin: 0 0 6px; font-size: 18px; }
.sign-hero p { margin: 0; font-size: 12px; color: rgba(255,255,255,.6); }
.scan-btn { margin: 22px auto 0; width: 118px; height: 118px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.26); cursor: pointer;
  box-shadow: 0 0 0 12px rgba(255,255,255,.05); }
.scan-btn:active { transform: scale(.97); }
.code-input { display: flex; gap: 8px; margin: 16px 14px 0; }
.code-input input { flex: 1; height: 48px; border-radius: 12px; border: 1px solid var(--line); background: #fff;
  text-align: center; font-size: 20px; letter-spacing: .3em; font-weight: 600; outline: none; }
.code-input button { width: 92px; height: 48px; border-radius: 12px; border: none; background: var(--brand); color: #fff; font-size: 14px; font-weight: 600; }

#scanner { position: fixed; inset: 0; background: #000; z-index: 100; display: flex; flex-direction: column; }
#scanner video { flex: 1; object-fit: cover; width: 100%; }
.scan-frame { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); width: 230px; height: 230px; border-radius: 18px; }
.scan-frame::before, .scan-frame::after { content: ""; position: absolute; width: 46px; height: 46px; border: 3px solid #4f8bff; }
.scan-frame::before { top: -2px; left: -2px; border-right: none; border-bottom: none; border-radius: 16px 0 0 0; }
.scan-frame::after { bottom: -2px; right: -2px; border-left: none; border-top: none; border-radius: 0 0 16px 0; }
.scan-line { position: absolute; left: 12px; right: 12px; height: 2px; background: linear-gradient(90deg, transparent, #4f8bff, transparent); animation: scan 2s ease-in-out infinite; }
@keyframes scan { 0%, 100% { top: 14px; } 50% { top: 212px; } }
.scan-tip { position: absolute; left: 0; right: 0; bottom: 90px; text-align: center; color: #fff; font-size: 14px; line-height: 1.85; padding: 0 26px; }
.scan-close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.16); display: grid; place-items: center; color: #fff; }

.result-card { text-align: center; padding: 10px 0 6px; }
.result-ok { width: 62px; height: 62px; border-radius: 50%; background: var(--ok-50); color: var(--ok); display: grid; place-items: center; margin: 0 auto 12px; }
.result-card h3 { margin: 0 0 4px; font-size: 18px; }
.result-card p { margin: 0; color: var(--muted); font-size: 12.5px; }

/* 列表项 */
.list-card { background: #fff; border-radius: 14px; margin: 12px 14px 0; overflow: hidden; box-shadow: var(--sh-1); }
.list-item { display: flex; align-items: center; gap: 11px; padding: 14px; border-bottom: 1px solid var(--line-2); cursor: pointer; }
.list-item:last-child { border: none; }
.list-item .li-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: 0 0 34px; }
.list-item .li-tx { flex: 1; min-width: 0; }
.list-item b { font-size: 13.5px; font-weight: 500; display: block; }
.list-item span { font-size: 11.5px; color: var(--muted-2); }
.list-item .chev { color: #c9d0e0; }

.profile-card { margin: 14px; border-radius: 18px; padding: 18px; color: #fff;
  background: linear-gradient(135deg, #1c3fbd, #2f62f4 60%, #5b8bff); }
.profile-card .row1 { display: flex; align-items: center; gap: 12px; }
.profile-card .avatar { width: 52px; height: 52px; font-size: 19px; background: rgba(255,255,255,.22); }
.profile-card b { font-size: 17px; }
.profile-card span { font-size: 11.5px; color: rgba(255,255,255,.7); display: block; }
.profile-card .nums { display: flex; margin-top: 16px; }
.profile-card .nums div { flex: 1; text-align: center; }
.profile-card .nums b { font-size: 18px; }
.profile-card .nums span { font-size: 10.5px; }

/* 考试答题 */
.m-exam-meta { padding: 12px 16px 0; font-size: 12px; color: var(--muted); }
#mExamGuard { margin-top: 10px; border-radius: 10px; padding: 9px 12px; background: var(--warn-50); color: var(--warn); }
#timer.urgent { color: var(--danger); }
.m-exam-actions { display: flex; gap: 8px; padding: 16px; }
.m-exam-actions .btn-main { flex: 1; min-height: 44px; padding: 8px 12px; border: 0; border-radius: 12px;
  background: var(--brand); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; }
.m-exam-actions .btn-main:disabled { opacity: .65; cursor: default; }
.m-exam-copy-guard .q-title, .m-exam-copy-guard .opt { -webkit-user-select: none; user-select: none; }
.q-card { background: #fff; border-radius: 14px; margin: 12px 14px 0; padding: 16px; box-shadow: var(--sh-1); }
.q-title { font-size: 14px; line-height: 1.65; margin-bottom: 14px; }
.q-title .qn { color: var(--brand); font-weight: 600; margin-right: 4px; }
.q-title img { max-width: 100%; height: auto; border-radius: 8px; margin: 6px 0; display: block; }
.opt { display: flex; align-items: flex-start; gap: 10px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px; margin-bottom: 9px; cursor: pointer; transition: .15s; font-size: 13.5px; line-height: 1.5; }
.opt .oi { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #d6dce8; display: grid; place-items: center; font-size: 11.5px; flex: 0 0 22px; color: var(--muted); }
.opt.on { border-color: var(--brand); background: var(--brand-50); }
.opt.on .oi { background: var(--brand); border-color: var(--brand); color: #fff; }

/* 进度条 + 头像行 */
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(140deg, #4b7bff, #7c3bff); color: #fff; font-size: 12px; font-weight: 600; }
.bar { height: 5px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 99px; background: var(--brand); }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 11px; background: var(--line-2); color: var(--muted); }
.tag.ok { background: var(--ok-50); color: #0a8a52; }
.tag.brand { background: var(--brand-50); color: var(--brand); }
.tag.warn { background: var(--warn-50); color: #b35c00; }
.tag.danger { background: var(--danger-50); color: #c02a1f; }
.muted { color: var(--muted); }
.small { font-size: 12px; }

/* 登录 */
#mlogin { position: fixed; inset: 0; z-index: 60; background: #fff; display: flex; flex-direction: column; }
#mlogin .top { padding: 56px 26px 22px; color: #fff;
  background: radial-gradient(320px 200px at 85% 0%, rgba(124,59,255,.6), transparent 65%), linear-gradient(150deg, #16295c, #2f62f4); }
#mlogin .brand-mark { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; font-weight: 700;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.26); margin-bottom: 18px; }
#mlogin .brand-mark img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }
#mlogin .brand-mark.has-logo { background: transparent; border-color: transparent; }

/* 过渡页（个性化设置 › 手机端过渡页）：1.5 秒品牌页，淡出后进首页 */
.m-splash { position: fixed; inset: 0; z-index: 9999; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px; opacity: 1; transition: opacity .34s ease;
  background: linear-gradient(165deg, var(--brand) 0%, #1b3a8f 58%, #101a3a 100%); }
.m-splash .ms-mark { width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.24);
  color: #fff; font-size: 28px; font-weight: 700; }
.m-splash .ms-mark img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }
.m-splash .ms-mark.has-logo { background: transparent; border-color: transparent; }
.m-splash h2 { margin: 6px 0 0; font-size: 21px; color: #fff; letter-spacing: .04em; font-weight: 600; }
.m-splash p { margin: 0; font-size: 12px; color: rgba(255,255,255,.66); letter-spacing: .08em; }
.m-splash .ms-company { position: absolute; bottom: 42px; font-size: 10.5px; color: rgba(255,255,255,.4); letter-spacing: .08em; }
.m-splash .ms-bar { position: absolute; bottom: 22px; width: 88px; height: 3px; border-radius: 99px;
  background: rgba(255,255,255,.18); overflow: hidden; }
.m-splash .ms-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: rgba(255,255,255,.85);
  animation: msFill 1.5s ease-out forwards; }
@keyframes msFill { 0% { width: 0; } 100% { width: 100%; } }
#mlogin h1 { font-size: 23px; margin: 0 0 6px; letter-spacing: -.02em; }
#mlogin .top p { margin: 0; font-size: 12.5px; color: rgba(255,255,255,.66); }
#mlogin .form { padding: 26px; }
#mlogin .input { height: 46px; border-radius: 12px; background: #f8faff; }
#mlogin .btn-main { width: 100%; height: 46px; border-radius: 12px; border: none; background: var(--brand); color: #fff; font-size: 15px; font-weight: 600; margin-top: 8px; }
#mlogin .chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
#mlogin .chip { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 12px; background: #fff; }
.toast-wrap { position: fixed; top: 16px; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; z-index: 200; pointer-events: none; }
.toast { background: rgba(16,24,40,.92); color: #fff; padding: 9px 16px; border-radius: 10px; font-size: 12.5px; max-width: 88%; }

/* 简答题作答框 */
.short-ans { width: 100%; box-sizing: border-box; padding: 11px 12px; border: 1px solid var(--line);
  border-radius: 11px; font-size: 13.5px; line-height: 1.7; color: var(--ink); background: #fff;
  font-family: inherit; resize: vertical; outline: none; transition: .15s; }
.short-ans:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }
.short-ans.filled { border-color: var(--brand); background: #fbfcff; }

/* 第 18 页：成绩页主客观分 */
.mr-split { display: flex; gap: 10px; padding: 0 20px; margin-top: 6px; }
.mr-split > div { flex: 1; background: #fff; border: 1px solid var(--line, #eef1f6);
  border-radius: 12px; padding: 10px 12px; text-align: center; }
.mr-split span { display: block; font-size: 11.5px; color: #8a94a6; }
.mr-split b { display: block; font-size: 18px; color: #1d2939; margin-top: 3px; }
.mr-remark { margin: 12px 20px 0; padding: 11px 13px; background: #f7f9fc; border-radius: 10px;
  font-size: 13px; color: #475467; line-height: 1.7; }
.mr-remark b { display: block; font-size: 11.5px; color: #8a94a6; margin-bottom: 4px; }

/* ================= 第 19 页：PK 闯关（学员端） ================= */
.empty-m { padding: 44px 24px; text-align: center; color: var(--muted-2); font-size: 13px; }
.pk-s { color: #e2e6ef; display: inline-flex; }
.pk-s.on { color: #f79009; }

.pk-m-intro { padding: 12px 16px 2px; font-size: 12px; color: var(--muted); line-height: 1.7; }

/* 列表卡片 */
.pk-m-card { background: #fff; border-radius: 16px; margin: 12px 14px 0; overflow: hidden; box-shadow: var(--sh-1); }
.pk-m-card:active { transform: scale(.994); }
.pk-m-cover {
  position: relative; padding: 16px; color: #fff; min-height: 92px;
  display: flex; flex-direction: column; justify-content: flex-end; background-size: cover;
  background-position: center;
}
.pk-m-cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4, 12, 30, .04) 20%, rgba(4, 12, 30, .58));
}
.pk-m-cover > * { position: relative; z-index: 1; }
.pk-m-cover b { font-size: 15px; font-weight: 650; line-height: 1.4; }
.pk-m-cover i { font-style: normal; font-size: 11.5px; color: rgba(255, 255, 255, .82); margin-top: 3px; }
.pk-m-mode {
  position: absolute; top: 12px; left: 14px; z-index: 2; font-size: 10.5px; padding: 2px 8px;
  border-radius: 20px; background: rgba(255, 255, 255, .24); color: #fff;
}
.pk-c1 { background-image: linear-gradient(135deg, #4b6bff, #7b3bff); }
.pk-c2 { background-image: linear-gradient(135deg, #0ea5e9, #2563eb); }
.pk-c3 { background-image: linear-gradient(135deg, #f97316, #ef4444); }
.pk-c4 { background-image: linear-gradient(135deg, #10b981, #0d9488); }
.pk-m-body { padding: 11px 14px 12px; }
.pk-m-row { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted); }
.pk-m-row b { color: var(--ink); font-weight: 650; }
.pk-m-stars { display: flex; align-items: center; gap: 2px; }
.pk-m-stars em { font-style: normal; font-size: 11px; color: var(--muted-2); margin-left: 4px; }
.pk-m-bar { height: 5px; border-radius: 3px; background: var(--line-2); margin: 9px 0 10px; overflow: hidden; }
.pk-m-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #f79009, #ff5f3d); transition: width .3s; }
.pk-m-foot { display: flex; align-items: center; justify-content: space-between; }
.pk-m-go { display: inline-flex; align-items: center; gap: 2px; font-size: 12.5px; color: var(--brand); font-weight: 500; }

/* 关卡页 */
.pk-play-head { background: #fff; padding: 14px 16px; }
.pk-play-top { display: flex; align-items: center; justify-content: space-between; }
.pk-play-star { display: flex; align-items: center; gap: 2px; }
.pk-play-star em { font-style: normal; font-size: 11.5px; color: var(--muted-2); margin-left: 5px; }
.pk-play-intro { font-size: 12px; color: var(--muted); line-height: 1.7; margin-top: 8px; }
.pk-lv-list { padding: 10px 14px 0; }
.pk-lv-item {
  display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 14px;
  padding: 13px 14px; margin-bottom: 10px; box-shadow: var(--sh-1);
}
.pk-lv-item.lock { opacity: .55; }
.pk-lv-item.full .pk-lv-no { background: var(--ok-50); color: var(--ok); }
.pk-lv-no {
  width: 30px; height: 30px; border-radius: 10px; background: var(--brand-50); color: var(--brand);
  display: grid; place-items: center; font-size: 13px; font-weight: 650; flex: none;
}
.pk-lv-tx { flex: 1; min-width: 0; }
.pk-lv-tx b { font-size: 14px; font-weight: 600; }
.pk-lv-tx > span { display: block; font-size: 11.5px; color: var(--muted-2); margin-top: 3px; }
.pk-lv-stars { display: flex; align-items: center; gap: 2px; margin-top: 6px; }
.pk-lv-stars em { font-style: normal; font-size: 10.5px; color: var(--muted-2); margin-left: 6px; }
.pk-lv-act { flex: none; font-size: 12px; color: var(--brand); font-weight: 550; }
.pk-lv-item.lock .pk-lv-act { color: var(--muted-2); font-weight: 400; }
.pk-rules { margin: 6px 14px 20px; background: #fff; border-radius: 14px; padding: 14px; font-size: 12.5px; color: var(--muted); }
.pk-rules > b { display: block; color: var(--ink); font-size: 13px; margin-bottom: 7px; }
.pk-rules-body p { margin: 0 0 6px; line-height: 1.75; }

/* 答题 */
.pk-timing { padding: 12px 0; }
.pk-clock { text-align: center; color: var(--brand); font-size: 14px; line-height: 1.15; }
.pk-clock strong { font-size: 42px; font-variant-numeric: tabular-nums; }
.pk-clock.urgent { color: var(--danger); }
.pk-timebar { height: 4px; background: var(--line-2); margin: 9px 14px 0; border-radius: 2px; overflow: hidden; }
.pk-timebar i { display: block; height: 100%; background: linear-gradient(90deg, #12b76a, #2f62f4); transition: width .25s linear; }
.pk-timebar i.urgent { background: var(--danger); }
.pk-q-card { margin-top: 10px; }
.pk-quiz-tip { padding: 12px 18px 0; font-size: 11.5px; color: var(--muted-2); line-height: 1.6; }
.pk-quiz-foot { padding: 16px; }
.pk-btn {
  width: 100%; height: 46px; border-radius: 13px; border: 1px solid var(--line); background: #fff;
  color: var(--ink-2); font-size: 14.5px; font-weight: 600; font-family: inherit;
}
.pk-btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.pk-btn.primary:disabled { opacity: .45; }
.pk-btn.ghost { background: var(--brand-50); border-color: transparent; color: var(--brand); }

/* 结果 */
.pk-res { margin: 16px 14px 0; border-radius: 18px; padding: 24px 18px 20px; text-align: center; color: #fff; }
.pk-res.ok { background: linear-gradient(140deg, #12b76a, #0a9f6e); }
.pk-res.no { background: linear-gradient(140deg, #f04438, #d92d20); }
.pk-res-score { font-size: 46px; font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.pk-res-score span { font-size: 17px; font-weight: 500; opacity: .78; }
.pk-res-sub { font-size: 12.5px; opacity: .9; margin-top: 8px; }
.pk-res-tag { display: inline-block; margin-top: 12px; font-size: 12.5px; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .22); }
.pk-res-stars { display: flex; justify-content: center; gap: 5px; margin-top: 14px; }
.pk-res-stars .pk-s { color: rgba(255, 255, 255, .38); }
.pk-res-stars .pk-s.on { color: #ffd166; }
.pk-duel { margin: 12px 14px 0; background: #fff; border-radius: 14px; padding: 14px; text-align: center; box-shadow: var(--sh-1); }
.pk-duel-vs { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 13px; }
.pk-duel-vs b { font-size: 15px; font-weight: 650; }
.pk-duel-vs span { font-size: 11px; color: var(--muted-2); }
.pk-duel-tag { margin-top: 8px; font-size: 12.5px; font-weight: 550; }
.pk-duel.win .pk-duel-tag { color: var(--ok); }
.pk-duel.lose .pk-duel-tag { color: var(--danger); }
.pk-gain {
  display: flex; align-items: center; justify-content: center; gap: 6px; margin: 12px 14px 0;
  padding: 10px; border-radius: 12px; background: var(--warn-50); color: #b35c00;
  font-size: 13px; font-weight: 600;
}
.pk-res-list { margin: 12px 14px 0; background: #fff; border-radius: 14px; padding: 14px; box-shadow: var(--sh-1); }
.pk-res-list > b { font-size: 13px; display: block; margin-bottom: 8px; }
.pk-res-row { display: flex; align-items: center; gap: 9px; padding: 8px 0; border-bottom: 1px dashed var(--line-2); font-size: 12.5px; }
.pk-res-row:last-child { border-bottom: 0; }
.pk-res-idx { width: 18px; color: var(--muted-2); font-size: 11.5px; flex: none; }
.pk-res-stem { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.pk-res-got { flex: none; font-weight: 650; font-family: ui-monospace, monospace; }
.pk-res-row.ok .pk-res-got { color: var(--ok); }
.pk-res-row.no .pk-res-got { color: var(--muted-2); }
.pk-res-btns { padding: 16px 14px 24px; display: grid; gap: 10px; }
.pk-num { display: inline-flex; align-items: center; gap: 3px; font-style: normal;
  font-size: 11px; color: #f79009; font-weight: 600; }

/* 学员端数据和课程入口 */
.m-row-button { color: inherit; text-align: left; cursor: pointer; }
.m-row-button:not(.opt) { border: 0; }
.todo-row.m-row-button, .course-row.m-row-button, .list-item.m-row-button { width: 100%; }
.todo-row.m-row-button, .list-item.m-row-button { background: #fff; border-bottom: 1px solid var(--line-2); }
.todo-row.m-row-button:last-child, .list-item.m-row-button:last-child { border-bottom: 0; }
.m-row-button:disabled { cursor: default; }
.mhead .m-text-action { background: transparent; border: 0; min-height: 36px; padding: 4px; flex-shrink: 0; }
.m-segments, .m-search { display: flex; align-items: center; gap: 7px; }
.m-segments button {
  flex: 1 1 0; min-height: 42px; min-width: 0; padding: 6px; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; color: var(--ink-2); font-size: 13px; cursor: pointer;
}
.m-segments button[aria-pressed="true"] { color: #fff; background: var(--brand); border-color: var(--brand); }
.m-segments button:disabled { opacity: .55; cursor: default; }
.m-search { margin: 0 0 10px; }
.m-search input { flex: 1; min-width: 0; }
.m-pagination { margin-top: 8px; }
.m-pagination span { min-width: 55px; text-align: center; color: var(--muted); font-variant-numeric: tabular-nums; }
.m-course-meta {
  display: grid; gap: 4px; padding: 14px; background: #e9f0ff; color: #284787;
  font-size: 13px; border-bottom: 1px solid #c8d8f8;
}
#mobileCourseLesson { scroll-margin-top: 60px; }
#mobileCoursePoints strong { color: var(--ok); white-space: nowrap; }
#mobileCourseLinks .list-card { display: grid; gap: 8px; padding: 8px; margin: 0; }
.mobile-course-section .li-ic { background: var(--brand-50); color: var(--brand); border-radius: 50%; }
.mobile-course-section:disabled { color: var(--muted); background: #f4f6fa; }
.mobile-course-section:disabled .li-ic { color: #475467; background: #e6ebf2; }
.m-full { width: 100%; min-height: 44px; margin-top: 12px; justify-content: center; }
.m-copy { padding: 13px; color: var(--ink-2); line-height: 1.6; overflow-wrap: anywhere; white-space: pre-line; }
.m-copy :is(h3,p) { margin: 0 0 6px; }
.m-rating-form { display: grid; gap: 8px; padding: 12px; margin: 0; }
.m-rating-form textarea { width: 100%; }
.m-rating-form select { padding-right: 22px; }
.m-point-summary { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-bottom: 16px; }
.m-point-summary div { padding: 11px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.m-point-summary span { display: block; color: var(--muted); font-size: 12px; }
.m-point-summary b { font-size: 19px; font-variant-numeric: tabular-nums; }
.m-delta { color: var(--ok); font-weight: 650; font-variant-numeric: tabular-nums; }
.m-delta.out { color: var(--danger); }
.m-point-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 12px; }
.m-point-table :is(th,td) { text-align: center; padding: 9px 5px; overflow-wrap: anywhere; border-bottom: 1px solid var(--line-2); }
.m-point-table th { background: #edf2fb; color: #38465c; }
.m-point-table tr:last-child td { border-bottom: 0; }
.m-cert-content svg { max-width: 100%; height: auto; display: block; margin-top: 10px; }
.pk-m-card.m-row-button { display: block; width: calc(100% - 28px); }
.pk-m-card :is(.pk-m-body,.pk-m-bar) { display: block; }
.pk-m-card .pk-m-cover { display: flex; }
.pk-m-card .pk-m-mode { align-self: flex-start; }
#pkText { width: 100%; }
.pk-q-card .opt { width: 100%; }
