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

body {
    font-family: 'Microsoft YaHei', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

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

a:hover {
    color: #2980b9;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

ul, ol {
    list-style: none;
}

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

.section {
    padding: 80px 0;
}

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

.section-header h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2:after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, #3498db, #2ecc71);
    margin: 15px auto 0;
}

.section-header p {
    font-size: 1.1rem;
    color: #7f8c8d;
    max-width: 700px;
    margin: 0 auto;
}

.bg-light {
    background-color: #f0f4f8;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn.primary {
    background: linear-gradient(to right, #3498db, #2ecc71);
    color: #fff;
    border: none;
}

.btn.primary:hover {
    background: linear-gradient(to right, #2980b9, #27ae60);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn.secondary {
    background: transparent;
    color: #3498db;
    border: 2px solid #3498db;
}

.btn.secondary:hover {
    background: rgba(52, 152, 219, 0.1);
    transform: translateY(-2px);
}

/* 头部导航 */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    background: linear-gradient(to right, #3498db, #2ecc71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#main-nav ul {
    display: flex;
}

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

#main-nav a {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1rem;
    position: relative;
}

#main-nav a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #3498db, #2ecc71);
    transition: width 0.3s ease;
}

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

/* 横幅区域 */
.banner {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    text-align: center;
    color: #fff;
    margin-top: 0;
    padding-top: 80px;
}

.banner-content {
    max-width: 800px;
    margin: 0 auto;
}

.banner h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
}

.banner p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.3s forwards;
    opacity: 0;
}

.banner-buttons {
    animation: fadeInUp 1s ease 0.6s forwards;
    opacity: 0;
}

.banner-buttons .btn {
    margin: 0 10px;
}

/* 卡片容器 */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 30px;
}

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

.card:hover {
    transform: translateY(-10px);
    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.1);
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.card-content p {
    color: #7f8c8d;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.card-content .btn {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* 剧集列表 */
.episode-group {
    margin-bottom: 40px;
}

.episode-group h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.episode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
}

.episode-item {
    display: block;
    padding: 10px;
    background: #fff;
    border-radius: 4px;
    text-align: center;
    color: #2c3e50;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.episode-item:hover {
    background: linear-gradient(to right, #3498db, #2ecc71);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 角色介绍 */
.character-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 30px;
}

.character-card {
    display: flex;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.character-image {
    flex: 0 0 150px;
    overflow: hidden;
}

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

.character-info {
    flex: 1;
    padding: 20px;
}

.character-info h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.character-info p {
    color: #7f8c8d;
    font-size: 0.95rem;
}

/* 剧情简介 */
.story-content {
    display: flex;
    align-items: center;
    margin-bottom: 50px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.story-image {
    flex: 0 0 40%;
    overflow: hidden;
}

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

.story-text {
    flex: 1;
    padding: 30px;
}

.story-text h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 20px;
}

.story-text p {
    color: #7f8c8d;
    margin-bottom: 15px;
    font-size: 1rem;
}

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

.article {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.article h3 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.article p {
    color: #7f8c8d;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

/* 评论区 */
.comments-container {
    max-width: 800px;
    margin: 0 auto;
}

.comment {
    display: flex;
    margin-bottom: 30px;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.comment-avatar {
    flex: 0 0 60px;
    height: 60px;
    margin-right: 20px;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.comment-content {
    flex: 1;
}

.comment-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.comment-info h4 {
    font-size: 1.1rem;
    color: #2c3e50;
}

.comment-date {
    font-size: 0.85rem;
    color: #95a5a6;
}

.comment-text p {
    color: #7f8c8d;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.comment-rating {
    display: flex;
    align-items: center;
}

.stars {
    color: #f1c40f;
    margin-right: 10px;
}

.rating-text {
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* 下载区域 */
.download-content {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.download-image {
    flex: 0 0 40%;
    overflow: hidden;
}

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

.download-info {
    flex: 1;
    padding: 30px;
}

.download-info h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 20px;
}

.download-features {
    margin-bottom: 25px;
}

.download-features li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: #7f8c8d;
}

.download-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #2ecc71;
    font-weight: bold;
}

.download-buttons {
    display: flex;
    gap: 15px;
}

/* 页脚 */
#footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 70px 0 20px;
}

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

.footer-logo h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.footer-logo p {
    color: #bdc3c7;
}

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

.footer-links-column h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links-column h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(to right, #3498db, #2ecc71);
}

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

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

.footer-links-column ul li a:hover {
    color: #3498db;
}

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

.footer-bottom p {
    color: #95a5a6;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* 动画效果 */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 992px) {
    .section {
        padding: 60px 0;
    }
    
    .banner h1 {
        font-size: 2.8rem;
    }
    
    .banner p {
        font-size: 1.3rem;
    }
    
    .story-content,
    .download-content {
        flex-direction: column;
    }
    
    .story-image,
    .download-image {
        flex: 0 0 100%;
        height: 300px;
    }
    
    .character-container {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    }
}

@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;
    }
    
    .banner h1 {
        font-size: 2.3rem;
    }
    
    .banner p {
        font-size: 1.1rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .character-card {
        flex-direction: column;
    }
    
    .character-image {
        flex: 0 0 200px;
    }
    
    .comment {
        flex-direction: column;
    }
    
    .comment-avatar {
        margin: 0 auto 15px;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-logo {
        margin-bottom: 30px;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .banner h1 {
        font-size: 2rem;
    }
    
    .banner p {
        font-size: 1rem;
    }
    
    .banner-buttons .btn {
        display: block;
        margin: 10px auto;
        width: 80%;
    }
    
    .story-articles {
        grid-template-columns: 1fr;
    }
    
    .download-buttons {
        flex-direction: column;
    }
}
