/* 游戏详情页面样式 */

.games-banner {
    width: 100%;
    text-align: center;
    background: white;
    padding: 0px 0;
    margin-top: 120px;
    overflow: visible;
    min-height: auto;
}

.banner-image {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: none !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain !important;
    object-position: center !important;
    overflow: visible !important;
}

.game-detail-main {
    padding: 40px 0;
    background: white;
    min-height: calc(100vh - 70px);
}


/* 游戏介绍区域 */
.game-intro-section {
    background: white;
    padding: 20px 0;
    margin-bottom: 40px;
}

.game-intro-content {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: flex-start;
    -ms-flex-align: flex-start;
    align-items: flex-start;
    position: relative;
    margin: 0 -10px;
}

/* 现代浏览器使用gap */
@supports (gap: 20px) {
    .game-intro-content {
        gap: 20px;
        -webkit-box-pack: unset;
        -ms-flex-pack: unset;
        justify-content: unset;
        margin: 0;
    }
}

/* IE兼容性优化 */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    .game-intro-content {
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
        -webkit-box-align: flex-start;
        -ms-flex-align: flex-start;
        align-items: flex-start;
        width: 100%;
        margin: 0;
    }
}


.game-intro-left {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: flex-start;
    -ms-flex-align: flex-start;
    align-items: flex-start;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    margin: 0 10px;
}

.game-intro-right {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: flex-start;
    -ms-flex-align: flex-start;
    align-items: flex-start;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    width: auto;
    margin: 0 10px;
}

/* 现代浏览器使用gap时的样式重置 */
@supports (gap: 20px) {
    .game-intro-left,
    .game-intro-right {
        margin: 0;
    }
}

/* IE兼容性优化 */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    .game-intro-left {
        -webkit-box-flex: 1;
        -ms-flex: 1;
        flex: 1;
        margin: 0 10px 0 0;
    }
    
    .game-intro-right {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 auto;
        flex: 0 0 auto;
        margin: 0 0 0 10px;
    }
}

.game-intro-right .section-title-image {
    margin-left: 0;
    margin-bottom: 15px;
}

.game-intro-right .qr-code-section {
    align-self: flex-start; /* 二维码也左对齐 */
    margin-left: 0;
}

.section-title {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.title-bar {
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    margin-right: 12px;
    border-radius: 2px;
}

.section-title-image {
    height: auto;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 15px;
    display: block;
}

.game-card-detail {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: flex-start;
    -ms-flex-pack: flex-start;
    justify-content: flex-start;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 2px solid #e9ecef;
    width: 100%;
    max-width: 100%;
    margin: 0 -7.5px;
}

/* 现代浏览器使用gap */
@supports (gap: 15px) {
    .game-card-detail {
        gap: 15px;
        -webkit-box-pack: unset;
        -ms-flex-pack: unset;
        justify-content: unset;
        margin: 0;
    }
}

/* IE兼容性优化 */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    .game-card-detail {
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        -webkit-box-pack: flex-start;
        -ms-flex-pack: flex-start;
        justify-content: flex-start;
        width: 100%;
        margin: 0;
    }
}

.game-icon {
    width: auto;
    height: auto;
    border-radius: 12px;
    overflow: hidden;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 auto;
    flex-shrink: 0;
    margin-right: 15px;
}

/* 现代浏览器使用gap时的样式重置 */
@supports (gap: 15px) {
    .game-icon {
        margin-right: 0;
    }
}

/* IE兼容性优化 */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    .game-icon {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 auto;
        flex-shrink: 0;
        margin-right: 15px;
    }
}

.game-icon img {
    width: auto;
    height: auto;
    max-width: 80px;
    max-height: 80px;
    object-fit: contain;
    /* IE兼容性回退 */
    -ms-object-fit: contain;
    object-fit: contain;
}

/* IE8及以下版本的object-fit回退 */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    .game-icon img {
        width: 80px;
        height: 80px;
        object-fit: none;
        -ms-object-fit: none;
    }
}

.game-info {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    margin-left: 15px;
}

/* 现代浏览器使用gap时的样式重置 */
@supports (gap: 15px) {
    .game-info {
        margin-left: 0;
    }
}

/* IE兼容性优化 */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    .game-info {
        -webkit-box-flex: 1;
        -ms-flex: 1;
        flex: 1;
        margin-left: 15px;
    }
}

.game-info h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.game-info p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 游戏介绍区域的二维码样式 */
.game-intro-right .qr-code-section {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 2px solid #e9ecef;
    width: auto;
}

/* IE兼容性优化 */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    .game-intro-right .qr-code-section {
        display: -ms-inline-flexbox;
        display: inline-flex;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
    }
}

.game-intro-right .qr-code-section img {
    width: auto;
    height: auto;
    max-width: 120px;
    max-height: 120px;
    object-fit: contain;
    /* IE兼容性回退 */
    -ms-object-fit: contain;
    object-fit: contain;
}

/* IE8及以下版本的object-fit回退 */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    .game-intro-right .qr-code-section img {
        width: 120px;
        height: 120px;
        object-fit: none;
        -ms-object-fit: none;
    }
}

/* 游戏特色展示区域 */
.game-features-section {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    margin-bottom: 60px;
}

/* 现代浏览器使用Grid */
@supports (display: grid) {
    .game-features-section {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        -webkit-box-pack: unset;
        -ms-flex-pack: unset;
        justify-content: unset;
    }
}

/* IE兼容性优化 */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    .game-features-section {
        display: -ms-flexbox;
        display: flex;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
        width: 100%;
    }
}

.feature-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    min-height: 200px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: calc(33.333% - 20px);
    margin-bottom: 30px;
}

/* 现代浏览器使用Grid时的样式重置 */
@supports (display: grid) {
    .feature-card {
        width: auto;
        margin-bottom: 0;
    }
}

/* IE兼容性优化 */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    .feature-card {
        width: calc(33.333% - 20px);
        margin-right: 20px;
        margin-bottom: 30px;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
    }
    
    .feature-card:nth-child(3n) {
        margin-right: 0;
    }
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-image {
    position: relative;
    overflow: hidden;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.feature-image img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* IE兼容性回退 */
    -ms-object-fit: contain;
    object-fit: contain;
}

/* IE8及以下版本的object-fit回退 */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    .feature-image img {
        width: 100%;
        height: 100%;
        object-fit: none;
        -ms-object-fit: none;
    }
}

/* 游戏截图区域 */
.game-screenshots-section {
    text-align: center;
}

.game-screenshots-section .section-title-image {
    height: auto;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 30px;
    display: block;
}

.screenshots-grid {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    margin: 0 -10px;
}

/* 现代浏览器使用Grid */
@supports (display: grid) {
    .screenshots-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        -webkit-box-pack: unset;
        -ms-flex-pack: unset;
        justify-content: unset;
        margin: 0;
    }
}

/* IE兼容性优化 */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    .screenshots-grid {
        display: -ms-flexbox;
        display: flex;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
        width: 100%;
        margin: 0;
    }
}

.screenshot-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    width: calc(33.333% - 20px);
    margin: 0 10px 20px 10px;
}

/* 现代浏览器使用Grid时的样式重置 */
@supports (display: grid) {
    .screenshot-item {
        width: auto;
        margin: 0;
    }
}

/* IE兼容性优化 */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    .screenshot-item {
        width: calc(33.333% - 20px);
        margin-right: 20px;
        margin-bottom: 20px;
        margin-left: 0;
    }
    
    .screenshot-item:nth-child(3n) {
        margin-right: 0;
    }
}

.screenshot-item:hover {
    transform: translateY(-3px);
}

.screenshot-item img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
    /* IE兼容性回退 */
    -ms-object-fit: contain;
    object-fit: contain;
}

/* IE8及以下版本的object-fit回退 */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    .screenshot-item img {
        width: 100%;
        height: 200px;
        object-fit: none;
        -ms-object-fit: none;
    }
}

/* 页脚样式 - 移除底部间距，让页脚紧靠底部 */

/* 响应式设计 */
@media (max-width: 768px) {
    .game-detail-main {
        padding: 20px 0;
    }
    
    .game-intro-content {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: stretch;
        -ms-flex-align: stretch;
        align-items: stretch;
        margin: 0;
    }
    
    .game-intro-left,
    .game-intro-right {
        margin: 0 0 30px 0;
        width: 100%;
    }
    
    .game-intro-right:last-child {
        margin-bottom: 0;
    }
    
    .game-features-section {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: stretch;
        -ms-flex-align: stretch;
        align-items: stretch;
    }
    
    .feature-card {
        width: 100%;
        margin: 0 0 20px 0;
    }
    
    .screenshots-grid {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: stretch;
        -ms-flex-align: stretch;
        align-items: stretch;
        margin: 0;
    }
    
    .screenshot-item {
        width: 100%;
        margin: 0 0 15px 0;
    }
    
    .feature-image {
        height: 250px;
    }
    
    .screenshot-item img {
        height: 150px;
    }
}

/* 现代浏览器使用Grid的响应式设计 */
@supports (display: grid) {
    @media (max-width: 768px) {
        .game-intro-content {
            display: grid;
            grid-template-columns: 1fr;
            gap: 30px;
            -webkit-box-orient: unset;
            -webkit-box-direction: unset;
            -ms-flex-direction: unset;
            flex-direction: unset;
            -webkit-box-align: unset;
            -ms-flex-align: unset;
            align-items: unset;
        }
        
        .game-intro-left,
        .game-intro-right {
            margin: 0;
            width: auto;
        }
        
        .game-features-section {
            display: grid;
            grid-template-columns: 1fr;
            gap: 20px;
            -webkit-box-orient: unset;
            -webkit-box-direction: unset;
            -ms-flex-direction: unset;
            flex-direction: unset;
            -webkit-box-align: unset;
            -ms-flex-align: unset;
            align-items: unset;
        }
        
        .feature-card {
            width: auto;
            margin: 0;
        }
        
        .screenshots-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 15px;
            -webkit-box-orient: unset;
            -webkit-box-direction: unset;
            -ms-flex-direction: unset;
            flex-direction: unset;
            -webkit-box-align: unset;
            -ms-flex-align: unset;
            align-items: unset;
        }
        
        .screenshot-item {
            width: auto;
            margin: 0;
        }
    }
}

/* 浮动按钮样式已移至 styles.css 公用样式文件 */