/* resources_page.css — 资源总览页样式 | G4v5 */

/* ── 页头 ── */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

/* ── 统计卡片网格 ── */
.rp-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.rp-stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rp-stat-label {
  font-size: 13px;
  color: var(--text-secondary);
}

.rp-stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
}

.rp-stat-value.green  { color: #16a34a; }
.rp-stat-value.orange { color: #f97316; }

/* ── 主类型分布 ── */
.rp-genre-bar {
  margin-bottom: 28px;
}

.rp-genre-bar h3 {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-weight: 600;
}

.rp-genre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rp-genre-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 16px;
  background: var(--pill-bg, #94A3B8);
  color: #fff;
  font-size: 13px;
  cursor: default;
  transition: transform 0.15s;
}

.rp-genre-pill:hover {
  transform: scale(1.05);
}

.rp-genre-pill em {
  font-style: normal;
  opacity: 0.85;
  font-size: 12px;
}

/* ── 表格占位 ── */
.rp-table-placeholder {
  margin-top: 8px;
}

/* ── 占位 banner（通用） ── */
.placeholder-banner {
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.8;
  background: var(--card-bg);
}

.placeholder-banner strong {
  color: var(--accent);
}

/* ── 空提示 ── */
.empty-hint {
  color: var(--text-secondary);
  font-size: 13px;
  padding: 12px 0;
}
