/* 
 * 影视网站主样式表
 * 版本: 1.0.0
 * 更新日期: 2026年2月
 */

/* ========== 基础重置与变量 ========== */
:root {
    --primary-color: #6b2d8b;
    --secondary-color: #d4af37;
    --accent-color: #ff6b35;
    --dark-bg: #0d0d0d;
    --card-bg: #1a1a2e;
    --text-primary: #ffffff;
    --text-secondary: #b8b8b8;
    --gradient-primary: linear-gradient(135deg, #6b2d8b 0%, #d4af37 100%);
    --gradient-dark: linear-gradient(180deg, #0d0d0d 0%, #1a1a2e 100%);
    --shadow-card: 0 8px 32px rgba(107, 45, 139, 0.3);
    --border-radius: 12px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.8;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ========== 排版样式 ========== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========== 布局容器 ========== */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* ========== 头部导航 ========== */
.header {
    background: rgba(13, 13, 13, 0.95);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.nav-menu li a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-primary);
    font-weight: 500;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.nav-menu li a:hover,
.nav-menu li a.active {
    background: var(--gradient-primary);
    color: var(--text-primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* ========== 英雄横幅 ========== */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    filter: blur(2px);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    max-width: 800px;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(13, 13, 13, 0.3) 0%, rgba(13, 13, 13, 0.9) 100%);
    z-index: 1;
}

/* ========== 按钮样式 ========== */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-primary);
    box-shadow: 0 4px 20px rgba(107, 45, 139, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(107, 45, 139, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--dark-bg);
}

/* ========== 卡片组件 ========== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(107, 45, 139, 0.4);
}

.card-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.card:hover .card-image img {
    transform: scale(1.08);
}

.card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-color);
    color: var(--text-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.card-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.card-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--secondary-color);
}

/* ========== 视频播放器 ========== */
.video-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.video-player video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #0d0d0d 100%);
    cursor: pointer;
}

.play-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: var(--transition-smooth);
}

.play-icon::after {
    content: "";
    width: 0;
    height: 0;
    border-left: 24px solid var(--text-primary);
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    margin-left: 6px;
}

.video-placeholder:hover .play-icon {
    transform: scale(1.1);
    box-shadow: 0 0 40px rgba(107, 45, 139, 0.6);
}

/* ========== 评论区域 ========== */
.review-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.review-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--secondary-color);
}

.review-info h4 {
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.review-info span {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.review-rating {
    margin-left: auto;
    color: var(--secondary-color);
    font-size: 1.25rem;
}

.review-content {
    color: var(--text-secondary);
    line-height: 1.8;
}

.review-date {
    margin-top: 1rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.7;
}

/* ========== FAQ手风琴 ========== */
.faq-item {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}

.faq-question:hover {
    background: rgba(107, 45, 139, 0.2);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--secondary-color);
    transition: var(--transition-smooth);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-inner {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-secondary);
}

/* ========== 面包屑导航 ========== */
.breadcrumb {
    padding: 1rem 0;
    font-size: 0.875rem;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 0.5rem;
}

.breadcrumb-list li::after {
    content: "/";
    margin-left: 0.5rem;
    color: var(--text-secondary);
}

.breadcrumb-list li:last-child::after {
    display: none;
}

.breadcrumb-list li a {
    color: var(--text-secondary);
}

.breadcrumb-list li:last-child a {
    color: var(--secondary-color);
}

/* ========== 页脚 ========== */
.footer {
    background: linear-gradient(180deg, #1a1a2e 0%, #0d0d0d 100%);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    width: 44px;
    height: 44px;
    background: var(--card-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: var(--transition-smooth);
}

.footer-social a:hover {
    background: var(--gradient-primary);
    transform: translateY(-4px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.age-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 1rem 0;
}

.payment-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-top: 1rem;
}

.payment-icons img {
    height: 32px;
    width: auto;
    filter: grayscale(100%) brightness(1.5);
    transition: var(--transition-smooth);
}

.payment-icons img:hover {
    filter: grayscale(0%);
}

/* ========== 关于我们 ========== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h2 {
    margin-bottom: 1.5rem;
}

.about-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

/* ========== 支付方式 ========== */
.payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.payment-item {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition-smooth);
}

.payment-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.payment-item h4 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

/* ========== 客服支持 ========== */
.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.support-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition-smooth);
}

.support-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.support-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

/* ========== APP下载页面 ========== */
.app-hero {
    text-align: center;
    padding: 4rem 0;
}

.app-preview {
    max-width: 300px;
    margin: 2rem auto;
    border-radius: 24px;
    box-shadow: var(--shadow-card);
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--card-bg);
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    transition: var(--transition-smooth);
}

.download-btn:hover {
    background: var(--gradient-primary);
    transform: translateY(-4px);
}

.download-btn span {
    text-align: left;
}

.download-btn .small {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.download-btn .large {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ========== 响应式设计 ========== */
@media screen and (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}

@media screen and (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(13, 13, 13, 0.98);
        flex-direction: column;
        padding: 1rem;
        transform: translateY(-150%);
        transition: var(--transition-smooth);
        z-index: 100;
    }
    
    .nav-menu.active {
        transform: translateY(0);
    }
    
    .nav-menu li a {
        padding: 1rem;
        text-align: center;
    }
    
    .hero {
        min-height: 60vh;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-desc {
        font-size: 1rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .btn {
        width: 100%;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .download-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

/* ========== 动画效果 ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* ========== 工具类 ========== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.py-2 { padding-top: 1rem; padding-bottom: 1rem; }
.py-4 { padding-top: 2rem; padding-bottom: 2rem; }

.hidden { display: none; }
.visible { display: block; }

.flex { display: flex; }
.flex-center { justify-content: center; align-items: center; }
.flex-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }

/* ========== 星级评分 ========== */
.stars {
    color: var(--secondary-color);
    letter-spacing: 2px;
}

.stars-empty {
    color: var(--text-secondary);
    opacity: 0.3;
}

/* ========== 许可证徽章 ========== */
.license-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--card-bg);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--secondary-color);
}

.license-badge img {
    width: 40px;
    height: 40px;
}

/* ========== 作者信息 ========== */
.author-box {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
}

.author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--secondary-color);
}

.author-info h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.author-info p {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

/* ========== 内容页面特定样式 ========== */
.content-header {
    padding: 3rem 0;
    text-align: center;
    background: linear-gradient(180deg, rgba(107, 45, 139, 0.2) 0%, transparent 100%);
}

.content-body {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.content-body p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.content-body h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.content-body h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.content-image {
    margin: 2rem 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.content-image img {
    width: 100%;
    height: auto;
}

.content-image figcaption {
    padding: 1rem;
    background: var(--card-bg);
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-align: center;
}

/* ========== 特色列表 ========== */
.feature-list {
    list-style: none;
    margin: 1.5rem 0;
}

.feature-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-secondary);
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: 700;
}

/* ========== 统计数字 ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    text-align: center;
    margin: 3rem 0;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}
