/* 排行榜样式 */
.leaderboard-tabs {
  display: flex;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #e0d0b1;
}

.tab-btn {
  padding: 0.8rem 1.5rem;
  border: none;
  background: none;
  font-size: 1rem;
  font-weight: 600;
  color: #8B7355;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.tab-btn:hover {
  color: #6B4226;
}

.tab-btn.active {
  color: #6B4226;
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #CD853F;
  border-radius: 3px 3px 0 0;
}

#leaderboard-container {
  background-color: #fcf9f5;
  border: 1px solid #e0d0b1;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

#leaderboard-table {
  width: 100%;
  border-collapse: collapse;
}

#leaderboard-table th {
  padding: 0.8rem 1rem;
  text-align: left;
  color: #6B4226;
  border-bottom: 2px solid #DEB887;
  font-weight: 600;
}

#leaderboard-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid #e8d5b7;
  color: #4B3621;
}

#leaderboard-table tr:last-child td {
  border-bottom: none;
}

#leaderboard-table tr:nth-child(even) {
  background-color: #f7f3ea;
}

/* 排名前三的行特殊样式 */
#leaderboard-table tr:nth-child(1) {
  background-color: #FFF8DC; /* 冠军: 黄金 */
}

#leaderboard-table tr:nth-child(2) {
  background-color: #F5F5F5; /* 亚军: 银色 */
}

#leaderboard-table tr:nth-child(3) {
  background-color: #FAEBD7; /* 季军: 铜色 */
}

/* 排名的单元格样式 */
#leaderboard-table tr:nth-child(1) td:first-child {
  color: #DAA520;
  font-weight: bold;
}

#leaderboard-table tr:nth-child(2) td:first-child {
  color: #808080;
  font-weight: bold;
}

#leaderboard-table tr:nth-child(3) td:first-child {
  color: #CD853F;
  font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 768px) {
  #leaderboard-table {
    font-size: 0.9rem;
  }
  
  .tab-btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
  
  #leaderboard-table th,
  #leaderboard-table td {
    padding: 0.6rem 0.5rem;
  }
}

@media (max-width: 576px) {
  #leaderboard-table {
    font-size: 0.8rem;
  }
  
  .leaderboard-tabs {
    flex-wrap: wrap;
  }
  
  .tab-btn {
    flex: 1;
    padding: 0.5rem;
    font-size: 0.8rem;
    text-align: center;
  }
} 