/* 全局样式 */
* {
    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: #0066cc;
    transition: all 0.3s ease;
}

a:hover {
    color: #004499;
}

ul {
    list-style: none;
}

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

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

.logo h1 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #e94560;
    text-align: center;
}

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

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    font-size: 16px;
    padding: 8px 0;
    display: block;
    position: relative;
}

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

nav ul li a:hover:after {
    width: 100%;
}

/* Banner样式 */
.banner {
    background-color: #16213e;
    color: #fff;
    padding: 60px 0;
    margin-bottom: 40px;
}

.banner-content {
    text-align: center;
    margin-bottom: 30px;
}

.banner-content h2 {
    font-size: 36px;
    margin-bottom: 15px;
    color: #e94560;
}

.banner-content 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 {
    padding: 12px 25px;
    background-color: #e94560;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

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

.banner-image {
    text-align: center;
}

.banner-image img {
    max-height: 300px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* 电影卡片部分 */
.movie-section {
    padding: 40px 0;
    background-color: #fff;
    margin-bottom: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

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

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

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

.movie-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

.movie-card {
    width: 220px;
    background-color: #f9f9f9;
    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 {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.movie-poster {
    position: relative;
    overflow: hidden;
    height: 300px;
}

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

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

.movie-info {
    padding: 15px;
}

.movie-info h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #1a1a2e;
}

.movie-info p {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.rating {
    color: #f39c12;
    font-size: 14px;
}

/* 文章部分 */
.article-section {
    padding: 40px 0;
    background-color: #fff;
    margin-bottom: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

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

.article-item {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.article-item h3 {
    font-size: 20px;
    color: #1a1a2e;
    margin-bottom: 15px;
}

.article-item p {
    color: #444;
    line-height: 1.7;
    text-align: justify;
}

/* 关于我们部分 */
.about-section {
    padding: 40px 0;
    background-color: #fff;
    margin-bottom: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text p {
    margin-bottom: 15px;
    color: #444;
    line-height: 1.7;
}

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

.about-text ul li {
    list-style-type: disc;
    margin-bottom: 8px;
    color: #444;
}

.about-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

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

.footer-logo, .footer-links, .footer-category, .footer-contact {
    margin-bottom: 20px;
    min-width: 200px;
}

.footer-logo h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #e94560;
}

.footer-links h4, .footer-category h4, .footer-contact h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #e94560;
}

.footer-links ul li, .footer-category ul li {
    margin-bottom: 8px;
}

.footer-links ul li a, .footer-category ul li a {
    color: #ccc;
}

.footer-links ul li a:hover, .footer-category ul li a:hover {
    color: #fff;
}

.footer-contact p {
    margin-bottom: 8px;
    color: #ccc;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
}

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

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

/* 响应式设计 */
@media (max-width: 768px) {
    .logo h1 {
        font-size: 20px;
    }
    
    nav ul li {
        margin: 0 10px;
    }
    
    nav ul li a {
        font-size: 14px;
    }
    
    .banner-content h2 {
        font-size: 28px;
    }
    
    .banner-content p {
        font-size: 16px;
    }
    
    .movie-cards {
        gap: 15px;
    }
    
    .movie-card {
        width: calc(50% - 15px);
    }
    
    .section-header h2 {
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    .movie-card {
        width: 100%;
        max-width: 280px;
    }
    
    .footer-content > div {
        width: 100%;
    }
}
