.goods-card { box-sizing: border-box; font-size: 24rpx; border-radius: var(--radius-lg); border-bottom: none; background: var(--bg-card); box-shadow: var(--shadow-card); overflow: hidden; } .goods-card__main { position: relative; display: flex; line-height: 1; padding: 0; background: var(--bg-card); width: 342rpx; border-radius: var(--radius-lg); align-items: center; justify-content: center; margin-bottom: 20rpx; flex-direction: column; box-shadow: var(--shadow-card); overflow: hidden; } .goods-card__thumb { flex-shrink: 0; position: relative; width: 340rpx; height: 340rpx; } .goods-card__thumb:empty { display: none; margin: 0; } .goods-card__img { display: block; width: 100%; height: 100%; border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden; } .goods-card__body { display: flex; flex: 1 1 auto; background: var(--bg-card); border-radius: 0 0 var(--radius-lg) var(--radius-lg); padding: 20rpx 24rpx 24rpx; flex-direction: column; } .goods-card__upper { display: flex; flex-direction: column; overflow: hidden; flex: 1 1 auto; } .goods-card__title { flex-shrink: 0; font-size: 28rpx; color: var(--text-primary); font-weight: 500; display: -webkit-box; height: 72rpx; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; word-break: break-word; line-height: 36rpx; } .goods-card__tags { display: flex; flex-direction: row; flex-wrap: wrap; margin: 8rpx 0 0 0; } .goods-card__tag { color: var(--brand); background: var(--brand-light); font-size: 20rpx; border: none; padding: 2rpx 12rpx; border-radius: var(--radius-round); line-height: 30rpx; margin: 0 8rpx 8rpx 0; display: block; overflow: hidden; white-space: nowrap; word-break: keep-all; text-overflow: ellipsis; } .goods-card__down { display: flex; position: relative; flex-direction: row; justify-content: flex-start; align-items: baseline; line-height: 32rpx; margin: 8rpx 0 0 0; } .goods-card__origin-price { white-space: nowrap; font-weight: 400; order: 2; color: var(--text-placeholder); font-size: 24rpx; margin: 0 0 0 8rpx; text-decoration: line-through; } .goods-card__add-cart { order: 3; margin: auto 0 0 auto; position: absolute; bottom: 0; right: 0; } .spec-for-price { font-size: 36rpx; white-space: nowrap; font-weight: 700; order: 1; color: var(--brand); margin: 0; font-family: 'DIN Alternate', -apple-system, sans-serif; } .spec-for-symbol { font-size: 24rpx; }