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

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

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

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

ul {
    list-style: none;
}

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

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #ff5722, #ff9800);
    color: #fff;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 87, 34, 0.4);
}

/* 头部样式 */
header {
    background-color: #1a1a2e;
    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;
}

.logo {
    width: 150px;
}

.logo svg {
    width: 100%;
    height: auto;
}

.main-nav {
    display: flex;
}

.main-nav li {
    margin-left: 20px;
}

.main-nav a {
    color: #fff;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
}

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

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

.search-box input {
    padding: 8px 15px;
    border: none;
    border-radius: 20px 0 0 20px;
    width: 200px;
    background-color: #2d2d42;
    color: #fff;
}

.search-box button {
    background-color: #ff5722;
    border: none;
    border-radius: 0 20px 20px 0;
    padding: 0 15px;
    cursor: pointer;
}

.search-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-radius: 50%;
    position: relative;
}

.search-icon::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 8px;
    background-color: #fff;
    bottom: -6px;
    right: -2px;
    transform: rotate(45deg);
}

/* 轮播图样式 */
.banner-section {
    padding: 30px 0;
}

.banner-slider {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 400px;
}

.banner-item {
    height: 400px;
    display: flex;
    align-items: center;
    padding: 0 50px;
    color: #fff;
    position: relative;
}

.banner-content {
    max-width: 600px;
    z-index: 2;
}

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

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

/* 渐变背景 */
.gradient-bg-1 {
    background: linear-gradient(135deg, #1a237e, #4a148c);
}

.gradient-bg-2 {
    background: linear-gradient(135deg, #004d40, #006064);
}

.gradient-bg-3 {
    background: linear-gradient(135deg, #bf360c, #d84315);
}

.gradient-bg-4 {
    background: linear-gradient(135deg, #0d47a1, #1565c0);
    height: 250px;
}

.gradient-bg-5 {
    background: linear-gradient(135deg, #880e4f, #ad1457);
    height: 250px;
}

.gradient-bg-6 {
    background: linear-gradient(135deg, #4a148c, #6a1b9a);
    height: 250px;
}

.gradient-bg-7 {
    background: linear-gradient(135deg, #1b5e20, #2e7d32);
    height: 250px;
}

.gradient-bg-8 {
    background: linear-gradient(135deg, #b71c1c, #c62828);
    height: 250px;
}

.gradient-bg-9 {
    background: linear-gradient(135deg, #263238, #37474f);
    height: 250px;
}

.gradient-bg-10 {
    background: linear-gradient(135deg, #e65100, #ef6c00);
    height: 250px;
}

.gradient-bg-11 {
    background: linear-gradient(135deg, #3e2723, #4e342e);
    height: 250px;
}

.gradient-bg-12 {
    background: linear-gradient(135deg, #01579b, #0277bd);
    height: 250px;
}

.gradient-bg-13 {
    background: linear-gradient(135deg, #311b92, #4527a0);
    height: 250px;
}

.gradient-bg-14 {
    background: linear-gradient(135deg, #827717, #9e9d24);
    height: 250px;
}

.gradient-bg-15 {
    background: linear-gradient(135deg, #1a237e, #283593);
    height: 250px;
}

.gradient-bg-16 {
    background: linear-gradient(135deg, #006064, #00838f);
    height: 250px;
}

.gradient-bg-17 {
    background: linear-gradient(135deg, #0d47a1, #1565c0);
    height: 250px;
}

.gradient-bg-18 {
    background: linear-gradient(135deg, #bf360c, #d84315);
    height: 250px;
}

.gradient-bg-19 {
    background: linear-gradient(135deg, #4a148c, #6a1b9a);
    height: 250px;
}

.gradient-bg-20 {
    background: linear-gradient(135deg, #ff5722, #ff9800);
    width: 200px;
    height: 200px;
    border-radius: 10px;
}

/* 区块标题样式 */
.section-title {
    font-size: 28px;
    margin-bottom: 25px;
    position: relative;
    padding-left: 15px;
    color: #fff;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    height: 25px;
    width: 5px;
    background-color: #ff5722;
    border-radius: 3px;
}

/* 电影卡片样式 */
.movie-grid, .drama-grid, .series-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

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

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

.movie-poster, .drama-poster, .series-poster {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.movie-info, .drama-info, .series-info {
    padding: 15px;
}

.movie-info h3, .drama-info h3, .series-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #fff;
}

.movie-meta, .drama-meta, .series-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    color: #aaa;
}

.movie-info p, .drama-info p, .series-info p {
    font-size: 14px;
    color: #ccc;
}

/* 内容区块样式 */
.hot-recommend, .new-releases, .short-drama, .tv-series, .article-section, .friend-links {
    padding: 40px 0;
}

/* APP下载模块样式 */
.app-download {
    padding: 50px 0;
    background-color: #1a1a2e;
    margin: 40px 0;
}

.app-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app-info {
    max-width: 60%;
}

.app-info h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: #fff;
}

.app-info p {
    font-size: 18px;
    margin-bottom: 20px;
    color: #ccc;
}

.app-features {
    margin-bottom: 25px;
}

.app-features li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.feature-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: #ff5722;
    border-radius: 50%;
    margin-right: 10px;
}

.download-buttons {
    display: flex;
    gap: 15px;
}

.btn-android, .btn-ios {
    display: flex;
    align-items: center;
    padding: 12px 25px;
}

.android-icon, .ios-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-right: 10px;
    background-color: #fff;
    border-radius: 50%;
}

/* 文章样式 */
.main-title {
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
    color: #fff;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.article-item {
    background-color: #1a1a2e;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

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

/* 友情链接样式 */
.friend-links ul {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.friend-links li {
    margin-right: 15px;
    margin-bottom: 10px;
}

.friend-links a {
    color: #aaa;
    font-size: 14px;
}

.friend-links a:hover {
    color: #ff5722;
    text-decoration: underline;
}

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

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

.footer-about, .footer-links, .footer-contact {
    color: #ccc;
}

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

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

.footer-links a:hover {
    color: #ff5722;
}

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

.social-icon {
    display: inline-block;
    width: 36px;
    height: 36px;
    background-color: #333;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: #ff5722;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #777;
    font-size: 14px;
}

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

.footer-bottom a {
    color: #999;
}

.footer-bottom a:hover {
    color: #ff5722;
}

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

@media (max-width: 768px) {
    .movie-grid, .drama-grid, .series-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .app-content {
        flex-direction: column;
    }
    
    .app-info {
        max-width: 100%;
        margin-bottom: 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .movie-grid, .drama-grid, .series-grid {
        grid-template-columns: 1fr;
    }
    
    .download-buttons {
        flex-direction: column;
    }
}
