/* 支付相关样式 */

/* 右侧价格卡片 */
.price-sidebar {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  padding: 24px;
  margin-top: 30px;
  position: sticky;
  top: 20px;
}

.price-sidebar .price-header {
  text-align: center;
  margin-bottom: 24px;
}

.price-sidebar .price-display {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.price-sidebar .price-amount {
  font-size: 48px;
  font-weight: 700;
  color: #ff6b35;
  line-height: 1;
}

.price-sidebar .price-unit {
  font-size: 18px;
  color: #666;
  font-weight: 500;
}

.price-sidebar .price-period {
  color: #999;
  font-size: 14px;
  margin-top: 8px;
}

.price-sidebar .buy-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 20px;
}

.price-sidebar .buy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
}

.price-sidebar .info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.price-sidebar .info-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.price-sidebar .info-item:last-child {
  border-bottom: none;
}

.price-sidebar .info-label {
  color: #666;
  font-size: 14px;
}

.price-sidebar .info-value {
  color: #333;
  font-size: 14px;
  font-weight: 500;
}

.price-sidebar .contact-btn {
  display: block;
  width: 100%;
  padding: 12px;
  background: #f5f5f5;
  color: #333;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
}

.price-sidebar .contact-btn:hover {
  background: #e8e8e8;
}

/* 支付弹窗 */
.payment-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.payment-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.payment-modal-content {
  background: #fff;
  border-radius: 16px;
  width: 90%;
  max-width: 480px;
  padding: 32px;
  position: relative;
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.payment-modal-close {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: #f5f5f5;
  border-radius: 50%;
  font-size: 18px;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
}

.payment-modal-close:hover {
  background: #e8e8e8;
  color: #333;
}

.payment-modal-title {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  text-align: center;
  margin-bottom: 8px;
}

.payment-modal-subtitle {
  font-size: 14px;
  color: #999;
  text-align: center;
  margin-bottom: 24px;
}

.payment-amount {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  color: #ff6b35;
  margin-bottom: 24px;
}

.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.payment-method-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  border: 2px solid #e5e5e5;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.payment-method-btn:hover {
  border-color: #1677ff;
  background: #f6fbff;
}

.payment-method-btn img {
  width: 40px;
  height: 40px;
}

.payment-method-btn span {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

/* 二维码展示区 */
.qr-code-area {
  display: none;
  text-align: center;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 12px;
  margin-bottom: 16px;
}

.qr-code-area.show {
  display: block;
}

.qr-code-area img {
  width: 200px;
  height: 200px;
  margin-bottom: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.qr-code-area .qr-tip {
  font-size: 14px;
  color: #666;
}

.qr-code-area .qr-waiting {
  font-size: 12px;
  color: #999;
  margin-top: 8px;
}

.payment-tips {
  font-size: 13px;
  color: #999;
  text-align: center;
  line-height: 1.6;
}

/* 响应式适配 */
@media (max-width: 768px) {
  .price-sidebar {
    margin-top: 20px;
  }

  .payment-modal-content {
    width: 95%;
    padding: 24px;
  }

  .qr-code-area img {
    width: 180px;
    height: 180px;
  }

  .wechat-qrcode-content {
    width: 95%;
    padding: 24px;
  }

  .wechat-qrcode-content .qrcode-image {
    width: 200px;
    height: 200px;
  }
}

/* 微信咨询二维码（按钮下方直接显示） */
.wechat-qrcode-inline {
  margin-top: 16px;
  text-align: center;
  animation: fadeIn 0.5s ease;
}

.wechat-qrcode-inline .qrcode-img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid #e5e5e5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.wechat-qrcode-inline .qrcode-img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.wechat-qrcode-inline .qrcode-text {
  font-size: 13px;
  color: #666;
  margin: 12px 0 0 0;
  line-height: 1.5;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
