.ljcontainer { display: flex; flex-direction: column; background-color: #f5f5f5; min-height: 100vh; padding-bottom: 30rpx; padding: 0; box-sizing: border-box; width: 100%; } .header { position: relative; width: 100%; height: 180rpx; } .header .background { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(180deg, rgba(46, 130, 255, 1) 0%, rgba(46, 130, 255, 1) 84.9%, rgba(46, 130, 255, 0) 100%); } .back-icon { position: fixed; top: 110rpx; left: 30rpx; z-index: 999; width: 40rpx; height: 40rpx; } .header-title { text-align: center; font-size: 36rpx; margin-bottom: 20rpx; } .user-info-container { position: relative; display: flex; justify-content: space-between; align-items: flex-start; padding: 0rpx 24rpx; top: -190rpx; width: 100%; box-sizing: border-box; } .user-info { background-color: transparent; color: rgba(255, 255, 255, 1); padding: 30rpx; border-radius: 20rpx; position: relative; width: 100%; } .user-name { font-size: 40rpx; font-weight: 500; margin-bottom: 24rpx; } .user-id, .user-address { display: flex; align-items: center; font-size: 32rpx; font-weight: 400; margin-bottom: 20rpx; color: rgba(255, 255, 255, 1); } .id-icon, .address-icon { width: 40rpx !important; height: 40rpx !important; margin-right: 10rpx !important; } .user-phone, .user-address { display: flex; font-size: 15px; margin-bottom: 3px; color: rgba(255, 255, 255, 1); } .user-phone image, .user-address image { width: 32rpx; height: 32rpx; margin-right: 10rpx; } .edit-btn { position: absolute; right: 30rpx; top: 30rpx; font-size: 28rpx; color: #1989fa; padding: 10rpx 20rpx; border: 1px solid #1989fa; border-radius: 30rpx; } .payment-section { position: relative; background-color: transparent; margin: -10rpx 30rpx 0 30rpx; border-radius: 120rpx; padding: 0; top: -200rpx; box-shadow: none; width: calc(100% - 70rpx); box-sizing: border-box; } .payment-title { font-size: 32rpx; color: rgba(46, 48, 56, 1); margin-bottom: 20rpx; } .payment-amount { font-size: 60rpx; color: rgba(239, 93, 93, 1); font-weight: bold; margin: 30rpx 0; } .quick-amounts { display: flex; flex-wrap: wrap; justify-content: space-between; margin-top: 20rpx; } .amount-item { width: 30%; text-align: center; background-color: #f5f5f5; padding: 20rpx 0; margin-bottom: 20rpx; border-radius: 8rpx; font-size: 32rpx; } .usage-info { margin-top: 30rpx; font-size: 28rpx; color: #666; line-height: 1.6; } .pay-btn { background-color: rgba(46, 130, 255, 1); color: rgba(255, 255, 255, 1); font-size: 36rpx; text-align: center; padding: 24rpx 0; border-radius: 60rpx; margin: 40rpx auto; margin-bottom: 160rpx; width: 85%; max-width: 800rpx; } .pay-btn.active { background-color: rgba(46, 130, 255, 1); opacity: 1; } .pay-btn.inactive { background-color: rgba(46, 130, 255, 0.5); opacity: 0.8; } .switch-meter { padding: 5px 10px; background-color: #f0f0f0; border-radius: 4px; font-size: 14px; color: #333; } /* 金额显示样式 */ .amount-container { background-color: white; border-radius: 20rpx; padding: 40rpx 30rpx 1rpx; box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.08); } .amount-title { font-size: 34rpx; color: rgba(46, 48, 56, 1); font-weight: 500; margin-bottom: 10rpx; } .amount-display { position: relative; margin-bottom: 30rpx; display: flex; align-items: flex-end; } .amount-value { font-size: 80rpx; color: rgba(239, 93, 93, 1); font-weight: 700; line-height: 1; } .amount-unit { font-size: 30rpx; color: rgba(46, 48, 56, 1); margin-left: 4rpx; margin-bottom: 10rpx; } /* 余额信息样式调整 */ .balance-info { display: flex; font-size: 34rpx; margin-bottom: 30rpx; align-items: center; } .balance-label { color: rgba(46, 48, 56, 1); } .balance-value { color: rgba(239, 93, 93, 1); font-weight: 400; } .balance-unit { color: #333; margin-right: 10rpx; } .margin-left { margin-left: 20rpx; } /* 快捷金额选择 */ .quick-amount { display: flex; flex-wrap: wrap; justify-content: space-between; margin-bottom: 15px; } .amount-btn { width: 30%; text-align: center; padding: 24rpx 0; border-radius: 10rpx; margin-bottom: 24rpx; font-size: 32rpx; color: #333; background-color: rgba(242, 245, 250, 1); } .amount-btn:active { background-color: #f5f5f5; } .custom-amount { color: #1e90ff; border-color: #1e90ff; } .custom-amount:active { background-color: rgba(30, 144, 255, 0.05); } /* 温馨提示样式 */ .tips { margin: -200rpx 30rpx 20rpx 30rpx; color: #999; border-radius: 16rpx; padding: 24rpx; width: calc(100% - 60rpx); box-sizing: border-box; } .tips-header { margin-bottom: 16rpx; } .tips-title { color: #EF5D5D; font-size: 28rpx; font-weight: 500; } .tips-body { display: flex; flex-direction: column; gap: 8rpx; } .tips-content { color: #666666; font-size: 26rpx; line-height: 1.5; } /* 数字键盘样式优化 */ .keyboard { position: fixed; bottom: 0; left: 0; right: 0; background-color: #f0f0f0; padding: 20rpx; z-index: 1000; border-top: 2rpx solid #ddd; } .keyboard-row { display: flex; justify-content: space-between; margin-bottom: 20rpx; } .key { width: 23%; height: 100rpx; background-color: white; border-radius: 10rpx; display: flex; justify-content: center; align-items: center; font-size: 40rpx; box-shadow: 0 2rpx 4rpx rgba(0, 0, 0, 0.1); margin: 0 10rpx; } .key.zero { width: 48%; } .delete { background-color: #f5f5f5; } .delete image { width: 48rpx; height: 48rpx; } .confirm { background-color: #1e90ff; color: white; } /* 自定义金额输入框样式 - 修改为与快捷金额按钮一致 */ .custom-input-container { width: 100%; display: flex; align-items: center; border-radius: 10rpx; margin-bottom: 24rpx; padding: 0 24rpx; background-color: rgba(242, 245, 250, 1); } /* 自定义金额输入框选中状态 */ .custom-input-container.selected { border: 2rpx solid rgba(46, 125, 253, 1); } .yuan-symbol { color: rgba(63, 65, 76, 1); /* 默认颜色 */ font-size: 34rpx; margin-right: 4rpx; } /* 选中状态下的¥符号颜色 */ .custom-input-container.selected .yuan-symbol { color: rgba(46, 125, 253, 1); } .custom-amount-input { flex: 1; height: 80rpx; font-size: 34rpx; color: #333; } /* 选中状态下的输入框文字颜色 */ .custom-input-container.selected .custom-amount-input { color: rgba(46, 125, 253, 1); } /* 添加选中状态的样式 */ .amount-btn.selected { border: 2rpx solid rgba(46, 125, 253, 1); color: rgba(46, 125, 253, 1); } .scrollable-content { height: 100%; width: 100%; }