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

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f3f0;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: #8e6b5e;
    transition: all 0.3s ease;
}

a:hover {
    color: #d48872;
}

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

ul, ol {
    list-style: none;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #8e6b5e;
    color: #fff;
    border-radius: 4px;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.btn:hover {
    background-color: #d48872;
    color: #fff;
}

.btn.primary {
    background-color: #d48872;
}

.btn.primary:hover {
    background-color: #c27762;
}

.btn.secondary {
    background-color: transparent;
    border: 2px solid #8e6b5e;
    color: #8e6b5e;
}

.btn.secondary:hover {
    background-color: #8e6b5e;
    color: #fff;
}

.btn.large {
    padding: 12px 30px;
    font-size: 1.1em;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2.5em;
    color: #8e6b5e;
    margin-bottom: 10px;
    font-weight: 700;
}

.section-header p {
    font-size: 1.1em;
    color: #a08679;
}

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

#header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.logo h1 {
    font-size: 1.8em;
    color: #8e6b5e;
    font-weight: 700;
}

#main-nav ul {
    display: flex;
}

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

#main-nav a {
    font-weight: 600;
    padding: 10px 0;
    position: relative;
}

#main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #d48872;
    transition: width 0.3s ease;
}

#main-nav a:hover::after {
    width: 100%;
}

/* Banner样式 */
.banner {
    padding: 80px 0;
    background-color: #f9f3f0;
}

.banner .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.banner-content {
    flex: 1;
    padding-right: 50px;
}

.banner-content h2 {
    font-size: 3em;
    color: #8e6b5e;
    margin-bottom: 20px;
    line-height: 1.2;
}

.banner-content p {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 30px;
}

.btn-group {
    display: flex;
    gap: 15px;
}

.banner-image {
    flex: 1;
    text-align: center;
}

.banner-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-height: 500px;
    margin: 0 auto;
}

/* 关于样式 */
.about {
    padding: 80px 0;
    background-color: #fff;
}

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

.about-image {
    flex: 1;
}

.about-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #555;
}

/* 版本选择样式 */
.versions {
    padding: 80px 0;
    background-color: #f9f3f0;
}

.version-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 30px;
}

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

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

.card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    font-size: 1.3em;
    color: #8e6b5e;
    margin-bottom: 10px;
}

.card-content p {
    color: #666;
    margin-bottom: 20px;
    height: 80px;
}

.card-content .btn {
    width: 100%;
}

/* 角色介绍样式 */
.characters {
    padding: 80px 0;
    background-color: #fff;
}

.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
}

.character-card {
    text-align: center;
    background-color: #f9f3f0;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.character-card:hover {
    transform: translateY(-5px);
}

.character-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    border: 5px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.character-card h3 {
    font-size: 1.2em;
    color: #8e6b5e;
    margin-bottom: 10px;
}

.character-card p {
    color: #666;
    font-size: 0.9em;
}

/* 剧集列表样式 */
.episodes {
    padding: 80px 0;
    background-color: #f9f3f0;
}

.episode-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

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

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

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

.episode-info {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.episode-info h3 {
    font-size: 1.3em;
    color: #8e6b5e;
    margin-bottom: 10px;
}

.episode-info p {
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.episode-info .btn {
    align-self: flex-start;
}

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

/* 评价样式 */
.reviews {
    padding: 80px 0;
    background-color: #fff;
}

.review-slider {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.review {
    flex: 1 1 300px;
    background-color: #f9f3f0;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.review-content {
    margin-bottom: 20px;
}

.review-content p {
    color: #555;
    font-style: italic;
}

.review-author {
    display: flex;
    align-items: center;
}

.review-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.author-info h4 {
    color: #8e6b5e;
    margin-bottom: 5px;
}

.rating {
    color: #d48872;
}

/* 相关推荐样式 */
.related {
    padding: 80px 0;
    background-color: #f9f3f0;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 30px;
}

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

.related-card:hover {
    transform: translateY(-5px);
}

.related-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.related-card h3 {
    padding: 15px 15px 5px;
    font-size: 1.2em;
    color: #8e6b5e;
}

.related-card p {
    padding: 0 15px 15px;
    color: #666;
    height: 60px;
}

.related-card .btn {
    margin: 0 15px 15px;
    display: block;
    text-align: center;
}

/* 文章样式 */
.articles {
    padding: 80px 0;
    background-color: #fff;
}

.article-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.article-item {
    background-color: #f9f3f0;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.article-item h3 {
    font-size: 1.4em;
    color: #8e6b5e;
    margin-bottom: 15px;
}

.article-item p {
    color: #555;
    line-height: 1.8;
}

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

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo {
    flex: 1 1 300px;
    margin-bottom: 30px;
}

.footer-logo p:first-child {
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 10px;
}

.footer-links {
    flex: 1 1 200px;
    margin-bottom: 30px;
}

.footer-links h3, .footer-contact h3 {
    font-size: 1.2em;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after, .footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #d48872;
}

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

.footer-links ul li a {
    color: #f9f3f0;
}

.footer-links ul li a:hover {
    color: #d48872;
}

.footer-contact {
    flex: 1 1 300px;
    margin-bottom: 30px;
}

.footer-contact p {
    margin-bottom: 10px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    text-align: center;
    line-height: 40px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: #d48872;
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin-bottom: 10px;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .banner .container {
        flex-direction: column;
    }
    
    .banner-content {
        padding-right: 0;
        margin-bottom: 40px;
        text-align: center;
    }
    
    .btn-group {
        justify-content: center;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        margin-bottom: 30px;
    }
    
    .episode {
        flex-direction: column;
    }
    
    .episode-image {
        flex: auto;
        height: 200px;
    }
}

@media (max-width: 768px) {
    #header .container {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    #main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    #main-nav li {
        margin: 5px 10px;
    }
    
    .section-header h2 {
        font-size: 2em;
    }
    
    .banner-content h2 {
        font-size: 2.5em;
    }
}

@media (max-width: 576px) {
    .banner-content h2 {
        font-size: 2em;
    }
    
    .section-header h2 {
        font-size: 1.8em;
    }
    
    .btn-group {
        flex-direction: column;
        gap: 10px;
    }
}
