* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

body {
  background-color: #f5f5f5;
  color: #333;
}

.container {
  max-width: 100%;
  min-height: 100vh;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 20%; /* 高度可调整（根据图片实际比例修改） */
  background: linear-gradient(
    to right,
    #0a4b8c,
    #66ccff
  ); /* 深蓝到浅蓝的渐变 */
  margin: 0 auto; /* 水平居中（若需要） */
  border: none; /* 无边框（与图片简洁风格一致） */
  z-index: -1;
}

.payment-card {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 24px;
  width: 100%;
  max-width: 450px;
}

h1 {
  font-size: 24px;
  margin-bottom: 20px;
  text-align: center;
  color: #333;
}

.amount-section {
  background-color: #f8f8f8;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
  text-align: center;
}

.amount-section p {
  color: #666;
  font-size: 14px;
  margin-bottom: 8px;
}

.amount-section h2 {
  font-size: 32px;
  color: #333;
}

.payment-methods h3 {
  font-size: 16px;
  margin-bottom: 16px;
  color: #555;
}

.payment-option {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.payment-option:hover {
  border-color: #4285f4;
  background-color: #f5f9ff;
}

.payment-option.selected {
  border-color: #4285f4;
  background-color: #f5f9ff;
}

.payment-icon {
  width: 40px;
  height: 40px;
  margin-right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.payment-icon img {
  max-width: 100%;
  max-height: 100%;
}

.payment-name {
  font-size: 16px;
}

.pay-button {
  background-color: #4285f4;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 14px;
  width: 100%;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 20px;
  transition: background-color 0.2s ease;
}

.pay-button:hover {
  background-color: #3367d6;
}

.pay-button:active {
  transform: translateY(1px);
}

/* Loading overlay styles */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s linear 0.2s, opacity 0.2s;
}

.loading-overlay.visible {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(66, 133, 244, 0.3);
  border-radius: 50%;
  border-top-color: #4285f4;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
