/* 继承主样式 */
@import url('./main.css');

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 导航样式 */
.main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section h1 {
    font-size: 24px;
    margin: 0;
}

.logo-link {
    text-decoration: none;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.slogan {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 10px;
    align-items: center;
}

.nav-item {
    text-decoration: none;
    color: var(--dark);
    padding: 8px 16px;
    border-radius: 20px;
    transition: var(--transition);
    font-size: 14px;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(79, 172, 254, 0.1);
    color: var(--primary);
}

.nav-item.cta-btn {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: var(--light);
}

/* 主内容 */
.main-content {
    flex: 1;
    padding-top: 20px;
}

/* 页面头部 */
.page-hero {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: var(--light);
    padding: 60px 0;
    text-align: center;
}

.page-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 18px;
    opacity: 0.9;
}

/* 人气统计 */
.popularity-overview {
    padding: 60px 0;
    background: var(--gray);
}

.popularity-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.stat-item {
    background: var(--light);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.stat-item.champion::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
}

.stat-item.rating::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #ff6b9d 0%, #4ecdc4 100%);
}

.stat-item.views::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-item.collection::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    display: block;
}

.stat-label {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.stat-note {
    font-size: 12px;
    color: #666;
}

/* 排行榜 */
.ranking-section {
    padding: 80px 0;
}

.ranking-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.rank-tab {
    padding: 12px 24px;
    border: none;
    background: rgba(79, 172, 254, 0.1);
    color: var(--primary);
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.rank-tab.active,
.rank-tab:hover {
    background: var(--primary);
    color: var(--light);
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.rank-item {
    background: var(--light);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 30px;
    align-items: center;
    transition: var(--transition);
}

.rank-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.rank-item.champion {
    border: 2px solid #ffd700;
    background: linear-gradient(135deg, rgba(255,215,0,0.05) 0%, rgba(255,255,255,1) 100%);
}

.rank-item.runner-up {
    border: 2px solid #c0c0c0;
}

.rank-item.third-place {
    border: 2px solid #cd7f32;
}

.rank-position {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.rank-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--light);
    background: var(--primary);
}

.rank-number.gold {
    background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
}

.rank-number.silver {
    background: linear-gradient(135deg, #c0c0c0 0%, #a0a0a0 100%);
}

.rank-number.bronze {
    background: linear-gradient(135deg, #cd7f32 0%, #b8860b 100%);
}

.rank-crown,
.rank-medal {
    font-size: 20px;
}

.manga-cover-section {
    position: relative;
}

.rank-cover {
    width: 120px;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.popularity-indicator {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.rank-info {
    flex: 1;
}

.manga-header {
    margin-bottom: 15px;
}

.rank-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 5px;
}

.rank-author {
    color: #666;
    margin-bottom: 10px;
}

.manga-genres {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.genre-tag {
    background: rgba(79, 172, 254, 0.1);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.rank-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.rank-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.metric-item {
    text-align: center;
    padding: 10px;
    background: var(--gray);
    border-radius: 8px;
}

.metric-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.metric-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
}

.metric-value.gold {
    color: #ffd700;
}

.metric-value.silver {
    color: #c0c0c0;
}

.metric-value.bronze {
    color: #cd7f32;
}

.popularity-progress {
    display: flex;
    align-items: center;
    gap: 15px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease;
}

.progress-fill.champion {
    background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
}

.progress-fill.runner-up {
    background: linear-gradient(135deg, #c0c0c0 0%, #a0a0a0 100%);
}

.progress-fill.third-place {
    background: linear-gradient(135deg, #cd7f32 0%, #b8860b 100%);
}

.progress-fill {
    background: var(--primary);
}

.progress-text {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* 热搜话题 */
.trending-topics {
    padding: 80px 0;
    background: var(--gray);
}

.trending-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.trending-item {
    background: var(--light);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
}

.trending-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.trending-item.explosive {
    border-left: 4px solid #ff4444;
}

.trending-item.hot {
    border-left: 4px solid #ff8800;
}

.trend-rank {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.trend-content {
    flex: 1;
}

.trend-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.trend-stats {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #666;
}

.trend-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.trend-badge.explosive {
    background: #ff4444;
}

.trend-badge.hot {
    background: #ff8800;
}

.trend-badge {
    background: var(--primary);
}

/* 页脚 */
.main-footer {
    background: var(--dark);
    color: var(--light);
    padding: 60px 0 30px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-desc {
    line-height: 1.7;
    color: #bbb;
    margin-bottom: 20px;
}

.footer-copyright {
    font-size: 14px;
    color: #999;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.contact-info p {
    margin-bottom: 8px;
    color: #bbb;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .popularity-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .rank-item {
        flex-direction: column;
        text-align: center;
    }
    
    .rank-metrics {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rank-item {
    animation: fadeInUp 0.6s ease forwards;
}