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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

a {
    text-decoration: none;
    color: #333;
}

ul {
    list-style: none;
}

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

/* Header */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    color: #0078d7;
    margin: 0;
}

.logo h1 a {
    color: #0078d7;
    text-decoration: none;
}

.logo h1 a:hover {
    color: #0066b3;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    font-weight: 500;
    padding: 0.5rem;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #0078d7;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0078d7, #00c6ff);
    color: #fff;
    text-align: center;
    padding: 4rem 2rem;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.cta-button {
    display: inline-block;
    background-color: #fff;
    color: #0078d7;
    font-weight: bold;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

/* Features Section */
.features {
    background-color: #fff;
    display: flex;
    justify-content: space-around;
    padding: 3rem 2rem;
    text-align: center;
    flex-wrap: wrap;
}

.feature {
    padding: 1.5rem;
    width: 200px;
}

.feature i {
    font-size: 2.5rem;
    color: #0078d7;
    margin-bottom: 1rem;
}

.feature h3 {
    font-size: 1.2rem;
}

/* Featured Games Section */
.featured-games {
    background-color: #fff;
    padding: 3rem 2rem;
    text-align: center;
}

.featured-games h2 {
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #333;
}

.featured-games-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.featured-game {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    width: 250px;
    position: relative;
}

.featured-game:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.featured-game img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.featured-game-info {
    padding: 15px;
    background-color: #fff;
}

.featured-game-info h3 {
    margin: 0 0 10px;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.featured-game-info .game-rating {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 5px;
}

.featured-game-info .star {
    color: #ffbb00;
    margin-right: 5px;
    font-size: 14px;
}

.featured-game-info .rating-value {
    font-weight: bold;
    font-size: 14px;
    color: #333;
    margin-right: auto;
}

.featured-game-info .category-tag {
    display: inline-block;
    padding: 3px 8px;
    background-color: rgba(0, 120, 215, 0.1);
    color: #0078d7;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Game Meta Data (for normal game cards) */
.game-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

.game-rating {
    display: flex;
    align-items: center;
}

.game-rating .star {
    color: #ffbb00;
    margin-right: 5px;
    font-size: 14px;
}

.game-rating .rating-value {
    font-weight: bold;
    font-size: 14px;
    color: #333;
}

.category-tag {
    display: inline-block;
    padding: 3px 8px;
    background-color: rgba(0, 120, 215, 0.1);
    color: #0078d7;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Categories Section */
.categories {
    text-align: center;
    padding: 3rem 2rem;
    background-color: #f9f9f9;
}

.categories h2 {
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #333;
}

.category-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.category-button {
    padding: 0.7rem 1.5rem;
    background-color: #fff;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s;
    border: 1px solid #ddd;
}

.category-button:hover, .category-button.active {
    background-color: #0078d7;
    color: #fff;
    border-color: #0078d7;
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.game-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.game-image {
    width: 100%;
    height: 180px;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-info {
    padding: 1.5rem;
}

.game-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.game-info p {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.play-button {
    display: inline-block;
    background-color: #0078d7;
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.play-button:hover {
    background-color: #0063b1;
}

/* Load More Button */
.load-more {
    text-align: center;
    padding: 2rem;
}

.gate-title-container {
    text-align: center;
    padding: 20px 0;
    background-color: #f4f4f4;
    margin-bottom: 20px;
}


#load-more-btn {
    background-color: transparent;
    border: 2px solid #0078d7;
    color: #0078d7;
    padding: 0.8rem 2.5rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
}

#load-more-btn:hover {
    background-color: #0078d7;
    color: white;
}

/* SEO Content Section */
.seo-content {
    background-color: #fff;
    padding: 4rem 2rem;
    margin: 2rem 0;
}

.seo-content .container {
    max-width: 1000px;
}

.seo-content h2 {
    font-size: 2rem;
    color: #0078d7;
    margin-bottom: 1.5rem;
    text-align: center;
}

.seo-content h3 {
    font-size: 1.5rem;
    color: #333;
    margin: 2rem 0 1rem;
}

.seo-content h4 {
    font-size: 1.2rem;
    color: #0078d7;
    margin-bottom: 0.5rem;
}

.seo-content p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: #444;
}

.seo-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    list-style-type: disc;
}

.seo-content ul li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.category-descriptions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.category-item {
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .category-descriptions {
        grid-template-columns: 1fr;
    }
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    padding: 3rem 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.footer-section p {
    margin-bottom: 1rem;
    color: #ccc;
}

.footer-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: #ccc;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #fff;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icons a {
    color: #fff;
    font-size: 1.5rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
    color: #fff;
    transform: translateY(-3px);
}

/* 为每个社交图标设置特定的背景色 */
.social-icon.facebook:hover {
    background-color: #3b5998;
}

.social-icon.twitter:hover {
    background-color: #1da1f2;
}

.social-icon.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.copyright {
    background-color: #222;
    color: #aaa;
    text-align: center;
    padding: 1.5rem;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0.5rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .features {
        flex-direction: column;
        align-items: center;
    }
    
    .feature {
        width: 100%;
        max-width: 300px;
    }
    
    footer {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .category-buttons {
        flex-direction: column;
    }
}

/* 添加"View All"链接的样式 */
.view-all {
    font-size: 16px;
    color: #0078d7;
    margin-left: 15px;
    font-weight: normal;
    text-decoration: none;
    transition: color 0.3s;
}

.view-all:hover {
    color: #005a9e;
    text-decoration: underline;
}

/* 主标题容器样式 - 用于新增页面 */
.main-title-container {
    background: linear-gradient(135deg, #0078d7, #00c6ff);
    color: #fff;
    text-align: center;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
}

.main-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* 新页面样式 - 使用不同的类名避免与game.html冲突 */
.page-title-container {
    background: linear-gradient(135deg, #0078d7, #00c6ff);
    color: #fff;
    text-align: center;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* 新增页面的内容区域样式 */
.featured-section, .new-games-section, .popular-games-section {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
}

.featured-section h2, .new-games-section h2, .popular-games-section h2 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
    color: #333;
}

.featured-section p, .new-games-section p, .popular-games-section p {
    margin-bottom: 2rem;
    color: #666;
    font-size: 1.1rem;
}

/* 新增页面游戏网格样式 - 改为4列布局与首页一致 */
#featured-games-grid, #new-games-grid, #popular-games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 0 auto;
    max-width: 1200px;
}

@media (max-width: 768px) {
    #featured-games-grid, #new-games-grid, #popular-games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    #featured-games-grid, #new-games-grid, #popular-games-grid {
        grid-template-columns: 1fr;
    }
} 