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

body {
    font-family: 'Microsoft YaHei', 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: #e74c3c;
    transition: all 0.3s ease;
}

a:hover {
    color: #c0392b;
}

ul {
    list-style: none;
}

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

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

section {
    padding: 50px 0;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #e74c3c;
    color: #fff;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #c0392b;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 头部样式 */
header {
    background-color: #2c3e50;
    color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 100;
}

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

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

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

h1 {
    font-size: 24px;
    margin: 0;
    color: #fff;
}

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

.search-box input {
    padding: 8px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    width: 250px;
    font-size: 14px;
}

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

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

nav {
    background-color: #34495e;
}

nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav ul li {
    position: relative;
}

nav ul li a {
    display: block;
    padding: 15px 20px;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    background-color: #e74c3c;
    color: #fff;
}

/* 轮播图样式 */
.banner {
    background-color: #2c3e50;
    padding: 0;
}

.slider {
    position: relative;
    overflow: hidden;
    height: 500px;
}

.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;
    z-index: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    text-align: center;
    color: #fff;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
}

.slide-content h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: #fff;
}

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

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.arrow:hover {
    background-color: rgba(231, 76, 60, 0.8);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

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

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

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

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

.play-header {
    margin-bottom: 30px;
}

.play-header h2 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 15px;
}

.play-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    color: #7f8c8d;
}

.player {
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.player-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
}

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

.play-button {
    position: absolute;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-button:hover {
    transform: scale(1.1);
}

.episode-list {
    margin-top: 30px;
}

.episode-list h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #2c3e50;
}

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

.episodes a {
    padding: 8px 15px;
    background-color: #f5f5f5;
    color: #333;
    border-radius: 4px;
    transition: all 0.3s ease;
}

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

/* 影片介绍样式 */
.intro-section {
    background-color: #f9f9f9;
}

.intro-section h2 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

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

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

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

.intro-images {
    flex: 1;
    min-width: 300px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.intro-images img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.intro-images img:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 相关推荐样式 */
.recommend-section {
    background-color: #fff;
}

.recommend-section h2 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

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

.movie-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;
}

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

.movie-poster {
    position: relative;
    height: 250px;
}

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

.movie-rating {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #e74c3c;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: 700;
}

.movie-info {
    padding: 15px;
}

.movie-info h3 {
    font-size: 16px;
    margin-bottom: 5px;
    color: #2c3e50;
}

.movie-info p {
    font-size: 14px;
    color: #7f8c8d;
}

/* 精彩文章样式 */
.articles-section {
    background-color: #f9f9f9;
}

.articles-section h2 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

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

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

article h3 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 10px;
}

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

article .article-content {
    margin-bottom: 15px;
}

article .article-content p {
    margin-bottom: 10px;
    line-height: 1.8;
}

article .read-more {
    display: inline-block;
    color: #e74c3c;
    font-weight: 700;
}

article .read-more:hover {
    color: #c0392b;
}

/* APP下载样式 */
.app-download {
    background-color: #2c3e50;
    color: #fff;
}

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

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

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

.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 li i {
    margin-right: 10px;
    color: #e74c3c;
}

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

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

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

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

.app-qrcode {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.app-qrcode img {
    width: 200px;
    height: 200px;
    margin-bottom: 15px;
    border: 5px solid #fff;
    border-radius: 8px;
}

/* 用户评论样式 */
.comments-section {
    background-color: #fff;
}

.comments-section h2 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

.comment-form {
    margin-bottom: 30px;
}

.comment-form textarea {
    width: 100%;
    height: 100px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    font-family: inherit;
    resize: none;
}

.comment-form button {
    padding: 10px 20px;
    background-color: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
}

.comment-form button:hover {
    background-color: #c0392b;
}

.comments-list {
    margin-bottom: 30px;
}

.comment {
    display: flex;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.comment-avatar {
    margin-right: 15px;
}

.comment-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.comment-content {
    flex: 1;
}

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

.comment-author {
    font-weight: 700;
    color: #2c3e50;
    margin-right: 10px;
}

.comment-date {
    font-size: 14px;
    color: #7f8c8d;
}

.comment-text p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.comment-actions a {
    margin-right: 15px;
    font-size: 14px;
    color: #7f8c8d;
}

.comment-actions a:hover {
    color: #e74c3c;
}

.load-more {
    text-align: center;
}

.load-more button {
    padding: 10px 20px;
    background-color: #f5f5f5;
    color: #333;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
}

.load-more button:hover {
    background-color: #e74c3c;
    color: #fff;
}

/* 页脚样式 */
footer {
    background-color: #2c3e50;
    color: #ecf0f1;
}

.footer-top {
    padding: 50px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-column {
    flex: 1;
    min-width: 250px;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #fff;
}

.footer-column p {
    line-height: 1.8;
    margin-bottom: 15px;
}

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

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

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

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #e74c3c;
    transform: translateY(-3px);
}

.qrcode {
    text-align: center;
}

.qrcode img {
    width: 120px;
    height: 120px;
    margin-bottom: 10px;
    border: 3px solid #fff;
    border-radius: 8px;
}

.footer-middle {
    padding: 30px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-middle h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #fff;
}

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

.footer-middle ul li a {
    color: #ecf0f1;
}

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

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
}

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

.footer-bottom a {
    color: #ecf0f1;
}

.footer-bottom a:hover {
    color: #e74c3c;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    h1 {
        margin-bottom: 15px;
    }
    
    .search-box {
        width: 100%;
        justify-content: center;
        margin-bottom: 15px;
    }
    
    .search-box input {
        width: 70%;
    }
    
    .slider {
        height: 400px;
    }
    
    .slide-content {
        max-width: 90%;
    }
    
    .articles {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
    }
    
    nav ul li a {
        padding: 10px 15px;
    }
    
    .slider {
        height: 300px;
    }
    
    .slide-content h2 {
        font-size: 24px;
    }
    
    .slide-content p {
        font-size: 16px;
    }
    
    .arrow {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .intro-content {
        flex-direction: column;
    }
    
    .movie-cards {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .movie-poster {
        height: 200px;
    }
    
    .app-content {
        flex-direction: column;
        text-align: center;
    }
    
    .app-features li {
        justify-content: center;
    }
    
    .download-buttons {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 20px;
    }
    
    .search-box input {
        width: 60%;
    }
    
    .slider {
        height: 250px;
    }
    
    .slide-content h2 {
        font-size: 20px;
    }
    
    .slide-content p {
        font-size: 14px;
    }
    
    .movie-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .comment {
        flex-direction: column;
    }
    
    .comment-avatar {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .footer-column {
        min-width: 100%;
    }
}

/* 图标样式 */
.icon-check::before {
    content: "✓";
    margin-right: 5px;
    color: #e74c3c;
}

.icon-android::before {
    content: "📱";
    margin-right: 5px;
}

.icon-apple::before {
    content: "🍎";
    margin-right: 5px;
}

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

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

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

.icon-bilibili::before {
    content: "B";
}

/* 透明背景轮播效果 */
.banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.3) 0%, rgba(41, 128, 185, 0.3) 100%);
    z-index: 1;
    pointer-events: none;
}

/* 卡片悬停效果 */
.movie-card {
    position: relative;
    overflow: hidden;
}

.movie-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.7) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.movie-card:hover::after {
    opacity: 1;
}

/* 页面加载动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeIn 0.6s ease forwards;
}

section:nth-child(2) {
    animation-delay: 0.2s;
}

section:nth-child(3) {
    animation-delay: 0.4s;
}

section:nth-child(4) {
    animation-delay: 0.6s;
}

section:nth-child(5) {
    animation-delay: 0.8s;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #e74c3c;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c0392b;
}

