/* 产品详情页样式 */ .detail-page { min-height: 100vh; background: #f5f5f5; padding-bottom: 140rpx; } /* 图片区 */ .detail-images { position: relative; background: #ffffff; } .detail-swiper { width: 100%; height: 750rpx; } .swiper-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; } .swiper-emoji { font-size: 160rpx; } .detail-badges { position: absolute; top: 24rpx; left: 24rpx; display: flex; flex-direction: column; gap: 8rpx; } .detail-badge { font-size: 20rpx; padding: 4rpx 12rpx; border-radius: 6rpx; } /* 产品信息 */ .detail-info-section { background: #ffffff; padding: 32rpx 24rpx; margin-bottom: 16rpx; } .detail-header { display: flex; flex-direction: column; gap: 8rpx; } .detail-name { font-size: 36rpx; font-weight: 600; color: #1a1a1a; line-height: 1.4; } .detail-code { font-size: 24rpx; color: #999; } .detail-price-row { display: flex; align-items: baseline; gap: 8rpx; margin-top: 20rpx; } .detail-price { font-size: 48rpx; font-weight: 700; color: #ff6800; } .detail-price-unit { font-size: 24rpx; color: #ff6800; } .detail-price-original { font-size: 24rpx; color: #ccc; text-decoration: line-through; margin-left: 12rpx; } .detail-meta { display: flex; justify-content: space-between; margin-top: 32rpx; padding-top: 24rpx; border-top: 1rpx solid #f0f0f0; } .meta-item { text-align: center; } .meta-label { font-size: 22rpx; color: #999; display: block; margin-bottom: 8rpx; } .meta-value { font-size: 26rpx; color: #333; font-weight: 500; } /* 通用section */ .detail-section { background: #ffffff; padding: 32rpx 24rpx; margin-bottom: 16rpx; } .section-label { font-size: 30rpx; font-weight: 600; color: #333; display: block; margin-bottom: 24rpx; } /* 颜色选择 */ .color-options { display: flex; flex-wrap: wrap; gap: 20rpx; } .color-option { display: flex; align-items: center; gap: 8rpx; padding: 12rpx 20rpx; border-radius: 32rpx; border: 2rpx solid #eee; background: #fafafa; } .color-option.selected { border-color: #ff6800; background: #fff0e5; } .color-dot { width: 32rpx; height: 32rpx; border-radius: 50%; border: 2rpx solid #fff; box-shadow: 0 0 0 1rpx rgba(0, 0, 0, 0.1); } .color-name { font-size: 24rpx; color: #666; } .color-option.selected .color-name { color: #ff6800; } /* 尺码选择 */ .size-options { display: flex; flex-wrap: wrap; gap: 16rpx; } .size-option { min-width: 72rpx; text-align: center; padding: 16rpx 24rpx; font-size: 26rpx; color: #666; background: #f5f5f5; border-radius: 8rpx; border: 2rpx solid transparent; } .size-option.selected { background: #fff0e5; color: #ff6800; border-color: #ff6800; } /* 参数表 */ .params-table { display: flex; flex-direction: column; } .param-row { display: flex; padding: 16rpx 0; border-bottom: 1rpx solid #f5f5f5; } .param-label { width: 200rpx; font-size: 26rpx; color: #999; flex-shrink: 0; } .param-value { flex: 1; font-size: 26rpx; color: #333; } /* 工艺说明 */ .craft-info { display: flex; flex-direction: column; gap: 20rpx; } .craft-card { display: flex; align-items: center; gap: 16rpx; padding: 20rpx; background: #fafafa; border-radius: 12rpx; } .craft-icon { width: 64rpx; height: 64rpx; border-radius: 12rpx; display: flex; align-items: center; justify-content: center; flex-shrink: 0; } .craft-emoji { font-size: 32rpx; } .craft-name { font-size: 26rpx; font-weight: 600; color: #333; flex-shrink: 0; width: 120rpx; } .craft-desc { flex: 1; font-size: 22rpx; color: #999; line-height: 1.5; } /* 底部操作栏 */ .detail-bottom-bar { position: fixed; bottom: 0; left: 0; right: 0; height: 120rpx; background: #ffffff; display: flex; align-items: center; padding: 0 24rpx; gap: 16rpx; box-shadow: 0 -2rpx 12rpx rgba(0, 0, 0, 0.06); z-index: 100; } .bottom-btn-icon { display: flex; flex-direction: column; align-items: center; gap: 4rpx; width: 80rpx; flex-shrink: 0; } .bottom-icon { font-size: 36rpx; } .bottom-icon-text { font-size: 18rpx; color: #999; } .bottom-btn-cart { flex: 1; height: 80rpx; display: flex; align-items: center; justify-content: center; background: #fff0e5; color: #ff6800; font-size: 28rpx; font-weight: 600; border-radius: 40rpx; } .bottom-btn-design { flex: 1; height: 80rpx; display: flex; align-items: center; justify-content: center; background: #ff6800; color: #ffffff; font-size: 28rpx; font-weight: 600; border-radius: 40rpx; }