/* 列表页样式 */

/* 筛选栏 */
.list-filter {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 10;
}

.filter-tabs {
    flex: 1;
    display: flex;
    gap: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.filter-tabs::-webkit-scrollbar {
    display: none;
}

.filter-tab {
    flex-shrink: 0;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
    white-space: nowrap;
}

.filter-tab.active {
    color: #1890FF;
    border-bottom-color: #1890FF;
    font-weight: 600;
}

.filter-sort {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    padding: 4px 8px;
    flex-shrink: 0;
}

/* 列表内容 */
.list-content {
    padding: 10px 15px;
}

/* 列表布局（服务列表） */
.list-item {
    display: flex;
    gap: 12px;
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.list-item:active {
    background-color: #f5f5f5;
}

.list-item img {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.item-title {
    font-size: 16px;
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.item-desc {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.5;
}

.item-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

.item-rating {
    color: #666;
    display: flex;
    align-items: center;
    gap: 4px;
}

.item-sales {
    color: #999;
}

.item-price {
    font-size: 18px;
    font-weight: 600;
}

/* 网格布局（商品列表） */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.grid-item {
    background-color: #fff;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.grid-item:active {
    transform: scale(0.98);
}

.grid-item img {
    width: 100%;
    height: 160px;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 8px;
}

.grid-item .item-title {
    font-size: 14px;
    color: #333;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.grid-item .item-price {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.grid-item .item-sales {
    font-size: 12px;
    color: #999;
}

