/* ============================================================================
 * 书语阁 · 书库 / 分类 / 排行榜 / 搜索 四页公共补充样式（book_library.css）
 * ----------------------------------------------------------------------------
 * 只放这四页共用的新组件，类名一律 bk- 前缀；
 * 已有的 .bk-card / .bk-btn / .bk-filter-* / .bk-book-grid / .rank-list /
 * .filter-widget / .bk-pager 等公共类名不重复定义。
 * ==========================================================================*/

/* ============================ 1. 频道 / 位置 条 ============================ */
.bk-locbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 14px;
}
.bk-crumb { font-size: 13px; color: var(--text-secondary); }
.bk-crumb a { color: var(--text-secondary); }
.bk-crumb a:hover { color: var(--primary); }
.bk-crumb .sep { margin: 0 6px; color: #c8d2da; }
.bk-crumb b { color: var(--text); }

.bk-channel-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.bk-channel-tabs a, .bk-channel-tabs span {
  padding: 5px 16px; border-radius: 16px; font-size: 13px; cursor: pointer;
  background: #fff; color: var(--text); box-shadow: var(--shadow); transition: all .16s;
}
.bk-channel-tabs a:hover, .bk-channel-tabs span:hover { color: var(--primary); }
.bk-channel-tabs .active { background: var(--primary); color: #fff; }

/* ============================ 2. 工具条 ============================ */
.bk-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 12px;
}
.bk-view-switch { display: flex; gap: 4px; }
.bk-view-switch span {
  width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 6px; border: 1px solid #e6ebf0; background: #fff; cursor: pointer;
  font-size: 13px; color: var(--text-secondary); transition: all .16s;
}
.bk-view-switch span:hover { border-color: var(--primary-light); color: var(--primary); }
.bk-view-switch span.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.bk-result-meta { font-size: 13px; color: var(--text-secondary); }
.bk-result-meta b { color: var(--primary); font-size: 15px; }

.bk-loading-wrap { padding: 40px; text-align: center; color: var(--text-secondary); }

/* ============================ 3. 侧栏通用 ============================ */
.bk-aside-block { margin-bottom: 18px; }
.bk-cloud { display: flex; flex-wrap: wrap; gap: 0; }
.bk-rank-list .rank-num { flex-shrink: 0; }
.bk-rank-list > li .count { min-width: 52px; }

/* 热门分类 */
.bk-catcloud { display: flex; flex-wrap: wrap; gap: 6px; }
.bk-catcloud a {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 12px;
  background: #f2f5f8; color: var(--text-secondary); font-size: 12px; transition: all .16s;
}
.bk-catcloud a:hover { background: var(--primary); color: #fff; }
.bk-catcloud a i { font-style: normal; font-size: 11px; color: #a6b1bb; }
.bk-catcloud a:hover i { color: rgba(255,255,255,.8); }

/* ============================ 4. 排行榜页 ============================ */
/* ★ 需求①（上一轮）：前三名卡片做「大小限制」。
   - 用一个可缩放的 --hero-scale 统一驱动内边距 / 封面 / 字号，避免大屏被拉伸；
   - 2K 横屏（≥2560px，2560×1440）按需求压到原本的一半（--hero-scale: .5）；
   - 同时给整个 hero 区限宽并居中，超大屏 / 带鱼屏不会把三张卡撑变形。
   ★ 需求 2（本轮）：大卡区从 3 本扩到 5 本，并整体收一档尺寸（--hero-scale: .88），
   让 5 张卡在 1440 宽度内也排得下、不换行、不变形；窄屏按 3 / 2 / 1 列降级。 */
.bk-rank-hero {
  --hero-scale: .88;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px;
  margin-bottom: 18px;
  max-width: 1180px; margin-left: auto; margin-right: auto;
}
.bk-rank-hero .hero-item {
  position: relative; background: var(--card-bg); border-radius: var(--radius);
  box-shadow: var(--shadow); text-align: center;
  padding: calc(18px * var(--hero-scale)) calc(16px * var(--hero-scale)) calc(16px * var(--hero-scale));
  transition: transform .2s, box-shadow .2s;
  /* ★ 本轮（m09564）修复：文字溢出 BUG 的根治点 —— 卡片与文本区都必须能收缩，
     否则中文长书名 / 长简介会把 5 列网格撑破，出现「书卡错位、文字压出卡片」。
     ★ 但这里**不能**用 overflow:hidden：名次徽标 .hero-badge 是 top:-13px 溢出卡片顶部的，
     overflow:hidden 会把徽标裁掉一半（--hero-scale:.5 时更是整个裁没），这正是「卡片错位」的来源。
     真正的防溢出交给 .hero-body{overflow:hidden} + 各文本节点的 line-clamp / overflow-wrap。 */
  min-width: 0;
  display: flex; flex-direction: column;
}
.bk-rank-hero .hero-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.bk-rank-hero .hero-item.no1 { border-top: 3px solid #f1c40f; }
.bk-rank-hero .hero-item.no2 { border-top: 3px solid #bdc3c7; }
.bk-rank-hero .hero-item.no3 { border-top: 3px solid #e67e22; }
.bk-rank-hero .hero-item.no4 { border-top: 3px solid #5dade2; }
.bk-rank-hero .hero-item.no5 { border-top: 3px solid #a569bd; }
/* ★需求 2：5 本同排时文本区必须可收缩，否则中文长书名会把卡片撑破 */
.bk-rank-hero .hero-body { flex: 1 1 auto; width: 100%; min-width: 0; overflow: hidden; }
/* ★需求 2：前 3 名加一枚角标，名次一眼可辨 */
.bk-rank-hero .hero-crown {
  position: absolute; top: calc(8px * var(--hero-scale)); right: calc(8px * var(--hero-scale));
  padding: 1px calc(6px * var(--hero-scale)); border-radius: 8px;
  background: var(--hero-accent, #95a5a6); color: #fff;
  font-size: calc(10px * var(--hero-scale)); font-weight: 700; letter-spacing: .5px;
}
.bk-rank-hero .hero-badge {
  /* ★ 本轮修复：top 原先写死 -13px 不带 --hero-scale，导致 --hero-scale:.5（2K 档）时
     徽标高度只有 13px 却仍在 -13px 位置 → 整枚徽标跑到卡片外面被裁掉。这里改成同比例。 */
  position: absolute; top: calc(-13px * var(--hero-scale)); left: 50%; transform: translateX(-50%);
  width: calc(26px * var(--hero-scale)); height: calc(26px * var(--hero-scale));
  border-radius: 50%; color: #fff; font-size: calc(13px * var(--hero-scale)); font-weight: 700;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow);
  line-height: 1;
}
.bk-rank-hero .no1 .hero-badge { background: #f1c40f; }
.bk-rank-hero .no2 .hero-badge { background: #bdc3c7; }
.bk-rank-hero .no3 .hero-badge { background: #e67e22; }
.bk-rank-hero .hero-cover {
  /* ★ 本轮（m09564 图片五）：封面尺寸由原来的「92×124」严格收到「38×51」——
     面积 1938 / 11408 = 0.1699，即需求原文的「原本六分之一」（上一版 44×59 只有 1/4.4，偏大）。
     想再调整只改下面这两个数字即可。封面宽度是确定值 + margin:auto，所以在 flex 列里居中。 */
  flex: 0 0 auto;
  width: calc(38px * var(--hero-scale)); height: calc(51px * var(--hero-scale));
  max-width: 100%;
  margin: calc(6px * var(--hero-scale)) auto calc(10px * var(--hero-scale));
  border-radius: 6px; overflow: hidden;
  background: #eef1f4; box-shadow: var(--shadow);
}
.bk-rank-hero .hero-cover img { width: 100%; height: 100%; object-fit: cover; }
.bk-rank-hero h4 {
  font-size: calc(15px * var(--hero-scale)); font-weight: 700;
  margin: 0 0 calc(4px * var(--hero-scale));
  /* 书名最多 2 行，超出省略（不再把卡片撑高、把下面的信息挤出去） */
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; word-break: break-word; overflow-wrap: anywhere;
}
.bk-rank-hero h4 a:hover { color: var(--primary); }
.bk-rank-hero .hero-meta {
  font-size: calc(12px * var(--hero-scale)); color: var(--text-secondary);
  margin-bottom: calc(6px * var(--hero-scale));
  max-width: 100%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  word-break: break-word; overflow-wrap: anywhere;
}
.bk-rank-hero .hero-intro {
  font-size: calc(12px * var(--hero-scale)); color: #8b97a3; line-height: 1.6;
  min-height: calc(38px * var(--hero-scale));
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  word-break: break-word; overflow-wrap: anywhere;
}
.bk-rank-hero .hero-stat {
  display: flex; flex-wrap: wrap; justify-content: center; gap: calc(14px * var(--hero-scale));
  margin-top: calc(8px * var(--hero-scale));
  font-size: calc(12px * var(--hero-scale)); color: var(--text-secondary);
  min-width: 0; max-width: 100%;
}
.bk-rank-hero .hero-stat b { color: var(--gold); }

/* 大屏（≥1920px）：适度放宽限宽，5 张卡不必互相挤压 */
@media (min-width: 1920px) {
  .bk-rank-hero { --hero-scale: .92; max-width: 1320px; gap: 16px; }
}
/* ★ 需求①：2K 横屏（2560×1440 及以上）——头名卡片整体缩到原本的一半 */
@media (min-width: 2560px) {
  .bk-rank-hero { --hero-scale: .5; max-width: 760px; gap: 12px; margin-bottom: 14px; }
}
/* 4K 及以上：再收一点，防止缩放后又被 1fr 拉开 */
@media (min-width: 3200px) {
  .bk-rank-hero { --hero-scale: .46; max-width: 720px; }
}
/* ★需求 2：中屏 5 列排不下时降为 3 列（第二行 2 张，最后一张左对齐） */
@media (max-width: 1280px) {
  .bk-rank-hero { grid-template-columns: repeat(3, minmax(0, 1fr)); --hero-scale: .96; max-width: 900px; }
}

.bk-rank-card { padding: 8px 18px 14px; }
.bk-rank-card .bk-list-row:first-child { border-top: none; }
.bk-rank-card .bk-list-row .cover {
  /* ★ 本轮（m09564 图片五）：由 54×72 收到 44×59，与书库紧凑书卡 / hero 封面同一量级，
     整页封面大小统一，「书籍正常显示」。 */
  flex: 0 0 44px; width: 44px; height: 59px;
}
.bk-rank-card .bk-list-row .info h4 { font-size: 15px; margin-bottom: 3px; }
.bk-rank-card .bk-list-row .ops { align-items: center; gap: 12px; }
.bk-rank-card .bk-list-row .rank-num { margin-right: 4px; }

.bk-rank-tip { font-size: 12.5px; color: var(--text-secondary); line-height: 1.9; }
.bk-rank-tip b { color: var(--primary); }
.bk-rank-rule { font-size: 12px; color: #8b97a3; line-height: 1.9; margin-top: 8px; }
.bk-rank-rule code {
  background: #f2f5f8; border-radius: 4px; padding: 1px 5px; font-size: 11.5px; color: var(--primary);
}

/* ============================ 5. 搜索页 ============================ */
.bk-search-panel { padding: 20px 20px 18px; }
.bk-search-form { display: flex; gap: 10px; max-width: 660px; }
.bk-search-form input { flex: 1; }
.bk-search-form .bk-btn { padding: 0 26px; height: 42px; border-radius: var(--radius); }

.bk-rule-box {
  margin-top: 14px; padding: 10px 14px; border-radius: var(--radius);
  background: #f4f8fc; border-left: 3px solid var(--primary-light);
  font-size: 12.5px; color: var(--text-secondary); line-height: 1.9;
}
.bk-rule-box b { color: var(--primary); }
.bk-rule-box .bk-rule-title { font-weight: 700; color: var(--primary); margin-right: 4px; }

.bk-token-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; font-size: 12.5px; color: var(--text-secondary); }
.bk-token-row .bk-tag { margin: 0; }

.bk-sort-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.bk-sort-row .bk-tabs { margin-bottom: 0; flex: 1; }

.bk-hit-badge { margin-left: 6px; }
.bk-hit-badge.lv1, .bk-hit-badge.lv2, .bk-hit-badge.lv3 { background: #e9f7ef; color: #1e8449; }
.bk-hit-badge.lv4, .bk-hit-badge.lv5, .bk-hit-badge.lv6 { background: #e8f4fd; color: #2471a3; }
.bk-hit-badge.lv7, .bk-hit-badge.lv8 { background: #fdf3e3; color: #b9770e; }
.bk-hit-badge.lv9, .bk-hit-badge.lv10 { background: #eef2f6; color: var(--text-secondary); }

.bk-empty-extra { margin-top: 18px; }
.bk-empty-extra .bk-tag { cursor: pointer; }

/* ==================== 5.1 ★需求 2：作品选择 · 热门分类多选 ==================== */
.bk-hotpick { padding: 14px 18px 16px; }
.bk-hotpick-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.bk-hotpick-cap { font-size: 12px; font-weight: 400; color: var(--text-secondary); }
.bk-hotpick-head .more { font-size: 12.5px; font-weight: 400; color: var(--text-secondary); }
.bk-hotpick-head .more b { color: var(--primary); font-size: 14px; }
.bk-hotpick-clear {
  margin-left: 8px; padding: 3px 10px; border-radius: 12px;
  background: #eef4fa; color: var(--primary); font-size: 12px; text-decoration: none;
  transition: background .18s, color .18s;
}
.bk-hotpick-clear:hover { background: var(--primary); color: #fff; }
.bk-hotpick-clear.disabled { opacity: .45; pointer-events: none; }
.bk-hotpick-hint { font-size: 12px; color: #8b97a3; line-height: 1.8; margin: 6px 0 10px; }
.bk-hotpick-hint b { color: var(--primary); }
.bk-hotpick-hint a { color: var(--primary); text-decoration: underline; }
.bk-hotpick-list { display: flex; flex-wrap: wrap; gap: 8px; }
.bk-hotchip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 16px; text-decoration: none;
  background: #f4f7fa; border: 1px solid #e3eaf0; color: var(--text-primary);
  font-size: 12.5px; line-height: 1.4; transition: all .18s;
}
.bk-hotchip:hover { border-color: var(--primary-light); color: var(--primary); transform: translateY(-1px); }
.bk-hotchip .bk-hotchip-num {
  font-style: normal; font-size: 11px; color: #a6b1bb;
  background: #fff; border-radius: 9px; padding: 0 6px; min-width: 18px; text-align: center;
}
.bk-hotchip .bk-hotchip-tick { display: none; color: #fff; font-size: 11px; }
.bk-hotchip.active {
  background: var(--primary); border-color: var(--primary); color: #fff;
  box-shadow: 0 2px 8px rgba(41, 128, 185, .28);
}
.bk-hotchip.active .bk-hotchip-num { background: rgba(255, 255, 255, .22); color: #fff; }
.bk-hotchip.active .bk-hotchip-tick { display: inline; }
/* 5 个标签就换行时，让它在窄屏更紧凑 */
@media (max-width: 720px) {
  .bk-hotpick { padding: 12px 14px 14px; }
  .bk-hotchip { padding: 5px 10px; font-size: 12px; }
}

/* ============================ 6. 响应式 ============================ */
@media (max-width: 900px) {
  .bk-rank-hero { grid-template-columns: 1fr; }
  /* ★ 本轮修复：基础样式已把 .hero-item 改成 flex 列（让 .hero-body 的 flex:1 生效），
     窄屏这里必须显式写 flex-direction:row，否则会变成「封面在上、文字在下」的竖排。 */
  .bk-rank-hero .hero-item { display: flex; flex-direction: row; text-align: left; gap: 14px; align-items: center; }
  .bk-rank-hero .hero-body { flex: 1 1 auto; width: auto; }
  .bk-rank-hero .hero-cover { margin: 0; flex: 0 0 38px; width: 38px; height: 51px; }
  .bk-rank-hero .hero-intro { -webkit-line-clamp: 2; }
  .bk-rank-hero .hero-stat { justify-content: flex-start; }
  .bk-locbar { flex-direction: column; align-items: flex-start; }
}

/* ============================================================================
 * 7. ★ m12493 需求 25：排行榜**整页 UI 重做**（仅 book_rank.html，全部规则挂在
 *    .bk-rank-page 下，不影响书库 / 搜索 / 分类等其它页面）
 * ----------------------------------------------------------------------------
 * 用户原话：「book_rank.html 所有界面 UI 重做」。
 * 口径：**只改观感与排布，一个数据契约都不动**（id / 类名 / 接口调用全部照旧）。
 *   ① 顶部改成渐变标题带：大标题 + 一句话说明 + 三枚信息胶囊（上榜作品数 /
 *      当前榜单 / 排序数据源），榜单页签做成「白底药丸工具栏」内嵌在带子里，
 *      取代原来「面包屑 + 一块空 bk-card 装页签」的松散排布；
 *   ② 大卡区与完整榜单各加一个区块标题（前五强 / 完整榜单），
 *      解决原来「上来就是 5 张卡、没有任何标题」的问题；
 *   ③ 前五强卡片只改观感：细描边 + 柔和投影 + 徽标描白边。**尺寸一个字都没改** ——
 *      仍由 §4 的 --hero-scale 驱动，封面仍是 38×51（严格 1/6 面积）；
 *   ④ 完整榜单行：圆形名次徽标 + 更大的书名 + 数值与「详情」按钮竖排在右，
 *      6~10 名（列表前 5 行）徽标换主题色，悬停整行浅底，一眼能扫；
 *   ⑤ 窄屏：页签横向滚动、信息胶囊收起「排序数据源」、列表行简介收起。
 * ------------------------------------------------------------------------- */

.bk-rank-page .bk-rank-top {
  position: relative;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
  margin-bottom: 18px; padding: 22px 24px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2471a3 0%, #2e86c1 46%, #5dade2 100%);
  box-shadow: 0 12px 30px -16px rgba(36, 113, 163, .6);
  overflow: hidden;
}
/* 右下角装饰光斑（纯装饰，不吃鼠标事件） */
.bk-rank-page .bk-rank-top::after {
  content: ''; position: absolute; right: -70px; bottom: -90px;
  width: 250px; height: 250px; border-radius: 50%;
  background: rgba(255, 255, 255, .12); pointer-events: none;
}
.bk-rank-page .bk-rank-top-main { position: relative; z-index: 1; min-width: 0; }
.bk-rank-page .bk-rank-top h1 {
  margin: 0; font-size: 26px; font-weight: 700; line-height: 1.2;
  color: #fff; letter-spacing: .5px;
}
.bk-rank-page .bk-rank-top p {
  margin: 9px 0 0; max-width: 620px;
  font-size: 12.5px; line-height: 1.8; color: rgba(255, 255, 255, .84);
}
.bk-rank-page .bk-rank-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.bk-rank-page .bk-rank-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; border-radius: 14px;
  background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .3);
  color: #fff; font-size: 12px; line-height: 1.6; white-space: nowrap;
}
.bk-rank-page .bk-rank-chip b { font-size: 15px; font-weight: 700; }
.bk-rank-page .bk-rank-chip-src {
  background: rgba(0, 0, 0, .13); border-color: rgba(255, 255, 255, .22);
  color: rgba(255, 255, 255, .92); font-size: 11.5px;
}

/* 7.2 榜单页签：白底药丸内嵌在标题带右下 */
.bk-rank-page .bk-rank-tabbar { position: relative; z-index: 1; max-width: 100%; }
.bk-rank-page .bk-rank-tabbar .bk-tabs {
  margin: 0; padding: 4px; border-radius: 12px;
  display: flex; flex-wrap: wrap; gap: 4px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .24);
}
.bk-rank-page .bk-rank-tabbar .bk-tabs > span {
  padding: 7px 16px; border-radius: 9px; cursor: pointer;
  /* book_ui.css 的 .bk-tabs > * 带 2px 下划线，药丸样式必须显式清掉 */
  border-bottom: none;
  color: rgba(255, 255, 255, .92); font-size: 13px; line-height: 1.4;
  white-space: nowrap;
  transition: background .18s, color .18s, box-shadow .18s;
}
.bk-rank-page .bk-rank-tabbar .bk-tabs > span:hover { background: rgba(255, 255, 255, .24); color: #fff; }
.bk-rank-page .bk-rank-tabbar .bk-tabs > span.active {
  background: #fff; color: #2471a3; font-weight: 700;
  border-bottom: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}

/* 7.3 区块标题 */
.bk-rank-page .bk-rank-sec {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  margin: 4px 0 12px;
}
.bk-rank-page .bk-rank-sec h2 {
  display: flex; align-items: center; gap: 8px; margin: 0;
  font-size: 17px; font-weight: 700; color: var(--text);
}
.bk-rank-page .bk-rank-sec h2::before {
  content: ''; width: 4px; height: 16px; border-radius: 2px;
  background: linear-gradient(180deg, var(--primary-light), var(--primary));
}
.bk-rank-page .bk-rank-sec-tip { font-size: 12px; color: var(--text-secondary); }

/* 7.4 前五强卡片：只改观感（尺寸仍由 §4 的 --hero-scale 控制） */
.bk-rank-page .bk-rank-hero .hero-item {
  border: 1px solid #eef2f6;
  border-top: 3px solid var(--hero-accent, #95a5a6);
  background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
  box-shadow: 0 1px 2px rgba(31, 45, 61, .04), 0 12px 26px -18px rgba(31, 45, 61, .5);
}
.bk-rank-page .bk-rank-hero .hero-item:hover {
  transform: translateY(-4px);
  border-color: #e3ecf4;
  box-shadow: 0 4px 10px rgba(31, 45, 61, .07), 0 20px 36px -20px rgba(31, 45, 61, .55);
}
.bk-rank-page .bk-rank-hero .hero-badge {
  border: 2px solid #fff;
  box-shadow: 0 3px 10px rgba(31, 45, 61, .28);
}
.bk-rank-page .bk-rank-hero .hero-cover { box-shadow: 0 3px 10px -4px rgba(31, 45, 61, .45); }
.bk-rank-page .bk-rank-hero .hero-intro { color: #8b97a3; }

/* 7.5 完整榜单行 */
.bk-rank-page .bk-rank-card { padding: 10px 16px 14px; }
.bk-rank-page .bk-rank-card .bk-list-row {
  padding: 12px 10px; border-bottom: 1px solid #f2f5f8; border-radius: 10px;
  transition: background .18s;
}
.bk-rank-page .bk-rank-card .bk-list-row:hover { background: #f7fbfe; }
.bk-rank-page .bk-rank-card .rank-num {
  flex: 0 0 26px; width: 26px; height: 26px; margin-right: 2px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: #eef2f6; color: #7f8c8d;
  font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums;
}
/* 列表前 5 行 = 总榜 6~10 名 */
.bk-rank-page .bk-rank-card .bk-list-row:nth-child(-n+5) .rank-num { background: #e8f2fb; color: #2471a3; }
.bk-rank-page .bk-rank-card .bk-list-row .cover {
  flex: 0 0 44px; width: 44px; height: 59px;
  border-radius: 6px; box-shadow: 0 2px 8px -4px rgba(31, 45, 61, .5);
}
.bk-rank-page .bk-rank-card .bk-list-row .info h4 { font-size: 15.5px; font-weight: 700; }
.bk-rank-page .bk-rank-card .bk-list-row .ops {
  flex-direction: column; align-items: flex-end; gap: 8px;
}

/* 7.6 窄屏 */
@media (max-width: 900px) {
  .bk-rank-page .bk-rank-top { padding: 18px 16px 16px; }
  .bk-rank-page .bk-rank-top h1 { font-size: 21px; }
  .bk-rank-page .bk-rank-tabbar { width: 100%; }
  .bk-rank-page .bk-rank-tabbar .bk-tabs {
    flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
  }
  .bk-rank-page .bk-rank-card .bk-list-row .ops { flex-direction: row; align-items: center; }
}
@media (max-width: 640px) {
  .bk-rank-page .bk-rank-chip-src { display: none; }
  .bk-rank-page .bk-rank-card .bk-list-row .info .intro { display: none; }
}

/* ============================================================================
 * 8. ★ m12493 需求 26：分类页（book_category.html）**书籍 UI 大小重做**
 * ----------------------------------------------------------------------------
 * 用户原话：「book_category.html?id=257&channel=male 界面 UI：书籍 UI 大小重做」。
 * 做法（与图片四 / 图片六 的口径保持一致）：
 *   ① 网格视图从「大封面竖排卡」（Book.card.grid，封面 146px 起、一排 3~4 个）
 *      换成紧凑书卡（Book.card.gridMini + .bk-book-grid.bk-grid-5）——
 *      小封面在左，书名 / 作者 / 截断 2 行简介在右，一排 5 个；
 *      窄屏档位复用 book_responsive.css §7（5 → 4 → 3 → 2 → 1）；
 *   ② 本页格子比书库宽，封面给到 48×64（仍是 3:4 比例）；
 *      想再大再小只改下面这行的 --bk-mini-cover-w / --bk-mini-cover-h；
 *   ③ 列表视图的行也收一档封面到 44×59，与排行榜 / 书库同量级；
 *   ④ 悬停时整卡轻浮 + 描边变主题色（.bk-book-item-mini:hover 已有 border-color，
 *      这里只补投影）。
 * ------------------------------------------------------------------------- */
.bk-cat-page .bk-book-grid.bk-grid-5 { --bk-mini-cover-w: 48px; --bk-mini-cover-h: 64px; }
.bk-cat-page .bk-book-item-mini {
  padding: 9px; gap: 11px;
  box-shadow: 0 1px 2px rgba(31, 45, 61, .03);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.bk-cat-page .bk-book-item-mini:hover {
  box-shadow: 0 8px 18px -10px rgba(31, 45, 61, .45);
}
.bk-cat-page .bk-book-item-mini .bk-book-title { font-size: 13.5px; }
.bk-cat-page .bk-list-row .cover {
  flex: 0 0 44px; width: 44px; height: 59px; border-radius: 6px;
}
.bk-cat-page .bk-list-row .info h4 { font-size: 15px; }
