index.less 2.04 KB
/* 搜索页面样式 */
.search-page {
    background-color: #f5f5f5;
    min-height: 100vh;
}

/* 搜索结果列表样式 */
.search-results-list {
    width: 100%;
    box-sizing: border-box;
    
    /* 滚动条样式 */
    &::-webkit-scrollbar {
        width: 6rpx;
    }
    
    &::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3rpx;
    }
    
    &::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 3rpx;
        
        &:hover {
            background: #a8a8a8;
        }
    }
}

/* 加载状态样式 */
.load-more-container {
    padding: 40rpx 0;
    
    .loading-container {
        display: flex;
        align-items: center;
        justify-content: center;
        color: #666;
        
        .loading-spinner {
            width: 32rpx;
            height: 32rpx;
            border: 4rpx solid #f3f3f3;
            border-top: 4rpx solid #f97316;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin-right: 16rpx;
        }
        
        .loading-text {
            font-size: 28rpx;
            color: #666;
        }
    }
    
    .no-more-data {
        padding: 20rpx 0;
        text-align: center;
        color: #999;
        font-size: 28rpx;
    }
}

/* 旋转动画 */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 空状态样式 */
.empty-state {
    .empty-icon {
        display: flex;
        justify-content: center;
        align-items: center;
        opacity: 0.6;
    }
}

.no-results-state {
    .no-results-icon {
        display: flex;
        justify-content: center;
        align-items: center;
        opacity: 0.7;
    }
}

/* 搜索结果卡片样式优化 */
.search-results-list {
    .grid {
        .bg-white {
            transition: all 0.3s ease;
            border: 1rpx solid #e5e7eb;
            
            &:hover {
                box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.12);
                transform: translateY(-2rpx);
            }
        }
    }
}