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

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

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

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

a:hover {
    color: #0d47a1;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
   /* {模板路径}/static/css/style.css 继续 */
    border-radius: 4px;
}

/* 头部样式 */
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 a {
    color: #1e88e5;
    font-weight: bold;
}

.logo h1 {
    font-size: 24px;
    margin: 0;
}

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

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

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

nav ul li a:hover {
    color: #1e88e5;
}

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

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

/* 横幅区域样式 */
.banner {
    background-image: linear-gradient(120deg, #1e88e5, #5e35b1);
    color: #fff;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 30px;
}

.banner-content {
    max-width: 800px;
    margin: 0 auto;
}

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

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

.search-box {
    display: flex;
    max-width: 600px;
    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 {
    background-color: #ff5722;
    color: #fff;
    border: none;
    padding: 0 25px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

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

/* 内容区块样式 */
.section-block {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    padding: 25px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.section-header h2 {
    font-size: 22px;
    color: #333;
}

.more {
    font-size: 14px;
    color: #1e88e5;
}

/* 电视剧卡片样式 */
.drama-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.drama-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    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.1);
}

.drama-thumb {
    position: relative;
    overflow: hidden;
    padding-top: 140%;
}

.drama-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.drama-thumb .episode {
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 0 4px 0 0;
}

.drama-info {
    padding: 12px;
}

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

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

.star {
    color: #ff9800;
    font-size: 14px;
}

/* 文章内容样式 */
.section-content {
    padding: 15px 0;
}

.section-content article {
    margin-bottom: 25px;
}

.section-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

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

/* 排行榜样式 */
.ranking-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 500;
    color: #777;
    position: relative;
}

.tab.active {
    color: #1e88e5;
}

.tab.active:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #1e88e5;
}

.ranking-content {
    display: none;
}

.ranking-content.active {
    display: block;
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.ranking-item:last-child {
    border-bottom: none;
}

.ranking-num {
    width: 30px;
    height: 30px;
    background-color: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
}

.ranking-item:nth-child(1) .ranking-num {
    background-color: #ff5722;
    color: #fff;
}

.ranking-item:nth-child(2) .ranking-num {
    background-color: #ff9800;
    color: #fff;
}

.ranking-item:nth-child(3) .ranking-num {
    background-color: #ffc107;
    color: #fff;
}

.ranking-thumb {
    width: 100px;
    height: 140px;
    overflow: hidden;
    border-radius: 4px;
    margin-right: 15px;
}

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

.ranking-info {
    flex: 1;
}

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

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

.ranking-play {
    color: #777;
    font-size: 14px;
}

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

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

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

.footer-logo h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.footer-logo p {
    color: #aaa;
}

.footer-links {
    flex: 1;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.footer-column {
    margin-bottom: 25px;
    min-width: 160px;
}

.footer-column h4 {
    font-size: 16px;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: #1e88e5;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column ul li a {
    color: #aaa;
    font-size: 14px;
}

.footer-column ul li a:hover {
    color: #1e88e5;
}

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

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

/* 响应式设计 */
@media (max-width: 992px) {
    .drama-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .drama-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    header .container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 15px;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0 10px;
    }
    
    .footer-logo {
        text-align: center;
        margin: 0 auto 30px;
    }
}

@media (max-width: 576px) {
    .drama-list {
        grid-template-columns: repeat(1, 1fr);
        gap: 15px;
    }
    
    .banner h2 {
        font-size: 28px;
    }
    
    .banner p {
        font-size: 16px;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .search-box input {
        border-radius: 4px;
        margin-bottom: 10px;
    }
    
    .search-box button {
        border-radius: 4px;
        width: 100%;
        padding: 12px;
    }
    
    .ranking-thumb {
        width: 80px;
        height: 110px;
    }
}

