/* Base styles */
:root {
    --primary-color: #ff69b4;
    --secondary-color: #333;
    --background-color: #fff;
    --text-color: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f5f5f5;
}

/* Header styles - 继承主页的样式 */

/* Chapter Hero styles */
.chapter-hero {
    height: 50vh;
    min-height: 400px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.2)), url('../herochapter.webp');
    background-size: 80% auto;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem 2rem;
    color: white;
    position: relative;
}

.chapter-info {
    max-width: 800px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    padding: 0 2rem;
}

.chapter-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.chapter-subtitle {
    font-size: 1.5rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Manga Reader styles */
.manga-content {
    max-width: 100%;
    margin: 0;
    padding: 0;
    background-color: #000;
}

.manga-reader {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1rem;
    background: #000;
}

.manga-pages {
    margin: 2rem auto;
    text-align: center;
}

.manga-page {
    max-width: 100%;
    height: auto;
    margin: 1rem auto;
    display: block;
}

/* Navigation styles */
.chapter-navigation,
.page-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin: 1rem auto;
    max-width: 800px;
    padding: 0 1rem;
    color: #fff;
}

.nav-btn {
    background: #333;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.nav-btn:hover {
    background: #444;
}

.page-info {
    color: #fff;
}

/* SEO Content styles */
.chapter-about {
    max-width: 800px;
    margin: 4rem auto;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Responsive design */
@media (max-width: 768px) {
    .chapter-hero {
        height: 40vh;
        min-height: 300px;
        background-size: 95% auto;
    }

    .chapter-hero h1 {
        font-size: 2.5rem;
    }

    .chapter-subtitle {
        font-size: 1.2rem;
    }

    .manga-content {
        padding: 0;
    }
    
    .manga-reader {
        padding: 0.5rem;
    }
}

/* SEO Content styles */
.chapter-about {
    max-width: 800px;
    margin: 4rem auto;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    color: #333;
    line-height: 1.8;
}

/* Headings hierarchy */
.chapter-about h2 {
    font-size: 2rem;
    color: #222;
    margin: 2.5rem 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #ff69b4;  /* 使用漫画主题色 */
}

.chapter-about h3 {
    font-size: 1.5rem;
    color: #333;
    margin: 2rem 0 1rem;
}

.chapter-about h4 {
    font-size: 1.25rem;
    color: #444;
    margin: 1.5rem 0 1rem;
}

/* Paragraphs */
.chapter-about p {
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    color: #555;
}

/* Lists */
.chapter-about ul {
    margin: 1rem 0 1.5rem 2rem;
    list-style-type: disc;
}

.chapter-about li {
    margin-bottom: 0.8rem;
    color: #555;
    font-size: 1.1rem;
}

/* Content sections */
.chapter-content > div {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: #fafafa;
    border-radius: 6px;
}

/* Special sections */
.reading-highlights,
.reading-tips,
.theme-analysis,
.manga-reception,
.technical-analysis,
.cultural-elements,
.unique-features,
.chapter-impact,
.future-developments {
    border-left: 4px solid #ff69b4;
    padding-left: 1.5rem;
    margin: 2rem 0;
}

/* Emphasis elements */
.chapter-about strong {
    color: #222;
    font-weight: 600;
}

/* Links */
.chapter-about a {
    color: #ff69b4;
    text-decoration: none;
    transition: color 0.3s ease;
}

.chapter-about a:hover {
    color: #ff1493;
    text-decoration: underline;
}

/* Conclusion section */
.conclusion {
    margin-top: 3rem;
    padding: 2rem;
    background: #fff5f8;  /* 浅粉色背景 */
    border-radius: 8px;
    border: 1px solid #ffe4e1;
}

/* Responsive design */
@media (max-width: 768px) {
    .chapter-about {
        margin: 2rem auto;
        padding: 1.5rem;
    }

    .chapter-about h2 {
        font-size: 1.75rem;
    }

    .chapter-about h3 {
        font-size: 1.35rem;
    }

    .chapter-about h4 {
        font-size: 1.15rem;
    }

    .chapter-about p,
    .chapter-about li {
        font-size: 1rem;
    }

    .chapter-content > div {
        padding: 1rem;
    }
}

/* Print styles */
@media print {
    .chapter-about {
        box-shadow: none;
        margin: 0;
        padding: 1rem;
    }

    .chapter-about a {
        text-decoration: underline;
        color: #000;
    }
}

/* Breadcrumb styles */
.breadcrumb {
    background: #fff;
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
    margin-top: 60px; /* 调整这个值以匹配你的 header 高度 */
}

.breadcrumb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.breadcrumb ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 0.9rem;
}

.breadcrumb li:not(:last-child)::after {
    content: "›";
    margin: 0 0.5rem;
    color: #999;
}

.breadcrumb a {
    color: #ff69b4;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #ff1493;
    text-decoration: underline;
}

.breadcrumb .current {
    color: #333;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .breadcrumb {
        padding: 0.6rem 0;
        margin-top: 45px; /* 调小移动端的 margin-top */
    }

    .site-header {
        height: 55px; /* 确保移动端 header 高度固定 */
        min-height: 45px;
        padding: 0.5rem 1rem; /* 减小 header 的内边距 */
    }

    .logo-image {
        height: 30px; /* 调整 logo 大小 */
        width: auto;
    }

    .site-title {
        font-size: 1.2rem; /* 调整标题大小 */
    }

    .breadcrumb li {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .breadcrumb {
        margin-top: 40px; /* 更小屏幕上进一步调整 */
    }

    .site-header {
        height: 40px;
        min-height: 40px;
    }
}