@import '../../../style/global.wxss'; page { width: 100vw; background-color: var(--bg-page); } .goods-detail-page { min-height: 100vh; padding-bottom: 160rpx; background-color: var(--bg-page); } .goods-head { --td-swiper-radius: 0; } .goods-gallery { position: relative; background-color: var(--bg-card); } /* 商品信息卡片:轻微上浮覆盖轮播,形成层次 */ .goods-info { position: relative; z-index: 2; margin-top: -24rpx; padding: 28rpx 30rpx 32rpx; background-color: var(--bg-card); border-radius: var(--radius-lg) var(--radius-lg) 0 0; } .goods-info .goods-number { display: flex; align-items: center; justify-content: space-between; } .goods-info .goods-price { display: flex; align-items: baseline; } .goods-info .goods-price .class-goods-price { font-size: 64rpx; font-weight: 700; color: var(--brand); font-family: 'DIN Alternate', -apple-system, sans-serif; } .goods-info .goods-price .class-goods-symbol { font-size: 36rpx; color: var(--brand); } .goods-info .goods-price .class-goods-del { position: relative; left: 16rpx; bottom: 2rpx; font-size: 28rpx; font-weight: normal; color: var(--text-tertiary); } .goods-info .goods-price-up { position: relative; left: 8rpx; bottom: 4rpx; font-size: 26rpx; color: var(--brand); } .goods-info .goods-number .sold-num { display: flex; flex-shrink: 0; align-items: flex-end; padding: 4rpx 16rpx; font-size: 22rpx; color: var(--text-tertiary); background: var(--bg-grey); border-radius: var(--radius-round); } .goods-info .goods-activity { display: flex; align-items: center; justify-content: space-between; margin-top: 20rpx; padding: 12rpx 20rpx; background: var(--brand-light); border-radius: var(--radius-sm); } .goods-info .goods-activity .tags-container { display: flex; flex: 1; overflow: hidden; } .goods-info .goods-activity .tags-container .goods-activity-tag { margin-right: 16rpx; padding: 4rpx 12rpx; font-size: 22rpx; color: var(--brand); background: var(--bg-card); border-radius: var(--radius-sm); } .goods-info .goods-activity .activity-show { display: flex; flex-shrink: 0; align-items: center; justify-content: center; font-size: 24rpx; color: var(--brand); } .goods-info .goods-activity .activity-show-text { line-height: 42rpx; } .goods-info .goods-title { display: flex; align-items: flex-start; justify-content: space-between; margin-top: 24rpx; } .goods-info .goods-title .goods-name { flex: 1; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; font-size: 34rpx; font-weight: 600; line-height: 48rpx; color: var(--text-primary); word-break: break-all; } .goods-info .goods-title .goods-tag { flex-shrink: 0; width: 104rpx; margin-left: 16rpx; } .goods-info .goods-title .goods-tag .shareBtn { width: 100rpx; height: 96rpx; padding-right: 36rpx !important; border: none; border-radius: 200rpx 0 0 200rpx; } .goods-info .goods-title .goods-tag .shareBtn::after { border: none; } .goods-info .goods-title .goods-tag .btn-icon { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 96rpx; font-size: 20rpx; color: var(--text-tertiary); } .goods-info .goods-title .goods-tag .btn-icon .share-text { padding-top: 8rpx; font-size: 20rpx; line-height: 24rpx; } .goods-service { display: flex; align-items: center; margin-top: 18rpx; } .goods-service__text { margin-left: 8rpx; font-size: 24rpx; color: var(--text-tertiary); } .goods-info .goods-intro { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; margin-top: 12rpx; font-size: 26rpx; line-height: 38rpx; color: var(--text-tertiary); word-break: break-all; white-space: normal; } /* 已选规格 */ .spu-select { display: flex; align-items: center; margin: 20rpx 24rpx 0; padding: 28rpx 30rpx; font-size: 28rpx; background-color: var(--bg-card); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); } .spu-select .label { flex-shrink: 0; margin-right: 24rpx; font-weight: normal; color: var(--text-tertiary); } .spu-select .content { display: flex; flex: 1; align-items: center; justify-content: space-between; min-width: 0; } .spu-select .content .content-text { flex: 1; overflow: hidden; color: var(--text-primary); white-space: nowrap; text-overflow: ellipsis; } .spu-select .content .tintColor { color: var(--text-placeholder); } /* 评价 */ .comments-wrap { margin: 20rpx 24rpx 0; padding: 32rpx; background-color: var(--bg-card); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); } .comments-wrap .comments-head { display: flex; flex-direction: row; align-items: center; justify-content: space-between; } .comments-wrap .comments-head .comments-title-wrap { display: flex; } .comments-title-label, .comments-title-count { font-size: 32rpx; font-weight: 600; line-height: 48rpx; color: var(--text-primary); } .comments-rate-wrap { display: flex; align-items: center; justify-content: center; font-size: 24rpx; } .comments-rate-wrap .comments-good-rate { font-size: 26rpx; font-weight: 400; font-style: normal; line-height: 36rpx; color: var(--text-tertiary); } .comment-item-wrap .comment-item-head { display: flex; flex-direction: row; align-items: center; margin-top: 32rpx; } .comment-item-wrap .comment-item-head .comment-item-avatar { width: 64rpx; height: 64rpx; border-radius: 64rpx; } .comment-item-wrap .comment-item-head .comment-head-right { margin-left: 24rpx; } .comment-head-right .comment-username { font-size: 26rpx; font-weight: 400; line-height: 36rpx; color: var(--text-primary); } .comment-item-wrap .comment-item-content { margin-top: 20rpx; font-size: 28rpx; font-weight: 400; line-height: 40rpx; color: var(--text-primary); } /* 详情 */ .desc-content { margin: 20rpx 24rpx 0; padding-bottom: 40rpx; overflow: hidden; background-color: var(--bg-card); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); } .desc-content__title { display: flex; align-items: center; justify-content: center; padding: 32rpx 20rpx 16rpx; font-size: 28rpx; line-height: 36rpx; text-align: center; } .desc-content__title .img { width: 206rpx; height: 10rpx; } .desc-content__title--text { margin: 0 32rpx; font-size: 26rpx; font-weight: 600; } .desc-content__img { width: 100%; height: auto; } .rich-text-content { margin: 0 20rpx; } .rich-text-content [src] { display: block; max-width: 100% !important; height: auto !important; } .video-container { padding: 20rpx; } .video-item { margin-bottom: 10rpx; } .video-player { width: 100%; height: 400rpx; border-radius: var(--radius-md); } /* 底部购买栏 */ .goods-bottom-operation { position: fixed; left: 0; bottom: 0; z-index: 100; width: 100%; padding-bottom: env(safe-area-inset-bottom); background-color: var(--bg-card); box-shadow: 0 -4rpx 20rpx rgba(29, 33, 41, 0.06); } /* 规格弹窗价格 */ .popup-sku-header .popup-sku-header__goods-info .popup-sku__price { display: flex; align-items: baseline; margin-top: 12rpx; color: var(--brand); } .popup-sku-header .popup-sku-header__goods-info .popup-sku__price .popup-sku__price-num { font-size: 56rpx; font-weight: 700; color: var(--brand); font-family: 'DIN Alternate', -apple-system, sans-serif; } .popup-sku-header .popup-sku-header__goods-info .popup-sku__price .popup-sku__price-del { position: relative; left: 12rpx; bottom: 2rpx; font-size: 28rpx; font-weight: normal; color: var(--text-tertiary); } .popup-sku-header .popup-sku-header__goods-info .popup-sku__price .popup-sku__price-symbol { font-size: 32rpx; color: var(--brand); } .popup-sku-header .popup-sku-header__goods-info .popup-sku__price .popup-sku__price-max-num { font-size: 48rpx; } .t-toast__content { z-index: 12000 !important; }