/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: #333;
    background-color: #0a1929;
    background-image: 
        radial-gradient(#1a365d 1px, transparent 1px),
        radial-gradient(#1a365d 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    background-attachment: fixed;
}

/* 容器样式 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* 导航栏样式 */
.navbar {
    background-color: #0f2438;
    color: #ffffff;
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-bottom: 3px solid #4299e1;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 2rem;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(66, 153, 225, 0.5);
    position: relative;
    padding-left: 35px;
}

.logo h1::before {
    content: '⚡';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 2rem;
    text-shadow: 0 0 15px rgba(66, 153, 225, 0.8);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 15px;
    border-radius: 4px;
    overflow: hidden;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(66, 153, 225, 0.2), transparent);
    transition: all 0.5s;
}

.nav-links a:hover::before {
    left: 100%;
}

.nav-links a:hover {
    background-color: rgba(66, 153, 225, 0.1);
    transform: translateY(-2px);
    text-shadow: 0 0 10px rgba(66, 153, 225, 0.7);
}

/* 汉堡菜单样式 - 默认隐藏 */
.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .bar {
    display: block;
    width: 28px;
    height: 4px;
    margin: 6px auto;
    transition: all 0.3s ease;
    background-color: #4299e1;
    box-shadow: 0 0 5px rgba(66, 153, 225, 0.8);
    border-radius: 2px;
}

/* 英雄区域样式 */
.hero {
    text-align: center;
    padding: 5rem 0;
    background: linear-gradient(135deg, #0f2438 0%, #1a365d 100%);
    color: #ffffff;
    margin: 2rem 0;
    border-radius: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(66, 153, 225, 0.3);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 30px, rgba(66, 153, 225, 0.05) 30px, rgba(66, 153, 225, 0.05) 60px),
        repeating-linear-gradient(-45deg, transparent, transparent 30px, rgba(66, 153, 225, 0.05) 30px, rgba(66, 153, 225, 0.05) 60px);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1.2rem;
    text-shadow: 0 0 20px rgba(66, 153, 225, 0.6);
    position: relative;
    display: inline-block;
    padding: 0 25px;
    font-weight: 800;
}

.hero h2::before, .hero h2::after {
    content: '🔹';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    text-shadow: 0 0 15px rgba(66, 153, 225, 0.8);
}

.hero h2::before {
    left: 0;
}

.hero h2::after {
    right: 0;
}

.hero p {
    font-size: 1.4rem;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    color: #cbd5e0;
}

/* 游戏分类样式 */
.game-categories {
    margin: 2rem 0;
}

.category {
    margin-bottom: 4rem;
    background-color: rgba(15, 36, 56, 0.8);
    padding: 2rem;
    border-radius: 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border-left: 5px solid #4299e1;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(66, 153, 225, 0.1);
}

.category h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: #4299e1;
    font-weight: 700;
    position: relative;
    padding-left: 40px;
    display: inline-block;
    text-shadow: 0 0 10px rgba(66, 153, 225, 0.4);
}

.category h3::before {
    content: '🎮';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    text-shadow: 0 0 15px rgba(66, 153, 225, 0.6);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(50%, 230px), 1fr));
    gap: 2.5rem;
}

/* 游戏卡片样式 */
.game-card {
    background-color: rgba(15, 36, 56, 0.95);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    cursor: pointer;
    border: 1px solid rgba(66, 153, 225, 0.2);
    position: relative;
    backdrop-filter: blur(5px);
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #4299e1, #0bc5ea);
}

.game-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: #4299e1;
}

.game-card:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(66, 153, 225, 0.2), transparent);
    pointer-events: none;
}

.game-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
    filter: contrast(1.1) brightness(0.9);
}

.game-card:hover img {
    transform: scale(1.1);
    filter: contrast(1.2) brightness(1.1);
}

.game-card-content {
    padding: 1.2rem;
    background-color: rgba(15, 36, 56, 0.9);
    border-top: 1px solid rgba(66, 153, 225, 0.1);
}

.game-card h4 {
    font-size: 1.4rem;
    color: #4299e1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 700;
    margin-bottom: 0.6rem;
    text-shadow: 0 0 8px rgba(66, 153, 225, 0.3);
}

.game-card p {
    font-size: 1rem;
    color: #a0aec0;
    line-height: 1.6;
}

/* 页脚样式 */
.footer {
    background-color: #0f2438;
    color: #cbd5e0;
    padding: 3.5rem 0;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(66, 153, 225, 0.2);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 30px, rgba(66, 153, 225, 0.03) 30px, rgba(66, 153, 225, 0.03) 60px),
        repeating-linear-gradient(-45deg, transparent, transparent 30px, rgba(66, 153, 225, 0.03) 30px, rgba(66, 153, 225, 0.03) 60px);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #a0aec0;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2rem;
}

.footer-links a {
    color: #cbd5e0;
    text-decoration: none;
    transition: all 0.3s;
    padding: 8px 20px;
    border-radius: 25px;
    background-color: rgba(66, 153, 225, 0.1);
    border: 1px solid rgba(66, 153, 225, 0.2);
    font-weight: 500;
}

.footer-links a:hover {
    background-color: rgba(66, 153, 225, 0.2);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(66, 153, 225, 0.2);
    text-shadow: 0 0 10px rgba(66, 153, 225, 0.5);
}

.footer-badge {
    background-color: #4299e1;
    color: white;
    padding: 0.6rem 2rem;
    border-radius: 30px;
    font-weight: bold;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(66, 153, 225, 0.3);
}

.footer-badge::before {
    content: '⚡';
    margin-right: 8px;
    font-size: 1.2rem;
}

/* 详情页样式 */
.game-detail {
    display: flex;
    gap: 3.5rem;
    margin: 3.5rem 0;
    background-color: rgba(15, 36, 56, 0.9);
    padding: 3.5rem;
    border-radius: 0;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border-left: 8px solid #4299e1;
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(66, 153, 225, 0.1);
}

.game-detail::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%231a365d" opacity="0.5"><path d="M7 11l5-5 5 5z"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
}

.game-detail-image {
    flex: 1;
    max-width: 500px;
    border: 2px solid rgba(66, 153, 225, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.game-detail-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    filter: contrast(1.1);
}

.game-detail-info {
    flex: 2;
}

.game-detail-info h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: #4299e1;
    font-weight: 800;
    position: relative;
    display: inline-block;
    text-shadow: 0 0 15px rgba(66, 153, 225, 0.5);
}

.game-detail-info h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #4299e1, transparent);
}

.game-detail-info p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #a0aec0;
    margin-bottom: 3rem;
    padding-top: 1rem;
}

.play-button {
    display: inline-block;
    background: linear-gradient(135deg, #4299e1, #0bc5ea);
    color: white;
    padding: 1.4rem 3rem;
    text-decoration: none;
    border-radius: 0;
    font-size: 1.4rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(66, 153, 225, 0.3);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.play-button::before {
    content: '▶';
    margin-right: 12px;
    font-size: 1.3rem;
}

.play-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s;
}

.play-button:hover::after {
    left: 100%;
}

.play-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(66, 153, 225, 0.4);
    background: linear-gradient(135deg, #3182ce, #4299e1);
}

.back-button {
    display: inline-block;
    margin: 1.5rem 0;
    color: #4299e1;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 1.15rem;
    padding: 10px 20px;
    border: 2px solid #4299e1;
    border-radius: 25px;
    background-color: transparent;
}

.back-button:hover {
    background-color: #4299e1;
    color: white;
    transform: translateX(-5px);
    box-shadow: 0 5px 15px rgba(66, 153, 225, 0.3);
}

/* 可能喜欢的游戏样式 */
.may-like {
    margin: 4.5rem 0;
    background-color: rgba(15, 36, 56, 0.8);
    padding: 2.5rem;
    border-radius: 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border-left: 5px solid #4299e1;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(66, 153, 225, 0.1);
}

.may-like h3 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: #4299e1;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-left: 40px;
    text-shadow: 0 0 10px rgba(66, 153, 225, 0.4);
}

.may-like h3::before {
    content: '❤️';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    text-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
}

/* 辅助页面样式 */
.auxiliary-page {
    background-color: rgba(15, 36, 56, 0.9);
    padding: 3.5rem;
    border-radius: 0;
    margin: 3.5rem 0;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border-left: 8px solid #4299e1;
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(66, 153, 225, 0.1);
}

.auxiliary-page::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%231a365d" opacity="0.5"><path d="M7 11l5-5 5 5z"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
}

.auxiliary-page h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #4299e1;
    font-weight: 800;
    position: relative;
    display: inline-block;
    text-shadow: 0 0 15px rgba(66, 153, 225, 0.5);
}

.auxiliary-page h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #4299e1, transparent);
}

.auxiliary-page h3 {
    font-size: 1.8rem;
    margin: 2.5rem 0 1.5rem;
    color: #4299e1;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-left: 30px;
    text-shadow: 0 0 10px rgba(66, 153, 225, 0.4);
}

.auxiliary-page h3::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.2rem;
    color: #4299e1;
    text-shadow: 0 0 10px rgba(66, 153, 225, 0.6);
}

.auxiliary-page p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.1rem;
    color: #a0aec0;
}

.auxiliary-page ul {
    margin-left: 2rem;
    margin-bottom: 1.8rem;
    padding-left: 1.5rem;
}

.auxiliary-page li {
    margin-bottom: 1rem;
    line-height: 1.7;
    position: relative;
    padding-left: 18px;
    color: #cbd5e0;
}

.auxiliary-page li::before {
    content: '⚡';
    position: absolute;
    left: -15px;
    top: 2px;
    font-size: 0.9rem;
    color: #4299e1;
}

/* 联系表单样式 */
.contact-form {
    margin-top: 2.5rem;
}

.form-group {
    margin-bottom: 2.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 1rem;
    font-weight: bold;
    color: #4299e1;
    font-size: 1.15rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem;
    border: 2px solid rgba(66, 153, 225, 0.2);
    border-radius: 0;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background-color: rgba(15, 36, 56, 0.7);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
    background-color: rgba(15, 36, 56, 0.9);
}

.form-group textarea {
    resize: vertical;
    min-height: 200px;
}

.submit-button {
    background: linear-gradient(135deg, #4299e1, #0bc5ea);
    color: white;
    padding: 1.2rem 3rem;
    border: none;
    border-radius: 0;
    font-size: 1.3rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(66, 153, 225, 0.3);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.submit-button::before {
    content: '✓';
    margin-right: 12px;
    font-size: 1.3rem;
}

.submit-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s;
}

.submit-button:hover::after {
    left: 100%;
}

.submit-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(66, 153, 225, 0.4);
    background: linear-gradient(135deg, #3182ce, #4299e1);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(min(50%, 210px), 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    /* 汉堡菜单显示 */
    .hamburger {
        display: block;
    }
    
    /* 导航链接隐藏 */
    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background-color: #0f2438;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 1rem 0;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(66, 153, 225, 0.2);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links a {
        padding: 1.2rem 0;
        border-radius: 0;
    }
    
    /* 英雄区域 */
    .hero h2 {
        font-size: 2.3rem;
        padding: 0 20px;
    }
    
    .hero h2::before, .hero h2::after {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    /* 游戏详情页 */
    .game-detail {
        flex-direction: column;
        padding: 2.5rem;
        gap: 2.5rem;
    }
    
    .game-detail-image {
        max-width: 100%;
    }
    
    .game-detail-info h2 {
        font-size: 2.2rem;
    }
    
    /* 游戏卡片 */
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .game-card img {
        height: 180px;
    }
    
    /* 可能喜欢的游戏 - 垂直排列 */
    .may-like .games-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding-bottom: 1rem;
    }
    
    .may-like .game-card {
        width: 100%;
    }
    
    /* 辅助页面 */
    .auxiliary-page {
        padding: 2.5rem;
    }
    
    .auxiliary-page h2 {
        font-size: 2.2rem;
    }
    
    .auxiliary-page h3 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 1.9rem;
        padding: 0 15px;
    }
    
    .hero h2::before, .hero h2::after {
        font-size: 1.5rem;
    }
    
    .category h3, .may-like h3 {
        font-size: 1.8rem;
        padding-left: 35px;
    }
    
    .category h3::before, .may-like h3::before {
        font-size: 1.6rem;
    }
    
    .game-detail {
        padding: 1.8rem;
    }
    
    .game-detail-info h2 {
        font-size: 2rem;
    }
    
    .play-button {
        width: 100%;
        text-align: center;
        padding: 1.2rem 2rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .may-like .games-grid {
        grid-template-columns: 1fr;
    }
}