* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: #e0e0ff;
    min-height: 100vh;
    overflow-x: hidden;
}

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

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 0;
    animation: fadeInDown 1s ease;
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #ff9a9e, #fad0c4, #a1c4fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.subtitle {
    font-size: 1.2rem;
    color: #a9b7c6;
    max-width: 700px;
    margin: 0 auto;
}

.games-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.game-card {
    background: rgba(30, 35, 56, 0.8);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

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

.game-banner {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 3px solid #00cc99;
}

.game-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.game-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.game-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    margin-right: 15px;
    border: 2px solid #4db8ff;
    object-fit: cover;
}

.game-title {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 5px;
}

.game-genre {
    font-size: 0.9rem;
    color: #00cc99;
    font-weight: 500;
}

.game-description {
    color: #b8c2cc;
    margin-bottom: 20px;
    flex-grow: 1;
    font-size: 0.95rem;
}

.game-stats {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 15px;
    margin-top: auto;
}

.stat {
    display: flex;
    align-items: center;
    color: #a9b7c6;
    font-size: 0.9rem;
}

.stat i {
    margin-right: 8px;
    color: #4db8ff;
}

.rating {
    color: #ffcc00;
    font-weight: bold;
}

.platforms {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.platform {
    background: rgba(77, 184, 255, 0.2);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #4db8ff;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .games-container {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 600px) {
    h1 {
        font-size: 2.2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .games-container {
        grid-template-columns: 1fr;
    }
    
    .game-card {
        max-width: 100%;
    }
}



/* 分页控件样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    gap: 15px;
}

.pagination-btn {
    background: rgba(0, 195, 255, 0.2);
    color: #00f2fe;
    border: 1px solid rgba(0, 195, 255, 0.5);
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(0, 195, 255, 0.4);
    transform: translateY(-2px);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 10px;
}

.page-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 195, 255, 0.1);
    color: #a0a0ff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-number.active {
    background: linear-gradient(135deg, #00c3ff, #00f2fe);
    color: #0a0818;
    font-weight: bold;
}

.page-number:hover:not(.active) {
    background: rgba(0, 195, 255, 0.3);
    color: #ffffff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .pagination {
        flex-wrap: wrap;
    }
    
    .page-numbers {
        order: 3;
        width: 100%;
        justify-content: center;
        margin: 10px 0;
    }
}



/* 轮播图样式 */
.banner-carousel {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 20px;
    margin: 30px 0 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    flex-direction: column;
}

.carousel-item.active {
    opacity: 1;
    z-index: 1;
}

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

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(10, 8, 24, 0.95), transparent);
    padding: 30px;
    color: white;
    z-index: 2;
}

.game-title {
    font-size: 36px;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #00c3ff, #00f2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.game-desc {
    font-size: 18px;
    max-width: 800px;
    color: #c0c0ff;
    margin-bottom: 20px;
    line-height: 1.6;
}

.game-stats {
    display: flex;
    gap: 20px;
    font-size: 16px;
    color: #00c3ff;
}

.play-btn {
    background: linear-gradient(90deg, #00c3ff, #00f2fe);
    color: #0a0818;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    margin-top: 15px;
    box-shadow: 0 0 15px rgba(0, 195, 255, 0.4);
}

.play-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 195, 255, 0.6);
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10, 8, 24, 0.6);
    border: 1px solid rgba(0, 195, 255, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00c3ff;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.carousel-control:hover {
    background: rgba(0, 195, 255, 0.3);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-control.prev {
    left: 20px;
}

.carousel-control.next {
    right: 20px;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

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

.indicator.active {
    background: #00c3ff;
    transform: scale(1.2);
}