/* {模板路径}/static/css/style.css */
/* 全局样式 */
:root {
    --primary-color: #e50914;
    --secondary-color: #221f1f;
    --accent-color: #f5f5f1;
    --text-color: #333;
    --light-text: #fff;
    --border-color: #ddd;
    --bg-light: #f8f9fa;
    --bg-dark: #141414;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    --card-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fff;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* 头部样式 */
.site-header {
    background-color: var(--bg-dark);
    color: var(--light-text);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

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

.logo-wrapper h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.main-nav ul {
    display: flex;
    gap: 20px;
}

.main-nav a {
    color: var(--light-text);
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
}

.main-nav a:hover {
    color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.1);
}

/* 英雄区域样式 */
.hero-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #2c2c2c 100%);
    color: var(--light-text);
}

.hero-section .container {
    display: flex;
    align-items: center;
    gap: 30px;
}

.hero-content {
    flex: 1;
}

.hero-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

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

.search-box {
    display: flex;
    margin-top: 20px;
}

.search-box input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
}

.search-box button {
    background-color: var(--primary-color);
    color: var(--light-text);
    border: none;
    padding: 0 25px;
    border-radius: 0 4px 4px 0;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
}

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

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

.hero-image img {
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

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

.bg-light {
    background-color: var(--bg-light);
}

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

.section-header h2 {
    font-size: 32px;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

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

/* 剧集卡片样式 */
.drama-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
}

.drama-card {
    width: calc(25% - 25px);
    min-width: 250px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

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

.drama-image {
    position: relative;
    overflow: hidden;
    height: 180px;
}

.drama-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.drama-info {
    padding: 15px;
}

.drama-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--secondary-color);
}

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

.rating {
    color: #f8b400;
    margin-bottom: 10px;
}

.watch-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

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

/* 排行榜样式 */
.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ranking-item {
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.ranking-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.ranking-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-right: 20px;
    min-width: 30px;
    text-align: center;
}

.ranking-image {
    width: 120px;
    height: 80px;
    margin-right: 20px;
    overflow: hidden;
    border-radius: 4px;
}

.ranking-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ranking-info {
    flex: 1;
}

.ranking-info h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.ranking-info p {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

/* 文章区域样式 */
.articles-section {
    padding: 60px 0;
}

.articles-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.article-item {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: var(--card-shadow);
}

.article-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.article-item p {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

/* 关于我们样式 */
.about-section {
    padding: 60px 0;
}

.about-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.about-image {
    flex: 1;
}

.about-image img {
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

.about-text {
    flex: 1;
}

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

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

.about-text ul li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 15px;
}

.about-text ul li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* 页脚样式 */
.site-footer {
    background-color: var(--bg-dark);
    color: #aaa;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

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

.footer-links,
.footer-category,
.footer-contact {
    flex: 1;
    min-width: 200px;
}

.footer-links h4,
.footer-category h4,
.footer-contact h4 {
    color: var(--light-text);
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-links ul,
.footer-category ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a,
.footer-category a {
    color: #aaa;
    font-size: 14px;
}

.footer-links a:hover,
.footer-category a:hover {
    color: var(--primary-color);
}

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

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

.social-link {
    display: inline-block;
    padding: 5px 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #aaa;
    font-size: 14px;
}

.social-link:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
}

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

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

.footer-bottom a {
    color: var(--primary-color);
}

/* 响应式样式 */
@media (max-width: 992px) {
    .hero-section .container {
        flex-direction: column;
    }
    
    .drama-card {
        width: calc(33.33% - 20px);
    }
    
    .about-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .drama-card {
        width: calc(50% - 15px);
    }
    
    .ranking-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .ranking-number {
        margin-bottom: 10px;
    }
    
    .ranking-image {
        width: 100%;
        height: auto;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .drama-card {
        width: 100%;
    }
}
