:root {
    --primary-color: #2563eb;  /* 明亮的蓝色 */
    --secondary-color: #1e293b; /* 深蓝灰色 */
    --accent-color: #10b981;   /* 翡翠绿 */
    --background-color: #f8fafc; /* 浅灰白色 */
    --text-color: #334155;     /* 深灰色文字 */
    --card-background: #ffffff; /* 纯白卡片背景 */
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --gradient-start: #3b82f6;  /* 渐变起始色 */
    --gradient-end: #2563eb;    /* 渐变结束色 */
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    min-height: 100vh;
}

.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
}

header {
    background: transparent;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

header.scrolled .nav-links a {
    color: var(--text-color);
}

header.scrolled .logo {
    color: var(--primary-color);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-links a.play-now {
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
}

.nav-links a.play-now:hover {
    background: #00a884;
    transform: translateY(-2px);
}

.hero-content {
    text-align: center;
    max-width: 800px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.search-container {
    width: 100%;
    max-width: 600px;
    margin: 2rem auto;
}

.search-bar {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.search-bar:focus {
    outline: none;
    border-color: var(--accent-color);
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.search-bar::placeholder {
    color: #94a3b8;
}

.categories-section {
    padding: 4rem 2rem;
    background: var(--background-color);
}

.categories-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.category-container {
    margin-bottom: 0;
}

.category-header {
    text-align: center;
    margin-bottom: 3rem;
}

.category-header h2 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.category-description {
    font-size: 1.1rem;
    color: #64748b;
    margin: 0 auto;
    line-height: 1.5;
    max-width: 800px;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.game-card {
    background: #1a1a1a;
    border-radius: 16px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    align-items: center;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.game-image {
    width: 90%;
    padding-bottom: 100%;
    position: relative;
    margin: 0 auto 1rem auto;
    border-radius: 12px;
    overflow: hidden;
    background: #2a2a2a;
}

.game-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.game-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    text-align: center;
}

.game-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    color: #ffffff;
}

.game-info p {
    margin: 0 0 1rem 0;
    color: #b3b3b3;
    font-size: 0.9rem;
    line-height: 1.5;
    flex: 1;
}

.game-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.tag {
    background: #2a2a2a;
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    transition: background-color 0.3s ease;
}

.tag:hover {
    background: #3a3a3a;
}

.play-button {
    display: inline-block;
    background: #4CAF50;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin: 0 auto;
    width: auto;
}

.play-button:hover {
    background: #45a049;
    transform: translateY(-2px);
}

footer {
    background: var(--secondary-color);
    color: white;
    padding: 2rem;
    margin-top: 4rem;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

@media (max-width: 1200px) {
    .game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .categories-grid {
        gap: 5rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    nav {
        padding: 1rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .search-bar {
        font-size: 1rem;
        padding: 0.8rem 1.2rem;
    }

    .game-grid {
        grid-template-columns: 1fr;
    }
    
    .game-image {
        height: 200px;
    }

    .game-info {
        padding: 1.25rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1rem;
    }

    .categories-section {
        padding: 3rem 1rem;
    }

    .categories-grid {
        gap: 4rem;
    }

    .category-header {
        margin-bottom: 2rem;
    }

    .category-header h2 {
        font-size: 1.75rem;
    }

    .category-description {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .game-card {
        padding: 1rem;
    }
    
    .game-info h3 {
        font-size: 1.1rem;
    }
    
    .game-info p {
        font-size: 0.85rem;
    }
    
    .play-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .game-image {
        height: 200px;
    }
}

.all-games-section {
    padding: 6rem 2rem;
    background: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 4rem;
}

.game-list {
    display: grid;
    gap: 3rem;
}

.game-item {
    padding: 2rem;
    background: var(--background-color);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.game-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.game-item h2 {
    font-size: 1.75rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.game-item p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.game-item .play-button {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.game-item .play-button:hover {
    background: var(--gradient-end);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

@media (max-width: 768px) {
    .all-games-section {
        padding: 4rem 1rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 3rem;
    }

    .game-item {
        padding: 1.5rem;
    }

    .game-item h2 {
        font-size: 1.5rem;
    }
} 