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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a0e27;
    color: #fff;
    overflow-x: hidden;
    min-height: 100vh;
}

/* 背景动画 */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

#bgCanvas {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0f1428 100%);
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 14, 39, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.3);
    z-index: 1000;
    padding: 1rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo-icon {
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
}

.logo-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1.5rem;
    border: 2px solid #667eea;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.nav-link:hover {
    background: #667eea;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
    transform: translateY(-2px);
}

/* 主内容 */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 120px 2rem 4rem;
}

/* 标题区 */
.header {
    text-align: center;
    margin-bottom: 4rem;
}

.main-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.title-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.title-decoration {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #667eea, transparent);
    animation: expand 2s ease-in-out infinite;
}

@keyframes expand {
    0%, 100% { width: 100px; opacity: 1; }
    50% { width: 200px; opacity: 0.5; }
}

.subtitle {
    font-size: 1.3rem;
    color: #8b92d4;
    margin-top: 1.5rem;
}

/* 游戏卡片网格 */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

/* 游戏卡片 */
.game-card {
    position: relative;
    background: rgba(26, 31, 58, 0.6);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(102, 126, 234, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 20px;
}

.game-card:hover {
    transform: translateY(-10px);
    border-color: #667eea;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.4);
}

.game-card:hover::before {
    opacity: 1;
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.game-card:hover .card-glow {
    opacity: 1;
}

.card-content {
    position: relative;
    z-index: 1;
}

.game-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.game-title {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    color: #fff;
}

.game-desc {
    color: #8b92d4;
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.game-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #a0a6d8;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.stat-icon {
    font-size: 1rem;
}

.game-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.3rem 0.8rem;
    background: rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(102, 126, 234, 0.4);
    border-radius: 15px;
    font-size: 0.85rem;
    color: #b4b9f0;
}

.play-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.play-btn:hover {
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.5);
    transform: translateX(5px);
}

.btn-arrow {
    transition: transform 0.3s ease;
}

.play-btn:hover .btn-arrow {
    transform: translateX(5px);
}

/* 即将推出卡片 */
.game-card.coming-soon {
    opacity: 0.7;
    cursor: default;
}

.game-card.coming-soon:hover {
    transform: none;
    box-shadow: none;
}

.coming-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(118, 75, 162, 0.3);
    border: 1px solid #764ba2;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #b792f0;
    margin-top: 1rem;
}

/* 统计信息 */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.stat-box {
    text-align: center;
    padding: 2rem;
    background: rgba(26, 31, 58, 0.6);
    border-radius: 15px;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #8b92d4;
    font-size: 1rem;
}

/* 底部 */
.footer {
    text-align: center;
    padding: 2rem;
    color: #6b7099;
    border-top: 1px solid rgba(102, 126, 234, 0.2);
}

.footer-desc {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #555977;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .main-content {
        padding: 100px 1rem 2rem;
    }
}

