* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
:root {
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-light: #eef2ff;
  --primary-glow: rgba(79, 70, 229, 0.15);
  /* v154 界面设置：以下派生变量由 applyTheme() 动态覆盖（管理员后台「界面」页可配） */
  --primary-mid: var(--primary-mid);
  --primary-ring: var(--primary-ring);
  --primary-ring-strong: var(--primary-ring-strong);
  --primary-faint: rgba(79, 70, 229, 0.04);
  --brand-1: #1a73e8;
  --brand-2: #4285f4;
  --success: #10b981;
  --success-light: #ecfdf5;
  --danger: #ef4444;
  --danger-light: #fef2f2;
  --warning: #f59e0b;
  --bg: #f5f6fa;
  --card: #ffffff;
  --text: #0a0a0a;
  --text-strong: #000000;
  --text-hint: #6b7280;
  --border: #e5e7eb;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 14px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.08);
  --shadow-glow: 0 4px 20px var(--primary-glow);
}
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', sans-serif; background: var(--bg); color: var(--text); line-height: 1.5; -webkit-user-select: none; user-select: none; }
#app { max-width: 500px; margin: 0 auto; min-height: 100vh; position: relative; }

/* 通用按钮 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 16px; border: none; border-radius: var(--radius-sm); font-size: 15px; font-weight: 600; cursor: pointer; transition: all .2s ease; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-mid)); color: #fff; box-shadow: 0 2px 8px var(--primary-glow); }
.btn-primary:active { transform: scale(0.97); box-shadow: 0 1px 4px var(--primary-glow); }
.btn-success { background: linear-gradient(135deg, var(--success), #34d399); color: #fff; }
.btn-danger { background: linear-gradient(135deg, var(--danger), #f87171); color: #fff; }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:active { background: var(--primary-light); }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 12px; font-size: 13px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* 卡片 */
.card { background: var(--card); border-radius: var(--radius); padding: 16px; margin: 8px 0; box-shadow: var(--shadow); transition: box-shadow .2s; }
.form-group { margin-bottom: 12px; }
.form-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 5px; color: var(--text); }
.form-input, .form-select { width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 15px; background: #fff; outline: none; transition: border .2s, box-shadow .2s; }
.form-input:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.form-input::placeholder { color: #aaa; }

/* 头部 */
.header { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%); color: #fff; padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 12px var(--primary-glow); }
.header h1 { font-size: 17px; font-weight: 600; }
.header .back-btn { background: rgba(255,255,255,0.2); border: none; color: #fff; padding: 6px 12px; border-radius: 8px; font-size: 13px; cursor: pointer; transition: background .2s; }
.header .back-btn:active { background: rgba(255,255,255,0.3); }

/* 登录页 */
.login-page { padding: 20px; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-mid) 100%); }
.login-logo { text-align: center; margin-bottom: 24px; color: #fff; }
.login-logo .icon { font-size: 48px; }
.login-logo h2 { font-size: 24px; margin-top: 8px; font-weight: 700; }
.login-logo p { font-size: 14px; opacity: 0.85; margin-top: 4px; }
.login-box { background: #fff; border-radius: 20px; padding: 24px; box-shadow: 0 20px 60px rgba(0,0,0,0.2); }
.login-tabs { display: flex; gap: 0; margin-bottom: 16px; border-bottom: 2px solid var(--border); }
.login-tab { flex: 1; padding: 10px; text-align: center; font-size: 15px; font-weight: 600; color: var(--text-hint); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all .2s; }
.login-tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* 底部导航 */
.bottom-nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 500px; display: flex; background: #fff; border-top: 1px solid var(--border); z-index: 90; box-shadow: 0 -2px 12px rgba(0,0,0,0.04); }
.nav-item { flex: 1; padding: 12px 0; text-align: center; cursor: pointer; color: var(--text-hint); transition: color .2s; }
.nav-item .label { font-size: 13px; font-weight: 500; }
.nav-item.active { color: var(--primary); font-weight: 700; }

/* 题目卡片 */
.question-card { background: #fff; border-radius: var(--radius); padding: 16px; margin: 8px 0; box-shadow: var(--shadow); }
.question-type-tag { display: inline-block; padding: 3px 10px; border-radius: 6px; font-size: 12px; font-weight: 600; margin-bottom: 6px; }
.tag-single { background: var(--primary-light); color: var(--primary-dark); }
.tag-multi { background: #fce7f3; color: #be185d; }
.tag-judge { background: var(--success-light); color: #047857; }
.question-content { font-size: 16px; line-height: 1.7; margin-bottom: 12px; word-break: break-all; color: var(--text-strong); font-weight: 500; }
.question-options { display: flex; flex-direction: column; gap: 8px; }
.option-item { display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; border: 2px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; transition: all .2s ease; font-size: 15px; line-height: 1.4; color: var(--text-strong); }
.option-item:active { background: var(--primary-light); }
.option-item.selected { border-color: var(--primary); background: var(--primary-light); }
.option-item.correct { border-color: var(--success); background: var(--success-light); }
.option-item.wrong { border-color: var(--danger); background: var(--danger-light); }
.option-letter { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; min-width: 28px; border-radius: 50%; background: #f3f4f6; font-weight: 700; font-size: 13px; transition: all .2s; }
.option-item.selected .option-letter { background: var(--primary); color: #fff; }
.option-item.correct .option-letter { background: var(--success); color: #fff; }
.option-item.wrong .option-letter { background: var(--danger); color: #fff; }

/* 答案区 */
.answer-box { margin-top: 12px; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 15px; color: var(--text-strong); }
.answer-correct { background: var(--success-light); border-left: 4px solid var(--success); }
.answer-wrong { background: var(--danger-light); border-left: 4px solid var(--danger); }
.answer-analysis { background: #fffbeb; border-left: 4px solid var(--warning); margin-top: 8px; padding: 10px 14px; border-radius: var(--radius-sm); font-size: 14px; color: #78350f; }

/* 进度条 */
.progress-bar { width: 100%; height: 6px; background: #e5e7eb; border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-mid)); border-radius: 4px; transition: width .3s; }
.progress-text { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-hint); margin: 5px 0; }
/* 正确率进度条 */
.correct-progress {
  margin: 8px 16px;
}
.correct-progress-bar {
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
}
.correct-progress-fill {
  height: 100%;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  border-radius: 4px;
  transition: width 0.4s ease;
  width: 0%;
}
.correct-progress-text {
  font-size: 12px;
  color: #16a34a;
  margin-top: 4px;
  font-weight: 500;
  text-align: center;
}

/* v116: 移动端折叠题号导航（练习模式对错着色） */
.study-nav {
  margin: 10px 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.study-nav-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  user-select: none;
}
.study-nav-toggle:active { background: #f9fafb; }
.study-nav-count {
  flex: 1;
  text-align: right;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-hint);
}
.study-nav-arrow {
  font-size: 11px;
  color: var(--text-hint);
  transition: transform .2s;
}
.study-nav-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
  padding: 0 14px 14px;
}
.study-nav-item {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  background: #f3f4f6;
  color: var(--text);
  border: 2px solid transparent;
  transition: all .2s;
}
.study-nav-item:active { transform: scale(0.93); }
.study-nav-item.correct { background: var(--success); color: #fff; }
.study-nav-item.wrong { background: var(--danger); color: #fff; }
.study-nav-item.current { background: #fff; color: var(--primary); border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-ring); }
.study-nav-item.correct.current, .study-nav-item.wrong.current { box-shadow: 0 0 0 2px var(--primary-ring-strong); }
.study-nav-item.done { background: var(--success); color: #fff; }


/* 分类卡片 */
.category-card { display: flex; align-items: center; padding: 16px; background: #fff; border-radius: var(--radius); margin: 8px 0; box-shadow: var(--shadow); cursor: pointer; transition: transform .15s, box-shadow .2s; }
.category-card:active { transform: scale(0.98); }
.category-card:hover { box-shadow: var(--shadow-lg); }
.category-accent { width: 4px; height: 40px; border-radius: 3px; margin-right: 14px; flex-shrink: 0; }
.category-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-right: 12px; }
.category-info { flex: 1; }
.category-info h3 { font-size: 16px; font-weight: 600; }
.category-info p { font-size: 13px; color: var(--text-hint); }
.category-arrow { color: #d1d5db; font-size: 20px; }

/* 导航卡片（首页快捷入口） */
.nav-card { border-left: 4px solid var(--primary) !important; transition: transform .15s, box-shadow .2s; }
.nav-card:active { transform: scale(0.98); }
.nav-card:hover { box-shadow: var(--shadow-lg); }

/* v121: 首页统一入口卡片网格（无图标，标题+副标题纵向排列） */
/* v122: 卡片加浅蓝色渲染（淡蓝渐变背景 + 浅蓝左边框，悬停加深） */
.home-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 4px 0 12px; }
.home-card { display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 12px 14px; background: linear-gradient(135deg, #edf4ff 0%, #f8fbff 100%); border-left: 3px solid #bcd2f2; border-radius: var(--radius); box-shadow: var(--shadow); cursor: pointer; transition: transform .15s, box-shadow .2s, border-left-color .2s; min-height: 62px; }
.home-card:active { transform: scale(0.98); }
.home-card:hover { box-shadow: var(--shadow-lg); border-left-color: #8fb4e8; background: linear-gradient(135deg, #e5efff 0%, #f4f9ff 100%); }
.home-card-title { font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.3; }
.home-card-sub { font-size: 12px; color: var(--text-hint); margin-top: 2px; line-height: 1.35; }
.home-card-badge { display: inline-block; background: var(--danger); color: #fff; font-size: 10px; padding: 1px 6px; border-radius: 8px; margin-left: 4px; vertical-align: 1px; }
@media (min-width: 900px) { .home-grid { grid-template-columns: repeat(4, 1fr); } }

/* v159: 精选试题大卡片（通栏、主色渐变、白字，比普通卡片更大更醒目）+ 分区标题 */
.home-section-title { grid-column: 1 / -1; font-weight: 800; font-size: 15px; color: var(--text); margin: 8px 0 0; letter-spacing: 0.3px; }
.home-card-featured { grid-column: 1 / -1; padding: 18px 18px; min-height: 84px; background: linear-gradient(135deg, var(--primary) 0%, #4285f4 100%); border-left: none; border-radius: 14px; box-shadow: 0 6px 18px rgba(62,56,178,0.30); }
.home-card-featured:active { transform: scale(0.985); }
.home-card-featured:hover { box-shadow: 0 10px 24px rgba(62,56,178,0.38); background: linear-gradient(135deg, var(--primary) 0%, #4285f4 100%); }
.home-card-featured .home-card-title { font-size: 18px; color: #fff; }
.home-card-featured .home-card-sub { font-size: 13px; color: rgba(255,255,255,0.88); }
.home-card-featured .featured-flag { display: inline-block; background: rgba(255,255,255,0.22); color: #fff; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px; margin-left: 8px; vertical-align: 2px; }
@media (min-width: 900px) { .home-card-featured { grid-column: span 2; } }

/* v119: 首页做题说明卡片（管理员可编辑） */
.notice-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 12px; overflow: hidden; border-left: 4px solid var(--primary); }
.notice-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; cursor: pointer; font-weight: 700; font-size: 14px; background: linear-gradient(135deg, rgba(26,115,232,0.08), rgba(66,133,244,0.03)); user-select: none; }
.notice-title { display: inline-flex; align-items: center; gap: 6px; }
.notice-toggle { color: var(--text-hint); font-size: 12px; }
.notice-body { padding: 10px 14px; font-size: 13px; color: var(--text); line-height: 1.8; white-space: pre-line; border-top: 1px solid #eef1f5; }
.notice-editor { width: 100%; min-height: 150px; border: 1px solid #d9dee7; border-radius: 8px; padding: 10px; font-size: 14px; line-height: 1.7; font-family: inherit; resize: vertical; margin-top: 10px; box-sizing: border-box; }
.notice-editor:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(26,115,232,0.15); }

/* 学习页面控制 */
.content-study { padding-top: 8px; }
.study-controls { position: sticky; top: 48px; z-index: 50; background: var(--bg); padding: 6px 0; margin-bottom: 6px; }
.mode-toggle { display: flex; gap: 0; border-radius: 12px; overflow: hidden; border: 2.5px solid var(--primary); margin-bottom: 6px; box-shadow: 0 2px 8px var(--primary-glow); }
.toggle-btn { flex: 1; padding: 10px 8px; text-align: center; font-size: 15px; font-weight: 700; cursor: pointer; background: #fff; color: var(--primary); border: none; transition: all .2s; }
.toggle-btn:active { transform: scale(0.97); }
.toggle-btn.active { background: linear-gradient(135deg, var(--primary), var(--primary-mid)); color: #fff; }

/* v132: 科目页模式选择大卡片（背题/练习更醒目、间距更分明） */
/* v143: 卡片紧凑化+去除装饰图标，节省屏幕空间 */
.study-mode-pick { display: flex; gap: 8px; }
.study-mode-card { flex: 1; text-align: center; padding: 10px 8px; border-radius: 12px; border: 2px solid var(--border); background: var(--card); cursor: pointer; transition: all .2s; box-shadow: var(--shadow-sm); }
.study-mode-card:hover { border-color: #c7c7d1; transform: translateY(-1px); box-shadow: var(--shadow); }
.study-mode-card:active { transform: scale(0.97); }
.study-mode-card.active { border-color: var(--primary); background: linear-gradient(135deg, #eef4ff, #f8fbff); box-shadow: 0 4px 18px var(--primary-glow); }
.smc-icon { display: none; }
.smc-title { font-weight: 800; font-size: 15px; color: var(--text-strong); margin-bottom: 3px; }
.study-mode-card.active .smc-title { color: var(--primary); }
.smc-desc { font-size: 11px; color: var(--text-hint); line-height: 1.4; }
.smc-tag { display: inline-block; margin-top: 6px; font-size: 10px; font-weight: 600; padding: 2px 10px; border-radius: 99px; background: #e5e7eb; color: #6b7280; }
.study-mode-card.active .smc-tag { background: var(--primary); color: #fff; }
@media (max-width: 500px) {
  .study-mode-pick { gap: 6px; }
  .study-mode-card { padding: 8px 6px; border-radius: 10px; }
  .smc-title { font-size: 14px; }
  .smc-desc { font-size: 10px; }
  .smc-tag { margin-top: 5px; padding: 2px 8px; font-size: 10px; }
}

/* 学习页紧凑顶栏（v111，压缩顶部空间减少上划） */
/* 学习页专用紧凑头部 */
.header-compact { padding: 5px 10px; }
.header-compact h1 { font-size: 14px; }
.header-compact .back-btn { padding: 4px 10px; font-size: 12px; }
.study-topbar { position: sticky; top: 34px; z-index: 50; background: var(--bg); display: flex; align-items: center; padding: 2px 0 3px; margin-bottom: 2px; }
.mode-toggle-compact { margin-bottom: 0; flex: 1; border-width: 2px; border-radius: 10px; box-shadow: 0 1px 5px var(--primary-glow); }
.mode-toggle-compact .toggle-btn { padding: 5px 8px; font-size: 13px; }

/* v133: 手机端做题页背题/练习按钮分开（不再连体） */
@media (max-width: 899px) {
  .mode-toggle { gap: 8px; border: none; box-shadow: none; overflow: visible; }
  .mode-toggle .toggle-btn { border: 2px solid var(--primary); border-radius: 10px; box-shadow: 0 1px 4px var(--primary-glow); }
}
.progress-line { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-hint); margin: 2px 0 5px; }

/* 学习页内容区：无底部导航，底部留白减小 */
.content-study { padding: 6px 10px 80px; }

/* v126: 做题页上一题/下一题按钮固定到底部（仅移动端） */
.study-nav-fixed { position: relative; }
@media (max-width: 899px) {
  .study-nav-fixed {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 500px;
    padding: 0 10px 12px;
    background: var(--bg);
    z-index: 80;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.04);
  }
  .study-nav-fixed .btn { margin-top: 0; }
  .study-nav-fixed.flex { display: flex; gap: 8px; }
  .study-nav-fixed .btn-block { width: 100%; margin-top: 8px; }
}

/* 学习页题目卡片紧凑化（仅影响手机端做题页） */
.content-study .question-card { padding: 12px; margin: 4px 0; }
.content-study .question-content { font-size: 15.5px; line-height: 1.55; margin-bottom: 8px; }
.content-study .question-options { gap: 6px; }
.content-study .option-item { padding: 9px 12px; font-size: 14.5px; gap: 8px; }
.content-study .option-letter { width: 26px; height: 26px; min-width: 26px; font-size: 12px; }
.content-study .answer-box { margin-top: 8px; padding: 10px 12px; }
.content-study .answer-analysis { margin-top: 6px; padding: 8px 12px; }
.content-study .mt-2 { margin-top: 8px; }

/* v123: 移动端做题页进一步加宽，减少上下滑动 */
@media (max-width: 500px) {
  .content { padding: 8px 6px 80px; }
  .content-study { padding: 4px 4px 80px; }
  .content-exam { padding: 8px 6px 80px; }
  .question-card { padding: 8px; margin: 6px 0; }
  .question-content { font-size: 15.5px; line-height: 1.5; margin-bottom: 10px; }
  .question-options { gap: 6px; }
  .option-item { padding: 8px; gap: 8px; font-size: 14.5px; }
  .option-letter { width: 24px; height: 24px; min-width: 24px; font-size: 12px; }
  .answer-box { margin-top: 8px; padding: 9px 11px; font-size: 14px; }
  .answer-analysis { margin-top: 6px; padding: 8px 11px; font-size: 13px; }
}
.progress-line-item { flex: none; }
.progress-line-rate { margin-left: auto; color: #16a34a; font-weight: 600; }

/* v129: 每日提醒管理页，手机端两列收成单列 */
@media (max-width: 600px) {
  .rm-grid { grid-template-columns: 1fr !important; }
}

/* 解锁进度条（v111） */
.unlock-progress { background: #f8fafc; border: 1px solid #e5e7eb; border-radius: var(--radius-sm); padding: 8px 10px; margin-top: 10px; }
.unlock-progress-row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text); margin: 3px 0; }
.unlock-progress-bar { height: 6px; background: #e5e7eb; border-radius: 3px; overflow: hidden; margin: 2px 0; }
.unlock-progress-fill { height: 100%; background: linear-gradient(90deg, #f59e0b, #fbbf24); border-radius: 3px; transition: width .4s ease; }

/* 锁定组按钮（v111） */
.group-btn-locked { opacity: 0.7; border-style: dashed; border-color: #d1d5db; background: #f3f4f6; cursor: not-allowed; }
.group-btn-locked .group-btn-num { color: #9ca3af; }
.group-btn-locked .group-btn-range { color: #9ca3af; }

/* 考试科目锁定卡片（v111） */
.exam-cat-locked { cursor: not-allowed; opacity: 0.75; }
.type-filter { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.filter-btn { padding: 6px 14px; border-radius: 8px; font-size: 14px; font-weight: 700; cursor: pointer; border: 2px solid var(--border); background: #fff; color: var(--text); transition: all .2s; }
.filter-btn:active { transform: scale(0.95); }
.filter-btn.active { background: linear-gradient(135deg, var(--primary), var(--primary-mid)); color: #fff; border-color: transparent; box-shadow: 0 2px 8px var(--primary-glow); }
.group-selector { margin-top: 4px; }

/* 分组按钮网格 */
.group-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 10px; }
.group-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px 8px; background: #f8f9fa; border: 2px solid #e5e7eb; border-radius: var(--radius-sm); cursor: pointer; transition: all .2s; }
.group-btn:active { background: var(--primary-light); border-color: var(--primary); transform: scale(0.97); }
.group-btn:hover { border-color: var(--primary); background: #fff; box-shadow: var(--shadow-sm); }
.group-btn-num { font-size: 14px; font-weight: 700; color: var(--text); }
.group-btn-range { font-size: 12px; color: var(--text-hint); margin-top: 2px; }
.group-btn-single { width: 100%; padding: 12px; background: linear-gradient(135deg, var(--primary), var(--primary-mid)); color: #fff; border: none; border-radius: var(--radius-sm); font-size: 15px; font-weight: 600; cursor: pointer; margin-top: 10px; box-shadow: 0 2px 8px var(--primary-glow); }
.group-btn-single:active { transform: scale(0.97); }

/* v135: 已完成分组按钮（成就感绿色着色） */
.group-btn-done { background: linear-gradient(135deg, #dcfce7, #bbf7d0) !important; border-color: #22c55e !important; }
.group-btn-done .group-btn-num { color: #15803d; }
.group-btn-done .group-btn-range { color: #16a34a; }
.group-btn-done:hover { border-color: #16a34a !important; background: linear-gradient(135deg, #d1fae5, #a7f3d0) !important; box-shadow: 0 2px 8px rgba(34,197,94,0.25); }
.group-btn-single-done { background: linear-gradient(135deg, #22c55e, #16a34a) !important; box-shadow: 0 2px 8px rgba(34,197,94,0.3); }

/* 弹窗 */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 9999; animation: fadeIn .2s; }
.modal-box { background: #fff; border-radius: 20px; padding: 24px 20px; max-width: 340px; width: 90%; box-shadow: 0 20px 60px rgba(0,0,0,0.3); animation: modalSlide .3s ease; }
@keyframes modalSlide { from { opacity: 0; transform: translateY(20px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes cycleBounce { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }

/* 试卷列表卡片 */
.paper-card { cursor: pointer; transition: transform .15s, box-shadow .2s; }
.paper-card:active { transform: scale(0.98); }
.paper-card:hover { box-shadow: var(--shadow-lg); }
.paper-done {
  border-left: 4px solid #16a34a !important;
  background: #f0fdf4;
}
.paper-done:hover {
  background: #dcfce7;
}


/* 模拟考试 */
.exam-card { cursor: pointer; transition: transform .15s; }
.exam-card:active { transform: scale(0.98); }
.content-exam { padding: 10px 14px 80px; }
.exam-header { justify-content: space-between; gap: 8px; }
.exam-timer { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.exam-timer.timer-warning { color: #fca5a5; animation: timerPulse 1s infinite; }
@keyframes timerPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }

/* 答题卡导航 */
.exam-nav-card { background: #fff; border-radius: var(--radius); padding: 14px; margin-top: 12px; box-shadow: var(--shadow); }
.exam-nav-title { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.exam-nav-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; margin-bottom: 12px; }
.exam-nav-item { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; border-radius: 6px; background: #f3f4f6; color: var(--text); cursor: pointer; border: 2px solid transparent; transition: all .15s; }
.exam-nav-item:active { transform: scale(0.9); }
.exam-nav-item.answered { background: var(--success-light); color: #047857; border-color: var(--success); }
.exam-nav-item.current { background: var(--danger); color: #fff; border-color: #fff; box-shadow: 0 0 0 2px var(--danger); }

/* 桌面端控制栏 */
.desktop-controls { margin-bottom: 12px; padding: 10px; background: #f8f9fa; border-radius: 8px; }

/* Toast */
.toast { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,0.85); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; padding: 10px 20px; border-radius: 10px; font-size: 14px; z-index: 9999; animation: fadeIn .3s; box-shadow: 0 4px 20px rgba(0,0,0,0.2); }
@keyframes fadeIn { from { opacity: 0; transform: translate(-50%, -10px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* 统计数字 */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 8px 0; }
.stat-box { background: #fff; border-radius: var(--radius-sm); padding: 12px; text-align: center; box-shadow: var(--shadow-sm); }
.stat-num { font-size: 24px; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 12px; color: var(--text-hint); }
.online-stat-box .online-num { color: #059669; }
.online-dot { width: 8px; height: 8px; border-radius: 50%; background: #10b981; display: inline-block; flex-shrink: 0; animation: online-pulse 2s ease-in-out infinite; }
@keyframes online-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.stat-grid.col5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 500px) {
  .stat-grid, .stat-grid.col5 { grid-template-columns: repeat(2, 1fr); }
}

/* 每日新增（v190） */
.stat-sub { font-size: 11px; color: var(--text-hint); margin-top: 2px; white-space: nowrap; }
.growth-stat-box .growth-num { color: #0d9488; }
.growth-num.bump { animation: growth-bump .9s ease; }
@keyframes growth-bump { 0% { transform: scale(1); } 30% { transform: scale(1.35); color: #dc2626; } 100% { transform: scale(1); } }
.growth-trend { display: flex; align-items: flex-end; gap: 6px; overflow-x: auto; padding: 6px 2px 0; }
.growth-col { flex: 1 0 26px; text-align: center; }
.growth-bar { background: linear-gradient(180deg, #38bdf8, #0ea5e9); border-radius: 4px 4px 0 0; width: 100%; max-width: 26px; margin: 0 auto; transition: height .4s ease; }
.growth-bar.today { background: linear-gradient(180deg, #34d399, #059669); }
.growth-val { font-size: 11px; font-weight: 700; color: var(--text); margin-top: 3px; }
.growth-x { font-size: 10px; color: var(--text-hint); }
.growth-names { margin-top: 10px; font-size: 12px; line-height: 1.9; }
.growth-name { display: inline-block; background: var(--primary-light); color: var(--primary-dark); border-radius: 10px; padding: 1px 8px; margin: 0 4px 4px 0; }
.growth-hi { color: #0d9488; font-size: 15px; }

/* 表格 */
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { background: #f8f9fa; padding: 8px; text-align: left; font-weight: 600; }
.table td { padding: 8px; border-bottom: 1px solid var(--border); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* 加载 */
.loading { text-align: center; padding: 30px; color: var(--text-hint); }
.spinner { width: 32px; height: 32px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin .7s linear infinite; margin: 0 auto 10px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 工具栏 */
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; }
.badge-active { background: var(--success-light); color: #047857; }
.badge-inactive { background: var(--danger-light); color: #991b1b; }

.content { padding: 10px 14px 80px; }
.muted { color: var(--text-hint); font-size: 13px; }
.text-center { text-align: center; }
.mt-2 { margin-top: 12px; }
.mb-2 { margin-bottom: 12px; }
.gap-2 { gap: 8px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* 电脑端三栏考试布局 */
@media (min-width: 900px) {
  #app { max-width: 100%; }
  .desktop-study { display: flex; flex-direction: column; height: 100vh; background: var(--bg); }
  .desktop-header { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%); color: #fff; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; box-shadow: 0 2px 12px var(--primary-glow); }
  .desktop-header-left { display: flex; align-items: center; gap: 16px; flex: 1; }
  .desktop-header-left h1 { font-size: 18px; font-weight: 600; }
  .desktop-header-left .back-btn { background: rgba(255,255,255,0.2); border: none; color: #fff; padding: 6px 12px; border-radius: 8px; font-size: 13px; cursor: pointer; }
  .desktop-header-center { flex: 1; display: flex; justify-content: center; }
  .desktop-header-center .mode-toggle { margin: 0; max-width: 280px; }
  .desktop-header-right { flex: 1; text-align: right; font-size: 14px; }
  .desktop-body { display: flex; flex: 1; overflow: hidden; padding: 16px; gap: 16px; }
  .desktop-left { width: 260px; background: #fff; border-radius: var(--radius); padding: 16px; overflow-y: auto; box-shadow: var(--shadow); }
  .desktop-center { flex: 1; background: #fff; border-radius: var(--radius); padding: 20px; overflow-y: auto; box-shadow: var(--shadow); }
  .desktop-right { width: 240px; }
  .desktop-grid-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
  .desktop-grid-type { font-size: 13px; color: var(--text-hint); margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
  .desktop-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; }
  .desktop-grid-item { width: 100%; aspect-ratio: 1; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; cursor: pointer; background: #f3f4f6; color: var(--text); border: 2px solid transparent; transition: all .2s; }
  .desktop-grid-item:hover { background: #e5e7eb; }
  .desktop-grid-item.done { background: var(--success); color: #fff; }
  /* v116: 练习模式题号对错着色（绿=答对 红=答错），当前题用主色描边以示区分 */
  .desktop-grid-item.correct { background: var(--success); color: #fff; }
  .desktop-grid-item.wrong { background: var(--danger); color: #fff; }
  .desktop-grid-item.current { background: #fff; color: var(--primary); border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-ring); }
  .desktop-grid-item.correct.current, .desktop-grid-item.wrong.current { box-shadow: 0 0 0 2px var(--primary-ring-strong); }
  .desktop-info-card { padding: 14px; margin-bottom: 12px; }
  .desktop-info-card h3 { font-size: 15px; }
  .info-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
  .info-row:last-child { border-bottom: none; }
  .info-row span:first-child { color: var(--text-hint); }
  .info-row span:last-child { font-weight: 600; }
  .legend-row { display: flex; align-items: center; gap: 8px; margin: 6px 0; font-size: 13px; }
  .legend-row .desktop-grid-item { width: 22px; height: 22px; aspect-ratio: auto; border-radius: 4px; font-size: 11px; cursor: default; }
  .desktop-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
  .desktop-controls .type-filter { margin-bottom: 0; }
  .desktop-group-selector { margin-top: 4px; }
  .exam-header { padding: 12px 24px; }
  .content-exam { max-width: 900px; margin: 0 auto; padding: 20px; }
  .exam-nav-grid { grid-template-columns: repeat(20, 1fr); }
  .exam-nav-item { font-size: 14px; }
}

/* 专项特训 & 管理后台 */
.training-count-btn.active, .training-mode-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.form-input[type="file"] { padding: 8px; }
textarea.form-input { font-family: inherit; line-height: 1.5; }

.toolbar { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.toolbar .btn { margin-bottom: 4px; }

.question-card.edit-mode { border: 2px solid var(--primary); }

.info-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.info-row:last-child { border-bottom: none; }
.info-row span:first-child { color: var(--text-hint); }
.info-row span:last-child { font-weight: 600; }

.bottom-nav .nav-item { padding: 10px 0; }
.bottom-nav .nav-item .label { font-size: 12px; }

/* 多项目考试选择 */
.exam-cat-grid { display: flex; flex-direction: column; gap: 8px; }
.exam-cat-card { background: #fff; border-radius: var(--radius); padding: 16px 18px; cursor: pointer; transition: all .2s; box-shadow: var(--shadow); display: flex; align-items: center; justify-content: space-between; }
.exam-cat-card:active { transform: scale(0.98); background: var(--primary-light); }
.exam-cat-card:hover { box-shadow: var(--shadow-lg); }
.exam-cat-name { font-size: 15px; font-weight: 700; color: var(--text); }
.exam-cat-arrow { font-size: 13px; color: var(--primary); font-weight: 600; }

/* 试卷列表 */
.paper-list { display: flex; flex-direction: column; gap: 8px; }

/* v112: 错题提醒条（做题页答错 + 本组完成提醒） */
.wrong-remind-tip {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fef3c7;
  border-left: 3px solid #f59e0b;
  color: #92400e;
  font-size: 12.5px;
  line-height: 1.6;
}

/* v112: 首页错题数徽标 */
.badge-danger { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }

/* v113: 相似题检测簇卡片 */
.similar-cluster {
  border-left: 4px solid #7c3aed;
  transition: background 0.15s;
}
.similar-cluster:hover { background: rgba(124, 58, 237, 0.03); }
.cluster-preview { font-size: 13px; line-height: 1.6; }
.cluster-preview > div:last-child { border-bottom: none !important; }

/* v114: 数值题目智能检测 */
.nd-badge {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  margin-right: 4px;
  vertical-align: middle;
}
.nd-item { transition: background 0.15s; }
.nd-item:hover { background: rgba(8, 145, 178, 0.03); }
.nd-item:last-child { border-bottom: none !important; }

/* v115: 专项练习题组卡片 */
.training-set-card {
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  border-radius: 10px;
}
.training-set-card:active { transform: scale(0.98); }
.training-set-card:hover { background: var(--primary-faint); }
.training-group-body { animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* v118: 管理员解锁管理页 */
.unlock-admin-card {
  background: var(--card-bg, #fff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.unlock-slot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  margin-bottom: 6px;
  border-radius: 10px;
  background: var(--bg, #f9fafb);
  border: 1px solid var(--border, #eef0f3);
}
.unlock-slot:last-child { margin-bottom: 0; }
.unlock-btn-group {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.unlock-btn {
  border: 1px solid var(--border, #d1d5db);
  background: var(--card-bg, #fff);
  color: var(--text-hint, #6b7280);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
  line-height: 1.2;
}
.unlock-btn:active { transform: scale(0.96); }
.unlock-btn.active-auto {
  background: #1a73e8;
  border-color: #1a73e8;
  color: #fff;
  font-weight: 600;
}
.unlock-btn.active-unlocked {
  background: #16a34a;
  border-color: #16a34a;
  color: #fff;
  font-weight: 600;
}
.unlock-btn.active-locked {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
  font-weight: 600;
}

/* ==================== v191: 开通项目 按工种分组折叠 ==================== */
.cat-groups { display: flex; flex-direction: column; gap: 10px; }

.cat-group {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.cat-group-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 12px 11px 10px;
  cursor: pointer;
  user-select: none;
  background: #f4f5f9;
  border-left: 3px solid #c7c9d1;
  transition: background .15s, border-color .15s;
}
.cat-group-head:hover { background: #eceef5; }
.cat-group-head.open {
  background: #eef2ff;
  border-left-color: var(--primary);
  border-bottom: 1px solid #e3e6f5;
}

.cat-group-arrow {
  font-size: 10px;
  color: #9aa0ae;
  width: 9px;
  flex: none;
  line-height: 1;
}
.cat-group-head.open .cat-group-arrow { color: var(--primary); }

.cat-group-name {
  font-size: 14px;
  font-weight: 700;
  color: #1f2430;
  letter-spacing: .2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cat-group-head.open .cat-group-name { color: var(--primary-dark, #4338ca); }

.cat-group-picked {
  margin-left: auto;
  flex: none;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
  border-radius: 4px;
  padding: 2px 6px;
  line-height: 1.35;
}

.cat-group-num {
  flex: none;
  font-size: 11px;
  color: #9aa0ae;
  font-variant-numeric: tabular-nums;
}
.cat-group-picked ~ .cat-group-num { margin-left: 0; }
.cat-group-head:not(.has-picked) .cat-group-num { margin-left: auto; }

.cat-group-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  padding: 10px 12px 12px;
  background: #fff;
}
@media (min-width: 420px) { .cat-group-body { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.cat-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 9px;
  border: 1px solid #dfe2ea;
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
  font-size: 12.5px;
  line-height: 1.25;
  color: #2c3140;
  transition: border-color .12s, background .12s;
  min-width: 0;
}
.cat-pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-pill input {
  flex: none;
  width: 15px;
  height: 15px;
  accent-color: var(--primary);
  margin: 0;
  cursor: pointer;
}
.cat-pill:hover { border-color: #b9c0d4; background: #fafbfe; }
.cat-pill.checked {
  border-color: var(--primary);
  background: #eef2ff;
  color: var(--primary-dark, #4338ca);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--primary);
}

/* v192: 高频项目「常用」标 */
.cat-pill.hot { border-color: #d9dcf0; background: #fbfbfe; }
.cat-pill.hot:hover { border-color: #b9c0d4; }
.cat-pill .cat-hot {
  margin-left: auto;
  flex: none;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--primary);
  background: #eef2ff;
  border-radius: 3px;
  padding: 0 4px;
  letter-spacing: .3px;
  overflow: visible;
}
.cat-pill.checked .cat-hot { color: #fff; background: var(--primary); }

.cat-groups-tip { line-height: 1.55; }

/* ==================== v192: 学员做题情况 快速查询 ==================== */
.quick-stats-card {
  border: 1px solid #c9d2f7;
  background: linear-gradient(180deg, #f7f8ff 0%, #fff 72%);
  box-shadow: 0 1px 2px rgba(67, 56, 202, .06);
}
.quick-stats-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.quick-stats-head h3 { margin: 0; color: #312e81; }
.quick-stats-hint { font-size: 11.5px; color: #8b8fa3; }

.quick-stats-bar { display: flex; gap: 8px; align-items: stretch; }
.quick-stats-bar .form-input { flex: 1; min-width: 0; }
.quick-stats-bar .btn { flex: none; white-space: nowrap; }
@media (max-width: 380px) {
  .quick-stats-bar { flex-direction: column; }
  .quick-stats-bar .btn { width: 100%; }
}

.qs-list { margin-top: 9px; border-top: 1px dashed #e2e5f3; }
.qs-tip { font-size: 11.5px; color: #8b8fa3; padding: 7px 0 2px; }
.qs-empty { font-size: 12.5px; color: #8b8fa3; margin: 9px 0 0; }

.qs-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 6px;
  border-bottom: 1px solid #f1f2f7;
  cursor: pointer;
  transition: background .12s;
}
.qs-row:last-child { border-bottom: none; }
.qs-row:hover { background: #f5f7ff; }

.qs-main { display: flex; align-items: center; gap: 7px; min-width: 0; }
.qs-sub { display: flex; align-items: center; gap: 8px; min-width: 0; padding-left: 1px; }

.qs-name { font-size: 13.5px; font-weight: 700; color: #1f2430; flex: none; }
.qs-phone {
  font-size: 12px;
  color: #5b6072;
  font-variant-numeric: tabular-nums;
  flex: none;
}
.qs-cats {
  font-size: 11.5px;
  color: #8b8fa3;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.qs-badge {
  flex: none;
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 700;
  color: #15803d;
  background: #ecfdf3;
  border-radius: 3px;
  padding: 1px 5px;
}
.qs-badge.off { color: #b91c1c; background: #fef2f2; }
.qs-go { flex: none; font-size: 11.5px; font-weight: 700; color: var(--primary); }


/* ==================== v194 做题排行 ==================== */
.rank-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
@media (max-width: 480px) {
  .rank-kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.rank-kpi {
  background: #fff;
  border: 1px solid #eceef4;
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
}
.rank-kpi-num {
  font-size: 19px;
  font-weight: 700;
  color: #1f2430;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.rank-kpi-lab { font-size: 11px; color: #8b8fa3; margin-top: 3px; }

.rank-tabs { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.rank-tab {
  border: 1px solid #dfe1e8;
  background: #fff;
  color: #5b6072;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
}
.rank-tab.active {
  border-color: var(--primary);
  background: #eef2ff;
  color: var(--primary-dark, #4338ca);
}

.rank-note {
  background: #f7f8fc;
  border-radius: 8px;
  padding: 9px 11px;
  font-size: 12px;
  color: #4b5063;
  line-height: 1.6;
  margin-bottom: 10px;
}
.rank-note .muted { color: #8b8fa3; }

.rank-filters { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.rank-filters .form-select,
.rank-filters .form-input { flex: 1; min-width: 108px; font-size: 13px; }

.rank-table-wrap { overflow-x: auto; }
.rank-table { width: 100%; font-size: 13px; border-collapse: collapse; }
.rank-table th {
  font-size: 11.5px;
  color: #8b8fa3;
  font-weight: 600;
  white-space: nowrap;
  padding: 6px;
  text-align: left;
}
.rank-table td { padding: 8px 6px; border-bottom: 1px solid #f1f2f7; vertical-align: middle; }
.rank-table tr:last-child td { border-bottom: none; }

.rank-no {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #8b8fa3;
  background: #f4f5f9;
}
.rank-no.r1 { background: #fef3c7; color: #b45309; }
.rank-no.r2 { background: #e9edf3; color: #556070; }
.rank-no.r3 { background: #fde8d7; color: #b45309; }

.rank-name { font-weight: 700; color: var(--primary); cursor: pointer; }
.rank-sub { font-size: 11px; color: #9aa0b3; margin-top: 1px; }
.rank-batch { font-size: 12.5px; color: #3f4557; }
.rank-main { font-size: 14px; color: #1f2430; font-variant-numeric: tabular-nums; }
.rank-foot { font-size: 11.5px; padding: 8px 2px 2px; }

.rank-entry {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #eef2ff 0%, #f7f8ff 100%);
  border: 1px solid #dfe4ff;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
  cursor: pointer;
}
.rank-entry-title { font-size: 14px; font-weight: 700; color: var(--primary-dark, #4338ca); }
.rank-entry-sub { font-size: 11.5px; color: #6b7188; margin-top: 2px; }
.rank-entry-go { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--primary); flex: none; }

.rank-batch, .rank-sub {
  max-width: 132px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 560px) {
  .rank-table th:nth-child(6), .rank-table td:nth-child(6) { display: none; }
  .rank-batch, .rank-sub { max-width: 96px; }
  .rank-no { width: 20px; height: 20px; font-size: 11.5px; }
}

/* ==================== v197 体验版题库 ==================== */
.demo-page { max-width: 500px; margin: 0 auto; padding: 0 0 26px; }
.demo-hero { background: linear-gradient(135deg, #4f46e5, #7c3aed); color: #fff; padding: 32px 22px 30px; border-radius: 0 0 24px 24px; }
.demo-hero-end { background: linear-gradient(135deg, #0f766e, #0d9488); }
.demo-kicker { font-size: 12.5px; letter-spacing: 1px; opacity: .86; font-weight: 600; }
.demo-hero h1 { font-size: 22px; line-height: 1.35; margin: 10px 0 8px; font-weight: 800; }
.demo-hero p { font-size: 13.5px; line-height: 1.7; opacity: .93; }
.demo-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.demo-facts span { background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 4px 12px; font-size: 12px; }
.demo-form { background: var(--card); margin: -16px 14px 0; border-radius: 16px; padding: 18px 16px; box-shadow: var(--shadow); }
.demo-field { margin-bottom: 13px; }
.demo-field label { display: block; font-size: 12.5px; color: var(--text-hint); margin-bottom: 6px; font-weight: 600; }
.demo-field .form-input { width: 100%; }
.demo-start { margin-top: 6px; padding: 13px; font-size: 16px; }
.demo-tip { font-size: 12px; color: var(--text-hint); line-height: 1.65; margin-top: 12px; }
.demo-contact { text-align: center; font-size: 12.5px; color: var(--text-hint); margin-top: 16px; }
.demo-contact a { color: var(--primary); font-weight: 700; text-decoration: none; }
.demo-back { text-align: center; font-size: 12.5px; margin-top: 10px; }
.demo-back a { color: var(--text-hint); text-decoration: none; }
.demo-loading { text-align: center; color: var(--text-hint); font-size: 13px; padding: 14px 0; }
/* 登录页体验入口 */
.demo-entry { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 11px 12px; border-radius: 12px; background: linear-gradient(135deg, #fff7ed, #ffedd5); border: 1px solid #fed7aa; cursor: pointer; }
.demo-entry-tag { flex: none; background: #ea580c; color: #fff; font-size: 11px; font-weight: 700; border-radius: 6px; padding: 2px 7px; }
.demo-entry-main { flex: 1; min-width: 0; }
.demo-entry-title { font-size: 13.5px; font-weight: 700; color: #9a3412; }
.demo-entry-sub { font-size: 11.5px; color: #b45309; margin-top: 2px; }
.demo-entry-arrow { color: #ea580c; font-weight: 700; font-size: 16px; }
/* 体验中横幅 */
.demo-banner { background: linear-gradient(135deg, #fff7ed, #ffedd5); border: 1px solid #fdba74; border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; }
.demo-banner-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.demo-badge { background: #ea580c; color: #fff; font-size: 11px; font-weight: 700; border-radius: 6px; padding: 2px 7px; }
.demo-banner-cat { font-size: 13px; font-weight: 700; color: #9a3412; }
.demo-banner-time { margin-left: auto; font-size: 12px; font-weight: 700; color: #c2410c; }
.demo-banner-sub { font-size: 12px; color: #b45309; margin-top: 5px; line-height: 1.5; }
.demo-banner-btn { margin-top: 9px; width: 100%; border: none; background: #ea580c; color: #fff; font-size: 13.5px; font-weight: 700; padding: 9px; border-radius: 10px; cursor: pointer; }
.demo-mini-tag { display: inline-block; background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.45); border-radius: 6px; padding: 0 5px; font-size: 10.5px; font-weight: 700; margin-left: 4px; vertical-align: middle; }
.demo-enroll-card { border: 1px solid #fdba74; background: linear-gradient(135deg, #fff7ed, #ffedd5); }
.demo-enroll-card .home-card-title { color: #9a3412; }
.demo-enroll-card .home-card-sub { color: #b45309; }
.demo-end-list { margin-bottom: 16px; }
.demo-end-list > div { display: flex; flex-direction: column; padding: 9px 0; border-bottom: 1px solid var(--border); }
.demo-end-list > div:last-child { border-bottom: none; }
.demo-end-list b { font-size: 13.5px; color: var(--text); }
.demo-end-list span { font-size: 12px; color: var(--text-hint); margin-top: 2px; }
