Files
JayuCloud/WeChatProgram/pages/product-detail/index.wxss
T

194 lines
2.8 KiB
Plaintext

.detail-page {
padding-bottom: calc(env(safe-area-inset-bottom) + 160rpx);
}
.media-box {
position: relative;
overflow: hidden;
border-radius: 0 0 40rpx 40rpx;
}
.media-swiper,
.media-image {
width: 100%;
height: 640rpx;
}
.media-mask {
position: absolute;
left: 24rpx;
right: 24rpx;
bottom: 28rpx;
}
.media-badges {
display: flex;
flex-wrap: wrap;
gap: 12rpx;
}
.detail-content {
margin-top: -48rpx;
}
.info-card {
padding: 32rpx 30rpx;
}
.detail-head {
padding-bottom: 10rpx;
}
.product-title {
margin-top: 16rpx;
font-size: 42rpx;
font-weight: 700;
line-height: 1.4;
color: #2d2430;
}
.product-price {
margin-top: 12rpx;
font-size: 38rpx;
font-weight: 700;
color: #d5536f;
}
.product-brief {
margin-top: 14rpx;
font-size: 24rpx;
line-height: 1.8;
color: #8d7a84;
}
.detail-summary {
margin-top: 24rpx;
}
.detail-summary-value {
font-size: 26rpx;
line-height: 1.5;
}
.shop-box {
margin-top: 28rpx;
padding: 24rpx;
border-radius: 24rpx;
background: linear-gradient(135deg, #fff8fa 0%, #fff1f5 100%);
}
.shop-box-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16rpx;
}
.shop-name {
font-size: 30rpx;
font-weight: 700;
color: #2d2430;
}
.shop-link {
font-size: 24rpx;
color: #c6597d;
font-weight: 700;
}
.shop-meta {
margin-top: 10rpx;
font-size: 24rpx;
color: #8d7a84;
line-height: 1.7;
}
.actions-row {
display: flex;
gap: 16rpx;
margin-top: 28rpx;
}
.action-pill {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 180rpx;
height: 68rpx;
padding: 0 24rpx;
border-radius: 999rpx;
background: #fbf5f7;
color: #7a5262;
font-size: 24rpx;
font-weight: 600;
}
.action-pill.active {
background: #fde8ef;
color: #c6597d;
}
.tags-wrap {
display: flex;
flex-wrap: wrap;
gap: 12rpx;
margin-top: 24rpx;
}
.tag-chip {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 10rpx 18rpx;
border-radius: 999rpx;
background: #fbecf1;
color: #c6597d;
font-size: 22rpx;
}
.desc-block {
margin-top: 28rpx;
}
.desc-text {
margin-top: 16rpx;
font-size: 26rpx;
line-height: 1.8;
color: #5d4b55;
}
.footer-bar {
position: fixed;
left: 24rpx;
right: 24rpx;
bottom: calc(env(safe-area-inset-bottom) + 20rpx);
z-index: 20;
display: flex;
gap: 16rpx;
padding: 18rpx;
border-radius: 30rpx;
background: rgba(255, 255, 255, 0.96);
box-shadow: 0 18rpx 50rpx rgba(122, 67, 88, 0.12);
}
.footer-btn {
display: flex;
align-items: center;
justify-content: center;
flex: 1;
height: 88rpx;
border-radius: 999rpx;
font-size: 28rpx;
font-weight: 700;
}
.footer-btn.secondary {
background: #fbf5f7;
color: #7a5262;
}
.footer-btn.primary {
background: linear-gradient(135deg, #ff8cb0 0%, #c6597d 100%);
color: #ffffff;
}