/* ==================== 视频页面样式 ==================== */
/* 视频容器 */
.game-container {
    width: 100%;
    height: 100%;
    background-color: white;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.game-container.pushed {
    transform: translateX(-30%);
}

/* 顶部悬浮Tab栏 */
.game-sticky-tabs {
    position: sticky;
    top: 0;
    z-index: 100;
    background: white;
    padding-top: 3px;
    flex-shrink: 0;
}

.game-tabs-container {
    display: flex;
    align-items: center;
    background: white;
    position: relative;
    width: 100%;
}

.game-tabs-scroll {
    display: flex;
    gap: 0;
    padding: 0 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    flex: 1;
    margin-right: 60px; /* 为更多按钮预留空间 */
}

.game-tabs-scroll::-webkit-scrollbar {
    display: none;
}

.game-tabs-more-container {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 30%);
}


.game-tab {
    flex-shrink: 0;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: #666;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.game-tab:hover {
    color: var(--primary-color);
}

.game-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* 更多按钮样式 */
.game-tab-more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
    border-radius: 6px;
    padding: 4px;
}

.game-tab-more:hover {
    background: rgba(var(--primary-color-rgb, 255, 149, 0), 0.1);
    transform: scale(1.1);
}

.game-tab-more:active {
    transform: scale(0.95);
}

/* SVG更多按钮图标样式 - 支持主题切换 */
.game-tab-more .more-icon-svg {
    width: 20px;
    height: 20px;
    display: block;
    color: var(--primary-color, #ff9500);
    transition: color 0.3s ease;
}

.game-tab-more:hover .more-icon-svg {
    color: var(--primary-light, #ffad33);
}

.game-main-content {
    padding: 0;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* 游戏卡片网格 */
.game-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 10px;
    padding: 0 10px 20px 10px;
}

/* 游戏卡片样式 - 横向布局 */
.game-card {
    position: relative;
    background: white;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease-out both;
    overflow: hidden;
}

.game-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 卡片内容 - 横向布局 */
.game-card-content {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

/* 左侧图标 */
.game-card-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(90deg, #f0f0f0 25%, #f5f5f5 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: GameSkeletonLoading 1.5s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-card-icon:has(.game-card-icon-img.loaded) {
    animation: none;
    background: transparent;
}

/* 骨架加载动画 */
@keyframes GameSkeletonLoading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.game-card-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
    opacity: 0;
    position: relative;
    z-index: 1;
}

.game-card-icon-img.loaded {
    opacity: 1;
}

/* 中间文字区域 */
.game-card-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.game-card-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-card-description {
    font-size: 12px;
    color: #999;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 右侧按钮 */
.game-view-detail-btn {
    flex-shrink: 0;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.game-view-detail-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.game-view-detail-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.view-detail-text {
    font-size: 13px;
    font-weight: 500;
}

.game-card.hidden {
    display: none;
}

.game-card.fade-in {
    animation: fadeInUp 0.5s ease-out both;
}

/* 卡片角标样式 */
.game-card {
    position: relative;
}

.shipin-card-tag {
    position: absolute;
    top: 0;
    left: 0;
    backdrop-filter: blur(8px);
    border: none;
    color: white;
    font-size: 8px;
    padding: 2px 6px;
    border-radius: 0 0 6px 0;
    font-weight: normal;
    z-index: 10;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* 滚动条样式 */
.game-main-content::-webkit-scrollbar {
    width: 6px;
}

.game-main-content::-webkit-scrollbar-track {
    background: transparent;
}

.game-main-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.game-main-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .game-card {
        padding: 10px;
    }
    
    .game-card-icon {
        width: 55px;
        height: 55px;
    }
    
    .game-card-name {
        font-size: 14px;
    }
    
    .game-card-description {
        font-size: 11px;
    }
    
    .game-view-detail-btn {
        padding: 7px 16px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .game-card {
        padding: 8px;
    }
    
    .game-card-icon {
        width: 50px;
        height: 50px;
    }
    
    .game-card-content {
        gap: 10px;
    }
    
    .game-card-name {
        font-size: 13px;
    }
    
    .game-card-description {
        font-size: 11px;
    }
    
    .game-view-detail-btn {
        padding: 6px 14px;
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .game-card {
        padding: 6px;
    }
    
    .game-card-icon {
        width: 45px;
        height: 45px;
    }
    
    .game-card-content {
        gap: 8px;
    }
    
    .game-card-name {
        font-size: 12px;
    }
    
    .game-card-description {
        font-size: 10px;
    }
    
    .game-view-detail-btn {
        padding: 5px 12px;
        font-size: 11px;
    }
}

#page-shipin .game-grid {
    gap: 16px;
}

#page-shipin .game-card {
    padding: 18px 14px 16px;
}