/* 主要样式文件 */

/* 头部样式 */
#header {
    width: 100%;
    height: 80px;
    background-color: #222325;
    position: relative;
    z-index: 1000;
}

#logo {
    float: left;
    width: auto;
    height: 80px;
    display: flex;
    align-items: center;
    margin-left: 150px;
}

/* 导航菜单样式 */
#nav {
    float: right;
    height: 80px;
    display: flex;
    align-items: center;
    margin-right: 150px;
}

#nav ul {
    display: flex;
    gap: 30px;
}

#nav li {
    list-style: none;
}

#nav a {
        color: #fff;
        text-decoration: none;
        font-size: 16px;
        padding: 8px 16px;
        border-radius: 4px;
    }

#logo img {
    max-height: 60px;
}

/* 横幅样式 */
#banner {
    width: 100%;
    height: 550px;
    background-color: #f0f0f0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner_inner {
    width: 100%;
    height: 100%;
    position: relative;
}

.banner_pic {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.banner_pic img,
.banner_pic video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.banner_pic img,
.banner_pic video {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.banner_pic img.show,
.banner_pic video.show {
    opacity: 1;
    z-index: 1;
}

.banner_pic img.hide,
.banner_pic video.hide {
    opacity: 0;
    z-index: 0;
}

.banner_list {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: none; /* 隐藏切换白点指示器 */
}

.banner_list ul {
    display: flex;
    gap: 10px;
}

.banner_list li {
        width: 12px;
        height: 12px;
        background-color: rgba(255, 255, 255, 0.5);
        border-radius: 50%;
        cursor: pointer;
        text-indent: -9999px;
        overflow: hidden;
    }

    .banner_list li.on {
        background-color: #fff;
        width: 30px;
        border-radius: 6px;
    }

.banner_button {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    z-index: 2;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    display: none; /* 简化版轮播不显示按钮 */
}

.banner_button span {
        width: 40px;
        height: 80px;
        background-color: rgba(0, 0, 0, 0.3);
        color: #fff;
        font-size: 30px;
        line-height: 80px;
        text-align: center;
        cursor: pointer;
        user-select: none;
    }

/* 内容区样式 */
.content {
    width: 100%;
    padding: 40px 20px;
}

/* 游戏列表样式 */
.game-list {
    max-width: 1280px;
    margin: 0 auto 60px;
    padding: 0 10px;
}

/* 标题栏容器样式 - 包含标题和标签索引 */
.game-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e91e63;
}

.game-list h2 {
    font-size: 24px;
    margin: 0;
    color: #333;
    text-align: left;
    font-weight: bold;
}

/* 标签索引容器样式 */
.tag-index {
    display: flex;
    justify-content: flex-end;
    padding: 0;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
}

/* 标签索引项样式 */
.tag-index-item {
    padding: 6px 16px;
    background-color: #f0f0f0;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    border-radius: 0;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.tag-index-item:hover {
    background-color: #e91e63;
    color: #fff;
}

.tag-index-item.active {
    background-color: #e91e63;
    color: #fff;
    border-color: #e91e63;
}

.game-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* 确保卡片尺寸为403*320（包括边框） */
.game-item {
    box-sizing: border-box;
    width: 403px;
    height: 350px;
    background-color: #fff;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    border: 8px solid #fff;
    margin: 8px auto;
}

.game-card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}





.game-tag-container {
    padding: 5px 10px 5px 0;
    display: flex;
    gap: 2px;
    flex-wrap: wrap;
}
/* 游戏标签容器样式 */
.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 5px 0;
    padding: 1px 0;
}

/* 游戏标签样式 */
.game-tag {
    padding: 3px 8px;
    color: white;
    font-size: 10px;
    font-weight: bold;
    background-color: #ff0000;
    margin-right: 2px;
    border-radius: 2px;
}

.game-tag.hot {
    background-color: #ff0000;
}

.game-tag.new {
    background-color: #ff0000;
}

.game-tag.recommend {
    background-color: #ff0000;
}

.game-tag.discount {
    background-color: #ff0000;
}

.game-tag.classic {
    background-color: #ff0000;
}

.game-tag.free {
    background-color: #ff0000;
}

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

.game-card h3 {
    font-size: 12px;
    color: #666;
    margin: 10px 0 5px;
    padding: 5px 0;
    text-align: left;
    line-height: 1;
}

.version-desc {
    font-size: 12px;
    color: #666;
    margin: 10px 0 8px;
    padding: 2px 0;
    text-align: left;
    line-height: 1.1;
}

.game-buttons {
    display: flex;
    justify-content: center;
    padding: 0 0 8px;
    margin-top: auto;
    gap: 8px;
}

.game-btn {
    flex: 0 0 auto;
    height: 36px;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #2196f3;
    margin: 0 8px;
    color: #fff;
    text-align: center;
    font-size: 12px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}



.game-btn:hover {
    background-color: #1976d2;
}

.version-desc {
    font-size: 12px;
    color: #666;
    margin: 0 0 10px;
    padding: 5px 0;
    text-align: left;
    line-height: 1.1;
}



/* 卡片区域样式 */
.cards-section {
    max-width: 1280px;
    margin: -180px auto 60px;
    position: relative;
    z-index: 10;
}

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

.card {
        background-color: #fff;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        border: 1px solid #fff;
    }

.card img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
    font-weight: bold;
}

.card-content p {
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.card-btn {
    display: inline-block;
    padding: 8px 20px;
    background-color: #e91e63;
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.card-btn:hover {
    background-color: #c2185b;
    transform: scale(1.05);
}

/* 页脚样式 */
footer {
    width: 100%;
    background-color: #222325;
    color: #fff;
    padding: 30px 0;
}

.footer-content {
    width: 100%;
    text-align: center;
}

.footer-content p {
    margin: 10px 0;
    font-size: 14px;
    color: #aaa;
}

/* 响应式设计 */
@media (max-width: 1240px) {
    .content {
        width: 90%;
    }
    
    .game-items {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .game-item {
        width: 100%;
        max-width: 403px;
    }
}

@media (max-width: 992px) {
    .game-items {
        grid-template-columns: 1fr;
    }
    
    .game-item {
        width: 100%;
        max-width: 403px;
    }
}

@media (max-width: 768px) {
    #header {
        height: 60px;
    }
    
    #logo {
        height: 60px;
    }
    
    #banner {
        height: 300px;
    }
    
    .content {
        padding: 20px 10px;
    }
    
    .game-list {
        margin-bottom: 40px;
    }
    
    .game-list h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .game-items,
    .activity-items {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .banner_button span {
        width: 30px;
        height: 60px;
        font-size: 20px;
        line-height: 60px;
    }
}