/* 询盘弹窗样式 */
.modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6); z-index: 9999;
  display: none; align-items: center; justify-content: center;
  backdrop-filter: blur(3px);
}
.modal-box {
  background: #fff; border-radius: 12px; padding: 36px 40px;
  width: 90%; max-width: 620px; max-height: 90vh; overflow-y: auto;
  position: relative; box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: modalIn 0.3s ease;
}
@keyframes modalIn { from { transform: translateY(-20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-close {
  position: absolute; top: 16px; right: 20px; background: none;
  border: none; font-size: 28px; cursor: pointer; color: #999; line-height: 1;
}
.modal-close:hover { color: #333; }
.modal-box h3 { margin: 0 0 6px; color: #1a3a6b; font-size: 20px; }
.modal-subtitle { color: #e74c3c; margin: 0 0 20px; font-size: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { display: flex; flex-direction: column; }
.form-group.full-width { margin-bottom: 16px; }
.form-group label { font-size: 13px; color: #555; margin-bottom: 6px; font-weight: 500; }
.form-group .required { color: #e74c3c; }
.form-group input, .form-group textarea, .form-group select {
  border: 1px solid #ddd; border-radius: 6px; padding: 10px 14px;
  font-size: 14px; transition: border-color 0.2s; outline: none; font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus { border-color: #1a3a6b; }
.form-group textarea { resize: vertical; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.btn-submit {
  background: #1a3a6b; color: #fff; border: none; padding: 12px 28px;
  border-radius: 6px; cursor: pointer; font-size: 15px; font-weight: 600;
  transition: background 0.2s; flex: 1;
}
.btn-submit:hover { background: #0d2a5a; }
.btn-submit:disabled { opacity: 0.7; cursor: not-allowed; }
.btn-wechat {
  background: #25d366; color: #fff; padding: 12px 20px;
  border-radius: 6px; text-decoration: none; font-size: 14px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px; transition: background 0.2s;
  border: none; cursor: pointer; font-family: inherit;
}
.btn-wechat:hover { background: #1da851; color: #fff; }
.btn-online {
  background: #f39c12; color: #fff; padding: 12px 20px;
  border-radius: 6px; text-decoration: none; font-size: 14px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px; transition: background 0.2s;
  border: none; cursor: pointer; font-family: inherit;
}
.btn-online:hover { background: #d68910; color: #fff; }
.inquiry-result { margin-top: 12px; padding: 12px; border-radius: 6px; display: none; font-size: 14px; }
.inquiry-result.success { background: #d4edda; color: #155724; display: block; }
.inquiry-result.error { background: #f8d7da; color: #721c24; display: block; }
.inquiry-promise {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  color: #3b82f6;
}

/* 微信二维码弹窗 */
.wechat-qr-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.62);
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(3px);
}

.wechat-qr-box {
  width: 90%;
  max-width: 360px;
  background: #fff;
  border-radius: 12px;
  padding: 20px 20px 16px;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.28);
  animation: modalIn 0.25s ease;
}

.wechat-qr-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #94a3b8;
}

.wechat-qr-close:hover { color: #475569; }

.wechat-qr-box h4 {
  margin: 0 0 6px;
  color: #0f172a;
  font-size: 1.125rem;
}

.wechat-qr-desc {
  margin: 0 0 14px;
  font-size: 0.875rem;
  color: #64748b;
}

.wechat-qr-image {
  width: 220px;
  height: 220px;
  max-width: 100%;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  padding: 8px;
  background: #fff;
}

.wechat-id {
  margin: 12px 0 0;
  font-size: 0.875rem;
  color: #334155;
}
/* 浮动按钮 */
.floating-inquiry {
  position: fixed; right: 24px; bottom: 80px; z-index: 999;
  background: #1a3a6b; color: #fff; border-radius: 50px;
  padding: 14px 20px; cursor: pointer; display: flex; align-items: center; gap: 8px;
  box-shadow: 0 4px 20px rgba(26,58,107,0.4); transition: transform 0.2s, box-shadow 0.2s;
  font-size: 15px; font-weight: 600;
}
.floating-inquiry:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(26,58,107,0.5); }
.floating-text { font-size: 14px; }
.floating-promise {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.85;
  border-left: 1px solid rgba(255, 255, 255, 0.25);
  padding-left: 8px;
}
/* 产品详情页询盘按钮 */
.btn-inquiry {
  display: inline-block; background: #e74c3c; color: #fff;
  padding: 14px 32px; border-radius: 6px; font-size: 16px; font-weight: 700;
  cursor: pointer; border: none; transition: background 0.2s; text-align: center;
}
.btn-inquiry:hover { background: #c0392b; }
@media (max-width: 600px) {
  .modal-box { padding: 24px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .form-actions { flex-direction: column; }
  .btn-submit { flex: none; }
}
.modal-overlay.active { display: flex !important; }
.wechat-qr-overlay.active { display: flex !important; }
