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

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

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

ul, ol {
    list-style: none;
}

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

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

/* 图标字体 */
@font-face {
    font-family: 'iconfont';
    src: url('//at.alicdn.com/t/font_1234567_abcdefg.eot');
    src: url('//at.alicdn.com/t/font_1234567_abcdefg.eot?#iefix') format('embedded-opentype'),
         url('//at.alicdn.com/t/font_1234567_abcdefg.woff2') format('woff2'),
         url('//at.alicdn.com/t/font_1234567_abcdefg.woff') format('woff'),
         url('//at.alicdn.com/t/font_1234567_abcdefg.ttf') format('truetype'),
         url('//at.alicdn.com/t/font_1234567_abcdefg.svg#iconfont') format('svg');
}

.iconfont {
    font-family: "iconfont" !important;
    font-size: 16px;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

.btn.primary {
    background-color: #e74c3c;
    color: #fff;
}

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

.btn:not(.primary) {
    background-color: transparent;
    border-color: #e74c3c;
    color: #e74c3c;
}

.btn:not(.primary):hover {
    background-color: #e74c3c;
    color: #fff;
}

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

.section-title h2 {
    font-size: 32px;
    color: #333;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

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

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

/* 头部样式 */
.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;
    padding: 15px;
}

.logo {
    display: flex;
    align-items: center;
}

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

.logo i {
    font-size: 28px;
    margin-right: 10px;
}

.main-nav ul {
    display: flex;
}

.main-nav li {
    margin: 0 15px;
}

.main-nav a {
    font-size: 16px;
    font-weight: 500;
    padding: 10px 0;
    position: relative;
}

.main-nav a:hover {
    color: #e74c3c;
}

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

.main-nav 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 {
    background-color: #e74c3c;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

/* 轮播图样式 */
.banner {
    padding: 40px 0;
    background-color: #f9f9f9;
}

.banner-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 500px;
}

.banner-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.banner-item.active {
    opacity: 1;
    z-index: 1;
}

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

.banner-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
    z-index: 2;
}

.banner-info h1, .banner-info h2 {
    font-size: 36px;
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.banner-info p {
    font-size: 18px;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

.banner-dots {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 3;
}

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

.banner-dots span.active {
    background-color: #fff;
}

.banner-arrows {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    z-index: 3;
    transform: translateY(-50%);
}

.banner-arrows span {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    margin: 0 20px;
    transition: all 0.3s ease;
}

.banner-arrows span:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* 播放区域样式 */
.play-section {
    padding: 60px 0;
    background-color: #fff;
}

.play-box {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.player {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 500px;
}

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

.play-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-mask:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.play-mask i {
    font-size: 64px;
    margin-bottom: 15px;
}

.play-mask p {
    font-size: 18px;
}

.episode-list {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
}

.episode-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.episode-title h3 {
    font-size: 20px;
    color: #333;
}

.episode-title span {
    color: #777;
}

.episode-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
}

.episode-grid a {
    display: block;
    padding: 10px;
    text-align: center;
    background-color: #eee;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.episode-grid a:hover, .episode-grid a.active {
    background-color: #e74c3c;
    color: #fff;
}

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

.intro-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    align-items: center;
}

.intro-image {
    border-radius: 8px;
    overflow: hidden;
}

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

/* 演员表样式 */
.cast-section {
    padding: 60px 0;
    background-color: #fff;
}

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

.cast-card {
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.cast-img {
    height: 240px;
}

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

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

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

.cast-info p {
    color: #e74c3c;
    margin-bottom: 5px;
}

.cast-info span {
    color: #777;
    font-size: 14px;
}

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

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

.review-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

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

.review-header img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

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

.stars {
    color: #f39c12;
}

.review-content p {
    line-height: 1.8;
}

/* 精彩花絮样式 */
.highlights-section {
    padding: 60px 0;
    background-color: #fff;
}

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

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

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

.highlight-img {
    position: relative;
    height: 180px;
}

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

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background-color: rgba(231, 76, 60, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-icon:hover {
    background-color: #e74c3c;
}

.highlight-info {
    padding: 15px;
}

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

.highlight-info p {
    color: #777;
    font-size: 14px;
}

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

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

.recommend-card {
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.recommend-img {
    position: relative;
    height: 240px;
}

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

.tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #e74c3c;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
}

.recommend-info {
    padding: 15px;
    background-color: #fff;
}

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

.recommend-info p {
    color: #777;
    font-size: 14px;
}

/* APP下载样式 */
.app-section {
    padding: 60px 0;
    background-color: #fff;
    background-image: linear-gradient(to right, #e74c3c, #c0392b);
    color: #fff;
}

.app-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: center;
}

.app-info h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.app-info p {
    font-size: 18px;
    margin-bottom: 20px;
}

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

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

.app-features i {
    margin-right: 10px;
    color: #fff;
}

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

.download-btn {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background-color: #fff;
    color: #e74c3c;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.download-btn i {
    font-size: 20px;
    margin-right: 10px;
}

.app-qrcode {
    text-align: center;
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
}

.app-qrcode img {
    width: 180px;
    height: 180px;
    margin: 0 auto 15px;
}

.app-qrcode p {
    color: #333;
}

/* 文章区域样式 */
.article-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

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

.article-card {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.article-img {
    height: 100%;
}

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

.article-content {
    padding: 20px;
}

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

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

.article-excerpt {
    color: #555;
    margin-bottom: 15px;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: #e74c3c;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

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

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

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

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

.footer-logo i {
    font-size: 28px;
    margin-right: 10px;
    color: #e74c3c;
}

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

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

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

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

.footer-nav-group ul li a {
    color: #aaa;
    transition: all 0.3s ease;
}

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

.social-links li a {
    display: flex;
    align-items: center;
}

.social-links li a i {
    margin-right: 10px;
    color: #e74c3c;
}

.footer-middle {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin-bottom: 40px;
}

.qrcode-group {
    display: flex;
    gap: 20px;
}

.qrcode-item {
    text-align: center;
}

.qrcode-item img {
    width: 120px;
    height: 120px;
    margin: 0 auto 10px;
    background-color: #fff;
    padding: 5px;
    border-radius: 4px;
}

.qrcode-item p {
    color: #aaa;
}

.contact-info p {
    margin-bottom: 10px;
    color: #aaa;
}

.contact-info i {
    color: #e74c3c;
    margin-right: 10px;
}

.footer-links {
    margin-bottom: 40px;
}

.footer-links h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #e74c3c;
}

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

.footer-links ul li a, .footer-links ul a {
    color: #aaa;
    transition: all 0.3s ease;
}

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

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

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

/* 响应式样式 */
@media (max-width: 1024px) {
    .banner-wrapper {
        height: 400px;
    }
    
    .play-box {
        grid-template-columns: 1fr;
    }
    
    .intro-content {
        grid-template-columns: 1fr;
    }
    
    .app-wrapper {
        grid-template-columns: 1fr;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .article-card {
        grid-template-columns: 1fr;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
    }
    
    .footer-middle {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .search-box {
        margin-top: 15px;
        width: 100%;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .banner-info h1, .banner-info h2 {
        font-size: 28px;
    }
    
    .banner-info p {
        font-size: 16px;
    }
    
    .footer-nav {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .banner-wrapper {
        height: 300px;
    }
    
    .banner-info h1, .banner-info h2 {
        font-size: 24px;
    }
    
    .banner-info p {
        font-size: 14px;
    }
    
    .banner-btns {
        flex-direction: column;
        gap: 10px;
    }
    
    .episode-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .cast-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-nav {
        grid-template-columns: 1fr;
    }
}
