.modal {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.35);
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: modal-fade-in 0.2s;
}
@keyframes modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.modal.active {
  display: flex;
}
.modal-content {
  background: linear-gradient(135deg, #f8fafc 0%, #e3e8ef 100%);
  padding: 36px 32px 28px 32px;
  border-radius: 14px;
  min-width: 340px;
  box-shadow: 0 8px 32px #0002, 0 1.5px 6px #1976d233;
  position: relative;
  transition: box-shadow 0.2s;
}
.modal-content h2 {
  margin-top: 0;
  margin-bottom: 18px;
  font-weight: 600;
  color: #1976d2;
  letter-spacing: 1px;
  text-align: center;
}
.modal-content input {
  width: 100%;
  padding: 10px 12px;
  margin: 10px 0 4px 0;
  border: 1.5px solid #e0e0e0;
  border-radius: 6px;
  box-sizing: border-box;
  font-size: 15px;
  transition: border 0.2s;
}
.modal-content input:focus {
  border: 1.5px solid #1976d2;
  outline: none;
  background: #f0f7ff;
}
.modal-content button:not(.close-btn) {
  width: 100%;
  margin-top: 14px;
  padding: 12px 0;
  border-radius: 6px;
  border: none;
  background: linear-gradient(90deg, #1976d2 60%, #43a047 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 2px 8px #1976d222;
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
}
.modal-content button:not(.close-btn):hover {
  background: linear-gradient(90deg, #1565c0 60%, #388e3c 100%);
  box-shadow: 0 4px 16px #1976d233;
  transform: translateY(-2px) scale(1.02);
}
.close-btn {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 32px;
  height: 32px;
  background: #fff;
  border: none;
  border-radius: 50%;
  font-size: 22px;
  color: #1976d2;
  cursor: pointer;
  box-shadow: 0 1px 4px #1976d211;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  z-index: 2;
  min-width: unset;
  min-height: unset;
  padding: 0;
}
.close-btn:hover {
  background: #1976d2;
  color: #fff;
}
.tip {
  color: #d32f2f;
  margin-top: 10px;
  min-height: 24px;
  text-align: center;
  font-size: 14px;
}
/* 支付二维码区美化 */
#wechatQr {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 18px 0 10px 0;
  padding: 12px 0;
  background: #f5f7fa;
  border-radius: 8px;
  box-shadow: 0 1px 4px #1976d211;
}
.modal-content p {
  color: #555;
  font-size: 15px;
  text-align: center;
  margin-bottom: 8px;
} 