.img-class { width: 200rpx; height: 200rpx; border-radius: 10rpx 10rpx 0 0; image-rendering: crisp-edges; } .mask { background: rgba(255, 255, 255, 0.5); width: 200rpx; height: 200rpx; position: absolute; left: 0; top: 0; } .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-content { width: 690rpx; overflow: hidden; position: relative; margin: 0 auto; display: flex; box-sizing: border-box; padding: 30rpx 0; border-bottom: 0.1rpx solid #e5e5e5; } .spu-content.disabled { opacity: 0.6; } .spu-content .item-top { position: relative; } .spu-content .item-bottom { flex: 1; box-sizing: border-box; display: flex; flex-direction: column; justify-content: space-between; margin-left: 20rpx; } .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-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-content .item-bottom .spu-tag { padding-left: 196rpx; margin-bottom: 20rpx; display: flex; height: 28rpx; } .spu-content .item-bottom .spu-desc { font-size: 26rpx; line-height: 26rpx; color: #999; position: relative; width: 100%; height: 26rpx; margin-bottom: 12rpx; } .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-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-content .item-bottom .spu-price .sale-price { color: #ff5344; margin-right: 12rpx; } .spu-content .item-bottom .spu-price .sale-price .span { font-size: 36rpx; line-height: 36rpx; margin: 0; font-weight: bold; } .spu-content .item-bottom .market-price { text-decoration: line-through; color: #999; font-size: 22rpx; } .spu-content .item-bottom .spu-count { font-size: 24rpx; line-height: 22rpx; color: #999; } .spu-content .add-cart, .spu .spu-content .add-cart-disabled { width: 160rpx; height: 60rpx; padding: 0; margin: 0; position: absolute; right: 0; bottom: 30rpx; display: flex; align-items: center; justify-content: center; background: #ff5344; color: #fff; border-radius: 30rpx; } .spu-content .add-cart-disabled { background: #ccc; } .spu-content .item-top .spu-active { position: absolute; left: 0; bottom: 0; z-index: 9; display: flex; flex-direction: column-reverse; align-items: flex-start; } .spu-content .item-top .spu-active .tag { background: linear-gradient(to right, #ff5041, #ff994b); 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-content .item-top .spu-active .tag-green { background: linear-gradient(to left, #46c8d0, #29ba9a); } .spu-content .spu-content .time-tip { position: absolute; background: #ff5344; left: 0; bottom: 0; width: 250rpx; height: 40rpx; border-radius: 0 8rpx 0 0; } .spu-content .spu-content .time-tip.notip { display: none; } /* 标签 */ .spu-content .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-content .item-tag .tag-name { position: relative; padding-top: 6rpx; font-size: 20rpx; line-height: 1; font-weight: 600; z-index: 1; } .spu-content .item-tag .tag-name.two-word { font-size: 22rpx; padding-top: 14rpx; } .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%; } .pin-tag { display: inline-block; font-size: 22rpx; padding: 4rpx 6rpx; margin-right: 10rpx; border: 0.1rpx solid #ff5344; line-height: 1; vertical-align: middle; color: #ff5344; border-radius: 4rpx; }