/* 游戏作品展示区域 */
.games-showcase {
    padding: 48px 0 80px 0; /* 减少顶部和底部内边距 */
    background: #ffffff;
    min-height: auto; /* 移除最小高度限制 */
}

.container {
    max-width: 1200px;  /* 从1200px增加到1400px，让整体更宽 */
    margin: 0 auto;
    padding: 0 20px;
}

/* 区域标题 */
.section-header {
    text-align: left;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    transform: none;
    width: 160px;
    height: 3px;
    background: linear-gradient(90deg, #000000, #e74c3c);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.8rem;
    color: #666;
    margin-top: 20px;
}

/* 游戏网格布局 */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));  /* 调整最小宽度，让卡片更紧凑但能容纳更多 */
    gap: 25px;  /* 稍微减少间距 */
    margin-top: 40px;
}

/* Games Carousel */
.games-carousel {
    overflow: hidden;
    width: 100vw;
    position: relative;
    height: 495px; /* Maintain the original height */
    margin-left: calc(-50vw + 50%);
    left: 0;
    right: 0;
}

.games-track {
    display: flex;
    height: 100%;
    will-change: transform;
    width: max-content;
    padding-left: 0;
    margin-left: 0;
}

.games-track .game-card {
    flex: 0 0 auto;
    width: 380px; /* 卡片宽度 */
    margin-right: 20px; /* 增加间距，使卡片更分散 */
    box-sizing: border-box;
}

/* 游戏卡片 */
.game-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* 游戏图片容器 - 竖版布局设计 */
.game-image {
    position: relative;        /* 相对定位，为内部遮罩层提供定位基准 */
    width: 100%;              /* 宽度占满父容器，保持响应式 */
    height: 495px;            /* 设置较高的固定高度，营造竖版海报效果 */
    overflow: hidden;         /* 隐藏超出容器的图片部分，确保布局整洁 */
}

.game-image img { 
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover .game-image img {
    transform: scale(1.05);
}

/* 悬浮遮罩层 */
.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;  /* 改为透明 */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.game-card:hover .game-overlay {
    opacity: 1;
}

/* 游戏信息 - 已注释 */
/*
.game-info {
    text-align: center;
    color: white;
    padding: 20px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.game-card:hover .game-info {
    transform: translateY(0);
}

.game-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.game-description {
    font-size: 1rem;
    margin-bottom: 20px;
    opacity: 0.9;
}
*/

/* 查看按钮 - 已注释 */
/*
.view-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    padding: 10px 24px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.view-btn:hover {
    background: white;
    color: #007bff;
    transform: translateY(-2px);
}
*/

/* 响应式设计 */
@media (max-width: 768px) {
    .games-showcase {
        padding: 60px 0;
    }
    
    .container {
        padding: 0 15px;
        max-width: 100%;  /* 移动端保持全宽 */
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));  /* 平板端调整 */
        gap: 20px;
    }
    
    .game-image {
        height: 280px;  /* 平板端竖版高度 */
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;  /* 手机端单列 */
        gap: 15px;
    }
    
    .game-image {
        height: 240px;  /* 手机端竖版高度 */
    }
    
    .game-info {
        padding: 15px;
    }
    
    .game-title {
        font-size: 1.2rem;
    }
}

/* 加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



.game-card {
    animation: fadeInUp 0.6s ease forwards; /* 新增动画 */
}

.game-card:nth-child(1) { animation-delay: 0.1s; } /* 新增动画延迟 */
.game-card:nth-child(2) { animation-delay: 0.2s; }
.game-card:nth-child(3) { animation-delay: 0.3s; }
.game-card:nth-child(4) { animation-delay: 0.4s; }
.game-card:nth-child(5) { animation-delay: 0.5s; }
.game-card:nth-child(6) { animation-delay: 0.6s; }
.game-card:nth-child(7) { animation-delay: 0.7s; }
.game-card:nth-child(8) { animation-delay: 0.8s; }
.game-card:nth-child(9) { animation-delay: 0.9s; }