/* products.css - 游戏产品特定样式 */

.products-hero {
    background-image: url('../images/hero.jpg'); /* 替换为你的产品页背景图 */
}

.game-list-section {
    padding: 80px 0;
    background-color: #f8f8f8;
}

.game-item {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    padding: 40px;
}

.game-item.reverse {
    flex-direction: row-reverse; /* 左右交替布局 */
}

.game-media {
    flex: 1;
    min-width: 400px; /* 确保图片/视频有足够宽度 */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.game-media img,
.game-media video {
    width: 100%;
    height: auto;
    display: block;
}

.game-details {
    flex: 1;
}

.game-details h2 {
    color: #6a8e7a;
    font-size: 2.5em;
    margin-bottom: 15px;
}

.game-details .game-genre {
    color: #999;
    font-style: italic;
    margin-bottom: 20px;
    font-size: 1.1em;
}

.game-details p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 30px;
}

.game-platforms {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.game-platforms span {
    font-weight: bold;
    color: #333;
}

.game-platforms img {
    height: 30px; /* 平台图标大小 */
    width: auto;
    filter: grayscale(50%); /* 平台图标稍微灰度化 */
    transition: filter 0.3s ease;
}

.game-platforms img:hover {
    filter: grayscale(0%); /* 鼠标悬停时恢复彩色 */
}

.game-details .btn-primary,
.game-details .btn-secondary {
    margin-right: 15px;
}

/* Responsive adjustments for products page */
@media (max-width: 992px) {
    .game-item {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }
    .game-item.reverse {
        flex-direction: column; /* 保持一致 */
    }
    .game-media {
        min-width: unset;
        width: 100%;
        margin-bottom: 30px;
    }
    .game-details h2 {
        font-size: 2em;
    }
    .game-details .btn-primary,
    .game-details .btn-secondary {
        margin-bottom: 15px;
        margin-right: 0;
        width: 80%; /* 按钮宽度适应 */
        max-width: 250px;
    }
    .game-platforms {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .game-list-section {
        padding: 60px 0;
    }
    .game-item {
        margin-bottom: 60px;
    }
}

@media (max-width: 480px) {
    .game-item {
        padding: 20px;
    }
    .game-details h2 {
        font-size: 1.8em;
    }
    .game-details p {
        font-size: 0.95em;
    }
}