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

.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, #f093fb 0%, #f5576c 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(240, 147, 251, 0.1);
    color: var(--primary);
}

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

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

/* 页面头部 */
.page-hero {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 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;
}

/* 更新概览 */
.update-overview {
    padding: 60px 0;
    background: var(--gray);
}

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

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

.stat-card.hot::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #ff6b6b;
}

.stat-card.trending::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #4ecdc4;
}

.stat-card.new::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #45b7d1;
}

.stat-card.complete::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #28a745;
}

.stat-icon {
    font-size: 32px;
    margin-bottom: 15px;
}

.stat-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

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

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

/* 筛选按钮 */
.update-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

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

/* 最新漫画 */
.latest-manga {
    padding: 80px 0;
}

.manga-grid {
    display: grid;
    gap: 30px;
}

.manga-card {
    background: var(--light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    position: relative;
}

.manga-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.manga-card.featured {
    border: 2px solid var(--primary);
}

.update-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    z-index: 1;
}

.update-badge.hot {
    background: #ff6b6b;
}

.update-badge.new {
    background: #4ecdc4;
}

.update-badge.trending {
    background: #45b7d1;
}

.update-badge.mystery {
    background: #6c757d;
}

.update-badge.complete {
    background: #28a745;
}

.update-badge.new-series {
    background: #fd7e14;
}

.manga-cover {
    width: 200px;
    height: 280px;
    object-fit: cover;
    flex-shrink: 0;
}

.manga-info {
    padding: 30px;
    flex: 1;
}

.manga-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
}

.manga-author {
    color: #666;
    margin-bottom: 15px;
}

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

.tag {
    background: rgba(240, 147, 251, 0.1);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.manga-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.manga-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.manga-summary {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

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

/* 时间线 */
.update-timeline {
    padding: 80px 0;
    background: var(--gray);
}

.timeline-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline-container::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.time-stamp {
    width: 80px;
    height: 80px;
    background: var(--light);
    border: 4px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: var(--primary);
    z-index: 1;
}

.timeline-item.active .time-stamp {
    background: var(--primary);
    color: var(--light);
}

.timeline-item.upcoming .time-stamp {
    background: var(--gray);
    border-color: #ddd;
    color: #666;
}

.timeline-content {
    flex: 1;
    background: var(--light);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin: 0 40px;
}

.timeline-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.timeline-desc {
    color: #666;
    margin-bottom: 10px;
}

.update-count {
    font-size: 14px;
    color: var(--primary);
    font-weight: 500;
}

/* 页脚 */
.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;
    }
    
    .update-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .manga-card {
        flex-direction: column;
    }
    
    .manga-cover {
        width: 100%;
        height: 200px;
    }
    
    .timeline-container::before {
        left: 40px;
    }
    
    .timeline-item {
        flex-direction: row !important;
        padding-left: 100px;
    }
    
    .timeline-item:nth-child(odd) {
        flex-direction: row !important;
    }
    
    .time-stamp {
        position: absolute;
        left: 0;
    }
    
    .timeline-content {
        margin: 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}