/* {模板路径}/static/css/style.css */

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

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

a:hover {
    color: #1a56cc;
}

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

ul {
    list-style: none;
}

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

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

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

.logo a {
    color: #fff;
    font-size: 22px;
    font-weight: bold;
    display: flex;
    align-items: center;
}

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

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

#main-nav li {
    margin: 0 10px;
}

#main-nav a {
    color: #fff;
    font-size: 16px;
    padding: 8px 12px;
    border-radius: 4px;
}

#main-nav a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.search-box {
    display: flex;
    align-items: center;
}

.search-box input {
    padding: 8px 12px;
    border: none;
    border-radius: 4px 0 0 4px;
    width: 200px;
    font-size: 14px;
}

.search-box button {
    background-color: #1a56cc;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

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

/* 横幅区域 */
#banner {
    background: linear-gradient(135deg, #3a86ff 0%, #8338ec 100%);
    padding: 60px 0;
    color: #fff;
    margin-bottom: 40px;
}

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

.banner-content {
    flex: 1;
    padding-right: 30px;
}

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

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

.btn-primary {
    display: inline-block;
    background-color: #ff006e;
    color: #fff;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #d10058;
    transform: translateY(-2px);
    color: #fff;
}

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

.banner-image img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* 剧集区域通用样式 */
.drama-section {
    padding: 40px 0;
    margin-bottom: 20px;
}

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

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

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

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

.drama-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

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

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

.drama-poster {
    position: relative;
    overflow: hidden;
}

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

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

.episode-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 0, 110, 0.9);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.drama-info {
    padding: 15px;
}

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

.drama-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    height: 44px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.drama-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #888;
    margin-bottom: 15px;
}

.btn-watch {
    display: block;
    text-align: center;
    background-color: #3a86ff;
    color: #fff;
    padding: 8px 0;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
}

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

/* 文章区域样式 */
.articles-section {
    padding: 40px 0;
    background-color: #f9f9f9;
}

.articles-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 30px;
}

.article-item {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.article-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

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

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

.article-content {
    font-size: 15px;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.7;
}

.article-content p {
    margin-bottom: 10px;
}

.read-more {
    display: inline-block;
    color: #3a86ff;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #1a56cc;
    text-decoration: underline;
}

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

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo a {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 15px;
    display: inline-block;
}

.footer-logo p {
    font-size: 14px;
    color: #aaa;
}

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

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

.footer-nav ul li a,
.footer-category ul li a {
    color: #aaa;
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-nav ul li a:hover,
.footer-category ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

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

.social-links {
    display: flex;
    margin-top: 15px;
}

.social-link {
    margin-right: 15px;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: #3a86ff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

/* 响应式设计 */
@media (max-width: 992px) {
    #header .container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    #main-nav {
        margin-bottom: 15px;
        width: 100%;
        overflow-x: auto;
    }
    
    #main-nav ul {
        width: max-content;
    }
    
    .search-box {
        width: 100%;
    }
    
    .search-box input {
        width: 100%;
    }
    
    #banner .container {
        flex-direction: column;
    }
    
    .banner-content {
        padding-right: 0;
        margin-bottom: 30px;
        text-align: center;
    }
    
    .articles-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .drama-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .drama-cards {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .banner-content h2 {
        font-size: 28px;
    }
}
