body {
  background: #f5f7fa;
}
.recharge-main {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 0 60px 0;
}
.recharge-card {
  width: 100%;
  max-width: 75%;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 32px rgba(21,101,192,0.10);
  padding: 0 0 36px 0;
  margin: 0 24px;
}
.recharge-header {
  background: #6563e9;
  color: #fff;
  font-size: 26px;
  font-weight: bold;
  border-radius: 18px 18px 0 0;
  padding: 32px 40px 18px 40px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.recharge-rate {
  color: #888;
  font-size: 15px;
  margin: 0 40px 18px 40px;
  padding-top: 2px;
}
.recharge-items-title {
  font-size: 17px;
  color: #333;
  font-weight: 500;
  margin: 0 40px 10px 40px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.recharge-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 24px;
  margin: 0 40px 18px 40px;
}
.recharge-item {
  background: #f7f8fc;
  border: 2px solid #e3eaf2;
  border-radius: 12px;
  font-size: 20px;
  font-weight: bold;
  color: #222;
  text-align: center;
  padding: 22px 0 12px 0;
  cursor: pointer;
  transition: border 0.18s, background 0.18s, color 0.18s;
  user-select: none;
}
.recharge-item.selected {
  border: 2px solid #6563e9;
  background: #edefff;
  color: #6563e9;
}
.recharge-item span {
  display: block;
  font-size: 15px;
  color: #888;
  font-weight: normal;
  margin-top: 6px;
}
.recharge-custom-title {
  font-size: 16px;
  color: #333;
  font-weight: 500;
  margin: 18px 40px 6px 40px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.recharge-custom {
  margin: 0 40px 0 40px;
  display: flex;
  align-items: center;
  gap: 10px;
}
#customAmount {
  width: 120px;
  font-size: 17px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1.5px solid #e3eaf2;
  outline: none;
  transition: border 0.18s;
}
#customAmount:focus {
  border: 1.5px solid #6563e9;
}
.recharge-pay-amount {
  margin: 18px 40px 0 40px;
  font-size: 17px;
  color: #333;
  font-weight: 500;
}
.recharge-pay-amount span {
  color: #ff3b3b;
  font-size: 20px;
  font-weight: bold;
  margin-left: 8px;
}
.recharge-pay-title {
  font-size: 16px;
  color: #333;
  font-weight: 500;
  margin: 28px 40px 10px 40px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.recharge-pay-methods {
  display: flex;
  gap: 18px;
  margin: 0 40px 0 40px;
}
.pay-method-new {
  flex: 1;
  background: #f7f8fc;
  border: 2px solid #e3eaf2;
  border-radius: 10px;
  font-size: 17px;
  color: #333;
  text-align: center;
  padding: 14px 0;
  cursor: pointer;
  transition: border 0.18s, background 0.18s, color 0.18s;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.pay-method-new.selected {
  border: 2px solid #6563e9;
  background: #edefff;
  color: #6563e9;
}
.pay-method-new.alipay.selected i {
  color: #1677ff;
}
.pay-method-new.wechat.selected i {
  color: #43e97b;
}
.pay-method-new.bank.selected i {
  color: #ff9800;
}
.pay-method-new.tenpay.selected i {
  color: #7c4dff;
}
.pay-method-new i {
  font-size: 22px;
  margin-right: 4px;
}
.recharge-go-btn {
  margin: 36px 40px 0 40px;
  width: calc(100% - 80px);
  background: #6563e9;
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 16px 0;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(101,99,233,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.2s, color 0.2s;
}
.recharge-go-btn:hover {
  background: #4b48c7;
  color: #fff;
}
/* 弹窗样式 */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; right: 0; bottom: 0;
  justify-content: center;
  align-items: center;
}
.modal.active {
  display: flex;
}
.modal-mask {
  position: absolute;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(33, 33, 33, 0.45);
  z-index: 1;
}
.modal-dialog {
  position: relative;
  z-index: 2;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(21,101,192,0.18);
  padding: 38px 32px 28px 32px;
  min-width: 320px;
  max-width: 90vw;
  text-align: center;
  animation: modalIn 0.22s cubic-bezier(.4,2,.6,1) both;
}
@keyframes modalIn {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.modal-title {
  font-size: 20px;
  color: #d32f2f;
  font-weight: bold;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.modal-title i {
  color: #ff9800;
  font-size: 22px;
}
.modal-actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 18px;
}
.modal-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 22px;
  padding: 8px 22px;
  font-size: 15px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
  box-shadow: 0 2px 8px rgba(21,101,192,0.07);
}
.modal-btn.login {
  background: #1976d2;
  color: #fff;
}
.modal-btn.login:hover {
  background: #1251a3;
}
.modal-btn.register {
  background: #e0e0e0;
  color: #1976d2;
}
.modal-btn.register:hover {
  background: #bdbdbd;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 20px;
  color: #bbb;
  cursor: pointer;
  transition: color 0.18s;
}
.modal-close:hover {
  color: #d32f2f;
}
@media (max-width: 900px) {
  .recharge-card {
    max-width: 99vw;
    margin: 0 2vw;
    padding: 0 0 18px 0;
  }
  .recharge-header {
    font-size: 20px;
    padding: 18px 12px 10px 12px;
  }
  .recharge-items, .recharge-items-title, .recharge-rate, .recharge-custom-title, .recharge-custom, .recharge-pay-amount, .recharge-pay-title, .recharge-pay-methods {
    margin-left: 12px;
    margin-right: 12px;
  }
  .recharge-items {
    gap: 10px 8px;
  }
  .recharge-go-btn {
    margin: 24px 12px 0 12px;
    width: calc(100% - 24px);
    font-size: 16px;
    padding: 12px 0;
  }
} 