/* ===== 中童学堂 · 学员中心（/s）=====
   复用 /shared/base.css 的变量与基础组件（card / btn / tag / input / modal / bar），
   这里只写布局和学员端特有组件。品牌色跟管理端一致，视觉上是一套产品。 */

/* ---------------- 登录 ---------------- */
.login-layer {
  position: fixed; inset: 0; display: flex; background: #fff; z-index: 60;
}
.login-art {
  flex: 1 1 55%; position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1200px 600px at 12% 8%, #4f7cff 0%, #2f62f4 42%, #1c3fae 100%);
  display: flex; align-items: center; padding: 0 8vw;
}
.login-art::after {
  content: ""; position: absolute; width: 620px; height: 620px; right: -180px; bottom: -220px;
  border-radius: 50%; background: rgba(255, 255, 255, .09);
}
.login-art::before {
  content: ""; position: absolute; width: 320px; height: 320px; left: -120px; top: -120px;
  border-radius: 50%; background: rgba(255, 255, 255, .08);
}
.login-art-inner { position: relative; max-width: 460px; }
.login-art h1 { font-size: 34px; margin: 22px 0 8px; letter-spacing: -.02em; }
.login-art .slogan { font-size: 15px; opacity: .82; margin: 0 0 30px; }
.art-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; }
.art-points li { font-size: 13.5px; opacity: .9; padding-left: 18px; position: relative; }
.art-points li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 7px; height: 7px;
  border-radius: 50%; background: #fff; opacity: .7;
}
.art-points b { font-weight: 600; }
.art-foot { margin-top: 46px; font-size: 12px; opacity: .58; letter-spacing: .04em; }
.login-panel { flex: 0 0 46%; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-box { width: 100%; max-width: 372px; }
.login-brand img { height: 34px; display: block; margin-bottom: 26px; }
.login-box h2 { font-size: 22px; margin: 0 0 6px; letter-spacing: -.02em; }
.login-box .btn.lg { height: 44px; font-size: 15px; border-radius: 11px; margin-top: 8px; }
.btn.block { display: flex; width: 100%; align-items: center; justify-content: center; gap: 6px; }
.login-links { margin-top: 22px; text-align: center; font-size: 12.5px; color: var(--muted); }
.login-links a:hover { color: var(--brand); }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(140deg, #4b7bff, #2f62f4 60%, #6d4bff);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px; flex: 0 0 auto;
  box-shadow: 0 8px 20px -8px rgba(47, 98, 244, .9);
}
.brand-mark.lg { width: 54px; height: 54px; border-radius: 15px; font-size: 23px; background: rgba(255, 255, 255, .16); }

/* ---------------- 框架 ---------------- */
.app { min-height: 100vh; }
.hidden { display: none !important; }
/* 侧栏配色跟管理端 admin.css 的 .sidebar 保持一致（深色渐变） */
.s-side {
  position: fixed; left: 0; top: 0; bottom: 0; width: 234px;
  background: linear-gradient(180deg, #0c1730, #101d3d 55%, #0a1428);
  color: #cbd5ec; display: flex; flex-direction: column; z-index: 40;
}
.s-logo { display: flex; align-items: center; gap: 11px; padding: 18px 18px 16px; }
.s-logo .logo-txt { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.s-logo .logo-txt b { font-size: 14px; font-weight: 600; color: #fff; letter-spacing: -.01em; white-space: nowrap; }
.s-logo .logo-txt span { font-size: 10.5px; color: #6b7ba0; letter-spacing: .02em; }
.s-nav { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 10px 12px; }
.s-nav::-webkit-scrollbar { width: 4px; }
.s-nav::-webkit-scrollbar-thumb { background: #24314f; }
.s-nav-grp { font-size: 11px; color: #6f81a8; font-weight: 600; letter-spacing: .06em;
  padding: 14px 10px 6px; }
.s-nav-item {
  display: flex; align-items: center; gap: 9px; padding: 6px 10px 6px 12px; border-radius: 8px;
  font-size: 12px; color: #a9b6d1; cursor: pointer; margin-bottom: 2px; position: relative;
  transition: .14s;
}
.s-nav-item svg { width: 16px; height: 16px; flex: 0 0 16px; opacity: .8; color: inherit; }
.s-nav-item:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.s-nav-item.on {
  background: linear-gradient(90deg, rgba(47, 98, 244, .95), rgba(47, 98, 244, .72));
  color: #fff; font-weight: 600; box-shadow: 0 6px 16px -10px rgba(47, 98, 244, 1);
}
.s-nav-item.on svg { opacity: 1; color: #fff; }
.s-nav-item .n-dot { margin-left: auto; min-width: 17px; height: 17px; padding: 0 5px;
  border-radius: 9px; background: #ff7a45; color: #fff; font-size: 10.5px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; }
.s-side-foot { padding: 12px; border-top: 1px solid rgba(255, 255, 255, .07); display: grid; gap: 4px; }
.s-side-link { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #a9b6d1;
  padding: 7px 8px; border-radius: 8px; cursor: pointer; transition: .14s; }
.s-side-link:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.s-side-link svg { width: 15px; height: 15px; }

.s-main { margin-left: 234px; min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.s-top {
  height: 60px; position: sticky; top: 0; z-index: 30; display: flex; align-items: center;
  gap: 14px; padding: 0 26px; background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.s-burger { display: none; border: none; background: none; padding: 4px; cursor: pointer; color: var(--ink-2); }
.s-burger svg { width: 22px; height: 22px; }
.crumb { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.crumb i { font-style: normal; color: var(--muted-2); }
.crumb b { color: var(--ink); font-weight: 600; }
.top-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.search { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 11px;
  border: 1px solid var(--line); border-radius: 9px; background: #fbfcfe; width: 232px; }
.search svg { width: 15px; height: 15px; color: var(--muted-2); flex: 0 0 auto; }
.search input { border: none; background: none; outline: none; font-size: 13px; width: 100%; }
.icon-btn { position: relative; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line);
  background: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink-2); }
.icon-btn:hover { background: #f7f9fe; }
.icon-btn svg { width: 17px; height: 17px; }
.dot-badge { position: absolute; right: 7px; top: 7px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--danger); }
.user-chip { display: flex; align-items: center; gap: 9px; padding: 4px 6px 4px 4px; border-radius: 9px;
  cursor: pointer; position: relative; }
.user-chip:hover { background: #f7f9fe; }
.avatar { width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, #4f7cff, #2f62f4);
  color: #fff; font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.u-txt { display: flex; flex-direction: column; line-height: 1.2; }
.u-txt b { font-size: 13px; }
.u-txt span { font-size: 11.5px; color: var(--muted-2); }
.user-chip .caret { width: 14px; height: 14px; color: var(--muted-2); }
.u-menu {
  position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line);
  border-radius: 11px; box-shadow: var(--sh-2); padding: 6px; min-width: 158px; display: none; z-index: 50;
}
.u-menu.show { display: block; }
.u-menu a { display: block; padding: 8px 11px; border-radius: 7px; font-size: 13px; cursor: pointer; }
.u-menu a:hover { background: #f5f8ff; }
.u-menu a.danger { color: var(--danger); }
.s-view { padding: 22px 26px 44px; flex: 1; min-width: 0; }

/* ---------------- 页面通用 ---------------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.page-head h1 { font-size: 20px; margin: 0 0 4px; letter-spacing: -.02em; }
.page-head p { margin: 0; font-size: 13px; color: var(--muted); }
.page-head .acts { display: flex; gap: 9px; align-items: center; }
.s-sec { margin-bottom: 16px; }
.s-sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.s-sec-head h3 { font-size: 15px; margin: 0; }
.s-sec-head .more { font-size: 12.5px; color: var(--brand); cursor: pointer; }
.s-sec-head .more:hover { text-decoration: underline; }

.kpi4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 15px 16px;
  box-shadow: var(--sh-1); cursor: pointer; transition: .16s; position: relative; overflow: hidden;
}
.kpi:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -16px rgba(16, 24, 40, .32); }
.kpi-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.kpi-ic { width: 32px; height: 32px; border-radius: 9px; display: flex; align-items: center; justify-content: center; }
.kpi-ic svg { width: 17px; height: 17px; }
.kpi-label { font-size: 12.5px; color: var(--muted); }
.kpi-val { font-size: 26px; font-weight: 700; letter-spacing: -.03em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.kpi-val em { font-size: 13px; font-weight: 500; color: var(--muted-2); font-style: normal; margin-left: 3px; }
.kpi-sub { font-size: 12px; color: var(--muted-2); margin-top: 5px; }
.kpi .mini-bar { height: 5px; border-radius: 99px; background: var(--line-2); margin-top: 9px; overflow: hidden; }
.kpi .mini-bar i { display: block; height: 100%; border-radius: 99px; background: var(--brand); }

.g2 { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.g2.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.ic-line { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 12px; color: var(--muted); }
.ic-line svg { width: 13px; height: 13px; opacity: .65; flex: 0 0 auto; }
.s-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sh-1); }
.s-card .hd { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px; }
.s-card .hd h3 { margin: 0; font-size: 14.5px; }
.s-card .hd .sub { font-size: 12px; color: var(--muted-2); margin-top: 2px; }
.s-card .bd { padding: 0 16px 16px; }
.s-card .bd.flush { padding: 0 0 4px; }

/* 我的情况卡 */
.me-card { padding: 16px; }
.me-top { display: flex; gap: 12px; align-items: center; }
.me-avatar { width: 46px; height: 46px; border-radius: 13px; font-size: 17px; }
.me-name { font-size: 16px; font-weight: 650; letter-spacing: -.01em; }
.me-pos { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.me-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.me-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.me-grid.one { grid-template-columns: 1fr; }
.me-item { background: #f8fafd; border-radius: 9px; padding: 9px 11px; }
.me-item span { display: block; font-size: 11.5px; color: var(--muted-2); }
.me-item b { font-size: 13px; font-weight: 600; }
.me-level { margin-top: 14px; }
.me-level .row { justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.me-level .row b { color: var(--ink); }

/* 快捷入口 */
.quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.quick {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 15px 6px;
  border-radius: 12px; background: #fbfcff; border: 1px solid var(--line-2); cursor: pointer; transition: .15s;
}
.quick:hover { background: #f2f6ff; border-color: #d8e2fb; }
.quick .q-ic { width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center; }
.quick .q-ic svg { width: 19px; height: 19px; }
.quick span { font-size: 12.5px; color: var(--ink-2); }

/* 待办 */
.home-activity { align-items: stretch; }
.home-study { display: grid; grid-template-rows: auto 1fr; }
.home-study > .bd { display: flex; flex-direction: column; }
/* 绘图区由同排卡片定高，SVG 的固有高度不参与布局。 */
#dailyChart { flex: 1; min-height: 196px; contain: size; }
.todo-row { display: flex; align-items: center; gap: 11px; padding: 10px 16px; cursor: pointer; }
.todo-row:hover { background: #fafcff; }
.todo-ic { width: 32px; height: 32px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.todo-ic svg { width: 16px; height: 16px; }
.todo-tx { min-width: 0; flex: 1; }
.todo-tx b { display: block; font-size: 13px; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.todo-tx span { font-size: 11.5px; color: var(--muted-2); }
.todo-go { font-size: 12px; color: var(--brand); }

/* 继续学习 */
.cont-row { display: flex; gap: 11px; padding: 10px 16px; cursor: pointer; align-items: center; }
.cont-row:hover { background: #fafcff; }
.cont-cover { width: 64px; height: 38px; border-radius: 7px; background-size: cover; background-position: center; flex: 0 0 auto; }
.cont-tx { flex: 1; min-width: 0; }
.cont-tx b { display: block; font-size: 13px; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cont-tx .bar { margin-top: 6px; height: 5px; }
.cont-pct { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; width: 38px; text-align: right; }

/* 排行榜 */
.rank-row { display: flex; align-items: center; gap: 10px; padding: 8px 16px; }
.rank-no { width: 21px; height: 21px; border-radius: 6px; font-size: 11.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; background: var(--line-2); color: var(--muted); }
.rank-no.t1 { background: #fff3d6; color: #b25e00; }
.rank-no.t2 { background: #eef1f7; color: #5b6678; }
.rank-no.t3 { background: #fdece2; color: #b1552b; }
.rank-av { width: 26px; height: 26px; border-radius: 8px; font-size: 11.5px; }
.rank-nm { flex: 1; min-width: 0; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-nm i { font-style: normal; font-size: 11px; color: var(--muted-2); margin-left: 5px; }
.rank-pt { font-size: 13px; font-weight: 650; color: var(--brand); font-variant-numeric: tabular-nums; }
.rank-me { background: var(--brand-50); border-radius: 9px; margin: 4px 10px 0; padding: 8px 11px;
  display: flex; align-items: center; gap: 9px; font-size: 12.5px; }

/* 线上课卡片流 */
.filter-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.chip-tabs { display: flex; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.chip-tab { padding: 6px 13px; border-radius: 8px; font-size: 13px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.chip-tab:hover { color: var(--ink-2); background: #f7f9fe; }
.chip-tab.on { background: var(--brand); color: #fff; font-weight: 550; }
.chip-tab .n { font-size: 11px; opacity: .7; margin-left: 3px; }
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 15px; }
.course-card {
  background: #fff; border: 1px solid var(--line); border-radius: 13px; overflow: hidden;
  cursor: pointer; transition: .17s; display: flex; flex-direction: column;
}
.course-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -20px rgba(16, 24, 40, .45); border-color: #d9e3fb; }
.cc-cover { height: 118px; background-size: cover; background-position: center; position: relative; }
.cc-tag { position: absolute; left: 9px; top: 9px; display: flex; gap: 5px; }
.cc-tag span { font-size: 11px; padding: 2px 7px; border-radius: 6px; background: rgba(255, 255, 255, .92);
  color: var(--ink-2); font-weight: 550; }
.cc-tag span.must { background: #fff1f0; color: #c0291f; }
.cc-tag span.done { background: #e8f8f0; color: #0a8a52; }
.cc-body { padding: 11px 13px 13px; display: flex; flex-direction: column; flex: 1; }
.cc-title { font-size: 13.8px; font-weight: 600; line-height: 1.45; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 40px; }
.cc-meta { margin-top: 7px; font-size: 11.5px; color: var(--muted-2); display: flex; gap: 9px; flex-wrap: wrap; }
.cc-foot { margin-top: 10px; display: flex; align-items: center; gap: 8px; min-height: 27px; }
.cc-foot .bar { flex: 1; height: 5px; }
.cc-pct { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.course-pages { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 18px; }

/* 通用列表行 */
.lrow { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line-2); }
.lrow:last-child { border-bottom: none; }
.lrow:hover { background: #fbfcff; }
.lrow-ic { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center;
  justify-content: center; flex: 0 0 auto; }
.lrow-ic svg { width: 18px; height: 18px; }
.lrow-main { flex: 1; min-width: 0; }
.lrow-main b { display: block; font-size: 13.5px; font-weight: 550; }
.lrow-main .sub { font-size: 12px; color: var(--muted-2); margin-top: 2px; display: flex; gap: 10px; flex-wrap: wrap; }
.lrow-act { display: flex; gap: 8px; align-items: center; flex: 0 0 auto; }
.course-section { width: 100%; border: 0; border-bottom: 1px solid var(--line-2);
  font: inherit; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.course-section:disabled { opacity: .62; cursor: not-allowed; }
.course-section:disabled:hover { background: transparent; }
.course-section .lrow-ic, #courseLinks .lrow-ic { background: #f1f4fa; color: var(--muted); }
.course-section .learned { color: #0a8a52; }
.course-section .lrow-ic.learned { background: #e8f8f0; }
.course-earned {
  border: 1px solid transparent; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.course-earned:hover { background: var(--brand-50); border-color: var(--brand-100); }

/* 学习地图 */
.map-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.map-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; cursor: pointer;
  transition: .16s; }
.map-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -20px rgba(16, 24, 40, .45); }
.map-cover { height: 104px; background: #243b70 center / cover no-repeat; position: relative; }
.map-cover img, .map-hero-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.map-cover .mstat { position: absolute; right: 10px; bottom: 9px; font-size: 11px; padding: 2px 8px;
  border-radius: 6px; background: rgba(255, 255, 255, .92); color: var(--ink-2); font-weight: 550; }
.map-body { padding: 13px 15px 15px; }
.map-title { font-size: 14.5px; font-weight: 600; margin-bottom: 5px; }
.map-sub { font-size: 12px; color: var(--muted-2); }
.map-prog { display: flex; align-items: center; gap: 9px; margin-top: 12px; }
.map-prog .bar { flex: 1; height: 6px; }
.map-prog span { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

.stage { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 14px; overflow: hidden; }
.stage-hd { display: flex; align-items: center; gap: 12px; padding: 14px 17px; background: #fbfcff;
  border-bottom: 1px solid var(--line-2); }
.stage-no { width: 30px; height: 30px; border-radius: 9px; background: var(--brand); color: #fff; font-size: 13px;
  font-weight: 700; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.stage-no.lock { background: #e6eaf2; color: var(--muted-2); }
.stage-hd .st-tx { flex: 1; min-width: 0; }
.stage-hd .st-tx b { font-size: 14px; }
.stage-hd .st-tx span { display: block; font-size: 12px; color: var(--muted-2); margin-top: 1px; }
.stage-items { padding: 6px 0; }
.stage-item {
  width: 100%; gap: 11px; padding: 10px 17px; text-align: left; background: transparent;
  border: 0; border-bottom: 1px solid var(--line-2); cursor: pointer;
}
.stage-item:disabled { color: var(--muted); background: #f5f6f9; cursor: default; }
.stage-item:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.si-ic { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto; }
.si-ic svg { width: 15px; height: 15px; }
.si-tx { flex: 1; min-width: 0; }
.si-tx b { font-size: 13px; font-weight: 550; }
.si-tx span { font-size: 11.5px; color: var(--muted-2); margin-left: 6px; }
.stage-lock-tip { padding: 16px 17px; font-size: 12.5px; color: var(--muted-2); }

/* 地图列表封面和总览路线 */
.map-cover .mc-in { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 12px 9px;
  background: linear-gradient(transparent, rgba(9, 20, 44, .72)); color: #fff; }
.map-cover .mstat { bottom: auto; top: 9px; }
.map-cover .mc-title { font-size: 13.5px; font-weight: 650; }
.map-cover .mc-lvs { display: flex; gap: 5px; margin-top: 5px; flex-wrap: wrap; }
.mc-lv { display: inline-flex; align-items: center; background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .38); border-radius: 999px; padding: 2px 9px;
  font-size: 11px; color: #fff; }
.mc-lv b { margin-right: 4px; font-weight: 700; }
#app:has(.map-hero) :is(.s-side, .s-top) { display: none; }
#app:has(.map-hero) .s-main { margin-left: 0; }
#app:has(.map-hero) .s-view { padding: 0; }
.map-hero {
  --map-ground: #132039;
  --map-edge: clamp(18px, 4vw, 70px);
  background: var(--map-ground); color: #fff;
}
.map-scene {
  position: relative; isolation: isolate; container-type: inline-size;
  display: flex; flex-direction: column; gap: 28px;
  min-height: 100vh; min-height: 100dvh;
  overflow: clip; padding: 86px var(--map-edge) clamp(24px, 4vw, 66px);
}
.map-hero-art { position: absolute; inset: 0; z-index: -1; }
.map-overview-nav {
  position: fixed; z-index: 5; top: 20px; left: var(--map-edge);
  display: inline-flex; align-items: center; gap: 10px;
}
.map-back, .map-more {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
  color: #fff; background: #172642; border: 1px solid #a8b7ce; border-radius: 8px;
  font: inherit; font-weight: 600; cursor: pointer;
}
.map-back:hover, .map-more:hover { color: #fff; background: #263a5a; }
.map-overview-nav kbd {
  padding: 2px 7px; color: #d8e4f6; background: #172642; border: 1px solid #91a1bb;
  border-radius: 4px; font: 12px ui-monospace, monospace;
}
.map-overview-head {
  width: fit-content; max-width: min(740px, 100%); overflow-wrap: anywhere;
  padding: 12px 16px; border-radius: 12px; background: rgba(16, 31, 53, .9);
}
.map-overview-head h1 { margin: 0; font-size: clamp(29px, 4vw, 53px); line-height: 1.16; }
.map-overview-meta { display: flex; flex-wrap: wrap; gap: 7px 16px; margin: 12px 0 0; font-size: 14px; color: #e4edfa; }
.map-overview-meta span { font-weight: 650; }
.map-overview-intro, .map-node-intro {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.map-overview-intro { margin: 8px 0 0; color: #e6ecf7; font-size: 14px; }
.map-route {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: clamp(18px, 3vw, 42px);
  margin: auto 0 0; padding: 0; list-style: none;
}
.map-hero-empty { margin: auto 0 0; padding-top: 40px; }
.map-node {
  --node-size: 50px;
  --node-ring: #dbe2e9;
  --node-progress: #dce3eb;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px;
  align-content: start; justify-items: center; min-width: 0; color: #f1f4f9; overflow-wrap: anywhere;
}
.map-node.locked, .map-node-unused {
  --node-ring: #a9b4c0;
  --node-progress: #a9b4c0;
  color: #d3dce6;
}
.map-node.completed {
  --node-ring: #c9ffea;
  --node-progress: #a6f5ce;
  color: #fff;
}
.map-node-entry { display: block; width: var(--node-size); border-radius: 50%; color: inherit; }
.map-node-entry:focus-visible, .map-back:focus-visible, .map-more:focus-visible {
  outline: 3px solid #fff; outline-offset: 3px;
}
.map-node a.map-node-entry:hover .map-node-no { box-shadow: 0 0 0 5px rgba(255, 255, 255, .28); }
.map-node-no {
  display: grid; place-items: center; width: var(--node-size); height: var(--node-size); border-radius: 50%;
  border: 3px solid var(--node-ring); background: var(--node-fill, #39414f); color: #fff;
  font-size: clamp(20px, 3vw, 42px); font-weight: 750; font-variant-numeric: tabular-nums;
}
.map-node.locked .map-node-no { border-style: dashed; }
.map-node-unused { display: none; }
.map-node-panel {
  width: 100%; padding: 14px clamp(10px, .82vw, 14px); text-align: center;
  background: #15243b; border: 1px solid #4c6380; border-top: 3px solid var(--node-ring);
  border-radius: 14px; box-shadow: 0 8px 24px rgba(5, 13, 28, .3);
}
.map-node-title {
  margin: 0; font-size: clamp(21px, 1.9vw, 27px); font-weight: 750; line-height: 1.25; text-wrap: balance;
}
.map-node-intro { margin: 8px 0 0; color: #becbe0; font-size: 14px; line-height: 1.5; }
.map-node-courses {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 12px 0 0; padding: 0;
  list-style: none; font-size: clamp(16px, 1.2vw, 18px); font-weight: 600; line-height: 1.45;
}
.map-course-row {
  display: grid; grid-template-columns: 24px minmax(0, 1fr) 24px; align-items: center; gap: 5px;
  min-height: 44px; padding: 8px; color: #fff; background: #243e60;
  border: 1px solid #526b8e; border-radius: 9px; text-decoration: none;
}
.map-course-row.locked { color: #bdc6d3; background: #2b3544; border-color: #4a5667; }
.map-course-number {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid #90b8ec; color: #e5f0ff; background: #355785;
  font-size: 13px; font-weight: 750; font-variant-numeric: tabular-nums;
}
.map-course-row.locked .map-course-number { color: #c6ceda; border-color: #748296; background: #414c5b; }
.map-course-row.done .map-course-number { color: #d6fff1; border-color: #90d7bc; background: #176054; }
.map-course-label { display: grid; gap: 3px; min-width: 0; text-wrap: balance; }
.map-course-note { color: #bac5d4; font-size: 12px; line-height: 1.3; }
.map-course-icon { display: grid; place-items: center; color: #b9d3f4; }
.map-course-row.done .map-course-icon { color: #a6f5ce; }
.map-node-panel a:hover { color: #fff; background: #35577e; border-color: #9fb6d9; }
.map-node-panel a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.map-node-progress { height: 7px; margin-top: 14px; border-radius: 99px; background: #415774; }
.map-node-progress i { display: block; height: 100%; border-radius: inherit; background: var(--node-progress); }
.map-node-meta {
  display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 8px;
  margin-top: 10px; font-size: 14px; font-weight: 650;
}
.map-node-meta :is(a, span) {
  display: inline-flex; align-items: center; justify-content: center; min-height: 33px; padding: 5px 9px;
  border-radius: 8px;
}
.map-node-meta span { color: var(--node-progress); background: #25374f; }
.map-node-meta a { justify-self: stretch; color: #fff; background: #223a56; border: 1px solid #60799b; }
.map-more { align-self: flex-end; }
.map-followup { padding: 24px var(--map-edge) 42px; scroll-margin-top: 70px; }

@media (max-width: 699px) {
  .map-route-main { margin-top: 0; }
}

@media (min-width: 1000px) and (min-height: 600px) and (min-aspect-ratio: 1.55),
       (min-width: 1000px) and (aspect-ratio > 2/1) {
  .map-scene-numbered {
    --map-art-width: max(100cqw, 177.7778dvh);
    --map-art-height: calc(var(--map-art-width) * .5625);
    --map-origin-y: calc(1px - var(--map-route-start) * var(--map-art-width));
    display: grid; grid-template: max-content max-content / minmax(0, 1fr);
    align-content: space-between; gap: clamp(24px, 3dvh, 42px);
    padding: 86px 0 clamp(24px, 3dvh, 42px);
  }
  .map-scene-numbered .map-hero-art {
    grid-area: 2 / 1 / auto / 2; top: calc(var(--map-origin-y) - var(--map-art-height) / 2);
    background: var(--map-cover) center top / var(--map-art-width) auto no-repeat;
  }
  .map-scene-numbered .map-hero-art img {
    position: absolute; top: calc((var(--map-art-height) - 100dvh) / 2); height: 100dvh;
  }
  .map-scene-numbered .map-hero-art::after {
    /* 阶段卡片较长时，用封面底边原色延续背景。 */
    content: ""; position: absolute; top: var(--map-art-height); bottom: 0;
    left: 50%; width: var(--map-art-width); transform: translateX(-50%);
    border-image: var(--map-cover) 99.6% 0 0 0 fill / 0;
  }
  .map-scene-numbered .map-overview-head { grid-area: 1 / 1; margin: 0 var(--map-edge); }
  .map-scene-numbered .map-route-main {
    --map-node-inset: 12px;
    grid-area: 2 / 1; grid-template-columns: minmax(0, 1fr); gap: 0;
    margin: 0; pointer-events: none;
  }
  .map-scene-numbered .map-node {
    --node-size: calc(var(--node-scale) * var(--map-art-width) + 2px);
    --node-center-x: calc(50cqw + var(--node-x) * var(--map-art-width));
    --node-center-y: calc(var(--map-origin-y) + var(--node-y) * var(--map-art-width));
    /* 最紧凑的封面节点相距画布宽度的 18.75%，另留 14px 卡片间距。 */
    --node-width: min(326px, calc(min(100cqw, var(--map-art-width)) * .1875 - 14px), 2 * (var(--node-center-x) - var(--map-node-inset)),
      2 * (100cqw - var(--node-center-x) - var(--map-node-inset)));
    grid-area: 1 / 1; align-self: start; justify-self: start; width: var(--node-width);
    margin: calc(var(--node-center-y) - var(--node-size) / 2) 0 0 calc(var(--node-center-x) - var(--node-width) / 2);
    pointer-events: auto;
  }
  .map-scene-numbered .map-node-unused { display: grid; pointer-events: none; }
  .map-scene-numbered .map-node-unused .map-node-no { opacity: .88; }
  .map-scene-numbered .map-node-panel { position: relative; }
  .map-scene-numbered .map-node-panel::before {
    content: ""; position: absolute; left: calc(50% - 1px); bottom: 100%;
    width: 2px; height: 10px; background: var(--node-ring);
  }
  .map-scene-numbered .map-more { grid-area: 3 / 1; justify-self: end; margin-inline-end: var(--map-edge); }
}

@media (min-width: 1000px) and (aspect-ratio > 2/1) {
  .map-scene-numbered {
    --map-art-width: min(100cqw, max(1000px, 177.7778dvh));
    --map-art-gutter: calc((100cqw - var(--map-art-width)) / 2);
    padding-top: 76px;
  }
  .map-scene-numbered::before {
    content: ""; position: absolute; inset: 0; z-index: -2;
    background: var(--map-cover) center / cover no-repeat;
    filter: blur(28px); transform: scale(1.06);
  }
  .map-scene-numbered .map-hero-art {
    inset-inline: var(--map-art-gutter);
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  }
  .map-scene-numbered .map-hero-art img { top: 0; height: var(--map-art-height); }
  .map-scene-numbered .map-overview-head h1 { font-size: clamp(30px, 4.8dvh, 42px); }
}

/* 考试 */
.exam-card { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 15px 17px; cursor: pointer;
  transition: .15s; }
.exam-card:hover { border-color: #d9e3fb; box-shadow: 0 10px 24px -20px rgba(16, 24, 40, .4); }
.exam-top { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.exam-top b { font-size: 14px; font-weight: 600; flex: 1; }
.exam-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted-2); }
.exam-meta i { font-style: normal; color: var(--ink-2); font-weight: 550; }
.exam-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 11px; }
.exam-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }

/* 答题页 */
:root:fullscreen #app:has(.exam-answer-head) .s-side { display: none; }
:root:fullscreen #app:has(.exam-answer-head) .s-main { margin-left: 0; }
.page-head.exam-answer-head {
  position: sticky; top: 60px; z-index: 22;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px;
}
.exam-answer-title { min-width: 0; overflow-wrap: anywhere; }
.exam-countdown {
  display: grid; justify-items: center; gap: 2px; padding: 7px 16px; min-width: 106px;
  border: 1px solid #fecdca; border-radius: 12px; color: #b42318; background: #fff4f3;
}
.exam-countdown > span { font-size: 12px; font-weight: 650; }
.exam-countdown #clock { color: inherit; font-size: clamp(30px, 4vw, 42px); line-height: 1.03; }
.exam-countdown.urgent { color: #912018; border-color: #f97066; background: #fee4e2; }
.exam-fullscreen-status { display: grid; justify-items: end; gap: 6px; text-align: right; }
.exam-fullscreen-status p { max-width: 240px; line-height: 1.45; overflow-wrap: anywhere; }
.exam-rules {
  margin-bottom: 14px; padding: 15px 18px; border: 1px solid #fed7aa; border-radius: 14px;
  background: #fffaf3; color: #5c3320;
}
.exam-rules h2 { margin: 0 0 8px; font-size: 16px; color: #7c2d12; }
.exam-rule-list { display: grid; gap: 5px; margin: 0; padding-inline-start: 20px; line-height: 1.55; }
.exam-rule-warning { color: #b42318; font-weight: 700; }
.exam-notice { margin-top: 10px; padding-top: 10px; border-top: 1px solid #fed7aa; overflow-wrap: anywhere; }
.exam-notice h3 { margin: 0 0 5px; font-size: 14px; }
.exam-notice p { margin: 0 0 6px; }
.exam-notice img { max-width: 100%; height: auto; }
@media (max-width: 680px) {
  .page-head.exam-answer-head { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 10px 12px; }
  .exam-countdown { grid-row: 1; justify-self: center; }
  .exam-fullscreen-status { justify-items: start; text-align: left; }
}
.qbox { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; margin-bottom: 14px; }
.qstem { font-size: 14.5px; font-weight: 550; line-height: 1.7; margin-bottom: 14px; }
.qstem .qn { color: var(--muted-2); margin-right: 6px; }
.exam-copy-guard .qstem, .exam-copy-guard .opt { -webkit-user-select: none; user-select: none; }
.exam-copy-guard .qbox { position: relative; }
.exam-watermark {
  position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-16deg);
  pointer-events: none; user-select: none; white-space: nowrap;
  color: rgba(31, 55, 95, .24); font-size: clamp(16px, 1vw, 21px); font-weight: 650;
}
.opt { display: flex; gap: 11px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px;
  margin-bottom: 9px; cursor: pointer; transition: .13s; font-size: 13.5px; }
.opt:hover { border-color: #cfd9f0; background: #fbfcff; }
.opt .oi { width: 22px; height: 22px; border-radius: 6px; background: #f1f4fa; color: var(--muted);
  font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.opt.on { border-color: var(--brand); background: var(--brand-50); }
.opt.on .oi { background: var(--brand); color: #fff; }
.qbar { position: sticky; bottom: 0; background: rgba(255,255,255,.94); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line); padding: 12px 26px; display: flex; align-items: center; gap: 12px;
  margin: 0 -26px -44px; z-index: 20; }
.qnav { display: flex; gap: 5px; flex-wrap: wrap; flex: 1; }
.qnav span { width: 26px; height: 26px; border-radius: 7px; background: #f1f4fa; color: var(--muted);
  font-size: 11.5px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.qnav span.done { background: var(--brand-50); color: var(--brand); font-weight: 600; }
.timer { font-variant-numeric: tabular-nums; font-weight: 650; color: var(--brand); font-size: 15px; }

/* 结果 */
.score-hero { text-align: center; padding: 26px 20px 10px; }
.score-hero .num { font-size: 54px; font-weight: 750; letter-spacing: -.04em; line-height: 1; }
.score-hero .num.ok { color: var(--ok); }
.score-hero .num.no { color: var(--danger); }
.score-hero .sub { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.exam-result-summary {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  align-items: center; gap: 16px;
}
.exam-result-rank {
  padding: 14px 16px; border: 1px solid var(--brand-100); border-radius: 12px;
  background: var(--brand-50); color: var(--ink-2);
}
.exam-result-rank h2 { margin: 0; font-size: 15px; font-weight: 700; }
.exam-rank-position { margin: 6px 0; color: var(--brand); font-size: 18px; font-weight: 650; }
.exam-rank-position strong { font-size: clamp(38px, 4vw, 50px); line-height: 1; font-variant-numeric: tabular-nums; }
.exam-result-rank p { margin: 0; font-size: 13px; }
.score-split { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.score-split div { background: #f8fafd; border-radius: 10px; padding: 11px; text-align: center; }
.score-split span { display: block; font-size: 11.5px; color: var(--muted-2); }
.score-split b { font-size: 17px; }

/* PK 赛 */
.pk-card-stars, .pk-stars { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.pk-stars { color: #b2bdcf; }
.pk-stars span { display: inline-flex; }
.pk-stars .on { color: #d97706; }

#app:has(.pk-screen) .s-side, #app:has(.pk-screen) .s-top { display: none; }
#app:has(.pk-screen) .s-main { margin-left: 0; }
#app:has(.pk-screen) .s-view { padding: 0; }
.pk-screen { min-height: 100vh; min-height: 100dvh; }
.pk-cover-page {
  display: flex; position: relative; isolation: isolate; color: #fff;
  background-color: #1d183c; background-position: center; background-size: cover;
}
.pk-cover-page::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(13, 9, 29, .32), transparent 30%, rgba(13, 9, 29, .12) 48%, rgba(13, 9, 29, .88) 100%);
}
.pk-cover-content {
  width: min(100%, 1440px); margin-inline: auto; padding: clamp(20px, 4vw, 60px);
  display: flex; flex-direction: column; align-items: flex-start;
}
.pk-back {
  display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px;
  color: #fff; background: rgba(15, 14, 32, .66); border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 9px; font-size: 13px; font-weight: 600;
}
.pk-back:hover { color: #fff; background: #303050; }
.pk-cover-body {
  width: 100%; margin-top: auto; padding-top: clamp(200px, 34vh, 420px);
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: clamp(30px, 7vw, 110px); align-items: end;
}
.pk-match-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: #eee9fc; font-size: 14px; }
.pk-match h1 { font-size: clamp(28px, 4vw, 58px); line-height: 1.12; margin: 10px 0 12px; letter-spacing: -.028em; }
.pk-match-intro { margin: 0 0 18px; color: #f0ecfc; font-size: clamp(14px, 1.3vw, 18px); line-height: 1.7; }
.pk-match-stars { display: flex; align-items: center; gap: 6px; color: #ffda83; font-size: 15px; }
.pk-rules { margin-top: 20px; padding-top: 14px; color: #eee9fc; border-top: 1px solid rgba(255, 255, 255, .24); line-height: 1.65; }
.pk-rules h2 { margin: 0 0 5px; color: #fff; font-size: 13px; }
.pk-levels {
  display: grid; gap: 8px; min-width: 0; padding: clamp(13px, 2vw, 23px);
  background: rgba(14, 13, 34, .84); border: 1px solid rgba(255, 255, 255, .27); border-radius: 20px;
  box-shadow: 0 18px 36px rgba(15, 10, 32, .28);
}
.pk-levels h2 { margin: 0 0 4px; font-size: 18px; }
.pk-level-empty { margin: 8px 0; color: #ded7f0; }
.pk-level {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px;
  padding: 11px; color: #fff; border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 12px; background: rgba(255, 255, 255, .08);
}
a.pk-level:hover, a.pk-level:focus-visible { color: #fff; border-color: #b3a8ed; background: #37325a; }
.pk-level.locked { color: #e4e1ef; background: rgba(255, 255, 255, .035); }
.pk-level h3 { margin: 0 0 3px; font-size: 15px; }
.pk-level-icon {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  background: #403765; color: #ece9ff;
}
.pk-level.locked .pk-level-icon { background: #312c46; color: #c1b8d0; }
.pk-level-meta, .pk-level-progress { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 8px; color: #e1d9ef; font-size: 12px; }
.pk-level-progress { gap: 4px 9px; margin-top: 4px; }
.pk-level .pk-stars { color: #a89aba; }
.pk-level .pk-stars .on { color: #ffcd67; }
.pk-level-action {
  padding: 5px 10px; border-radius: 8px; background: #eee9ff; color: #302451;
  font-size: 12px; font-weight: 700; white-space: nowrap;
}
.pk-level.locked .pk-level-action { background: #37304c; color: #e2dbea; }

.pk-quiz-page { background: linear-gradient(180deg, #171832 0, #232449 265px, #f3f5fb 265px); }
.pk-quiz-content { width: min(100%, 996px); margin-inline: auto; padding: clamp(22px, 4vw, 50px) clamp(14px, 3vw, 34px) 42px; }
.pk-quiz-header { color: #fff; }
.pk-quiz-header h1 { margin: 16px 0 20px; font-size: clamp(24px, 4vw, 38px); letter-spacing: -.02em; }
.pk-quiz-progress { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; color: #fff; }
.pk-quiz-progress > div:first-child { display: grid; gap: 4px; }
.pk-quiz-progress > div:first-child strong { font-size: clamp(17px, 2.2vw, 23px); }
.pk-quiz-progress > div:first-child span { color: #dedff0; font-size: 13px; }
.pk-countdown {
  display: flex; align-items: center; justify-content: space-between; gap: clamp(9px, 2vw, 20px);
  padding: 10px clamp(12px, 2vw, 21px); border-radius: 14px; background: #ffdc83; color: #2b1d0c;
  font-size: 13px; font-weight: 700;
}
.pk-countdown strong { font-size: clamp(36px, 4.2vw, 53px); font-variant-numeric: tabular-nums; line-height: 1; text-align: right; min-width: 3ch; }
.pk-countdown.urgent { background: #ffc2bc; color: #681a13; }
.pk-timebar { height: 6px; margin-bottom: 16px; overflow: hidden; border-radius: 999px; background: #4a4a69; }
.pk-timebar i { display: block; width: 100%; height: 100%; background: #ffdc83; border-radius: inherit; }
.pk-question, .pk-quiz-result {
  padding: clamp(18px, 3vw, 36px); border: 1px solid #e3e8f4;
  border-radius: 20px; background: #fff; box-shadow: 0 13px 34px -20px rgba(24, 34, 71, .42);
}
.pk-question-meta { display: flex; gap: 6px; }
.pk-question h2 { margin: 11px 0 19px; font-size: clamp(19px, 2.6vw, 26px); }
.pk-question h2:focus, .pk-quiz-result h2:focus { outline: none; }
.pk-question .opt { align-items: center; width: 100%; padding: 13px 14px; background: #f8f9fd; color: var(--ink); text-align: left; font: inherit; }
.pk-question .opt:hover, .pk-question .opt.on { border-color: var(--brand); background: var(--brand-50); }
.pk-question .opt .oi { width: 28px; height: 28px; }
.pk-quiz-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pk-quiz-result .score-hero { padding: 0 0 18px; }
.pk-quiz-result h2 { margin: 0 0 10px; font-size: 17px; }
.pk-quiz-result .num span { color: var(--muted); font-size: 24px; }
.pk-quiz-result .score-hero p { margin: 10px 0; }
.pk-result-stars { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.pk-result-stars > span:last-child { color: var(--muted); font-size: 13px; }
.pk-result-points { margin-top: 8px; color: var(--ok); font-weight: 700; }
.pk-result-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.pk-result-icon { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 8px; }
.pk-result-row.ok .pk-result-icon { background: var(--ok-50); color: var(--ok); }
.pk-result-row.no .pk-result-icon { background: var(--danger-50); color: var(--danger); }

@media (max-width: 760px) {
  .pk-cover-page { background-position: center top; }
  .pk-cover-body { grid-template-columns: minmax(0, 1fr); padding-top: max(135px, 25vh); gap: 20px; }
  .pk-level { gap: 8px; padding: 9px; }
  .pk-level-icon { width: 30px; height: 30px; }
  .pk-level-action { padding-inline: 6px; }
  .pk-rules { margin-top: 14px; }
}

/* 错题集 */
.wrong-item { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 16px 18px; margin-bottom: 12px; }
.wq-top { display: flex; gap: 10px; align-items: center; margin-bottom: 9px; flex-wrap: wrap; }
.wq-stem { font-size: 14px; line-height: 1.7; font-weight: 500; }
.wq-opts { margin-top: 11px; display: grid; gap: 6px; }
.wq-opt { font-size: 13px; padding: 7px 11px; border-radius: 8px; background: #f8fafd; color: var(--ink-2); }
.wq-opt.right { background: #e8f8f0; color: #0a7a49; font-weight: 550; }
.wq-opt.wrong { background: #feeceb; color: #b42318; }
.wq-ans { margin-top: 11px; background: #f8fafd; border-radius: 10px; padding: 11px 13px; font-size: 13px; line-height: 1.7; }
.wq-ans b { color: var(--ok); }
.wq-ans .an { color: var(--muted); margin-top: 5px; }

/* 商城 */
.shop-balance {
  display: flex; align-items: center; flex-wrap: wrap; gap: 16px; padding: 18px 22px;
  border: 1px solid #f6dcc7; border-radius: 16px; background: linear-gradient(105deg, #fff2e6, #fffaf6 68%);
}
.shop-balance-icon {
  display: grid; place-items: center; width: 56px; height: 56px; flex: 0 0 auto;
  border-radius: 16px; background: #ffe3cc; color: #9d3f11;
}
.shop-balance-label { font-size: 14px; font-weight: 650; color: #7b4125; }
.shop-balance-value { color: #9d3f11; font-size: 42px; font-weight: 750; line-height: 1.14; font-variant-numeric: tabular-nums; }
.shop-balance-value span { font-size: 14px; font-weight: 550; }
.shop-balance p { margin: 0 0 0 8px; padding-left: 20px; border-left: 1px solid #efcfb5; color: #76523c; font-size: 13px; }
.shop-filters .chip-tabs { flex-wrap: wrap; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 196px), 1fr)); gap: 14px; }
.shop-card {
  display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--sh-1);
  transition: border-color .16s, box-shadow .16s;
}
.shop-card:hover, .shop-card:focus-visible { border-color: var(--brand); box-shadow: var(--sh-2); }
.shop-cover { position: relative; height: 142px; display: flex;
  align-items: center; justify-content: center; color: #4f7cff; }
.shop-cover svg { width: 40px; height: 40px; opacity: .55; }
.shop-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #f7f8fb; }
.shop-body { display: flex; flex: 1; flex-direction: column; padding: 13px 14px 14px; }
.shop-name { font-size: 14px; font-weight: 650; overflow-wrap: anywhere; }
.shop-pt { color: #a94717; font-weight: 700; font-size: 16px; margin-top: 5px; font-variant-numeric: tabular-nums; }
.shop-pt em { font-size: 11px; font-style: normal; color: var(--muted-2); font-weight: 400; margin-left: 5px; }
.shop-stock { padding: 4px 0 12px; }
.shop-act { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.shop-act > span:first-child { display: inline-flex; align-items: center; color: var(--brand-dark); font-size: 12.5px; font-weight: 600; }
.shop-detail {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 24px;
  max-width: 980px; padding: 20px; align-items: start;
}
.shop-detail > .shop-cover { height: auto; aspect-ratio: 1; width: 100%; border-radius: 12px; overflow: hidden; }
.shop-detail > .shop-cover svg { width: 64px; height: 64px; }
.shop-detail-info { padding: 8px 4px 4px 0; }
.shop-detail-info h2 { margin: 10px 0 4px; font-size: 22px; overflow-wrap: anywhere; }
.shop-detail-info .shop-pt { font-size: 32px; }
.shop-detail-info .shop-pt em { font-size: 13px; }
.shop-detail-info .btn { min-width: 132px; }
.shop-detail-stock { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: 13px; margin-top: 6px; }
.shop-detail-stock b { color: var(--ink-2); }
.shop-description { border-top: 1px solid var(--line); padding: 16px 0 20px; margin-top: 18px; color: var(--ink-2); line-height: 1.75; overflow-wrap: anywhere; }
.student-table-scroll { overflow-x: auto; }
.shop-orders { min-width: 420px; }
.shop-orders .shop-order-status { text-align: center; }
.shop-order-time { white-space: nowrap; font-variant-numeric: tabular-nums; }
.shop-order-remark { overflow-wrap: anywhere; margin-top: 3px; }
.shop-order-note { display: flex; align-items: center; gap: 7px; background: #f7f9fd; padding: 9px 12px; margin: 14px 0 0; border-radius: 8px; }
.shop-order-note svg { flex-shrink: 0; }

/* 档案 */
.arch-hero { background: linear-gradient(120deg, #2f62f4, #4f7cff 60%, #6f95ff); color: #fff;
  border-radius: 16px; padding: 20px 22px; display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 16px; }
.arch-hero .av { width: 56px; height: 56px; border-radius: 15px; background: rgba(255, 255, 255, .2);
  display: flex; align-items: center; justify-content: center; font-size: 21px; font-weight: 700; }
.arch-hero h2 { margin: 0; font-size: 19px; }
.arch-hero .meta { font-size: 12.5px; opacity: .88; margin-top: 3px; }
.arch-hero .nums { margin-left: auto; display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; text-align: center; }
.arch-hero .nums b { display: block; font-size: 23px; font-weight: 700; letter-spacing: -.02em; }
.arch-hero .nums span { font-size: 11.5px; opacity: .85; }
.arch-points { padding: 4px 12px 6px; background: rgba(255, 255, 255, .18); border-radius: 10px; white-space: nowrap; }
.arch-points:hover { background: rgba(255, 255, 255, .28); }
.archive-overview { align-items: stretch; }
.archive-metrics, .archive-metrics > .bd { display: flex; flex-direction: column; }
.archive-metrics > .bd, .archive-metrics .me-grid { flex: 1; }
.archive-metrics .me-grid { grid-auto-rows: 1fr; margin-top: 8px; }
.archive-metrics .me-item { display: flex; flex-direction: column; justify-content: center; gap: 3px; }
.archive-metrics .me-item b { font-size: 15px; }
.archive-course-table { min-width: 640px; }
.archive-record-link { color: var(--brand-dark); font-weight: 550; }
.archive-record-link:hover { text-decoration: underline; }
.archive-cert-row .lrow-ic { background: #fff6e0; color: #a35700; }
.archive-cert-row > svg { flex-shrink: 0; color: var(--muted); }
.archive-cert-row:hover { color: var(--brand-dark); }
.archive-detail { max-width: 880px; }
.archive-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 10px; margin: 0; }
.archive-fields > div { min-width: 0; padding: 11px 12px; background: #f7f9fd; border-radius: 9px; }
.archive-fields dt { color: var(--muted); font-size: 12px; }
.archive-fields dd { margin: 3px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.archive-cert-preview { max-width: 680px; margin: 16px auto 0; border: 1px solid var(--line); }

/* 积分统计 */
.point-charts { align-items: stretch; }
.point-trend { display: flex; flex-direction: column; }
.point-trend .point-chart-body { flex: 1; display: flex; align-items: center; }
#ptChart { width: 100%; min-width: 0; }
.point-logs { min-width: 460px; }
.point-rule-value { color: #0a754a; font-weight: 600; }
.point-log-amount { color: #0a754a; font-size: 18px; font-weight: 700; white-space: nowrap; }
.point-log-amount.out { color: #a94717; }

.tb2 { width: 100%; border-collapse: collapse; font-size: 13px; }
.tb2 th { text-align: left; font-weight: 500; color: var(--muted); background: #fafbfe; padding: 9px 12px;
  border-bottom: 1px solid var(--line); font-size: 12px; white-space: nowrap; }
.tb2 td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); }
.tb2 tr:last-child td { border-bottom: none; }
.tb2 td.num, .tb2 th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tb2.point-rules { table-layout: fixed; }
.tb2.point-rules :is(th, td) {
  padding-inline: clamp(6px, 1.2vw, 22px); text-align: center; white-space: normal; overflow-wrap: anywhere;
}

/* 空态 / 加载 */
.empty-box { padding: 48px 20px; text-align: center; color: var(--muted-2); font-size: 13px; }
.empty-box svg { width: 38px; height: 38px; opacity: .4; margin-bottom: 10px; }
.loading { padding: 46px 0; text-align: center; color: var(--muted-2); font-size: 13px; }

/* 认证码等小件 */
.code-in { letter-spacing: .3em; font-size: 20px; text-align: center; font-weight: 600; height: 48px; }

/* 响应式 */
@media (max-width: 1180px) {
  .g2 { grid-template-columns: minmax(0, 1fr); }
  .g2.archive-overview { grid-template-columns: minmax(0, 1fr); }
  .kpi4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .login-art { display: none; }
  .login-panel { flex: 1; }
  .s-side { transform: translateX(-100%); transition: .22s; box-shadow: var(--sh-3); }
  .s-side.open { transform: none; }
  .s-main { margin-left: 0; }
  .s-burger { display: flex; }
  .search { display: none; }
  .s-view { padding: 16px 14px 40px; }
  .exam-answer-head ~ .qbar { margin: 0 -14px -40px; padding-inline: 14px; }
  .s-top { padding: 0 14px; }
  .quick-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .course-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .cc-cover { height: 96px; }
}
@media (max-width: 620px) {
  .kpi4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi-val { font-size: 21px; }
  .page-head { flex-direction: column; align-items: flex-start; }
  .arch-hero { flex-direction: column; align-items: flex-start; }
  .arch-hero .nums { margin-left: 0; }
  .archive-metrics .me-grid { grid-template-columns: minmax(0, 1fr); }
  .shop-balance p { margin: 0; padding: 0; border: 0; flex-basis: 100%; }
  .shop-detail { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 14px; }
  .shop-detail > .shop-cover { aspect-ratio: 4 / 3; }
  .shop-detail-info { padding: 0; }
  .u-txt { display: none; }
}

/* 课程评价 */
.cmt-stars { display: flex; align-items: center; gap: 4px; margin-bottom: 10px; }
.cmt-stars span { font-size: 22px; color: #dde3ee; cursor: pointer; line-height: 1; }
.cmt-stars span.on { color: #f5a623; }
.cmt-stars em { font-style: normal; font-size: 12px; color: var(--muted); margin-left: 6px; }
.cmt-list { margin-top: 14px; border-top: 1px solid var(--line-2); padding-top: 12px;
  display: grid; gap: 13px; }
.cmt-top { display: flex; align-items: center; gap: 7px; font-size: 12.5px; }
.cmt-score { color: #f5a623; font-size: 12px; letter-spacing: 1px; }
.cmt-body { font-size: 13px; line-height: 1.7; color: var(--ink-2); margin-top: 4px; }
.cmt-reply { margin-top: 7px; padding: 8px 10px; background: #f4f7ff; border-radius: 9px;
  font-size: 12.5px; line-height: 1.7; color: var(--ink-2); }
.cmt-reply b { display: block; font-size: 11.5px; color: var(--brand); margin-bottom: 2px; }

/* ===== 工作台横幅（与管理端同款，p103） ===== */
.hero {
  border-radius: var(--r-lg); padding: 20px 26px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(700px 300px at 88% -20%, rgba(124,59,255,.55), transparent 60%),
              linear-gradient(115deg, #1c3fbd, #2f62f4 45%, #4f8bff);
  box-shadow: 0 18px 40px -26px rgba(47,98,244,.95); margin-bottom: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.hero-main { min-width: 0; flex: 1 1 auto; position: relative; z-index: 2; align-self: stretch;
  display: flex; flex-direction: column; justify-content: center; }
.hero::after {
  content: ""; position: absolute; right: -60px; bottom: -110px; width: 320px; height: 320px;
  border-radius: 50%; border: 40px solid rgba(255,255,255,.07);
}
.hero h3 { margin: 0 0 6px; font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.hero p { margin: 0; color: rgba(255,255,255,.72); font-size: 12.5px; }
.hero .hero-sub { margin-top: 9px; position: relative; z-index: 2; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.hero-sub #heroClock { font-variant-numeric: tabular-nums; color: #fff; font-weight: 600; letter-spacing: .02em; }
.hero-sep { color: rgba(255,255,255,.34); font-style: normal; }
.hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 16px;
  max-width: 660px; margin-top: 15px; position: relative; z-index: 2; }
.hero-stats div { display: flex; flex-direction: column; cursor: pointer; }
.hero-stats div.nogoto { cursor: default; }
.hero-stats b { font-size: 22px; font-weight: 650; letter-spacing: -.02em; }
.hero-stats span { font-size: 11.5px; color: rgba(255,255,255,.62); }
.hero-act { display: none; justify-content: flex-end; position: relative; z-index: 3; }
.hero-act .btn { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.24); color: #fff; backdrop-filter: blur(4px); }
.hero-act .btn:hover { background: rgba(255,255,255,.26); }
.msg-pill { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px 0 6px;
  border-radius: 11px; border: 1px solid rgba(255,255,255,.32); background: rgba(255,255,255,.16);
  color: #fff; font-size: 11px; font-family: inherit; cursor: pointer; transition: .16s; }
.msg-pill:hover { background: rgba(255,255,255,.28); }
.msg-pill svg { opacity: .9; }
.msg-pill i { font-style: normal; font-size: 10.5px; font-weight: 700; padding: 0 4px;
  border-radius: 8px; background: #ff5b52; line-height: 15px; }
.msg-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px;
  height: 18px; padding: 0 5px; margin-left: 2px; border-radius: 9px; background: #ff5b52;
  color: #fff; font-size: 11px; font-weight: 700; line-height: 1; }
.hero-side { flex: 0 0 322px; width: 322px; position: relative; z-index: 3;
  display: flex; flex-direction: column; gap: 10px; }
.hero-me { position: relative; z-index: 2; flex: 0 0 auto; width: auto;
  background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.2);
  border-radius: 12px; padding: 10px 13px 11px; backdrop-filter: blur(6px); }
.hero-me-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; gap: 10px; }
.hero-me-h span { font-size: 11px; letter-spacing: .5px; color: rgba(255,255,255,.66); white-space: nowrap; }
.hero-me-act { display: flex; align-items: center; gap: 10px; }
.hero-me-h a { font-size: 11.5px; color: #fff; text-decoration: none; opacity: .9;
  border-bottom: 1px dashed rgba(255,255,255,.45); padding-bottom: 1px; cursor: pointer; }
.hero-me-h a:hover { opacity: 1; }
.hero-me-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 14px; }
.hero-me-grid div { min-width: 0; }
.hero-me-grid span { display: block; font-size: 10.5px; color: rgba(255,255,255,.58); margin-bottom: 2px; }
.hero-me-grid b { display: block; font-size: 12.5px; font-weight: 600; color: #fff; letter-spacing: .01em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1180px) {
  .hero-me { display: none; }
  .hero-side { flex: 0 0 auto; width: auto; }
  .hero-act { display: flex; }
}

/* ===== 工作台新闻轮播（与管理端同款，p103） ===== */
.news-card { margin-bottom: 16px; overflow: hidden; }
.news-card .card-head { padding-bottom: 12px; }
.nc-tools { display: flex; align-items: center; gap: 8px; }
.nc-idx { font-size: 12px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.nc-arrow { width: 26px; height: 26px; padding: 0; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; color: var(--muted); display: grid; place-items: center; cursor: pointer; transition: .16s; }
.nc-arrow:hover { color: var(--brand); border-color: var(--brand-100); background: var(--brand-50); }
.nc-arrow svg { width: 14px; height: 14px; }
.nc-view { overflow: hidden; }
.nc-track { display: flex; transition: transform .5s cubic-bezier(.22,.61,.36,1); }
.nc-slide { flex: 0 0 100%; display: flex; gap: 20px; padding: 2px 20px 14px; text-decoration: none; color: inherit; cursor: pointer; }
.nc-deco { width: 268px; height: 150px; flex: 0 0 268px; border-radius: 12px; padding: 14px 16px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(135deg, #2f62f4, #5b8bff 58%, #8fb3ff);
  box-shadow: 0 10px 22px -14px rgba(47,98,244,.9); }
.nc-deco b { font-size: 25px; font-weight: 700; letter-spacing: -.02em; color: rgba(255,255,255,.5); line-height: 1; }
.nc-pic { width: 268px; height: 150px; flex: 0 0 268px; border-radius: 12px; overflow: hidden;
  position: relative; background: #e8eefc; box-shadow: 0 10px 22px -16px rgba(15,26,50,.55); }
.nc-pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.nc-slide:hover .nc-pic img { transform: scale(1.04); }
.nc-pic .nc-cat { position: absolute; left: 8px; top: 8px;
  background: rgba(15,26,50,.55); backdrop-filter: blur(4px); }
.nc-cat { align-self: flex-start; font-size: 11.5px; color: #fff; background: rgba(255,255,255,.22);
  border-radius: 6px; padding: 3px 7px; }
.nc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; padding-top: 2px; }
.nc-title { font-size: 16.5px; font-weight: 600; color: var(--ink); letter-spacing: -.01em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: .16s; }
.nc-sum { margin: 9px 0 0; font-size: 13px; line-height: 1.7; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 45px; }
.nc-meta { margin-top: auto; display: flex; align-items: center; gap: 14px;
  font-size: 11.5px; color: var(--muted-2); }
.nc-go { margin-left: auto; color: var(--brand); font-weight: 500; }
.nc-slide:hover .nc-title { color: var(--brand); }
.nc-dots { display: flex; justify-content: center; gap: 6px; padding: 0 20px 14px; }
.nc-dots i { width: 16px; height: 4px; border-radius: 3px; background: var(--line);
  cursor: pointer; transition: .2s; }
.nc-dots i.on { width: 26px; background: var(--brand); }

/* ===== 资讯详情弹窗（p103，学员端文章页版式） ===== */
.sn-page { padding: 2px 4px 0; }
.sn-crumb { font-size: 12px; color: var(--muted-2); margin-bottom: 12px; }
.sn-crumb i { font-style: normal; margin: 0 6px; color: #cbd3e0; }
.sn-h1 { margin: 0 0 12px; font-size: 23px; line-height: 1.42; letter-spacing: -.01em;
  font-weight: 650; color: var(--ink); }
.sn-meta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted);
  margin-bottom: 16px; }
.sn-meta b { font-weight: 600; color: var(--ink-2); }
.sn-meta i { font-style: normal; color: #cbd3e0; }
.sn-cover { border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
.sn-cover img { width: 100%; max-height: 320px; object-fit: cover; display: block; }
.sn-quote { background: var(--brand-50); border-left: 3px solid var(--brand); border-radius: 0 10px 10px 0;
  padding: 10px 14px; font-size: 13.5px; line-height: 1.8; color: var(--ink-2); margin-bottom: 16px; }
.sn-body { font-size: 14px; line-height: 1.9; color: var(--ink-2); }
.sn-body p { margin: 10px 0; }
.sn-body img { max-width: 100%; border-radius: 10px; }
.sn-body h1, .sn-body h2, .sn-body h3 { color: var(--ink); margin: 18px 0 8px; }
.sn-body ul, .sn-body ol { padding-left: 22px; margin: 10px 0; }
.sn-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-top: 16px; }
.sn-gallery img { width: 100%; height: 130px; object-fit: cover; border-radius: 10px; display: block; }
.sn-files { margin-top: 16px; display: grid; gap: 8px; }
.sn-file { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 10px; font-size: 13px; color: var(--brand); text-decoration: none; }
.sn-file:hover { background: var(--brand-50); }
.sn-end { text-align: center; font-size: 11.5px; color: var(--muted-2); margin-top: 22px; }

/* ===== 工作台统计卡（p104，与管理端同款，数据为个人口径） ===== */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r, 14px); padding: 15px 17px;
  position: relative; overflow: hidden; transition: .18s;
}
.stat:hover { box-shadow: 0 10px 24px -18px rgba(15,26,50,.4); transform: translateY(-1px); }
.stat-detail::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.stat-detail:focus-visible::after { box-shadow: inset 0 0 0 2px var(--brand); }
.stat-shortcut { position: relative; color: #0b52c2; text-decoration: underline; font-weight: 600; }
.stat .s-label { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.stat .s-label svg { width: 14px; height: 14px; }
.stat .s-val { font-size: 27px; font-weight: 650; letter-spacing: -.03em; margin: 6px 0 2px; line-height: 1.15; }
.stat .s-foot { font-size: 11.5px; color: var(--muted-2); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.stat .s-icon {
  position: absolute; right: 14px; top: 14px; width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; background: var(--brand-50); color: var(--brand);
}
.stat .s-icon svg { width: 17px; height: 17px; }
@media (max-width: 900px) { .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ===== 线下培训（p108） ===== */
/* 待参加醒目红标：实底红胶囊，区别于普通浅色 tag */
.tag.hot { background: #e5484d; color: #fff; font-weight: 600; }
/* 详情页内嵌的完整证书（SVG 自适应宽度），点击放大 */
.cert-embed { border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  cursor: zoom-in; background: #fff; transition: .18s; }
.cert-embed:hover { box-shadow: 0 10px 24px -18px rgba(15, 26, 50, .45); }
.cert-embed svg, .cert-pv-wrap svg { display: block; width: 100%; height: auto; }
.cert-pv-wrap { background: #fff; border-radius: 12px; overflow: hidden; }
