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

a:hover {
    color: #b20710;
}

ul {
    list-style: none;
}

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

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

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

#nav {
    margin-top: 15px;
}

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

#nav ul li {
    margin-right: 20px;
    margin-bottom: 5px;
}

#nav ul li a {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

#nav ul li a:hover {
    color: #e50914;
}

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

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

/* 横幅样式 */
.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 {
    max-width: 800px;
    margin: 0 auto;
}

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

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

.search-box {
    display: flex;
    max-width: 500px;
    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: #e50914;
    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: #b20710;
}

/* 部分样式 */
.section {
    padding: 60px 0;
}

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

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

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

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

/* 电影网格样式 */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.movie-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 {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

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

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

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

.movie-info {
    padding: 15px;
}

.movie-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

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

.tag {
    display: inline-block;
    padding: 3px 8px;
    background-color: #f0f0f0;
    color: #666;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 5px;
}

/* 文章样式 */
.article-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

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

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

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

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

/* 关于我们样式 */
.about-content {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
    text-align: justify;
}

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

.about-text ul li {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 10px;
    list-style-type: disc;
}

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

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.footer-logo p {
    font-size: 20px;
    font-weight: 700;
    color: #e50914;
    margin-bottom: 20px;
}

.footer-nav ul {
    display: flex;
    flex-wrap: wrap;
}

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

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

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

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

.footer-info a {
    color: #ccc;
}

.footer-info a:hover {
    color: #e50914;
}

/* 响应式设计 */
@media screen and (min-width: 768px) {
    .logo h1 {
        font-size: 28px;
    }

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

    #nav {
        margin-top: 0;
    }

    #nav ul {
        justify-content: flex-end;
    }

    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 767px) {
    .banner {
        padding: 60px 0;
    }

    .banner-content h2 {
        font-size: 28px;
    }

    .section {
        padding: 40px 0;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 20px;
    }

    .movie-info h3 {
        font-size: 16px;
    }
}