/* ================= 页面整体背景 ================= */



/* ================= 第二屏 (Games 游戏大厅) 沙盒隔离样式 ================= */

/* 用户资产信息顶栏 */
.games-section .user-info-box {
    display: none;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 12px 5%;
    background: rgba(255, 255, 255, 0.9); /* 半透明白色 */
    backdrop-filter: blur(5px); /* 毛玻璃效果 */
    border-bottom: 1px solid rgba(224, 224, 224, 0.5);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    box-sizing: border-box;
    z-index: 100;
}

.games-section .user-assets {
    display: flex;
    gap: 8px;
}

.games-section .asset-item {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(241, 245, 249, 0.95); /* 半透明背景 */
    backdrop-filter: blur(5px);
    padding: 4px 10px 4px 4px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    border: 1px solid rgba(226, 232, 240, 0.5);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    box-sizing: border-box;
}

.games-section #asset-diamond {
    color: #6366f1;
}
.games-section #asset-gold {
    color: #eab308;
}
.games-section #asset-power {
    color: #22c55e;
}

.games-section .asset-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
}

.games-section .user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.games-section .user-text {
    text-align: right;
}

.games-section #user-name {
    font-weight: bold;
    font-size: 14px;
    color: #1e293b;
}

.games-section #user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 游戏入口主区域 */
.games-section .game-lobby-wrapper {
    display: none;
	margin: 15px auto; /* 改为 auto 实现居中 */
    width: 100%;
    max-width: 900px;
    padding: 10px 15px;
    box-sizing: border-box;
    text-align: center;
    height: 88vh;
    overflow-y: auto;
    scrollbar-width: none;
}

.games-section .game-lobby-wrapper::-webkit-scrollbar {
    display: none;
}

/* 标题样式 */
.games-section .section-title {
    font-size: 20px;
    margin-bottom: 10px;
    color: #EEE;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.3); /* 文字阴影增强可读性 */
}

/* 剧本列表容器 */
.games-section .scripts-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2vh;
    width: 100%;
    margin-top: 10px;
    box-sizing: border-box;
}

/* 剧本卡片盒子 */
.games-section .script-card {
    position: relative;
    border-radius: 12px;
    height: 20vh;
    width: 95%;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 20px;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
    box-sizing: border-box;
    flex-shrink: 0;
    overflow: hidden;
    cursor: pointer;
    background-size: cover;
    background-position: center 30%;
}

/* 文字信息容器 */
.games-section .script-info {
    text-align: left;
    z-index: 2;
}

/* 剧本标题新样式 */
.games-section .script-title {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
}

/* 剧本简介样式 */
.games-section .script-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 6px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    font-weight: normal;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
}

.games-section .script-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 20%, rgba(0, 0, 0, 1) 100%);
    z-index: 1;
    transition: opacity 0.3s ease;
}

/* 剧本卡片背景绑定 */
.games-section .script-card.app {
    background-image: url('../image/bk_app.jpg');
}

.games-section .script-card.bk {
    background-image: url('../image/bk_0.jpg');
}


	
.games-section .script-card.pipi {
    background-image: url('../image/bk_pipi.jpg');	
}

/* 关于我们 */
.games-section .about-entrance {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background-color: rgba(241, 245, 249, 0.95); /* 半透明 */
    backdrop-filter: blur(5px);
    color: #64748b;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    margin: 15px auto 0 auto;
    transition: all 0.2s ease;
    border: 1px solid rgba(226, 232, 240, 0.5);
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.games-section .about-entrance:hover {
    background-color: rgba(226, 232, 240, 0.95);
    color: #334155;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.06);
}

.games-section .about-entrance:active {
    transform: translateY(1px);
}

/* ================= PC 端优化 ================= */
@media (min-width: 768px) {
    .games-section .game-lobby-wrapper {
        max-width: 1200px;
        height: auto;
		margin: 20px auto; /* 确保 PC 端也居中 */
        padding: 20px 30px;
    }

    .games-section .scripts-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        width: 100%;
    }

    .games-section .script-card {
        width: 100%;
        height: 0;
        padding: 0;
        padding-top: 56.25%;
    }

    .games-section .script-card .script-info {
        position: absolute;
        bottom: 20px;
        left: 20px;
        right: 20px;
    }

    .games-section .section-title {
        font-size: 28px;
    }
}

@media (min-width: 1200px) {
    .games-section .scripts-list {
        grid-template-columns: repeat(3, 1fr);
    }
}
