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

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

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

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

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

/* 主题颜色 */
:root {
    --primary-color: #ff5e52;
    --secondary-color: #4a89dc;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --text-color: #333;
    --text-light: #7f8c8d;
    --border-color: #ddd;
    --bg-color: #f5f5f5;
    --card-bg: #fff;
    --header-bg: rgba(255, 255, 255, 0.95);
    --footer-bg: #2c3e50;
    --footer-text: #ecf0f1;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
}

.primary-btn:hover {
    background-color: #e54d41;
}

.secondary-btn {
    background-color: var(--secondary-color);
    color: white;
}

.secondary-btn:hover {
    background-color: #3b7dd8;
}

.outline-btn {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.outline-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 图标样式 */
.icon-play:before {
    content: "▶";
    font-size: 0.8em;
}

.icon-search:before {
    content: "🔍";
}

.icon-check:before {
    content: "✓";
    color: var(--success-color);
    margin-right: 5px;
}

.icon-android:before {
    content: "🤖";
    margin-right: 5px;
}

.icon-apple:before {
    content: "🍎";
    margin-right: 5px;
}

/* 渐变背景替代图片 */
[class*="gradient-"] {
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.gradient-1 {
    background: linear-gradient(135deg, #3498db, #9b59b6);
}

.gradient-2 {
    background: linear-gradient(135deg, #f1c40f, #e67e22);
}

.gradient-3 {
    background: linear-gradient(135deg, #2ecc71, #3498db);
}

.gradient-4 {
    background: linear-gradient(135deg, #9b59b6, #3498db);
}

.gradient-5 {
    background: linear-gradient(135deg, #e74c3c, #f39c12);
}

.gradient-6 {
    background: linear-gradient(135deg, #1abc9c, #3498db);
}

.gradient-7 {
    background: linear-gradient(135deg, #f39c12, #d35400);
}

.gradient-8 {
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
}

.gradient-9 {
    background: linear-gradient(135deg, #2c3e50, #34495e);
}

.gradient-10 {
    background: linear-gradient(135deg, #16a085, #27ae60);
}

.gradient-11 {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
}

.gradient-12 {
    background: linear-gradient(135deg, #2980b9, #3498db);
}

.gradient-13 {
    background: linear-gradient(135deg, #d35400, #e67e22);
}

.gradient-14 {
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
}

.gradient-15 {
    background: linear-gradient(135deg, #2c3e50, #7f8c8d);
}

.gradient-16 {
    background: linear-gradient(135deg, #16a085, #1abc9c);
}

.gradient-17 {
    background: linear-gradient(135deg, #c0392b, #d35400);
}

.gradient-18 {
    background: linear-gradient(135deg, #2980b9, #3498db);
}

.gradient-19 {
    background: linear-gradient(135deg, #f1c40f, #f39c12);
}

.gradient-20 {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.gradient-21 {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.gradient-22 {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.gradient-23 {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.gradient-24 {
    background: linear-gradient(135deg, #34495e, #2c3e50);
}

.gradient-25 {
    background: linear-gradient(135deg, #1abc9c, #16a085);
}

.gradient-26 {
    background: linear-gradient(135deg, #f39c12, #f1c40f);
}

.gradient-27 {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.gradient-28 {
    background: linear-gradient(135deg, #e67e22, #d35400);
}

.gradient-29 {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.gradient-30 {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.gradient-31 {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.gradient-32 {
    background: linear-gradient(135deg, #2c3e50, #34495e);
}

.gradient-33 {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.gradient-34 {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.gradient-35 {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.gradient-36 {
    background: linear-gradient(135deg, #1abc9c, #16a085);
}

.gradient-37 {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.gradient-38 {
    background: linear-gradient(135deg, #2c3e50, #34495e);
}

.gradient-39 {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

/* 头部样式 */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--header-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.logo i {
    margin-right: 5px;
}

.main-nav ul {
    display: flex;
}

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

.main-nav a {
    font-weight: 500;
    color: var(--text-color);
    position: relative;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

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

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

.search-box input {
    width: 200px;
    padding: 8px 15px;
    border: 1px solid var(--border-color);
    border-radius: 20px 0 0 20px;
    outline: none;
}

.search-btn {
    padding: 8px 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 20px 20px 0;
    cursor: pointer;
}

/* 主横幅样式 */
.banner {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    margin-top: 70px;
    overflow: hidden;
}

.banner-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 600px;
}

.banner h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

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

.banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0.8;
    z-index: 1;
}

/* 通用部分样式 */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

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

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

section {
    padding: 60px 0;
}

/* 热门推荐样式 */
.featured-section {
    background-color: var(--bg-color);
}

.featured-slider {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 10px 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.featured-slider::-webkit-scrollbar {
    display: none;
}

.movie-card {
    flex: 0 0 auto;
    width: 220px;
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
}

.movie-poster, .series-poster, .variety-poster, .animation-poster, .documentary-poster {
    height: 300px;
}

.movie-info, .series-info, .variety-info, .animation-info, .documentary-info {
    padding: 15px;
}

.movie-info h3, .series-info h3, .variety-info h3, .animation-info h3, .documentary-info h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-meta, .series-meta, .variety-meta, .animation-meta, .documentary-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* 电影区域样式 */
.movies-section {
    background-color: white;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-tabs span {
    padding: 8px 15px;
    margin: 0 5px 10px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tabs span.active {
    background-color: var(--primary-color);
    color: white;
}

.filter-tabs span:not(.active):hover {
    background-color: #f0f0f0;
}

.movies-grid, .series-grid, .variety-grid, .animation-grid, .documentary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.more-btn {
    text-align: center;
    margin-top: 40px;
}

/* 电视剧区域样式 */
.tv-series-section {
    background-color: var(--bg-color);
}

/* 综艺区域样式 */
.variety-section {
    background-color: white;
}

/* 动漫区域样式 */
.animation-section {
    background-color: var(--bg-color);
}

/* 纪录片区域样式 */
.documentary-section {
    background-color: white;
}

/* APP下载区域样式 */
.app-section {
    background-color: var(--dark-color);
    color: white;
}

.app-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.app-info {
    flex: 1;
}

.app-info h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

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

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

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

.download-btn {
    display: flex;
    align-items: center;
    background-color: white;
    color: var(--dark-color);
    padding: 12px 20px;
}

.download-btn:hover {
    background-color: #f5f5f5;
}

.qrcode-container {
    text-align: center;
}

.qrcode {
    width: 120px;
    height: 120px;
    margin: 0 auto 10px;
    border: 5px solid white;
}

.app-preview {
    flex: 1;
    height: 400px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* 文章区域样式 */
.articles-section {
    background-color: var(--bg-color);
}

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

.article-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.article-image {
    height: 200px;
}

.article-content {
    padding: 20px;
}

.article-content h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.article-excerpt {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-light);
}

/* 关于我们区域样式 */
.about-section {
    background-color: white;
}

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

.about-text {
    flex: 2;
}

.about-text p {
    margin-bottom: 15px;
}

.about-stats {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background-color: var(--bg-color);
    border-radius: 8px;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-light);
}

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

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

.footer-logo a {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.footer-logo p {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-nav {
    flex: 2;
    display: flex;
    justify-content: space-around;
}

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

.footer-nav-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

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

.footer-nav-column ul li a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-nav-column ul li a:hover {
    color: white;
}

.footer-qrcode {
    width: 100px;
    height: 100px;
    margin-bottom: 10px;
    border: 3px solid white;
}

.footer-middle {
    margin-bottom: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-middle h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.footer-middle ul {
    display: flex;
    flex-wrap: wrap;
}

.footer-middle ul li {
    margin-right: 15px;
    margin-bottom: 10px;
}

.footer-middle ul li a, .footer-middle ul a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-middle ul li a:hover, .footer-middle ul a:hover {
    color: white;
}

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

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

.footer-bottom a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a:hover {
    color: white;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .app-content {
        flex-direction: column;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .footer-top {
        flex-direction: column;
    }
    
    .footer-logo {
        margin-bottom: 30px;
    }
    
    .footer-nav {
        flex-wrap: wrap;
    }
    
    .footer-nav-column {
        flex-basis: 50%;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .banner {
        height: 400px;
    }
    
    .banner h1 {
        font-size: 2rem;
    }
    
    .movies-grid, .series-grid, .variety-grid, .animation-grid, .documentary-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-nav-column {
        flex-basis: 100%;
    }
}

@media (max-width: 480px) {
    .search-box input {
        width: 150px;
    }
    
    .banner {
        height: 350px;
    }
    
    .banner h1 {
        font-size: 1.8rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .movie-card, .series-card, .variety-card, .animation-card, .documentary-card {
        width: 100%;
    }
    
    .download-buttons {
        flex-direction: column;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
}
