/* 全局样式 */
* {
    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 {
    width: 100%;
    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;
    display: block;
    border-radius: 5px;
}

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

.logo {
    float: left;
}

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

nav {
    float: right;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #fff;
    font-weight: 500;
    padding: 10px;
    display: block;
}

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

/* 清除浮动 */
.container:after {
    content: "";
    display: table;
    clear: both;
}

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

.banner-content {
    width: 50%;
    float: left;
    padding-right: 30px;
}

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

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

.banner-image {
    width: 50%;
    float: right;
}

/* 剧集部分样式 */
.drama-section {
    padding: 40px 0;
    margin-bottom: 20px;
}

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

.section-title h2 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title h2:after {
    content: "";
    position: absolute;
    width: 60%;
    height: 3px;
    background-color: #e74c3c;
    bottom: -10px;
    left: 20%;
}

.section-title p {
    color: #7f8c8d;
    font-size: 16px;
}

.drama-cards {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    justify-content: space-between;
}

.drama-card {
    width: calc(25% - 30px);
    margin: 0 15px 30px;
    background-color: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

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

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

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

.drama-info {
    padding: 15px;
}

.drama-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.drama-info p {
    color: #7f8c8d;
    font-size: 14px;
}

.section-content {
    margin-top: 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.section-content h3 {
    font-size: 22px;
    color: #2c3e50;
    margin-bottom: 15px;
    border-left: 4px solid #e74c3c;
    padding-left: 10px;
}

.section-content p {
    margin-bottom: 15px;
    text-indent: 2em;
    line-height: 1.8;
}

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

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

.footer-logo {
    width: 25%;
}

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

.footer-nav, .footer-info, .footer-contact {
    width: 25%;
}

.footer-nav h3, .footer-info h3, .footer-contact h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #e74c3c;
}

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

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

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

.footer-info ul li {
    color: #bdc3c7;
}

.footer-contact p {
    color: #bdc3c7;
    line-height: 1.8;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .banner-content, .banner-image {
        width: 100%;
        float: none;
        padding-right: 0;
    }
    
    .banner-content {
        margin-bottom: 30px;
    }
    
    .drama-card {
        width: calc(33.33% - 30px);
    }
    
    .footer-logo, .footer-nav, .footer-info, .footer-contact {
        width: 50%;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .logo {
        float: none;
        text-align: center;
    }
    
    nav {
        float: none;
        margin-top: 15px;
    }
    
    nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    .drama-card {
        width: calc(50% - 30px);
    }
}

@media (max-width: 576px) {
    .drama-card {
        width: 100%;
        margin: 0 0 30px;
    }
    
    .footer-logo, .footer-nav, .footer-info, .footer-contact {
        width: 100%;
    }
}