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

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

/* 游戏封面区域 */
.game-detail-image-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    height: 500px;
}

.game-detail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

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

.game-rating-badge {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--accent-color), #ff6b9c);
    color: white;
    font-weight: 700;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(255, 45, 117, 0.4);
    font-size: 1.1rem;
}

/* 游戏信息区域 */
.game-detail-info {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
}

.game-detail-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-primary);
    font-weight: 800;
    animation: slideInLeft 0.6s ease-out;
}

.game-detail-description {
    margin-bottom: 30px;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.1rem;
    animation: fadeInUp 0.8s ease-out;
}

.game-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out;
}

.meta-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.meta-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.meta-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-color);
}

/* 游戏操作按钮 */
.game-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-game {
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    flex: 1;
    min-width: 200px;
    transform: scale(1);
    position: relative;
    overflow: hidden;
}

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

.btn-play {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 5px 15px rgba(106, 17, 203, 0.3);
}

.btn-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(106, 17, 203, 0.4);
}

.btn-play:active {
    transform: translateY(-2px) scale(0.95);
}

.btn-favorite {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-favorite:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: var(--accent-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-favorite:active {
    transform: translateY(-2px) scale(0.95);
}

.btn-game i {
    margin-right: 10px;
    font-size: 1.2rem;
}

/* 侧边栏 */
.game-detail-sidebar {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    height: fit-content;
}

.game-detail-sidebar .section-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

/* 推荐游戏卡片 */
.game-card-recommend {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.game-card-recommend:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-color);
}

.recommend-image-container {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.recommend-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.game-card-recommend:hover .recommend-image {
    transform: scale(1.1);
}

.recommend-info {
    padding: 15px;
}

.recommend-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recommend-category {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(106, 17, 203, 0.2);
    color: #d0c9ff;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.recommend-rating {
    color: #f8b400;
    font-size: 0.9rem;
}

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

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

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