/* Banner样式 */
.banner-section {
    margin-top: 60px;
    position: relative;
    width: 100%;
    height: 864px; /* 1080 * 0.7 */
    overflow: hidden;
}

.banner-container {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 1536px; /* 1920 * 0.7 */
    margin: 0 auto;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.banner-slide.active {
    opacity: 1;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.banner-prev,
.banner-next {
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.banner-prev:hover,
.banner-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background: #fff;
}

/* 游戏列表页面样式 */
.game-list {
    padding: 50px 0;
    background-color: #1a1a1a;
    min-height: 100vh;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.game-card {
    background: #2a2a2a;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
    position: relative;
}

.game-card:hover {
    transform: translateY(-5px);
}

.game-image {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 宽高比 */
    overflow: hidden;
}

.game-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-status {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 255, 0, 0.8);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
}

.game-status.coming-soon {
    background: rgba(255, 165, 0, 0.8);
}

.game-card h3 {
    color: #fff;
    padding: 15px;
    margin: 0;
    font-size: 1.1rem;
    text-align: center;
}

.game-card .btn {
    display: block;
    margin: 0 15px 15px;
    text-align: center;
}

/* 语言切换样式 */
.language-switch {
    display: flex;
    align-items: center;
    margin-left: 2rem;
}

.language-switch a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
}

.language-switch span {
    color: #666;
    margin: 0 10px;
}

.language-switch a.active {
    color: #666;
}

/* 响应式设计 */
@media (max-width: 1920px) {
    .banner-section {
        height: calc(100vw * 0.45); /* 16:9 比例 * 0.8 */
    }
}

@media (max-width: 1200px) {
    .game-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .game-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .game-grid {
        grid-template-columns: 1fr;
    }
    
    .game-list {
        padding: 30px 0;
    }

    .banner-controls {
        display: none;
    }
} 