/* ============================================================
 * 首页表单：在线咨询 + 获取报价（悬浮按钮 + 弹窗）
 * 与现有 C-btn / C-title 视觉风格保持一致
 * ============================================================ */

/* ---------- 在线咨询区块 ---------- */
.inquiry-section {
  padding: 5.208vw 0 6.25vw;
  background: #fafbfc;
}
.inquiry-section .inquiry-wrap {
  display: flex;
  align-items: stretch;
  gap: 3.125vw;
  width: 75vw;
  margin: 0 auto;
}
.inquiry-section .inquiry-left {
  flex: 0 0 26vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.inquiry-section .inquiry-left .t1 {
  color: #111;
  margin-bottom: 1.04vw;
  line-height: 1.2;
}
.inquiry-section .inquiry-left .t2 {
  color: #666;
  line-height: 1.8;
}
.inquiry-section .inquiry-form {
  flex: 1;
  background: #fff;
  border-radius: 8px;
  padding: 2.604vw;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}
.inquiry-section .inquiry-form .form-row {
  display: flex;
  gap: 1.041vw;
  margin-bottom: 1.041vw;
}
.inquiry-section .inquiry-form .form-row > * {
  flex: 1;
  min-width: 0;
}
.inquiry-section .inquiry-form input,
.inquiry-section .inquiry-form textarea,
.quote-modal-box input,
.quote-modal-box textarea {
  width: 100%;
  padding: 0.677vw 1.04vw;
  font-size: 0.833vw;
  line-height: 1.5;
  color: #222;
  background: #f6f8f9;
  border: 1px solid transparent;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  font-family: inherit;
  box-sizing: border-box;
}
.inquiry-section .inquiry-form input:focus,
.inquiry-section .inquiry-form textarea:focus,
.quote-modal-box input:focus,
.quote-modal-box textarea:focus {
  background: #fff;
  border-color: #5ba5b2;
}
.inquiry-section .inquiry-form textarea,
.quote-modal-box textarea {
  resize: vertical;
  min-height: 6.25vw;
}
.inquiry-section .inquiry-form .form-actions {
  margin-top: 1.562vw;
}
.inquiry-section .inquiry-form .form-actions .C-btn {
  cursor: pointer;
  border: none;
}

/* ---------- 悬浮按钮（纸飞机 + 竖排文字） ---------- */
.quote-float-btn {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 998;
  width: 2.708vw;          /* 约 52px @1920 */
  padding: 0.833vw 0 1.041vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.521vw;
  background: linear-gradient(135deg, #3a8fa0 0%, #5ba5b2 100%);
  color: #fff;
  cursor: pointer;
  border-radius: 10px 0 0 10px;
  user-select: none;
  box-shadow: -4px 6px 18px rgba(58, 143, 160, 0.32);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}
/* 顶部高光 + 底部柔光，提升立体感 */
.quote-float-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 60%),
    radial-gradient(120% 60% at 50% 100%, rgba(0, 0, 0, 0.10) 0%, rgba(0, 0, 0, 0) 60%);
  pointer-events: none;
}
.quote-float-btn:hover {
  transform: translateY(-50%) translateX(-4px);
  box-shadow: -8px 8px 24px rgba(58, 143, 160, 0.5);
}

/* —— 纸飞机图标 —— */
.quote-float-btn .qfb-plane {
  position: relative;
  width: 1.667vw;          /* 约 32px */
  height: 1.667vw;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: none;
  transform: translateX(2px);
}
.quote-float-btn .qfb-plane img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
  pointer-events: none;
}
@keyframes qfbPlaneFloat {
  0%, 100% { transform: translate(0, 0) rotate(-6deg); }
  50%      { transform: translate(-1px, -3px) rotate(-2deg); }
}
/* hover 时纸飞机做一次"飞出回弹"动画 */
.quote-float-btn:hover .qfb-plane {
  animation: none;
}
@keyframes qfbPlaneFly {
  0%   { transform: translate(0, 0) rotate(-6deg); }
  35%  { transform: translate(10px, -14px) rotate(-30deg); opacity: 0.9; }
  55%  { transform: translate(14px, -18px) rotate(-30deg); opacity: 0; }
  56%  { transform: translate(-12px, 6px) rotate(-12deg); opacity: 0; }
  75%  { opacity: 1; }
  100% { transform: translate(0, 0) rotate(-6deg); opacity: 1; }
}

/* —— 竖排文字 —— */
.quote-float-btn .qfb-text {
  writing-mode: vertical-rl;
  font-size: 0.833vw;      /* 约 16px */
  letter-spacing: 0.25em;
  line-height: 1;
  text-align: center;
  color: #fff;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* ---------- 报价弹窗 ---------- */
.quote-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}
.quote-modal.show {
  display: flex;
  animation: quoteModalIn 0.25s ease;
}
@keyframes quoteModalIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.quote-modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
}
.quote-modal-box {
  position: relative;
  width: 28vw;
  min-width: 360px;
  background: #fff;
  border-radius: 12px;
  padding: 2.604vw 2.604vw 2.083vw;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.25);
  animation: quoteBoxIn 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
@keyframes quoteBoxIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
.quote-modal-close {
  position: absolute;
  top: 1.04vw;
  right: 1.04vw;
  width: 1.25vw;
  height: 1.25vw;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s, transform 0.2s;
}
.quote-modal-close:hover {
  opacity: 1;
  transform: rotate(90deg);
}
.quote-modal-close img {
  width: 100%;
  height: 100%;
  display: block;
}
.quote-modal-box .qm-title {
  color: #111;
  margin-bottom: 0.521vw;
  text-align: center;
}
.quote-modal-box .qm-desc {
  color: #888;
  text-align: center;
  margin-bottom: 1.562vw;
}
.quote-modal-box form input,
.quote-modal-box form textarea {
  margin-bottom: 0.833vw;
}
.quote-modal-box form .form-actions {
  margin-top: 0.521vw;
  display: flex;
  justify-content: center;
}
.quote-modal-box form .C-btn {
  cursor: pointer;
  border: none;
  width: 100%;
  justify-content: center;
}

/* ---------- 移动端 ---------- */
@media (max-width: 768px) {
  .inquiry-section {
    padding: 40px 0 50px;
  }
  .inquiry-section .inquiry-wrap {
    flex-direction: column;
    width: 92vw;
    gap: 24px;
  }
  .inquiry-section .inquiry-left {
    flex: none;
  }
  .inquiry-section .inquiry-left .t1 { font-size: 26px; margin-bottom: 10px; }
  .inquiry-section .inquiry-left .t2 { font-size: 14px; }
  .inquiry-section .inquiry-form { padding: 20px; border-radius: 8px; }
  .inquiry-section .inquiry-form .form-row {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
  }
  .inquiry-section .inquiry-form input,
  .inquiry-section .inquiry-form textarea,
  .quote-modal-box input,
  .quote-modal-box textarea {
    padding: 12px 14px;
    font-size: 14px;
  }
  .inquiry-section .inquiry-form textarea,
  .quote-modal-box textarea { min-height: 100px; }
  .inquiry-section .inquiry-form .form-actions { margin-top: 18px; }

  .quote-float-btn {
    width: 42px;
    padding: 12px 0 14px;
    gap: 6px;
    border-radius: 8px 0 0 8px;
  }
  .quote-float-btn .qfb-plane {
    width: 22px;
    height: 22px;
  }
  .quote-float-btn .qfb-text {
    font-size: 13px;
    letter-spacing: 0.18em;
  }
  .quote-modal-box {
    width: 88vw;
    min-width: 0;
    padding: 28px 22px 22px;
    border-radius: 10px;
  }
  .quote-modal-close {
    width: 22px; height: 22px;
    top: 12px; right: 12px;
  }
  .quote-modal-box .qm-title { font-size: 22px; }
  .quote-modal-box .qm-desc  { font-size: 13px; margin-bottom: 18px; }
  .quote-modal-box form input,
  .quote-modal-box form textarea { margin-bottom: 12px; }
}

/* 防止 modal 打开时背景滚动 */
body.quote-modal-open {
  overflow: hidden;
}
