|
|
|
@ -6,56 +6,131 @@ |
|
|
|
font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif; |
|
|
|
} |
|
|
|
|
|
|
|
/* 步骤指示器 */ |
|
|
|
.step-indicator { |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
justify-content: space-between; |
|
|
|
padding: 32rpx; |
|
|
|
background: #FFFFFF; |
|
|
|
box-shadow: 0 2rpx 8rpx rgba(0,0,0,0.05); |
|
|
|
margin-bottom: 24rpx; |
|
|
|
width: 100%; |
|
|
|
box-sizing: border-box; |
|
|
|
} |
|
|
|
|
|
|
|
.step-item { |
|
|
|
display: flex; |
|
|
|
flex-direction: column; |
|
|
|
align-items: center; |
|
|
|
flex: 1; |
|
|
|
} |
|
|
|
|
|
|
|
.step-number { |
|
|
|
width: 48rpx; |
|
|
|
height: 48rpx; |
|
|
|
border-radius: 50%; |
|
|
|
background: #E5E5E5; |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
justify-content: center; |
|
|
|
font-size: 24rpx; |
|
|
|
font-weight: 600; |
|
|
|
color: #999; |
|
|
|
margin-bottom: 8rpx; |
|
|
|
transition: all 0.3s ease; |
|
|
|
} |
|
|
|
|
|
|
|
.step-text { |
|
|
|
font-size: 20rpx; |
|
|
|
color: #999; |
|
|
|
transition: all 0.3s ease; |
|
|
|
} |
|
|
|
|
|
|
|
.step-item.active .step-number { |
|
|
|
background: #007AFF; |
|
|
|
color: #FFFFFF; |
|
|
|
box-shadow: 0 0 0 8rpx rgba(0,122,255,0.1); |
|
|
|
} |
|
|
|
|
|
|
|
.step-item.active .step-text { |
|
|
|
color: #007AFF; |
|
|
|
font-weight: 500; |
|
|
|
} |
|
|
|
|
|
|
|
.step-line { |
|
|
|
flex: 1; |
|
|
|
height: 2rpx; |
|
|
|
background: #E5E5E5; |
|
|
|
margin: 0 16rpx; |
|
|
|
transition: all 0.3s ease; |
|
|
|
} |
|
|
|
|
|
|
|
.step-line.active { |
|
|
|
background: #007AFF; |
|
|
|
} |
|
|
|
|
|
|
|
.header { |
|
|
|
background: #FFFFFF; |
|
|
|
box-shadow: 0 2rpx 8rpx rgba(0,0,0,0.05); |
|
|
|
position: sticky; |
|
|
|
top: 0; |
|
|
|
z-index: 10; |
|
|
|
width: 100%; |
|
|
|
box-sizing: border-box; |
|
|
|
} |
|
|
|
|
|
|
|
.header-content { |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
justify-content: space-between; |
|
|
|
padding: 24rpx 32rpx; |
|
|
|
width: 100%; |
|
|
|
box-sizing: border-box; |
|
|
|
height: 100rpx; |
|
|
|
max-width: 100%; |
|
|
|
position: relative; |
|
|
|
} |
|
|
|
|
|
|
|
.back-button { |
|
|
|
width: 100rpx; |
|
|
|
height: 60rpx; |
|
|
|
line-height: 60rpx; |
|
|
|
font-size: 26rpx; |
|
|
|
font-size: 36rpx; |
|
|
|
color: #4a90e2; |
|
|
|
background: transparent; |
|
|
|
border: none; |
|
|
|
padding: 0; |
|
|
|
padding: 0 16rpx 0 0; |
|
|
|
margin: 0; |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
justify-content: flex-start; |
|
|
|
border-radius: 8rpx; |
|
|
|
transition: all 0.3s ease; |
|
|
|
flex-shrink: 0; |
|
|
|
overflow: visible; |
|
|
|
} |
|
|
|
|
|
|
|
.back-button:hover { |
|
|
|
color: #3b82f6; |
|
|
|
background: rgba(74, 144, 226, 0.1); |
|
|
|
transform: translateX(-2rpx); |
|
|
|
} |
|
|
|
|
|
|
|
.back-icon { |
|
|
|
margin-right: 8rpx; |
|
|
|
font-size: 22rpx; |
|
|
|
font-size: 36rpx; |
|
|
|
font-weight: 600; |
|
|
|
transition: all 0.3s ease; |
|
|
|
display: inline-block; |
|
|
|
} |
|
|
|
|
|
|
|
.back-button:hover .back-icon { |
|
|
|
transform: translateX(-12rpx); |
|
|
|
font-weight: 700; |
|
|
|
} |
|
|
|
|
|
|
|
.back-text { |
|
|
|
font-size: 26rpx; |
|
|
|
font-weight: 500; |
|
|
|
font-size: 36rpx; |
|
|
|
font-weight: 700; |
|
|
|
} |
|
|
|
|
|
|
|
.title { |
|
|
|
@ -63,14 +138,19 @@ |
|
|
|
font-weight: 700; |
|
|
|
color: #2c3e50; |
|
|
|
letter-spacing: 2rpx; |
|
|
|
flex: 1; |
|
|
|
text-align: center; |
|
|
|
margin: 0; |
|
|
|
padding: 0; |
|
|
|
position: absolute; |
|
|
|
left: 50%; |
|
|
|
transform: translateX(-50%); |
|
|
|
width: 100%; |
|
|
|
max-width: 300rpx; |
|
|
|
} |
|
|
|
|
|
|
|
.header-right { |
|
|
|
width: 100rpx; |
|
|
|
width: 60rpx; |
|
|
|
flex-shrink: 0; |
|
|
|
} |
|
|
|
|
|
|
|
.content { |
|
|
|
@ -234,17 +314,32 @@ |
|
|
|
|
|
|
|
.product-info-row { |
|
|
|
display: flex; |
|
|
|
justify-content: space-between; |
|
|
|
align-items: center; |
|
|
|
width: 100%; |
|
|
|
box-sizing: border-box; |
|
|
|
} |
|
|
|
|
|
|
|
.product-name-container { |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
.product-image-container { |
|
|
|
width: 120rpx; |
|
|
|
height: 120rpx; |
|
|
|
border-radius: 8rpx; |
|
|
|
overflow: hidden; |
|
|
|
margin-right: 24rpx; |
|
|
|
background: #F5F5F5; |
|
|
|
flex-shrink: 0; |
|
|
|
} |
|
|
|
|
|
|
|
.product-image { |
|
|
|
width: 100%; |
|
|
|
height: 100%; |
|
|
|
object-fit: cover; |
|
|
|
} |
|
|
|
|
|
|
|
.product-details { |
|
|
|
flex: 1; |
|
|
|
margin-right: 16rpx; |
|
|
|
display: flex; |
|
|
|
flex-direction: column; |
|
|
|
gap: 8rpx; |
|
|
|
} |
|
|
|
|
|
|
|
.product-name { |
|
|
|
@ -253,13 +348,18 @@ |
|
|
|
color: #333; |
|
|
|
line-height: 1.4; |
|
|
|
word-break: break-word; |
|
|
|
flex: 1; |
|
|
|
display: -webkit-box; |
|
|
|
-webkit-line-clamp: 2; |
|
|
|
-webkit-box-orient: vertical; |
|
|
|
overflow: hidden; |
|
|
|
} |
|
|
|
|
|
|
|
.product-hint { |
|
|
|
font-size: 24rpx; |
|
|
|
color: #999; |
|
|
|
line-height: 1.4; |
|
|
|
} |
|
|
|
|
|
|
|
/* 规格列表区域 */ |
|
|
|
.spec-section { |
|
|
|
margin-top: 32rpx; |
|
|
|
@ -293,8 +393,8 @@ |
|
|
|
/* 规格列表布局 */ |
|
|
|
.spec-list { |
|
|
|
margin-top: 16rpx; |
|
|
|
display: grid; |
|
|
|
grid-template-columns: repeat(2, 1fr); |
|
|
|
display: flex; |
|
|
|
flex-direction: column; |
|
|
|
gap: 16rpx; |
|
|
|
width: 100%; |
|
|
|
} |
|
|
|
@ -302,17 +402,32 @@ |
|
|
|
/* 规格项 */ |
|
|
|
.spec-item { |
|
|
|
background: #FFFFFF; |
|
|
|
border: 1rpx solid #E5E5E5; |
|
|
|
border-radius: 12rpx; |
|
|
|
padding: 32rpx 24rpx; |
|
|
|
padding: 32rpx 32rpx; |
|
|
|
cursor: pointer; |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
justify-content: center; |
|
|
|
justify-content: space-between; |
|
|
|
width: 100%; |
|
|
|
box-sizing: border-box; |
|
|
|
box-shadow: 0 2rpx 8rpx rgba(0,0,0,0.02); |
|
|
|
transition: all 0.3s ease; |
|
|
|
} |
|
|
|
|
|
|
|
.spec-radio { |
|
|
|
width: 32rpx; |
|
|
|
height: 32rpx; |
|
|
|
border: 2rpx solid #E5E5E5; |
|
|
|
border-radius: 50%; |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
justify-content: center; |
|
|
|
flex-shrink: 0; |
|
|
|
transition: all 0.3s ease; |
|
|
|
margin-left: 16rpx; |
|
|
|
} |
|
|
|
|
|
|
|
.spec-item:hover { |
|
|
|
box-shadow: 0 4rpx 12rpx rgba(0,0,0,0.05); |
|
|
|
transform: translateY(-2rpx); |
|
|
|
@ -322,16 +437,59 @@ |
|
|
|
background: #F5F5F5; |
|
|
|
} |
|
|
|
|
|
|
|
.spec-item.selected { |
|
|
|
border: 2rpx solid #007AFF; |
|
|
|
box-shadow: 0 0 0 4rpx rgba(0,122,255,0.1); |
|
|
|
} |
|
|
|
|
|
|
|
.spec-info { |
|
|
|
flex: 1; |
|
|
|
display: flex; |
|
|
|
flex-direction: column; |
|
|
|
gap: 8rpx; |
|
|
|
} |
|
|
|
|
|
|
|
.spec-name { |
|
|
|
font-size: 30rpx; |
|
|
|
font-weight: 500; |
|
|
|
color: #333; |
|
|
|
line-height: 1.4; |
|
|
|
word-break: break-word; |
|
|
|
text-align: center; |
|
|
|
padding: 0 8rpx; |
|
|
|
} |
|
|
|
|
|
|
|
.spec-details { |
|
|
|
font-size: 24rpx; |
|
|
|
color: #666; |
|
|
|
line-height: 1.4; |
|
|
|
padding: 0 8rpx; |
|
|
|
} |
|
|
|
|
|
|
|
.spec-radio { |
|
|
|
width: 32rpx; |
|
|
|
height: 32rpx; |
|
|
|
border: 2rpx solid #E5E5E5; |
|
|
|
border-radius: 50%; |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
justify-content: center; |
|
|
|
flex-shrink: 0; |
|
|
|
transition: all 0.3s ease; |
|
|
|
} |
|
|
|
|
|
|
|
.spec-radio.selected { |
|
|
|
border-color: #007AFF; |
|
|
|
background: #007AFF; |
|
|
|
} |
|
|
|
|
|
|
|
.radio-inner { |
|
|
|
width: 16rpx; |
|
|
|
height: 16rpx; |
|
|
|
border-radius: 50%; |
|
|
|
background: #FFFFFF; |
|
|
|
transition: all 0.3s ease; |
|
|
|
} |
|
|
|
|
|
|
|
/* 空状态 */ |
|
|
|
.empty-state { |
|
|
|
display: flex; |
|
|
|
@ -407,10 +565,26 @@ |
|
|
|
font-size: 28rpx; |
|
|
|
} |
|
|
|
|
|
|
|
.spec-details { |
|
|
|
font-size: 22rpx; |
|
|
|
} |
|
|
|
|
|
|
|
.spec-list { |
|
|
|
grid-template-columns: repeat(2, 1fr); |
|
|
|
gap: 16rpx; |
|
|
|
} |
|
|
|
|
|
|
|
.product-image-container { |
|
|
|
width: 100rpx; |
|
|
|
height: 100rpx; |
|
|
|
} |
|
|
|
|
|
|
|
.product-name { |
|
|
|
font-size: 28rpx; |
|
|
|
} |
|
|
|
|
|
|
|
.product-hint { |
|
|
|
font-size: 22rpx; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/* 小屏幕设备适配 */ |
|
|
|
@ -439,6 +613,10 @@ |
|
|
|
font-size: 24rpx; |
|
|
|
} |
|
|
|
|
|
|
|
.spec-details { |
|
|
|
font-size: 20rpx; |
|
|
|
} |
|
|
|
|
|
|
|
.btn-change-product { |
|
|
|
padding: 10rpx 20rpx; |
|
|
|
} |
|
|
|
@ -448,9 +626,21 @@ |
|
|
|
} |
|
|
|
|
|
|
|
.spec-list { |
|
|
|
grid-template-columns: repeat(2, 1fr); |
|
|
|
gap: 12rpx; |
|
|
|
} |
|
|
|
|
|
|
|
.product-image-container { |
|
|
|
width: 80rpx; |
|
|
|
height: 80rpx; |
|
|
|
} |
|
|
|
|
|
|
|
.product-name { |
|
|
|
font-size: 26rpx; |
|
|
|
} |
|
|
|
|
|
|
|
.product-hint { |
|
|
|
font-size: 20rpx; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/* 暂无更多规格提示 */ |
|
|
|
|