/* components/addCartModel/addCartModel.wxss */ .modal-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 999; visibility: hidden; opacity: 0; transition: all 0.3s ease; } .modal-container.modal-show { visibility: visible; opacity: 1; } .modal-mask { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); } .modal-content { position: absolute; bottom: 0; left: 0; width: 100%; max-height: 80vh; background: #fff; border-radius: 24rpx 24rpx 0 0; box-sizing: border-box; padding: 32rpx; transform: translateY(100%); transition: transform 0.3s ease; overflow-y:scroll; } .modal-show .modal-content { transform: translateY(0); } .modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32rpx; } .modal-header .title { font-size: 32rpx; font-weight: bold; } .close-btn { margin: 0; padding: 0; width: 48rpx; height: 48rpx; line-height: 48rpx; font-size: 36rpx; background: transparent; border: none; } .product-info { display: flex; margin-bottom: 32rpx; } .product-image { width: 221rpx; height: 221rpx; border-radius: 30rpx; margin-right: 24rpx; } .product-detail { flex: 1; } .product-attr{ display: flex; align-items: flex-end; justify-content: space-between; } .price { font-size: 36rpx; color: #ff2e4d; font-weight: bold; } .stock { font-size: 24rpx; color: #000; } .prodName { font-size: 32rpx; color: #000; font-weight: 600; margin-bottom: 130rpx; } .spec-section { margin-bottom: 32rpx; } .spec-option{ display: flex; flex-wrap: wrap; justify-content: space-between; } .spec-title{ font-size: 28rpx; margin-bottom: 19rpx; display: inline-block; } .spec-name { width: 45%; line-height: 63rpx; font-size: 28rpx; text-align: center; margin-bottom: 27rpx; background:#EFEFEF; border-radius: 20rpx; display: inline-block; } .spec-name.selected { background:#F9DFA4; } .quantity-section { display: flex; justify-content: space-between; align-items: center; margin-bottom: 48rpx; } .quantity-title { font-size: 28rpx; } .quantity-control { display: flex; align-items: center; } .quantity-input { width: 80rpx; text-align: center; margin: 0 16rpx; } .btn-minus, .btn-plus { width: 60rpx; height: 60rpx; line-height: 60rpx; text-align: center; padding: 0; margin: 0; border: 1rpx solid #eee; background: #f7f7f7; border-radius: 8rpx; } .btn-minus[disabled], .btn-plus[disabled] { opacity: 0.5; } .footer { width: 100%; background: #fff; padding-top: 16rpx; } .add-btn { width: 657rpx !important; background: #89C6BE; color: #fff; border-radius: 20rpx; line-height: 105rpx; font-size: 30rpx; padding: 0; }