|
|
|
|
/**index.wxss**/
|
|
|
|
|
page {
|
|
|
|
|
height: 100vh;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
background: linear-gradient(180deg, #f8f8f8 0%, #f0f0f0 50%, #e8e8e8 100%);
|
|
|
|
|
margin: 0;
|
|
|
|
|
padding: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.container {
|
|
|
|
|
padding: 0;
|
|
|
|
|
margin: 0;
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100vh;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
background-color: #f8f8f8;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 标题样式 */
|
|
|
|
|
.title {
|
|
|
|
|
font-size: 36rpx;
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
margin: 20rpx;
|
|
|
|
|
color: #333;
|
|
|
|
|
text-align: center;
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
transition: all 0.3s ease;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.title-hidden {
|
|
|
|
|
opacity: 0;
|
|
|
|
|
transform: translateY(-20rpx);
|
|
|
|
|
height: 0;
|
|
|
|
|
margin: 0;
|
|
|
|
|
padding: 0;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 搜索区域样式 */
|
|
|
|
|
.search-section {
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
transition: all 0.3s ease;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.search-visible {
|
|
|
|
|
opacity: 1;
|
|
|
|
|
transform: translateY(0);
|
|
|
|
|
height: auto;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.search-hidden {
|
|
|
|
|
opacity: 0;
|
|
|
|
|
transform: translateY(-100%);
|
|
|
|
|
height: 0;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 搜索区域样式 */
|
|
|
|
|
.search-section {
|
|
|
|
|
width: 100%;
|
|
|
|
|
margin: 0 20rpx 20rpx 20rpx;
|
|
|
|
|
flex: 0 1 auto;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.search-bar {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 10rpx;
|
|
|
|
|
width: 100%;
|
|
|
|
|
background: rgba(255, 255, 255, 0.6);
|
|
|
|
|
backdrop-filter: blur(10rpx);
|
|
|
|
|
-webkit-backdrop-filter: blur(10rpx);
|
|
|
|
|
padding: 6rpx;
|
|
|
|
|
border-radius: 50rpx;
|
|
|
|
|
box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.08);
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
border: 1rpx solid rgba(255, 255, 255, 0.5);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.search-input-wrapper {
|
|
|
|
|
flex: 1;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
position: relative;
|
|
|
|
|
background-color: transparent;
|
|
|
|
|
border-radius: 40rpx;
|
|
|
|
|
padding: 0 10rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.search-icon {
|
|
|
|
|
margin: 0 10rpx;
|
|
|
|
|
font-size: 28rpx;
|
|
|
|
|
color: #999;
|
|
|
|
|
transition: all 0.3s ease;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.search-input {
|
|
|
|
|
flex: 1;
|
|
|
|
|
height: 70rpx;
|
|
|
|
|
font-size: 28rpx;
|
|
|
|
|
color: #333;
|
|
|
|
|
border: none;
|
|
|
|
|
outline: none;
|
|
|
|
|
background: transparent;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.search-placeholder {
|
|
|
|
|
color: #999;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.region-selector {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 5rpx;
|
|
|
|
|
font-size: 26rpx;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
color: #333;
|
|
|
|
|
padding: 15rpx 20rpx;
|
|
|
|
|
background: linear-gradient(135deg, #1677ff 0%, #4096ff 100%);
|
|
|
|
|
color: white;
|
|
|
|
|
border-radius: 40rpx;
|
|
|
|
|
box-shadow: 0 2rpx 8rpx rgba(22, 119, 255, 0.3);
|
|
|
|
|
transition: all 0.3s ease;
|
|
|
|
|
margin-right: 10rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.region-selector:hover {
|
|
|
|
|
transform: translateY(-2rpx);
|
|
|
|
|
box-shadow: 0 4rpx 12rpx rgba(22, 119, 255, 0.4);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.region-arrow {
|
|
|
|
|
font-size: 22rpx;
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
color: white;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.search-button {
|
|
|
|
|
background-color: #1677ff;
|
|
|
|
|
color: white;
|
|
|
|
|
border: none;
|
|
|
|
|
border-radius: 20rpx;
|
|
|
|
|
padding: 20rpx 4rpx;
|
|
|
|
|
font-size: 20rpx;
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
box-shadow: 0 2rpx 8rpx rgba(22, 119, 255, 0.3);
|
|
|
|
|
min-width: 10rpx;
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
wx-button:not([size=mini]) {
|
|
|
|
|
margin-left: auto;
|
|
|
|
|
margin-right: auto;
|
|
|
|
|
width: 90px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 地区选择器弹窗样式 */
|
|
|
|
|
.region-picker-overlay {
|
|
|
|
|
position: fixed;
|
|
|
|
|
top: 0;
|
|
|
|
|
left: 0;
|
|
|
|
|
right: 0;
|
|
|
|
|
bottom: 0;
|
|
|
|
|
background-color: rgba(0, 0, 0, 0.5);
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
align-items: flex-end;
|
|
|
|
|
z-index: 9999;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.region-picker-container {
|
|
|
|
|
background-color: white;
|
|
|
|
|
width: 100%;
|
|
|
|
|
border-radius: 20rpx 20rpx 0 0;
|
|
|
|
|
padding: 20rpx;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.region-picker-title {
|
|
|
|
|
font-size: 32rpx;
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
text-align: center;
|
|
|
|
|
margin-bottom: 20rpx;
|
|
|
|
|
color: #333;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.region-list {
|
|
|
|
|
max-height: 500rpx;
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
margin-bottom: 20rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.region-item {
|
|
|
|
|
padding: 20rpx;
|
|
|
|
|
font-size: 28rpx;
|
|
|
|
|
color: #333;
|
|
|
|
|
border-bottom: 1rpx solid #eee;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.region-item.active {
|
|
|
|
|
color: #1677ff;
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
background-color: #f0f7ff;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.confirm-region-btn {
|
|
|
|
|
background-color: #1677ff;
|
|
|
|
|
color: white;
|
|
|
|
|
border: none;
|
|
|
|
|
border-radius: 40rpx;
|
|
|
|
|
padding: 20rpx;
|
|
|
|
|
font-size: 28rpx;
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
width: 100%;
|
|
|
|
|
margin-top: 10rpx;
|
|
|
|
|
box-shadow: 0 2rpx 8rpx rgba(22, 119, 255, 0.3);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 品种筛选区域样式 */
|
|
|
|
|
.category-section {
|
|
|
|
|
width: 100%;
|
|
|
|
|
margin: 0 20rpx 20rpx 20rpx;
|
|
|
|
|
flex: 0 1 auto;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.category-scroll {
|
|
|
|
|
display: flex;
|
|
|
|
|
gap: 16rpx;
|
|
|
|
|
padding: 12rpx 16rpx;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
overflow-x: auto;
|
|
|
|
|
background: rgba(255, 255, 255, 0.5);
|
|
|
|
|
backdrop-filter: blur(10rpx);
|
|
|
|
|
-webkit-backdrop-filter: blur(10rpx);
|
|
|
|
|
border-radius: 40rpx;
|
|
|
|
|
box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.08);
|
|
|
|
|
border: 1rpx solid rgba(255, 255, 255, 0.5);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.egg-item {
|
|
|
|
|
position: relative;
|
|
|
|
|
padding: 16rpx 28rpx;
|
|
|
|
|
background: rgba(255, 255, 255, 0.7);
|
|
|
|
|
backdrop-filter: blur(8rpx);
|
|
|
|
|
-webkit-backdrop-filter: blur(8rpx);
|
|
|
|
|
border-radius: 30rpx;
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
align-items: center;
|
|
|
|
|
transition: all 0.3s ease;
|
|
|
|
|
box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.08);
|
|
|
|
|
border: 1rpx solid rgba(200, 200, 200, 0.5);
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.egg-item.active {
|
|
|
|
|
background: linear-gradient(135deg, #1677ff 0%, #4096ff 100%);
|
|
|
|
|
color: white;
|
|
|
|
|
box-shadow: 0 4rpx 16rpx rgba(22, 119, 255, 0.35);
|
|
|
|
|
border: 1rpx solid transparent;
|
|
|
|
|
transform: translateY(-2rpx);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.egg-inner {
|
|
|
|
|
font-size: 26rpx;
|
|
|
|
|
color: #555;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
text-align: center;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.egg-item.active .egg-inner {
|
|
|
|
|
color: #ffffff;
|
|
|
|
|
font-size: 28rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 侧边栏按钮样式 - 白色半透明毛玻璃质感 */
|
|
|
|
|
.sidebar-btn {
|
|
|
|
|
position: fixed;
|
|
|
|
|
left: 20rpx;
|
|
|
|
|
z-index: 999;
|
|
|
|
|
width: 120rpx;
|
|
|
|
|
height: 80rpx;
|
|
|
|
|
background-color: rgba(255, 255, 255, 0.85); /* 白色半透明 */
|
|
|
|
|
backdrop-filter: blur(10rpx); /* 毛玻璃效果 */
|
|
|
|
|
-webkit-backdrop-filter: blur(10rpx); /* 兼容iOS */
|
|
|
|
|
border-radius: 40rpx;
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
align-items: center;
|
|
|
|
|
box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.15); /* 柔和阴影 */
|
|
|
|
|
transition: all 0.3s ease;
|
|
|
|
|
border: 1rpx solid rgba(255, 255, 255, 0.5); /* 半透明白色边框 */
|
|
|
|
|
touch-action: none; /* 禁用浏览器默认的触摸行为 */
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.sidebar-btn:hover {
|
|
|
|
|
transform: scale(1.05);
|
|
|
|
|
box-shadow: 0 6rpx 20rpx rgba(0, 0, 0, 0.2); /* 增强阴影 */
|
|
|
|
|
background-color: rgba(255, 255, 255, 0.95); /* 提高透明度 */
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 侧边栏按钮隐藏状态 */
|
|
|
|
|
.sidebar-btn.hidden {
|
|
|
|
|
left: -80rpx;
|
|
|
|
|
transform: scale(1);
|
|
|
|
|
opacity: 1;
|
|
|
|
|
background-color: rgba(255, 255, 255, 0.85);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 侧边栏按钮内容区域 */
|
|
|
|
|
.sidebar-btn-content {
|
|
|
|
|
flex: 1;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
align-items: center;
|
|
|
|
|
height: 100%;
|
|
|
|
|
padding-left: 10rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.sidebar-icon {
|
|
|
|
|
font-size: 32rpx;
|
|
|
|
|
color: #333; /* 深色文字 */
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.sidebar-text {
|
|
|
|
|
font-size: 16rpx;
|
|
|
|
|
color: #666; /* 中深色文字 */
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 箭头按钮 */
|
|
|
|
|
.sidebar-arrow {
|
|
|
|
|
width: 40rpx;
|
|
|
|
|
height: 80rpx;
|
|
|
|
|
background-color: rgba(0, 0, 0, 0.05); /* 淡灰色背景 */
|
|
|
|
|
border-radius: 0 40rpx 40rpx 0;
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
align-items: center;
|
|
|
|
|
transition: all 0.3s ease;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.sidebar-arrow:hover {
|
|
|
|
|
background-color: rgba(0, 0, 0, 0.1); /* 加深背景色 */
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 箭头图标 */
|
|
|
|
|
.arrow-icon {
|
|
|
|
|
font-size: 20rpx;
|
|
|
|
|
color: #666; /* 深色箭头 */
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
transition: transform 0.3s ease, color 0.3s ease;
|
|
|
|
|
display: inline-block;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.arrow-icon.arrow-left {
|
|
|
|
|
transform: rotate(0deg);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.arrow-icon.arrow-right {
|
|
|
|
|
transform: rotate(180deg);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 侧边栏样式 */
|
|
|
|
|
.sidebar-overlay {
|
|
|
|
|
position: fixed;
|
|
|
|
|
top: 0;
|
|
|
|
|
left: 0;
|
|
|
|
|
right: 0;
|
|
|
|
|
bottom: 0;
|
|
|
|
|
background-color: rgba(0, 0, 0, 0.5);
|
|
|
|
|
z-index: 9998;
|
|
|
|
|
animation: fadeIn 0.3s ease;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.sidebar {
|
|
|
|
|
position: fixed;
|
|
|
|
|
top: 0;
|
|
|
|
|
left: 0;
|
|
|
|
|
width: 60%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
background-color: white;
|
|
|
|
|
z-index: 9999;
|
|
|
|
|
box-shadow: 4rpx 0 20rpx rgba(0, 0, 0, 0.2);
|
|
|
|
|
animation: slideIn 0.3s ease;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 动画效果 */
|
|
|
|
|
@keyframes fadeIn {
|
|
|
|
|
from { opacity: 0; }
|
|
|
|
|
to { opacity: 1; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@keyframes slideIn {
|
|
|
|
|
from { transform: translateX(-100%); }
|
|
|
|
|
to { transform: translateX(0); }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.sidebar-title {
|
|
|
|
|
font-size: 36rpx;
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
color: #333;
|
|
|
|
|
padding: 40rpx 20rpx;
|
|
|
|
|
border-bottom: 2rpx solid #eee;
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.sidebar-menu {
|
|
|
|
|
flex: 1;
|
|
|
|
|
padding: 20rpx 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.sidebar-item {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
padding: 30rpx 40rpx;
|
|
|
|
|
transition: all 0.3s ease;
|
|
|
|
|
border-bottom: 1rpx solid #f0f0f0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.sidebar-item:hover {
|
|
|
|
|
background-color: #f5f5f5;
|
|
|
|
|
padding-left: 50rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.sidebar-item-icon {
|
|
|
|
|
font-size: 36rpx;
|
|
|
|
|
margin-right: 20rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.sidebar-item-text {
|
|
|
|
|
font-size: 28rpx;
|
|
|
|
|
color: #333;
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 商品区域样式 - 调整为占据70%空间 */
|
|
|
|
|
.goods-section {
|
|
|
|
|
background-color: white;
|
|
|
|
|
padding: 20rpx;
|
|
|
|
|
border-radius: 10rpx;
|
|
|
|
|
margin: 0 20rpx 20rpx 20rpx;
|
|
|
|
|
box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.05);
|
|
|
|
|
flex: 7;
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
width: calc(100% - 40rpx);
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.goods-title {
|
|
|
|
|
font-size: 28rpx;
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
color: #333;
|
|
|
|
|
margin-bottom: 20rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.goods-list {
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
-webkit-overflow-scrolling: touch;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.goods-list-container {
|
|
|
|
|
padding: 20rpx 24rpx;
|
|
|
|
|
padding-bottom: 20rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.waterfall-container {
|
|
|
|
|
display: flex;
|
|
|
|
|
gap: 32rpx;
|
|
|
|
|
width: 100%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.waterfall-column {
|
|
|
|
|
flex: 1;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
gap: 16rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.left-column {
|
|
|
|
|
align-items: flex-start;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.right-column {
|
|
|
|
|
align-items: flex-end;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.goods-item {
|
|
|
|
|
width: 100%;
|
|
|
|
|
border-radius: 24rpx;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
|
|
|
|
|
transform-style: preserve-3d;
|
|
|
|
|
perspective: 1000rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.goods-card {
|
|
|
|
|
width: 100%;
|
|
|
|
|
border-radius: 20rpx;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
background: rgba(255, 255, 255, 0.82);
|
|
|
|
|
backdrop-filter: blur(10rpx);
|
|
|
|
|
-webkit-backdrop-filter: blur(10rpx);
|
|
|
|
|
box-shadow:
|
|
|
|
|
0 6rpx 24rpx rgba(0, 0, 0, 0.15),
|
|
|
|
|
0 0 0 1rpx rgba(0, 0, 0, 0.08),
|
|
|
|
|
inset 0 0 0 1rpx rgba(255, 255, 255, 0.95);
|
|
|
|
|
border: 2rpx solid rgba(200, 200, 200, 0.5);
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.goods-item:hover {
|
|
|
|
|
transform: translateY(-8rpx);
|
|
|
|
|
box-shadow:
|
|
|
|
|
0 16rpx 40rpx rgba(0, 0, 0, 0.22),
|
|
|
|
|
0 0 0 2rpx rgba(0, 0, 0, 0.12),
|
|
|
|
|
inset 0 0 0 1rpx rgba(255, 255, 255, 1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.goods-item:active {
|
|
|
|
|
transform: translateY(-4rpx);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.goods-item.long-card {
|
|
|
|
|
margin-bottom: 24rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.goods-item.long-card .goods-info {
|
|
|
|
|
min-height: 200rpx;
|
|
|
|
|
padding: 24rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.goods-item.short-card {
|
|
|
|
|
margin-bottom: 16rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.goods-item.short-card .goods-info {
|
|
|
|
|
min-height: 140rpx;
|
|
|
|
|
padding: 16rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.goods-item.short-card .goods-name {
|
|
|
|
|
-webkit-line-clamp: 1;
|
|
|
|
|
min-height: 40rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.goods-item.short-card .goods-spec {
|
|
|
|
|
margin-bottom: 8rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.goods-item.short-card .goods-price {
|
|
|
|
|
font-size: 32rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.left-column .goods-item {
|
|
|
|
|
transform: translateZ(10rpx);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.right-column .goods-item {
|
|
|
|
|
transform: translateZ(-10rpx);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.goods-image-container {
|
|
|
|
|
position: relative;
|
|
|
|
|
width: 100%;
|
|
|
|
|
padding-bottom: 100%;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
background: rgba(0, 0, 0, 0.05);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.goods-image {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 0;
|
|
|
|
|
left: 0;
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
background-color: #eee;
|
|
|
|
|
transition: all 0.4s ease;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.goods-item:hover .goods-image {
|
|
|
|
|
transform: scale(1.05);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.goods-tag {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 16rpx;
|
|
|
|
|
left: 16rpx;
|
|
|
|
|
background: rgba(255, 90, 90, 0.85);
|
|
|
|
|
backdrop-filter: blur(8rpx);
|
|
|
|
|
color: white;
|
|
|
|
|
font-size: 22rpx;
|
|
|
|
|
padding: 8rpx 16rpx;
|
|
|
|
|
border-radius: 20rpx;
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
box-shadow: 0 2rpx 8rpx rgba(255, 90, 90, 0.3);
|
|
|
|
|
border: 1rpx solid rgba(255, 255, 255, 0.3);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.goods-info {
|
|
|
|
|
padding: 20rpx;
|
|
|
|
|
flex: 1;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
background: rgba(255, 255, 255, 0.15);
|
|
|
|
|
backdrop-filter: blur(10rpx);
|
|
|
|
|
border-top: 1rpx solid rgba(255, 255, 255, 0.2);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.goods-name {
|
|
|
|
|
font-size: 28rpx;
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
color: #333;
|
|
|
|
|
margin-bottom: 12rpx;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
display: -webkit-box;
|
|
|
|
|
-webkit-line-clamp: 2;
|
|
|
|
|
-webkit-box-orient: vertical;
|
|
|
|
|
min-height: 60rpx;
|
|
|
|
|
line-height: 1.4;
|
|
|
|
|
text-shadow: 0 1rpx 2rpx rgba(255, 255, 255, 0.8);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.goods-spec {
|
|
|
|
|
font-size: 24rpx;
|
|
|
|
|
color: #666;
|
|
|
|
|
margin-bottom: 12rpx;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
text-shadow: 0 1rpx 2rpx rgba(255, 255, 255, 0.8);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.goods-price {
|
|
|
|
|
font-size: 36rpx;
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
color: #ff4d4f;
|
|
|
|
|
margin-bottom: 12rpx;
|
|
|
|
|
text-shadow: 0 1rpx 2rpx rgba(255, 255, 255, 0.8);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.goods-status-row {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
|
gap: 8rpx;
|
|
|
|
|
margin-bottom: 12rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.status-tag {
|
|
|
|
|
font-size: 20rpx;
|
|
|
|
|
padding: 4rpx 8rpx;
|
|
|
|
|
border-radius: 4rpx;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
display: inline-block;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.status-tag.supply-spot {
|
|
|
|
|
background: rgba(82, 196, 26, 0.15);
|
|
|
|
|
color: #389e0d;
|
|
|
|
|
border: 1rpx solid rgba(82, 196, 26, 0.5);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.status-tag.supply-presale {
|
|
|
|
|
background: rgba(255, 154, 28, 0.15);
|
|
|
|
|
color: #d46b08;
|
|
|
|
|
border: 1rpx solid rgba(255, 154, 28, 0.5);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.status-tag.auth-verified {
|
|
|
|
|
background: rgba(24, 144, 255, 0.15);
|
|
|
|
|
color: #096dd9;
|
|
|
|
|
border: 1rpx solid rgba(24, 144, 255, 0.5);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.status-tag.auth-unverified {
|
|
|
|
|
background: rgba(140, 140, 140, 0.15);
|
|
|
|
|
color: #595959;
|
|
|
|
|
border: 1rpx solid rgba(140, 140, 140, 0.5);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.status-tag.negotiate-yes {
|
|
|
|
|
background: rgba(255, 255, 255, 0.7);
|
|
|
|
|
backdrop-filter: blur(8rpx);
|
|
|
|
|
-webkit-backdrop-filter: blur(8rpx);
|
|
|
|
|
border: 1rpx solid rgba(200, 200, 200, 0.5);
|
|
|
|
|
box-shadow: 0 2rpx 6rpx rgba(0, 0, 0, 0.08);
|
|
|
|
|
color: #000000;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.status-tag.source-yes {
|
|
|
|
|
background: rgba(24, 144, 255, 0.15);
|
|
|
|
|
color: #096dd9;
|
|
|
|
|
border: 1rpx solid rgba(24, 144, 255, 0.5);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.status-tag.negotiate-no {
|
|
|
|
|
background: rgba(180, 180, 180, 0.15);
|
|
|
|
|
color: #595959;
|
|
|
|
|
border: 1rpx solid rgba(180, 180, 180, 0.5);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.status-tag.source-third {
|
|
|
|
|
background: rgba(24, 144, 255, 0.15);
|
|
|
|
|
color: #096dd9;
|
|
|
|
|
border: 1rpx solid rgba(24, 144, 255, 0.5);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.status-tag.source-platform {
|
|
|
|
|
background: rgba(82, 196, 26, 0.15);
|
|
|
|
|
color: #389e0d;
|
|
|
|
|
border: 1rpx solid rgba(82, 196, 26, 0.5);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.status-tag.source-unverified {
|
|
|
|
|
background: rgba(140, 140, 140, 0.15);
|
|
|
|
|
color: #595959;
|
|
|
|
|
border: 1rpx solid rgba(140, 140, 140, 0.5);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.goods-footer {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
font-size: 22rpx;
|
|
|
|
|
color: #888;
|
|
|
|
|
margin-top: auto;
|
|
|
|
|
padding-top: 12rpx;
|
|
|
|
|
border-top: 1rpx solid rgba(255, 255, 255, 0.2);
|
|
|
|
|
text-shadow: 0 1rpx 2rpx rgba(255, 255, 255, 0.8);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.goods-region-bg {
|
|
|
|
|
background: rgba(255, 255, 255, 0.5);
|
|
|
|
|
backdrop-filter: blur(8rpx);
|
|
|
|
|
-webkit-backdrop-filter: blur(8rpx);
|
|
|
|
|
border-radius: 8rpx;
|
|
|
|
|
padding: 6rpx 14rpx;
|
|
|
|
|
box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.08);
|
|
|
|
|
border: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.goods-region {
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
padding: 4rpx 10rpx;
|
|
|
|
|
background: linear-gradient(135deg, rgba(22, 119, 255, 0.08) 0%, rgba(64, 150, 255, 0.05) 100%);
|
|
|
|
|
border-radius: 12rpx;
|
|
|
|
|
font-size: 18rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.goods-reserved {
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 空商品样式 */
|
|
|
|
|
.empty-goods {
|
|
|
|
|
width: 100%;
|
|
|
|
|
text-align: center;
|
|
|
|
|
padding: 60rpx 0;
|
|
|
|
|
color: #999;
|
|
|
|
|
font-size: 28rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 加载更多样式 */
|
|
|
|
|
.loading-more {
|
|
|
|
|
width: 100%;
|
|
|
|
|
text-align: center;
|
|
|
|
|
padding: 20rpx 0;
|
|
|
|
|
color: #999;
|
|
|
|
|
font-size: 24rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 弹窗样式 */
|
|
|
|
|
.auth-modal-overlay {
|
|
|
|
|
position: fixed;
|
|
|
|
|
top: 0;
|
|
|
|
|
left: 0;
|
|
|
|
|
right: 0;
|
|
|
|
|
bottom: 0;
|
|
|
|
|
background-color: rgba(0, 0, 0, 0.5);
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
align-items: center;
|
|
|
|
|
z-index: 9999;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.auth-modal-container {
|
|
|
|
|
background-color: #fff;
|
|
|
|
|
border-radius: 24rpx;
|
|
|
|
|
width: 85%;
|
|
|
|
|
max-width: 520rpx;
|
|
|
|
|
padding: 50rpx 40rpx;
|
|
|
|
|
box-shadow: 0 12rpx 32rpx rgba(0, 0, 0, 0.18);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.auth-modal-title {
|
|
|
|
|
font-size: 40rpx;
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
color: #333;
|
|
|
|
|
text-align: center;
|
|
|
|
|
margin-bottom: 35rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.auth-modal-content {
|
|
|
|
|
font-size: 32rpx;
|
|
|
|
|
line-height: 1.6;
|
|
|
|
|
color: #666;
|
|
|
|
|
text-align: center;
|
|
|
|
|
margin-bottom: 50rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.auth-modal-buttons {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
gap: 24rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.auth-primary-button {
|
|
|
|
|
background-color: #07c160;
|
|
|
|
|
color: #fff;
|
|
|
|
|
font-size: 34rpx;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
line-height: 1.6;
|
|
|
|
|
border-radius: 12rpx;
|
|
|
|
|
padding: 24rpx 0;
|
|
|
|
|
box-shadow: 0 4rpx 12rpx rgba(7, 193, 96, 0.3);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.auth-cancel-button {
|
|
|
|
|
background-color: #fff;
|
|
|
|
|
color: #999;
|
|
|
|
|
font-size: 34rpx;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
line-height: 1.6;
|
|
|
|
|
border-radius: 12rpx;
|
|
|
|
|
padding: 24rpx 0;
|
|
|
|
|
border: 2rpx solid #e5e5e5;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 头像选择样式 */
|
|
|
|
|
.avatar-section {
|
|
|
|
|
text-align: center;
|
|
|
|
|
margin-bottom: 40rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.avatar-wrapper {
|
|
|
|
|
padding: 0;
|
|
|
|
|
background: none;
|
|
|
|
|
border: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.avatar {
|
|
|
|
|
width: 160rpx;
|
|
|
|
|
height: 160rpx;
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 表单样式 */
|
|
|
|
|
.form-group {
|
|
|
|
|
margin-bottom: 30rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.form-label {
|
|
|
|
|
font-size: 28rpx;
|
|
|
|
|
margin-bottom: 10rpx;
|
|
|
|
|
display: block;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.form-input {
|
|
|
|
|
border: 1rpx solid #eee;
|
|
|
|
|
border-radius: 8rpx;
|
|
|
|
|
padding: 20rpx;
|
|
|
|
|
width: 100%;
|
|
|
|
|
max-width: 100%;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
font-size: 28rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.form-actions {
|
|
|
|
|
text-align: center;
|
|
|
|
|
margin-top: 40rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.confirm-button {
|
|
|
|
|
background-color: #07c160;
|
|
|
|
|
color: white;
|
|
|
|
|
width: 100%;
|
|
|
|
|
border-radius: 8rpx;
|
|
|
|
|
border: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 登录提示样式 */
|
|
|
|
|
.login-hint {
|
|
|
|
|
margin-top: 50rpx;
|
|
|
|
|
font-size: 28rpx;
|
|
|
|
|
color: #666;
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.link-text {
|
|
|
|
|
color: #1677ff;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 图片预览样式 */
|
|
|
|
|
.image-preview-mask {
|
|
|
|
|
position: fixed;
|
|
|
|
|
top: 0;
|
|
|
|
|
left: 0;
|
|
|
|
|
right: 0;
|
|
|
|
|
bottom: 0;
|
|
|
|
|
background: rgba(0, 0, 0, 0.9);
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
align-items: center;
|
|
|
|
|
z-index: 9999;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.image-preview-swiper {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.preview-image {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
display: block;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.image-preview-close {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 40rpx;
|
|
|
|
|
right: 40rpx;
|
|
|
|
|
width: 60rpx;
|
|
|
|
|
height: 60rpx;
|
|
|
|
|
background-color: rgba(0, 0, 0, 0.5);
|
|
|
|
|
border-radius: 30rpx;
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
align-items: center;
|
|
|
|
|
z-index: 10000;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.close-icon {
|
|
|
|
|
color: white;
|
|
|
|
|
font-size: 36rpx;
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ==================== 瀑布流布局(Masonry) ==================== */
|
|
|
|
|
|
|
|
|
|
/* 骨架屏样式 */
|
|
|
|
|
.skeleton-container {
|
|
|
|
|
padding: 20rpx;
|
|
|
|
|
background: #f8f8f8;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.skeleton-waterfall {
|
|
|
|
|
display: flex;
|
|
|
|
|
gap: 16rpx;
|
|
|
|
|
width: 100%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.skeleton-column {
|
|
|
|
|
flex: 1;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
gap: 16rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.skeleton-item {
|
|
|
|
|
background: #fff;
|
|
|
|
|
border-radius: 16rpx;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
padding-bottom: 20rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.skeleton-image {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 350rpx;
|
|
|
|
|
background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
|
|
|
|
|
background-size: 200% 100%;
|
|
|
|
|
animation: skeleton-loading 1.5s infinite;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.skeleton-title {
|
|
|
|
|
height: 32rpx;
|
|
|
|
|
margin: 20rpx 16rpx 12rpx;
|
|
|
|
|
background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
|
|
|
|
|
background-size: 200% 100%;
|
|
|
|
|
animation: skeleton-loading 1.5s infinite;
|
|
|
|
|
border-radius: 8rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.skeleton-title.short {
|
|
|
|
|
width: 60%;
|
|
|
|
|
margin-top: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.skeleton-footer {
|
|
|
|
|
margin: 16rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.skeleton-price {
|
|
|
|
|
width: 80rpx;
|
|
|
|
|
height: 32rpx;
|
|
|
|
|
background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
|
|
|
|
|
background-size: 200% 100%;
|
|
|
|
|
animation: skeleton-loading 1.5s infinite;
|
|
|
|
|
border-radius: 8rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@keyframes skeleton-loading {
|
|
|
|
|
0% {
|
|
|
|
|
background-position: 200% 0;
|
|
|
|
|
}
|
|
|
|
|
100% {
|
|
|
|
|
background-position: -200% 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 商品区域样式 */
|
|
|
|
|
.goods-section {
|
|
|
|
|
background-color: #f8f8f8;
|
|
|
|
|
padding: 16rpx;
|
|
|
|
|
margin: 0;
|
|
|
|
|
flex: 7;
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
width: 100%;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.goods-list-container {
|
|
|
|
|
padding: 0;
|
|
|
|
|
padding-bottom: 20rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 瀑布流容器 */
|
|
|
|
|
.waterfall-container {
|
|
|
|
|
display: flex;
|
|
|
|
|
gap: 16rpx;
|
|
|
|
|
width: 100%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 瀑布流列 */
|
|
|
|
|
.waterfall-column {
|
|
|
|
|
flex: 1;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
gap: 16rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.left-column {
|
|
|
|
|
align-items: flex-start;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.right-column {
|
|
|
|
|
align-items: flex-end;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 瀑布流商品项 */
|
|
|
|
|
.waterfall-item {
|
|
|
|
|
width: 100%;
|
|
|
|
|
border-radius: 16rpx;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
transition: all 0.3s ease;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.waterfall-item:active {
|
|
|
|
|
transform: scale(0.98);
|
|
|
|
|
opacity: 0.9;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 商品卡片 */
|
|
|
|
|
.product-card {
|
|
|
|
|
width: 100%;
|
|
|
|
|
background: #fff;
|
|
|
|
|
border-radius: 16rpx;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.08);
|
|
|
|
|
transition: all 0.3s ease;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.product-card:active {
|
|
|
|
|
transform: scale(0.98);
|
|
|
|
|
box-shadow: 0 1rpx 6rpx rgba(0, 0, 0, 0.1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 商品图片区域 */
|
|
|
|
|
.product-image-wrapper {
|
|
|
|
|
position: relative;
|
|
|
|
|
width: 100%;
|
|
|
|
|
background: #f5f5f5;
|
|
|
|
|
border-radius: 16rpx 16rpx 0 0;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.product-image {
|
|
|
|
|
width: 100%;
|
|
|
|
|
display: block;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 促销标签 */
|
|
|
|
|
.promo-tag {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 0;
|
|
|
|
|
left: 0;
|
|
|
|
|
padding: 6rpx 12rpx;
|
|
|
|
|
font-size: 20rpx;
|
|
|
|
|
color: #fff;
|
|
|
|
|
border-radius: 0 0 12rpx 0;
|
|
|
|
|
z-index: 1;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.promo-tag.presale {
|
|
|
|
|
background: linear-gradient(135deg, #ff6b00 0%, #ff8c00 100%);
|
|
|
|
|
box-shadow: 0 2rpx 8rpx rgba(255, 107, 0, 0.3);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.promo-tag.source {
|
|
|
|
|
background: linear-gradient(135deg, #e00 0%, #ff4d4f 100%);
|
|
|
|
|
box-shadow: 0 2rpx 8rpx rgba(255, 0, 0, 0.3);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 商品信息区域 */
|
|
|
|
|
.product-info {
|
|
|
|
|
padding: 16rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 商品标题 */
|
|
|
|
|
.product-title {
|
|
|
|
|
font-size: 26rpx;
|
|
|
|
|
color: #333;
|
|
|
|
|
line-height: 1.4;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
display: -webkit-box;
|
|
|
|
|
-webkit-line-clamp: 2;
|
|
|
|
|
-webkit-box-orient: vertical;
|
|
|
|
|
min-height: 72rpx;
|
|
|
|
|
margin-bottom: 8rpx;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 商品规格 */
|
|
|
|
|
.product-spec {
|
|
|
|
|
font-size: 22rpx;
|
|
|
|
|
color: #999;
|
|
|
|
|
margin-bottom: 12rpx;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 价格区域 - 淘宝风格突出显示 */
|
|
|
|
|
.product-price-row {
|
|
|
|
|
margin-bottom: 12rpx;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: baseline;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.price-wrapper {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: baseline;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.price-unit {
|
|
|
|
|
font-size: 24rpx;
|
|
|
|
|
color: #ff4d4f;
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.price-value {
|
|
|
|
|
font-size: 40rpx;
|
|
|
|
|
color: #ff4d4f;
|
|
|
|
|
font-weight: 800;
|
|
|
|
|
margin: 0 2rpx;
|
|
|
|
|
letter-spacing: 1rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.price-unit:last-child {
|
|
|
|
|
margin-left: 4rpx;
|
|
|
|
|
font-size: 22rpx;
|
|
|
|
|
color: #ff4d4f;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 销量和地区 - 淘宝风格 */
|
|
|
|
|
.product-meta {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
align-items: center;
|
|
|
|
|
font-size: 22rpx;
|
|
|
|
|
color: #999;
|
|
|
|
|
margin-top: 8rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.sales-count {
|
|
|
|
|
color: #999;
|
|
|
|
|
background: rgba(255, 77, 79, 0.08);
|
|
|
|
|
padding: 4rpx 10rpx;
|
|
|
|
|
border-radius: 6rpx;
|
|
|
|
|
font-size: 20rpx;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.product-location {
|
|
|
|
|
max-width: 80rpx;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
font-size: 20rpx;
|
|
|
|
|
color: #999;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 加载更多 */
|
|
|
|
|
.loading-more {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
align-items: center;
|
|
|
|
|
padding: 30rpx 0;
|
|
|
|
|
width: 100%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.loading-spinner {
|
|
|
|
|
width: 32rpx;
|
|
|
|
|
height: 32rpx;
|
|
|
|
|
border: 3rpx solid #e5e5e5;
|
|
|
|
|
border-top-color: #1677ff;
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
animation: spin 0.8s linear infinite;
|
|
|
|
|
margin-right: 12rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.loading-text {
|
|
|
|
|
font-size: 26rpx;
|
|
|
|
|
color: #999;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@keyframes spin {
|
|
|
|
|
to {
|
|
|
|
|
transform: rotate(360deg);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 无更多数据 */
|
|
|
|
|
.no-more-data {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
padding: 30rpx 20rpx;
|
|
|
|
|
padding-bottom: 50rpx;
|
|
|
|
|
color: #999;
|
|
|
|
|
font-size: 26rpx;
|
|
|
|
|
gap: 20rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.no-more-data::before,
|
|
|
|
|
.no-more-data::after {
|
|
|
|
|
content: '';
|
|
|
|
|
flex: 1;
|
|
|
|
|
height: 1rpx;
|
|
|
|
|
background: #e5e5e5;
|
|
|
|
|
max-width: 80rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 广告位样式 */
|
|
|
|
|
.ad-card {
|
|
|
|
|
position: relative;
|
|
|
|
|
border-radius: 16rpx;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
background: #fff;
|
|
|
|
|
box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.08);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 完整卡片广告 */
|
|
|
|
|
.ad-full-card {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 400rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.ad-image {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 400rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 半高图片广告 */
|
|
|
|
|
.ad-half-image {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 200rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.ad-image-half {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 200rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 广告标签 */
|
|
|
|
|
.ad-badge {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 16rpx;
|
|
|
|
|
right: 16rpx;
|
|
|
|
|
background: rgba(0, 0, 0, 0.5);
|
|
|
|
|
color: #fff;
|
|
|
|
|
font-size: 20rpx;
|
|
|
|
|
padding: 4rpx 12rpx;
|
|
|
|
|
border-radius: 6rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 广告点击效果 */
|
|
|
|
|
.ad-card:active {
|
|
|
|
|
opacity: 0.85;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 空商品状态 */
|
|
|
|
|
.empty-goods {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
align-items: center;
|
|
|
|
|
padding: 100rpx 0;
|
|
|
|
|
width: 100%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.empty-icon {
|
|
|
|
|
font-size: 80rpx;
|
|
|
|
|
margin-bottom: 20rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.empty-text {
|
|
|
|
|
font-size: 30rpx;
|
|
|
|
|
color: #999;
|
|
|
|
|
margin-bottom: 12rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.empty-hint {
|
|
|
|
|
font-size: 24rpx;
|
|
|
|
|
color: #ccc;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 回到顶部按钮 */
|
|
|
|
|
.back-to-top-btn {
|
|
|
|
|
position: fixed;
|
|
|
|
|
right: 30rpx;
|
|
|
|
|
bottom: 200rpx;
|
|
|
|
|
width: 100rpx;
|
|
|
|
|
height: 100rpx;
|
|
|
|
|
background: linear-gradient(135deg, #1677ff 0%, #4096ff 100%);
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
align-items: center;
|
|
|
|
|
box-shadow: 0 4rpx 16rpx rgba(22, 119, 255, 0.4);
|
|
|
|
|
opacity: 0;
|
|
|
|
|
transform: translateY(20rpx);
|
|
|
|
|
transition: all 0.3s ease;
|
|
|
|
|
z-index: 999;
|
|
|
|
|
pointer-events: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.back-to-top-btn.visible {
|
|
|
|
|
opacity: 1;
|
|
|
|
|
transform: translateY(0);
|
|
|
|
|
pointer-events: auto;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.back-to-top-icon {
|
|
|
|
|
font-size: 36rpx;
|
|
|
|
|
color: white;
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.back-to-top-text {
|
|
|
|
|
font-size: 18rpx;
|
|
|
|
|
color: white;
|
|
|
|
|
margin-top: 2rpx;
|
|
|
|
|
}
|