/* 排行榜页面样式 */

/* 背景渐变 */
.bg-gradient-primary {
    background: linear-gradient(135deg, #4158d0, #c850c0);
    position: relative;
}

/* 英雄区样式增强 */
.hero-section {
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: 3rem;
    letter-spacing: -0.5px;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
    color: white;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    text-shadow: 0 1px 5px rgba(0,0,0,0.1);
}

.z-index-1 {
    z-index: 1;
}

/* 英雄区按钮 */
.btn-light-outline {
    background-color: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    transition: all 0.3s;
}

.btn-light-outline:hover {
    background-color: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.4);
    color: white;
    transform: translateY(-2px);
}

/* 英雄区卡片装饰 */
.hero-image {
    position: relative;
    height: 300px;
}

.hero-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
}

.hero-card-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    transform: rotate(5deg);
    transition: all 0.3s;
}

.hero-card-item:nth-child(2) {
    transform: rotate(-3deg) translateY(-10px);
    background: linear-gradient(to right, #f8f9fa, #ffffff);
}

.hero-card-item:hover {
    transform: scale(1.05) rotate(0);
}

.rank-number-premium {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 24px;
    color: white;
    background: linear-gradient(135deg, #ffd700, #ffa500);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.hero-card-item:nth-child(2) .rank-number-premium {
    background: linear-gradient(135deg, #a8a9ad, #6c757d);
    box-shadow: 0 4px 15px rgba(168, 169, 173, 0.3);
}

/* 背景装饰元素 */
.hero-bg-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-shape-1 {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
}

.hero-shape-2 {
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}

.hero-shape-3 {
    position: absolute;
    top: 30%;
    left: 20%;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    box-shadow: 0 0 40px 20px rgba(255,255,255,0.1);
}

.hero-decoration-1 {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    z-index: -1;
}

.hero-decoration-2 {
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    z-index: -1;
}

/* 波浪形状 */
.shape-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.shape-bottom svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .hero-section {
        padding: 60px 0 80px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 767px) {
    /* 移动端隐藏页脚 */
    footer.footer {
        display: none !important;
    }

    .hero-section {
        padding: 50px 0 70px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
}

/* 名次样式增强 */
.rank-number-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.rank-number {
    font-size: 32px;
    font-weight: 800;
    color: #333;
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f8f9fa;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.rank-first .rank-number {
    background: linear-gradient(135deg, #ffe259, #ffa751);
    color: #fff;
    font-size: 38px;
    width: 70px;
    height: 70px;
    box-shadow: 0 5px 15px rgba(255, 167, 81, 0.5);
}

.rank-second .rank-number {
    background: linear-gradient(135deg, #e6e6e6, #b3b3b3);
    color: #fff;
    font-size: 36px;
    width: 66px;
    height: 66px;
    box-shadow: 0 5px 15px rgba(179, 179, 179, 0.5);
}

.rank-third .rank-number {
    background: linear-gradient(135deg, #d1913c, #8D542E);
    color: #fff;
    font-size: 34px;
    width: 64px;
    height: 64px;
    box-shadow: 0 5px 15px rgba(209, 145, 60, 0.5);
}

/* 奖牌图标增强 */
.medal-icon {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 28px;
    filter: drop-shadow(0 3px 5px rgba(0,0,0,0.2));
}

.rank-first .medal-icon {
    font-size: 32px;
}

.text-gold {
    color: #FFD700;
}

.text-silver {
    color: #C0C0C0;
}

.text-bronze {
    color: #CD7F32;
}

/* 排行榜项美化 */
.ranking-item {
    position: relative;
    transition: all 0.3s ease;
    transform-origin: center;
}

.ranking-item:hover {
    transform: translateY(-5px);
}

.ranking-item .card {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    overflow: hidden;
    border-left: 5px solid transparent;
    transition: all 0.3s ease;
}

.rank-first .card {
    border-left-color: #FFD700;
    background: linear-gradient(to right, rgba(255,215,0,0.08), rgba(255,255,255,1) 20%);
}

.rank-second .card {
    border-left-color: #C0C0C0;
    background: linear-gradient(to right, rgba(192,192,192,0.08), rgba(255,255,255,1) 20%);
}

.rank-third .card {
    border-left-color: #CD7F32;
    background: linear-gradient(to right, rgba(205,127,50,0.08), rgba(255,255,255,1) 20%);
}

.ranking-item:hover .card {
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* 进入官网按钮美化 */
.btn-visit-website {
    display: inline-block;
    background: linear-gradient(135deg, #4158d0, #c850c0);
    color: white;
    font-weight: 600;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(200,80,192,0.3);
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-visit-website:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, #c850c0, #4158d0);
    transition: all 0.4s ease;
    z-index: -1;
    border-radius: 30px;
}

.btn-visit-website:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(200,80,192,0.4);
}

.btn-visit-website:hover:before {
    width: 100%;
}

/* 排行榜LOGO美化 */
.ranking-logo-container {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 2px solid #f0f0f0;
    padding: 2px;
}

.ranking-logo-img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.ranking-logo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: bold;
    color: #4158d0;
}

/* 排行榜名称和描述美化 */
.card-title {
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    color: #222;
    position: relative;
    display: inline-block;
}

.rank-first .card-title:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(to right, #ffe259, #ffa751);
}

.ranking-description {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
}

/* 排行榜丝带 */
.rank-ribbon {
    position: absolute;
    top: 0;
    right: 30px;
    z-index: 1;
    color: white;
    padding: 8px 15px;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 85%, 0 100%);
    height: 60px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    letter-spacing: 1px;
}

.rank-ribbon-gold {
    background: linear-gradient(to bottom, #ffd700, #ffa500);
}

.rank-ribbon-silver {
    background: linear-gradient(to bottom, #e6e6e6, #a8a9ad);
}

.rank-ribbon-bronze {
    background: linear-gradient(to bottom, #cd7f32, #8D542E);
}

/* 背景效果 */
.bg-light-pattern {
    background-color: #f8f9fa;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23e9ecef' fill-opacity='0.4' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
}

/* 区块标题美化 */
.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 1rem;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, #4158d0, #c850c0);
    margin: 15px auto 0;
    border-radius: 2px;
}

.section-divider {
    width: 100px;
    height: 2px;
    background: rgba(0,0,0,0.1);
} 