/* 章节页面专用样式 */

/* 章节阅读器容器 */
.reader-container {
    max-width: 1000px;
    margin: 90px auto 0 auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(108,99,255,0.12);
    overflow: hidden;
}

/* 章节信息头部 */
.chapter-header {
    background: linear-gradient(135deg, #6C63FF 0%, #8B78FF 100%);
    padding: 2.5rem 2rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.chapter-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1" fill="rgba(255,214,0,0.15)"/><circle cx="40" cy="80" r="0.8" fill="rgba(255,255,255,0.08)"/></svg>') repeat;
    pointer-events: none;
}

.chapter-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    color: #FFD600;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
}

.chapter-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.chapter-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.info-badge {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.3);
}

/* 章节导航 */
.chapter-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: #F9F9FF;
    border-bottom: 1px solid #E0E0FF;
    gap: 1rem;
}

.chapter-nav a {
    background: linear-gradient(135deg, #6C63FF, #8B78FF);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(108,99,255,0.2);
}

.chapter-nav a:hover {
    background: linear-gradient(135deg, #FFD600, #FFA000);
    color: #222;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,214,0,0.3);
}

.chapter-nav .nav-center {
    background: rgba(108,99,255,0.1);
    color: #6C63FF;
    border: 2px solid #6C63FF;
}

.chapter-nav .nav-center:hover {
    background: #6C63FF;
    color: #fff;
}

/* 阅读进度指示器 */
.reading-progress {
    padding: 1rem 2rem;
    background: #fff;
    border-bottom: 1px solid #E0E0FF;
    text-align: center;
}

.progress-text {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #E0E0FF;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6C63FF, #FFD600);
    width: 0%;
    transition: width 0.3s ease;
}

/* 漫画页面容器 */
.manga-pages {
    padding: 2rem;
    background: #fff;
}

.manga-page-container {
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

.page-number {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(108,99,255,0.9);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
}

.manga-page-img {
    width: 100%;
    max-width: 750px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(108,99,255,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.manga-page-img:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(108,99,255,0.2);
}

/* 章节总结 */
.chapter-summary {
    background: linear-gradient(135deg, #F7F6FF 0%, #FFFFFF 100%);
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 16px;
    border-left: 5px solid #6C63FF;
}

.summary-title {
    color: #6C63FF;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.summary-title::before {
    content: '📖';
    font-size: 1.2rem;
}

.summary-content {
    color: #444;
    line-height: 1.7;
    font-size: 1rem;
}

/* 作者信息 */
.creator-info {
    background: rgba(255,214,0,0.1);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.creator-info h4 {
    color: #6C63FF;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.creator-info p {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .reader-container {
        margin: 80px 1rem 0 1rem;
        border-radius: 16px;
    }
    
    .chapter-header {
        padding: 2rem 1.5rem;
    }
    
    .chapter-title {
        font-size: 2rem;
    }
    
    .chapter-nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .chapter-nav a {
        width: 100%;
        text-align: center;
        padding: 1rem;
    }
    
    .manga-pages {
        padding: 1rem;
    }
    
    .chapter-summary,
    .creator-info {
        margin: 1rem;
        padding: 1.5rem;
    }
}

/* 页面加载动画 */
.manga-page-img {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.manga-page-container:nth-child(2) .manga-page-img { animation-delay: 0.1s; }
.manga-page-container:nth-child(3) .manga-page-img { animation-delay: 0.2s; }
.manga-page-container:nth-child(4) .manga-page-img { animation-delay: 0.3s; }
.manga-page-container:nth-child(5) .manga-page-img { animation-delay: 0.4s; }
.manga-page-container:nth-child(6) .manga-page-img { animation-delay: 0.5s; } 