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

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

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

a:hover {
    color: #ff6b81;
}

ul {
    list-style: none;
}

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

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

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

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

.main-nav li {
    margin: 0 15px;
}

.main-nav a {
    font-size: 16px;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

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

.main-nav a:hover::after {
    width: 100%;
}

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

.search-box input {
    padding: 8px 15px;
    border: none;
    border-radius: 20px 0 0 20px;
    background-color: #30363d;
    color: #ffffff;
    width: 200px;
}

.search-box button {
    padding: 8px 15px;
    border: none;
    border-radius: 0 20px 20px 0;
    background-color: #ff6b81;
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

/* Banner样式 */
.banner {
    height: 400px;
    background: linear-gradient(135deg, #ff6b81, #6b66ff);
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
}

.banner-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.banner-content p {
    font-size: 20px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.banner-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, #0d1117, transparent);
}

/* 通用区块样式 */
section {
    padding: 40px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-header h2 {
    font-size: 28px;
    color: #ffffff;
    position: relative;
    padding-left: 15px;
}

.section-header h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 25px;
    background-color: #ff6b81;
    border-radius: 3px;
}

.more-link {
    color: #ff6b81;
    font-size: 16px;
}

/* 影戏卡片样式 */
.movie-grid, .tv-grid, .anime-grid, .variety-grid, .documentary-grid, .newest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.movie-card, .tv-card, .anime-card, .variety-card, .documentary-card, .newest-card {
    background-color: #1a1f25;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.movie-card:hover, .tv-card:hover, .anime-card:hover, .variety-card:hover, .documentary-card:hover, .newest-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.movie-poster, .tv-poster, .anime-poster, .variety-poster, .documentary-poster, .newest-poster, .rank-poster {
    height: 250px;
    width: 100%;
    border-radius: 10px 10px 0 0;
}

/* 渐变配景取代图片 */
.gradient-1 { background: linear-gradient(135deg, #ff6b81, #6b66ff); }
.gradient-2 { background: linear-gradient(135deg, #6b66ff, #66ffb8); }
.gradient-3 { background: linear-gradient(135deg, #66ffb8, #ffd166); }
.gradient-4 { background: linear-gradient(135deg, #ffd166, #ff66a3); }
.gradient-5 { background: linear-gradient(135deg, #ff66a3, #66c2ff); }
.gradient-6 { background: linear-gradient(135deg, #66c2ff, #ff9f66); }
.gradient-7 { background: linear-gradient(135deg, #ff9f66, #a366ff); }
.gradient-8 { background: linear-gradient(135deg, #a366ff, #66ffd9); }
.gradient-9 { background: linear-gradient(135deg, #66ffd9, #ffb366); }
.gradient-10 { background: linear-gradient(135deg, #ffb366, #ff66d4); }
.gradient-11 { background: linear-gradient(135deg, #ff66d4, #66d9ff); }
.gradient-12 { background: linear-gradient(135deg, #66d9ff, #c4ff66); }
.gradient-13 { background: linear-gradient(135deg, #c4ff66, #ff66b3); }
.gradient-14 { background: linear-gradient(135deg, #ff66b3, #66fff1); }
.gradient-15 { background: linear-gradient(135deg, #66fff1, #ff8c66); }
.gradient-16 { background: linear-gradient(135deg, #ff8c66, #8c66ff); }
.gradient-17 { background: linear-gradient(135deg, #8c66ff, #66ffaa); }
.gradient-18 { background: linear-gradient(135deg, #66ffaa, #ffc266); }
.gradient-19 { background: linear-gradient(135deg, #ffc266, #ff66e0); }
.gradient-20 { background: linear-gradient(135deg, #ff66e0, #66e6ff); }
.gradient-21 { background: linear-gradient(135deg, #66e6ff, #d1ff66); }
.gradient-22 { background: linear-gradient(135deg, #d1ff66, #ff6699); }
.gradient-23 { background: linear-gradient(135deg, #ff6699, #66ffcc); }
.gradient-24 { background: linear-gradient(135deg, #66ffcc, #ff9966); }
.gradient-25 { background: linear-gradient(135deg, #ff9966, #9966ff); }
.gradient-26 { background: linear-gradient(135deg, #9966ff, #66ff99); }
.gradient-27 { background: linear-gradient(135deg, #66ff99, #ffcc66); }
.gradient-28 { background: linear-gradient(135deg, #ffcc66, #ff66cc); }
.gradient-29 { background: linear-gradient(135deg, #ff66cc, #66ccff); }
.gradient-30 { background: linear-gradient(135deg, #66ccff, #e6ff66); }
.gradient-31 { background: linear-gradient(135deg, #e6ff66, #ff6680); }
.gradient-32 { background: linear-gradient(135deg, #ff6680, #66ffe6); }
.gradient-33 { background: linear-gradient(135deg, #66ffe6, #ffa366); }

.movie-info, .tv-info, .anime-info, .variety-info, .documentary-info, .newest-info {
    padding: 15px;
}

.movie-info h3, .tv-info h3, .anime-info h3, .variety-info h3, .documentary-info h3, .newest-info h3 {
    font-size: 16px;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-info p, .tv-info p, .anime-info p, .variety-info p, .documentary-info p, .newest-info p {
    font-size: 14px;
    color: #a0a0a0;
    margin-bottom: 5px;
}

.rating {
    color: #ffd700;
    font-size: 14px;
}

/* 排行模范式 */
.ranking-tabs {
    background-color: #1a1f25;
    border-radius: 10px;
    overflow: hidden;
}

.tab-header {
    display: flex;
    background-color: #161b22;
}

.tab {
    padding: 15px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.tab.active {
    background-color: #ff6b81;
    color: #ffffff;
}

.tab-content {
    padding: 20px;
}

.ranking-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 5px;
    background-color: #161b22;
    transition: transform 0.3s ease;
}

.ranking-item:hover {
    transform: translateX(5px);
}

.rank {
    font-size: 24px;
    font-weight: bold;
    color: #ff6b81;
    margin-right: 15px;
    width: 30px;
    text-align: center;
}

.rank-poster {
    width: 80px;
    height: 120px;
    border-radius: 5px;
    margin-right: 15px;
}

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

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

/* 页脚样式 */
footer {
    background-color: #161b22;
    padding: 50px 0 20px;
    margin-top: 40px;
}

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

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #ff6b81;
}

.footer-column p {
    font-size: 14px;
    color: #a0a0a0;
    line-height: 1.8;
}

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

.footer-column ul li a {
    font-size: 14px;
    color: #a0a0a0;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #30363d;
}

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

/* 响应式设计 */
@media screen and (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    .main-nav {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .main-nav ul {
        justify-content: center;
    }
    
    .search-box {
        margin: 0 auto;
    }
    
    .banner {
        height: 300px;
    }
    
    .banner-content h2 {
        font-size: 36px;
    }
    
    .movie-grid, .tv-grid, .anime-grid, .variety-grid, .documentary-grid, .newest-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .movie-poster, .tv-poster, .anime-poster, .variety-poster, .documentary-poster, .newest-poster {
        height: 200px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}
<!--耗时1781367483.5512秒-->