/* style.css */
/* 基础样式 */
:root {
    --neon-blue: #00f3ff;
    --cyber-purple: #b026ff;
    --dark-bg: #0a0a1a;
    --neon-pink: #ff00ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Oxanium', cursive;
}

body {
    background: var(--dark-bg);
    color: white;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 导航样式 */
.cyber-nav {
    background: rgba(10, 10, 26, 0.9);
    padding: 20px 80px;
    position: fixed;
    width: 100%;
    z-index: 1000;
    border-bottom: 2px solid var(--neon-blue);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
}

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

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

.logo {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(45deg, var(--neon-blue), var(--cyber-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
}

/* 主视觉区 */
.hero {
    height: 100vh;
    background: radial-gradient(circle at center, 
        rgba(11, 15, 40, 0.9),
        rgba(0, 0, 0, 0.9)),
        url('game-bg.jpg') center/cover;
    display: flex;
    align-items: center;
    padding: 0 10%;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    width: 300%;
    height: 300%;
    background: linear-gradient(45deg, 
        transparent 45%,
        var(--neon-blue) 50%,
        transparent 55%);
    animation: scan 6s linear infinite;
}

@keyframes scan {
    0% { transform: translate(-50%, -50%) rotate(45deg); }
    100% { transform: translate(-50%, 150%) rotate(45deg); }
}

/* 游戏卡片 */
.game-card {
    background: rgba(255,255,255,0.1);
    border: 2px solid var(--neon-blue);
    border-radius: 10px;
    transition: 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 25px var(--neon-blue);
}

.game-card::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(0, 243, 255, 0.2) 50%,
        transparent 60%
    );
    animation: glow 3s infinite;
}

/* 按钮样式 */
.cyber-button {
    background: none;
    border: 2px solid var(--neon-blue);
    color: white;
    padding: 12px 30px;
    font-size: 18px;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
}

.cyber-button::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 243, 255, 0.3),
        transparent
    );
    transform: skewX(-45deg);
    left: -150%;
    transition: 0.5s;
}

.cyber-button:hover::before {
    left: 150%;
}

/* 主要内容区域 - 确保footer在底部 */
main,
section:not(.hero):not(.cyber-footer) {
    flex: 1 0 auto;
}

/* Footer 样式 */
.cyber-footer {
    margin-top: 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100px;
    padding: 20px;
    flex-shrink: 0;
}

.footer-content {
    max-width: 1200px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 0 auto;
}

.footer-content a {
    color: var(--neon-blue);
    text-decoration: none;
}

.footer-content a:hover {
    text-decoration: underline;
}

/* 首页游戏卡片布局 */
.games-section {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    justify-content: center;
    width: 100%;
}

.games-section .game-card {
    display: flex;
    flex-direction: row;
    width: 100%;
}

.games-section .game-card img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px 0 0 8px;
}

.games-section .game-info {
    flex: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.games-section .game-info h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.games-section .platform-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.games-section .platform-tags span {
    background: rgba(0, 243, 255, 0.2);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
}

/* 汉堡菜单按钮 */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--neon-blue);
    transition: 0.3s;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .cyber-nav { padding: 15px 20px; }
    .logo { font-size: 24px; }
    .hero { padding: 100px 20px; }

    .nav-toggle { display: flex; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 60%;
        height: 100vh;
        background: rgba(10, 10, 26, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: right 0.3s ease;
        border-left: 2px solid var(--neon-blue);
        z-index: 1000;
    }

    .nav-links.open { right: 0; }

    .nav-links .cyber-button {
        font-size: 16px;
        padding: 10px 24px;
        width: 160px;
        text-align: center;
    }

    .hero-content h1 { font-size: 1.5em; }
    .hero-content p { font-size: 1em; }

    .cyber-button {
        padding: 10px 20px;
        font-size: 14px;
    }

    .games-section { padding: 15px; gap: 15px; }

    .games-section .game-card img {
        width: 100px;
        height: 100px;
    }

    .games-section .game-info { padding: 10px; }
    .games-section .game-info h3 { font-size: 16px; }

    .cyber-footer { padding: 15px; min-height: 60px; }
    .footer-content { font-size: 0.85em; }
}

@media (max-width: 480px) {
    .cyber-nav { padding: 12px 15px; }
    .logo { font-size: 20px; }
    .hero { padding: 80px 15px; }
    .hero-content h1 { font-size: 1.2em; }

    .games-section .game-card {
        flex-direction: column;
    }

    .games-section .game-card img {
        width: 100%;
        height: 150px;
        border-radius: 8px 8px 0 0;
    }

    .nav-links { width: 75%; }
}