.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: 16px;
    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: 16px;
    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: 16px;
    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: 1024px) {
    .game-detail {
        grid-template-columns: 1fr;
    }
    
    .game-image {
        max-width: 500px;
        margin: 0 auto;
    }
}


/* ============================================
   移动端适配样式 - 详情页/游戏页 (480px 及以下)
   ============================================ */
@media (max-width: 480px) {
    /* 游戏详情页 */
    .game-detail, .game-header, .detail-header {
        padding: 0.75rem !important;
        gap: 1rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .game-title, .detail-title {
        font-size: 1.25rem !important;
        line-height: 1.4;
        margin-bottom: 0.75rem !important;
    }
    
    .game-info, .detail-info {
        flex-direction: column;
        gap: 0.75rem !important;
        margin-bottom: 1rem !important;
    }
    
    .game-image, .detail-image {
        width: 100%;
        max-width: 100%;
        margin-bottom: 1rem !important;
    }
    
    .game-description, .detail-description {
        font-size: 0.875rem;
        line-height: 1.6;
    }
    
    /* 游戏容器 */
    .game-container, .play-container {
        padding: 0.5rem;
    }
    
    .game-iframe, .play-iframe {
        width: 100%;
        min-height: 400px;
    }
    
    /* 相关游戏 */
    .related-games, .similar-games {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    /* 标签 */
    .game-tags, .detail-tags {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .tag {
        padding: 0.375rem 0.625rem;
        font-size: 0.75rem;
    }
    
    /* 按钮组 */
    .button-group, .action-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .button-group button, .action-buttons button {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* ============================================
   移动端适配样式 - 详情页/游戏页 (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;
    }
}
