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

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', Arial, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
}

/* 游戏背景 */
.game-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    overflow: hidden;
}

.bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.bg-image.active {
    opacity: 0.4;
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 20, 40, 0.7) 25%,
        rgba(0, 0, 0, 0.6) 50%,
        rgba(40, 0, 20, 0.7) 75%,
        rgba(0, 0, 0, 0.8) 100%
    );
    z-index: -2;
}

/* 动态粒子效果 */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #00d4ff;
    border-radius: 50%;
    animation: float-particle 6s infinite linear;
    opacity: 0.6;
}

@keyframes float-particle {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-10vh) translateX(50px);
        opacity: 0;
    }
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.95);
    box-shadow: 0 2px 20px rgba(0, 212, 255, 0.2);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
}

.logo-image {
    height: 32px;
    width: auto;
    max-width: 40px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.1);
}

.logo-text {
    background: linear-gradient(45deg, #00d4ff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-btn {
    padding: 12px 24px;
    background: linear-gradient(45deg, rgba(0, 212, 255, 0.2), rgba(0, 255, 136, 0.2));
    border: 2px solid rgba(0, 212, 255, 0.6);
    color: #ffffff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
    backdrop-filter: blur(10px);
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.nav-btn:hover {
    color: #ffffff;
    text-decoration: none;
    border-color: #00d4ff;
    background: linear-gradient(45deg, rgba(0, 212, 255, 0.4), rgba(0, 255, 136, 0.4));
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.5), 0 0 30px rgba(0, 212, 255, 0.3);
    transform: translateY(-3px);
}

.nav-btn:hover::before {
    left: 100%;
}

/* 主要导航按钮样式 */
.nav-btn-primary {
    background: linear-gradient(45deg, #00d4ff, #00ff88) !important;
    color: #000000 !important;
    border: 2px solid #00d4ff !important;
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4) !important;
    font-weight: 700 !important;
}

.nav-btn-primary::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent) !important;
}

.nav-btn-primary:hover {
    color: #000000 !important;
    background: linear-gradient(45deg, #00ff88, #00d4ff) !important;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.6), 0 0 40px rgba(0, 255, 136, 0.4) !important;
    transform: translateY(-4px) !important;
    border-color: #00ff88 !important;
}

/* 英雄区域 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px 50px;
    position: relative;
}

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

.hero h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #ffffff, #00d4ff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
    animation: glow-pulse 2s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
    from {
        text-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
    }
    to {
        text-shadow: 0 0 40px rgba(0, 212, 255, 0.8), 0 0 60px rgba(0, 255, 136, 0.3);
    }
}

.hero p {
    font-size: 1.3rem;
    color: #cccccc;
    margin-bottom: 40px;
    opacity: 0;
    animation: fade-in-up 1s ease 0.5s forwards;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fade-in-up 1s ease 1s forwards;
}

.cta-btn {
    padding: 15px 35px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.cta-btn.primary {
    background: linear-gradient(45deg, #00d4ff, #00ff88);
    color: #000000;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
}

.cta-btn.primary:hover {
    color: #000000;
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.6);
}

.cta-btn.secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #00d4ff;
}

.cta-btn.secondary:hover {
    background: rgba(0, 212, 255, 0.1);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-3px);
}

/* 按钮显示控制 */
.mobile-btn {
    display: none;
}

.desktop-btn {
    display: inline-block;
}

/* 背景切换按钮 */
.bg-controls {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bg-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(0, 212, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.bg-btn.active {
    background: #00d4ff;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
}

.bg-btn:hover {
    transform: scale(1.2);
}

/* 特性区域 */
.features {
    padding: 100px 20px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.9));
    position: relative;
}

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

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
}

.section-title p {
    font-size: 1.2rem;
    color: #888888;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.feature-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.feature-card:hover::before {
    opacity: 1;
    transform: rotate(45deg) translate(50%, 50%);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: #00d4ff;
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
    display: block;
    position: relative;
    z-index: 2;
}

.feature-card h3 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.feature-card p {
    color: #cccccc;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* 页脚 */
.footer {
    background: rgba(0, 0, 0, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 20px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer p {
    color: #888888;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #00d4ff;
    text-decoration: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-btn {
        width: 200px;
    }

    .nav-container {
        padding: 0 20px;
    }

    .logo {
        font-size: 18px;
        gap: 8px;
    }

    .logo-image {
        height: 28px;
        max-width: 32px;
    }

    .logo-text {
        font-size: 16px;
    }

    /* 隐藏手机端头部导航按钮 */
    .nav-buttons {
        display: none;
    }

    /* 切换手机端按钮文字 */
    .desktop-btn {
        display: none;
    }

    .mobile-btn {
        display: inline-block;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        padding: 30px 20px;
    }

    .section-title h2 {
        font-size: 2.2rem;
    }

    .bg-controls {
        bottom: 20px;
        right: 20px;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #00d4ff, #00ff88);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #00ff88, #00d4ff);
} 