/* 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);
}

/* Header styles */
.site-header {
    background: linear-gradient(to right, rgba(255, 154, 158, 0.95), rgba(250, 208, 196, 0.95));
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    backdrop-filter: blur(5px);
}

.main-nav {
    max-width: 1200px;
    margin: 0 auto;
}

.site-title {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.domain-suffix {
    color: #666;
}

.logo-image {
    height: 2rem;
    width: auto;
    object-fit: contain;
}

/* Hero section */
.hero {
    min-height: 90vh;
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 99%, #fad0c4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem;
}

/* Chapters section */
.chapters {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
}

/* About section */
.about {
    background-color: #f5f5f5;
    padding: 4rem 2rem;
}

/* Footer */
.site-footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 2rem;
    text-align: center;
}

/* Responsive design */
@media (max-width: 768px) {
    .main-nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero {
        min-height: 60vh;
    }
}

/* Hero section */
.hero {
    min-height: 90vh;
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 99%, #fad0c4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 1200px;
}

.hero h1 {
    font-size: 3.5rem;
    color: #333;
}

.hero-description {
    font-size: 1.2rem;
    color: #444;
    max-width: 800px;
    line-height: 1.8;
    margin: 0 auto;
    opacity: 0.9;
}

.hero-images {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin: 2rem 0;
}

.hero-image {
    width: 300px;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.start-reading-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

.start-reading-btn:hover {
    transform: translateY(-2px);
}

/* Responsive design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-images {
        gap: 1rem;
    }

    .hero-image {
        width: 45%;
        height: 300px;
        max-width: none;
    }

    .hero-description {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

/* 添加更小屏幕的样式 */
@media (max-width: 480px) {
    .hero-image {
        height: 250px;
    }
}

/* Chapters section */
.chapters {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 1rem;
}

.chapters h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

.chapters-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chapter-item {
    border-bottom: 1px solid #eee;
}

.chapter-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: #333;
    background-color: #eee;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.chapter-item a:hover {
    background-color: #ddd;
    transform: translateX(5px);
}

.chapter-title {
    font-weight: 500;
}

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

.chapters-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--primary-color);
    background: none;
    color: var(--primary-color);
    cursor: pointer;
    border-radius: 4px;
}

.pagination-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.page-number {
    color: #666;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .chapters {
        margin: 2rem auto;
    }
    
    .chapter-item a {
        padding: 0.8rem;
    }
    
    .chapter-title {
        font-size: 0.9rem;
    }
    
    .chapter-date {
        font-size: 0.8rem;
    }
}

.about {
    background-color: #f5f5f5;
    padding: 4rem 2rem;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
    line-height: 1.8;
}

.about h2 {
    color: var(--secondary-color);
    margin: 2.5rem 0 1.5rem;
    font-size: 2rem;
}

.about h3 {
    color: var(--primary-color);
    margin: 2rem 0 1rem;
    font-size: 1.5rem;
}

.about h4 {
    color: var(--secondary-color);
    margin: 1.5rem 0 0.8rem;
    font-size: 1.2rem;
}

.about p {
    margin-bottom: 1.5rem;
    color: #444;
}

.features-grid, .themes-section, .reading-experience {
    margin: 2rem 0;
}

.reading-guide {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    margin-top: 3rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .about {
        padding: 2rem 1rem;
    }
    
    .about h2 {
        font-size: 1.8rem;
    }
    
    .about h3 {
        font-size: 1.3rem;
    }
}

/* Video section styles */
.video-section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.video-container {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.video-wrapper {
    width: 100%;
    max-width: 560px; /* 标准 YouTube 视频宽度 */
    position: relative;
    padding-bottom: 31.25%; /* 16:9 宽高比 */
    height: 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .video-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .video-section {
        margin: 2rem auto;
        padding: 0 1rem;
    }

    .video-wrapper {
        max-width: 100%;
        padding-bottom: 75%; 
    }
}

/* 更小屏幕的适配 */
@media (max-width: 480px) {
    .video-wrapper {
        padding-bottom: 80%; /* 在更小的屏幕上进一步增加高度 */
    }
}