/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基础变量 */
:root {
    --primary-color: #6a1b9a; /* 深紫色作为主色调 */
    --secondary-color: #ff9e80; /* 柔和的粉橙色作为辅助色 */
    --accent-color: #ffab00; /* 金色作为强调色 */
    --text-color: #333333;
    --light-text: #ffffff;
    --background-color: #f8f8f8;
    --container-width: 1200px;
    --header-height: 70px;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* 基础排版 */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* 按钮样式 */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-text);
    border: none;
}

.btn-primary:hover {
    background-color: #5c1786; /* 深一点的紫色 */
    color: var(--light-text);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
}

/* 头部样式 */
.site-header {
    background-color: var(--light-text);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo h1 {
    font-size: 1.5rem;
    margin-bottom: 0;
    color: var(--primary-color);
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav li {
    margin-left: 30px;
}

.main-nav a {
    font-weight: 500;
    position: relative;
}

.main-nav a.active, .main-nav a:hover {
    color: var(--accent-color);
}

.main-nav a.active::after, .main-nav a:hover::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
}

/* Hero 部分样式 */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eaec 100%);
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.hero-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.manga-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #555;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.poster {
    max-height: 500px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.poster:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* 章节部分样式 */
.chapters-section {
    padding: 80px 0;
    background-color: var(--light-text);
}

.chapters-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
}

.chapters-list {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
}

.chapters-list li {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.chapters-list li:hover {
    background-color: #f9f9f9;
    padding-left: 10px;
}

.chapters-list a {
    font-weight: 500;
    font-size: 1.1rem;
}

.chapter-date {
    color: #888;
    font-size: 0.9rem;
}

.chapters-more {
    text-align: center;
    margin-top: 40px;
}

/* SEO 内容部分 */
.seo-content {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.seo-content .container {
    max-width: 800px;
}

.seo-content h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.2rem;
    color: var(--primary-color);
}

/* 新增的SEO内容样式 */
.seo-section {
    margin-bottom: 40px;
    background-color: #fff;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.seo-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.seo-section h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
}

.seo-section h4 {
    color: var(--accent-color);
    margin: 20px 0 10px;
    font-size: 1.2rem;
}

.seo-section p {
    line-height: 1.7;
    color: #444;
}

.value-points, .character-list {
    padding-left: 20px;
    margin-bottom: 20px;
}

.value-points li, .character-list li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 5px;
}

.character-profile {
    margin-bottom: 25px;
    padding-left: 15px;
    border-left: 3px solid var(--secondary-color);
}

/* 页脚样式 */
.site-footer {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 20px 0;
    text-align: center;
}

.site-footer p {
    margin-bottom: 0;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column-reverse;
    }
    
    .hero-text, .hero-image {
        flex: none;
        width: 100%;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .poster {
        margin: 0 auto 30px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }
    
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .main-nav li {
        margin-left: 15px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-text h2 {
        font-size: 2rem;
    }
    
    .manga-description {
        font-size: 1rem;
    }
    
    .chapters-section h2, .seo-content h2 {
        font-size: 1.8rem;
    }
    
    .chapters-list a {
        font-size: 1rem;
    }
    
    .seo-section {
        padding: 20px;
    }
    
    .seo-section h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 90px 0 50px;
    }
    
    .hero-text h2 {
        font-size: 1.8rem;
    }
    
    .chapters-list li {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .chapter-date {
        margin-top: 5px;
    }
    
    .btn-primary, .btn-secondary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .seo-section {
        padding: 15px;
    }
    
    .seo-section h3 {
        font-size: 1.2rem;
    }
    
    .character-profile {
        padding-left: 10px;
    }
}

/* All Chapters Page */
.all-chapters-section {
    padding: 80px 0;
    margin-top: var(--header-height);
}

.all-chapters-section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5rem;
}

.chapters-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    color: #666;
}

.chapters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.chapter-group {
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 25px;
    transition: var(--transition);
}

.chapter-group:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.chapter-group h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
}

#back-to-top-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--light-text);
    border-radius: 50%;
    text-decoration: none;
    font-size: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
}

#back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

#back-to-top-btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-5px);
}

/* Responsive styles for all-chapters page */
@media (max-width: 768px) {
    .chapters-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .all-chapters-section h2 {
        font-size: 2rem;
    }
    
    .chapter-group {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .chapters-grid {
        grid-template-columns: 1fr;
    }
    
    .all-chapters-section {
        padding: 60px 0;
    }
    
    .all-chapters-section h2 {
        font-size: 1.8rem;
    }
} 