/* ManGames - Main Stylesheet */

:root {
    --neon-pink: #ff00ff;
    --neon-blue: #00ffff;
    --neon-green: #39ff14;
    --dark-bg: #0a0a0a;
    --darker-bg: #050505;
    --cyberpunk-purple: #9900ff;
    --cyberpunk-yellow: #ffff00;
    --text-color: #ffffff;
    --card-bg: rgba(20, 20, 30, 0.8);
    --accent-color: #39ff14; /* 使用霓虹绿作为强调色 */
    --accent-color-rgb: 57, 255, 20; /* 霓虹绿的RGB值，用于rgba() */
}

/* === Animations === */
@keyframes previewAnimation {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes glowBorder {
    0% { box-shadow: 0 0 5px var(--neon-blue); }
    50% { box-shadow: 0 0 15px var(--neon-blue), 0 0 30px var(--neon-blue); }
    100% { box-shadow: 0 0 5px var(--neon-blue); }
}

@keyframes textGlow {
    0% { text-shadow: 0 0 5px var(--neon-green); }
    50% { text-shadow: 0 0 10px var(--neon-green), 0 0 20px var(--neon-green); }
    100% { text-shadow: 0 0 5px var(--neon-green); }
}

@keyframes pulseButton {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(57, 255, 20, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(57, 255, 20, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(57, 255, 20, 0); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* === Base Styles === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-color);
    background-image: 
        linear-gradient(45deg, rgba(255, 0, 255, 0.1) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(0, 255, 255, 0.1) 25%, transparent 25%);
    background-size: 100px 100px;
    overflow-x: hidden;
}

.container {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Game page specific layout */
.game-page-container {
    margin-top: 30px;
}

/* === Header Styles === */
header {
    background-color: var(--darker-bg);
    padding: 15px 0;
    border-bottom: 2px solid var(--neon-blue);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-pink), var(--neon-blue), var(--neon-green));
}

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

/* 头部搜索框样式 */
.header-search {
    margin: 0;
    max-width: 300px;
    flex: 1;
    margin: 0 20px;
}

.header-search .search-input {
    height: 40px;
    padding: 8px 15px;
    font-size: 14px;
        background-color: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--neon-blue);
}

.header-search .search-button {
    width: 36px;
    height: 36px;
}

.logo {
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    background: linear-gradient(to right, var(--neon-pink), var(--neon-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
    letter-spacing: 2px;
    text-decoration: none;
    display: block;
}

/* === Navigation === */
nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

nav ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--neon-green);
    transition: all 0.3s ease;
    z-index: -1;
}

nav ul li a:hover::before {
    width: 100%;
}

nav ul li a:hover {
    color: var(--neon-green);
    text-shadow: 0 0 5px var(--neon-green);
}

nav ul li a.active {
    color: var(--neon-green);
    text-shadow: 0 0 5px var(--neon-green);
}

nav ul li a.active::before {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
}

/* === Hero Section === */
.hero {
    background: linear-gradient(rgba(10, 10, 10, 0.7), rgba(10, 10, 10, 0.9)), url('/images/hero-bg.jpg') center/cover no-repeat;
    padding: 30px 30px;
    margin-bottom: 20px;
    border-radius: 12px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, var(--neon-pink) 0%, transparent 70%),
        linear-gradient(-45deg, var(--neon-blue) 0%, transparent 70%);
    opacity: 0.15;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 
        0 0 10px var(--neon-blue),
        0 0 20px var(--neon-pink);
    animation: textGlow 3s infinite alternate;
}

.hero p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 20px;
    line-height: 1.5;
}

.cta-button {
    display: inline-block;
    padding: 8px 25px;
    background: linear-gradient(45deg, var(--neon-pink), var(--neon-blue));
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.5);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.8);
}

/* Hero区域搜索框样式 */
.hero-search {
    max-width: 600px;
    margin: 10px auto 0;
}

.hero-search .search-input {
    background-color: rgba(0, 0, 0, 0.6);
    border: 2px solid var(--neon-pink);
    font-size: 14px;
    padding: 10px 15px;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.3);
    height: 40px;
}

.hero-search .search-input:focus {
    border-color: var(--neon-green);
    box-shadow: 0 0 25px rgba(57, 255, 20, 0.5);
}

.hero-search .search-button {
    width: 38px;
    height: 38px;
    background: linear-gradient(45deg, var(--neon-pink), var(--neon-blue));
}

.hero-search .search-button:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.6);
}

/* === Sidebar === */
.sidebar {
    background-color: var(--darker-bg);
    border-right: 1px solid var(--neon-blue);
    border-radius: 8px;
    padding: 15px 5px;
    height: fit-content;
    position: sticky;
    top: 20px;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
    text-align: center;
    width: 60px;
    overflow-y: visible;
    z-index: 9000;
}

.sidebar h2 {
    font-size: 0.9rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--neon-pink);
    color: var(--neon-pink);
}

.category-list {
    list-style: none;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.category-list li {
    margin-bottom: 15px;
    transition: transform 0.2s;
    width: 100%;
    text-align: center;
}

.category-list li:hover {
    transform: translateY(-3px);
}

.category-list a {
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    width: 100%;
}

.category-list a:hover {
    background-color: rgba(57, 255, 20, 0.1);
    color: var(--neon-green);
}

.category-list .icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background-color: rgba(57, 255, 20, 0.05);
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.1);
}

.category-list a:hover .icon {
    background-color: rgba(57, 255, 20, 0.2);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.3);
    border-color: var(--neon-green);
}

.category-list a span:not(.icon) {
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%) translateY(5px);
    opacity: 0;
    transition: all 0.3s ease;
    background-color: var(--darker-bg);
    padding: 6px 12px;
    border-radius: 4px;
    white-space: nowrap;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
    border: 1px solid var(--neon-green);
    pointer-events: none;
    z-index: 9999;
    font-weight: 500;
    color: var(--neon-green);
    text-shadow: 0 0 5px rgba(57, 255, 20, 0.5);
}

.category-list a span:not(.icon)::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -6px;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--neon-green);
    z-index: 9999;
}

.category-list a:hover span:not(.icon) {
    opacity: 1;
    transform: translateX(-50%) translateY(10px);
}

/* 主题分隔线样式 */
.theme-divider {
    margin: 15px 0;
    width: 100%;
}

.theme-divider hr {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(var(--accent-color-rgb), 0.5), transparent);
    margin: 0;
}

/* === Section Titles === */
.section-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
    color: var(--neon-blue);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--neon-pink), var(--neon-blue));
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    padding-left: 15px;
    border-left: 4px solid var(--neon-pink);
}

.section-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -4px;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--neon-pink), var(--neon-blue));
    animation: glowBorder 3s linear infinite;
}

.section-header h2 {
    font-size: 1.6rem;
    color: var(--neon-green);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(57, 255, 20, 0.5);
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-green), transparent);
}

.see-all {
    color: var(--neon-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 5px 15px;
    border-radius: 20px;
    border: 1px solid var(--neon-blue);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}

.see-all:hover {
    color: var(--neon-green);
    text-shadow: 0 0 5px var(--neon-green);
    border-color: var(--neon-green);
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.3);
}

/* === Game Cards === */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

/* 重新设计游戏卡片，只保留游戏缩略图 */
.game-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    background: var(--card-bg);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(0, 162, 255, 0.4);
    border-color: var(--neon-blue);
}

/* 移除旧的渐变蒙版 */
.game-card::before {
    display: none;
}

/* 修改缩略图容器为全高 */
.game-thumb-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.2);
    /* 移除最小高度和最大高度的限制 */
}

.game-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.game-card:hover .game-thumb {
    transform: scale(1.05);
}

/* 默认隐藏游戏信息 */
.game-info {
    display: none;
}

/* 修改播放按钮覆盖层样式 */
.play-now-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
    cursor: pointer; /* 确保光标显示为可点击状态 */
}

.game-card:hover .play-now-overlay {
    opacity: 1;
}

/* 添加游戏标题到悬停层 */
.play-now-overlay .game-title-overlay {
    color: white;
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 15px;
    padding: 0 10px;
    font-weight: bold;
    max-width: 90%;
    text-shadow: 0 0 5px var(--neon-blue);
    display: block; /* 确保标题显示 */
}

.play-button {
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-pink));
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    transform: scale(0.9);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 162, 255, 0.5);
    z-index: 11;
    cursor: pointer;
}

.game-card:hover .play-button {
    transform: scale(1);
    box-shadow: 0 0 15px rgba(0, 162, 255, 0.8);
}

/* 瀑布流布局中的游戏卡片样式 */
#games-waterfall {
    margin-top: 20px;
    min-height: 200px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    grid-gap: 15px;
    grid-auto-flow: dense;
    position: relative;
    z-index: 1;
}

/* 增强瀑布流布局中游戏卡片的显示效果 */
#games-waterfall .game-card {
    margin-bottom: 15px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.5s ease forwards;
    min-height: 200px;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 确保所有游戏卡片的悬停效果一致 */
.game-card:hover .game-thumb,
#games-waterfall .game-card:hover .game-thumb {
    transform: scale(1.05);
}

/* 确保收藏和分享按钮在新设计中正确显示 */
.favorite-btn,
.share-btn {
    position: absolute;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 20;
    opacity: 0;
    transform: translateY(10px);
}

.favorite-btn {
    top: 10px;
    right: 10px;
}

.share-btn {
    top: 10px;
    right: 56px;
}

.game-card:hover .favorite-btn,
.game-card:hover .share-btn {
    opacity: 1;
    transform: translateY(0);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .games-grid, 
    #games-waterfall {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    
    .game-card {
        min-height: 180px;
    }
    
    #games-waterfall .game-card {
        min-height: 180px;
    }
    
    .play-now-overlay .game-title-overlay {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .games-grid, 
    #games-waterfall {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .game-card {
        min-height: 140px;
    }
    
    #games-waterfall .game-card {
        min-height: 140px;
    }
    
    .play-button {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .play-now-overlay .game-title-overlay {
        font-size: 0.8rem;
        margin-bottom: 8px;
    }
}

/* === 搜索框样式 === */
.search-container {
    display: flex;
    margin: 20px auto;
    max-width: 500px;
    width: 100%;
    position: relative;
}

.search-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid var(--neon-blue);
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--text-color);
    border-radius: 50px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.search-input:focus {
    outline: none;
    border-color: var(--neon-green);
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.4);
}

.search-button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-green));
    border: none;
    color: var(--dark-bg);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-button:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.5);
}

/* === 筛选部分样式 === */
.filter-section {
    margin-top: 30px;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid var(--neon-blue);
}

.filter-group {
    margin-bottom: 15px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--neon-blue);
    font-size: 0.9rem;
}

.filter-select {
    width: 100%;
    padding: 8px 10px;
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--neon-blue);
    border-radius: 4px;
    color: var(--text-color);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--neon-green);
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.3);
}

.filter-info {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin-top: 10px;
}

/* === 主题列表样式 === */
.theme-list {
    list-style: none;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.theme-list li {
    margin-bottom: 15px;
    transition: transform 0.2s;
    width: 100%;
    text-align: center;
}

.theme-list li:hover {
    transform: translateX(5px);
}

.theme-list a {
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    width: 100%;
}

.theme-list a:hover {
    background-color: rgba(57, 255, 20, 0.1);
    color: var(--neon-green);
}

.theme-list a.active {
    background-color: rgba(57, 255, 20, 0.2);
    color: var(--neon-green);
    border-left: 3px solid var(--neon-green);
}

.theme-list .icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background-color: rgba(57, 255, 20, 0.05);
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.1);
}

.theme-list a:hover .icon {
    background-color: rgba(57, 255, 20, 0.2);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.3);
    border-color: var(--neon-green);
}

/* 活动分类样式 */
.category-list a.active {
    background-color: rgba(57, 255, 20, 0.2);
    color: var(--neon-green);
    border-left: 3px solid var(--neon-green);
}

/* === 响应式样式 === */
@media (max-width: 768px) {
    .search-container {
        max-width: 100%;
    }
    
    .filter-section {
        padding: 10px;
    }
    
    .filter-group label {
        font-size: 0.8rem;
    }
    
    .filter-select {
        font-size: 0.8rem;
        padding: 6px 8px;
    }
}

@media (max-width: 480px) {
    .search-input {
        padding: 10px;
        font-size: 14px;
    }
    
    .search-button {
        width: 36px;
        height: 36px;
    }
}

/* === 分类页面样式 === */
.section-title {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: var(--neon-green);
    text-shadow: 0 0 10px rgba(57, 255, 20, 0.3);
    border-bottom: 2px solid var(--neon-blue);
    padding-bottom: 10px;
}

/* === 页脚分类链接样式 === */
.category-footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

@media (max-width: 480px) {
    .category-footer-links {
        grid-template-columns: 1fr;
    }
}

#games-waterfall {
    margin-top: 30px;
    min-height: 200px;
}

#games-waterfall .no-results {
    text-align: center;
    padding: 30px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 1.1rem;
    margin: 20px 0;
}

/* 移动菜单遮罩层 */
.mobile-menu-overlay {
        position: fixed;
    top: 0;
        left: 0;
        width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 90;
        display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    }
    
.mobile-menu-overlay.active {
        display: block;
    opacity: 1;
}

/* 移动设备上的导航菜单动画 */
@keyframes slideIn {
    from { right: -300px; }
    to { right: 0; }
}

@keyframes slideOut {
    from { right: 0; }
    to { right: -300px; }
}

/* 移动设备上的导航菜单 */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background-color: var(--darker-bg);
        z-index: 100;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
        padding: 20px;
        overflow-y: auto;
        display: block;
    }
    
    nav.active {
        right: 0;
        animation: slideIn 0.3s forwards;
    }
    
    nav:not(.active) {
        animation: slideOut 0.3s forwards;
    }
    
    nav ul {
        flex-direction: column;
        gap: 15px;
        padding: 20px 0;
        width: 100%;
    }
    
    nav ul li {
        width: 100%;
        margin: 0;
    }
    
    nav ul li a {
        padding: 12px 15px;
        display: block;
        width: 100%;
        border-left: 2px solid transparent;
        transition: all 0.2s ease;
    }
    
    nav ul li a:hover,
    nav ul li a.active {
        border-left: 2px solid var(--neon-blue);
        background-color: rgba(0, 255, 255, 0.1);
    }
    
    .mobile-menu-btn {
        display: block;
        z-index: 101;
        background: none;
        border: 1px solid rgba(0, 255, 255, 0.3);
        border-radius: 4px;
        padding: 5px 10px;
        color: var(--text-color);
        font-size: 1.5rem;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    
    .mobile-menu-btn.active {
        color: var(--neon-green);
        border-color: var(--neon-green);
    }
    
    /* 侧边栏样式 */
    .sidebar {
        position: fixed;
        left: -60px;
        top: 0;
        height: 100vh;
        z-index: 100;
        transition: left 0.3s ease;
        border-radius: 0;
        border-right: 2px solid var(--neon-blue);
        padding-top: 60px;
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.7);
        z-index: 90;
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .overlay.active {
        display: block;
        opacity: 1;
    }
    
    /* 调整悬浮文字的位置 */
    .category-list a span:not(.icon) {
        left: 100%;
        top: 50%;
        transform: translateY(-50%) translateX(5px);
        z-index: 9999;
    }
    
    .category-list a span:not(.icon)::before {
        left: -6px;
        top: 50%;
        transform: translateY(-50%);
        border-top: 6px solid transparent;
        border-bottom: 6px solid transparent;
        border-right: 6px solid var(--neon-green);
        border-left: none;
    }
    
    .category-list a:hover span:not(.icon) {
        transform: translateY(-50%) translateX(10px);
    }
}

/* === Footer Styles === */
footer {
    background-color: var(--darker-bg);
    padding: 50px 0 20px;
    position: relative;
    overflow: hidden;
    margin-top: 50px;
    border-top: 3px solid var(--neon-blue);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-pink), var(--neon-blue), var(--neon-green));
    animation: glowBorder 3s linear infinite;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-column {
    padding: 0 15px;
}

.footer-column h3 {
    color: var(--neon-blue);
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
}

.footer-column p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 5px 0;
}

.footer-links a:hover {
    color: var(--neon-green);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--neon-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: rgba(0, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-column {
        padding: 0;
        margin-bottom: 30px;
    }
}

/* === 游戏详情页样式 === */
.game-page-container {
    display: block;
    grid-template-columns: 1fr;
    max-width: 1200px;
}

.back-navigation {
    margin-bottom: 20px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    color: var(--neon-blue);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-button i {
    margin-right: 8px;
}

.back-button:hover {
    color: var(--neon-green);
    transform: translateX(-5px);
}

.game-details-container {
    background-color: rgba(10, 15, 30, 0.7);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 162, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.game-details-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-pink), var(--neon-blue), var(--neon-green));
    animation: glowBorder 3s linear infinite;
}

.game-details-container .game-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--neon-blue);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.game-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.meta-item i {
    color: var(--neon-green);
    margin-right: 8px;
}

.game-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.game-control-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--neon-blue);
    border-radius: 50px;
    color: var(--text-color);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.game-control-btn i {
    margin-right: 8px;
    color: var(--neon-blue);
}

.game-control-btn:hover {
    background-color: rgba(0, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.game-control-btn.active {
    background-color: rgba(255, 0, 128, 0.2);
    border-color: var(--neon-pink);
}

.game-control-btn.active i {
    color: var(--neon-pink);
}

.game-iframe-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    margin-bottom: 30px;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

/* 垂直游戏容器 - 响应式设计 */
.vertical-game-iframe-container {
    position: relative;
    width: 100%;
    max-width: 500px; /* 控制最大宽度 */
    margin: 0 auto 30px; /* 居中显示 */
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    height: 80vh; /* 默认高度为视口高度的80% */
    max-height: 800px; /* 最大高度限制 */
}

/* 大屏幕显示 */
@media (min-width: 1200px) {
    .vertical-game-iframe-container {
        max-width: 450px;
        height: 80vh;
    }
}

/* 中等屏幕显示 */
@media (max-width: 1199px) and (min-width: 768px) {
    .vertical-game-iframe-container {
        max-width: 400px;
        height: 75vh;
    }
}

/* 平板显示 */
@media (max-width: 767px) and (min-width: 481px) {
    .vertical-game-iframe-container {
        max-width: 350px;
        height: 70vh;
    }
}

/* 手机显示 */
@media (max-width: 480px) {
    .vertical-game-iframe-container {
        width: 90%;
        height: 65vh;
    }
}

.game-iframe-container iframe, .vertical-game-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.game-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.8);
    color: var(--neon-blue);
    z-index: 10;
}

.game-loader .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(0, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--neon-blue);
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 15px;
}

.game-description, .game-instructions {
    margin-bottom: 30px;
}

.game-description h3, .game-instructions h3 {
    font-size: 1.5rem;
    color: var(--neon-green);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(57, 255, 20, 0.3);
}

.game-description p, .game-instructions p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 1rem;
}

.game-instructions ul {
    padding-left: 20px;
    margin-top: 10px;
}

.game-instructions li {
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.8);
}

.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.game-tag {
    padding: 5px 12px;
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--neon-blue);
    border-radius: 20px;
    color: var(--neon-blue);
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.game-tag:hover {
    background-color: rgba(0, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.related-games-section h3 {
    font-size: 1.8rem;
    color: var(--neon-green);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(57, 255, 20, 0.3);
}

/* 全屏模式样式 */
.fullscreen-mode .game-iframe-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    padding: 0;
    z-index: 1000;
    border-radius: 0;
    border: none;
}

.fullscreen-mode .exit-fullscreen {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fullscreen-mode .exit-fullscreen:hover {
    background-color: rgba(255, 0, 0, 0.8);
    transform: scale(1.1);
}

/* 响应式样式 */
@media (max-width: 768px) {
    .game-details-container .game-title {
        font-size: 1.8rem;
    }
    
    .game-controls {
        justify-content: center;
    }
    
    .game-control-btn {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .game-details-container {
        padding: 15px;
    }
    
    .game-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .game-details-container .game-title {
        font-size: 1.5rem;
    }
}

/* === Toast消息样式 === */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: rgba(0, 0, 0, 0.8);
    color: var(--text-color);
    padding: 12px 25px;
    border-radius: 50px;
    border: 1px solid var(--neon-blue);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    z-index: 1000;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    text-align: center;
    font-size: 0.9rem;
    pointer-events: none;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* 分享模态框样式 */
.share-modal {
    position: fixed;
    top: 0;
    left: 0;
        width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.share-modal.show {
    opacity: 1;
    visibility: visible;
}

.share-modal-content {
    background-color: var(--darker-bg);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    border: 1px solid var(--neon-blue);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
    overflow: hidden;
}

.share-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.share-modal-header h3 {
    color: var(--neon-blue);
    margin: 0;
    font-size: 1.2rem;
}

.close-modal {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--neon-pink);
}

.share-modal-body {
    padding: 20px;
}

.share-preview {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 10px;
}

.share-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 15px;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.share-info {
    flex: 1;
}

.share-info h4 {
    margin: 0 0 5px 0;
    color: var(--neon-blue);
    font-size: 1rem;
}

.share-info p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.share-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 4px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.share-button i {
    margin-right: 8px;
    font-size: 1.1rem;
}

.share-button.facebook {
    background-color: #3b5998;
}

.share-button.twitter {
    background-color: #1da1f2;
}

.share-button.wechat {
    background-color: #07c160;
}

.share-button.copy-link {
    background-color: #333;
}

.share-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

@media (max-width: 480px) {
    .share-buttons {
        grid-template-columns: 1fr;
    }
    
    .share-preview {
        flex-direction: column;
    text-align: center;
}

    .share-thumbnail {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/* === 移动菜单样式 === */
@media (max-width: 768px) {
    .mobile-menu-button {
        display: block;
        z-index: 101;
        background: none;
        border: 1px solid rgba(0, 255, 255, 0.3);
        border-radius: 4px;
        padding: 5px 10px;
        color: var(--text-color);
        font-size: 1.5rem;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    
    .mobile-menu-button.active {
        color: var(--neon-green);
        border-color: var(--neon-green);
    }
}

/* 在小屏幕上调整hero区域的样式 */
@media (max-width: 768px) {
    .hero {
        padding: 20px 15px;
        margin-bottom: 15px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }
    
    .hero-search {
        max-width: 100%;
    }
    
    .hero-search .search-input {
        font-size: 13px;
        padding: 8px 12px;
        height: 36px;
    }
    
    .hero-search .search-button {
        width: 34px;
        height: 34px;
    }
    
    .cta-button {
        padding: 6px 20px;
        font-size: 0.85rem;
    }
}

/* 返回顶部按钮 */
.scroll-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #8e44ad;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    border: none;
    opacity: 0.8;
}

.scroll-to-top-btn:hover {
    transform: scale(1.1);
    opacity: 1;
}

.scroll-to-top-btn i {
    font-size: 20px;
}

/* 懒加载图片 */
.game-thumb.lazy-load {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.game-thumb.lazy-load.loaded {
    opacity: 1;
}

/* 移动设备优化 */
@media (max-width: 768px) {
    .waterfall-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        grid-gap: 15px;
    }
    
    .scroll-to-top-btn {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

.loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid var(--neon-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 2;
    display: none;
}

.error-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-align: center;
    z-index: 2;
    display: none;
}

.game-unavailable .game-thumb-container,
.game-load-error .game-thumb-container {
    opacity: 0.5;
    pointer-events: none;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 游戏检测结果样式 */
.games-check-results {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    animation: fadeIn 0.5s ease;
}

.games-check-results h3 {
    color: var(--neon-blue);
    margin-bottom: 10px;
    font-size: 1.2rem;
    border-bottom: 1px solid var(--neon-blue);
    padding-bottom: 5px;
}

.games-check-results h4 {
    color: var(--neon-pink);
    margin: 10px 0;
    font-size: 1rem;
}

.games-check-results ul {
    margin: 0;
    padding-left: 20px;
    font-size: 0.9rem;
}

.games-check-results li {
    margin-bottom: 5px;
    color: #ff6b6b;
}

.games-check-results button:hover {
    background-color: #0b7dda;
    transform: scale(1.05);
}

/* 游戏卡片状态样式 */
.game-unavailable .game-thumb {
    filter: grayscale(100%) brightness(40%);
}

.game-unavailable::before {
    content: "不可用";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    z-index: 2;
    font-weight: bold;
}

.game-load-error .game-thumb {
    filter: grayscale(100%) brightness(40%);
}

.game-load-error::before {
    content: "加载失败";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    z-index: 2;
    font-weight: bold;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 代码块样式 */
.code-block {
    background-color: rgba(30, 30, 40, 0.9);
    border-radius: 4px;
    padding: 10px;
    margin: 10px 0;
    max-height: 300px;
    overflow-y: auto;
}

.code-block pre {
    margin: 0;
    white-space: pre-wrap;
    font-family: Consolas, Monaco, 'Andale Mono', monospace;
    font-size: 0.85rem;
    color: #f8f8f2;
}