/* 休闲游戏页面样式 */

/* 整体背景 */
body {
    background: linear-gradient(135deg, #1a0a3f 0%, #2a1a4f 50%, #1a0a3f 100%);
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(102, 126, 234, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(102, 126, 234, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

body > * {
    position: relative;
    z-index: 1;
}

/* 调整页面顶部间距 */
.container {
    margin-top: 4.5rem;
    padding: 2rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* 游戏展示区域基础样式 */
.game-showcase {
    background: transparent;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 3rem;
    border: none;
}

/* 第一个游戏：三列布局（图标-信息-视频） */
.game-showcase-1 {
    display: grid;
    grid-template-columns: 140px auto 350px;
    gap: 2rem;
    align-items: start;
    justify-content: center;
    max-width: fit-content;
    margin: 0 auto;
}

/* 第二个游戏：整体布局 */
.game-showcase-2 {
    max-width: 880px;
    margin: 0 auto;
}

/* 第二个游戏的标题 */
.section-title-2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.2rem;
    margin-top: 0;
}

/* 第二个游戏内容区域 */
.game-2-content {
    display: grid;
    grid-template-columns: 1fr 270px;
    gap: 2rem;
    align-items: start;
}

/* 游戏图标样式 */
.game-icon {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 140px;
}

.game-icon img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 游戏信息区域 */
.game-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 400px;
}

.game-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.game-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.game-features li {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    padding-left: 0;
    line-height: 1.6;
}

/* 竖屏视频容器 */
.game-video {
    display: flex;
    justify-content: center;
}

.video-wrapper-vertical {
    position: relative;
    width: 90% !important;  /* 占据屏幕90%宽度 */
    max-width: 400px !important;  /* 最大400px */
    padding-bottom: 165%; /* 增加高度以容纳控制条 */
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.video-wrapper-vertical iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* 横屏视频容器 */
.game-video-horizontal {
    width: 100%;
    max-width: 560px;
}

.video-wrapper-horizontal {
    position: relative;
    width: 100%;
    padding-bottom: 60%; /* 增加高度以容纳控制条 */
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.video-wrapper-horizontal iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* 第二个游戏的右侧信息区域 */
.game-info-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding-top: 0;
}

.game-icon-small {
    width: 110px;
    height: 110px;
}

.game-icon-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.game-description {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.game-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.game-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.5;
}

.game-year {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    font-style: italic;
}

.cta-section {
    background: transparent;
    color: #ffffff;
    text-align: center;
    padding: 4rem 2rem;
    margin-top: 4rem;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    color: rgba(255, 255, 255, 0.9);
}

.download-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.download-btn {
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .game-showcase-1 {
        grid-template-columns: 130px auto 300px;
        gap: 1.5rem;
        max-width: 100%; /* 占满父容器，避免被内容宽度限制 */
        width: 100%;
        margin: 0 auto;
    }

    .game-icon {
        width: 130px;
    }

    .game-showcase-2 {
        max-width: 800px;
    }

    .game-2-content {
        grid-template-columns: 1fr 250px;
        gap: 1.5rem;
    }

    .game-info {
        max-width: 350px;
    }

    .game-title {
        font-size: 1.8rem;
    }

    .game-features li {
        font-size: 1rem;
    }

    .video-wrapper-vertical {
        max-width: 280px;  /* 从 240px 增加到 280px */
    }

    .video-wrapper-horizontal {
        max-width: 500px;
    }

    .game-icon-small {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 992px) {
    .game-showcase-1 {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
        max-width: 100%; /* 占满父容器 */
        width: 100%;
    }

    .game-showcase-2 {
        padding: 2rem;
    }

    .game-2-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .game-icon,
    .game-info,
    .game-video,
    .game-video-horizontal,
    .game-info-right {
        justify-content: center;
        align-items: center;
    }

    .game-icon {
        width: auto;
    }

    .game-icon img {
        max-width: 150px;
    }

    .game-info {
        text-align: center;
        max-width: 100%;
    }

    .game-features {
        display: block;
        text-align: left;
        max-width: 300px;
        margin: 0 auto;
    }

    .video-wrapper-vertical {
        max-width: 380px;  /* 从 340px 增加到 380px */
    }

    .video-wrapper-horizontal {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .container {
        margin-top: 4rem;
        padding: 1rem;
    }

    .game-showcase {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .game-title {
        font-size: 1.6rem;
    }

    .game-features li {
        font-size: 0.95rem;
        margin-bottom: 0.8rem;
    }

    /* 增加手机版视频尺寸 */
    .video-wrapper-vertical {
        max-width: 380px;  /* 从 320px 大幅增加到 380px */
    }

    .video-wrapper-horizontal {
        max-width: 100%;
    }

    .game-icon-small {
        width: 90px;
        height: 90px;
    }

    .game-subtitle {
        font-size: 1.1rem;
    }

    .game-text {
        font-size: 0.9rem;
    }

    .cta-section h2 {
        font-size: 2rem;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .download-btn {
        width: 200px;
    }
}

@media (max-width: 480px) {
    .game-showcase {
        padding: 1.2rem;
    }

    .game-icon img {
        max-width: 120px;
    }

    .game-title {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    .game-features li {
        font-size: 0.9rem;
    }

    /* 小屏手机视频尺寸优化 */
    .video-wrapper-vertical {
        max-width: 350px;  /* 从 280px 增加到 350px */
    }

    .video-wrapper-horizontal {
        max-width: 100%;
        padding-bottom: 65%; /* 调整比例适应手机 */
    }

    .game-icon-small {
        width: 80px;
        height: 80px;
    }
}


