/* 游戏分区显示样式 */

/* 分区容器样式 */
#hostGameDiv {
    margin-bottom: 40px;
}

/* 修复游戏卡片样式 - 适配新的HTML结构 */
#premiumGame .col-3,
#normalGame .col-3,
#retroGame .col-3,
#closedGame .col-3 {
    margin-bottom: 30px;
}

/* 卡片布局居中显示 - 当不满4个时居中 */
#premiumGame,
#normalGame,
#retroGame,
#closedGame {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}

/* 当卡片数量少于4个时居中显示 */
#premiumGame:not(:has(.col-3:nth-child(4))),
#normalGame:not(:has(.col-3:nth-child(4))),
#retroGame:not(:has(.col-3:nth-child(4))),
#closedGame:not(:has(.col-3:nth-child(4))) {
    justify-content: center;
}

/* 兼容性方案：使用JavaScript动态添加居中类 */
.game-row-center {
    justify-content: center !important;
}

#premiumGame .con,
#normalGame .con,
#retroGame .con,
#closedGame .con {
    background: transparent;
    overflow: hidden;
    -webkit-transition: 0.5s;
    transition: 0.5s;
}

#premiumGame .con .pic .off_ws,
#normalGame .con .pic .off_ws,
#retroGame .con .pic .off_ws,
#closedGame .con .pic .off_ws {
    position: absolute;
    background: rgba(0, 0, 0, 0.6);
    width: 100%;
    height: 100%;
    z-index: 99;
    text-align: center;
    padding-top: 50%;
    -webkit-transition: 0.3s;
    transition: 0.3s;
    opacity: 0;
}

#premiumGame .pic .off_ws a,
#normalGame .pic .off_ws a,
#retroGame .pic .off_ws a,
#closedGame .pic .off_ws a {
    padding: 10px 50px;
}

#premiumGame .con .pic img,
#normalGame .con .pic img,
#retroGame .con .pic img,
#closedGame .con .pic img {
    width: 100%;
    height: 160px;
    -webkit-transition: 0.5s;
    transition: 0.5s;
}

#premiumGame .con .btns,
#normalGame .con .btns,
#retroGame .con .btns,
#closedGame .con .btns {
    border-top: 1px rgba(0, 0, 0, 0.1) solid;
}

#premiumGame .con .btns a,
#normalGame .con .btns a,
#retroGame .con .btns a,
#closedGame .con .btns a {
    height: 50px;
    line-height: 50px;
    display: block;
    width: 33.3%;
    text-decoration: none;
}

#premiumGame .con .btns a:last-child,
#normalGame .con .btns a:last-child,
#retroGame .con .btns a:last-child,
#closedGame .con .btns a:last-child {
    border: none;
}

#premiumGame .con:hover,
#normalGame .con:hover,
#retroGame .con:hover,
#closedGame .con:hover {
    box-shadow: 0 15px 20px rgba(100, 100, 100, 0.1);
    -webkit-transition: 0.5s;
    transition: 0.5s;
}

#premiumGame .con:hover .pic img,
#normalGame .con:hover .pic img,
#retroGame .con:hover .pic img,
#closedGame .con:hover .pic img {
    transform: scale(1.05);
    -webkit-transform: scale(1.05);
    -moz-transform: scale(1.05);
    -o-transform: scale(1.05);
    -ms-transform: scale(1.05);
    -webkit-transition: 0.5s;
    transition: 0.5s;
}

#premiumGame .con:hover .pic .off_ws,
#normalGame .con:hover .pic .off_ws,
#retroGame .con:hover .pic .off_ws,
#closedGame .con:hover .pic .off_ws {
    opacity: 1;
    padding-top: 17%;
    -webkit-transition: 0.3s;
    transition: 0.3s;
}

/* 游戏分区容器样式 */
.game-zones-container {
    margin-bottom: 40px;
}

/* 统一区域标题样式 */
.zone-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

.zone-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 15%;
    height: 4px;
    background: linear-gradient(transparent, #e6e6e6);
    border-radius: 2px;
}

/* 统一标题效果 - 霓虹灯 + 上下跳跃 */
.zone-title-neon, .zone-title-wave, .zone-title-rainbow {
    display: block;
    width: 100%;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}

.zone-title-neon span, .zone-title-wave span, .zone-title-rainbow span {
    color: #fff;
    text-shadow: 0 0 5px #0ff,
                 0 0 10px #0ff,
                 0 0 20px #0ff,
                 0 0 40px #0ff,
                 0 0 80px #0ff;
    animation: bounce 2s ease-in-out infinite;
    display: inline-block;
}



@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* 精品区样式 */
.premium-zone {
    padding: 0px;
    margin-bottom: 30px;
    position: relative;
}

.premium-zone .zone-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* 普通游戏区样式 */
.normal-zone {
    margin-bottom: 30px;
}

.normal-zone .zone-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* 复古生态区样式 */
.retro-zone {
    margin-bottom: 30px;
}

.retro-zone .zone-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}



/* 停开新区样式 */
.closed-zone {
    padding: 0px;
    margin-bottom: 30px;
}

.closed-zone .zone-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}



/* 区域分隔线 */
.zone-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #e0e0e0, transparent);
    margin: 30px 0;
    border: none;
}

/* 动态渐变线动画 */
@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

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

/* 空状态提示 */
.zone-empty {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 40px 20px;
}