/* 全局样式 */
* {
    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;
}

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

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

a:hover {
    color: #ff5e52;
}

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

ul {
    list-style: none;
}

/* 头部样式 */
.header {
    background-color: #1a1a2e;
    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 {
    color: #fff;
    font-size: 24px;
    margin: 0;
}

.main-nav ul {
    display: flex;
}

.main-nav li {
    margin-left: 20px;
}

.main-nav a {
    color: #fff;
    font-size: 16px;
    padding: 5px 10px;
    border-radius: 4px;
}

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

/* Banner样式 */
.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: 36px;
    margin-bottom: 20px;
}

.banner-content p {
    font-size: 18px;
    margin-bottom: 30px;
}

.search-box {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
}

.search-box input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
}

.search-box button {
    background-color: #ff5e52;
    color: #fff;
    border: none;
    padding: 0 25px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 16px;
}

/* 分区公共样式 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #ff5e52;
    padding-bottom: 10px;
}

.section-header h2 {
    font-size: 24px;
    color: #1a1a2e;
}

.section-header .more {
    color: #ff5e52;
    font-size: 14px;
}

.movie-section, .tv-section, .animation-section, .variety-section, .new-section, .ranking-section, .articles-section, .about-section {
    padding: 50px 0;
    background-color: #fff;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.movie-card, .tv-card, .animation-card, .variety-card, .new-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.movie-card:hover, .tv-card:hover, .animation-card:hover, .variety-card:hover, .new-card:hover {
    transform: translateY(-5px);
}

.movie-poster, .tv-poster, .animation-poster, .variety-poster, .new-poster {
    position: relative;
    overflow: hidden;
    height: 0;
    padding-top: 150%; /* 2:3 比例 */
}

.movie-poster img, .tv-poster img, .animation-poster img, .variety-poster img, .new-poster img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

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

.movie-meta, .tv-meta, .animation-meta, .variety-meta, .new-meta {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.movie-rating, .tv-rating, .animation-rating, .variety-rating, .new-rating {
    color: #ff5e52;
    font-weight: bold;
    font-size: 14px;
}

/* 排行榜样式 */
.ranking-tabs {
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
}

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

.tab {
    padding: 15px 20px;
    color: #fff;
    cursor: pointer;
    flex: 1;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.tab:last-child {
    border-right: none;
}

.tab.active {
    background-color: #ff5e52;
}

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

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

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

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

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

.ranking-list li:nth-child(1) .rank,
.ranking-list li:nth-child(2) .rank,
.ranking-list li:nth-child(3) .rank {
    background-color: #ff5e52;
    color: #fff;
}

.title {
    flex: 1;
    font-size: 14px;
}

.score {
    color: #ff5e52;
    font-weight: bold;
}

/* 文章样式 */
.article-item {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.article-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.article-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

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

.article-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    text-align: justify;
}

/* 关于我们样式 */
.about-content {
    font-size: 16px;
    line-height: 1.8;
}

.about-content p {
    margin-bottom: 20px;
}

.about-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.about-content li {
    margin-bottom: 10px;
    list-style-type: disc;
}

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

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

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

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

.footer-links {
    display: flex;
}

.link-group {
    margin-left: 50px;
}

.link-group h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #ff5e52;
}

.link-group ul li {
    margin-bottom: 10px;
}

.link-group a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.link-group a:hover {
    color: #ff5e52;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.copyright a {
    color: rgba(255, 255, 255, 0.7);
}

.copyright a:hover {
    color: #ff5e52;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .movie-list, .tv-list, .animation-list, .variety-list, .new-list {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-links {
        margin-top: 30px;
    }
    
    .link-group {
        margin-left: 30px;
    }
    
    .link-group:first-child {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-nav li {
        margin: 5px;
    }
    
    .movie-list, .tv-list, .animation-list, .variety-list, .new-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-links {
        flex-wrap: wrap;
    }
    
    .link-group {
        margin-left: 0;
        margin-bottom: 20px;
        width: 50%;
    }
}

@media (max-width: 576px) {
    .movie-list, .tv-list, .animation-list, .variety-list, .new-list {
        grid-template-columns: 1fr;
    }
    
    .link-group {
        width: 100%;
    }
}