/* 粉丝贡献榜页面特定样式 */

/* 全局尺寸规范 - 与style.css保持一致 */
:root {
    --site-width: 1920px;
    --site-height: 1080px;
    --content-width: 1200px;
    --navbar-height-min: 60px;
    --navbar-height-max: 100px;
    --banner-height-min: 300px;
    --banner-height-max: 800px;
}

/* 贡献榜头部样式 */
.contributors-header {
    padding: 60px 40px;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
}

.contributors-header h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: #ff69b4;
    position: relative;
}

@keyframes headerTitleFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contributors-header p {
    color: #cccccc;
    max-width: 800px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.6;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.7s forwards;
}

/* 贡献榜标签样式 */
.contributors-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.contributor-tab {
    padding: 10px 20px;
    border: none;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contributor-tab.active {
    color: #ff69b4;
}

.contributor-tab:hover:not(.active) {
    transform: translateY(-2px);
}

/* 前三名展示样式 */
.top-contributors {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.top-contributor {
    text-align: center;
    width: 200px;
    position: relative;
}

.top-contributor:nth-child(2) {
    margin-top: 40px;
}

.top-contributor:nth-child(3) {
    margin-top: 80px;
}

.top-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    color: #ff69b4;
    transition: all 0.3s ease;
}

.top-avatar:hover {
    transform: scale(1.05);
}

.top-rank {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin: -20px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    position: relative;
    z-index: 1;
}

/* 第一名金色 */
.top-contributor:nth-child(2) .top-rank {
    color: #ffd700;
}

/* 第二名银色 */
.top-contributor:nth-child(1) .top-rank {
    color: #c0c0c0;
}

/* 第三名铜色 */
.top-contributor:nth-child(3) .top-rank {
    color: #cd7f32;
}

.top-name {
    font-size: 18px;
    font-weight: 500;
    margin: 10px 0;
    color: #ffffff;
}

.top-points {
    font-size: 24px;
    font-weight: bold;
    color: #ff69b4;
}

/* 贡献榜列表样式 */
.contribution-list {
    padding: 24px;
}

.contribution-item {
    display: flex;
    align-items: center;
    padding: 24px 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    margin-bottom: 8px;
}

.contribution-item:last-child {
    margin-bottom: 0;
}

.contribution-item:hover {
    transform: translateX(6px) scale(1.008);
    z-index: 10;
    position: relative;
}

.contribution-rank {
    font-size: 32px;
    font-weight: 900;
    color: #ff69b4;
    width: 60px;
    text-align: center;
    text-shadow: 0 0 15px rgba(255, 105, 180, 0.6);
    flex-shrink: 0;
    margin-right: 10px;
}

.contribution-avatar {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff69b4, #ff85c0);
    margin: 0 20px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 900;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 6px 15px rgba(255, 105, 180, 0.3);
    position: relative;
    overflow: hidden;
}

.contribution-avatar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.contribution-item:hover .contribution-avatar {
    transform: scale(1.06) rotate(3deg);
    border-color: #ff69b4;
    box-shadow: 0 8px 25px rgba(255, 105, 180, 0.5);
}

.contribution-item:hover .contribution-avatar::before {
    transform: translateX(100%);
}

.contribution-info {
    flex: 1;
    position: relative;
}

.contribution-name {
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 8px;
    color: #ffffff;
    transition: all 0.3s ease;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.contribution-item:hover .contribution-name {
    color: #ff69b4;
    text-shadow: 0 0 12px rgba(255, 105, 180, 0.5);
    transform: translateY(-2px);
}

.contribution-points {
    color: #00ffff;
    font-weight: 900;
    font-size: 18px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    display: inline-block;
}

.contribution-team {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 20px;
    flex-shrink: 0;
}

.contribution-team .team-logo {
    width: 40px;
    height: 40px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.contribution-team span {
    color: #cccccc;
    font-size: 14px;
}

/* 分区标题样式 */
.contribution-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 20px;
    color: #ff69b4;
}

/* 加载更多按钮样式 */
.load-more-container {
    text-align: center;
    margin-top: 40px;
}

.btn-load-more {
    color: #ffffff;
    border: none;
    padding: 14px 28px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.5px;
}

/* 响应式设计 */
/* @media (max-width: 1024px) {
    .top-contributors {
        gap: 20px;
    }
    
    .top-contributor {
        width: 180px;
    }
    
    .top-contributor:nth-child(2) {
        margin-top: 30px;
    }
    
    .top-contributor:nth-child(3) {
        margin-top: 60px;
    }
    
    .contributors-header {
        padding: 30px;
    }
    
    .contributors-header h2 {
        font-size: 32px;
    }
} */

/* @media (max-width: 768px) {
    .top-contributors {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .top-contributor {
        width: 250px;
    }

    .top-contributor:nth-child(2),
    .top-contributor:nth-child(3) {
        margin-top: 0;
    }

    .top-contributor:nth-child(1) {
        order: 2;
    }

    .top-contributor:nth-child(2) {
        order: 1;
    }

    .top-contributor:nth-child(3) {
        order: 3;
    }

    .top-avatar {
        width: 80px;
        height: 80px;
        font-size: 28px;
    }

    .top-rank {
        width: 35px;
        height: 35px;
        margin: -17px auto 0;
    }

    .top-name {
        font-size: 16px;
    }

    .top-points {
        font-size: 20px;
    }

    .contribution-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 20px 15px;
    }

    .contribution-item:hover {
        transform: none;
    }

    .contribution-rank {
        width: auto;
        font-size: 24px;
        margin-right: 0;
        margin-bottom: 10px;
    }

    .contribution-avatar {
        margin: 0;
        width: 60px;
        height: 60px;
        font-size: 20px;
    }

    .contribution-team {
        margin-left: 0;
        justify-content: center;
        margin-top: 10px;
    }

    .contributors-tabs {
        gap: 8px;
    }

    .contributor-tab {
        padding: 8px 16px;
        font-size: 14px;
    }

    .contributors-header h2 {
        font-size: 28px;
    }

    .contributors-header p {
        font-size: 14px;
    }
} */

/* @media (max-width: 480px) {
    .contributors-header {
        padding: 20px;
    }
    
    .contributors-header h2 {
        font-size: 24px;
    }
    
    .contributors-header p {
        font-size: 13px;
    }
    
    .top-contributor {
        width: 200px;
    }
    
    .top-avatar {
        width: 70px;
        height: 70px;
        font-size: 24px;
    }
    
    .top-rank {
        width: 30px;
        height: 30px;
        margin: -15px auto 0;
        font-size: 14px;
    }
    
    .top-name {
        font-size: 14px;
    }
    
    .top-points {
        font-size: 18px;
    }
    
    .contribution-item {
        padding: 15px 0;
    }
    
    .contribution-rank {
        font-size: 20px;
    }
    
    .contribution-avatar {
        width: 60px;
        height: 60px;
        font-size: 20px;
    }
    
    .contribution-name {
        font-size: 16px;
    }
    
    .contribution-points {
        font-size: 14px;
    }
    
    .contribution-team .team-logo {
        width: 35px;
        height: 35px;
        font-size: 10px;
    }
    
    .contribution-team span {
        font-size: 12px;
    }
    
    .contributor-tab {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .section-title {
        font-size: 20px;
    }
} */

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 焦点样式 */
*:focus {
    outline: 2px solid #ff69b4;
    outline-offset: 2px;
}
