/* 哔咔漫画 - 热门推荐页面样式 */

/* Tab导航 */
.bc-tab-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.bc-tab-btn.active {
    box-shadow: 0 8px 25px rgba(244, 114, 182, 0.3);
}

.bc-tab-btn:not(.active):hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 114, 182, 0.2);
}

/* 推荐项目 */
.bc-recommend-item {
    position: relative;
    overflow: hidden;
}

.bc-recommend-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.bc-recommend-item:hover::before {
    left: 100%;
}

/* 排名数字 */
.bc-rank-number {
    font-family: 'Orbitron', monospace;
    font-weight: bold;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.bc-recommend-item:hover .bc-rank-number {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

/* 金银铜特殊效果 */
.bc-rank-number:contains("1") {
    background: linear-gradient(45deg, #ffd700, #ffed4e) !important;
    animation: bc-gold-shine 2s infinite;
}

.bc-rank-number:contains("2") {
    background: linear-gradient(45deg, #c0c0c0, #e5e7eb) !important;
    animation: bc-silver-shine 2s infinite;
}

.bc-rank-number:contains("3") {
    background: linear-gradient(45deg, #cd7f32, #f59e0b) !important;
    animation: bc-bronze-shine 2s infinite;
}

@keyframes bc-gold-shine {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes bc-silver-shine {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes bc-bronze-shine {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* 热门卡片 */
.bc-popular-card {
    position: relative;
    transition: all 0.4s ease;
}

.bc-popular-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(244, 114, 182, 0.15);
}

.bc-popular-badge {
    transition: all 0.3s ease;
    animation: bc-hot-pulse 2s infinite;
}

@keyframes bc-hot-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* 趋势卡片 */
.bc-trending-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.bc-trending-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(244, 114, 182, 0.15);
}

.bc-trending-badge {
    transition: all 0.3s ease;
}

.bc-trending-percent {
    transition: all 0.3s ease;
    font-weight: bold;
}

.bc-trending-card:hover .bc-trending-percent {
    transform: translateY(-2px);
    color: #10b981;
}

/* 评分统计面板 */
.bc-rating-stats {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.8) 100%);
    transition: all 0.3s ease;
}

.bc-rating-stats:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(244, 114, 182, 0.15);
}

/* Tab面板 */
.bc-tab-pane {
    opacity: 0;
    display: none;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.bc-tab-pane.active {
    opacity: 1;
    display: block;
    transform: translateY(0);
    animation: bc-tab-fade-in 0.4s ease-out;
}

@keyframes bc-tab-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 阅读按钮 */
.bc-read-btn {
    position: relative;
    overflow: hidden;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.bc-read-btn:hover {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.bc-read-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.bc-read-btn:hover::before {
    left: 100%;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .bc-tabs-nav {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .bc-tab-btn {
        width: 100%;
    }
    
    .bc-recommend-item .flex {
        flex-direction: column;
        text-align: center;
    }
    
    .bc-rank-number {
        margin: 0 auto 1rem auto;
    }
    
    .bc-recommend-item img {
        width: 80px;
        height: 100px;
        margin: 0 auto 1rem auto;
    }
    
    .bc-popular-grid {
        grid-template-columns: 1fr;
    }
    
    .bc-trending-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .bc-hero-title {
        font-size: 2.5rem;
    }
    
    .bc-recommend-stats .grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .bc-recommend-item {
        padding: 1.5rem;
    }
    
    .bc-popular-card,
    .bc-trending-card {
        padding: 1rem;
    }
    
    .bc-rating-stats {
        padding: 1.5rem;
    }
}