/* 移动端显示修复 - Mobile Display Fixes */

/* 修复移动端游戏模态框样式 */
@media (max-width: 768px) {
    /* 调整模态框内容样式 */
    .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 95vh;
        padding-bottom: 20px;
        overflow-y: auto; /* 确保内容可滚动 */
    }
    
    /* 确保游戏标题显示 */
    .game-header h1.game-title {
        font-size: 1.5rem;
        padding: 15px;
        margin: 0 0 10px 0;
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* 确保游戏内容区域正常显示 */
    .game-header {
        height: auto !important;
        min-height: 180px;
        overflow: visible !important;
    }
    
    /* 调整游戏描述部分 */
    .game-description-section {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        padding: 0 15px;
        margin-top: 15px;
    }
    
    .description-title {
        font-size: 1.3rem;
        margin-bottom: 10px;
        display: block !important;
    }
    
    .game-description {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 15px;
        display: block !important;
    }
    
    /* 遇到问题链接样式 */
    .problem-link {
        display: inline-block;
        color: #f44336; /* 红色 */
        font-size: 14px;
        font-weight: 600;
        margin: 0 0 15px;
        text-decoration: none;
        transition: color 0.2s;
        display: block !important;
    }
    
    .problem-link:hover {
        color: #d32f2f; /* 深红色 */
        text-decoration: underline;
    }
    
    .dark-mode .problem-link {
        color: #ff5252; /* 暗色模式下更明亮的红色 */
    }
    
    .dark-mode .problem-link:hover {
        color: #ff8a80; /* 暗色模式下的悬停颜色 */
    }
    
    /* 调整游戏统计信息布局 */
    .game-stats {
        flex-direction: column;
        gap: 8px;
        margin: 15px 0;
        padding: 12px;
    }
    
    /* 调整下载区域显示 */
    .download-section {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        padding: 0 15px;
        margin-top: 20px;
    }
    
    .download-title {
        font-size: 1.3rem;
        margin-bottom: 10px;
        display: block !important;
    }
    
    .download-desc {
        font-size: 14px;
        margin-bottom: 15px;
        display: block !important;
    }
    
    /* 调整二维码网格布局 */
    .qr-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin: 15px 0;
        position: relative;
        z-index: 1;
    }
    
    .qr-item {
        padding: 10px;
    }
    
    .qr-title {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .qr-box {
        width: 140px;
        height: 140px;
        margin: 0 auto;
        cursor: default;
    }
    
    /* 确保二维码清晰显示 */
    .qr-box img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }
    
    /* 隐藏提示 */
    .qr-tip {
        display: none !important;
    }
    
    /* 调整免责声明区域 */
    .disclaimer-section {
        padding: 10px 15px;
        margin: 15px 0;
    }
    
    .disclaimer-title {
        font-size: 16px;
    }
    
    .disclaimer-content {
        font-size: 12px;
    }
}

/* 横屏模式优化 */
@media (max-width: 768px) and (orientation: landscape) {
    /* 改善横屏滚动 */
    .modal-content {
        max-height: 85vh;
        padding: 15px;
    }
    
    /* 减小标题和内容的上下间距 */
    .game-header h1.game-title {
        padding: 10px;
        margin-bottom: 5px;
        font-size: 1.3rem;
    }
    
    /* 压缩各部分的间距 */
    .game-description-section,
    .download-section {
        margin-top: 10px;
        padding: 0 10px;
    }
    
    /* 更紧凑的网格布局 */
    .qr-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
    }
    
    /* 调整二维码大小 */
    .qr-box {
        width: 120px;
        height: 120px;
    }
    
    /* 游戏媒体区域调整 */
    .media-main {
        max-height: 40vh;
    }
    
    /* 减小字体和边距 */
    .description-title,
    .download-title {
        font-size: 1.1rem;
        margin-bottom: 5px;
    }
    
    .game-description,
    .download-desc {
        font-size: 13px;
        margin-bottom: 10px;
    }
}

/* 更小屏幕的布局调整 */
@media (max-width: 576px) {
    /* 调整游戏标题 */
    .game-header h1.game-title {
        font-size: 1.3rem;
        padding: 12px;
    }
    
    /* 调整游戏描述标题 */
    .description-title,
    .download-title {
        font-size: 1.2rem;
    }
    
    /* 调整游戏描述内容 */
    .game-description,
    .download-desc {
        font-size: 13px;
    }
    
    /* 调整二维码布局 */
    .qr-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* 适应更小屏幕的二维码大小 */
    .qr-box {
        width: 130px;
        height: 130px;
    }
}

/* 超小屏幕的布局调整 */
@media (max-width: 360px) {
    /* 单列二维码布局 */
    .qr-grid {
        grid-template-columns: 1fr;
    }
    
    /* 稍大的二维码 */
    .qr-box {
        width: 130px;
        height: 130px;
    }
} 