.game-detail {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
}

.game-image {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--bg-surface);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-content h1 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.game-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.game-rating-large {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
}

.game-rating-large .stars {
    color: var(--secondary);
    font-size: 1.25rem;
}

.game-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.game-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.category-tag {
    background: var(--bg-surface);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.category-tag:hover {
    background: var(--primary);
    color: var(--text-primary);
    border-color: var(--primary);
}

.play-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--primary);
    color: var(--text-primary);
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.play-button:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.4);
}

.save-button:hover {
    background: var(--bg-card);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.save-button.saved {
    background: rgba(59, 130, 246, 0.15);
    border-color: var(--primary);
    color: var(--primary);
}

.save-button.saved i {
    color: var(--primary);
}

@media (max-width: 768px) {
    .game-detail {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        padding: 1rem !important;
        margin-bottom: 2rem !important;
    }
    
    .game-image {
        max-width: 100% !important;
        margin: 0 auto !important;
    }
    
    .game-content h1 {
        font-size: 1.75rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .game-meta {
        gap: 1rem !important;
        margin-bottom: 1.25rem !important;
    }
    
    .game-rating-large {
        font-size: 1rem !important;
    }
    
    .game-rating-large .stars {
        font-size: 1.1rem !important;
    }
    
    .game-description {
        font-size: 0.9rem !important;
        margin-bottom: 1.25rem !important;
    }
    
    .game-categories {
        gap: 0.5rem !important;
        margin-bottom: 1.25rem !important;
    }
    
    .category-tag {
        padding: 0.375rem 0.75rem !important;
        font-size: 0.8125rem !important;
    }
    
    .play-button {
        padding: 0.875rem 2rem !important;
        font-size: 0.9rem !important;
    }
    
    .save-button {
        padding: 0.875rem 1.5rem !important;
        font-size: 0.9rem !important;
    }
}

@media (max-width: 1024px) {
    .game-detail {
        grid-template-columns: 1fr;
    }
    
    .game-image {
        max-width: 500px;
        margin: 0 auto;
    }
}


/* ============================================
   移动端适配样式 - 详情页/游戏页 (480px 及以下)
   ============================================ */
@media (max-width: 480px) {
    .game-detail {
        padding: 0.75rem !important;
        gap: 1rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .game-content h1 {
        font-size: 1.5rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .game-meta {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.5rem !important;
        margin-bottom: 1rem !important;
    }
    
    .game-rating-large {
        font-size: 0.95rem !important;
    }
    
    .game-rating-large .stars {
        font-size: 1rem !important;
    }
    
    .game-image {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 1rem !important;
    }
    
    .game-description {
        font-size: 0.875rem !important;
        line-height: 1.6 !important;
        margin-bottom: 1rem !important;
    }
    
    .game-categories {
        gap: 0.5rem !important;
        margin-bottom: 1rem !important;
    }
    
    .category-tag {
        padding: 0.375rem 0.625rem !important;
        font-size: 0.75rem !important;
    }
    
    .play-button,
    .save-button {
        width: 100% !important;
        justify-content: center !important;
        padding: 0.75rem 1.5rem !important;
        font-size: 0.875rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .related-games-section {
        margin-top: 2rem !important;
    }
    
    .section-heading {
        font-size: 1.25rem !important;
        margin-bottom: 1rem !important;
    }
    
    .games-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }
}

/* ============================================
   移动端适配样式 - 详情页/游戏页 (768px 及以下)
   ============================================ */
@media (max-width: 768px) {
    .game-detail, .game-header {
        padding: 1.5rem 1rem;
    }
    
    .game-title {
        font-size: 1.5rem;
    }
    
    .game-info {
        flex-wrap: wrap;
    }
    
    .game-image {
        max-width: 100%;
    }
    
    .related-games {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .game-container {
        padding: 1rem;
    }
}
