Files
JayuCloud/WeChatProgram/pages/products/index.wxss
T

164 lines
2.8 KiB
Plaintext

.product-page {
background:
radial-gradient(circle at top left, rgba(255, 207, 220, 0.35), transparent 34%),
linear-gradient(180deg, #fff8fa 0%, #fffdfc 100%);
}
.product-page-content {
padding-top: 10rpx;
}
.sticky-filter-bar {
position: sticky;
top: 0;
z-index: 12;
padding: 6rpx 0 16rpx;
background:
linear-gradient(180deg, rgba(255, 248, 250, 0.98) 0%, rgba(255, 252, 251, 0.94) 76%, rgba(255, 252, 251, 0) 100%);
}
.filter-surface {
padding: 16rpx 16rpx 14rpx;
border-radius: 24rpx;
border: 1rpx solid rgba(239, 216, 224, 0.86);
background: rgba(255, 255, 255, 0.92);
box-shadow: 0 18rpx 40rpx rgba(122, 67, 88, 0.08);
}
.search-row {
display: flex;
align-items: center;
gap: 12rpx;
}
.search-input {
flex: 1;
height: 68rpx;
padding: 0 22rpx;
border-radius: 999rpx;
background: #fbf5f7;
color: #2d2430;
font-size: 26rpx;
}
.search-btn {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 112rpx;
height: 68rpx;
padding: 0 28rpx;
border-radius: 999rpx;
background: linear-gradient(135deg, #ff8cb0 0%, #c6597d 100%);
color: #ffffff;
font-size: 24rpx;
font-weight: 700;
}
.category-scroll {
margin-top: 14rpx;
width: 100%;
height: 56rpx;
min-height: 56rpx;
white-space: nowrap;
}
.category-list {
display: inline-flex;
align-items: center;
gap: 12rpx;
min-height: 56rpx;
padding-right: 4rpx;
}
.category-item {
display: inline-flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
min-width: 88rpx;
height: 50rpx;
padding: 0 20rpx;
border-radius: 999rpx;
background: #f7edf1;
color: #8d7a84;
font-size: 22rpx;
font-weight: 600;
}
.category-item.active {
background: #fde8ef;
color: #c6597d;
}
.results-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12rpx;
margin-top: 14rpx;
}
.results-meta {
display: flex;
align-items: center;
gap: 12rpx;
min-width: 0;
}
.results-count {
flex-shrink: 0;
font-size: 24rpx;
font-weight: 700;
color: #5d4b55;
}
.filter-summary-chip {
display: inline-flex;
align-items: center;
min-width: 0;
max-width: 360rpx;
height: 46rpx;
padding: 0 18rpx;
border-radius: 999rpx;
background: #fdeff4;
color: #c6597d;
font-size: 22rpx;
font-weight: 600;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.results-reset {
flex-shrink: 0;
height: 52rpx;
padding: 0 20rpx;
min-width: 0;
font-size: 22rpx;
}
.product-grid {
display: flex;
flex-wrap: wrap;
gap: 14rpx;
margin-top: 18rpx;
}
.product-grid-item {
min-width: 0;
width: calc(50% - 7rpx);
}
.load-state {
display: flex;
align-items: center;
justify-content: center;
padding: 20rpx 0 10rpx;
}
.load-state-text {
font-size: 22rpx;
color: #8d7a84;
}