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

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

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

a:hover {
    color: #e74c3c;
}

ul {
    list-style: none;
}

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

/* 头部样式 */
.header {
    background-color: #2c3e50;
    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;
    font-weight: 700;
}

.main-nav ul {
    display: flex;
}

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

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

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

/* 横幅样式 */
.banner {
    background: linear-gradient(135deg, #3498db, #8e44ad);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

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

.banner h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

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

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

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

.search-box button {
    background-color: #e74c3c;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

/* 章节通用样式 */
section {
    padding: 60px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 10px;
}

.section-header h2 {
    font-size: 28px;
    color: #2c3e50;
    position: relative;
}

.more {
    color: #e74c3c;
    font-weight: 500;
}

/* 电影卡片样式 */
.movie-list, .tvshow-list, .variety-list, .animation-list, .music-list, .recommend-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 25px;
}

.movie-card, .tvshow-card, .variety-card, .animation-card, .music-card, .recommend-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.movie-card:hover, .tvshow-card:hover, .variety-card:hover, .animation-card:hover, .music-card:hover, .recommend-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.movie-thumb, .tvshow-thumb, .variety-thumb, .animation-thumb, .music-thumb, .recommend-thumb {
    position: relative;
    overflow: hidden;
    height: 0;
    padding-top: 150%; /* 2:3 比例 */
}

.movie-thumb img, .tvshow-thumb img, .variety-thumb img, .animation-thumb img, .music-thumb img, .recommend-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.movie-card:hover img, .tvshow-card:hover img, .variety-card:hover img, .animation-card:hover img, .music-card:hover img, .recommend-card:hover img {
    transform: scale(1.05);
}

.movie-info, .tvshow-info, .variety-info, .animation-info, .music-info, .recommend-info {
    padding: 15px;
}

.movie-info h3, .tvshow-info h3, .variety-info h3, .animation-info h3, .music-info h3, .recommend-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.movie-meta, .tvshow-meta, .variety-meta, .animation-meta, .music-meta, .recommend-meta {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 10px;
}

.movie-desc, .tvshow-desc, .variety-desc, .animation-desc, .music-desc, .recommend-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.article-list {
    display: grid;
    gap: 30px;
}

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

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

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

.article-content p {
    margin-bottom: 15px;
    line-height: 1.7;
}

/* 关于我们样式 */
.about-section {
    background-color: #fff;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-image img {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 页脚样式 */
.footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 60px 0 30px;
}

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

.footer-logo p {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-nav {
    display: flex;
    gap: 60px;
}

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

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

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

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

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

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

/* 响应式设计 */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-logo {
        margin-bottom: 30px;
    }
    
    .footer-nav {
        gap: 30px;
    }
}

@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, .tvshow-list, .variety-list, .animation-list, .music-list, .recommend-list {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .banner {
        padding: 50px 0;
    }
    
    .banner h2 {
        font-size: 28px;
    }
    
    .banner p {
        font-size: 16px;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .search-box input {
        border-radius: 4px;
        margin-bottom: 10px;
    }
    
    .search-box button {
        border-radius: 4px;
    }
    
    section {
        padding: 40px 0;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .movie-list, .tvshow-list, .variety-list, .animation-list, .music-list, .recommend-list {
        grid-template-columns: 1fr;
    }
}
