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

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

a {
    text-decoration: none;
    color: #2979ff;
    transition: color 0.3s ease;
}

a:hover {
    color: #1565c0;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

ul {
    list-style: none;
}

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

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

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

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.main-nav ul {
    display: flex;
    gap: 20px;
}

.main-nav a {
    color: #fff;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.main-nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* 通用部分样式 */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

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

.section-header h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #2979ff;
}

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

.btn {
    display: inline-block;
    background-color: #2979ff;
    color: #fff;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #1565c0;
    color: #fff;
}

/* 横幅区域 */
.banner {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('') no-repeat center center;
    background-size: cover;
    color: #fff;
    padding: 100px 0;
    text-align: center;
}

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

.banner-content p {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 介绍区域 */
.intro {
    padding: 80px 0;
    background-color: #fff;
}

.intro-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.intro-text {
    flex: 1;
}

.intro-text p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
}

.intro-image {
    flex: 1;
}

/* 卡片样式 */
.card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-image {
    height: 200px;
    overflow: hidden;
}

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

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

.card-content {
    padding: 20px;
}

.card-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #1a237e;
}

.card-content .info {
    color: #757575;
    font-size: 14px;
    margin-bottom: 10px;
}

.card-content .desc {
    font-size: 14px;
    color: #555;
}

/* 电影区域 */
.movie-section {
    padding: 80px 0;
    background-color: #f5f5f5;
}

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

/* 电视剧区域 */
.tvshow-section {
    padding: 80px 0;
    background-color: #fff;
}

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

/* 综艺区域 */
.variety-section {
    padding: 80px 0;
    background-color: #f5f5f5;
}

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

/* 动漫区域 */
.anime-section {
    padding: 80px 0;
    background-color: #fff;
}

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

/* 最新上线区域 */
.newest-section {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.newest-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.newest-item {
    display: flex;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

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

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

.newest-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #1a237e;
}

.newest-content .type,
.newest-content .time {
    color: #757575;
    font-size: 14px;
    margin-bottom: 5px;
}

.newest-content .desc {
    font-size: 14px;
    color: #555;
    margin-top: 10px;
}

/* 排行榜区域 */
.ranking-section {
    padding: 80px 0;
    background-color: #fff;
}

.ranking-tabs {
    max-width: 800px;
    margin: 0 auto;
    background-color: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
}

.tab-header {
    display: flex;
    background-color: #1a237e;
}

.tab-item {
    flex: 1;
    text-align: center;
    padding: 15px 0;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.tab-item:hover {
    background-color: #3949ab;
}

.tab-item.active {
    background-color: #2979ff;
}

.tab-pane {
    display: none;
    padding: 20px;
}

.tab-pane.active {
    display: block;
}

.rank-list li {
    display: flex;
    align-items: center;
    padding: 15px 10px;
    border-bottom: 1px solid #e0e0e0;
}

.rank-list li:last-child {
    border-bottom: none;
}

.rank-num {
    flex: 0 0 40px;
    height: 40px;
    background-color: #2979ff;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 15px;
}

.rank-list li:nth-child(1) .rank-num {
    background-color: #f44336;
}

.rank-list li:nth-child(2) .rank-num {
    background-color: #ff9800;
}

.rank-list li:nth-child(3) .rank-num {
    background-color: #4caf50;
}

.rank-name {
    flex: 0 0 40%;
    font-weight: 500;
    color: #333;
}

.rank-info {
    flex: 0 0 30%;
    color: #757575;
    font-size: 14px;
}

.rank-hot {
    flex: 1;
    text-align: right;
    color: #f44336;
    font-weight: 500;
}

/* 下载区域 */
.download-section {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.download-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.download-info {
    flex: 1;
}

.download-info h3 {
    font-size: 24px;
    color: #1a237e;
    margin-bottom: 20px;
}

.download-info p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
}

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

.feature-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

.feature-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #2979ff;
    font-weight: 700;
}

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

.download-buttons .btn {
    display: flex;
    align-items: center;
    gap: 10px;
}

.download-image {
    flex: 1;
}

/* 文章区域 */
.articles-section {
    padding: 80px 0;
    background-color: #fff;
}

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.article-item {
    background-color: #f5f5f5;
    border-radius: 8px;
    padding: 25px;
}

.article-item h3 {
    font-size: 22px;
    color: #1a237e;
    margin-bottom: 10px;
}

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

.article-content p {
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.8;
}

/* 页脚区域 */
.footer {
    background-color: #1a237e;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    flex: 0 0 100%;
    max-width: 300px;
}

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

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

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

.footer-links-column h4 {
    font-size: 16px;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links-column h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: #2979ff;
}

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

.footer-links-column a {
    color: #b3e5fc;
    transition: color 0.3s ease;
}

.footer-links-column a:hover {
    color: #fff;
}

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

.footer-bottom p {
    margin-bottom: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

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

/* 响应式设计 */
@media (max-width: 992px) {
    .intro-content,
    .download-content {
        flex-direction: column;
    }
    
    .header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .banner-content h2 {
        font-size: 36px;
    }
    
    .newest-item {
        flex-direction: column;
    }
    
    .newest-image {
        flex: 0 0 auto;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 28px;
    }
    
    .movie-cards,
    .tvshow-cards,
    .variety-cards,
    .anime-cards {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-links {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .movie-cards,
    .tvshow-cards,
    .variety-cards,
    .anime-cards {
        grid-template-columns: 1fr;
    }
    
    .banner {
        padding: 60px 0;
    }
    
    .banner-content h2 {
        font-size: 28px;
    }
    
    .banner-content p {
        font-size: 16px;
    }
}