.chapter-content {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.chapter-header {
    text-align: center;
    margin-bottom: 40px;
}

.chapter-header h1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--primary-color);
    margin-bottom: 20px;
}

.chapter-navigation {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.nav-button {
    display: inline-block;
    padding: clamp(8px, 2vw, 10px) clamp(15px, 3vw, 20px);
    background-color: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: clamp(14px, 2vw, 16px);
    text-align: center;
    min-width: 120px;
}

.nav-button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.nav-button[disabled] {
    background-color: #ccc;
    cursor: not-allowed;
    pointer-events: none;
}

.manga-images {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 10px;
    box-sizing: border-box;
}

.manga-image {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.manga-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: contain;
    vertical-align: middle;
}

.chapter-footer {
    margin-top: 40px;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 10px;
    box-sizing: border-box;
}

.seo-content {
    margin-top: 60px;
    padding: clamp(20px, 4vw, 40px);
    background-color: #f9f9f9;
    border-radius: 10px;
    width: 100%;
    box-sizing: border-box;
}

.chapter-summary {
    margin-bottom: 40px;
}

.chapter-summary h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
}

.related-chapters,
.chapter-tags {
    margin-top: 30px;
}

.related-chapters h2,
.chapter-tags h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
}

.related-chapters ul,
.chapter-tags ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-chapters li,
.chapter-tags li {
    margin-bottom: 10px;
}

.related-chapters a,
.chapter-tags a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: clamp(14px, 2vw, 16px);
}

.related-chapters a:hover,
.chapter-tags a:hover {
    text-decoration: underline;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .chapter-content {
        padding: 10px;
    }

    .chapter-navigation {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-button {
        width: 100%;
    }

    .manga-images {
        padding: 0 5px;
    }

    .manga-image {
        border-radius: 4px;
    }

    .chapter-footer {
        padding: 0 5px;
    }

    .seo-content {
        padding: 15px;
        margin-top: 30px;
    }
}

/* 防止内容溢出 */
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

* {
    box-sizing: border-box;
} 