.payment-page {
  width: 100%;
  min-height: 100vh;
  background: #f5f5f5;
  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;
}

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

.amount-value {
  font-size: 24px;
  font-weight: 600;
  color: #ff4d4f;
}

.payment-method {
  display: flex;
  align-items: center;
  padding: 12px;
  background: #e6f4ff;
  border-radius: 8px;
  border: 2px solid #1677FF;
}

.alipay-method {
  background: #e6f4ff;
  border-color: #1677FF;
}

.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: 8px;
  margin-top: 8px;
  background: #1677FF;
  border-color: #1677FF;
}

.pay-btn:hover {
  background: #0958d9 !important;
  border-color: #0958d9 !important;
}

.alipay-btn {
  background: #1677FF;
  border-color: #1677FF;
}

.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-link-box {
  background: #f5f5f5;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 4px;
}

.alipay-link-label {
  font-size: 12px;
  color: #999;
  margin-bottom: 4px;
}

.alipay-link-value {
  font-size: 13px;
  color: #333;
  word-break: break-all;
  line-height: 1.5;
  font-family: -apple-system, BlinkMacSystemFont, monospace;
}

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

.alipay-action-btn.primary {
  background: #1677FF;
  border-color: #1677FF;
}

.alipay-action-btn.primary:hover {
  background: #0958d9 !important;
  border-color: #0958d9 !important;
}

.alipay-divider {
  display: flex;
  align-items: center;
  margin: 8px 0 4px 0;
  color: #999;
  font-size: 12px;
}

.alipay-divider::before,
.alipay-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #f0f0f0;
}

.alipay-divider span {
  padding: 0 12px;
}

.alipay-done-btn {
  color: #1677FF;
  font-size: 14px;
  height: 36px;
}

.alipay-done-btn:hover {
  color: #0958d9 !important;
}
