/* 首页「近期阅读」区块（wp-reading-history）——视觉基调对齐 my-tools 卡区
 * （--mcp-* 变量族、白卡 radius 14px），落在 .mt-section 之后的同族兄弟块。 */

.rh-section {
  padding: 4px 24px 8px;
}
.rh-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 6px 0 16px;
}
.rh-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--wp--preset--color--contrast, #111);
}
.rh-count {
  font-size: 13px;
  color: var(--mcp-muted, #6b6f66);
}
.rh-more {
  margin-left: auto;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--mcp-ink, #0e402d);
  background: #fff;
  border: 1px solid var(--mcp-line, #e6e6e1);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.rh-more:hover { border-color: var(--mcp-ink, #0e402d); }
.rh-more:disabled { opacity: 0.6; cursor: default; }

.rh-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}

/* 条目卡：类型徽章 + 书名（可两行）+ 副标题·相对时间 */
.rh-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--mcp-line, #e6e6e1);
  border-radius: var(--mcp-card-radius, 14px);
  box-shadow: var(--mcp-shadow, 0 1px 2px rgba(17, 17, 17, 0.04));
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
a.rh-card:hover {
  transform: translateY(-2px);
  border-color: rgba(14, 64, 45, 0.35);
  box-shadow: var(--mcp-shadow-hover, 0 6px 18px -8px rgba(17, 17, 17, 0.12));
}
.rh-badge {
  flex: none;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
}
/* 三源分色（低饱和，与站内各域主色呼应：古籍米金 / 图书馆绿 / 案例蓝） */
.rh-badge-cl { color: #8a5522; background: #f6ecdd; }
.rh-badge-lb { color: #0e402d; background: #e3efe8; }
.rh-badge-cs { color: #1d4f8c; background: #e7eef8; }

.rh-card-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.rh-card-title {
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  color: var(--wp--preset--color--contrast, #111);
  text-overflow: ellipsis;
  white-space: nowrap;
}
a.rh-card:hover .rh-card-title { color: var(--mcp-ink, #0e402d); }
.rh-card-sub {
  overflow: hidden;
  font-size: 12px;
  color: var(--mcp-muted, #6b6f66);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rh-empty {
  grid-column: 1 / -1;
  padding: 22px 18px;
  font-size: 14px;
  color: var(--mcp-muted, #6b6f66);
  background: #fff;
  border: 1px dashed var(--mcp-line, #e6e6e1);
  border-radius: var(--mcp-card-radius, 14px);
  text-align: center;
}
