/* 详情页样式 */
.game-detail {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    animation: fadeIn 0.8s ease-out;
}

.game-detail-main img {
    width: 100%;
}
.section-title {
    margin: 0 !important;
}

@media (max-width: 768px) {
    .game-detail {
        grid-template-columns: 1fr;
    }
}

.game-detail-image {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.game-detail-image-container {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.game-detail-image-container:hover .game-detail-image {
    transform: scale(1.03);
}

.game-detail-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
}

.game-rating-badge {
    display: inline-block;
    padding: 8px 15px;
    background: rgba(248, 180, 0, 0.9);
    color: #000;
    font-weight: 700;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.game-detail-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.game-detail-title {
    font-size: 36px;
    margin-bottom: 15px;
    color: #fff;
    animation: slideInLeft 0.6s ease-out;
}

.game-detail-description {
    margin-bottom: 30px;
    color: #ccc;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out;
}

.game-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out;
}

.meta-item {
    flex: 1;
    min-width: 120px;
}

.meta-label {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 5px;
}

.meta-value {
    font-size: 18px;
    font-weight: 700;
    color: #4ecca3;
}

.btn-animated {
    position: relative;
    overflow: hidden;
}

.btn-animated::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.btn-animated:hover::after {
    left: 100%;
}

.game-card-animated {
    animation: pulse 2s infinite;
}

.game-card-animated:hover {
    animation: none;
}

.game-image-container {
    position: relative;
    overflow: hidden;
}

.game-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-image-container:hover .game-image-overlay {
    opacity: 1;
}

.btn-overlay {
    display: inline-block;
    padding: 10px 20px;
    background: #4ecca3;
    color: #000;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    transition: all 0.3s;
}

.btn-overlay:hover {
    background: #3da58a;
    transform: scale(1.05);
}

/* 动画关键帧 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(78, 204, 163, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(78, 204, 163, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(78, 204, 163, 0);
    }
}