/* ===== 前台咨询弹窗（与站点天蓝主题一致） ===== */
/* 悬浮触发按钮 */
.float-inquiry {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9998;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 18px;
  background: linear-gradient(120deg, #0c4a6e, #0ea5e9);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(14, 165, 233, .45);
  transition: transform .15s ease, box-shadow .15s ease;
}
.float-inquiry:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(14, 165, 233, .55); }

/* 遮罩 */
.iqw-backdrop {
  position: fixed; inset: 0;
  background: rgba(12, 74, 110, .45);
  z-index: 9999;
  opacity: 0; transition: opacity .2s ease;
}
.iqw-backdrop.show { opacity: 1; }

/* 弹窗本体 */
.iqw-pop {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 10000;
  width: 360px; max-width: calc(100vw - 32px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(12, 74, 110, .35);
  padding: 22px 20px 20px;
  font-family: "Microsoft YaHei", "Segoe UI", sans-serif;
  color: #1e293b;
  transform: translateY(16px) scale(.98);
  opacity: 0;
  transition: transform .22s ease, opacity .22s ease;
}
.iqw-pop.show { transform: translateY(0) scale(1); opacity: 1; }
.iqw-pop[hidden], .iqw-backdrop[hidden] { display: none; }

.iqw-close {
  position: absolute; top: 12px; right: 14px;
  width: 30px; height: 30px;
  border: none; background: #f1f5f9; color: #475569;
  border-radius: 50%; font-size: 20px; line-height: 1; cursor: pointer;
}
.iqw-close:hover { background: #e2e8f0; }

.iqw-pop h3 { font-size: 18px; color: #0c4a6e; margin-bottom: 6px; padding-right: 28px; }
.iqw-sub { font-size: 13px; color: #64748b; margin-bottom: 14px; line-height: 1.5; }

.iqw-form { display: flex; flex-direction: column; gap: 10px; }
.iqw-form textarea, .iqw-form input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  font-size: 14px;
  font-family: inherit;
  color: #1e293b;
}
.iqw-form textarea { resize: vertical; }
.iqw-form textarea:focus, .iqw-form input:focus { outline: none; border-color: #0ea5e9; box-shadow: 0 0 0 3px rgba(14, 165, 233, .18); }
.iqw-row { display: flex; gap: 10px; }
.iqw-row input { flex: 1; min-width: 0; }
.iqw-hint { font-size: 12px; color: #94a3b8; margin: -2px 0 0; }

.iqw-upload {
  display: inline-flex; align-items: center; gap: 6px;
  align-self: flex-start;
  padding: 8px 12px;
  background: #f0f9ff; color: #0369a1;
  border: 1px dashed #7dd3fc; border-radius: 9px;
  font-size: 13px; cursor: pointer;
}
.iqw-upload:hover { background: #e0f2fe; }
.iqw-upload input { display: none; }

.iqw-files { display: flex; flex-wrap: wrap; gap: 8px; }
.iqw-file {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  max-width: 150px;
  padding: 5px 8px;
  background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 8px;
  font-size: 12px; color: #334155;
}
.iqw-file img { width: 36px; height: 36px; object-fit: cover; border-radius: 5px; }
.iqw-file .iqw-fname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iqw-file.uploading { opacity: .6; }
.iqw-file .iqw-rm {
  position: absolute; top: -7px; right: -7px;
  width: 18px; height: 18px; border-radius: 50%;
  border: none; background: #ef4444; color: #fff; font-size: 12px; line-height: 1; cursor: pointer;
}

.iqw-submit {
  margin-top: 4px;
  padding: 12px;
  background: #0ea5e9; color: #fff;
  border: none; border-radius: 9px;
  font-size: 15px; font-weight: 600; cursor: pointer;
}
.iqw-submit:hover { background: #0284c7; }
.iqw-submit:disabled { background: #94a3b8; cursor: not-allowed; }
.iqw-err { color: #b91c1c; font-size: 13px; margin: 4px 0 0; }

/* 成功态 */
.iqw-done { text-align: center; padding: 10px 4px; }
.iqw-check {
  width: 54px; height: 54px; margin: 4px auto 12px;
  background: #16a34a; color: #fff; border-radius: 50%;
  font-size: 30px; line-height: 54px;
}

@media (max-width: 480px) {
  .iqw-pop { right: 12px; left: 12px; bottom: 12px; width: auto; }
}

/* ===== 微信 / WhatsApp 浮动按钮（与询盘按钮同侧纵向排列） ===== */
.float-wechat, .float-whatsapp {
  position: fixed;
  right: 22px;
  z-index: 9998;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 16px;
  border: none;
  border-radius: 28px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .25);
  transition: transform .15s ease, box-shadow .15s ease;
}
.float-wechat { bottom: 84px; background: linear-gradient(120deg, #06ae56, #1ec773); box-shadow: 0 10px 26px rgba(6, 174, 86, .45); }
.float-whatsapp { bottom: 146px; background: linear-gradient(120deg, #0e8a78, #25d366); box-shadow: 0 10px 26px rgba(37, 211, 102, .45); }
.float-wechat:hover, .float-whatsapp:hover { transform: translateY(-2px); }
.float-wechat:hover { box-shadow: 0 14px 30px rgba(6, 174, 86, .55); }
.float-whatsapp:hover { box-shadow: 0 14px 30px rgba(37, 211, 102, .55); }

/* ===== 微信 / WhatsApp 居中弹窗（通用 .cw 前缀） ===== */
.cw-backdrop {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, .5);
  z-index: 9999;
  opacity: 0; transition: opacity .2s ease;
}
.cw-backdrop.show { opacity: 1; }

.cw-pop {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(.96);
  z-index: 10000;
  width: 300px; max-width: calc(100vw - 32px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .35);
  padding: 22px 20px 20px;
  font-family: "Microsoft YaHei", "Segoe UI", sans-serif;
  color: #1e293b;
  text-align: center;
  opacity: 0;
  transition: transform .22s ease, opacity .22s ease;
}
.cw-pop.show { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.cw-pop[hidden], .cw-backdrop[hidden] { display: none; }

.cw-close {
  position: absolute; top: 10px; right: 12px;
  width: 30px; height: 30px;
  border: none; background: #f1f5f9; color: #475569;
  border-radius: 50%; font-size: 20px; line-height: 1; cursor: pointer;
}
.cw-close:hover { background: #e2e8f0; }

.cw-pop h3 { font-size: 17px; color: #0c4a6e; margin-bottom: 6px; padding-right: 28px; }
.cw-sub { font-size: 13px; color: #64748b; margin-bottom: 14px; line-height: 1.5; }

.cw-qr {
  display: inline-block;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  margin-bottom: 10px;
}
.cw-qr img { display: block; width: 200px; height: 200px; object-fit: contain; image-rendering: pixelated; }

.cw-empty { color: #94a3b8; font-size: 13px; margin: 20px 0; }
.cw-wid { font-size: 13px; color: #475569; margin: 4px 0 0; }
.cw-wid b { color: #0f172a; }

.cw-wa-btn {
  display: block;
  margin: 6px auto 12px;
  padding: 12px 18px;
  background: #25d366; color: #fff;
  border-radius: 10px;
  font-size: 15px; font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(37, 211, 102, .4);
}
.cw-wa-btn:hover { background: #1ebe5d; }

@media (max-width: 480px) {
  .float-whatsapp { bottom: 120px; }
  .float-wechat { bottom: 64px; }
}
