.container {
  display: flex;
  flex-direction: column;
  background-color: #f5f5f5;
  min-height: 100vh;
  padding-bottom: 30rpx;
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.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: absolute;
  left: 30rpx;
  top: 120rpx;
  font-size: 40rpx;
  color: white;
  z-index: 10;
  width: 60rpx;
  height: 60rpx;
  display: flex;
  align-items: center;
  justify-content: center;
}

.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 30rpx;
  top: -180rpx;
  width: 100%;
  box-sizing: border-box;
}

.user-info {
  background-color: transparent;
  color: white;
  padding: 30rpx;
  border-radius: 20rpx;
  position: relative;
  width: 100%;
}

.user-name {
  font-size: 40rpx;
  font-weight: bold;
  margin-bottom: 24rpx;
}

.user-id, .user-address {
  display: flex;
  align-items: center;
  font-size: 30rpx;
  margin-bottom: 20rpx;
  color: rgba(255, 255, 255, 1);
}

.id-icon, .address-icon {
  width: 32rpx;
  height: 32rpx;
  margin-right: 10rpx;
}


.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: -180rpx;
  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: #1989fa;
  color: white;
  font-size: 36rpx;
  text-align: center;
  padding: 24rpx 0;
  border-radius: 60rpx;
  margin: 40rpx auto;
  margin-bottom: 160rpx;
  width: 85%;
  max-width: 800rpx;
}

.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);
  margin-bottom: 10rpx;
}

.amount-display {
  position: relative;
  margin-bottom: 30rpx;
  display: flex;
  align-items: flex-end;
}

.amount-value {
  font-size: 72rpx;
  color: rgba(239, 93, 93, 1);
  font-weight: bold;
  line-height: 1;
}

.amount-unit {
  font-size: 28rpx;
  color: #333;
  margin-left: 4rpx;
  margin-bottom: 10rpx;
}

/* 余额信息样式调整 */
.balance-info {
  display: flex;
  font-size: 34rpx;
  margin-bottom: 30rpx;
  align-items: center;
}

.balance-label {
  color: #666;
}

.balance-value {
  color: rgba(239, 93, 93, 1);
  font-weight: bold;
}

.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: 2rpx solid #ddd;
  border-radius: 10rpx;
  margin-bottom: 24rpx;
  font-size: 34rpx;
  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 {
  font-size: 24rpx;
  color: #999;
  padding: 20rpx 30rpx;
  top: -180rpx;
  text-align: left;
  border-top: none;
  position: relative;
  left: -100rpx;
}

.tips-title {
  color:  rgba(239, 93, 93, 1);
}
tips-content {
  color:  rgba(104, 108, 128, 1);
}
/* 数字键盘样式优化 */
.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: 2rpx solid #ddd; /* 默认边框颜色与快捷金额按钮一致 */
  border-radius: 10rpx;
  margin-bottom: 24rpx;
  padding: 0 10rpx;
  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);
}

/* 固定返回按钮样式 */
.fixed-back {
  position: fixed;
  top: 50rpx;
  left: 30rpx;
  z-index: 999;
  border-radius: 50%;
  width: 50rpx;
  height: 200rpx;
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 1);
}

.scrollable-content {
  height: 100%;
  width: 100%;
}