/* 全局样式 */
:root {
    --primary-color: #4A90E2;
    --secondary-color: #F5A623;
    --accent-color: #9B51E0;
    --text-color: #333333;
    --light-text: #666666;
    --background-color: #ffffff;
    --card-background: #f9f9f9;
    --border-color: #e0e0e0;
    --gradient-primary: linear-gradient(135deg, #4A90E2 0%, #9B51E0 100%);
    --gradient-secondary: linear-gradient(135deg, #F5A623 0%, #FF8A00 100%);
    --box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(245, 166, 35, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(74, 144, 226, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 50% 50%, rgba(155, 81, 224, 0.03) 0%, transparent 30%);
}

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

/* 按钮样式 */
.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: var(--box-shadow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(74, 144, 226, 0.3);
}

.btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
}

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

.btn-large {
    padding: 16px 40px;
    font-size: 18px;
}

/* 导航栏 */
.navbar {
    background-color: transparent;
    backdrop-filter: blur(10px);
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

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

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.logo h1 span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

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

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

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

.mobile-menu {
    display: none;
}

/* 英雄区域 */
.hero-video-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -1;
}

/* 视频加载失败时的后备CSS动画背景 */
.hero-background-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        /* 主渐变背景 */
        linear-gradient(135deg, rgba(23, 25, 35, 0.85) 0%, rgba(10, 10, 15, 0.9) 100%),
        /* 动态网格效果 */
        repeating-linear-gradient(90deg, rgba(155, 81, 224, 0.1) 0px, transparent 1px, transparent 40px),
        repeating-linear-gradient(180deg, rgba(155, 81, 224, 0.1) 0px, transparent 1px, transparent 40px),
        /* 霓虹光线效果 */
        radial-gradient(circle at 30% 40%, rgba(74, 144, 226, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(155, 81, 224, 0.3) 0%, transparent 50%);
    animation: 
        bgGradientShift 15s ease infinite,
        gridPulse 10s linear infinite,
        lightPulse 8s ease-in-out infinite;
    z-index: -2;
}

/* 渐变背景颜色变化动画 */
@keyframes bgGradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* 网格脉冲动画 */
@keyframes gridPulse {
    0%, 100% {
        opacity: 0.1;
    }
    50% {
        opacity: 0.2;
    }
}

/* 光线脉冲动画 */
@keyframes lightPulse {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 0.5;
    }
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7));
}

.hero-video-content {
    text-align: center;
    color: white;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero-video-content h1 {
    font-size: 55px;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
}

.hero-video-content p {
    font-size: 24px;
    margin-bottom: 40px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    line-height: 1.6;
}

.hero-video-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 滚动时导航栏背景变化 */
.navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

/* 章节标题 */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-header p {
    font-size: 18px;
    color: var(--light-text);
    max-width: 700px;
    margin: 0 auto;
}

/* 特点区域 */
.features {
    padding: 120px 0;
    background-color: #f9f9f9;
}

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

.feature-card {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: inline-block;
}

.feature-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--light-text);
    font-size: 16px;
}

/* 使用步骤 */
.how-to-use {
    padding: 120px 0;
    background-color: #f8f9fa;
}

/* 实机演示&新手教学模块样式 */
.demo-guide-container {
    margin-top: 60px;
    padding: 30px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
}

/* 新手教学页面特定样式 */
.guide-content-section {
    padding: 120px 0;
    background-color: #f9f9f9;
}

.guide-steps {
    max-width: 900px;
    margin: 0 auto;
}

/* 指南图片样式 */
.guide-image {
    margin: 30px 0;
    text-align: center;
}

.guide-image img {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.guide-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.image-caption {
    margin-top: 15px;
    font-size: 14px;
    color: var(--light-text);
    font-style: italic;
}

.guide-step {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 40px;
    margin-bottom: 40px;
}

.guide-step-content {
    line-height: 1.8;
}

.guide-step-content p {
    margin-bottom: 20px;
    font-size: 16px;
}

.game-url-example {
    background-color: #f1f1f1;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    overflow-x: auto;
}

.game-url-example code {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: var(--accent-color);
}

.game-id-highlight {
    background-color: rgba(245, 166, 35, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    color: var(--secondary-color);
}

.guide-note {
    background-color: rgba(74, 144, 226, 0.1);
    padding: 15px;
    border-radius: 8px;
    margin-top: 30px;
    border-left: 4px solid var(--primary-color);
}

.highlight-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.guide-step-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 30px 0 15px;
    color: var(--text-color);
}

.guide-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-color), transparent);
    margin: 60px auto;
    width: 60%;
}

.guide-card {
    max-width: 900px;
    margin: 0 auto;
}

.guide-header {
    margin-bottom: 30px;
}

.guide-header h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.guide-header p {
    color: var(--light-text);
    font-size: 16px;
}

.guide-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.video-thumbnail-link {
    display: block;
    text-decoration: none;
    width: 100%;
    max-width: 720px;
}

.video-thumbnail {
    width: 100%;
    max-width: 720px;
    height: 405px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.video-thumbnail:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    color: white;
}

.play-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.8;
    transition: var(--transition);
}

.video-thumbnail:hover .play-icon {
    transform: scale(1.1);
    opacity: 1;
}

.video-info {
    font-size: 18px;
    font-weight: 500;
}

.guide-description {
    max-width: 600px;
    text-align: left;
}

.guide-description ul {
    list-style: none;
}

.guide-description li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 16px;
    color: var(--text-color);
}

.guide-description li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 20px;
}

.guide-button {
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.guide-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(74, 144, 226, 0.3);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .demo-guide-container {
        padding: 20px 15px;
    }
    
    .guide-header h2 {
        font-size: 24px;
    }
    
    .video-thumbnail {
        height: 240px;
    }
    
    .play-icon {
        font-size: 60px;
    }
    
    .video-info {
        font-size: 16px;
    }
    
    .guide-description li {
        font-size: 15px;
        padding-left: 25px;
    }
    
    .guide-button {
        padding: 12px 30px;
        font-size: 16px;
    }
}

.steps-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.step-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 40px;
    flex: 1;
    min-width: 280px;
    position: relative;
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.step-number {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.3);
}

.step-content h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    margin-top: 10px;
}

.step-content p {
    color: var(--light-text);
    font-size: 16px;
}

.step-arrow {
    font-size: 36px;
    color: var(--primary-color);
    display: none;
}

/* 套餐区域 */
.pricing {
    padding: 120px 0;
    background-color: #f9f9f9;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* 在大屏幕上确保4列布局 */
@media (min-width: 1200px) {
    .pricing-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 在中小屏幕上适当调整 */
@media (max-width: 1199px) and (min-width: 768px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 在小屏幕上单列显示 */
@media (max-width: 767px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

.pricing-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px 20px;
    transition: var(--transition);
    position: relative;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.pricing-card.premium {
    transform: scale(1.02);
}

.pricing-card.premium:hover {
    transform: translateY(-10px) scale(1.02);
}

.pricing-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--gradient-secondary);
    color: white;
    padding: 10px 30px;
    border-radius: 0 var(--border-radius) 0 var(--border-radius);
    font-weight: 600;
    font-size: 14px;
}

.pricing-header {
    text-align: center;
    margin-bottom: 30px;
}

.pricing-header h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
}

.pricing-price {
    font-size: 40px;
    font-weight: 700;
    color: var(--primary-color);
}

.pricing-price small {
    font-size: 18px;
    font-weight: 400;
    color: var(--light-text);
}

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

.pricing-features ul {
    list-style: none;
}

.pricing-features li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

.pricing-features li::before {
    content: '✓';
    color: var(--primary-color);
    margin-right: 10px;
    font-weight: bold;
}

.pricing-card .btn-primary {
    width: 100%;
    text-align: center;
    margin-top: auto;
}

/* 常见问题 */
.faq {
    padding: 120px 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.faq-question {
    padding: 20px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-question h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.faq-toggle {
    font-size: 24px;
    font-weight: 300;
    transition: var(--transition);
}

.faq-answer {
    padding: 0 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 0 20px;
}

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

/* 下载区域 */
.download {
    padding: 120px 0;
    background: var(--gradient-primary);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.download::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 30%);
}

.download .container {
    position: relative;
    z-index: 1;
}

.download-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.download-content p {
    font-size: 18px;
    margin-bottom: 30px;
}

.download-note {
    margin-top: 20px;
    font-size: 14px;
    opacity: 0.8;
}

.download .btn-primary {
    background: white;
    color: var(--primary-color);
    font-weight: 600;
}

.download .btn-primary:hover {
    background: var(--card-background);
}

/* 页脚 */
.footer {
    background-color: #1a1a1a;
    color: white;
    padding: 80px 0 40px;
}

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

.footer-logo h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-logo h2 span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-logo p {
    color: #999;
    font-size: 14px;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

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

.footer-links ul,
.footer-contact ul {
    list-style: none;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact li {
    color: #999;
    font-size: 14px;
}

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

/* 响应式设计 */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-links,
    .cta-buttons {
        display: none;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .menu-toggle {
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        color: var(--text-color);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links h4::after,
    .footer-contact h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .hero-content h2 {
        font-size: 36px;
    }
    
    .section-header h2 {
        font-size: 30px;
    }
    
    .steps-container {
        flex-direction: column;
    }
    
    .step-arrow {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 28px;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .game-orb {
        width: 300px;
        height: 300px;
    }
    
    .feature-card,
    .step-card,
    .pricing-card {
        padding: 30px 20px;
    }
}