/* ============================================================
 * FundBoard · rank.css  排行榜页专用样式
 * 骨架（页头 / 卡片 / 控件 / 表格 / 说明列表）来自 base.css
 * ============================================================ */

/* ---------- 筛选行 ---------- */
.rk-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.rk-row:first-of-type { margin-top: 0; }
.rk-row > .fb-field-label {
  flex: none;
  min-width: 56px;
  color: var(--fb-text-3);
  font-size: 12px;
}

.rk-merge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--fb-text-2);
  cursor: pointer;
  user-select: none;
}
.rk-merge input {
  width: 14px;
  height: 14px;
  accent-color: var(--fb-accent);
  cursor: pointer;
  margin: 0;
}

/* ---------- 排名列 ---------- */
.rk-rank {
  display: inline-block;
  min-width: 20px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--fb-text-3);
}
.rk-rank.is-top {
  color: var(--fb-accent-deep);
  font-weight: 800;
}
.fb-table tbody tr.rk-row-top { background: rgba(79, 110, 247, .035); }
.fb-table tbody tr.rk-row-click { cursor: pointer; }
.fb-table tbody tr.rk-row-click:hover { background: rgba(79, 110, 247, .07); }
.fb-table tbody tr.rk-row-top:hover { background: rgba(79, 110, 247, .07); }

.rk-strong {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ---------- 分页 ---------- */
.rk-pager {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rk-pager span {
  min-width: 48px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* ---------- 加入对比按钮 ---------- */
.rk-add {
  padding: 0 10px;
  height: 26px;
  font-size: 12px;
  color: var(--fb-accent-deep);
  border-color: #d5ddfa;
  background: #f7f9ff;
}
.rk-add:hover {
  border-color: #b9c6fb;
  background: var(--fb-accent-soft);
  color: var(--fb-accent-deep);
}
.rk-add.is-added,
.rk-add.is-added:hover {
  color: var(--fb-text-3);
  border-color: var(--fb-line);
  background: var(--fb-surface-2);
  cursor: default;
  font-weight: 500;
}
.fb-table tbody tr:has(.rk-add.is-added) { background: rgba(18, 160, 111, .04); }

/* ---------- 服务提示里的 code ---------- */
#rkService code,
.fb-notes-list code {
  font-family: var(--fb-mono);
  background: #f1f4f9;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 11.5px;
}
.fb-note code {
  background: rgba(255, 255, 255, .7);
  color: inherit;
}
.fb-note a { color: inherit; text-decoration: underline; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .rk-row > .fb-field-label { width: 100%; min-width: 0; }
  .rk-row .fb-tabs { width: 100%; }
  .rk-pager { margin-left: 0; width: 100%; justify-content: flex-end; }
}
@media (max-width: 560px) {
  .rk-row .fb-tab { flex: 1 1 auto; text-align: center; }
}
