.spu { width: 100%; display: block; } .spu .img-class { width: 710rpx; height: 400rpx; border-radius: 10rpx 10rpx 0 0; image-rendering: crisp-edges; } .spu .mask { background: rgba(255, 255, 255, 0.5); width: 710rpx; height: 400rpx; 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: 50%; top: 170rpx; padding: 0 12rpx; transform: translateX(-50%); } .spu .spu-content { 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 20rpx; display: flex; flex-direction: column; box-sizing: border-box; } .spu .spu-content.disabled { opacity: 0.6; } .spu .spu-content .item-top { width: 100%; height: 400rpx; position: relative; } .spu .spu-content .item-bottom { box-sizing: border-box; padding: 20rpx; display: flex; flex-direction: column; justify-content: space-between; } .spu .spu-content .item-bottom .spu-title { color: #222; font-size: 30rpx; height: 32rpx; width: 100%; margin-bottom: 12rpx; margin-top: 10rpx; font-weight: 500; position: relative; } .spu .spu-content .item-bottom .spu-title .span { width: 100%; height: 40rpx; position: absolute; left: 0; top: -4rpx; line-height: 40rpx; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .spu .spu-content .item-bottom .spu-tag { padding-left: 196rpx; margin-bottom: 20rpx; display: flex; height: 28rpx; } .spu .spu-content .item-bottom .spu-desc { font-size: 26rpx; line-height: 26rpx; color: #999; position: relative; width: 100%; height: 26rpx; margin-bottom: 12rpx; } .spu .spu-content .item-bottom .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-bottom .spu-price { display: flex; align-items: flex-end; font-size: 26rpx; line-height: 26rpx; overflow: hidden; margin-bottom: 10rpx; margin-top: 10rpx; } .spu .spu-content .item-bottom .spu-price .sale-price { color: #ff758c; margin-right: 12rpx; } .spu .spu-content .item-bottom .spu-price .sale-price .span { font-size: 46rpx; line-height: 42rpx; margin: 0; font-weight: bold; } .spu .spu-content .item-bottom .spu-price .market-price { text-decoration: line-through; color: #999; margin-right: 20rpx; } .spu .spu-content .item-bottom .spu-count { font-size: 24rpx; line-height: 24rpx; color: #999; } .spu .spu-content .add-cart,.spu .spu-content .add-cart-disabled { width: 160rpx; height: 60rpx; padding: 0; margin: 0; position: absolute; right: 28rpx; bottom: 20rpx; display: flex; align-items: center; justify-content: center; background: #4facfe; color: #fff; border-radius: 30rpx; } .spu .spu-content .add-cart-disabled { background: #ccc; } .spu .item-top .spu-active { position: absolute; left: 0; bottom: 0; z-index: 9; display: flex; flex-direction: column-reverse; align-items: flex-start; } .spu .item-top .spu-active .tag { background: linear-gradient(100deg,#4facfe 0%,#00f2fe 100%); border-radius: 0 25rpx 25rpx 0; padding: 0 15rpx; height: 50rpx; font-size: 26rpx; line-height: 50rpx; color: #fff; display: inline-block; align-items: center; justify-content: center; width: auto; max-width: 220rpx; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .spu .item-top .spu-active .tag-green { background: linear-gradient(to left, #46c8d0, #29ba9a); } .spu .spu-content .time-tip { position: absolute; background: #4facfe; left: 0; bottom: 0; width: 250rpx; height: 40rpx; border-radius: 0 8rpx 0 0; } .spu .spu-content .time-tip.notip { display: none; } /* 标签 */ .spu .item-tag { position: absolute; left: 22rpx; 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: 10rpx; 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: 160rpx; height: 160rpx; margin-top: -80rpx; margin-left: -80rpx; } .spu-play .img { width: 100%; height: 100%; } .picktime { font-size: 24rpx; font-weight: bold; margin: 15rpx 0 10rpx; color: #ed7b3a; display: flex; align-items: center; justify-content: space-between; }