/* 全局样式 */
:root {
    --primary-color: #1a237e;
    --secondary-color: #303f9f;
    --accent-color: #7986cb;
    --light-accent: #c5cae9;
    --text-color: #333;
    --light-text: #fff;
    --gray-text: #666;
    --light-gray: #f5f5f5;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

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

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

ul {
    list-style: none;
}

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

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--light-text);
    border-radius: 4px;
    font-weight: 500;
    transition: var(--transition);
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* 头部样式 */
header {
    background-color: #fff;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    color: var(--primary-color);
}

.logo h1 {
    font-size: 24px;
    margin-left: 10px;
    font-weight: 700;
}

.site-logo {
    display: block;
}

.main-nav ul {
    display: flex;
}

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

.main-nav li a {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    padding: 10px 0;
    position: relative;
}

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

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

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

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

.search-box input {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px 0 0 4px;
    width: 200px;
    font-size: 14px;
    outline: none;
}

.search-btn {
    background-color: var(--primary-color);
    color: var(--light-text);
    border: none;
    padding: 10px 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: var(--transition);
}

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

/* 轮播图样式 */
.banner {
    margin-bottom: 40px;
    background-color: #000;
}

.banner-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    height: 500px;
}

.banner-slides {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.slide-info {
    position: absolute;
    bottom: 80px;
    left: 50px;
    max-width: 500px;
    color: var(--light-text);
    z-index: 2;
}

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

.slide-info p {
    font-size: 18px;
    margin-bottom: 20px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 2;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--light-text);
}

.banner-prev,
.banner-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.3);
    color: var(--light-text);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 2;
    transition: var(--transition);
}

.banner-prev {
    left: 20px;
}

.banner-next {
    right: 20px;
}

.banner-prev:hover,
.banner-next:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

/* 内容区域通用样式 */
section {
    margin-bottom: 50px;
    padding: 0 20px;
}

.section-header {
    max-width: 1200px;
    margin: 0 auto 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-accent);
}

.section-header h2 {
    font-size: 24px;
    color: var(--primary-color);
    position: relative;
    padding-left: 15px;
}

.section-header h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.more-link {
    color: var(--gray-text);
    font-size: 14px;
    transition: var(--transition);
}

.more-link:hover {
    color: var(--primary-color);
}

/* 电影卡片样式 */
.movie-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.movie-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.movie-poster {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2/3;
}

.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.movie-card:hover .movie-poster img {
    transform: scale(1.05);
}

.movie-rating {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 193, 7, 0.9);
    color: #000;
    font-weight: bold;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 12px;
}

.movie-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.movie-tag.new {
    background-color: rgba(76, 175, 80, 0.9);
    color: var(--light-text);
}

.movie-tag.hot {
    background-color: rgba(244, 67, 54, 0.9);
    color: var(--light-text);
}

.movie-info {
    padding: 12px;
}

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

.movie-info p {
    font-size: 14px;
    color: var(--gray-text);
}

/* 综艺卡片样式 */
.variety-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.variety-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.variety-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.variety-poster {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.variety-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.variety-card:hover .variety-poster img {
    transform: scale(1.05);
}

.variety-info {
    padding: 15px;
}

.variety-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.variety-info p {
    font-size: 14px;
    color: var(--gray-text);
    margin-bottom: 8px;
}

.variety-update {
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 500;
}

/* APP下载区域样式 */
.app-download {
    background-color: #f0f2ff;
    padding: 50px 20px;
    margin-bottom: 50px;
}

.app-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app-info {
    flex: 1;
    padding-right: 50px;
}

.app-info h2 {
    font-size: 30px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.app-slogan {
    font-size: 18px;
    color: var(--secondary-color);
    margin-bottom: 25px;
}

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

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

.feature-icon {
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
}

.feature-icon::before {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--light-text);
    font-size: 12px;
}

.app-buttons {
    display: flex;
    margin-bottom: 20px;
}

.app-btn {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-radius: 6px;
    margin-right: 15px;
    font-weight: 500;
    transition: var(--transition);
}

.app-btn.android {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.app-btn.ios {
    background-color: #000;
    color: var(--light-text);
}

.app-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.app-qrcode {
    text-align: center;
    margin-top: 20px;
}

.app-qrcode img {
    width: 120px;
    height: 120px;
    margin: 0 auto 10px;
    border: 5px solid #fff;
    border-radius: 10px;
}

.app-qrcode p {
    font-size: 14px;
    color: var(--gray-text);
}

.app-preview {
    flex: 1;
    max-width: 400px;
}

.app-preview img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* 文章区域样式 */
.articles-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-card {
    display: flex;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.article-image {
    flex: 0 0 300px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.article-content {
    flex: 1;
    padding: 20px;
}

.article-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.article-excerpt {
    font-size: 14px;
    color: var(--gray-text);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-meta {
    display: flex;
    font-size: 13px;
    color: #999;
}

.article-date {
    margin-right: 15px;
}

/* 会员专区样式 */
.vip-section {
    background-color: #f5f5f5;
    padding: 50px 20px;
    margin-bottom: 50px;
}

.vip-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.vip-info {
    flex: 1;
    padding-right: 50px;
}

.vip-info h3 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.vip-benefits {
    margin-bottom: 30px;
}

.vip-benefits li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.benefit-icon {
    width: 20px;
    height: 20px;
    background-color: #ffd700;
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
}

.benefit-icon::before {
    content: '★';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 12px;
}

.vip-plans {
    display: flex;
    gap: 20px;
}

.vip-plan {
    flex: 1;
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
    transition: var(--transition);
}

.vip-plan:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.vip-plan.recommended {
    border: 2px solid #ffd700;
    transform: scale(1.05);
}

.vip-plan.recommended:hover {
    transform: scale(1.05) translateY(-5px);
}

.plan-tag {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #ffd700;
    color: #000;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.vip-plan h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.plan-price {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.plan-save {
    font-size: 14px;
    color: #f44336;
    margin-bottom: 15px;
}

.plan-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--light-text);
    border-radius: 4px;
    font-weight: 500;
    transition: var(--transition);
}

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

.vip-image {
    flex: 1;
    max-width: 400px;
}

.vip-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

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

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

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.site-logo-footer {
    margin-bottom: 10px;
}

.footer-slogan {
    font-size: 16px;
    color: #ddd;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-nav-column h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

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

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

.footer-nav-column ul li a {
    color: #aaa;
    font-size: 14px;
    transition: var(--transition);
}

.footer-nav-column ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.social-link {
    display: inline-block;
    width: 36px;
    height: 36px;
    background-color: #333;
    border-radius: 50%;
    color: #fff;
    text-align: center;
    line-height: 36px;
    font-size: 0;
    position: relative;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.social-link::before {
    font-size: 16px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.social-link.weibo::before {
    content: '微';
}

.social-link.wechat::before {
    content: '微';
}

.social-link.douyin::before {
    content: '抖';
}

.social-link.bilibili::before {
    content: 'B';
}

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

.footer-middle {
    margin-bottom: 30px;
}

.footer-links h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

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

.footer-links ul {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-links ul li a,
.footer-links ul a {
    color: #aaa;
    font-size: 14px;
    transition: var(--transition);
}

.footer-links ul li a:hover,
.footer-links ul a:hover {
    color: #fff;
}

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

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

.copyright a {
    color: #aaa;
    margin: 0 10px;
    transition: var(--transition);
}

.copyright a:hover {
    color: #fff;
}

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

@media (max-width: 992px) {
    .header-container {
        flex-wrap: wrap;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    .main-nav {
        order: 3;
        width: 100%;
        margin-top: 15px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .banner-container {
        height: 400px;
    }
    
    .slide-info {
        bottom: 60px;
        left: 30px;
    }
    
    .slide-info h2 {
        font-size: 28px;
    }
    
    .movie-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .variety-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .app-container,
    .vip-container {
        flex-direction: column;
    }
    
    .app-info,
    .vip-info {
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .footer-top {
        flex-direction: column;
    }
    
    .footer-logo {
        margin-bottom: 30px;
    }
    
    .footer-nav {
        gap: 20px;
    }
    
    .article-card {
        flex-direction: column;
    }
    
    .article-image {
        flex: 0 0 200px;
    }
}

@media (max-width: 768px) {
    .movie-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .variety-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .banner-container {
        height: 300px;
    }
    
    .slide-info {
        bottom: 40px;
        left: 20px;
    }
    
    .slide-info h2 {
        font-size: 24px;
    }
    
    .slide-info p {
        font-size: 16px;
    }
    
    .vip-plans {
        flex-direction: column;
    }
    
    .vip-plan {
        margin-bottom: 20px;
    }
    
    .vip-plan.recommended {
        transform: none;
    }
    
    .vip-plan.recommended:hover {
        transform: translateY(-5px);
    }
    
    .footer-nav {
        flex-direction: column;
    }
    
    .footer-nav-column {
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .logo h1 {
        font-size: 20px;
    }
    
    .search-box input {
        width: 150px;
    }
    
    .banner-container {
        height: 250px;
    }
    
    .slide-info h2 {
        font-size: 20px;
    }
    
    .slide-info p {
        font-size: 14px;
    }
    
    .section-header h2 {
        font-size: 20px;
    }
    
    .movie-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .movie-info h3 {
        font-size: 14px;
    }
    
    .movie-info p {
        font-size: 12px;
    }
}

