/* 基础样式重置 */
* {
    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;
    vertical-align: middle;
}

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

/* 头部样式 */
.header {
    background-color: #1a1a2e;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo {
    flex: 0 0 180px;
}

.logo-icon {
    width: 180px;
    height: 50px;
}

.main-nav {
    flex: 1;
    margin: 0 20px;
}

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

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

.main-nav a {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 0;
    display: block;
}

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

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

.main-nav a:hover:after {
    width: 100%;
}

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

.search-box input {
    width: 200px;
    height: 36px;
    border: none;
    border-radius: 18px 0 0 18px;
    padding: 0 15px;
    font-size: 14px;
    outline: none;
}

.search-box button {
    height: 36px;
    border: none;
    border-radius: 0 18px 18px 0;
    background-color: #ff6b6b;
    color: #fff;
    padding: 0 15px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

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

/* 轮播区样式 */
.banner-section {
    padding: 30px 0;
    background-color: #0f0f1a;
    position: relative;
}

.banner-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

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

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

.banner-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 600px;
    padding: 0 50px;
}

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

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

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #ff6b6b;
    color: #fff;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #ff5252;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

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

.banner-indicators span {
    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;
}

.banner-indicators span.active {
    background-color: #fff;
    transform: scale(1.2);
}

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

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

.arrow:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* 内容区块通用样式 */
section {
    padding: 50px 0;
}

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

.section-header h2 {
    font-size: 28px;
    color: #1a1a2e;
    position: relative;
    padding-left: 15px;
}

.section-header h2:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 25px;
    background-color: #ff6b6b;
    border-radius: 2px;
}

.more-link {
    color: #ff6b6b;
    font-size: 16px;
    font-weight: 500;
}

.more-link:hover {
    color: #ff5252;
}

/* 电影卡片样式 */
.movie-grid, .tv-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.movie-card, .tv-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.movie-poster, .tv-poster {
    position: relative;
    height: 0;
    padding-top: 150%;
    overflow: hidden;
}

.movie-poster img, .tv-poster img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.movie-card:hover .movie-poster img, .tv-card:hover .tv-poster img {
    transform: scale(1.05);
}

.movie-score, .movie-tag, .tv-episodes {
    position: absolute;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    border-radius: 3px;
}

.movie-score {
    top: 10px;
    right: 10px;
    background-color: #ffb142;
}

.movie-tag, .tv-episodes {
    bottom: 10px;
    left: 10px;
    background-color: #ff6b6b;
}

.movie-tag.new {
    background-color: #1dd1a1;
}

.movie-info, .tv-info {
    padding: 15px;
}

.movie-info h3, .tv-info h3 {
    font-size: 16px;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-info p, .tv-info p {
    font-size: 14px;
    color: #777;
}

/* APP下载区样式 */
.app-section {
    background-color: #1a1a2e;
    color: #fff;
    padding: 70px 0;
}

.app-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app-info {
    flex: 0 0 60%;
}

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

.app-info p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.8;
}

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

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

.icon-check {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: #ff6b6b;
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
}

.icon-check:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 5px;
    height: 10px;
    border-bottom: 2px solid #fff;
    border-right: 2px solid #fff;
}

.app-download {
    display: flex;
}

.download-btn {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    background-color: #fff;
    color: #1a1a2e;
    border-radius: 30px;
    margin-right: 15px;
    font-weight: 500;
}

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

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

.app-qrcode {
    flex: 0 0 30%;
    text-align: center;
}

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

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

/* 影视资讯样式 */
.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.news-item {
    display: flex;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.news-image {
    flex: 0 0 300px;
    overflow: hidden;
}

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

.news-item:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    flex: 1;
    padding: 20px;
}

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

.news-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: flex;
    font-size: 14px;
    color: #999;
}

.news-date {
    margin-right: 20px;
}

/* 用户评价样式 */
.testimonial-section {
    background-color: #f9f9f9;
}

.testimonial-slider {
    position: relative;
    overflow: hidden;
}

.testimonial-slide {
    padding: 30px 0;
}

.testimonial-content {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.testimonial-content:before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 60px;
    color: #f0f0f0;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-content p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
}

.author-info h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

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

.testimonial-indicators {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.testimonial-indicators span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-indicators span.active {
    background-color: #ff6b6b;
    transform: scale(1.2);
}

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

.footer-top {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

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

.footer-column h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #ff6b6b;
}

.footer-column p {
    font-size: 14px;
    color: #ccc;
    line-height: 1.8;
}

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

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

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

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

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

.social-link:before {
    font-size: 18px;
}

.social-link.weixin:before {
    content: '微';
}

.social-link.weibo:before {
    content: '博';
}

.social-link.douyin:before {
    content: '抖';
}

.social-link:hover {
    background-color: #ff6b6b;
}

.qrcode {
    text-align: center;
}

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

.qrcode p {
    font-size: 12px;
}

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

.footer-middle h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

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

.footer-middle ul li {
    margin-right: 15px;
    margin-bottom: 10px;
}

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

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

/* 响应式样式 */
@media (max-width: 1200px) {
    .movie-grid, .tv-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .header-container {
        flex-wrap: wrap;
        height: auto;
        padding: 15px 0;
    }
    
    .logo {
        flex: 0 0 100%;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .main-nav {
        flex: 1;
        margin: 0;
    }
    
    .search-box {
        flex: 0 0 100%;
        margin-top: 15px;
        justify-content: center;
    }
    
    .banner-content h1, .banner-content h2 {
        font-size: 32px;
    }
    
    .movie-grid, .tv-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .app-content {
        flex-direction: column;
    }
    
    .app-info {
        flex: 0 0 100%;
        margin-bottom: 40px;
    }
    
    .app-qrcode {
        flex: 0 0 100%;
    }
    
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-nav ul {
        flex-wrap: wrap;
    }
    
    .main-nav li {
        margin: 5px 10px;
    }
    
    .banner-slider {
        height: 400px;
    }
    
    .banner-content {
        padding: 0 30px;
    }
    
    .banner-content h1, .banner-content h2 {
        font-size: 28px;
    }
    
    .movie-grid, .tv-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-item {
        flex-direction: column;
    }
    
    .news-image {
        flex: 0 0 200px;
    }
}

@media (max-width: 576px) {
    .banner-slider {
        height: 350px;
    }
    
    .banner-content h1, .banner-content h2 {
        font-size: 24px;
    }
    
    .banner-content p {
        font-size: 16px;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .app-download {
        flex-direction: column;
    }
    
    .download-btn {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
    }
}
