/**
 * Shiguang 拾光集 - 热榜页样式
 * 简洁高级：细分割线排行列表，Top3 用色阶强调
 */

.ranking-section { padding-top: 24px; padding-bottom: 96px; }

/* 分类筛选 chips */
.rank-catbar {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 4px 0 18px;
}
.rank-chip {
  padding: 5px 14px; border-radius: 999px;
  font-size: 13px; color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border-strong);
  cursor: pointer; font-family: inherit;
  transition: all 0.2s ease;
}
.rank-chip:hover { color: var(--text); border-color: var(--text-light); }
.rank-chip.active {
  color: #fff; background: var(--text);
  border-color: var(--text);
}

.rank-summary {
  font-size: 12px; color: var(--text-light);
  margin-bottom: 12px; padding-left: 2px;
}

/* 榜单列表 */
.rank-list { list-style: none; margin: 0; padding: 0; }

.rank-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 18px 8px 18px 0;
  border-bottom: 1px solid var(--border);
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.rank-item.visible { opacity: 1; transform: none; }

.rank-num {
  flex-shrink: 0; width: 34px; padding-top: 2px;
  text-align: center;
  font-size: 1.05rem; font-weight: 700; font-style: italic;
  color: var(--text-light);
  font-variant-numeric: tabular-nums;
}
.rank-num.top3 { color: var(--text-secondary); }
.rank-num.top1 { color: var(--primary); font-size: 1.3rem; }

.rank-main {
  flex: 1; min-width: 0;
  display: flex; align-items: flex-start; gap: 16px;
  text-decoration: none; color: inherit;
}

.rank-cover {
  flex-shrink: 0; width: 104px; aspect-ratio: 4 / 3;
  border-radius: 10px; overflow: hidden; background: var(--bg);
}
.rank-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.rank-main:hover .rank-cover img { transform: scale(1.05); }

.rank-body { flex: 1; min-width: 0; }
.rank-title {
  font-size: 1rem; font-weight: 600; color: var(--text); line-height: 1.55;
  margin: 0 0 6px;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
  transition: color 0.2s ease;
}
.rank-main:hover .rank-title { color: var(--primary); }
.rank-excerpt {
  font-size: 13px; color: var(--text-secondary); line-height: 1.7; margin: 0 0 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.rank-meta { display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--text-light); }
.rank-meta i { font-size: 13px; margin-right: 3px; vertical-align: -1px; }

/* 暗色模式 */
[data-theme="dark"] .rank-chip.active { color: #16181D; background: var(--text); border-color: var(--text); }

/* 响应式 */
@media (max-width: 768px) {
  .ranking-section { padding-bottom: 64px; }
  .rank-item { padding: 14px 4px 14px 0; gap: 10px; }
  .rank-num { width: 26px; font-size: 0.95rem; }
  .rank-num.top1 { font-size: 1.15rem; }
  .rank-cover { width: 84px; }
  .rank-excerpt { display: none; }
  .rank-title { -webkit-line-clamp: 2; }
}
