/* ============================================================
   帮研堂 · 考研政治刷题（网页版）
   主题变量沿用小程序 app.wxss 的语义命名，亮/暗两套
   ============================================================ */

:root,
html.theme-light {
  --c-bg: #F4F5F7;
  --c-surface: #FFFFFF;
  --c-surface-2: #F7F8FA;
  --c-fill: #F2F3F5;
  --c-border: #EEF0F3;
  --c-border-2: #E5E6EB;
  --c-text: #1D2129;
  --c-text-2: #4E5969;
  --c-text-3: #86909C;
  --c-text-4: #A9AEB8;
  --c-text-5: #C9CDD4;
  --c-brand: #C93B4B;
  --c-brand-deep: #A32A3B;
  --c-brand-soft: #FDEDEF;
  --c-brand-line: #F7D3D8;
  --c-ok: #12A150;
  --c-ok-soft: #E9F7EF;
  --c-bad: #E5484D;
  --c-bad-soft: #FDECEC;
  --c-bad-line: #FFD3D3;
  --c-info: #2F5DA8;
  --c-info-soft: #EAF1FD;
  --c-warn: #C97B1E;
  --c-warn-soft: #FDF1E7;
  --c-shadow: rgba(29, 33, 41, 0.05);
  --c-shadow-2: rgba(29, 33, 41, 0.10);
  --c-on-brand: #FFFFFF;
  --chart-line: #E5E6EB;
}

html.theme-dark {
  --c-bg: #121215;
  --c-surface: #1C1C20;
  --c-surface-2: #232328;
  --c-fill: #2A2A30;
  --c-border: #2E2E35;
  --c-border-2: #3A3A42;
  --c-text: #F2F3F5;
  --c-text-2: #C9CDD4;
  --c-text-3: #9096A2;
  --c-text-4: #767C88;
  --c-text-5: #5A6070;
  --c-brand: #E8596B;
  --c-brand-deep: #C93B4B;
  --c-brand-soft: #3A2024;
  --c-brand-line: #5A2E35;
  --c-ok: #3ED07E;
  --c-ok-soft: #14301F;
  --c-bad: #FF6B70;
  --c-bad-soft: #3A1B1D;
  --c-bad-line: #5A2A2E;
  --c-info: #6E9BE8;
  --c-info-soft: #1B2740;
  --c-warn: #E8A33D;
  --c-warn-soft: #33260F;
  --c-shadow: rgba(0, 0, 0, 0.35);
  --c-shadow-2: rgba(0, 0, 0, 0.5);
  --c-on-brand: #FFFFFF;
  --chart-line: #2E2E35;
}

/* 刷题字号 */
html.fs-small { --fs-q: 16px; --fs-opt: 14.5px; --lh-q: 1.72; }
html.fs-normal { --fs-q: 17.5px; --fs-opt: 15.5px; --lh-q: 1.78; }
html.fs-large { --fs-q: 19.5px; --fs-opt: 17.5px; --lh-q: 1.85; }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--c-bg);
  color: var(--c-text);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

.app {
  max-width: 560px;
  min-height: 100vh;
  margin: 0 auto;
  padding-bottom: 40px;
  position: relative;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

/* ================= 顶部导航（内页） ================= */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 8px;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  backdrop-filter: saturate(180%) blur(12px);
}
.topbar-back {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--c-text-2);
  cursor: pointer;
  border-radius: 10px;
}
.topbar-back:active { background: var(--c-fill); }
.topbar-title {
  flex: 1;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  padding: 0 4px;
}
.topbar-right { min-width: 40px; text-align: right; padding-right: 8px; font-size: 13px; color: var(--c-text-3); }

/* ================= 通用块 ================= */
.block-title {
  display: flex; align-items: center; justify-content: space-between;
  margin: 20px 16px 10px;
}
.block-title .bt-main {
  display: flex; align-items: center;
  font-size: 16px; font-weight: 600;
}
.block-title .bt-bar {
  width: 4px; height: 16px; border-radius: 2px;
  background: var(--c-brand); margin-right: 8px;
}
.block-title .bt-more { font-size: 13px; color: var(--c-text-3); cursor: pointer; }

.card {
  background: var(--c-surface);
  border-radius: 14px;
  padding: 16px;
  margin: 0 16px 14px;
  box-shadow: 0 1px 8px var(--c-shadow);
}
.card-flat { box-shadow: none; border: 1px solid var(--c-border); }

.cell-group {
  background: var(--c-surface);
  border-radius: 14px;
  margin: 0 16px 14px;
  overflow: hidden;
  box-shadow: 0 1px 8px var(--c-shadow);
}
.cell {
  display: flex; align-items: center;
  padding: 15px 16px;
  position: relative;
  cursor: pointer;
}
.cell + .cell::before {
  content: ''; position: absolute; left: 16px; right: 0; top: 0;
  height: 1px; background: var(--c-fill);
}
.cell:active { background: var(--c-surface-2); }
.cell-icon {
  width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #FFFFFF; font-size: 14px; font-weight: 600;
  margin-right: 12px; flex-shrink: 0;
}
.cell-body { flex: 1; min-width: 0; }
.cell-name { font-size: 15px; font-weight: 500; }
.cell-desc { font-size: 12.5px; color: var(--c-text-3); margin-top: 3px; line-height: 1.4; }
.cell-tail { font-size: 13.5px; color: var(--c-text-3); margin-left: 8px; }
.arrow { color: var(--c-text-5); font-size: 17px; margin-left: 6px; }

.btn {
  display: block;
  height: 46px; line-height: 46px;
  border-radius: 23px;
  font-size: 15.5px;
  text-align: center;
  border: none;
  cursor: pointer;
  padding: 0 20px;
  width: 100%;
  transition: opacity .15s;
}
.btn:active { opacity: .82; }
.btn-primary { background: var(--c-brand); color: #fff; font-weight: 600; }
.btn-primary-plain { background: var(--c-brand-soft); color: var(--c-brand); font-weight: 600; }
.btn-ghost { background: var(--c-surface); color: var(--c-text-2); border: 1px solid var(--c-border-2); }
.btn-sm { height: 36px; line-height: 36px; font-size: 13.5px; border-radius: 18px; }
.btn[disabled], .btn.disabled { opacity: .45; pointer-events: none; }

.tag {
  display: inline-block; padding: 2px 7px; border-radius: 5px;
  font-size: 11.5px; line-height: 18px;
}
.tag-single { background: var(--c-info-soft); color: var(--c-info); }
.tag-multi { background: var(--c-warn-soft); color: var(--c-warn); }
.tag-green { background: var(--c-ok-soft); color: var(--c-ok); }
.tag-red { background: var(--c-bad-soft); color: var(--c-bad); }
.tag-gray { background: var(--c-fill); color: var(--c-text-3); }

.empty { padding: 64px 24px; text-align: center; }
.empty-title { font-size: 15px; color: var(--c-text-2); margin-bottom: 6px; }
.empty-desc { font-size: 13px; color: var(--c-text-4); line-height: 1.7; }
.empty-icon { font-size: 40px; margin-bottom: 12px; opacity: .5; }

.row { display: flex; align-items: center; }
.row-between { display: flex; align-items: center; justify-content: space-between; }
.flex1 { flex: 1; min-width: 0; }
.ellipsis { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.text-sub { color: var(--c-text-3); font-size: 13px; }
.text-primary { color: var(--c-brand); }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; }
.center { text-align: center; }

.progress { height: 6px; border-radius: 3px; background: var(--c-fill); overflow: hidden; }
.progress-inner { height: 100%; border-radius: 3px; background: var(--c-brand); transition: width .25s; }

/* ================= 首页 hero ================= */
.hero {
  background: linear-gradient(150deg, #C93B4B 0%, #A32A3B 62%, #8A2130 100%);
  padding: 28px 20px 30px;
  color: #fff;
  border-radius: 0 0 22px 22px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; width: 240px; height: 240px;
  right: -90px; top: -110px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
}
.hero-head { display: flex; align-items: flex-start; justify-content: space-between; position: relative; z-index: 1; }
.hero-title { font-size: 27px; font-weight: 700; letter-spacing: 1px; }
.hero-sub { font-size: 13px; opacity: .82; margin-top: 6px; }
.hero-count {
  text-align: center;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 8px 14px;
  cursor: pointer;
  flex-shrink: 0;
}
.hero-count-num { font-size: 24px; font-weight: 700; line-height: 1.1; }
.hero-count-label { font-size: 11px; opacity: .82; margin-top: 2px; }
.hero-stats {
  display: flex; margin-top: 22px; position: relative; z-index: 1;
}
.hero-stat { flex: 1; text-align: center; }
.hero-stat + .hero-stat { border-left: 1px solid rgba(255, 255, 255, 0.18); }
.hero-stat-num { font-size: 20px; font-weight: 700; }
.hero-stat-label { font-size: 11.5px; opacity: .78; margin-top: 3px; }

/* ================= 刷题中心 2×2 ================= */
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 16px 8px;
}
.entry {
  background: var(--c-surface);
  border-radius: 14px;
  padding: 16px 14px;
  box-shadow: 0 1px 8px var(--c-shadow);
  cursor: pointer;
  transition: transform .12s;
}
.entry:active { transform: scale(.975); }
.entry-icon {
  width: 38px; height: 38px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px; font-weight: 700;
  margin-bottom: 10px;
}
.entry-name { font-size: 15px; font-weight: 600; }
.entry-desc { font-size: 12px; color: var(--c-text-3); margin-top: 4px; line-height: 1.45; }

.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0 16px 8px;
}
.mini-entry {
  background: var(--c-surface);
  border-radius: 14px;
  padding: 16px 8px;
  text-align: center;
  box-shadow: 0 1px 8px var(--c-shadow);
  cursor: pointer;
}
.mini-entry:active { transform: scale(.975); }
.mini-entry-icon { font-size: 20px; margin-bottom: 6px; }
.mini-entry-name { font-size: 13.5px; font-weight: 500; }
.mini-entry-desc { font-size: 11px; color: var(--c-text-4); margin-top: 3px; }

/* ================= 套卷卡 ================= */
.paper {
  display: flex; align-items: center;
  background: var(--c-surface);
  border-radius: 14px;
  padding: 16px;
  margin: 0 16px 12px;
  box-shadow: 0 1px 8px var(--c-shadow);
  cursor: pointer;
}
.paper:active { background: var(--c-surface-2); }
.paper-cover {
  width: 46px; height: 58px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 15px; font-weight: 700;
  flex-shrink: 0; margin-right: 14px;
  writing-mode: vertical-rl;
  letter-spacing: 1px;
}
.paper-body { flex: 1; min-width: 0; }
.paper-name { font-size: 15.5px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.paper-desc { font-size: 12.5px; color: var(--c-text-3); margin-top: 5px; line-height: 1.5; }
.paper-meta { font-size: 12px; color: var(--c-text-4); margin-top: 6px; }

/* ================= 答题页 ================= */
.quiz-top {
  position: sticky; top: 0; z-index: 20;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  padding: 10px 16px 12px;
}
.quiz-top-row { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--c-text-3); }
.quiz-top-progress { margin-top: 6px; }
.q-card {
  background: var(--c-surface);
  border-radius: 14px;
  padding: 18px 16px;
  margin: 14px 16px;
  box-shadow: 0 1px 8px var(--c-shadow);
}
.q-idx { font-size: 12.5px; color: var(--c-text-3); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.q-content {
  font-size: var(--fs-q);
  line-height: var(--lh-q);
  font-weight: 500;
  margin-bottom: 16px;
}
.opt {
  display: flex; align-items: flex-start;
  padding: 12px 14px;
  border: 1.5px solid var(--c-border);
  border-radius: 12px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: background .12s, border-color .12s;
  background: var(--c-surface);
}
.opt:active { background: var(--c-surface-2); }
.opt-key {
  width: 24px; height: 24px; border-radius: 50%;
  border: 1.5px solid var(--c-border-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 600; color: var(--c-text-2);
  margin-right: 11px; flex-shrink: 0; margin-top: 1px;
  transition: all .12s;
}
.opt-text { flex: 1; font-size: var(--fs-opt); line-height: 1.62; }
.opt-on { border-color: var(--c-brand); background: var(--c-brand-soft); }
.opt-on .opt-key { background: var(--c-brand); border-color: var(--c-brand); color: #fff; }
.opt-right { border-color: var(--c-ok); background: var(--c-ok-soft); }
.opt-right .opt-key { background: var(--c-ok); border-color: var(--c-ok); color: #fff; }
.opt-wrong { border-color: var(--c-bad); background: var(--c-bad-soft); }
.opt-wrong .opt-key { background: var(--c-bad); border-color: var(--c-bad); color: #fff; }

.q-tools { display: flex; justify-content: flex-end; margin-top: 4px; }
.q-fav {
  font-size: 13px; color: var(--c-text-3);
  padding: 6px 12px; border-radius: 999px; background: var(--c-fill);
  cursor: pointer; user-select: none;
}
.q-fav.on { background: var(--c-brand-soft); color: var(--c-brand); font-weight: 600; }

.analysis {
  margin-top: 6px;
  padding: 14px;
  border-radius: 12px;
  background: var(--c-surface-2);
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-text-2);
}
.analysis-line { margin-top: 6px; }
.analysis-line b { color: var(--c-text); font-weight: 600; }
.analysis-ok { color: var(--c-ok); font-weight: 600; }
.analysis-bad { color: var(--c-bad); font-weight: 600; }

/* 底部操作条 */
.footer-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  background: var(--c-surface);
  border-top: 1px solid var(--c-fill);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 10px;
  max-width: 560px; margin: 0 auto;
}
.footer-space { height: 78px; }
.cp-sheet {
  flex-shrink: 0;
  padding: 0 16px; height: 46px; line-height: 46px;
  border-radius: 23px; background: var(--c-fill);
  color: var(--c-text-2); font-size: 14px; cursor: pointer;
}
.cp-sheet:active { opacity: .8; }

/* 答题卡面板 */
.sheet-mask {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(0, 0, 0, 0.42);
  display: flex; align-items: flex-end;
  animation: fadeIn .18s ease;
}
.sheet {
  width: 100%; max-width: 560px; margin: 0 auto;
  background: var(--c-surface);
  border-radius: 20px 20px 0 0;
  padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
  max-height: 74vh; display: flex; flex-direction: column;
  animation: slideUp .22s cubic-bezier(.3,.9,.4,1);
}
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sheet-title { font-size: 16px; font-weight: 600; }
.sheet-close {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-fill); color: var(--c-text-3); font-size: 18px; cursor: pointer;
}
.sheet-body { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.sheet-legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--c-text-3); margin-bottom: 14px; flex-wrap: wrap; }
.sheet-legend span { display: flex; align-items: center; gap: 6px; }
.dot { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--c-border-2); display: inline-block; }
.dot-done { background: var(--c-brand); border-color: var(--c-brand); }
.dot-right { background: var(--c-ok); border-color: var(--c-ok); }
.dot-wrong { background: var(--c-bad); border-color: var(--c-bad); }
.sheet-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.sheet-no {
  height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600;
  background: var(--c-fill); color: var(--c-text-2);
  border: 1.5px solid transparent; cursor: pointer;
}
.sheet-no.done { background: var(--c-brand-soft); color: var(--c-brand); border-color: var(--c-brand-line); }
.sheet-no.right { background: var(--c-ok-soft); color: var(--c-ok); border-color: var(--c-ok); }
.sheet-no.wrong { background: var(--c-bad-soft); color: var(--c-bad); border-color: var(--c-bad); }
.sheet-no.cur { box-shadow: 0 0 0 2px var(--c-brand); }
.sheet-overview { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; margin-bottom: 16px; }
.sheet-ov-num { font-size: 18px; font-weight: 700; }
.sheet-ov-label { font-size: 11.5px; color: var(--c-text-3); margin-top: 2px; }
.sheet-tip { margin-top: 16px; font-size: 12px; color: var(--c-text-4); line-height: 1.65; }

/* ================= 结果页 ================= */
.res-hero {
  background: linear-gradient(150deg, #C93B4B 0%, #A32A3B 100%);
  color: #fff; padding: 30px 20px 26px; text-align: center;
  border-radius: 0 0 22px 22px;
}
.res-score { font-size: 44px; font-weight: 700; line-height: 1; }
.res-score small { font-size: 16px; font-weight: 400; opacity: .8; }
.res-title { font-size: 15px; opacity: .9; margin-bottom: 14px; }
.res-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 20px; }
.res-item-num { font-size: 18px; font-weight: 700; }
.res-item-label { font-size: 11.5px; opacity: .8; margin-top: 3px; }
.res-list { margin: 16px 16px 0; }
.res-q {
  background: var(--c-surface); border-radius: 14px; padding: 16px;
  margin-bottom: 12px; box-shadow: 0 1px 8px var(--c-shadow);
}
.res-q-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: 12.5px; color: var(--c-text-3); }
.res-q-content { font-size: var(--fs-q); line-height: var(--lh-q); margin-bottom: 12px; font-weight: 500; }
.res-opt {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 9px 12px; border-radius: 10px; margin-bottom: 7px;
  font-size: var(--fs-opt); line-height: 1.6;
  background: var(--c-surface-2); color: var(--c-text-2);
}
.res-opt.ok { background: var(--c-ok-soft); color: var(--c-ok); font-weight: 500; }
.res-opt.no { background: var(--c-bad-soft); color: var(--c-bad); }
.res-opt-key { font-weight: 700; flex-shrink: 0; }

/* ================= 列表项（错题 / 收藏） ================= */
.lt-item {
  background: var(--c-surface); border-radius: 14px; padding: 16px;
  margin: 0 16px 12px; box-shadow: 0 1px 8px var(--c-shadow);
}
.lt-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 12px; color: var(--c-text-3); }
.lt-content { font-size: 15.5px; line-height: 1.65; font-weight: 500; }
.lt-right { color: var(--c-ok); font-weight: 600; }
.lt-wrong { color: var(--c-bad); font-weight: 600; }
.lt-actions { display: flex; gap: 10px; margin-top: 12px; }
.lt-actions .btn { flex: 1; }

/* ================= 个人中心 ================= */
.me-hero {
  background: linear-gradient(150deg, #C93B4B 0%, #A32A3B 100%);
  color: #fff; padding: 26px 20px 24px;
  border-radius: 0 0 22px 22px;
  display: flex; align-items: center;
}
.me-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700; margin-right: 14px; flex-shrink: 0;
}
.me-name { font-size: 19px; font-weight: 700; }
.me-sub { font-size: 12.5px; opacity: .82; margin-top: 5px; }

.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.stat-num { font-size: 22px; font-weight: 700; color: var(--c-text); }
.stat-num.brand { color: var(--c-brand); }
.stat-num.ok { color: var(--c-ok); }
.stat-label { font-size: 12px; color: var(--c-text-3); margin-top: 4px; }

/* 开关 */
.switch {
  width: 46px; height: 27px; border-radius: 14px;
  background: var(--c-border-2); position: relative;
  transition: background .2s; flex-shrink: 0; margin-left: 10px;
  cursor: pointer;
}
.switch::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 21px; height: 21px; border-radius: 50%;
  background: #fff; transition: transform .2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}
.switch.on { background: var(--c-brand); }
.switch.on::after { transform: translateX(19px); }

/* 表单 */
.field { margin: 0 16px 14px; }
.field-label { font-size: 13px; color: var(--c-text-3); margin-bottom: 7px; }
.input, .textarea, select.input {
  width: 100%; border: 1.5px solid var(--c-border-2);
  background: var(--c-surface); color: var(--c-text);
  border-radius: 12px; padding: 12px 14px; font-size: 15px;
  font-family: inherit; outline: none;
  transition: border-color .15s;
}
.input:focus, .textarea:focus { border-color: var(--c-brand); }
.textarea { min-height: 130px; resize: vertical; line-height: 1.7; }
.input::placeholder, .textarea::placeholder { color: var(--c-text-5); }
.cnt { text-align: right; font-size: 12px; color: var(--c-text-4); margin-top: 5px; }

.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cat-item {
  padding: 13px; border-radius: 12px; text-align: center;
  border: 1.5px solid var(--c-border-2); background: var(--c-surface);
  font-size: 14px; cursor: pointer; color: var(--c-text-2);
}
.cat-item.on { border-color: var(--c-brand); background: var(--c-brand-soft); color: var(--c-brand); font-weight: 600; }

/* 推广中心 */
.invite-card {
  margin: 0 16px 14px; border-radius: 16px; padding: 22px 18px;
  background: linear-gradient(135deg, var(--c-brand) 0%, var(--c-brand-deep) 100%);
  color: #fff; text-align: center;
}
.invite-label { font-size: 12.5px; opacity: .85; }
.invite-code { font-size: 32px; font-weight: 700; letter-spacing: 4px; margin: 10px 0 4px; }
.invite-tip { font-size: 12px; opacity: .8; line-height: 1.6; }
.invite-btns { display: flex; gap: 10px; margin-top: 16px; }
.invite-btn {
  flex: 1; height: 40px; line-height: 40px; border-radius: 20px;
  background: rgba(255, 255, 255, 0.2); color: #fff; font-size: 14px;
  text-align: center; cursor: pointer; font-weight: 500;
}
.invite-btn:active { opacity: .8; }
.invite-btn.solid { background: #fff; color: var(--c-brand); }

.board-item { display: flex; align-items: center; padding: 12px 0; }
.board-item + .board-item { border-top: 1px solid var(--c-fill); }
.board-rank {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 700; margin-right: 12px;
  background: var(--c-fill); color: var(--c-text-3);
}
.board-rank.top1 { background: #F6C544; color: #fff; }
.board-rank.top2 { background: #B9C2CC; color: #fff; }
.board-rank.top3 { background: #D9A06A; color: #fff; }
.board-name { flex: 1; font-size: 14.5px; }
.board-name.me { color: var(--c-brand); font-weight: 600; }
.board-count { font-size: 14px; font-weight: 600; color: var(--c-brand); }

/* PK */
.pk-code {
  margin: 0 16px 14px; border-radius: 16px; padding: 20px 18px;
  background: linear-gradient(135deg, var(--c-brand) 0%, var(--c-brand-deep) 100%);
  color: #fff; text-align: center;
}
.pk-code-val { font-size: 30px; font-weight: 700; letter-spacing: 5px; margin: 8px 0; }
.pk-vs { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 6px 0; }
.pk-side { flex: 1; text-align: center; }
.pk-side-name { font-size: 13px; color: var(--c-text-3); margin-bottom: 6px; }
.pk-side-score { font-size: 30px; font-weight: 700; }
.pk-vs-mid { font-size: 15px; font-weight: 700; color: var(--c-text-4); }
.pk-side.win .pk-side-score { color: var(--c-brand); }
.pk-side.lose .pk-side-score { color: var(--c-text-3); }

/* ================= 登录 ================= */
.login-wrap { padding: 40px 24px; max-width: 380px; margin: 0 auto; }
.login-logo {
  width: 68px; height: 68px; border-radius: 20px; margin: 10px auto 18px;
  background: linear-gradient(135deg, var(--c-brand), var(--c-brand-deep));
  color: #fff; font-size: 28px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.login-title { font-size: 22px; font-weight: 700; text-align: center; }
.login-sub { font-size: 13.5px; color: var(--c-text-3); text-align: center; margin: 8px 0 26px; line-height: 1.6; }
.tabs { display: flex; background: var(--c-fill); border-radius: 12px; padding: 3px; margin-bottom: 20px; }
.tab { flex: 1; text-align: center; padding: 9px; border-radius: 10px; font-size: 14px; color: var(--c-text-3); cursor: pointer; }
.tab.on { background: var(--c-surface); color: var(--c-text); font-weight: 600; box-shadow: 0 1px 4px var(--c-shadow); }
.login-err { color: var(--c-bad); font-size: 13px; margin: -6px 0 12px; }

/* ================= 提示 ================= */
/* 显式 display 会盖过 hidden 属性，这里必须补回来 */
[hidden] { display: none !important; }

.toast {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.82); color: #fff;
  padding: 11px 20px; border-radius: 10px; font-size: 14px;
  z-index: 90; max-width: 78vw; text-align: center; line-height: 1.5;
  animation: fadeIn .16s ease;
}
.dialog-mask {
  position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, 0.42);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  animation: fadeIn .16s ease;
}
.dialog {
  background: var(--c-surface); border-radius: 16px; padding: 22px 20px 16px;
  width: 100%; max-width: 320px; animation: popIn .18s ease;
}
.dialog-title { font-size: 16.5px; font-weight: 600; text-align: center; }
.dialog-body { font-size: 14px; color: var(--c-text-2); line-height: 1.7; margin-top: 10px; text-align: center; white-space: pre-wrap; }
.dialog-btns { display: flex; gap: 10px; margin-top: 20px; }
.dialog-btns .btn { height: 42px; line-height: 42px; font-size: 15px; }

.loading { padding: 60px 20px; text-align: center; color: var(--c-text-4); font-size: 14px; }
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes slideUp { from { transform: translateY(100%) } to { transform: translateY(0) } }
@keyframes popIn { from { transform: scale(.94); opacity: 0 } to { transform: scale(1); opacity: 1 } }

@media (min-width: 600px) {
  body { background: #E9EAEE; }
  html.theme-dark body { background: #0B0B0D; }
  .app { background: var(--c-bg); box-shadow: 0 0 40px rgba(0, 0, 0, .08); }
  .footer-bar { position: fixed; }
}

/* ============================================================
   题库后台（#/admin）
   ============================================================ */

.adm-entry {
  color: var(--c-text-4); text-decoration: underline; text-underline-offset: 3px;
  cursor: pointer; font-size: 12px;
}
.adm-top-act { font-size: 13.5px; color: var(--c-text-3); cursor: pointer; }
.adm-wrap { padding: 12px 16px 32px; }

.adm-login { max-width: 340px; margin: 40px auto 0; text-align: center; }
.adm-login .login-logo { margin: 0 auto 12px; }

.adm-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  background: var(--c-surface); border-radius: 14px; padding: 16px 8px;
  box-shadow: 0 1px 3px var(--c-shadow); text-align: center;
}
.adm-stat-num { font-size: 20px; font-weight: 700; color: var(--c-text); font-variant-numeric: tabular-nums; }
.adm-stat-num.brand { color: var(--c-brand); }
.adm-stat-num.ok { color: var(--c-ok); }
.adm-stat-num.info { color: var(--c-info); }
.adm-stat-label { font-size: 12px; color: var(--c-text-3); margin-top: 4px; }

.adm-tip {
  margin-top: 10px; padding: 10px 12px; border-radius: 10px;
  background: var(--c-warn-soft); color: var(--c-warn); font-size: 12.5px; line-height: 1.6;
}
.adm-tabs { margin: 14px 0 10px; }

/* 云库为准提示条（题库后台顶部常驻） */
.adm-note {
  margin-top: 10px; padding: 10px 12px; border-radius: 10px;
  background: var(--c-info-soft, #EAF1FD); color: var(--c-info, #2F5DA8);
  font-size: 12.5px; line-height: 1.65;
}
.adm-note b { font-weight: 600; }

.adm-toolbar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 10px 0; font-size: 13px;
}
.adm-toolbar-wrap { justify-content: flex-start; }
.adm-toolbar-wrap .adm-select { width: auto; max-width: 200px; flex-shrink: 0; }
.adm-toolbar-wrap .adm-search { flex: 0 1 200px; min-width: 140px; max-width: 220px; }
.adm-select { width: auto; max-width: 46%; height: 36px; font-size: 13px; }
.adm-search { flex: 1; min-width: 120px; height: 36px; font-size: 13px; }

.adm-item {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--c-surface); border-radius: 12px; padding: 12px 14px;
  margin-bottom: 8px; box-shadow: 0 1px 2px var(--c-shadow);
}
.adm-item-main { flex: 1; min-width: 0; }
.adm-item-title { font-size: 14.5px; font-weight: 600; line-height: 1.45; color: var(--c-text); }
.adm-item-sub { font-size: 12px; color: var(--c-text-3); margin-top: 4px; line-height: 1.5; }
.adm-acts { display: flex; gap: 6px; flex-shrink: 0; align-items: center; }

.adm-mini {
  font-size: 12px; padding: 5px 10px; border-radius: 14px;
  background: var(--c-fill); color: var(--c-text-2); cursor: pointer; white-space: nowrap;
}
.adm-mini.danger { color: var(--c-bad); background: var(--c-bad-soft); }
.adm-mini.off { opacity: .4; pointer-events: none; }

.adm-pill {
  display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 9px;
  font-size: 11px; font-weight: 500; background: var(--c-info-soft); color: var(--c-info);
  vertical-align: 1px;
}
.adm-pill.real { background: var(--c-brand-soft); color: var(--c-brand); }

.adm-pager {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 2px 4px; gap: 8px;
}

.adm-modal-mask {
  position: fixed; inset: 0; z-index: 900; display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .45); padding: 16px; animation: fadeIn .15s ease;
}
.adm-modal {
  background: var(--c-surface); border-radius: 16px; width: 100%; max-width: 520px;
  max-height: 86vh; display: flex; flex-direction: column; animation: popIn .18s ease;
}
.adm-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px 12px; font-size: 16px; font-weight: 600;
  border-bottom: 1px solid var(--c-border);
}
.adm-modal-x { font-size: 22px; line-height: 1; color: var(--c-text-3); cursor: pointer; padding: 0 4px; }
.adm-modal-body { padding: 14px 18px 18px; overflow-y: auto; }

.adm-form-row { margin-bottom: 12px; }
.adm-form-row > label { display: block; font-size: 12.5px; color: var(--c-text-3); margin-bottom: 6px; }
.adm-row2 { display: flex; gap: 8px; }
.adm-row2 .input { flex: 1; }
.adm-opt-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.adm-opt-key {
  width: 26px; height: 26px; flex-shrink: 0; border-radius: 13px; text-align: center;
  line-height: 26px; font-size: 12.5px; font-weight: 600;
  background: var(--c-fill); color: var(--c-text-2);
}
.adm-opt-input { flex: 1; }
.adm-json { min-height: 220px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }

@media (max-width: 420px) {
  .adm-stats { gap: 4px; padding: 14px 4px; }
  .adm-stat-num { font-size: 18px; }
  .adm-toolbar-wrap { flex-wrap: wrap; }
  .adm-select { max-width: 100%; width: 100%; }
}

.adm-toolbar .btn { width: auto; display: inline-block; padding: 0 18px; }
@media (max-width: 560px) {
  .adm-item { flex-wrap: wrap; }
  .adm-acts { width: 100%; justify-content: flex-end; }
}

/* ===== 小程序云库同步 ===== */
.adm-cloud-card {
  margin-top: 10px; padding: 14px 16px; border-radius: 14px;
  background: var(--c-surface); box-shadow: 0 1px 3px var(--c-shadow);
  border-left: 3px solid var(--c-ok);
}
.adm-cloud-card.warn { border-left-color: var(--c-warn); }
.adm-cloud-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.adm-cloud-title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--c-text); }
.adm-cloud-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-ok); flex-shrink: 0; }
.adm-cloud-dot.warn { background: var(--c-warn); }
.adm-cloud-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin-top: 14px; text-align: center;
}
.adm-cloud-sub { margin-top: 12px; font-size: 12px; color: var(--c-text-3); line-height: 1.6; }

.adm-cloud-actions { margin-top: 12px; }
.adm-cloud-block + .adm-cloud-block { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--c-border); }
.adm-cloud-block-title { font-size: 13.5px; font-weight: 600; color: var(--c-text); margin-bottom: 6px; }

.adm-cloud-job { margin: 12px 0 4px; padding: 12px 14px; border-radius: 12px; background: var(--c-surface-2); }
.adm-cloud-job.run { background: var(--c-info-soft); }
.adm-cloud-job.ok { background: var(--c-ok-soft); }
.adm-cloud-job.warn { background: var(--c-warn-soft); }
.adm-cloud-job-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12.5px; }
.adm-cloud-badge { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: var(--c-fill); color: var(--c-text-2); }
.adm-cloud-badge.ok { background: var(--c-ok); color: #FFFFFF; }
.adm-cloud-badge.warn { background: var(--c-warn); color: #FFFFFF; }
.adm-cloud-bar { margin-top: 10px; height: 6px; border-radius: 3px; background: var(--c-border-2); overflow: hidden; }
.adm-cloud-bar span { display: block; height: 100%; background: var(--c-brand); border-radius: 3px; transition: width .3s ease; }
.adm-cloud-job.ok .adm-cloud-bar span { background: var(--c-ok); }
.adm-cloud-errs { margin-top: 10px; }
.adm-cloud-err { font-size: 12px; color: var(--c-bad); line-height: 1.7; }

@media (max-width: 420px) {
  .adm-cloud-grid { grid-template-columns: repeat(2, 1fr); }
  .adm-tabs .tab { font-size: 12.5px; padding-left: 8px; padding-right: 8px; }
}

/* ===== 后台 7 个 Tab：横向滚动，避免挤压换行 ===== */
.adm-tabs-scroll {
  display: flex; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.adm-tabs-scroll::-webkit-scrollbar { display: none; }
.adm-tabs-scroll .tab {
  flex: 0 0 auto; white-space: nowrap; min-width: 62px; text-align: center;
  padding-left: 10px; padding-right: 10px;
}

/* ================= 后台：左右布局（侧边栏 + 内容区） ================= */
.adm-root { max-width: none; min-height: 100vh; margin: 0 auto; padding-bottom: 0; position: relative; }

.adm-shell {
  display: flex;
  min-height: 100vh;
  max-width: 1440px;
  margin: 0 auto;
  background: var(--c-bg);
}

/* ---- 左侧导航 ---- */
.adm-side {
  width: 228px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #222B5C 0%, #161D3F 100%);
  color: #BFC6E5;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.adm-brand { display: flex; align-items: center; gap: 10px; padding: 18px 16px 14px; }
.adm-brand-badge {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  background: var(--c-brand); color: #FFFFFF;
  font-size: 19px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.adm-brand-name { font-size: 13.5px; font-weight: 600; color: #FFFFFF; line-height: 1.3; white-space: nowrap; }
.adm-brand-sub { font-size: 11px; color: #8A93BC; margin-top: 2px; white-space: nowrap; }
.adm-brand-pill {
  margin-left: auto; flex-shrink: 0;
  font-size: 10.5px; padding: 2px 8px; border-radius: 999px;
  background: rgba(79, 95, 224, 0.4); color: #C3CBFF;
}
.adm-menu { flex: 1; padding: 6px 12px 12px; }
.adm-nav {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; margin-bottom: 2px;
  border-radius: 10px;
  font-size: 13.5px; color: #BFC6E5;
  cursor: pointer; user-select: none;
  transition: background .15s ease, color .15s ease;
}
.adm-nav:hover { background: rgba(255, 255, 255, 0.06); color: #FFFFFF; }
.adm-nav.on { background: #4F5FE0; color: #FFFFFF; font-weight: 600; }
.adm-nav-ic { width: 17px; height: 17px; flex-shrink: 0; }
.adm-nav-arrow {
  margin-left: auto; font-size: 16px; line-height: 1;
  transform: rotate(0deg); transition: transform .15s ease;
}
.adm-nav-arrow.open { transform: rotate(90deg); }
.adm-subnav { margin: 0 0 4px 14px; }
.adm-subnav-item {
  padding: 8px 12px 8px 30px; margin-bottom: 1px;
  border-radius: 8px;
  font-size: 13px; color: #A9B1D6;
  cursor: pointer; user-select: none; position: relative;
  transition: background .15s ease, color .15s ease;
}
.adm-subnav-item::before {
  content: ''; position: absolute; left: 17px; top: 50%;
  width: 5px; height: 5px; border-radius: 50%;
  background: #5A6390; transform: translateY(-50%);
}
.adm-subnav-item:hover { background: rgba(255, 255, 255, 0.05); color: #FFFFFF; }
.adm-subnav-item.on { background: rgba(79, 95, 224, 0.32); color: #FFFFFF; font-weight: 600; }
.adm-subnav-item.on::before { background: #C3CBFF; }
.adm-side-foot { padding: 14px 16px 18px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.adm-side-user { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.adm-side-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: #4F5FE0; color: #FFFFFF;
  font-size: 14px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.adm-side-name { font-size: 13px; font-weight: 600; color: #FFFFFF; }
.adm-side-role { font-size: 11px; color: #8A93BC; margin-top: 1px; }
.adm-side-out {
  font-size: 12px; color: #8A93BC; text-align: center;
  padding: 8px 0 2px; cursor: pointer;
}
.adm-side-out:hover { color: #FFFFFF; }

/* ---- 右侧内容区 ---- */
.adm-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.adm-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 28px;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  position: sticky; top: 0; z-index: 20;
}
.adm-head-sub { font-size: 11.5px; color: var(--c-text-3); }
.adm-head-title { font-size: 20px; font-weight: 700; margin-top: 2px; }
.adm-head-right { display: flex; align-items: center; gap: 14px; }
.adm-body { padding: 20px 28px 48px; flex: 1; }

/* ---- 数据概览 ---- */
.adm-ov-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 12px; margin-bottom: 16px;
}
.adm-ov-stat { padding: 16px 18px; }
.adm-ov-charts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 12px; margin-bottom: 16px;
}
.adm-chart-card { padding: 16px 18px; }
.adm-chart-title {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 14px; font-weight: 600; margin-bottom: 10px;
}
.adm-donut-wrap {
  display: flex; align-items: center; justify-content: center;
  gap: 28px; padding: 8px 0; flex-wrap: wrap;
}
.adm-donut { width: 168px; height: 168px; flex-shrink: 0; }
.adm-donut-legend { display: flex; flex-direction: column; gap: 8px; min-width: 112px; }
.adm-donut-legend-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--c-text-2);
}
.adm-donut-legend-item b { margin-left: auto; color: var(--c-text); font-variant-numeric: tabular-nums; }
.adm-dot { width: 9px; height: 9px; border-radius: 3px; flex-shrink: 0; }
.adm-ov-sync { padding: 16px 18px; margin-top: 4px; }
.adm-ov-sync .adm-cloud-card { margin-top: 4px; }
.adm-ov-sync .adm-cloud-actions {
  margin-top: 10px; padding: 12px 0 0;
  background: transparent; border: none; box-shadow: none;
}
.adm-ov-sync .adm-tip { margin: 10px 0 0; }

/* ---- 补充的 pill / mini 配色 ---- */
.adm-pill.info { background: var(--c-info-soft); color: var(--c-info); }
.adm-mini.ok { color: var(--c-ok); background: var(--c-ok-soft); }
.adm-stat-num.warn { color: var(--c-warn); }

/* ---- 会员 / 反馈 ---- */
.adm-note {
  padding: 12px 16px; border-radius: 12px; margin-bottom: 14px;
  background: var(--c-info-soft); color: var(--c-text-2);
  font-size: 13px; line-height: 1.7;
}
.adm-note b { color: var(--c-text); font-weight: 600; }
.adm-fb-promote { padding: 16px 18px; margin-bottom: 16px; }
.adm-fb-promote .adm-ov-stats { margin-bottom: 6px; }
.adm-fb-top { margin-top: 12px; }
.adm-fb-content {
  margin-top: 8px; padding: 10px 12px;
  border-radius: 10px; background: var(--c-surface-2);
  font-size: 14px; line-height: 1.7; color: var(--c-text);
  white-space: pre-wrap; word-break: break-word;
}
.adm-toolbar .adm-chart-title { margin-bottom: 0; }

/* ---- 窄屏：侧边栏折叠为顶部 ---- */
@media (max-width: 900px) {
  .adm-shell { flex-direction: column; }
  .adm-side { width: 100%; height: auto; position: static; }
  .adm-menu { padding: 4px 10px 10px; }
  .adm-nav { display: inline-flex; margin-right: 4px; }
  .adm-subnav { margin: 0 0 4px 10px; }
  .adm-side-foot { display: flex; align-items: center; justify-content: space-between; }
  .adm-side-user { margin-bottom: 0; }
  .adm-side-out { padding: 4px 0 2px; }
  .adm-head { padding: 12px 16px; position: static; }
  .adm-head-sub { display: none; }
  .adm-body { padding: 16px 14px 40px; }
}

/* ================= 后台表格 + 突出分页 ================= */
.adm-table-wrap {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  overflow: auto;
  max-width: 100%;
}
.adm-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 760px; }
.adm-table th {
  text-align: left;
  padding: 10px 14px;
  background: var(--c-surface-2);
  color: var(--c-text-2);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 1;
}
.adm-table th.num, .adm-table td.num { text-align: center; font-variant-numeric: tabular-nums; }
.adm-table .ctr { text-align: center; }
.adm-table td {
  padding: 9px 14px;
  border-top: 1px solid var(--c-border);
  color: var(--c-text);
  line-height: 1.55;
  vertical-align: top;
}
.adm-table tbody tr:hover { background: var(--c-surface-2); }
.adm-table .nowrap { white-space: nowrap; }
.adm-table .muted { color: var(--c-text-3); }
.adm-td-content { min-width: 220px; max-width: 420px; word-break: break-word; }
.adm-td-sub { font-size: 11px; color: var(--c-text-3); margin-top: 2px; font-weight: 400; }
.adm-td-acts { white-space: nowrap; }
.adm-td-acts .adm-mini { margin-right: 8px; }
.adm-td-empty { text-align: center; color: var(--c-text-3); padding: 28px 0 !important; }

/* 突出显示的分页条 */
.adm-pager-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 12px;
}
.adm-pg-info { font-size: 12.5px; color: var(--c-text-2); white-space: nowrap; }
.adm-pg-group { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
.adm-pg {
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--c-text-2);
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  cursor: pointer;
  user-select: none;
  font-variant-numeric: tabular-nums;
  transition: background .15s ease, color .15s ease;
}
.adm-pg:hover { background: var(--c-brand-soft, rgba(79, 95, 224, 0.12)); color: var(--c-brand); }
.adm-pg.on {
  background: var(--c-brand);
  border-color: var(--c-brand);
  color: #FFFFFF;
  font-weight: 700;
  cursor: default;
}
.adm-pg.off { opacity: 0.4; cursor: default; pointer-events: none; }
.adm-pg-gap { color: var(--c-text-3); font-size: 12px; padding: 0 2px; }
.adm-toolbar-gap { flex: 1; min-width: 0; }
