/* 主体内容区 */
.container {
  max-width: 1366px;
  margin: 0 auto;
  padding: 40px 0;
}

/* 标题行：左侧标题与副标题，右侧筛选区 */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.hero h1 {
  margin-bottom: 0;
}

/* 筛选工具栏：行业筛选 + 排行分类，紧跟标题右侧 */
.toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.filter-select {
  height: 43px;
  padding: 0 32px 0 12px;
  border: 1px solid #eee;
  border-radius: 6px;
  background: #fff;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

/* 排行条目 */
.rank-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 18px 20px;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

/* 榜首条目：淡金底突出 */
.rank-item.top1 {
  background: #fffdf5;
  border-color: #fde9b8;
}

.rank-item:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
  border-color: #e5e7eb;
}

.rank-item.top1:hover {
  border-color: #fcd34d;
  box-shadow: 0 10px 28px rgba(245, 158, 11, 0.12);
}

/* 名次徽标：前三名用金银铜渐变突出 */
.rank-index {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  font-style: normal;
  color: #999;
  background: #f5f6f8;
}

.rank-index.top1 {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #fff;
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.35);
}

.rank-index.top2 {
  background: linear-gradient(135deg, #cbd5e1, #94a3b8);
  color: #fff;
  box-shadow: 0 4px 10px rgba(148, 163, 184, 0.35);
}

.rank-index.top3 {
  background: linear-gradient(135deg, #f0b27a, #c2703d);
  color: #fff;
  box-shadow: 0 4px 10px rgba(194, 112, 61, 0.3);
}

.rank-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  flex-shrink: 0;
}

.rank-icon img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.rank-info {
  flex: 1;
  min-width: 0;
}

.rank-title {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 应用简介：单行截断，避免抢占标题焦点 */
.rank-desc {
  margin-top: 4px;
  font-size: 12px;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  font-size: 12px;
  color: #999;
  flex-wrap: wrap;
}

/* 分类标签：浅蓝底蓝字，与设计稿一致 */
.rank-meta .tag {
  background: #eff6ff;
  color: #3b82f6;
  border-color: #dbeafe;
}

/* 数据指标：无底色轻量展示，数值在上、说明在下 */
.rank-stats {
  display: flex;
  align-items: center;
  gap: 36px;
  flex-shrink: 0;
}

.rank-stat {
  text-align: center;
  min-width: 44px;
}

.rank-stat strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #111;
  line-height: 1.2;
}

.rank-stat span {
  font-size: 11px;
  color: #999;
}

/* 评分：星星与数值同色高亮 */
.rank-stat.is-rating strong {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #f59e0b;
}

.rank-stat.is-rating svg {
  flex: none;
}

/* 趋势标签 */
.rank-trend {
  min-width: 52px;
  flex-shrink: 0;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
}

.rank-trend.up {
  color: #ef4444;
  background: #fef2f2;
}

.rank-trend.down {
  color: #10b981;
  background: #ecfdf5;
}

.rank-trend.new {
  color: #f59e0b;
  background: #fffbeb;
}

.rank-trend.same {
  color: #aaa;
  background: #f5f6f8;
}

/* 空状态 */
.empty {
  background: #fff;
  border: 1px dashed #e5e7eb;
  border-radius: 12px;
  padding: 60px 20px;
  text-align: center;
  color: #999;
  font-size: 14px;
}

/* ================= 响应式适配 ================= */
@media (max-width: 1400px) {
  .container {
    padding: 30px 20px;
  }
}

@media (max-width: 1024px) {
  .rank-stats {
    gap: 24px;
  }
}

@media (max-width: 900px) {
  .toolbar {
    width: 100%;
  }

  .rank-item {
    padding: 14px;
    gap: 12px;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 20px 16px;
  }

  .toolbar {
    width: 100%;
    justify-content: space-between;
  }

  .toolbar .tabs {
    flex: 1;
  }

  .toolbar .tab {
    flex: 1;
    padding: 6px 10px;
    text-align: center;
  }

  .rank-stats {
    display: none;
  }

  .rank-index {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }

  .rank-trend {
    min-width: 44px;
    padding: 3px 6px;
  }
}