/* 基本样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

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

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

a:hover {
    color: #fd79a8;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

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

.logo h1 {
    font-size: 1.8rem;
    color: #e84393;
    font-weight: 700;
}

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

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

nav ul li a {
    color: #333;
    font-weight: 500;
    padding: 10px 0;
    position: relative;
}

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

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

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

/* 横幅样式 */
.banner {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('{模板路径}/static/picture/b1.jpg') 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: 2.5rem;
    margin-bottom: 20px;
}

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

.btn {
    display: inline-block;
    background-color: #e84393;
    color: #fff;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #fd79a8;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* 剧集部分样式 */
.drama-section {
    padding: 80px 0;
}

.bg-alt {
    background-color: #f0f0f0;
}

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

.section-title h2 {
    font-size: 2rem;
    color: #e84393;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

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

.section-title p {
    color: #777;
    font-size: 1.1rem;
}

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

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

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

.drama-img {
    position: relative;
    overflow: hidden;
    height: 200px;
}

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

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

.drama-info {
    padding: 20px;
}

.drama-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
}

.drama-info p {
    color: #777;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.watch-btn {
    display: inline-block;
    background-color: #e84393;
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.watch-btn:hover {
    background-color: #fd79a8;
    color: #fff;
}

/* 文章部分样式 */
.articles-section {
    padding: 80px 0;
}

.articles {
    max-width: 900px;
    margin: 0 auto;
}

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

.article-item h3 {
    font-size: 1.4rem;
    color: #e84393;
    margin-bottom: 15px;
}

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

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

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

.footer-logo {
    flex: 0 0 100%;
    max-width: 300px;
    margin-bottom: 30px;
}

.footer-logo p:first-child {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e84393;
    margin-bottom: 15px;
}

.footer-links, .footer-contact {
    flex: 0 0 100%;
    max-width: 250px;
    margin-bottom: 30px;
}

.footer-links h3, .footer-contact h3 {
    font-size: 1.2rem;
    color: #e84393;
    margin-bottom: 20px;
    position: relative;
}

.footer-links h3::after, .footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: #e84393;
}

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

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

.footer-links ul li a:hover {
    color: #e84393;
    padding-left: 5px;
}

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

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #999;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .drama-card {
        flex: 0 0 calc(33.333% - 30px);
    }
}

@media (max-width: 768px) {
    .drama-card {
        flex: 0 0 calc(50% - 30px);
    }
    
    header .container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 15px;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0 10px;
    }
}

@media (max-width: 576px) {
    .drama-card {
        flex: 0 0 calc(100% - 30px);
    }
    
    .banner-content h2 {
        font-size: 2rem;
    }
    
    .banner-content p {
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
}
