/* 条形行 */
.bar-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    animation: slideIn 0.5s ease forwards;
    opacity: 0;
    transform: translateX(-20px);
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 头像容器 */
.avatar-container {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    margin-right: 12px;
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* 条形图容器 */
.bar-container {
    flex: 1;
    height: 40px;
    background: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 12px;
}

/* 条形图 */
.bar {
    height: 100%;
    border-radius: 8px;
    display: flex;
    align-items: center;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 100px;
}

/* 条形内标签 */
.bar-label {
    display: flex;
    align-items: center;
    padding: 0 15px;
    color: white;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

.type-name {
    font-size: 16px;
    margin-right: 10px;
}

.type-score {
    font-size: 14px;
    opacity: 0.9;
}

/* 排名徽章 */
.rank-badge {
    width: 45px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0e0e0;
    border-radius: 6px;
    font-weight: bold;
    color: #666;
    font-size: 14px;
    flex-shrink: 0;
}

/* 前三名特殊样式 */
.rank-badge.rank-1 {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.5);
}

.rank-badge.rank-2 {
    background: linear-gradient(135deg, #C0C0C0, #A0A0A0);
    color: white;
    box-shadow: 0 2px 10px rgba(192, 192, 192, 0.5);
}

.rank-badge.rank-3 {
    background: linear-gradient(135deg, #CD7F32, #B87333);
    color: white;
    box-shadow: 0 2px 10px rgba(205, 127, 50, 0.5);
}
