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

body {
    font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

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

a {
    text-decoration: none;
    color: #e74c3c;
    transition: color 0.3s ease;
}

a:hover {
    color: #c0392b;
}

ul, ol {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
#header {
    background-color: #e74c3c;
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo a {
    color: white;
    font-size: 24px;
    font-weight: bold;
    display: inline-block;
    padding: 5px 0;
}

#nav {
    display: flex;
    justify-content: flex-end;
}

#nav ul {
    display: flex;
    flex-wrap: wrap;
}

#nav li {
    margin-left: 20px;
}

#nav a {
    color: white;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

#nav a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* 英雄区域样式 */
.hero {
    background-color: #f5f5f5;
    padding: 80px 0;
    text-align: center;
    background-image: linear-gradient(to bottom, #e74c3c20, #f9f9f9);
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
    color: #e74c3c;
}

.hero .subtitle {
    font-size: 20px;
    color: #555;
    margin-bottom: 40px;
}

.hero-image {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 通用区块样式 */
section {
    padding: 80px 0;
}

section:nth-child(odd) {
    background-color: #fff;
}

section:nth-child(even) {
    background-color: #f9f9f9;
}

section h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #e74c3c;
    position: relative;
}

section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: #e74c3c;
    margin: 15px auto 0;
    border-radius: 3px;
}

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

.text-content {
    flex: 1;
    min-width: 300px;
}

.image-content {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* 卡片样式 */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card-image {
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    margin-bottom: 10px;
    color: #e74c3c;
}

/* 评论区样式 */
.review-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.review-card {
    display: flex;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.review-image {
    flex: 0 0 200px;
}

.review-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-content {
    flex: 1;
    padding: 20px;
}

.review-content h3 {
    color: #e74c3c;
    margin-bottom: 10px;
}

.review-author {
    margin-top: 15px;
    text-align: right;
    font-style: italic;
    color: #777;
}

/* 剧集列表样式 */
.episode-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.episode-card {
    display: flex;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.episode-image {
    flex: 0 0 200px;
}

.episode-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.episode-content {
    flex: 1;
    padding: 20px;
}

.episode-content h3 {
    color: #e74c3c;
    margin-bottom: 10px;
}

/* 文章样式 */
.article-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.article-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.article-card h3 {
    color: #e74c3c;
    margin-bottom: 15px;
    font-size: 22px;
}

.article-card p {
    margin-bottom: 15px;
}

.article-card p:last-child {
    margin-bottom: 0;
}

/* 页脚样式 */
#footer {
    background-color: #333;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    flex: 1;
    min-width: 300px;
}

.footer-logo h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #e74c3c;
}

.footer-links {
    flex: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-column {
    flex: 1;
    min-width: 150px;
}

.footer-column h4 {
    color: #e74c3c;
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #444;
}

.footer-bottom p {
    margin-bottom: 10px;
    color: #999;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }
    
    .hero .subtitle {
        font-size: 18px;
    }
    
    section h2 {
        font-size: 28px;
    }
    
    .content-wrapper {
        flex-direction: column;
    }
    
    .review-card, .episode-card {
        flex-direction: column;
    }
    
    .review-image, .episode-image {
        height: 200px;
    }
    
    #nav ul {
        justify-content: center;
        margin-top: 15px;
    }
    
    #nav li {
        margin: 5px 10px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 50px 0;
    }
    
    section {
        padding: 50px 0;
    }
    
    .card-container {
        grid-template-columns: 1fr;
    }
}
