.payment-page {
  width: 100%;
  min-height: 100vh;
  background: var(--page-bg);
  padding-bottom: 40px;
}

.payment-header {
  background: #fff;
  padding: 12px 16px;
  padding-top: max(12px, env(safe-area-inset-top));
  display: flex;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.back-btn {
  font-size: 20px !important;
  padding: 8px !important;
  margin-right: 12px;
}

.payment-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  flex: 1;
  text-align: center;
  margin-right: 44px;
}

.payment-container {
  padding: 24px 20px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.payment-card {
  width: 100%;
  margin-bottom: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.payment-card .ant-card-head {
  border-bottom: 2px solid #f0f0f0;
  padding: 0 24px;
  min-height: 48px;
}

.payment-card .ant-card-head-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  padding: 12px 0;
}

.payment-card .ant-card-body {
  padding: 24px;
  width: 100%;
}

.order-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.order-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.order-label {
  font-size: 14px;
  color: #666;
}

.order-value {
  font-size: 14px;
  color: #333;
  font-weight: 500;
  text-align: right;
  word-break: break-all;
  max-width: 70%;
}

.amount-item {
  padding-top: 8px;
}

.amount-value {
  font-size: 24px;
  font-weight: 600;
  color: var(--danger-color);
}

.payment-method {
  display: flex;
  align-items: center;
  padding: 12px;
  background: var(--brand-color-light);
  border-radius: var(--radius-sm);
  border: 2px solid var(--brand-color);
}

.alipay-method {
  background: var(--brand-color-light);
  border-color: var(--brand-color);
}

.method-icon {
  margin-right: 16px;
  flex-shrink: 0;
}

.alipay-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.method-info {
  flex: 1;
}

.method-name {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.method-desc {
  font-size: 13px;
  color: #999;
}

.method-checked {
  flex-shrink: 0;
}

.pay-btn {
  height: 52px;
  font-size: 18px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  margin-top: 8px;
  background: var(--brand-gradient) !important;
  border: none !important;
  color: var(--text-on-brand) !important;
}

.pay-btn:hover,
.pay-btn:focus {
  background: var(--brand-gradient-hover) !important;
  color: var(--text-on-brand) !important;
}

.alipay-btn {
  background: var(--brand-gradient) !important;
  border: none !important;
}

.payment-tips {
  text-align: center;
  font-size: 12px;
  color: #999;
  margin-top: 16px;
}

/* 移动端适配 */
@media screen and (max-width: 375px) {
  .payment-container {
    padding: 20px 16px;
  }

  .payment-card .ant-card-body {
    padding: 20px 16px;
  }
}

@media screen and (min-width: 768px) {
  .payment-container {
    padding: 40px;
  }

  .payment-card .ant-card-body {
    padding: 32px;
  }
}

/* 支付宝引导弹窗样式 */
.alipay-modal .ant-modal-content {
  border-radius: 12px;
  padding: 24px;
}

.alipay-modal .ant-modal-header {
  border-bottom: none;
  padding: 0;
  margin-bottom: 16px;
}

.alipay-modal .ant-modal-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  text-align: center;
}

.alipay-modal-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.alipay-modal-tip {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin: 0 0 4px 0;
  text-align: center;
}

.alipay-action-btn {
  height: 44px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
}

.alipay-action-btn.primary {
  background: var(--brand-gradient) !important;
  border: none !important;
  color: var(--text-on-brand) !important;
}

.alipay-action-btn.primary:hover,
.alipay-action-btn.primary:focus {
  background: var(--brand-gradient-hover) !important;
  color: var(--text-on-brand) !important;
}
