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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #ff6b6b, #8a2be2);
    color: #333;
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
}

.container {
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    background: linear-gradient(to right, #ff6b6b, #8a2be2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav ul {
    display: flex;
    list-style: none;
}

.nav ul li {
    margin-left: 20px;
}

.nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    padding: 8px 15px;
    border-radius: 20px;
}

.nav ul li a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ff6b6b;
    transform: translateY(-2px);
}

.search-icon,
.menu-icon {
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: 15px;
    display: none;
}

/* PC Search Box */
.search-box {
    display: none;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 5px 15px;
    margin-right: 15px;
}

.search-input {
    background: transparent;
    border: none;
    color: white;
    padding: 5px;
    width: 200px;
    outline: none;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-button {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
}

/* Mobile Search Box - New Design */
.mobile-search-container {
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    background: rgba(0, 0, 0, 0.95);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    display: none;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-search-container.active {
    display: block;
}

.mobile-search-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.mobile-search-input {
    flex: 1;
    padding: 12px 15px;
    font-size: 1rem;
    border: none;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    outline: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.mobile-search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.mobile-search-input:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 107, 107, 0.5);
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.3);
}

.mobile-search-btn {
    padding: 12px 20px;
    font-size: 1rem;
    background: linear-gradient(135deg, #ff6b6b, #8a2be2);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    letter-spacing: 1px;
    white-space: nowrap;
}

.mobile-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.4);
}

.close-mobile-search {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-mobile-search:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Media Query for PC */
@media (min-width: 769px) {
    .search-box {
        display: flex;
    }

    .search-icon {
        display: none;
    }

    .mobile-search-container {
        display: none !important;
    }
}

/* Media Query for Mobile */
@media (max-width: 768px) {
    .search-box {
        display: none;
    }

    .search-icon {
        display: block;
    }

    .mobile-search-container {
        width: 100vw;
        height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 9909999;
        padding-top: 100px;
    }
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1001;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mobile-menu.active {
    display: flex;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
}

.mobile-menu ul {
    list-style: none;
    text-align: center;
}

.mobile-menu ul li {
    margin: 20px 0;
}

.mobile-menu ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.mobile-menu ul li a:hover {
    color: #ff6b6b;
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1002;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.search-overlay.active {
    display: flex;
}

.search-container {
    width: 90%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.search-title {
    text-align: center;
    color: white;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.search-form {
    display: flex;
    flex-direction: row;
    gap: 15px;
    align-items: center;
}

#search-input {
    flex: 1;
    padding: 15px 20px;
    font-size: 1.2rem;
    border: none;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    outline: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

#search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

#search-input:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 107, 107, 0.5);
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.3);
}

#search-btn {
    padding: 15px 25px;
    font-size: 1.2rem;
    background: linear-gradient(135deg, #ff6b6b, #8a2be2);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    letter-spacing: 1px;
    white-space: nowrap;
}

#search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.4);
}

.close-search-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-search-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Banner Styles */
.banner {
    position: relative;
    padding: 100px 0;
    min-height: 600px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Banner Background Shapes */
.banner-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.banner-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.banner-shape.shape-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    top: -10%;
    left: -5%;
    animation-delay: 0s;
}

.banner-shape.shape-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    bottom: -10%;
    right: -5%;
    animation-delay: 5s;
}

.banner-shape.shape-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.banner .container {
    position: relative;
    z-index: 1;
}

.banner-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Banner Text Section */
.banner-text {
    color: white;
}

.banner-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.banner-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.gradient-text {
    background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.banner-description {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 30px;
    opacity: 0.95;
    max-width: 500px;
}

.banner-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 35px;
}

.banner-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.banner-stats .stat-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

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

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-top: 4px;
}

.banner-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.banner-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.banner-btn.primary {
    background: white;
    color: #667eea;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.banner-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.banner-btn.secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    backdrop-filter: blur(10px);
}

.banner-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

/* Banner Showcase Section */
.banner-showcase {
    position: relative;
}

.showcase-wrapper {
    position: relative;
    height: 450px;
    perspective: 1000px;
}

.game-card-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateX(100px) rotateY(10deg);
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
}

.game-card-preview.active {
    opacity: 1;
    transform: translateX(0) rotateY(0);
    pointer-events: all;
}

.game-card-preview img {
    width: 100%;
    height: 75%;
    object-fit: cover;
}

.game-info {
    padding: 20px;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.05));
}

.game-info h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 8px;
}

.game-category {
    display: inline-block;
    padding: 6px 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.showcase-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
}

.control-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: white;
    border: none;
    font-size: 1.8rem;
    color: #667eea;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.control-btn:hover {
    background: #667eea;
    color: white;
    transform: scale(1.1);
}

.showcase-dots {
    display: flex;
    gap: 10px;
}

.showcase-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.showcase-dots .dot.active {
    background: white;
    width: 35px;
    border-radius: 6px;
}



/* Featured Games Section */
.featured-games {
    padding: 60px 0;
}

.featured-games h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.section-description {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #e0e0e0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.game-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    cursor: pointer;
}

/* 为游戏卡片添加渐变色边框效果 */
.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(-225deg, #A445B2 0%, #D41872 52%, #FF0066 100%);
    z-index: -1;
    border-radius: 10px;
    padding: 2px;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
}

.game-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.game-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.game-card-content {
    padding: 20px;
    background: linear-gradient(to bottom, #fff 0%, #f9f9f9 100%);
}

.game-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: #2c3e50;
    font-weight: 600;
    line-height: 1.4;
}

.game-card p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.play-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #ff6b6b, #8a2be2);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
}

.play-btn:hover {
    background: linear-gradient(135deg, #ff5252, #7a1ad2);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.4);
}

/* Top Rated Games Section */
.top-rated-games {
    padding: 60px 0;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.1), rgba(255, 107, 107, 0.1));
}

.top-rated-games h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.top-rated-games .section-description {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #e0e0e0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Shooting Games Section */
.shooting-games {
    padding: 60px 0;
    background: linear-gradient(135deg, rgba(255, 87, 34, 0.1), rgba(244, 67, 54, 0.1));
}

.shooting-games h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.shooting-games .section-description {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #e0e0e0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Adventure Games Section */
.adventure-games {
    padding: 60px 0;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(139, 195, 74, 0.1));
}

.adventure-games h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.adventure-games .section-description {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #e0e0e0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.games-grid.top-rated {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.game-card.top-rated {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

/* 为评分最高的游戏卡片添加渐变色边框效果 */
.game-card.top-rated::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(-225deg, #A445B2 0%, #D41872 52%, #FF0066 100%);
    z-index: -1;
    border-radius: 15px;
    padding: 2px;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
}

.game-card.top-rated:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.game-card.top-rated::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #ff6b6b, #8a2be2);
}

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

.game-card-content.top-rated {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.game-card-content.top-rated h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #333;
}

.game-card-content.top-rated .game-rating {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.game-rating .stars {
    color: #ffc107;
    font-size: 1.2rem;
    margin-right: 10px;
}

.game-rating .rating-value {
    font-weight: bold;
    color: #ff6b6b;
    font-size: 1.1rem;
}

.game-card-content.top-rated p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.game-card-content.top-rated .play-btn {
    align-self: flex-start;
    padding: 12px 25px;
    background: linear-gradient(135deg, #ff6b6b, #8a2be2);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.game-card-content.top-rated .play-btn:hover {
    background: linear-gradient(135deg, #ff5252, #7a1ad2);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.4);
}

/* New Releases Section */
.new-releases {
    padding: 60px 0;
}

.new-releases h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.games-carousel {
    position: relative;
    overflow: hidden;
}

.carousel-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    flex: 0 0 300px;
    margin-right: 20px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
}

/* 为新发布游戏卡片添加渐变色边框效果 */
.carousel-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(-225deg, #A445B2 0%, #D41872 52%, #FF0066 100%);
    z-index: -1;
    border-radius: 10px;
    padding: 2px;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
}

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

.carousel-item-content {
    padding: 15px;
}

.carousel-item h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.carousel-nav button {
    background: linear-gradient(135deg, #ff6b6b, #8a2be2);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin: 0 10px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.carousel-nav button:hover {
    transform: scale(1.1);
}

/* Popular Categories Section */
.popular-categories {
    padding: 60px 0;
    background: rgba(255, 255, 255, 0.1);
}

.popular-categories h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.category-card {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.3s;
}

.category-card:hover {
    transform: scale(1.05);
}

.category-card h3 {
    color: #333;
    font-size: 1.2rem;
}

.category-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.category-card a:hover {
    color: inherit;
}

/* Footer Styles */
.footer {
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 50px 0 20px;
}

.footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.footer-section h2,
.footer-section h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    background: linear-gradient(to right, #ff6b6b, #8a2be2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

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

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

.footer-logo p {
    margin-bottom: 20px;
    color: #ccc;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.social-icons a:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Font Awesome图标样式 */
.social-icons .fab {
    font-size: 1.2rem;
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid #444;
    color: #ccc;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .banner {
        padding: 40px 0;
    }

    .banner .container {
        flex-direction: column;
        gap: 30px;
    }

    .banner-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .banner-icons {
        display: none;
    }

    .banner-text h2 {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .banner-text p {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }

    .banner-stats {
        justify-content: center;
        gap: 20px;
        margin-bottom: 20px;
    }

    .stat-item {
        flex: 1;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    .banner-btn {
        padding: 12px 25px;
        font-size: 1.1rem;
    }

    .banner-image {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .image-slider {
        height: 250px;
        width: 100%;
        margin: 0 auto;
        position: relative;
        left: 0;
        transform: none;
    }

    .latest-games h2,
    .popular-categories h2 {
        font-size: 2rem;
    }

    /* 优化移动端游戏网格布局 */
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    /* 优化移动端Top Rated Games布局 */
    .games-grid.top-rated {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    /* 优化移动端分类网格布局 */
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    /* 优化移动端游戏卡片 */
    .game-card {
        border-radius: 8px;
    }

    .game-card::before {
        border-radius: 8px;
    }

    .game-card img {
        height: 120px;
    }

    .game-card h3 {
        font-size: 1.1rem;
    }

    .game-card p {
        font-size: 0.8rem;
    }

    /* 优化移动端Top Rated Games卡片 */
    .game-card.top-rated img {
        height: 150px;
    }

    .game-card-content.top-rated h3 {
        font-size: 1.2rem;
    }

    .game-card-content.top-rated p {
        font-size: 0.85rem;
    }

    .game-card-content.top-rated .play-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    /* 优化移动端轮播导航按钮 */
    .carousel-nav button {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    /* 优化移动端页脚 */
    .footer {
        padding: 40px 0 15px;
    }

    .footer .container {
        gap: 20px;
    }

    .footer-section {
        margin-bottom: 15px;
    }

    .footer-bottom {
        padding-top: 20px;
        margin-top: 20px;
    }

    /* 优化移动端搜索框 */
    .search-container {
        width: 95%;
        padding: 20px;
    }

    .search-title {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .search-form {
        flex-direction: column;
    }

    #search-input {
        padding: 12px 15px;
        font-size: 1rem;
    }

    #search-btn {
        padding: 12px;
        font-size: 1rem;
        width: 100%;
    }

    /* 优化移动端新发布游戏轮播 */
    .new-releases {
        padding: 40px 0;
    }

    .new-releases h2 {
        font-size: 2rem;
        margin-bottom: 20px;
    }

    .carousel-item {
        flex: 0 0 calc(100% - 20px);
        margin-right: 15px;
        border-radius: 8px;
    }

    .carousel-item::after {
        border-radius: 8px;
    }

    .carousel-item img {
        height: 150px;
    }

    .carousel-item h3 {
        font-size: 1rem;
    }

    /* 优化移动端特色游戏 */
    .featured-games {
        padding: 40px 0;
    }

    .featured-games h2 {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .section-description {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .social-icons {
        justify-content: center;
        margin-top: 15px;
    }

    .social-icons a {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .social-icons span {
        font-size: 1.2rem;
        margin-right: 10px;
    }
}

@media (max-width: 480px) {

    .search-icon,
    .menu-icon {
        display: block;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    .banner {
        height: auto;
        padding: 30px 0;
    }

    .banner h2 {
        font-size: 1.5rem;
    }

    .banner p {
        font-size: 1rem;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        /* grid-template-columns: 1fr; */
    }

    /* 进一步优化超小屏幕设备 */
    .games-grid.top-rated {
        grid-template-columns: 1fr;
    }

    .game-card img {
        height: 150px;
    }

    .game-card.top-rated img {
        height: 180px;
    }

    .stat-item {
        flex: 1;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .banner-btn {
        padding: 12px 20px;
        font-size: 1rem;
    }

    .section-description {
        font-size: 0.9rem;
    }

    .popular-categories {
        padding: 40px 0;
    }

    .popular-categories h2 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .top-rated-games {
        padding: 40px 0;
    }

    .top-rated-games h2 {
        font-size: 1.8rem;
    }

    .footer .container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-section h2,
    .footer-section h3 {
        font-size: 1.3rem;
    }

    .image-slider {
        height: 200px;
        width: 100%;
        margin: 0 auto;
        position: relative;
        left: 0;
        transform: none;
    }

    /* 进一步优化超小屏幕的游戏卡片 */
    .game-card-content {
        padding: 12px;
    }

    .game-card h3 {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .game-card p {
        font-size: 0.75rem;
        margin-bottom: 12px;
    }

    .play-btn {
        padding: 8px;
        font-size: 0.9rem;
    }

    /* 优化超小屏幕的轮播 */
    .carousel-item {
        flex: 0 0 calc(100% - 15px);
        margin-right: 10px;
        border-radius: 6px;
    }

    .carousel-item::after {
        border-radius: 6px;
    }

    .carousel-item img {
        height: 130px;
    }

    .carousel-item-content {
        padding: 12px;
    }

    .carousel-item h3 {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }

    .carousel-nav {
        margin-top: 15px;
    }

    .carousel-nav button {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
        margin: 0 5px;
    }

    /* 优化超小屏幕的统计信息 */
    .banner-stats {
        /* flex-direction: column; */
        gap: 10px;
    }

    .stat-item {
        margin-bottom: 10px;
    }

    /* 优化超小屏幕的页脚 */
    .footer {
        padding: 30px 0 10px;
    }

    .footer-section {
        margin-bottom: 10px;
    }

    .footer-logo p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .social-icons span {
        font-size: 1.2rem;
        margin-right: 10px;
    }

    .footer-bottom {
        padding-top: 15px;
        margin-top: 15px;
        font-size: 0.8rem;
    }

    /* 优化超小屏幕搜索框 */
    .search-container {
        width: 95%;
        padding: 15px;
    }

    .search-title {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }

    .search-form {
        flex-direction: column;
    }

    #search-input {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    #search-btn {
        padding: 10px;
        font-size: 0.9rem;
        width: 100%;
    }

    .close-search-btn {
        top: 10px;
        right: 10px;
        font-size: 1.8rem;
        width: 35px;
        height: 35px;
    }

    /* 优化超小屏幕游戏卡片 */
    .game-card {
        border-radius: 6px;
    }

    .game-card::before {
        border-radius: 6px;
    }

    .game-card.top-rated {
        border-radius: 10px;
    }

    .game-card.top-rated::after {
        border-radius: 10px;
    }

    .carousel-item {
        border-radius: 6px;
    }

    .carousel-item::after {
        border-radius: 6px;
    }

    /* 推荐分类样式 */
    .recommended-categories {
        margin: 50px 0 30px;
        padding: 40px 20px;
        border-top: 1px solid #eee;
        background: linear-gradient(to bottom, rgba(248, 249, 250, 0.6) 0%, rgba(248, 249, 250, 0.2) 100%);
        border-radius: 15px;
        box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.05);
        position: relative;
        overflow: hidden;
    }

    .recommended-categories::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, #007bff, #0056b3, #007bff);
        animation: gradientMove 3s linear infinite;
        background-size: 200% 200%;
    }

    @keyframes gradientMove {
        0% {
            background-position: 0% 50%;
        }

        100% {
            background-position: 200% 50%;
        }
    }

    .recommended-categories h2 {
        text-align: center;
        margin-bottom: 35px;
        color: #212529;
        font-size: 2rem;
        font-weight: 800;
        position: relative;
        padding-bottom: 25px;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        animation: textGlow 2s ease-in-out infinite alternate;
    }

    @keyframes textGlow {
        from {
            text-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
        }

        to {
            text-shadow: 0 0 15px rgba(0, 123, 255, 0.6), 0 0 25px rgba(0, 123, 255, 0.4);
        }
    }

    .recommended-categories h2::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100px;
        height: 5px;
        background: linear-gradient(90deg, #007bff, #0056b3);
        border-radius: 3px;
        box-shadow: 0 2px 5px rgba(0, 123, 255, 0.3);
    }

    .recommended-categories h2::before {
        content: '★';
        position: absolute;
        top: -15px;
        left: 50%;
        transform: translateX(-50%);
        color: #007bff;
        font-size: 1.5rem;
        text-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
        animation: starPulse 1.5s ease-in-out infinite;
    }

    @keyframes starPulse {

        0%,
        100% {
            transform: translateX(-50%) scale(1);
        }

        50% {
            transform: translateX(-50%) scale(1.2);
        }
    }

    .categories-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 20px;
        margin-top: 25px;
        padding: 10px;
    }

    .category-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0;
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        border-radius: 20px;
        text-decoration: none;
        color: #333;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        border: 1px solid #e9ecef;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        position: relative;
        transform: translateY(0);
        min-height: 160px;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .category-card::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(45deg, transparent 50%, rgba(0, 123, 255, 0.03) 100%);
        z-index: -1;
        border-radius: 20px;
    }

    .category-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #007bff, #0056b3);
        transform: scaleX(0);
        transition: transform 0.3s ease;
        transform-origin: left;
    }

    .category-card:hover::before {
        transform: scaleX(1);
    }

    .category-card:hover {
        background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
        color: white;
        transform: translateY(-10px) rotate(2deg);
        box-shadow: 0 15px 35px rgba(0, 123, 255, 0.5);
    }

    .category-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 30px 20px;
        width: 100%;
        height: 100%;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .category-card:hover .category-content {
        transform: scale(1.05);
    }

    .category-card:hover .category-content {
        animation: bounce 0.6s ease;
    }

    @keyframes bounce {

        0%,
        20%,
        60%,
        100% {
            transform: scale(1.05);
        }

        40% {
            transform: scale(1.1);
        }

        80% {
            transform: scale(1.07);
        }
    }

    .category-icon {
        font-size: 2.8rem;
        margin-bottom: 20px;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        display: flex;
        align-items: center;
        justify-content: center;
        width: 70px;
        height: 70px;
        border-radius: 50%;
        background: linear-gradient(135deg, rgba(0, 123, 255, 0.1) 0%, rgba(0, 123, 255, 0.15) 100%);
        color: #007bff;
        box-shadow: 0 4px 10px rgba(0, 123, 255, 0.1);
        border: 2px solid rgba(0, 123, 255, 0.2);
        animation: pulse 2s infinite;
    }

    @keyframes pulse {
        0% {
            box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.3);
        }

        70% {
            box-shadow: 0 0 0 10px rgba(0, 123, 255, 0);
        }

        100% {
            box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
        }
    }

    .category-card:hover .category-icon {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.4) 100%);
        color: white;
        transform: scale(1.25) rotate(15deg);
        box-shadow: 0 8px 20px rgba(0, 123, 255, 0.4);
        border: 2px solid rgba(255, 255, 255, 0.4);
        animation: none;
    }

    .category-name {
        font-size: 1.1rem;
        font-weight: 700;
        text-align: center;
        transition: all 0.3s ease;
        line-height: 1.3;
        letter-spacing: 0.8px;
        color: #212529;
        margin-top: 5px;
        text-transform: uppercase;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        position: relative;
        padding: 5px 15px;
    }

    .category-name::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 2px;
        background: #007bff;
        transition: width 0.3s ease;
    }

    .category-card:hover .category-name {
        color: white;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        transform: translateY(-2px);
    }

    .category-card:hover .category-name::after {
        width: 50px;
    }

    /* 移动端适配 */
    @media (max-width: 768px) {
        .categories-grid {
            grid-template-columns: repeat(3, 1fr);
            gap: 18px;
            padding: 10px;
        }

        .category-card {
            min-height: 130px;
        }

        .category-icon {
            font-size: 2.2rem;
            margin-bottom: 15px;
            width: 55px;
            height: 55px;
            animation: pulse 3s infinite;
        }

        .category-name {
            font-size: 0.95rem;
        }

        .category-content {
            padding: 25px 15px;
        }
    }

    @media (max-width: 480px) {
        .categories-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
            padding: 8px;
        }

        .category-card {
            min-height: 120px;
        }

        .category-content {
            padding: 20px 12px;
        }

        .category-icon {
            font-size: 2rem;
            width: 50px;
            height: 50px;
            margin-bottom: 12px;
            animation: pulse 4s infinite;
        }

        .category-name {
            font-size: 0.9rem;
        }

        .social-icons {
            gap: 10px;
            margin-top: 10px;
        }

        .social-icons a {
            width: 30px;
            height: 30px;
            font-size: 0.9rem;
        }
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.back-to-top:active {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}

/* Banner Mobile Responsive */
@media (max-width: 1024px) {
    .banner {
        padding: 80px 0;
        min-height: 500px;
    }

    .banner-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .banner-title {
        font-size: 2.8rem;
    }

    .banner-description {
        font-size: 1.1rem;
    }

    .banner-stats {
        flex-wrap: wrap;
        gap: 15px;
    }

    .banner-stats .stat-item {
        flex: 1;
        min-width: 150px;
    }

    .showcase-wrapper {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .banner {
        padding: 60px 0;
        min-height: auto;
    }

    .banner-badge {
        font-size: 0.8rem;
        padding: 6px 16px;
    }

    .banner-title {
        font-size: 2rem;
    }

    .banner-description {
        font-size: 1rem;
        max-width: 100%;
    }

    .banner-stats {
        gap: 10px;
    }

    .banner-stats .stat-item {
        padding: 12px 15px;
        min-width: 100px;
    }

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

    .stat-number {
        font-size: 1.4rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .banner-actions {
        flex-direction: column;
        width: 100%;
    }

    .banner-btn {
        width: 100%;
        padding: 14px 24px;
        font-size: 1rem;
    }

    .showcase-wrapper {
        height: 300px;
    }

    .game-info h3 {
        font-size: 1.1rem;
    }

    .game-category {
        font-size: 0.75rem;
        padding: 4px 10px;
    }

    .control-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .showcase-dots .dot {
        width: 10px;
        height: 10px;
    }

    .showcase-dots .dot.active {
        width: 25px;
    }

    .banner-shape {
        filter: blur(60px);
    }

    .banner-shape.shape-1 {
        width: 350px;
        height: 350px;
    }

    .banner-shape.shape-2 {
        width: 300px;
        height: 300px;
    }

    .banner-shape.shape-3 {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 480px) {
    .banner {
        padding: 40px 0;
    }

    .banner-title {
        font-size: 1.6rem;
    }

    .banner-description {
        font-size: 0.9rem;
    }

    .banner-stats .stat-item {
        flex-basis: 100%;
    }

    .showcase-wrapper {
        height: 250px;
    }

    .banner-actions {
        gap: 10px;
    }
}