/* 游戏列表页面专用样式 */

/* 游戏列表头部 */
.games-header {
    padding: 60px 0 40px;
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    color: white;
    text-align: center;
}

.games-header h1 {
    font-size: 48px;
    margin-bottom: 15px;
    color: white;
}

.games-header p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.search-filter {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-box {
    position: relative;
    width: 100%;
}

.search-box i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-color);
}

.search-box input {
    width: 100%;
    padding: 15px 20px 15px 50px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-family: 'Noto Sans SC', sans-serif;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.3);
}

.filter-options {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-options select {
    padding: 12px 20px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-family: 'Noto Sans SC', sans-serif;
    background-color: white;
    color: var(--dark-color);
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
    min-width: 150px;
}

.filter-options select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.3);
}

/* 游戏列表 */
.games-list {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.game-item {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.game-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.game-item-header {
    position: relative;
    height: 180px;
    overflow: hidden;
}

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

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

.game-item-category {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.game-item-difficulty {
    position: absolute;
    bottom: 15px;
    left: 15px;
    padding: 5px 12px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.game-item-content {
    padding: 20px;
}

.game-item-title {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--dark-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.game-item-rating {
    color: var(--warning-color);
    font-size: 14px;
}

.game-item-description {
    color: var(--gray-color);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.game-item-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 12px;
    color: var(--gray-color);
}

.game-item-stat {
    display: flex;
    align-items: center;
    gap: 5px;
}

.game-item-stat i {
    color: var(--primary-color);
}

.game-item-actions {
    display: flex;
    gap: 10px;
}

.game-item-actions .btn {
    flex: 1;
    padding: 10px;
    font-size: 14px;
    text-align: center;
}

/* 空状态 */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 64px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.empty-state p {
    color: var(--gray-color);
    max-width: 500px;
    margin: 0 auto 20px;
}

/* 加载动画 */
.loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
}

.loading-spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 3px solid var(--secondary-color);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .games-header h1 {
        font-size: 36px;
    }
    
    .search-filter {
        padding: 0 20px;
    }
    
    .filter-options {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-options select {
        width: 100%;
        max-width: 300px;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    .games-header h1 {
        font-size: 28px;
    }
    
    .games-header p {
        font-size: 16px;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .game-item-actions {
        flex-direction: column;
    }
}