/* {模板路径}/static/css/style.css */
/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

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

a:hover {
    color: #e74c3c;
}

ul {
    list-style: none;
}

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

/* 头部样式 */
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);
}

.logo {
    float: left;
}

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

nav {
    float: right;
}

nav ul {
    display: flex;
}

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

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

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

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

/* 轮播图样式 */
.banner {
    padding: 60px 0;
    background-color: #34495e;
    color: #fff;
    text-align: center;
}

.banner-content {
    max-width: 700px;
    margin: 0 auto;
    margin-bottom: 40px;
}

.banner-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.banner-subtitle {
    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: #e74c3c;
    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: #c0392b;
}

.banner-images {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.banner-images img {
    width: 300px;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* 通用区块样式 */
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;
    font-weight: 700;
    position: relative;
}

.section-header .more {
    color: #7f8c8d;
    font-size: 14px;
    transition: color 0.3s ease;
}

.section-header .more:hover {
    color: #e74c3c;
}

/* 剧集卡片样式 */
.drama-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

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

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

.drama-cover {
    position: relative;
}

.drama-cover img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.episode {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(231, 76, 60, 0.9);
    color: #fff;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
}

.drama-info {
    padding: 15px;
}

.drama-info h3 {
    font-size: 16px;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.drama-info p {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

/* 文章内容样式 */
.article-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.article-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.article-content p {
    margin-bottom: 15px;
    text-align: justify;
    line-height: 1.8;
}

/* 排行榜样式 */
.ranking-container {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.ranking-list {
    flex: 1;
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.ranking-list h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #2c3e50;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.ranking-list ul li {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.rank {
    width: 30px;
    height: 30px;
    background-color: #bdc3c7;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    margin-right: 15px;
}

.ranking-list ul li:nth-child(1) .rank {
    background-color: #f1c40f;
}

.ranking-list ul li:nth-child(2) .rank {
    background-color: #95a5a6;
}

.ranking-list ul li:nth-child(3) .rank {
    background-color: #cd7f32;
}

.rank-info {
    display: flex;
    align-items: center;
    flex: 1;
}

.rank-info img {
    width: 60px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 15px;
}

.rank-info h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

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

/* 关于我们样式 */
.about-content {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.about-image {
    flex: 1;
}

.about-image img {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.about-text {
    flex: 2;
}

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

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

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

/* 页脚样式 */
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: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.footer-logo .slogan {
    font-size: 14px;
    color: #bdc3c7;
}

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

.link-group h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #fff;
}

.link-group ul li {
    margin-bottom: 8px;
}

.link-group ul li a {
    color: #bdc3c7;
    font-size: 14px;
    transition: color 0.3s ease;
}

.link-group ul li a:hover {
    color: #e74c3c;
}

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

.copyright p {
    margin-bottom: 8px;
}

.copyright a {
    color: #bdc3c7;
}

.copyright a:hover {
    color: #e74c3c;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .drama-card {
        width: calc(33.33% - 14px);
    }
    
    .banner-images img {
        width: 250px;
        height: 150px;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .logo {
        float: none;
        text-align: center;
        margin-bottom: 15px;
    }
    
    nav {
        float: none;
    }
    
    nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .drama-card {
        width: calc(50% - 10px);
    }
    
    .banner-images {
        flex-direction: column;
        align-items: center;
    }
    
    .banner-images img {
        margin-bottom: 15px;
    }
    
    .ranking-container {
        flex-direction: column;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .drama-card {
        width: 100%;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
}

/* 特定区块背景色 */
.latest-section {
    background-color: #f9f9f9;
}

.korean-section {
    background-color: #f9f9f9;
}

.japanese-section {
    background-color: #f9f9f9;
}

.about-section {
    background-color: #f9f9f9;
}
