/* 游戏详情页样式 */
.detail-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.game-detail-container {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    padding: 20px;
}

.game-detail-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.back-button a {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #ffcc00;
    font-weight: bold;
}

.back-button a:hover {
    text-decoration: underline;
}

.game-detail-header h1 {
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 0 0;
}

.game-rating {
    background-color: rgba(255, 204, 0, 0.2);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
    color: #ffcc00;
}

.game-detail-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.game-detail-image {
    position: relative;
    border-radius: 5px;
    overflow: hidden;
}

.game-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

.play-now-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffcc00;
    color: #0a5e81;
    font-weight: bold;
    padding: 15px 30px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
}

.play-now-button:hover {
    background-color: #fff;
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.5);
}

.game-detail-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.game-tag {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.game-tag i {
    color: #ffcc00;
}

.description-wrapper{
    display: grid;
    grid-template-columns: 3fr 2fr; /* 比例 */
    gap: 10px; /* 列间距 */
    grid-auto-flow: row; /* 允许换行 */
}

.game-description h3,
.game-controls h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #ffcc00;
}

.game-description p {
    line-height: 1.6;
}

.game-controls ul {
    list-style: none;
}

.game-controls li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.similar-games {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

.similar-games h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #ffcc00;
}

/* 响应式设计 */
@media (min-width: 768px) {
    .game-detail-content {
        grid-template-columns: 1fr 1fr;
    }

}
@media (max-width: 768px){
    .description-wrapper{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
}