|
|
|
@ -234,103 +234,39 @@ |
|
|
|
|
|
|
|
/* 规格网格布局 */ |
|
|
|
.spec-grid { |
|
|
|
display: grid; |
|
|
|
grid-template-columns: repeat(3, 1fr); |
|
|
|
gap: 20rpx; |
|
|
|
display: flex; |
|
|
|
flex-direction: column; |
|
|
|
gap: 16rpx; |
|
|
|
margin-top: 16rpx; |
|
|
|
} |
|
|
|
|
|
|
|
/* 规格卡片 */ |
|
|
|
.spec-card { |
|
|
|
background: rgba(255, 255, 255, 0.95); |
|
|
|
border-radius: 20rpx; |
|
|
|
padding: 32rpx 24rpx; |
|
|
|
box-shadow: 0 6rpx 20rpx rgba(0,0,0,0.08); |
|
|
|
transition: all 0.3s ease; |
|
|
|
background: #f5f5f5; |
|
|
|
border-radius: 12rpx; |
|
|
|
padding: 40rpx 24rpx; |
|
|
|
cursor: pointer; |
|
|
|
position: relative; |
|
|
|
overflow: hidden; |
|
|
|
backdrop-filter: blur(8rpx); |
|
|
|
border: 1rpx solid rgba(255, 255, 255, 0.3); |
|
|
|
min-height: 200rpx; |
|
|
|
min-height: 120rpx; |
|
|
|
display: flex; |
|
|
|
flex-direction: column; |
|
|
|
} |
|
|
|
|
|
|
|
.spec-card::before { |
|
|
|
content: ''; |
|
|
|
position: absolute; |
|
|
|
top: 0; |
|
|
|
left: 0; |
|
|
|
width: 6rpx; |
|
|
|
height: 100%; |
|
|
|
background: linear-gradient(180deg, #60a5fa 0%, #3b82f6 100%); |
|
|
|
} |
|
|
|
|
|
|
|
.spec-card:hover { |
|
|
|
transform: translateY(-6rpx); |
|
|
|
box-shadow: 0 12rpx 32rpx rgba(0,0,0,0.15); |
|
|
|
background: rgba(255, 255, 255, 1); |
|
|
|
} |
|
|
|
|
|
|
|
.spec-card:active { |
|
|
|
transform: translateY(-2rpx); |
|
|
|
box-shadow: 0 8rpx 24rpx rgba(0,0,0,0.12); |
|
|
|
align-items: center; |
|
|
|
justify-content: center; |
|
|
|
} |
|
|
|
|
|
|
|
.spec-info { |
|
|
|
margin-bottom: 20rpx; |
|
|
|
flex: 1; |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
justify-content: center; |
|
|
|
} |
|
|
|
|
|
|
|
.spec-name { |
|
|
|
font-size: 28rpx; |
|
|
|
font-weight: 600; |
|
|
|
color: #2c3e50; |
|
|
|
font-size: 30rpx; |
|
|
|
font-weight: 500; |
|
|
|
color: #333; |
|
|
|
line-height: 1.4; |
|
|
|
word-break: break-word; |
|
|
|
padding-right: 40rpx; |
|
|
|
} |
|
|
|
|
|
|
|
.spec-price { |
|
|
|
display: flex; |
|
|
|
flex-direction: column; |
|
|
|
margin-top: 16rpx; |
|
|
|
} |
|
|
|
|
|
|
|
.price-label { |
|
|
|
font-size: 20rpx; |
|
|
|
color: #999; |
|
|
|
margin-bottom: 4rpx; |
|
|
|
} |
|
|
|
|
|
|
|
.price-value { |
|
|
|
font-size: 36rpx; |
|
|
|
font-weight: 700; |
|
|
|
color: #e74c3c; |
|
|
|
transition: all 0.3s ease; |
|
|
|
} |
|
|
|
|
|
|
|
.spec-card:hover .price-value { |
|
|
|
transform: scale(1.05); |
|
|
|
} |
|
|
|
|
|
|
|
.spec-arrow { |
|
|
|
position: absolute; |
|
|
|
top: 32rpx; |
|
|
|
right: 28rpx; |
|
|
|
font-size: 32rpx; |
|
|
|
color: #4a90e2; |
|
|
|
font-weight: bold; |
|
|
|
opacity: 0.6; |
|
|
|
transition: all 0.3s ease; |
|
|
|
} |
|
|
|
|
|
|
|
.spec-card:hover .spec-arrow { |
|
|
|
opacity: 1; |
|
|
|
transform: translateX(4rpx); |
|
|
|
text-align: center; |
|
|
|
padding-right: 0; |
|
|
|
} |
|
|
|
|
|
|
|
/* 空状态 */ |
|
|
|
@ -364,7 +300,6 @@ |
|
|
|
} |
|
|
|
|
|
|
|
.spec-grid { |
|
|
|
grid-template-columns: repeat(3, 1fr); |
|
|
|
gap: 16rpx; |
|
|
|
} |
|
|
|
|
|
|
|
@ -373,8 +308,8 @@ |
|
|
|
} |
|
|
|
|
|
|
|
.spec-card { |
|
|
|
padding: 28rpx 20rpx; |
|
|
|
min-height: 180rpx; |
|
|
|
padding: 36rpx 20rpx; |
|
|
|
min-height: 110rpx; |
|
|
|
} |
|
|
|
|
|
|
|
.title { |
|
|
|
@ -389,10 +324,6 @@ |
|
|
|
font-size: 28rpx; |
|
|
|
} |
|
|
|
|
|
|
|
.price-value { |
|
|
|
font-size: 32rpx; |
|
|
|
} |
|
|
|
|
|
|
|
.button-group { |
|
|
|
flex-direction: column; |
|
|
|
gap: 12rpx; |
|
|
|
@ -407,22 +338,17 @@ |
|
|
|
/* 小屏幕设备适配 */ |
|
|
|
@media (max-width: 414rpx) { |
|
|
|
.spec-grid { |
|
|
|
grid-template-columns: repeat(3, 1fr); |
|
|
|
gap: 12rpx; |
|
|
|
} |
|
|
|
|
|
|
|
.spec-card { |
|
|
|
padding: 24rpx 16rpx; |
|
|
|
min-height: 160rpx; |
|
|
|
padding: 32rpx 16rpx; |
|
|
|
min-height: 100rpx; |
|
|
|
} |
|
|
|
|
|
|
|
.spec-name { |
|
|
|
font-size: 24rpx; |
|
|
|
} |
|
|
|
|
|
|
|
.price-value { |
|
|
|
font-size: 28rpx; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/* 暂无更多规格提示 */ |
|
|
|
@ -451,86 +377,48 @@ |
|
|
|
} |
|
|
|
|
|
|
|
.category-grid { |
|
|
|
display: grid; |
|
|
|
grid-template-columns: repeat(2, 1fr); |
|
|
|
display: flex; |
|
|
|
flex-direction: column; |
|
|
|
gap: 20rpx; |
|
|
|
margin-top: 16rpx; |
|
|
|
} |
|
|
|
|
|
|
|
.category-card { |
|
|
|
background: rgba(255, 255, 255, 0.95); |
|
|
|
border-radius: 20rpx; |
|
|
|
padding: 32rpx 24rpx; |
|
|
|
box-shadow: 0 6rpx 20rpx rgba(0,0,0,0.08); |
|
|
|
transition: all 0.3s ease; |
|
|
|
background: #f5f5f5; |
|
|
|
border-radius: 12rpx; |
|
|
|
padding: 40rpx 24rpx; |
|
|
|
cursor: pointer; |
|
|
|
position: relative; |
|
|
|
overflow: hidden; |
|
|
|
backdrop-filter: blur(8rpx); |
|
|
|
border: 1rpx solid rgba(255, 255, 255, 0.3); |
|
|
|
min-height: 150rpx; |
|
|
|
min-height: 120rpx; |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
justify-content: space-between; |
|
|
|
} |
|
|
|
|
|
|
|
.category-card::before { |
|
|
|
content: ''; |
|
|
|
position: absolute; |
|
|
|
top: 0; |
|
|
|
left: 0; |
|
|
|
width: 6rpx; |
|
|
|
height: 100%; |
|
|
|
background: linear-gradient(180deg, #60a5fa 0%, #3b82f6 100%); |
|
|
|
} |
|
|
|
|
|
|
|
.category-card:hover { |
|
|
|
transform: translateY(-6rpx); |
|
|
|
box-shadow: 0 12rpx 32rpx rgba(0,0,0,0.15); |
|
|
|
background: rgba(255, 255, 255, 1); |
|
|
|
} |
|
|
|
|
|
|
|
.category-card:active { |
|
|
|
transform: translateY(-2rpx); |
|
|
|
box-shadow: 0 8rpx 24rpx rgba(0,0,0,0.12); |
|
|
|
justify-content: center; |
|
|
|
} |
|
|
|
|
|
|
|
.category-info { |
|
|
|
flex: 1; |
|
|
|
margin-right: 20rpx; |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
justify-content: center; |
|
|
|
} |
|
|
|
|
|
|
|
.category-name { |
|
|
|
font-size: 32rpx; |
|
|
|
font-weight: 600; |
|
|
|
color: #2c3e50; |
|
|
|
font-size: 30rpx; |
|
|
|
font-weight: 500; |
|
|
|
color: #333; |
|
|
|
line-height: 1.4; |
|
|
|
word-break: break-word; |
|
|
|
} |
|
|
|
|
|
|
|
.category-arrow { |
|
|
|
font-size: 32rpx; |
|
|
|
color: #4a90e2; |
|
|
|
font-weight: bold; |
|
|
|
opacity: 0.6; |
|
|
|
transition: all 0.3s ease; |
|
|
|
} |
|
|
|
|
|
|
|
.category-card:hover .category-arrow { |
|
|
|
opacity: 1; |
|
|
|
transform: translateX(4rpx); |
|
|
|
text-align: center; |
|
|
|
} |
|
|
|
|
|
|
|
/* 响应式设计 - 分类区域 */ |
|
|
|
@media (max-width: 750rpx) { |
|
|
|
.category-grid { |
|
|
|
grid-template-columns: repeat(2, 1fr); |
|
|
|
gap: 16rpx; |
|
|
|
} |
|
|
|
|
|
|
|
.category-card { |
|
|
|
padding: 28rpx 20rpx; |
|
|
|
min-height: 130rpx; |
|
|
|
padding: 36rpx 20rpx; |
|
|
|
min-height: 110rpx; |
|
|
|
} |
|
|
|
|
|
|
|
.category-name { |
|
|
|
@ -540,13 +428,12 @@ |
|
|
|
|
|
|
|
@media (max-width: 414rpx) { |
|
|
|
.category-grid { |
|
|
|
grid-template-columns: 1fr; |
|
|
|
gap: 12rpx; |
|
|
|
} |
|
|
|
|
|
|
|
.category-card { |
|
|
|
padding: 24rpx 16rpx; |
|
|
|
min-height: 110rpx; |
|
|
|
padding: 32rpx 16rpx; |
|
|
|
min-height: 100rpx; |
|
|
|
} |
|
|
|
|
|
|
|
.category-name { |
|
|
|
|