/* ============================================
   card-block.css
   通用卡片模块样式（Card Block Styles）
   适用于首页或其他页面的卡片型分区模块
   ============================================ */

.section.transparent {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}


/* ---- 卡片外层容器 ---- */
.cb-card {
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

/* ---- 卡片头部：轻量留白 + 细分割线（避免厚重渐变条） ---- */
.cb-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 20px 14px;
  background: linear-gradient(180deg, #fcfdff 0%, #f6f8fb 100%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

.cb-card-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.cb-card-header-right {
  display: flex;
  align-items: center;
  /* 垂直居中对齐 */
  gap: 10px;
  flex-wrap: nowrap;
  /* 不换行 */
}


.cb-card-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  color: #1d6bff;
  background: linear-gradient(145deg, rgba(47, 137, 255, 0.14), rgba(47, 137, 255, 0.05));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.cb-card-icon svg {
  width: 20px;
  height: 20px;
  display: block;
  flex-shrink: 0;
}

.cb-card-title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #0f172a;
}

.cb-card-more {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 500;
  color: #2563eb !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  margin: 0 -4px 0 0;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}

.cb-card-more:hover {
  text-decoration: none;
  color: #1d4ed8 !important;
  background: rgba(37, 99, 235, 0.08);
}

/*-- 头部-下拉框样式 --*/
.cb-card-select {
  flex: 0 0 auto;
  /* 不收缩，不拉伸，宽度由内容决定 */
  width: auto;
  /* 让它按内容自适应 */
  appearance: none;
  /* 去掉系统默认箭头 */
  -webkit-appearance: none;
  -moz-appearance: none;
  background: #fff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="6" viewBox="0 0 10 6"><path fill="%232f6fff" d="M0 0l5 6 5-6z"/></svg>') no-repeat right 10px center;
  background-size: 10px;
  border: 1px solid #d0ddf5;
  border-radius: 8px;
  padding: 6px 30px 6px 12px;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.cb-card-select:hover {
  border-color: #b6cdfa;
  box-shadow: 0 0 0 2px rgba(47, 111, 255, 0.1);
}

.cb-card-select:focus {
  outline: none;
  border-color: #2f6fff;
  box-shadow: 0 0 0 2px rgba(47, 111, 255, 0.15);
}



/* ---- 卡片内容主体 ---- */
.cb-card-body {
  padding: 16px 20px 20px;
}


.cb-card {
  border-radius: 14px;
  overflow: visible;
}

.cb-card-header {
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  overflow: visible;
}

.cb-card-body {
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  overflow: hidden;
}


.cb-item-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 14px 5px;
  padding: 6px;
  max-height: 600px;
  overflow-y: auto;
}

/* ---- 单个圆角按钮块 ---- */
.cb-item-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: #2f89ff;
  color: #fff;
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.04s ease, background 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
  box-shadow: 0 2px 6px rgba(47, 137, 255, 0.18);
}

.cb-item-pill:hover {
  background: #1e6fe0;
}

.cb-item-pill:active {
  transform: translateY(1px);
}

.cb-item-pill--icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  padding: 0 10px;
}

/* 大厂笔试：对齐刷题中心「近期刷过」chip，整体更紧凑（题库数量多） */
.cb-card-body--company-tests {
  padding-top: 12px;
}

.cb-company-ps-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 6px;
  max-height: 360px;
  overflow-y: auto;
  padding: 2px 0;
}

.cb-company-ps-chip {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-height: 34px;
  padding: 6px 8px;
  background: #f7f8fa;
  border: 1px solid #e8eaed;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #24324d !important;
  text-decoration: none !important;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
  min-width: 0;
}

.cb-company-ps-chip:hover {
  background: #f0f2f5;
  border-color: #d0d7e0;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
}

.cb-company-ps-icon {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  object-fit: cover;
  flex-shrink: 0;
}

.cb-company-ps-icon--default {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  flex-shrink: 0;
  background: linear-gradient(145deg, #eceff3, #e2e6ec);
  color: #5c6b86;
}

.cb-company-ps-icon--default svg {
  display: block;
}

.cb-company-ps-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  line-height: 1.25;
}

/* 路线图（首页卡片 /home/roadmap）：与刷题中心「近期刷过」chip 尺寸与配色一致 */
.cb-card-body--roadmap-home {
  padding-top: 12px;
}

.cb-roadmap-ps-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}

.cb-card-body--roadmap-home .cb-roadmap-ps-list {
  max-height: 420px;
  overflow-y: auto;
  padding: 2px 0;
}

.cb-roadmap-ps-chip {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 12px 16px;
  min-height: 48px;
  background: #f7f8fa;
  border: 1px solid #e8eaed;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #24324d !important;
  text-decoration: none !important;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  min-width: 0;
}

.cb-roadmap-ps-chip:hover {
  background: #f0f2f5;
  border-color: #d0d7e0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.cb-roadmap-ps-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.cb-roadmap-ps-icon--default {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  flex-shrink: 0;
  background: linear-gradient(145deg, #eceff3, #e2e6ec);
  color: #5c6b86;
}

.cb-roadmap-ps-icon--default svg {
  display: block;
}

.cb-roadmap-ps-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.cb-roadmap-ps-list--page {
  max-height: none;
  overflow: visible;
}

/* =========================
   List Tiles inside cb-card
   ========================= */

/* 头部右侧操作按钮区 */
.cb-card-actions {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
}

.cb-card-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6b7a99;
  text-decoration: none;
}

.cb-card-action:hover {
  color: #2f6fff;
}

/* 小卡片网格 —— 默认 4 列（和截图相近） */
.cb-tile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px 16px;
}

/* 单个小卡片 */
.cb-tile {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #cce8d4;
  /* ✅ 改为柔和绿色边框 */
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
  cursor: pointer;
  transition: box-shadow .15s ease, transform .04s ease, border-color .15s ease, background .15s ease;
}

.cb-tile:hover {
  border-color: #8fd6a5;
  /* ✅ 悬停时更亮的绿色边框 */
  box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
}


.cb-tile:active {
  transform: translateY(1px);
}

/* 左侧编号圆 */
.cb-tile-number {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #2f89ff;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* 标题与元信息 */
.cb-tile-title {
  font-size: 14px;
  font-weight: 600;
  color: #2b2f36;
  line-height: 1.35;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.cb-tile-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #9aa7bd;
  font-size: 12px;
  margin-top: 6px;
}

/* 右上角徽标（如：热门） */
.cb-badge {
  position: absolute;
  top: 10px;
  right: 12px;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 11px;
  color: #ff5a5a;
  background: rgba(255, 90, 90, .1);
}

/* 高亮卡：左侧渐变条 + 淡底色（与截图第一张相似） */
.cb-tile--active {
  background: linear-gradient(90deg, #fff5f5 0%, #ffffff 40%);
  border-color: #ffd7d7;
}

.cb-tile--active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, #ff9f9f 0%, #ff6b6b 100%);
}

/* 可选：小图标容器（放右侧第三列） */
.cb-tile-trailing {
  color: #9aa7bd;
  font-size: 12px;
}

/* —— 响应式（可选） —— */
@media (max-width: 1280px) {
  .cb-tile-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 960px) {
  .cb-tile-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .cb-tile-grid {
    grid-template-columns: 1fr;
  }
}



/* =========================
   Media Tiles (thumb + text)
   ========================= */

/* 网格容器：保持和小卡片网格一致，可按需改列数 */
.cb-media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* 如图一行 3 个 */
  gap: 14px 16px;
}

/* 单个媒体卡片：左图右文 */
.cb-media-tile {
  display: grid;
  grid-template-columns: 64px 1fr;
  /* 左侧缩略图固定宽，右侧自适应 */
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #cce8d4;
  /* 你之前统一的淡绿色边框 */
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
  cursor: pointer;
  transition: box-shadow .15s ease, transform .04s ease, border-color .15s ease, background .15s ease;
}

.cb-media-tile:hover {
  border-color: #8fd6a5;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
}

.cb-media-tile:active {
  transform: translateY(1px);
}

/* 缩略图：保持方形、圆角、覆盖裁剪 */
.cb-media-thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  background: #f2f4f8;
  /* 占位底色，防闪烁 */
}

/* 右侧文本区：标题 + 简介 */
.cb-media-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  /* ✅ 从上方开始排列 */
  align-self: flex-start;
  /* ✅ 让右侧文本块与左侧图片顶部对齐 */
  min-width: 0;
  /* 保留省略号功能 */
}


.cb-media-title {
  font-size: 14px;
  font-weight: 700;
  color: #2b2f36;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  /* 单行省略 */
  margin-bottom: 6px;
}

.cb-media-desc {
  font-size: 12px;
  color: #8a96a9;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  /* 2 行截断 */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 响应式：窄屏改两列/一列 */
@media (max-width: 1024px) {
  .cb-media-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .cb-media-grid {
    grid-template-columns: 1fr;
  }
}


/* 让媒体卡片可以放绝对定位的徽标 */
.cb-media-tile {
  position: relative;
  /* 新增：用于定位右上角徽标 */
}

/* 右上角徽标（热门） */
.cb-media-badge {
  position: absolute;
  top: 8px;
  right: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
  font-weight: 600;
  /* 主题：暖色系更醒目，也可换成你的绿色主题 */
  color: #ff5a5a;
  background: linear-gradient(180deg, #fff2e9 0%, #ffe4d4 100%);
  border: 1px solid #ffc6a7;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
  pointer-events: none;
  /* 不挡点击 */
}

/* ==============================
   单图相框（center + hover zoom）
   ============================== */
.cb-photo-single {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4 / 3;
  border-radius: 12px;

  /* ✅ 柔和边框绿色：低饱和度 + 高亮度 */
  border: 1px solid #dceee1;
  /* 浅淡绿色，几乎白中带绿 */

  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

/* 图片 */
.cb-photo-single img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
  transform: scale(1);
}

/* 微信联系：标题旁图标按钮展开二维码（与头部蓝色体系一致） */
.cb-contact-qr__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #2563eb;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.cb-contact-qr__toggle:hover {
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
}

.cb-contact-qr__toggle[aria-expanded="true"] {
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
}

.cb-contact-qr__toggle:focus {
  outline: none;
}

.cb-contact-qr__toggle:focus-visible {
  box-shadow: 0 0 0 2px rgba(47, 111, 255, 0.25);
}

.cb-contact-qr__chevron {
  display: block;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.cb-contact-qr__toggle[aria-expanded="true"] .cb-contact-qr__chevron {
  transform: rotate(180deg);
}

.cb-contact-qr__panel {
  width: 100%;
  max-width: 480px;
}

/* 折叠且无可视内容时不占用卡片主体留白 */
.cb-card-body--wx-contact:has(#wx-contact-qr-panel[hidden]) {
  padding: 0;
}

.cb-contact-qr__panel .cb-photo-single {
  border-color: #dbe7fa;
  background: #fafbfd;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  padding: 10px;
  box-sizing: border-box;
}


/* ==============================
   笔试卡片样式 (Exam Card)
   ============================== */
.cb-exam-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  background: #fff;
  border: 1px solid #dbe7fa;
  /* ✅ 淡蓝色外线 */
  border-radius: 10px;
  padding: 10px 10px 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
}

.cb-exam-card:hover {
  border-color: #bcd2f7;
  /* hover 时略深蓝 */
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

/* 标题 */
.cb-exam-title {
  font-size: 14px;
  font-weight: 700;
  color: #2b2f36;
  margin-bottom: 8px;
  line-height: 1.4;
  width: 100%;
  /* ✅ 需要固定宽度或占满容器 */
  white-space: nowrap;
  /* 不换行 */
  overflow: hidden;
  /* 隐藏溢出部分 */
  text-overflow: ellipsis;
  /* 超出显示省略号 */
  cursor: pointer;
}


/* 链接列表容器 */
.cb-exam-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 70%;
  align-items: flex-start;
  margin-left: 20%;
  /* 另一种方式 */
}


/* 单条链接样式 */
.cb-exam-link {
  font-size: 14px;
  color: #2f89ff !important;
  /* ✅ 蓝色字体 */
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 600;
  cursor: pointer;
}

.cb-exam-link:hover {
  color: #1e6fe0 !important;
  /* hover 深蓝 */
  text-decoration: underline;
}

/* 网格布局（如果一行放多个卡片） */
.cb-exam-grid {
  /* grid-auto-rows: var(--exam-card-h);  删掉或注释 */
  grid-auto-rows: auto;
  /* 或 minmax(min-content, auto) */
  max-height: 260px;
  /* 视口高度你原来怎么控制就保留 */
  overflow-y: auto;
  padding-right: 4px;
}

@media (max-width: 1024px) {
  .cb-exam-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .cb-exam-grid {
    grid-template-columns: 1fr;
  }
}



/* ===== 控制可见高度：约两张卡片，内部滚动 ===== */

/* 可调参数：一张卡片的行高 & 卡片间距 */
:root {
  --exam-card-h: 120px;
  /* ❗️卡片可见高度（按你页面实际调整 110~140 都可） */
  --exam-gap: 12px;
  /* 与 .cb-exam-grid 的 gap 保持一致 */
}

.cb-exam-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  justify-items: center;
  gap: 10px;
  overflow-y: auto;
  overflow-x: hidden;
  /* ✅ 禁止左右滚动 */
  box-sizing: border-box;
}

.cb-exam-card {
  width: 220px;
  max-width: 90%;
  box-sizing: border-box;
  /* ✅ 防止撑宽 */
}

/* 3) 文本处理更稳（长标题/长链接省略） */
.cb-exam-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cb-exam-link {
  display: inline-block;
  max-width: 92%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 只让带有这个修饰类的 body 出现内部滚动 */
.cb-card-body--scroll {
  max-height: 260px;
  /* 调整可见高度：能露出几张卡就改这里 */
  overflow-y: auto;
  /* 竖向滚动 */
  padding-right: 4px;
  /* 给滚动条留点空间 */
}

/* 网格自身不滚动，交给上层 body */
.cb-card-body--scroll .cb-exam-grid {
  overflow: visible;
}



/* ==============================
   用户反馈卡片 (Feedback Card)
   ============================== */
.cb-feedback-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, #f0fff4 0%, #e6f8ff 100%);
  /* ✅ 渐变背景 */
  backdrop-filter: blur(8px);
  /* ✅ 虚化背景效果 */
  border: 1px solid rgba(190, 230, 210, 0.6);
  padding: 24px 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* 标题 */
.cb-feedback-title {
  font-size: 16px;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}

/* 文本说明 */
.cb-feedback-text {
  font-size: 14px;
  color: #333;
  margin-bottom: 16px;
  line-height: 1.5;
}

/* 按钮 */
.cb-feedback-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(145deg, #34d058, #28a745);
  color: #fff;
  border-radius: 999px;
  /* ✅ 完全圆形 */
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3);
  transition: all 0.25s ease;
}

.cb-feedback-btn-icon {
  flex-shrink: 0;
  opacity: 0.95;
}

.cb-feedback-btn:hover {
  background: linear-gradient(145deg, #2eb94d, #1f943c);
  box-shadow: 0 6px 14px rgba(40, 167, 69, 0.4);
  transform: scale(1.05);
}

.cb-feedback-btn {
  color: #fff !important;
  /* ✅ 白色文字 */
}

/* 通用：卡片容器 */
.theme--dark .cb-card {
  background: #1f222a;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
}

/* 卡片头部：中性深灰层次，避免蓝紫底 */
.theme--dark .cb-card-header {
  background: linear-gradient(180deg, #2a2a2e 0%, #1f1f22 100%);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.theme--dark .cb-card-icon {
  color: #d4d4d8;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* 标题 & 文本颜色 */
.theme--dark .cb-card-title {
  color: #f4f4f5;
}

.theme--dark .cb-card-more {
  color: #d4d4d8 !important;
}

.theme--dark .cb-card-more:hover {
  color: #fafafa !important;
  background: rgba(255, 255, 255, 0.08);
}

/* 头部右侧动作 */
.theme--dark .cb-card-actions {
  color: #a1a1aa;
}

.theme--dark .cb-card-action {
  color: #a1a1aa;
}

.theme--dark .cb-card-action:hover {
  color: #e4e4e7;
}

/* 下拉框：背景 & 边框深色（与表头一致的中性色） */
.theme--dark .cb-card-select {
  background: #2c2c30
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="6" viewBox="0 0 10 6"><path fill="%23a1a1aa" d="M0 0l5 6 5-6z"/></svg>')
    no-repeat right 10px center;
  background-size: 10px;
  border-color: #3f3f46;
  color: #e4e4e7;
}

.theme--dark .cb-card-select:hover {
  border-color: #52525b;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.06);
}

.theme--dark .cb-card-select:focus {
  border-color: #71717a;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

/* 卡片主体背景与滚动区域 */
.theme--dark .cb-card-body {
  background: #1f2021;
}

.theme--dark .cb-card-body--scroll {
  background: #181a1f;
}

/* 圆角 pill 按钮 */
.theme--dark .cb-item-pill {
  background: #2f89ff;
  box-shadow: 0 2px 6px rgba(47, 137, 255, 0.4);
  color: #f5f7ff;
}

.theme--dark .cb-item-pill:hover {
  background: #1e6fe0;
}

.theme--dark .cb-company-ps-chip {
  background: #323334;
  border-color: #395348;
  color: #d1dae8 !important;
}

.theme--dark .cb-company-ps-chip:hover {
  border-color: #4a6b55;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
}

.theme--dark .cb-company-ps-icon--default {
  background: linear-gradient(145deg, #323845, #2a303a);
  color: #9aa8c4;
}

.theme--dark .cb-roadmap-ps-chip {
  background: #323334;
  border-color: #395348;
  color: #d1dae8 !important;
}

.theme--dark .cb-roadmap-ps-chip:hover {
  background: #323334;
  border-color: #395348;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.theme--dark .cb-roadmap-ps-icon--default {
  background: linear-gradient(145deg, #323845, #2a303a);
  color: #9aa8c4;
}

/* 小卡片 tile */
.theme--dark .cb-tile {
  background: #22252f;
  border-color: #395348; /* 深一点的绿色边 */
  box-shadow: 0 2px 10px rgba(0, 0, 0, .5);
}

.theme--dark .cb-tile:hover {
  border-color: #4fa36f;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .7);
}

.theme--dark .cb-tile-number {
  background: #2f89ff;
  color: #f5f7ff;
}

.theme--dark .cb-tile-title {
  color: #f1f5ff;
}

.theme--dark .cb-tile-meta {
  color: #7c8aa4;
}

/* 高亮卡片 */
.theme--dark .cb-tile--active {
  background: linear-gradient(90deg, #3a2527 0%, #22252f 40%);
  border-color: #d87c80;
}

.theme--dark .cb-tile--active::before {
  background: linear-gradient(180deg, #ff9f9f 0%, #ff6b6b 100%);
}

/* 右上角徽标 */
.theme--dark .cb-badge {
  color: #ff9b9b;
  background: rgba(255, 90, 90, .18);
}

/* 媒体卡片 (图 + 文) */
.theme--dark .cb-media-tile {
  background: #323334;
  border-color: #395348;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .5);
}

.theme--dark .cb-media-tile:hover {
  border-color: #4fa36f;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .7);
}

.theme--dark .cb-media-thumb {
  background: #2b2f36;
}

.theme--dark .cb-media-title {
  color: #f1f5ff;
}

.theme--dark .cb-media-desc {
  color: #a0aec0;
}

/* 媒体徽标 */
.theme--dark .cb-media-badge {
  color: #ffb38a;
  background: linear-gradient(180deg, #3a2920 0%, #41271f 100%);
  border-color: #804f37;
}

/* 单图相框 */
.theme--dark .cb-photo-single {
  background: #181a1f;
  border-color: #36443a;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .6);
}

.theme--dark .cb-photo-single img {
  /* 图片本身一般保持不变，必要时可以略微提亮 */
  transform: scale(1);
}

.theme--dark .cb-contact-qr__toggle {
  color: #7aa2ff;
}

.theme--dark .cb-contact-qr__toggle:hover,
.theme--dark .cb-contact-qr__toggle[aria-expanded="true"] {
  background: rgba(91, 140, 255, 0.12);
  color: #a8c4ff;
}

.theme--dark .cb-contact-qr__toggle:focus-visible {
  box-shadow: 0 0 0 2px rgba(91, 140, 255, 0.35);
}

.theme--dark .cb-contact-qr__panel .cb-photo-single {
  border-color: #3c4b68;
  background: #1a1d24;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* 笔试卡片 Exam Card */
.theme--dark .cb-exam-card {
  background: #323334;
  border-color: #3c4b68;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .5);
}

.theme--dark .cb-exam-card:hover {
  border-color: #50648c;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .75);
}

.theme--dark .cb-exam-title {
  color: #f1f5ff;
}

.theme--dark .cb-exam-link {
  color: #7aa2ff !important;
}

.theme--dark .cb-exam-link:hover {
  color: #a5bfff !important;
}

/* 用户反馈卡 Feedback Card */
.theme--dark .cb-feedback-card {
  background: linear-gradient(135deg, #15231b 0%, #111a22 100%);
  border: 1px solid rgba(100, 160, 130, 0.7);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.7);
}

.theme--dark .cb-feedback-title {
  color: #ffffff;
}

.theme--dark .cb-feedback-text {
  color: #d0d7e2;
}

.theme--dark .cb-feedback-btn {
  background: linear-gradient(145deg, #34d058, #28a745);
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.55);
}

.theme--dark .cb-feedback-btn:hover {
  background: linear-gradient(145deg, #2eb94d, #1f943c);
  box-shadow: 0 6px 16px rgba(40, 167, 69, 0.75);
}

/* 透明 section 在深色下保持无阴影/无边框 */
.theme--dark .section.transparent {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* ==============================
   书籍卡片样式 (Book Card)
   图片在上、标题在下的垂直布局
   ============================== */

/* 书籍网格容器 */
.cb-book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  justify-items: center;
  padding: 10px;
}

/* 单个书籍卡片 */
.cb-book-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px;
  max-width: 150px;          /* 卡片最大宽度 */
  background: #fff;
  border: 1px solid #cce8d4;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
  cursor: pointer;
  text-decoration: none;
  transition: box-shadow .15s ease, transform .04s ease, border-color .15s ease;
}

.cb-book-card:hover {
  border-color: #8fd6a5;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
}

.cb-book-card:active {
  transform: translateY(0);
}

/* 书籍封面图片：最大 140x180，等比缩放适配 */
.cb-book-cover {
  width: 100%;              /* 占满卡片宽度 */
  height: auto;
  max-width: 160px;         /* 最大宽度 140 */
  max-height: 180px;        /* 最大高度 180 */
  object-fit: contain;      /* 保持完整图片，等比缩放 */
  border-radius: 8px;
  background: #f2f4f8;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 书籍标题 */
.cb-book-title {
  width: 100%;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #2b2f36;
  line-height: 1.4;
  word-wrap: break-word;
}

/* 深色模式适配 */
.theme--dark .cb-book-card {
  background: #22252f;
  border-color: #395348;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .5);
}

.theme--dark .cb-book-card:hover {
  border-color: #4fa36f;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .7);
}

.theme--dark .cb-book-cover {
  background: #2b2f36;
}

.theme--dark .cb-book-title {
  color: #f1f5ff;
}

/* 响应式 */
@media (max-width: 768px) {
  .cb-book-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}

@media (max-width: 480px) {
  .cb-book-grid {
    grid-template-columns: 1fr;
  }
}
