* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    color: white;
    font-family: 'Arial', sans-serif;
    min-height: 100vh;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    position: relative;
}

.logo-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.logo-icon::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 20px;
    background: black;
    border-radius: 10px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.brand-text h1 {
    font-size: 32px;
    color: #bbff2e;
    line-height: 1.2;
    margin-bottom: 5px;
}

.brand-text p {
    color: #888;
    font-size: 16px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 50px;
    height: 40px;
    border: 2px solid #bbff2e;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #bbff2e;
    font-size: 20px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #bbff2e;
    color: black;
    transform: translateY(-2px);
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    border-bottom: 2px solid #bbff2e;
    margin-bottom: 30px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

.main-nav a {
    color: #888;
    text-decoration: none;
    padding: 15px 0;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.main-nav a.active,
.main-nav a:hover {
    color: #bbff2e;
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #bbff2e;
}

.search-container {
    display: none;
    color: #888;
    font-size: 18px;
    cursor: pointer;
}

.search-bar {
    display: flex;
    justify-content: center;
    padding: 0 40px;
    margin-bottom: 40px;
}

.search-input {
    position: relative;
    width: 100%;
    max-width: 600px;
}

.search-input i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
}

.search-input input {
    width: 100%;
    padding: 15px 20px 15px 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #333;
    border-radius: 25px;
    color: white;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.search-input input:focus {
    border-color: #bbff2e;
    background: rgba(255, 255, 255, 0.15);
}

.search-input input::placeholder {
    color: #888;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.game-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(187, 255, 46, 0.2);
}

.game-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
}

.game1 {
    background: linear-gradient(45deg, #001122, #003366), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23001122"/><path d="M30 30 L70 50 L30 70 Z" fill="%2300ffff"/></svg>');
}

.game2 {
    background: linear-gradient(45deg, #330066, #660099), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23330066"/><circle cx="50" cy="40" r="15" fill="%23ff0066"/><rect x="35" y="55" width="30" height="20" fill="%23ff0066"/></svg>');
}

.game3 {
    background: linear-gradient(45deg, #663300, #cc6600), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23663300"/><path d="M50 20 L60 40 L50 80 L40 40 Z" fill="%23ffaa00"/></svg>');
}

.game4 {
    background: linear-gradient(45deg, #003300, #006600), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23003300"/><circle cx="50" cy="40" r="12" fill="%23ff3333"/><circle cx="35" cy="40" r="8" fill="%23ff3333"/><circle cx="65" cy="40" r="8" fill="%23ff3333"/></svg>');
}

.game5 {
    background: linear-gradient(45deg, #0066cc, #0099ff), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect width="100" height="100" fill="%230066cc"/><text x="50" y="55" text-anchor="middle" fill="white" font-size="20" font-family="Arial">FORTNITE</text></svg>');
}

.game6 {
    background: linear-gradient(45deg, #cc3300, #ff6600), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23cc3300"/><rect x="35" y="30" width="30" height="40" fill="%23ffaa00"/><rect x="40" y="25" width="20" height="10" fill="%23ffaa00"/></svg>');
}

.game-card h3 {
    padding: 20px;
    font-size: 18px;
    color: white;
    text-align: center;
}

/* 游戏状态指示器 */
.game-image-container {
    position: relative;
    width: 100%;
    height: 200px;
}

.status-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.7);
    padding: 6px 12px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #bbff2e;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
    box-shadow: 0 0 10px #bbff2e;
}

.status-text {
    color: white;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 10px #bbff2e;
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
        box-shadow: 0 0 20px #bbff2e;
    }
    100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 10px #bbff2e;
    }
}

/* 红色发光小亮点（不闪烁） */
.red-dot {
    background: #ff4444;
    box-shadow: 0 0 15px #ff4444, 0 0 30px rgba(255, 68, 68, 0.5);
    animation: none; /* 移除闪烁动画 */
}

.coming-soon .status-text {
    color: #ffcccc;
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    
    .logo-section {
        flex-direction: column;
        text-align: center;
    }
    
    .main-nav {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    
    .main-nav ul {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .game-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
    
    .search-bar {
        padding: 0 20px;
    }
}

/* 弹窗模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    margin: 15% auto;
    padding: 40px;
    border: 2px solid #bbff2e;
    border-radius: 20px;
    width: 400px;
    max-width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(187, 255, 46, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-icon {
    font-size: 60px;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.modal-content h2 {
    color: #bbff2e;
    font-size: 28px;
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(187, 255, 46, 0.5);
}

.modal-content p {
    color: white;
    font-size: 16px;
    margin-bottom: 0;
    opacity: 0.9;
}

.close {
    color: #bbff2e;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close:hover {
    color: white;
    text-shadow: 0 0 10px #bbff2e;
    transform: scale(1.2);
}

/* 移动端弹窗位置调整 */
@media (max-width: 768px) {
    .modal-content {
        margin: 50% auto;
        transform: translateY(-50%);
        padding: 30px 20px;
        width: 320px;
        max-width: 85%;
    }
    
    .modal-content h2 {
        font-size: 24px;
    }
    
    .modal-content p {
        font-size: 14px;
    }
    
    .modal-icon {
        font-size: 50px;
    }
}