/* 分类页面样式 */
.category-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.category-header {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    padding: 20px;
}

.category-header h1 {
    font-size: 24px;
    font-weight: bold;
    color: #ffcc00;
    margin-bottom: 10px;
}

.category-description {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
}

/* 高亮当前选中的分类 */
.nav-item.active {
    background-color: rgba(255, 204, 0, 0.2);
    color: #ffcc00;
}

/* 加载指示器 */
.loading-indicator {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    margin-top: 20px;
}

.loading-indicator.visible {
    display: flex;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffcc00;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-indicator p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

/* 无限滚动相关样式 */
.games-grid {
    min-height: 300px;
}

/* 响应式设计 */
@media (max-width: 767px) {
    .category-header h1 {
        font-size: 20px;
    }
    
    .category-description {
        font-size: 13px;
    }
    
    .loading-indicator {
        padding: 15px;
    }
    
    .spinner {
        width: 30px;
        height: 30px;
    }
}