/* 整体页面样式 */
.p-6 {
  padding: 24px;
}

/* 搜索区域样式 */
.search-container {
  margin-bottom: 16px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.mb-4 {
  margin-bottom: 16px;
}

/* 表格样式 */
.table-container {
  overflow-x: auto;
}

.text-gray-400 {
  color: #9ca3af;
}

/* 难度标签样式 */
.difficulty-tag {
  min-width: 40px;
  text-align: center;
}

/* 进度条提示框样式 */
.progress-tooltip {
  padding: 12px;
  border-radius: 8px;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* 排行榜样式 */
.rank-card {
  width: 300px;
  height: fit-content;
}

.rank-header {
  margin-bottom: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.rank-select {
  width: 100px;
}

.rank-item {
  position: relative;
  margin-bottom: 12px;
  padding-left: 32px;
}

.rank-index {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  min-width: 24px;
  font-weight: bold;
  color: #666;
  font-size: 16px;
}

/* 前三名特殊样式 */
.rank-item:nth-child(1) .rank-index {
  color: #f5222d;
  font-size: 20px;
  font-weight: 800;
}

.rank-item:nth-child(2) .rank-index {
  color: #fa8c16;
  font-size: 18px;
  font-weight: 700;
}

.rank-item:nth-child(3) .rank-index {
  color: #52c41a;
  font-size: 18px;
  font-weight: 700;
}

.rank-container {
  padding: 10px 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #f0f0f0;
  transition: all 0.3s;
}

.rank-container:hover {
  border-color: #1890ff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.rank-avatar {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.rank-user {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.rank-name {
  margin: 0;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(0, 0, 0, 0.85);
}

.rank-profile {
  margin: 0;
  font-size: 12px;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-count {
  flex-shrink: 0;
  font-weight: 500;
  color: #1890ff;
}

/* 响应式布局 */
@media screen and (max-width: 768px) {
  .rank-card {
    width: 100%;
  }
  
  .rank-container {
    padding: 8px;
  }
  
  .rank-user {
    min-width: 100px;
  }
}

@media screen and (max-width: 480px) {
  .rank-header {
    flex-direction: column;
    align-items: stretch;
  }
  
  .rank-select {
    width: 100%;
  }
  
  .p-6 {
    padding: 16px;
  }
}