/* 试题详情页（服务端渲染）独立样式：与 SPA 视觉体系一致（蓝 #2563eb / 白卡 / 圆角阴影） */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f1f5f9;
  color: #1e293b;
  line-height: 1.7;
}
.site-hd {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 20px; background: #fff; border-bottom: 1px solid #e2e8f0;
  position: sticky; top: 0; z-index: 10;
}
.site-hd .logo { font-size: 18px; font-weight: 700; color: #2563eb; text-decoration: none; }
.site-hd .hd-link { margin-left: auto; color: #475569; text-decoration: none; font-size: 14px; }
.site-hd .hd-link:hover { color: #2563eb; }
.wrap { max-width: 820px; margin: 24px auto; padding: 0 16px; }

/* 面包屑 */
.crumb {
  font-size: 13px; color: #64748b; margin-bottom: 14px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px;
}
.crumb a { color: #475569; text-decoration: none; }
.crumb a:hover { color: #2563eb; }
.crumb .sep { margin: 0 4px; color: #cbd5e1; }

/* 试题卡片 */
.q-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 14px;
  padding: 24px 26px; box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.q-stem { font-size: 20px; font-weight: 600; line-height: 1.8; margin: 0 0 16px; white-space: pre-wrap; }
.q-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.q-tags .tag {
  font-size: 12px; color: #334155; background: #f1f5f9;
  border: 1px solid #e2e8f0; border-radius: 999px; padding: 3px 10px;
}
.q-options { margin: 0 0 18px; }
.q-options .opts { list-style: none; margin: 0; padding: 0; }
.q-options .opt {
  display: flex; align-items: baseline; gap: 10px; padding: 10px 12px;
  border: 1px solid #e2e8f0; border-radius: 10px; margin-bottom: 8px; background: #f8fafc;
}
.q-options .opt.correct { background: #ecfdf5; border-color: #6ee7b7; }
.q-options .lab { font-weight: 700; color: #2563eb; min-width: 22px; }
.q-options .ct { flex: 1; white-space: pre-wrap; }
.q-options .mk { font-size: 12px; color: #059669; font-weight: 600; }
.ans {
  background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 10px;
  padding: 12px 14px; font-size: 15px; white-space: pre-wrap;
}
.analysis { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px 14px; margin-top: 10px; white-space: pre-wrap; }

/* 相关试题推荐 */
.rel {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 14px;
  padding: 18px 20px; margin-top: 18px; box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.rel-hd { font-size: 16px; font-weight: 700; margin: 0 0 12px; color: #0f172a; }
.rel-hd::before { content: "📚 "; }
.rel-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rel-item a {
  display: block; padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 10px;
  color: #334155; text-decoration: none; font-size: 14px; line-height: 1.5;
  background: #f8fafc; transition: all .15s ease;
}
.rel-item a:hover { border-color: #bfdbfe; background: #eff6ff; color: #2563eb; }

/* 上一题 / 下一题 导航 */
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; }
.pg {
  flex: 1; text-align: center; padding: 11px 14px; border-radius: 10px; text-decoration: none;
  font-size: 14px; font-weight: 600; transition: all .15s ease;
}
.pg.prev { background: #fff; color: #2563eb; border: 1px solid #bfdbfe; }
.pg.prev:hover { background: #eff6ff; }
.pg.next { background: #2563eb; color: #fff; border: 1px solid #2563eb; }
.pg.next:hover { background: #1d4ed8; }
.pg.disabled { background: #f1f5f9; color: #94a3b8; border: 1px solid #e2e8f0; cursor: not-allowed; }

/* 操作按钮 */
.actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 9px 16px; border-radius: 10px; text-decoration: none;
  background: #2563eb; color: #fff; font-size: 14px; font-weight: 600;
}
.btn:hover { background: #1d4ed8; }
.btn.ghost { background: #fff; color: #2563eb; border: 1px solid #bfdbfe; }
.btn.ghost:hover { background: #eff6ff; }
.site-ft { text-align: center; color: #94a3b8; font-size: 12px; margin-top: 28px; }

/* 响应式：移动端（≤640px）单列、缩小留白 */
@media (max-width: 640px) {
  .site-hd { padding: 12px 14px; }
  .wrap { margin: 14px auto; padding: 0 12px; }
  .q-card { padding: 18px 16px; border-radius: 12px; }
  .q-stem { font-size: 17px; line-height: 1.7; }
  .rel { padding: 14px 14px; }
  .rel-list { grid-template-columns: 1fr; }
  .pager { flex-direction: column; }
  .pg.next { order: -1; }
  .actions .btn { flex: 1; text-align: center; }
}
