
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.logo span {
    color: #f78c21;
}

.search-box {
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 20px;
    padding: 5px 15px;
    width: 300px;
}

.search-box input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    padding: 5px;
}

.search-box button {
    background: transparent;
    border: none;
    cursor: pointer;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #f78c21;
}

.section-title {
    font-size: 22px;
    margin: 30px 0 20px;
    color: #333;
    border-left: 4px solid #f78c21;
    padding-left: 10px;
}

.game-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.game-card {
    width: calc(25% - 15px);
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.game-image {
    width: 100%;
    height: 150px;
    background-color: #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #999;
    font-style: italic;
    overflow: hidden;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-info {
    padding: 15px;
}

.game-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
}

.game-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.4;
}

.play-button {
    display: inline-block;
    padding: 6px 12px;
    background-color: #f78c21;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s;
}

.play-button:hover {
    background-color: #e57a17;
}

footer {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
    margin-top: 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    text-decoration: underline;
}

.icp {
    font-size: 14px;
    margin-top: 10px;
}

/* 移动端侧边栏 */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100%;
    background-color: #fff;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    transition: left 0.3s ease;
    z-index: 1000;
    padding-top: 60px;
}

.mobile-sidebar.active {
    left: 0;
}

.mobile-sidebar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.mobile-sidebar ul {
    list-style: none;
    padding: 0;
}

.mobile-sidebar ul li {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.mobile-sidebar ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 999;
}

@media (max-width: 768px) {
    .mobile-sidebar-toggle {
        display: block;
        position: absolute;
        right: 41px;
    }
    #search{
        width: 100% !important;
    }

    .search-box {
        width: 200px;
    }

    nav ul {
        display: none;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
        margin-bottom: 15px;
    }

    .footer-links a {
        margin: 0 10px;
    }

    .icp {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .game-card {
        width: 100%;
    }

    header {
        flex-direction: column;
        gap: 15px;
    }

    .search-box {
        width: 100%;
    }
}