/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

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

a:hover {
    color: #e74c3c;
}

ul {
    list-style: none;
}

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

.section-title {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.section-title h2 {
    font-size: 28px;
    color: #333;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #e74c3c;
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: #e74c3c;
    color: #fff;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s ease;
}

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

/* 导航栏样式 */
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;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo a {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: #e74c3c;
}

nav ul {
    display: flex;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    font-size: 16px;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

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

nav ul li a:hover::after {
    width: 100%;
}

.search-box {
    display: flex;
    align-items: center;
}

.search-box input {
    width: 200px;
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    outline: none;
}

.search-box button {
    padding: 8px 15px;
    background-color: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-box button:hover {
    background-color: #c0392b;
}

/* 轮播图样式 */
.banner {
    position: relative;
    height: 500px;
    overflow: hidden;
    margin-bottom: 50px;
}

.slider {
    height: 100%;
}

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

.slide.active {
    opacity: 1;
}

.slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.7);
}

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

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

.slide-content p {
    font-size: 18px;
    margin-bottom: 25px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

.slider-controls button {
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-controls button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

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

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

.dot.active {
    background-color: #fff;
}

/* 剧情简介样式 */
.intro {
    padding: 50px 0;
    background-color: #fff;
}

.intro-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.intro-img {
    flex: 0 0 40%;
}

.intro-img img {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.intro-text {
    flex: 0 0 60%;
}

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

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

.episode-filter {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.episode-filter button {
    padding: 8px 20px;
    margin: 0 5px 10px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.episode-filter button.active, .episode-filter button:hover {
    background-color: #e74c3c;
    color: #fff;
    border-color: #e74c3c;
}

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

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

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

.episode-thumb {
    position: relative;
    height: 180px;
}

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

.episode-number {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #e74c3c;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.episode-info {
    padding: 15px;
}

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

.episode-info p {
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
    height: 60px;
    overflow: hidden;
}

.play-btn {
    display: inline-block;
    padding: 8px 20px;
    background-color: #e74c3c;
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
}

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

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

.more-btn a {
    display: inline-block;
    padding: 10px 25px;
    background-color: #fff;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.more-btn a:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
}

/* 演员阵容样式 */
.cast {
    padding: 50px 0;
    background-color: #fff;
}

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

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

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

.cast-img {
    height: 300px;
}

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

.cast-info {
    padding: 15px;
    text-align: center;
}

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

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

/* 精彩剧评样式 */
.reviews {
    padding: 50px 0;
    background-color: #f9f9f9;
}

.review-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.review-avatar {
    flex: 0 0 80px;
    padding: 15px;
}

.review-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

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

.review-info {
    margin-bottom: 10px;
}

.review-info h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.review-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.review-content p {
    font-size: 15px;
    line-height: 1.7;
}

/* APP下载模块样式 */
.app-download {
    padding: 50px 0;
    background-color: #fff;
    background-image: linear-gradient(to right, rgba(231, 76, 60, 0.1), rgba(231, 76, 60, 0.05));
}

.app-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.app-info {
    flex: 1;
}

.app-info p {
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.7;
}

.app-features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 calc(50% - 10px);
}

.feature .icon {
    font-size: 24px;
}

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

.download-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background-color: #333;
    color: #fff;
    border-radius: 4px;
    transition: all 0.3s ease;
}

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

.download-btn .icon {
    font-size: 20px;
}

.app-qrcode {
    flex: 0 0 200px;
    text-align: center;
}

.app-qrcode img {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.app-qrcode p {
    font-size: 14px;
}

/* 相关推荐样式 */
.recommendations {
    padding: 50px 0;
    background-color: #f9f9f9;
}

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

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

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

.recommendation-thumb {
    position: relative;
    height: 150px;
}

.recommendation-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recommendation-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.recommendation-card:hover .recommendation-overlay {
    opacity: 1;
}

.play-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(231, 76, 60, 0.8);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
}

.play-icon:hover {
    background-color: #e74c3c;
    transform: scale(1.1);
}

.recommendation-info {
    padding: 15px;
}

.recommendation-info h3 {
    margin-bottom: 5px;
    font-size: 16px;
}

.recommendation-info p {
    font-size: 14px;
    color: #666;
}

/* 页脚样式 */
footer {
    background-color: #222;
    color: #fff;
    padding-top: 50px;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo {
    flex: 0 0 200px;
}

.footer-logo p {
    margin-top: 10px;
    font-size: 16px;
}

.footer-nav {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

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

.footer-nav-col h3 {
    margin-bottom: 15px;
    font-size: 18px;
    position: relative;
    padding-bottom: 10px;
}

.footer-nav-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: #e74c3c;
}

.footer-nav-col ul li {
    margin-bottom: 8px;
}

.footer-nav-col ul li a {
    color: #aaa;
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-nav-col ul li a:hover {
    color: #e74c3c;
}

.footer-qrcode {
    flex: 0 0 150px;
    text-align: center;
}

.footer-qrcode img {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.footer-qrcode p {
    font-size: 14px;
    color: #aaa;
}

.footer-middle {
    border-top: 1px solid #333;
    padding: 20px 0;
}

.friendly-links h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

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

.friendly-links ul li a, .friendly-links ul a {
    color: #aaa;
    font-size: 14px;
    transition: all 0.3s ease;
}

.friendly-links ul li a:hover, .friendly-links ul a:hover {
    color: #e74c3c;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding: 20px 0;
    text-align: center;
}

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

/* 响应式设计 */
@media (max-width: 992px) {
    header .container {
        flex-wrap: wrap;
        height: auto;
        padding: 15px;
    }
    
    nav {
        order: 3;
        width: 100%;
        margin-top: 15px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .search-box {
        flex: 1;
        justify-content: flex-end;
    }
    
    .banner {
        height: 400px;
    }
    
    .slide-content h1, .slide-content h2 {
        font-size: 28px;
    }
    
    .intro-content {
        flex-direction: column;
    }
    
    .intro-img, .intro-text {
        flex: 0 0 100%;
    }
    
    .app-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .banner {
        height: 300px;
    }
    
    .slide-content h1, .slide-content h2 {
        font-size: 24px;
    }
    
    .slide-content p {
        font-size: 16px;
    }
    
    .review-item {
        flex-direction: column;
    }
    
    .review-avatar {
        flex: 0 0 auto;
        display: flex;
        justify-content: center;
        padding: 15px 15px 0;
    }
    
    .review-content {
        padding: 15px;
    }
    
    .footer-top {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-nav {
        gap: 20px;
    }
    
    .footer-qrcode {
        align-self: center;
    }
}
