.i-btn { text-align: center; vertical-align: middle; touch-action: manipulation; cursor: pointer; background-image: none; white-space: nowrap; user-select: none; font-size: 28rpx; border: 0 !important; position: relative; text-decoration: none; height: 88rpx; line-height: 88rpx; background: none; color: #495060; border-radius: 0; margin: 0; box-shadow: none; } .i-btn::after { border: none; } .spu { display: block; background: #fff; width: 710rpx; border-radius: 20rpx; overflow: hidden; position: relative; box-shadow: 0 0 40rpx rgba(0, 0, 0, 0.05); margin: 0 auto 15rpx; padding: 20rpx; box-sizing: border-box; } .spu .img-class { width: 240rpx; height: 240rpx; border-radius: 10rpx; } .spu .mask { background: rgba(255, 255, 255, 0.5); width: 240rpx; height: 240rpx; position: absolute; left: 0; top: 0; } .spu .act-end { position: absolute; height: 60rpx; border-radius: 10rpx; background: rgba(0, 0, 0, 0.5); color: #fff; font-size: 28rpx; text-align: center; line-height: 60rpx; left: 120rpx; top: 100rpx; padding: 0 12rpx; transform: translateX(-50%); } .spu .act-end.act-out { left: 120rpx; } .spu .spu-content { position: relative; display: flex; } .spu .spu-content.disabled { opacity: 0.6; } .spu .spu-content .item-left { width: 240rpx; height: 240rpx; position: relative; } .spu .spu-content .item-right { box-sizing: border-box; margin-left: 20rpx; display: flex; flex-direction: column; justify-content: space-between; } .spu .spu-content .item-right .spu-title { color: #333; font-size: 30rpx; height: 32rpx; width: 400rpx; margin-bottom: 12rpx; font-weight: bold; position: relative; } .spu .spu-content .item-right .spu-title .span { width: 100%; height: 40rpx; position: absolute; left: 0; top: -4rpx; line-height: 40rpx; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 0; } .spu .spu-content .item-right .spu-tag { padding-left: 196rpx; margin-bottom: 20rpx; display: flex; height: 28rpx; } .spu .spu-content .item-right .spu-desc { font-size: 26rpx; line-height: 26rpx; color: #999; position: relative; width: 400rpx; height: 26rpx; margin-bottom: 12rpx; } .spu .spu-content .item-right .spu-desc .em { width: 100%; height: 32rpx; position: absolute; left: 0; top: -2rpx; line-height: 32rpx; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .spu .spu-content .item-right .spu-price { display: flex; align-items: flex-end; font-size: 26rpx; line-height: 26rpx; overflow: hidden; margin-top: 10rpx; } .spu .spu-content .item-right .spu-price .sale-price { color: #ff5344; margin-right: 12rpx; } .spu .spu-content .item-right .spu-price .sale-price .span { font-size: 46rpx; line-height: 42rpx; margin: 0; font-weight: bold; } .spu .spu-content .item-right .spu-price .market-price { text-decoration: line-through; color: #999; margin-right: 20rpx; } .spu .spu-content .item-right .spu-count { font-size: 24rpx; height: 24rpx; color: #999; margin-bottom: 20rpx; } .spu .spu-content .item-right .spu-count .spu-count-border { display: inline-flex; border: 1rpx solid #f78076; border-radius: 20rpx; overflow: hidden; height: 30rpx; line-height: 30rpx; } .spu .spu-content .item-right .spu-count .spu-count-border .txt { padding: 0 10rpx; color: #f78076; height: 30rpx; line-height: 30rpx; } .spu .spu-content .item-right .spu-count .spu-count-border .spu-count-num { background-color: #f78076; color: #fff; } .spu .spu-content .add-cart { width: 68rpx; height: 68rpx; padding: 0; margin: 0; position: absolute; right: 0; bottom: -10rpx; display: flex; align-items: center; justify-content: center; } .spu .spu-content .add-cart .img { width: 54rpx; height: 54rpx; display: block; } .spu .spu-content .spu-active { position: absolute; left: 0; bottom: 0; z-index: 9; display: flex; flex-direction: column-reverse; align-items: flex-start; } .spu .spu-content .spu-active .tag { background: linear-gradient(to right, #ff5041, #ff994b); border-radius: 0 14rpx 14rpx 0; padding: 0 12rpx; height: 30rpx; font-size: 22rpx; line-height: 30rpx; color: #fff; display: inline-block; align-items: center; justify-content: center; width: auto; max-width: 180rpx; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .spu .spu-content .spu-active .tag-green { background: linear-gradient(to left, #46c8d0, #29ba9a); } /* 标签 */ .spu .item-tag { position: absolute; left: -1rpx; top: 0; width: 54rpx; height: 62rpx; z-index: 1; color: #fff; text-align: center; } .item-tag-bg { position: absolute; left: 0; top: 0; width: 54rpx; height: 62rpx; z-index: 0; } .spu .item-tag .tag-name { position: relative; padding-top: 6rpx; font-size: 20rpx; line-height: 1; font-weight: 600; z-index: 1; } .spu .item-tag .tag-name.two-word { font-size: 22rpx; padding-top: 14rpx; } .spu .index-input-number { position: absolute; right: 0; bottom: -20rpx; display: flex; justify-content: center; align-items: center; } .spu .index-input-number .i-input-number-view { width: 80rpx; height: 80rpx; display: flex; justify-content: center; align-items: center; } .spu .index-input-number .i-input-number-view .img{ width: 40rpx; height: 40rpx; } .spu .index-input-number .i-input-number-minus { justify-content: flex-end; } .spu .index-input-number .i-input-number-plus { justify-content: flex-start; } .spu .index-input-number .input-number-text { height: 88rpx; line-height: 88rpx; font-size: 24rpx; color: #333; width: 58rpx; } .spu-play { position: absolute; left: 50%; top: 50%; width: 100rpx; height: 100rpx; margin-top: -50rpx; margin-left: -50rpx; } .spu-play .img { width: 100%; height: 100%; } .picktime { display: flex; align-items: center; justify-content: space-between; font-size: 24rpx; font-weight: bold; margin-top: 20rpx; color: #ed7b3a; border-top: .1rpx solid #e5e5e5; padding-top: 20rpx; }