2025-06-23 10:03:08 +08:00
|
|
|
.page {
|
2025-08-15 00:36:04 +08:00
|
|
|
height: 100vh;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
background: #ffffff;
|
|
|
|
overflow: hidden;
|
|
|
|
font-family: SourceHanSansCN, PingFang SC, Microsoft YaHei, system-ui, -apple-system, sans-serif;
|
|
|
|
}
|
|
|
|
.hover { opacity: 0.8; transition: opacity .2s ease; }
|
|
|
|
|
|
|
|
::-webkit-scrollbar {
|
|
|
|
width: 0;
|
|
|
|
height: 0;
|
|
|
|
background: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* 顶部 */
|
|
|
|
.top { padding: 30rpx; }
|
|
|
|
.search-bar {
|
|
|
|
display: flex; align-items: center; gap: 14rpx;
|
|
|
|
padding: 18rpx 22rpx; border-radius: 9999rpx;
|
|
|
|
background: #f5f6f7;
|
|
|
|
}
|
|
|
|
.search-icon { width: 36rpx; height: 36rpx; }
|
|
|
|
.search-text { font-size: 26rpx; color: #a8a8a8; }
|
|
|
|
|
2025-06-23 10:03:08 +08:00
|
|
|
.swiper {
|
2025-08-15 00:36:04 +08:00
|
|
|
width: 100%; height: 324rpx; margin-top: 24rpx;
|
|
|
|
border-radius: 16rpx; overflow: hidden;
|
|
|
|
}
|
|
|
|
.swiper-image { width: 100%; height: 100%; }
|
|
|
|
|
|
|
|
/* 分类 */
|
|
|
|
.category-row {
|
|
|
|
display: flex; gap: 24rpx; padding: 0 30rpx; margin-top: 22rpx;
|
|
|
|
}
|
|
|
|
.category-card {
|
|
|
|
flex: 1; background: #fff; border-radius: 20rpx;
|
|
|
|
padding: 22rpx 0 18rpx;
|
|
|
|
display: flex; flex-direction: column; align-items: center; gap: 12rpx;
|
|
|
|
box-shadow: 0 6rpx 24rpx rgba(0,0,0,0.06);
|
|
|
|
}
|
|
|
|
.category-icon { width: 96rpx; height: 96rpx; }
|
|
|
|
.category-text { font-size: 26rpx; color: #111; }
|
|
|
|
|
|
|
|
/* 标题 */
|
|
|
|
.section-head { padding: 28rpx 30rpx 16rpx; }
|
|
|
|
.section-title { font-size: 30rpx; font-weight: 600; }
|
|
|
|
|
|
|
|
/* 列表(滚动) */
|
|
|
|
.list {
|
|
|
|
flex: 1;
|
|
|
|
padding: 0 20rpx 20rpx;
|
|
|
|
-webkit-overflow-scrolling: touch;
|
|
|
|
overflow: auto;
|
|
|
|
}
|
|
|
|
.no-scrollbar::-webkit-scrollbar { display: none; }
|
|
|
|
.no-scrollbar { scrollbar-width: none; }
|
|
|
|
|
|
|
|
/* 宫格布局 */
|
|
|
|
.grid {
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
gap: 20rpx;
|
|
|
|
}
|
|
|
|
.grid-item {
|
2025-08-15 15:34:05 +08:00
|
|
|
width: 345rpx;
|
2025-08-15 00:36:04 +08:00
|
|
|
background: #fff;
|
|
|
|
border-radius: 16rpx;
|
|
|
|
overflow: hidden;
|
|
|
|
box-shadow: 0 4rpx 16rpx rgba(0,0,0,0.05);
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
.grid-cover {
|
|
|
|
width: 100%; height: 200rpx;
|
|
|
|
object-fit: cover;
|
|
|
|
}
|
|
|
|
.grid-info {
|
|
|
|
padding: 14rpx;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
gap: 6rpx;
|
|
|
|
}
|
|
|
|
.grid-title {
|
|
|
|
font-size: 26rpx;
|
|
|
|
color: #111;
|
|
|
|
line-height: 36rpx;
|
|
|
|
display: -webkit-box;
|
|
|
|
-webkit-line-clamp: 2;
|
|
|
|
-webkit-box-orient: vertical;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
.grid-meta {
|
|
|
|
display: flex; justify-content: space-between; align-items: center;
|
|
|
|
}
|
|
|
|
.grid-price {
|
|
|
|
font-size: 26rpx;
|
|
|
|
font-weight: 600;
|
|
|
|
color: #ff6a00;
|
|
|
|
}
|
|
|
|
.grid-people {
|
|
|
|
font-size: 22rpx;
|
|
|
|
color: #9aa0a6;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 空状态 */
|
|
|
|
.empty {
|
|
|
|
padding: 80rpx 0 60rpx;
|
|
|
|
display: flex; flex-direction: column; align-items: center; gap: 18rpx;
|
|
|
|
color: #9aa0a6;
|
|
|
|
}
|
|
|
|
.empty-icon { width: 220rpx; height: 220rpx; opacity: 0.7; }
|
|
|
|
.empty-text { font-size: 24rpx; }
|