/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors - Dark Tech Theme */
    --color-bg: oklch(0.12 0.02 250);
    --color-surface: oklch(0.18 0.02 250);
    --color-primary: #fff600;
    --color-accent: oklch(0.7 0.2 200);
    --color-text: oklch(0.95 0.01 250);
    --color-text-muted: oklch(0.6 0.03 250);
    --color-border: oklch(0.25 0.02 250);

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-24: 6rem;

    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    --text-7xl: 4.5rem;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: oklch(0.12 0.02 250 / 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) 0;
}

.logo-img {
    height: 40px;
    width: auto;
}

.nav {
    display: flex;
    gap: var(--space-8);
}

.nav-link {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--color-primary);
}

/* Hero Section */
.hero {
    position: relative;
    padding: var(--space-24) 0;
    overflow: hidden;
}

.grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, oklch(0.2 0 0 / 0.1) 1px, transparent 1px),
        linear-gradient(to bottom, oklch(0.2 0 0 / 0.1) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.2;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: oklch(0.65 0.25 250 / 0.1);
    border: 1px solid var(--color-primary);
    border-radius: 9999px;
    font-size: var(--text-sm);
    margin-bottom: var(--space-8);
    backdrop-filter: blur(8px);
}

.pulse {
    position: relative;
    width: 8px;
    height: 8px;
}

.pulse::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--color-primary);
    border-radius: 50%;
    animation: pulse 2s cubic-bezier(0, 0, 0.2, 1) infinite;
    opacity: 0.75;
}

.pulse-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: var(--color-primary);
    border-radius: 50%;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.75;
    }

    50% {
        transform: scale(2);
        opacity: 0;
    }
}

.hero-title {
    font-size: var(--text-5xl);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-6);
    text-wrap: balance;
}

.gradient-text {
    background: linear-gradient(to right, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    max-width: 48rem;
    margin: 0 auto var(--space-12);
    line-height: 1.8;
    text-wrap: pretty;
}

.hero-buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: var(--space-3) var(--space-8);
    font-size: var(--text-base);
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background-color: oklch(0.7 0.25 250);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px oklch(0.65 0.25 250 / 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-outline:hover {
    background-color: var(--color-surface);
    border-color: var(--color-primary);
}

.btn-large {
    padding: var(--space-4) var(--space-12);
    font-size: var(--text-lg);
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
    max-width: 960px;
    margin: var(--space-24) auto 0;
}

.stat-card {
    background: oklch(0.18 0.02 250 / 0.5);
    border: 1px solid oklch(0.25 0.02 250 / 0.5);
    border-radius: 12px;
    padding: var(--space-6);
    text-align: center;
    backdrop-filter: blur(8px);
    box-shadow: 0 0 5px rgba(99, 102, 241, 0.15),
        0 0 5px rgba(99, 102, 241, 0.08);
    transition: box-shadow 0.3s ease;
}

.stat-card:hover {
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.25),
        0 0 60px rgba(99, 102, 241, 0.15);
}

.stat-value {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--color-text);
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-top: var(--space-1);
}

/* Features Section */
.features {
    padding: var(--space-24) 0;
}

.section-header {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto var(--space-16);
}

.section-title {
    font-size: var(--text-4xl);
    font-weight: 700;
    margin-bottom: var(--space-4);
    text-wrap: pretty;
}

.section-desc {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    max-width: 960px;
    margin: 0 auto;
}

.feature-card {
    background: oklch(0.18 0.02 250 / 0.5);
    border: 1px solid oklch(0.25 0.02 250 / 0.5);
    border-radius: 12px;
    padding: var(--space-6);
    backdrop-filter: blur(8px);
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: oklch(0.65 0.25 250 / 0.5);
    background: oklch(0.18 0.02 250 / 0.8);
    transform: translateY(-4px);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: oklch(0.65 0.25 250 / 0.1);
    border-radius: 8px;
    margin-bottom: var(--space-4);
    color: var(--color-primary);
}

.feature-title {
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.feature-desc {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* Games Section */
.games {
    padding: var(--space-24) 0;
}

.games-wrapper {
    background: oklch(0.18 0.02 250 / 0.3);
    border: 1px solid oklch(0.25 0.02 250 / 0.5);
    border-radius: 24px;
    padding: var(--space-8);
    backdrop-filter: blur(8px);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
    max-width: 800px;
    margin: 0 auto;
}

.game-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    background: oklch(0.2 0.01 250 / 0.3);
    border: 1px solid oklch(0.25 0.02 250 / 0.3);
    border-radius: 12px;
    transition: all 0.3s;
}

.game-card:hover {
    background: oklch(0.22 0.02 250 / 0.5);
    border-color: var(--color-primary);
    transform: scale(1.05);
}

.game-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
}

.game-name {
    font-size: var(--text-sm);
    font-weight: 500;
    text-align: center;
}

/* CTA Section */
/* 修改CTA样式支持左右布局 */
.cta {
    padding: var(--space-24) 0;
}

.cta-wrapper {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, oklch(0.65 0.25 250 / 0.1), oklch(0.7 0.2 200 / 0.1));
    border: 1px solid oklch(0.65 0.25 250 / 0.2);
    border-radius: 24px;
    padding: var(--space-12) var(--space-8);
    backdrop-filter: blur(8px);
}

/* 添加左右布局容器 */
.cta-layout {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-8);
}

.cta-content {
    flex: 1;
    text-align: center;
}

.cta-title {
    font-size: var(--text-3xl);
    font-weight: 700;
    margin-bottom: var(--space-4);
    text-wrap: pretty;
}

.cta-desc {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    margin-bottom: var(--space-8);
    line-height: 1.6;
}

.cta-platforms {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-top: var(--space-4);
}

/* 添加产品图容器样式 */
.cta-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
}

.product-mockup {
    width: 30%;
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 20px 50px oklch(0.65 0.25 250 / 0.3));
    animation: float 6s ease-in-out infinite;
}

/* 添加浮动动画 */
@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(-2deg);
    }

    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

/* Footer */
.footer {
    border-top: 1px solid oklch(0.25 0.02 250 / 0.5);
    padding: var(--space-12) 0 var(--space-6);
    margin-top: var(--space-24);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
    margin-bottom: var(--space-12);
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.footer-heading {
    font-size: var(--text-base);
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: var(--text-sm);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-links li {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    padding-top: var(--space-8);
    border-top: 1px solid oklch(0.25 0.02 250 / 0.3);
    text-align: center;
}

.footer-company p {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.footer-legal {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* 添加备案项容器样式，确保图标和文字对齐 */
.beian-item {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
}

.beian-icon {
    vertical-align: middle;
}

.footer-legal-link {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: var(--text-xs);
    transition: color 0.2s;
    /* 确保链接文字垂直居中 */
    line-height: 1;
}

.footer-legal-link:hover {
    color: var(--color-primary);
}

.footer-separator {
    color: var(--color-text-muted);
    font-size: var(--text-xs);
}

/* 添加下载页面专属样式 */

/* Download Hero */
.download-hero {
    position: relative;
    padding: var(--space-16) 0 var(--space-12);
    overflow: hidden;
}

.download-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

/* Download Platforms */
.download-platforms {
    padding: var(--space-12) 0;
}

.platforms-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
    max-width: 1200px;
    margin: 0 auto;
}

.platform-card {
    position: relative;
    background: oklch(0.18 0.02 250 / 0.5);
    border: 1px solid oklch(0.25 0.02 250 / 0.5);
    border-radius: 16px;
    padding: var(--space-8);
    text-align: center;
    backdrop-filter: blur(8px);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.platform-card:hover {
    border-color: oklch(0.65 0.25 250 / 0.5);
    background: oklch(0.18 0.02 250 / 0.8);
    transform: translateY(-4px);
}

.platform-featured {
    border-color: var(--color-primary);
    background: oklch(0.65 0.25 250 / 0.05);
}

.featured-badge {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    background: var(--color-primary);
    color: white;
    padding: var(--space-1) var(--space-3);
    border-radius: 9999px;
    font-size: var(--text-xs);
    font-weight: 600;
}

.platform-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    background: oklch(0.65 0.25 250 / 0.1);
    border-radius: 16px;
    margin-bottom: var(--space-4);
    color: var(--color-primary);
}

.platform-name {
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--space-2);
}

.platform-desc {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-4);
}

.platform-info {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    width: 100%;
    justify-content: center;
    max-width: 280px;
}

/* Installation Guide */
.installation-guide {
    padding: var(--space-24) 0;
}

.guide-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
    max-width: 960px;
    margin: 0 auto;
}

.step-card {
    background: oklch(0.18 0.02 250 / 0.5);
    border: 1px solid oklch(0.25 0.02 250 / 0.5);
    border-radius: 12px;
    padding: var(--space-6);
    backdrop-filter: blur(8px);
    position: relative;
}

.step-number {
    display: inline-block;
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--color-primary);
    opacity: 0.3;
    margin-bottom: var(--space-2);
}

.step-title {
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.step-desc {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* FAQ Section */
.faq-section {
    padding: var(--space-24) 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.faq-item {
    background: oklch(0.18 0.02 250 / 0.5);
    border: 1px solid oklch(0.25 0.02 250 / 0.5);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(8px);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-6);
    cursor: pointer;
    transition: background 0.2s;
}

.faq-question:hover {
    background: oklch(0.2 0.02 250 / 0.5);
}

.faq-question h3 {
    font-size: var(--text-lg);
    font-weight: 600;
    margin: 0;
}

.faq-icon {
    font-size: var(--text-2xl);
    color: var(--color-primary);
    font-weight: 300;
}

.faq-answer {
    padding: 0 var(--space-6) var(--space-6);
    display: none;
}

.faq-answer p {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: 1.8;
    margin: 0;
}

/* Responsive Design */

/* Tablet (768px+) */
@media (min-width: 768px) {
    .hero-title {
        font-size: var(--text-6xl);
    }

    .stats {
        grid-template-columns: repeat(4, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .games-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }

    .platforms-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .guide-steps {
        grid-template-columns: repeat(3, 1fr);
    }

    /* 平板以上使用左右布局 */
    .cta-layout {
        flex-direction: row;
        align-items: center;
        gap: var(--space-12);
    }

    .cta-content {
        text-align: left;
    }

    .cta-title {
        font-size: var(--text-4xl);
    }

    .product-mockup {
        max-width: 400px;
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    .hero-title {
        font-size: var(--text-7xl);
    }

    .hero-desc {
        font-size: var(--text-xl);
    }

    .section-title {
        font-size: var(--text-5xl);
    }

    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .games-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .game-icon {
        width: 80px;
        height: 80px;
    }

    .cta-title {
        font-size: var(--text-5xl);
    }

    .cta-desc {
        font-size: var(--text-xl);
    }

    .product-mockup {
        max-width: 450px;
    }
}

/* Mobile Navigation Toggle (Optional Enhancement) */
@media (max-width: 767px) {
    .nav {
        display: none;
    }

    .hero {
        padding: var(--space-16) 0;
    }

    .hero-title {
        font-size: var(--text-4xl);
    }

    .section-title {
        font-size: var(--text-3xl);
    }

    .cta-title {
        font-size: var(--text-3xl);
    }
}