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

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

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

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

a:hover {
    color: #e74c3c;
}

ul {
    list-style: none;
}

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

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

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

.section-header h2:after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #c12c1f;
    margin: 10px auto 0;
}

.section-header p {
    color: #777;
    font-size: 16px;
}

/* 图标字体 */
[class^="icon-"] {
    display: inline-block;
    width: 1em;
    height: 1em;
    background-size: cover;
    vertical-align: middle;
}

.icon-play:before {
    content: "▶";
    color: #c12c1f;
}

.icon-search:before {
    content: "🔍";
}

.icon-play-large:before {
    content: "▶";
    font-size: 48px;
    color: #fff;
}

.icon-check:before {
    content: "✓";
    color: #c12c1f;
}

.icon-android:before {
    content: "📱";
}

.icon-apple:before {
    content: "🍎";
}

.icon-star:before {
    content: "★";
    color: #f39c12;
}

.icon-star-half:before {
    content: "★";
    color: #f39c12;
    opacity: 0.5;
}

.icon-star-o:before {
    content: "☆";
    color: #f39c12;
}

.icon-email:before {
    content: "✉";
}

.icon-phone:before {
    content: "📞";
}

.icon-weibo:before {
    content: "W";
}

.icon-wechat:before {
    content: "W";
}

.icon-qq:before {
    content: "Q";
}

.icon-douyin:before {
    content: "D";
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #c12c1f;
    color: #fff;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #e74c3c;
    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;
    padding: 15px;
}

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

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

nav ul {
    display: flex;
}

nav ul li {
    margin: 0 10px;
}

nav ul li a {
    color: #333;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
}

nav ul li a:hover {
    background-color: #f5f5f5;
    color: #c12c1f;
}

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

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

.search button {
    padding: 8px 15px;
    background-color: #c12c1f;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

/* 轮播图 */
.banner {
    position: relative;
    height: 500px;
    overflow: hidden;
}

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

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
}

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

.slide-content {
    position: absolute;
    bottom: 50px;
    left: 50px;
    max-width: 600px;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.slide-content h1 {
    font-size: 36px;
    margin-bottom: 15px;
}

.slide-content p {
    font-size: 18px;
    margin-bottom: 20px;
}

.slide-content .subtitle {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

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

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

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

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

.play-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.player {
    flex: 1;
    min-width: 300px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.player img {
    width: 100%;
    display: block;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: rgba(193, 44, 31, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-button:hover {
    background-color: rgba(231, 76, 60, 0.9);
}

.episode-list {
    flex: 0 0 300px;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.episode-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.episode-header h3 {
    font-size: 18px;
    color: #333;
}

.episode-filter span {
    margin-left: 10px;
    color: #777;
    cursor: pointer;
    font-size: 14px;
}

.episode-filter span.active {
    color: #c12c1f;
    font-weight: bold;
}

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

.episode {
    padding: 8px 0;
    text-align: center;
    background-color: #eee;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
}

.episode.active, .episode:hover {
    background-color: #c12c1f;
    color: #fff;
}

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

.intro-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.intro-image {
    flex: 0 0 300px;
}

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

.intro-text {
    flex: 1;
    min-width: 300px;
}

.intro-text h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.intro-meta {
    margin-bottom: 20px;
}

.intro-meta span {
    display: block;
    margin-bottom: 5px;
    color: #666;
}

.intro-desc {
    margin-bottom: 20px;
    line-height: 1.8;
}

.intro-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.intro-tags span {
    padding: 5px 10px;
    background-color: #eee;
    border-radius: 4px;
    font-size: 14px;
    color: #666;
}

/* 精彩剧评 */
.review-section {
    padding: 50px 0;
    background-color: #fff;
}

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

.review-card {
    background-color: #f9f9f9;
    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: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 15px;
}

.review-header h3 {
    font-size: 18px;
    color: #333;
}

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

/* 演员表 */
.cast-section {
    padding: 50px 0;
    background-color: #f9f9f9;
}

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

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

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

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

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

.cast-info h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: #333;
}

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

/* 相关推荐 */
.recommend-section {
    padding: 50px 0;
    background-color: #fff;
}

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

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

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

.recommend-image {
    position: relative;
}

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

.recommend-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(193, 44, 31, 0.8);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
}

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

.recommend-info h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: #333;
}

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

/* APP下载 */
.app-section {
    padding: 50px 0;
    background-color: #f9f9f9;
}

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

.app-info {
    flex: 1;
    min-width: 300px;
}

.app-info h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #333;
}

.app-info p {
    color: #777;
    margin-bottom: 20px;
}

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

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

.app-features li i {
    margin-right: 10px;
}

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

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

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

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

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

.app-qrcode img {
    width: 120px;
    height: 120px;
    margin-bottom: 10px;
}

.app-image {
    flex: 0 0 300px;
}

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

/* 用户评论 */
.comment-section {
    padding: 50px 0;
    background-color: #fff;
}

.comment-list {
    margin-bottom: 40px;
}

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

.comment-user {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

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

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

.rating i {
    margin-right: 2px;
}

.comment-content p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 10px;
}

.comment-time {
    color: #999;
    font-size: 14px;
}

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

.comment-form h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.rating-select {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.rating-select span {
    margin-right: 10px;
}

.stars i {
    cursor: pointer;
    margin-right: 5px;
}

.comment-form textarea {
    width: 100%;
    height: 120px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
    resize: none;
    outline: none;
}

.submit-btn {
    padding: 10px 20px;
    background-color: #c12c1f;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: #e74c3c;
}

/* 页脚 */
footer {
    background-color: #222;
    color: #aaa;
    padding: 50px 0 20px;
}

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

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

.footer-logo span {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    margin-left: 10px;
}

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

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

.footer-nav-col {
    flex: 0 0 150px;
    margin-bottom: 20px;
}

.footer-nav-col h4 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 16px;
}

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

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

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

.footer-contact {
    flex: 0 0 250px;
    margin-bottom: 20px;
}

.footer-contact h4 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 16px;
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

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

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #333;
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #c12c1f;
}

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

.footer-links h4 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 16px;
}

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

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

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

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

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

/* 响应式设计 */
@media (max-width: 992px) {
    .container {
        padding: 0 20px;
    }
    
    nav {
        display: none;
    }
    
    .search {
        margin-left: auto;
    }
    
    .play-container {
        flex-direction: column;
    }
    
    .episode-list {
        flex: 1;
    }
    
    .review-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .slide-content {
        left: 20px;
        bottom: 20px;
    }
    
    .slide-content h1 {
        font-size: 28px;
    }
    
    .slide-content p {
        font-size: 16px;
    }
    
    .cast-list {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .recommend-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .app-content {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .banner {
        height: 300px;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .cast-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .recommend-list {
        grid-template-columns: 1fr;
    }
    
    .episodes {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .review-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .review-header img {
        margin-bottom: 10px;
    }
    
    .app-download {
        flex-direction: column;
    }
    
    .download-btn {
        width: 100%;
        justify-content: center;
    }
}

/* 移动端菜单样式 */
.mobile-menu-btn {
    display: none;
}

@media (max-width: 992px) {
    .mobile-menu-btn {
        display: block;
    }
}

/* 滚动到顶部按钮 */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #c12c1f;
    color: #fff;
    border: none;
    font-size: 20px;
    cursor: pointer;
    display: none;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* 页面加载动画 */
.fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 透明轮播背景 */
.banner:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    z-index: 1;
}

.slide-content {
    z-index: 2;
}
