/* ===== 首页「最近阅读」 ===== */
#rh-card {
  --rh-bg: #ffffff;
  --rh-text: #2c2f36;
  --rh-muted: #8a9099;
  --rh-border: rgba(0, 0, 0, 0.08);
  --rh-hover: rgba(66, 90, 239, 0.06);

  margin-bottom: 16px;
  padding: 14px 16px;
  width: 100%;
  box-sizing: border-box;
  background: var(--rh-bg);
  border: 1px solid var(--rh-border);
  border-radius: 12px;
}

[data-theme="dark"] #rh-card {
  --rh-bg: #24272e;
  --rh-text: #e8eaee;
  --rh-muted: #9aa0aa;
  --rh-border: rgba(255, 255, 255, 0.1);
  --rh-hover: rgba(122, 140, 255, 0.1);
}

#rh-card .rh-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--rh-muted);
  font-size: 13px;
}

#rh-card .rh-clear {
  padding: 2px 6px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--rh-muted);
  font-size: 12px;
  cursor: pointer;
}

#rh-card .rh-clear:hover {
  color: var(--rh-text);
  background: var(--rh-hover);
}

#rh-card .rh-list {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

#rh-card .rh-list li + li {
  border-top: 1px solid var(--rh-border);
}

#rh-card .rh-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 6px;
  border-radius: 6px;
  color: var(--rh-text);
  font-size: 14px;
  text-decoration: none;
}

#rh-card .rh-list a:hover {
  background: var(--rh-hover);
}

#rh-card .rh-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#rh-card .rh-time {
  flex: none;
  color: var(--rh-muted);
  font-size: 12px;
}

#rh-card .rh-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--rh-border);
  color: var(--rh-muted);
  font-size: 12px;
}

#rh-card .rh-pager button {
  padding: 4px 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--rh-muted);
  font-size: 12px;
  cursor: pointer;
}

#rh-card .rh-pager button:hover:not(:disabled) {
  background: var(--rh-hover);
  color: var(--rh-text);
}

#rh-card .rh-pager button:disabled {
  opacity: 0.35;
  cursor: default;
}

#rh-card .rh-page {
  flex: none;
}
