/* 积分商城页面样式 */ .mall-page { background: linear-gradient(180deg, #5B9BD5 0%, #4A90C2 100%); min-height: 100vh; padding-top: env(safe-area-inset-top); padding-bottom: calc(50px + env(safe-area-inset-bottom)); padding-left: 16rpx; padding-right: 16rpx; } /* 积分信息卡片 */ .points-info-card { background: rgba(255, 255, 255, 0.96); margin: 24rpx 16rpx; border-radius: 28rpx; padding: 44rpx 36rpx; box-shadow: 0 12rpx 40rpx rgba(74, 144, 194, 0.18); backdrop-filter: blur(16rpx); border: 1rpx solid rgba(255, 255, 255, 0.4); } .points-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24rpx; } .points-title { font-size: 34rpx; color: #333; font-weight: 600; letter-spacing: 0.5rpx; } .history-btn { background: linear-gradient(135deg, #4A90C2 0%, #357ABD 100%); color: #fff; border: none; border-radius: 50rpx; padding: 14rpx 28rpx; font-size: 26rpx; font-weight: 500; box-shadow: 0 4rpx 12rpx rgba(74, 144, 194, 0.25); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); } .points-value { font-size: 80rpx; color: #4A90C2; font-weight: 700; text-align: center; margin: 28rpx 0; letter-spacing: 2rpx; } .points-desc { text-align: center; color: #666; font-size: 26rpx; line-height: 1.4; opacity: 0.9; } /* 我的优惠券 */ .my-coupons-section { margin: 36rpx 32rpx; } .section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28rpx; } .section-title { color: #fff; font-size: 34rpx; font-weight: 600; letter-spacing: 0.5rpx; } .view-all-btn { background: rgba(255, 255, 255, 0.25); color: #fff; border: none; border-radius: 50rpx; padding: 14rpx 28rpx; font-size: 26rpx; font-weight: 500; backdrop-filter: blur(12rpx); border: 1rpx solid rgba(255, 255, 255, 0.3); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); } .coupons-scroll { white-space: nowrap; } .coupons-container { display: inline-flex; padding: 0 16rpx; } .coupon-item { background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%); border-radius: 20rpx; padding: 28rpx; margin-right: 28rpx; min-width: 220rpx; position: relative; overflow: hidden; box-shadow: 0 6rpx 20rpx rgba(255, 165, 0, 0.25); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); } .coupon-item::before { content: ''; position: absolute; top: 50%; left: -10rpx; width: 20rpx; height: 20rpx; background: #4A90C2; border-radius: 50%; transform: translateY(-50%); } .coupon-item::after { content: ''; position: absolute; top: 50%; right: -10rpx; width: 20rpx; height: 20rpx; background: #4A90C2; border-radius: 50%; transform: translateY(-50%); } .coupon-value { font-size: 40rpx; color: #fff; font-weight: 700; text-align: center; letter-spacing: 1rpx; } .coupon-name { font-size: 24rpx; color: #fff; text-align: center; margin: 8rpx 0; } .coupon-expire { font-size: 20rpx; color: rgba(255, 255, 255, 0.8); text-align: center; } .no-coupons { background: rgba(255, 255, 255, 0.1); border-radius: 16rpx; padding: 60rpx 40rpx; text-align: center; backdrop-filter: blur(10rpx); } .no-coupons-text { color: rgba(255, 255, 255, 0.7); font-size: 28rpx; } /* 积分商城 */ .points-mall-section { margin: 36rpx 32rpx 32rpx; } .products-grid { display: flex; flex-direction: column; gap: 28rpx; } .product-card { background: rgba(255, 255, 255, 0.96); border-radius: 28rpx; padding: 36rpx; display: flex; align-items: center; box-shadow: 0 12rpx 40rpx rgba(74, 144, 194, 0.18); backdrop-filter: blur(16rpx); border: 1rpx solid rgba(255, 255, 255, 0.4); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); } .product-card:active { transform: translateY(2rpx); box-shadow: 0 8rpx 24rpx rgba(74, 144, 194, 0.12); } .product-icon { font-size: 72rpx; margin-right: 28rpx; } .product-info { flex: 1; } .product-name { font-size: 34rpx; color: #333; font-weight: 600; margin-bottom: 10rpx; letter-spacing: 0.5rpx; } .product-desc { font-size: 26rpx; color: #666; margin-bottom: 14rpx; line-height: 1.4; } .product-points { display: flex; align-items: baseline; } .points-number { font-size: 38rpx; color: #4A90C2; font-weight: 700; letter-spacing: 1rpx; } .points-unit { font-size: 24rpx; color: #4A90C2; margin-left: 4rpx; } .exchange-btn { padding: 18rpx 36rpx; border-radius: 50rpx; font-size: 30rpx; font-weight: 600; text-align: center; min-width: 180rpx; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); letter-spacing: 0.5rpx; } .can-exchange { background: linear-gradient(135deg, #4A90C2 0%, #357ABD 100%); color: #fff; box-shadow: 0 6rpx 20rpx rgba(74, 144, 194, 0.3); } .cannot-exchange { background: #f5f5f5; color: #999; } /* 弹窗样式 */ .modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.5); display: flex; align-items: center; justify-content: center; z-index: 1000; } .modal-content { background: #fff; border-radius: 24rpx; width: 640rpx; max-height: 80vh; overflow: hidden; } .modal-header { display: flex; justify-content: space-between; align-items: center; padding: 32rpx; border-bottom: 1rpx solid #f0f0f0; } .modal-title { font-size: 36rpx; font-weight: bold; color: #333; } .modal-close { background: none; border: none; font-size: 48rpx; color: #999; padding: 0; width: 48rpx; height: 48rpx; display: flex; align-items: center; justify-content: center; } .modal-body { padding: 32rpx; } .exchange-product { display: flex; align-items: center; margin-bottom: 32rpx; } .product-icon-large { font-size: 80rpx; margin-right: 24rpx; } .product-details { flex: 1; } .product-details .product-name { font-size: 32rpx; color: #333; font-weight: bold; margin-bottom: 8rpx; } .product-value { font-size: 28rpx; color: #4A90C2; margin-bottom: 8rpx; } .product-points { font-size: 24rpx; color: #666; margin-bottom: 8rpx; } .product-validity { font-size: 24rpx; color: #999; } .points-status { background: #f8f9fa; border-radius: 16rpx; padding: 24rpx; } .current-points { font-size: 28rpx; color: #333; margin-bottom: 8rpx; } .after-exchange { font-size: 28rpx; color: #4A90C2; font-weight: bold; } .modal-footer { display: flex; gap: 24rpx; padding: 32rpx; border-top: 1rpx solid #f0f0f0; } .cancel-btn, .confirm-btn { flex: 1; padding: 24rpx; border-radius: 40rpx; font-size: 32rpx; font-weight: bold; text-align: center; border: none; } .cancel-btn { background: #f5f5f5; color: #666; } .confirm-btn { background: linear-gradient(135deg, #4A90C2 0%, #357ABD 100%); color: #fff; } .confirm-btn[disabled] { background: #f5f5f5; color: #999; }