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

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

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

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

ul, ol {
    list-style: none;
}

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

/* 主题配色 */
:root {
    --primary-color: #ff6b81;
    --secondary-color: #5f27cd;
    --accent-color: #ff9f43;
    --text-color: #333;
    --light-color: #f9f9f9;
    --dark-color: #222;
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 30px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #e84a5f;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-color);
}

/* 导航栏样式 */
header {
    background-color: white;
    box-shadow: 0 2px 10px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo a {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.logo svg {
    margin-right: 10px;
}

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

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

nav ul li a {
    padding: 5px 10px;
    font-weight: 500;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* 轮播背景样式 */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.slider-container {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.slide.active {
    opacity: 1;
}

.slide-content {
    position: relative;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
    z-index: 1;
}

.slide-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-content p {
    font-size: 20px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
    z-index: 2;
}

.slider-controls span {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-controls span:hover {
    background: rgba(255, 255, 255, 0.5);
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 2;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
}

/* 章节标题样式 */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 36px;
    margin-bottom: 10px;
    color: var(--dark-color);
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-title p {
    color: #777;
    font-size: 18px;
}

/* 剧集播放模块样式 */
.episodes-section {
    padding: 80px 0;
    background-color: white;
}

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

.episode-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: all 0.3s ease;
}

.episode-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--shadow-color);
}

.episode-thumb {
    position: relative;
    overflow: hidden;
}

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

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

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(255, 107, 129, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    opacity: 0;
    transition: all 0.3s ease;
}

.episode-card:hover .play-icon {
    opacity: 1;
}

.episode-info {
    padding: 20px;
}

.episode-info h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.episode-card.featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.episode-card.featured .episode-thumb {
    height: 100%;
}

.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

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

/* 剧情介绍模块样式 */
.plot-section {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.plot-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.plot-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.plot-text p {
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.8;
}

/* 演员表模块样式 */
.cast-section {
    padding: 80px 0;
    background-color: white;
}

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

.cast-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: all 0.3s ease;
}

.cast-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--shadow-color);
}

.cast-image {
    height: 300px;
    overflow: hidden;
}

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

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

.cast-info {
    padding: 20px;
}

.cast-info h3 {
    margin-bottom: 5px;
    font-size: 20px;
}

.cast-info .role {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 10px;
}

.cast-info .description {
    font-size: 14px;
    color: #666;
}

/* 精彩花絮模块样式 */
.highlights-section {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.highlight-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: all 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--shadow-color);
}

.highlight-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

.highlight-info {
    padding: 20px;
}

.highlight-info h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

/* 相关文章模块样式 */
.articles-section {
    padding: 80px 0;
    background-color: white;
}

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

.article-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--shadow-color);
}

.article-image {
    height: 100%;
    overflow: hidden;
}

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

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

.article-content {
    padding: 20px;
}

.article-content h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.article-meta {
    color: #888;
    font-size: 14px;
    margin-bottom: 10px;
}

.article-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 14px;
}

.read-more:hover {
    text-decoration: underline;
}

/* APP下载模块样式 */
.app-download-section {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.app-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.app-features {
    margin: 30px 0;
}

.app-features li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.feature-icon {
    width: 25px;
    height: 25px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 14px;
}

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

.download-btn {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    background-color: var(--dark-color);
    color: white;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background-color: #333;
    transform: translateY(-2px);
}

.btn-icon {
    font-size: 24px;
    margin-right: 10px;
}

.app-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-color);
}

/* 用户评价模块样式 */
.reviews-section {
    padding: 80px 0;
    background-color: white;
}

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

.review-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: all 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--shadow-color);
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.user-info h4 {
    margin-bottom: 5px;
}

.rating {
    color: var(--accent-color);
}

.review-text {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

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

.footer-content {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
    color: white;
    margin-bottom: 20px;
}

.footer-logo svg {
    margin-right: 10px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.footer-column h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 18px;
    position: relative;
}

.footer-column h3::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

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

.footer-column ul li a {
    color: #aaa;
    font-size: 14px;
}

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

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.social-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #333;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.copyright {
    text-align: center;
    font-size: 14px;
    color: #888;
}

.friendly-links {
    text-align: center;
}

.friendly-links h4 {
    color: white;
    margin-bottom: 10px;
}

.friendly-links ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.friendly-links ul li a {
    color: #aaa;
    font-size: 14px;
}

.friendly-links ul li a:hover {
    color: white;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .slide-content h1 {
        font-size: 36px;
    }
    
    .plot-content, 
    .app-content {
        grid-template-columns: 1fr;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    nav ul {
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    .hero-slider {
        height: 500px;
    }
    
    .slide-content h1 {
        font-size: 30px;
    }
    
    .episode-card.featured {
        grid-template-columns: 1fr;
    }
    
    .cast-grid,
    .highlights-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .article-card {
        grid-template-columns: 1fr;
    }
    
    .article-image {
        height: 200px;
    }
    
    .reviews-slider {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 400px;
    }
    
    .slide-content h1 {
        font-size: 24px;
    }
    
    .slide-content p {
        font-size: 16px;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}
