/* 面包屑导航样式 */
.breadcrumb {
    background-color: #1a1f24;
    padding: 1rem 2rem;
    margin-top: var(--header-height);
}

.breadcrumb__container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.breadcrumb__link {
    color: #4ECDC4;
    text-decoration: none;
}

.breadcrumb__separator {
    color: #666;
    margin: 0 0.5rem;
}

.breadcrumb__current {
    color: #fff;
}

/* 章节Hero部分样式 */
.chapter-hero {
    position: relative;
    background-color: #1a1f24;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    overflow: hidden;
}

/* 背景图片 */
.chapter-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../hero.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 深色渐变遮罩 */
.chapter-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(26, 31, 36, 0.8) 0%,
        rgba(26, 31, 36, 0.6) 50%,
        rgba(26, 31, 36, 0.8) 100%
    );
}

.chapter-hero__container {
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
    z-index: 2;
    text-align: center;
}

.chapter-hero__title {
    color: white;
    font-size: 3rem;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.chapter-hero__navigation {
    display: flex;
    justify-content: center;
    gap: 1rem;
    align-items: center;
}

/* 漫画阅读器样式 */
.manga-reader {
    background-color: #1a1f24;
    padding: 2rem;
}

.manga-reader__container {
    max-width: 800px;
    margin: 0 auto;
}

.manga-reader__images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.manga-reader__image {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* 章节SEO内容样式 */
.chapter-seo {
    background-color: #1a1f24;
    padding: 4rem 2rem;
    color: white;
}

.chapter-seo__container {
    max-width: var(--max-width);
    margin: 0 auto;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .chapter-hero__navigation {
        flex-direction: column;
    }

    .manga-reader {
        padding: 1rem;
    }

    .chapter-hero {
        min-height: 200px;
        padding: 3rem 1rem;
    }

    .chapter-hero__title {
        font-size: 2rem;
    }
}

/* Chapter SEO Content Styles */
.chapter-seo {
    background-color: #1a1f24;
    padding: 4rem 2rem;
}

.chapter-seo__container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.chapter-seo__content {
    color: #e1e1e1;
    line-height: 1.8;
}

/* 标题样式 */
.chapter-seo__content h2 {
    color: white;
    font-size: 2.5rem;
    margin: 3rem 0 2rem;
    border-bottom: 2px solid #4ECDC4;
    padding-bottom: 1rem;
}

.chapter-seo__content h3 {
    color: #4ECDC4;
    font-size: 1.8rem;
    margin: 2.5rem 0 1.5rem;
}

.chapter-seo__content h4 {
    color: #FF6B6B;
    font-size: 1.4rem;
    margin: 2rem 0 1rem;
}

/* 段落样式 */
.chapter-seo__content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #e1e1e1;
}

/* 列表样式 */
.chapter-seo__content ul {
    list-style: none;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
}

.chapter-seo__content li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    color: #e1e1e1;
}

.chapter-seo__content li::before {
    content: "•";
    color: #4ECDC4;
    position: absolute;
    left: 0;
}

/* 链接样式 */
.chapter-seo__content a {
    color: #4ECDC4;
    text-decoration: none;
    transition: color 0.2s ease;
}

.chapter-seo__content a:hover {
    color: #FF6B6B;
}

/* 强调文本 */
.chapter-seo__content strong {
    color: white;
    font-weight: 600;
}

/* 引用样式 */
.chapter-seo__content blockquote {
    border-left: 4px solid #4ECDC4;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #b8b8b8;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .chapter-seo {
        padding: 2rem 1rem;
    }

    .chapter-seo__content h2 {
        font-size: 2rem;
    }

    .chapter-seo__content h3 {
        font-size: 1.5rem;
    }

    .chapter-seo__content h4 {
        font-size: 1.2rem;
    }

    .chapter-seo__content p {
        font-size: 1rem;
    }
}

/* 打印样式优化 */
@media print {
    .chapter-seo {
        background-color: white;
        color: black;
    }

    .chapter-seo__content h2,
    .chapter-seo__content h3,
    .chapter-seo__content h4 {
        color: black;
    }

    .chapter-seo__content p {
        color: #333;
    }
}

/* Chapter Update Styles */
.chapter-update {
    margin: 2rem 0;
    text-align: center;
}

.chapter-update__alert {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, #2c3e50, #3498db);
    padding: 1.5rem 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    animation: pulse 2s infinite;
}

.chapter-update__icon {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.chapter-update__text {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    text-align: center;
    line-height: 1.4;
}

.chapter-update__subtext {
    color: #e1e1e1;
    font-size: 0.9rem;
    margin: 0;
    text-align: center;
    line-height: 1.4;
}

/* SEO部分的特殊样式 */
.chapter-update--seo {
    margin: 2rem 0 4rem 0;
}

.chapter-update--seo .chapter-update__alert {
    background: linear-gradient(135deg, #1a1f24, #2c3e50);
    border: 1px solid #3498db;
}

/* 动画效果 */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .chapter-update__alert {
        flex-direction: column;
        padding: 1rem;
        text-align: center;
    }

    .chapter-update__icon {
        margin: 0 0 0.5rem 0;
    }

    .chapter-update__text {
        font-size: 1rem;
    }
}

/* 深色主题适配 */
@media (prefers-color-scheme: dark) {
    .chapter-update__alert {
        background: linear-gradient(135deg, #1a1f24, #2c3e50);
    }
}

/* 打印样式优化 */
@media print {
    .chapter-update {
        display: none;
    }
}

/* 导航容器 */
.manga-reader__navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin: 20px 0;
    gap: 20px;
}

/* 导航按钮基础样式 */
.manga-reader__nav-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    background-color: #4a4a4a;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
    text-align: center;
}

/* 按钮悬停效果 */
.manga-reader__nav-btn:hover {
    background-color: #666666;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 按钮点击效果 */
.manga-reader__nav-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

/* 禁用状态样式 */
.manga-reader__nav-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .manga-reader__navigation {
        flex-direction: column;
        gap: 10px;
    }

    .manga-reader__nav-btn {
        width: 100%;
        min-width: unset;
        padding: 10px 20px;
    }
}