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

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

a:hover {
    color: #FF6B6B;
}

ul {
    list-style: none;
}

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

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

.logo a {
    display: block;
}

.main-nav ul {
    display: flex;
}

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

.main-nav a {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    transition: color 0.3s;
}

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

.search-box {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 20px;
    overflow: hidden;
}

.search-box input {
    border: none;
    padding: 8px 15px;
    width: 200px;
    outline: none;
}

.search-btn {
    background-color: #FF6B6B;
    color: white;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-btn:hover {
    background-color: #FF5252;
}

/* 轮播图样式 */
.banner {
    margin: 20px 0;
}

.banner-wrapper {
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #FF6B6B, #FFD166);
}

.banner-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    text-align: center;
    padding: 0 20px;
}

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

.banner-gradient p {
    font-size: 18px;
    max-width: 600px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* 区块标题样式 */
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #FF6B6B;
}

.section-title h2 {
    font-size: 24px;
    color: #333;
    position: relative;
    padding-left: 15px;
}

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

.more {
    color: #666;
    font-size: 14px;
}

/* 电影列表样式 */
.movie-list, .series-list {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

@media (max-width: 1200px) {
    .movie-list, .series-list {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .movie-list, .series-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .movie-list, .series-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

.movie-card, .series-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.movie-card:hover, .series-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.movie-poster, .series-poster {
    height: 240px;
    position: relative;
}

.movie-tag, .series-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #FF6B6B;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.movie-info, .series-info {
    padding: 10px;
}

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

.movie-info p, .series-info p {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.movie-rating, .series-rating {
    display: flex;
    align-items: center;
    margin-top: 5px;
}

.rating-score {
    font-size: 14px;
    font-weight: bold;
    color: #FF6B6B;
    margin-right: 10px;
}

.rating-stars {
    position: relative;
    width: 80px;
    height: 16px;
    background-color: #eee;
    border-radius: 8px;
    overflow: hidden;
}

.filled-stars {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: #FFD166;
    border-radius: 8px;
}

/* 分类推荐样式 */
.category-recommend {
    margin: 40px 0;
}

.category-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .category-container {
        grid-template-columns: 1fr;
    }
}

.category-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.category-header {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.category-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
}

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

.category-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 15px;
}

@media (max-width: 576px) {
    .category-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

.category-movie {
    text-align: center;
}

.category-poster {
    height: 120px;
    border-radius: 4px;
    margin-bottom: 5px;
}

.category-movie p {
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 最新上线样式 */
.new-release {
    margin: 40px 0;
}

.release-list {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 15px;
}

@media (max-width: 1200px) {
    .release-list {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 992px) {
    .release-list {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 576px) {
    .release-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

.release-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.release-item:hover {
    transform: translateY(-5px);
}

.release-poster {
    height: 150px;
    position: relative;
}

.release-date {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 12px;
    padding: 5px 0;
    text-align: center;
}

.release-info {
    padding: 10px;
}

.release-info h3 {
    font-size: 14px;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.release-info p {
    font-size: 12px;
    color: #666;
}

/* APP下载区域样式 */
.app-download {
    background-color: #fff;
    padding: 40px 0;
    margin: 40px 0;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.app-info {
    flex: 1;
    padding-right: 40px;
}

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

.app-slogan {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
}

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

.app-features li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 16px;
    color: #555;
}

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

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

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    color: white;
    background-color: #FF6B6B;
    transition: background-color 0.3s;
}

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

.download-btn.android {
    background-color: #3DDC84;
}

.download-btn.android:hover {
    background-color: #32b56c;
}

.download-btn.ios {
    background-color: #007AFF;
}

.download-btn.ios:hover {
    background-color: #0062cc;
}

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

.qrcode-wrapper {
    width: 200px;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qrcode-gradient {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #FF6B6B, #FFD166);
    margin-bottom: 10px;
}

/* 影视资讯区域样式 */
.movie-news {
    margin: 40px 0;
}

.news-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.news-image {
    flex: 0 0 200px;
    height: 150px;
}

/* 渐变新闻图片背景 */
.gradient-news-1 { background: linear-gradient(135deg, #FF6B6B, #FFD166); }
.gradient-news-2 { background: linear-gradient(135deg, #06D6A0, #1B9AAA); }
.gradient-news-3 { background: linear-gradient(135deg, #FF9E80, #FF6E40); }
.gradient-news-4 { background: linear-gradient(135deg, #26C6DA, #00ACC1); }
.gradient-news-5 { background: linear-gradient(135deg, #AB47BC, #7B1FA2); }
.gradient-news-6 { background: linear-gradient(135deg, #FF7043, #F4511E); }

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

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

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

.news-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
}

/* 排行榜区域样式 */
.ranking {
    margin: 40px 0;
}

.ranking-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

@media (max-width: 992px) {
    .ranking-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .ranking-container {
        grid-template-columns: 1fr;
    }
}

.ranking-column {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.ranking-header {
    background-color: #FF6B6B;
    color: white;
    padding: 15px;
    text-align: center;
}

.ranking-header h3 {
    font-size: 18px;
    margin: 0;
}

.ranking-list {
    padding: 15px;
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.ranking-item:last-child {
    border-bottom: none;
}

.ranking-number {
    width: 30px;
    height: 30px;
    background-color: #FF6B6B;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
}

.ranking-item:nth-child(1) .ranking-number {
    background-color: #FFD700;
}

.ranking-item:nth-child(2) .ranking-number {
    background-color: #C0C0C0;
}

.ranking-item:nth-child(3) .ranking-number {
    background-color: #CD7F32;
}

.ranking-content {
    flex: 1;
}

.ranking-content h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.ranking-content p {
    font-size: 12px;
    color: #666;
}

/* 页脚样式 */
.footer {
    background-color: #2C3E50;
    color: #ccc;
    padding: 40px 0 20px;
}

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

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

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

.footer-nav {
    flex: 1;
    display: flex;
    justify-content: space-around;
}

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

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

.footer-nav-group a {
    color: #aaa;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-nav-group a:hover {
    color: #FF6B6B;
}

.footer-middle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid #34495e;
    border-bottom: 1px solid #34495e;
    margin-bottom: 20px;
}

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

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

.qrcode-image {
    width: 100px;
    height: 100px;
    margin-bottom: 10px;
}

/* 渐变二维码背景 */
.gradient-qrcode-1 { background: linear-gradient(135deg, #FF6B6B, #FFD166); }
.gradient-qrcode-2 { background: linear-gradient(135deg, #06D6A0, #1B9AAA); }

.contact-info {
    flex: 1;
    padding-left: 40px;
}

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

.contact-icon {
    width: 16px;
    height: 16px;
    background-color: #FF6B6B;
    border-radius: 50%;
    margin-right: 10px;
    display: inline-block;
}

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

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

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

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    color: #888;
    font-size: 12px;
}

.copyright {
    margin-bottom: 10px;
}

.icp {
    margin-bottom: 10px;
}

.icp a {
    color: #888;
    margin: 0 10px;
}

.disclaimer {
    max-width: 800px;
    margin: 0 auto;
}

/* 渐变海报背景 */
.gradient-poster-1 { background: linear-gradient(135deg, #FF6B6B, #FFD166); }
.gradient-poster-2 { background: linear-gradient(135deg, #06D6A0, #1B9AAA); }
.gradient-poster-3 { background: linear-gradient(135deg, #FF9E80, #FF6E40); }
.gradient-poster-4 { background: linear-gradient(135deg, #26C6DA, #00ACC1); }
.gradient-poster-5 { background: linear-gradient(135deg, #AB47BC, #7B1FA2); }
.gradient-poster-6 { background: linear-gradient(135deg, #FF7043, #F4511E); }
.gradient-poster-7 { background: linear-gradient(135deg, #5C6BC0, #3949AB); }
.gradient-poster-8 { background: linear-gradient(135deg, #FFA726, #FB8C00); }
.gradient-poster-9 { background: linear-gradient(135deg, #66BB6A, #43A047); }
.gradient-poster-10 { background: linear-gradient(135deg, #EC407A, #D81B60); }
.gradient-poster-11 { background: linear-gradient(135deg, #8D6E63, #5D4037); }
.gradient-poster-12 { background: linear-gradient(135deg, #78909C, #546E7A); }
.gradient-poster-13 { background: linear-gradient(135deg, #EF5350, #E53935); }
.gradient-poster-14 { background: linear-gradient(135deg, #7E57C2, #5E35B1); }
.gradient-poster-15 { background: linear-gradient(135deg, #42A5F5, #1E88E5); }
.gradient-poster-16 { background: linear-gradient(135deg, #FFCA28, #FFB300); }
.gradient-poster-17 { background: linear-gradient(135deg, #26A69A, #00897B); }
.gradient-poster-18 { background: linear-gradient(135deg, #9CCC65, #7CB342); }
.gradient-poster-19 { background: linear-gradient(135deg, #FFA000, #FF8F00); }
.gradient-poster-20 { background: linear-gradient(135deg, #5C6BC0, #3949AB); }
.gradient-poster-21 { background: linear-gradient(135deg, #EC407A, #D81B60); }
.gradient-poster-22 { background: linear-gradient(135deg, #AB47BC, #8E24AA); }
.gradient-poster-23 { background: linear-gradient(135deg, #7986CB, #5C6BC0); }
.gradient-poster-24 { background: linear-gradient(135deg, #FF7043, #F4511E); }
.gradient-poster-25 { background: linear-gradient(135deg, #5E35B1, #4527A0); }
.gradient-poster-26 { background: linear-gradient(135deg, #8D6E63, #6D4C41); }
.gradient-poster-27 { background: linear-gradient(135deg, #78909C, #546E7A); }
.gradient-poster-28 { background: linear-gradient(135deg, #5D4037, #3E2723); }
.gradient-poster-29 { background: linear-gradient(135deg, #FF5252, #D50000); }
.gradient-poster-30 { background: linear-gradient(135deg, #00BCD4, #0097A7); }
.gradient-poster-31 { background: linear-gradient(135deg, #CDDC39, #AFB42B); }
.gradient-poster-32 { background: linear-gradient(135deg, #7C4DFF, #651FFF); }
.gradient-poster-33 { background: linear-gradient(135deg, #FF6E40, #FF3D00); }
.gradient-poster-34 { background: linear-gradient(135deg, #69F0AE, #00E676); }
.gradient-poster-35 { background: linear-gradient(135deg, #FF4081, #F50057); }
.gradient-poster-36 { background: linear-gradient(135deg, #448AFF, #2979FF); }

/* 渐变分类图标 */
.gradient-icon-1 { background: linear-gradient(135deg, #FF6B6B, #FFD166); }
.gradient-icon-2 { background: linear-gradient(135deg, #06D6A0, #1B9AAA); }
.gradient-icon-3 { background: linear-gradient(135deg, #FF9E80, #FF6E40); }
.gradient-icon-4 { background: linear-gradient(135deg, #26C6DA, #00ACC1); }

/* 响应式调整 */
@media (max-width: 992px) {
    .app-wrapper {
        flex-direction: column;
    }
    
    .app-info {
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .footer-top {
        flex-direction: column;
    }
    
    .footer-logo {
        margin-bottom: 30px;
    }
    
    .footer-nav {
        flex-wrap: wrap;
    }
    
    .footer-nav-group {
        flex: 0 0 50%;
        margin-bottom: 20px;
    }
    
    .news-item {
        flex-direction: column;
    }
    
    .news-image {
        flex: 0 0 150px;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        height: auto;
        padding: 15px;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    .main-nav {
        margin-bottom: 15px;
        width: 100%;
        overflow-x: auto;
    }
    
    .main-nav ul {
        width: max-content;
    }
    
    .search-box {
        width: 100%;
    }
    
    .search-box input {
        flex: 1;
    }
    
    .footer-middle {
        flex-direction: column;
    }
    
    .qrcode-container {
        margin-bottom: 20px;
    }
    
    .contact-info {
        padding-left: 0;
    }
}

@media (max-width: 576px) {
    .banner-gradient h1 {
        font-size: 28px;
    }
    
    .banner-gradient p {
        font-size: 16px;
    }
    
    .footer-nav-group {
        flex: 0 0 100%;
    }
    
    .download-buttons {
        flex-direction: column;
        gap: 10px;
    }
}
