.refresh-btn {
  font-size: 0.875rem;
  color: var(--color-primary);
  padding: 6px 12px;
  border-radius: 16px;
  background-color: var(--color-card);
}

/* 个人排名卡片 */
.my-rank-card {
  margin-bottom: 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.my-rank-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  text-align: center;
}

.my-rank-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 0;
}

.my-rank-item {
  text-align: center;
}

.my-rank-label {
  font-size: 0.75rem;
  opacity: 0.8;
  margin-bottom: 4px;
}

.my-rank-value {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1;
}

/* 排行tab切换 */
.rank-tab {
  display: flex;
  background-color: var(--color-card);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 12px;
}

.rank-tab-item {
  flex: 1;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--color-text-secondary);
}

.rank-tab-item.active {
  background-color: var(--color-primary);
  color: #fff;
}

/* 排行列表头部 */
.rank-list-header {
  display: flex;
  padding: 0 12px;
  margin-bottom: 8px;
}

.rank-col {
  flex-shrink: 0;
}

.rank-col-num {
  width: 60px;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.rank-col-user {
  flex: 1;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.rank-col-rate {
  width: 100px;
  text-align: right;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

/* 排行列表 */
.rank-list {
  padding: 0;
  overflow: hidden;
  margin-bottom: 20px;
}

.rank-item {
  display: flex;
  align-items: center;
  padding: 16px 12px;
  border-bottom: 1px solid var(--color-border);
}
.rank-item:last-child {
  border-bottom: none;
}

/* 前三名排名样式 */
.rank-num {
  width: 60px;
  font-size: 1.125rem;
  font-weight: 700;
  text-align: center;
  border-radius: 6px;
  line-height: 32px;
}
.rank-num.rank-1 {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #8b4513;
}
.rank-num.rank-2 {
  background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
  color: #444;
}
.rank-num.rank-3 {
  background: linear-gradient(135deg, #cd7f32 0%, #e4a853 100%);
  color: #fff;
}
.rank-num.normal {
  background-color: var(--color-bg);
  color: var(--color-text-secondary);
  font-size: 1rem;
  font-weight: 600;
}

/* 用户信息 */
.rank-user {
  flex: 1;
  display: flex;
  align-items: center;
}
.rank-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 600;
  margin-right: 12px;
  flex-shrink: 0;
}
.rank-nickname {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 收益率 */
.rank-rate {
  width: 100px;
  text-align: right;
  font-size: 1.125rem;
  font-weight: 700;
  border-radius: 4px;
  padding: 4px 8px;
}
.rank-rate.up {
  background-color: rgba(229, 57, 53, 0.1);
  color: var(--color-up);
}
.rank-rate.down {
  background-color: rgba(0, 177, 64, 0.1);
  color: var(--color-down);
}
.rank-rate.flat {
  color: var(--color-flat);
}

/* 空状态 */
.empty-state {
  padding: 60px 0;
  text-align: center;
}
.empty-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  opacity: 0.3;
}
.empty-text {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}
