/* 
 * 影视传媒网站样式表
 * 版本: 1.0
 * 移动端优先设计
 */

/* CSS变量定义 */
:root {
    --primary-color: #e94560;
    --secondary-color: #0f3460;
    --dark-bg: #1a1a2e;
    --darker-bg: #0f0f23;
    --text-light: #ffffff;
    --text-muted: #a0a0b0;
    --accent-gold: #ffd700;
    --gradient-primary: linear-gradient(135deg, #e94560 0%, #0f3460 100%);
    --gradient-dark: linear-gradient(180deg, #1a1a2e 0%, #0f0f23 100%);
    --shadow-soft: 0 4px 20px rgba(233, 69, 96, 0.15);
    --shadow-hard: 0 8px 32px rgba(0, 0, 0, 0.4);
    --border-radius: 12px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 基础重置 */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
    background: var(--darker-bg);
    color: var(--text-light);
    line-height: 1.8;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 图片响应式 */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 链接样式 */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--accent-gold);
}

/* 容器 */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* 头部导航 - 非sticky */
.site-header {
    background: var(--dark-bg);
    padding: 1rem 0;
    border-bottom: 2px solid var(--primary-color);
}

.header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-wrap img {
    height: 50px;
    width: auto;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 2px;
}

/* 主导航 */
.main-nav {
    width: 100%;
}

.nav-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    list-style: none;
}

.nav-list li a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
    border-radius: 6px;
    background: rgba(233, 69, 96, 0.1);
    border: 1px solid transparent;
}

.nav-list li a:hover,
.nav-list li a.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-light);
}

/* CTA按钮 */
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    color: var(--text-light);
    font-weight: 600;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hard);
    color: var(--text-light);
}

/* Hero区域 */
.hero-section {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 15, 35, 0.7) 0%, rgba(26, 26, 46, 0.9) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* 面包屑导航 */
.breadcrumb {
    padding: 1rem 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-muted);
}

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

.breadcrumb span {
    margin: 0 0.5rem;
}

/* 内容区块 */
.content-section {
    padding: 3rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-desc {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* 卡片网格 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* 电影卡片 */
.movie-card {
    background: var(--dark-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    border: 1px solid rgba(233, 69, 96, 0.2);
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hard);
    border-color: var(--primary-color);
}

.movie-card-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.movie-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

.movie-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary-color);
    color: var(--text-light);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.movie-card-rating {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--accent-gold);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
}

.movie-card-body {
    padding: 1.25rem;
}

.movie-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.movie-card-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.movie-card-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 明星卡片 */
.star-card {
    background: var(--dark-bg);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(233, 69, 96, 0.2);
    transition: var(--transition-smooth);
}

.star-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-soft);
}

.star-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 3px solid var(--primary-color);
}

.star-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.star-title {
    font-size: 0.875rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.star-bio {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* 视频播放器 */
.video-player-wrap {
    position: relative;
    background: var(--dark-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 16/9;
}

.video-player-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 0 30px rgba(233, 69, 96, 0.5);
}

.play-button::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 25px solid var(--text-light);
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    margin-left: 5px;
}

.play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--accent-gold);
}

/* FAQ区域 */
.faq-section {
    background: var(--dark-bg);
    padding: 3rem 0;
}

.faq-item {
    background: var(--darker-bg);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    border: 1px solid rgba(233, 69, 96, 0.2);
    overflow: hidden;
}

.faq-question {
    padding: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}

.faq-question:hover {
    background: rgba(233, 69, 96, 0.1);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition-smooth);
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.25rem 1.25rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* 评论区域 */
.review-card {
    background: var(--dark-bg);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid rgba(233, 69, 96, 0.2);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
}

.review-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.review-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.review-rating {
    color: var(--accent-gold);
    margin-bottom: 0.75rem;
}

.review-content {
    color: var(--text-muted);
    line-height: 1.7;
}

.review-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
}

/* 关于我们 */
.about-section {
    background: var(--dark-bg);
}

.about-content {
    display: grid;
    gap: 2rem;
}

.about-text {
    line-height: 2;
    color: var(--text-muted);
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-highlight {
    background: rgba(233, 69, 96, 0.1);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    margin: 1.5rem 0;
}

/* 支付方式 */
.payment-section {
    padding: 2rem 0;
    background: var(--darker-bg);
}

.payment-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    align-items: center;
}

.payment-item {
    background: var(--dark-bg);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid rgba(233, 69, 96, 0.2);
}

.payment-item img {
    height: 30px;
    width: auto;
}

.payment-item.highlight {
    border-color: var(--primary-color);
    background: rgba(233, 69, 96, 0.1);
}

/* 客户支持 */
.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.support-card {
    background: var(--dark-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid rgba(233, 69, 96, 0.2);
    transition: var(--transition-smooth);
}

.support-card:hover {
    border-color: var(--primary-color);
}

.support-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.support-card h3 {
    margin-bottom: 0.5rem;
}

.support-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* 页脚 */
.site-footer {
    background: var(--dark-bg);
    padding: 3rem 0 1.5rem;
    border-top: 2px solid var(--primary-color);
}

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

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-light);
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(233, 69, 96, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: var(--transition-smooth);
}

.footer-social a:hover {
    background: var(--primary-color);
}

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

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.footer-payment {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-payment img {
    height: 25px;
    width: auto;
    opacity: 0.7;
    transition: var(--transition-smooth);
}

.footer-payment img:hover {
    opacity: 1;
}

/* APP下载页面 */
.app-download-section {
    padding: 4rem 0;
    text-align: center;
}

.app-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.app-feature {
    background: var(--dark-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(233, 69, 96, 0.2);
}

.app-feature h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.download-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--dark-bg);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    color: var(--text-light);
    font-weight: 600;
    transition: var(--transition-smooth);
}

.download-btn:hover {
    background: var(--primary-color);
    color: var(--text-light);
}

.download-btn img {
    height: 30px;
    width: auto;
}

/* 响应式设计 */
@media (min-width: 768px) {
    .header-inner {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .about-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
    
    .nav-list li a {
        padding: 0.75rem 1.25rem;
        font-size: 1rem;
    }
    
    .content-section {
        padding: 4rem 0;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* 懒加载图片占位 */
.lazy-image {
    background: var(--dark-bg);
    min-height: 200px;
}

/* 无障碍优化 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 焦点样式 */
a:focus,
button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* 打印样式 */
@media print {
    .site-header,
    .site-footer,
    .cta-btn {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
