/* ========================
   Qingyunjing — 悬浮联系组件（WhatsApp / 邮件 / 电话 + 快速询盘表单）
   ======================== */

.cw-root {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9990;
  font-family: inherit;
}

.cw-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

.cw-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 52px;
  height: 52px;
  padding: 0 16px;
  border: none;
  border-radius: 999px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
  transition: transform .15s ease, box-shadow .15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.cw-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 0, 0, .22); }
.cw-btn:focus-visible { outline: 3px solid #1a73e8; outline-offset: 2px; }

.cw-btn svg { width: 22px; height: 22px; flex: 0 0 22px; }

.cw-wa { background: #25d366; }
.cw-mail { background: #1a73e8; }
.cw-tel { background: #455a64; display: none; }

.cw-label { display: inline; }

.cw-panel {
  position: absolute;
  right: 0;
  bottom: 64px;
  width: min(360px, calc(100vw - 32px));
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
  padding: 20px;
  display: none;
  color: #1f2733;
}

.cw-panel.is-open { display: block; }

.cw-actions { position: relative; z-index: 2; }
.cw-panel { z-index: 1; }

.cw-panel h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
}

.cw-panel p.cw-hint {
  margin: 0 0 14px;
  font-size: 13px;
  color: #5b6675;
}

.cw-manager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border: 1px solid #e6eaf0;
  border-radius: 12px;
  margin-bottom: 10px;
  text-decoration: none;
  color: inherit;
}

.cw-manager:hover { border-color: #25d366; background: #f4fff8; }
.cw-manager strong { display: block; font-size: 15px; }
.cw-manager span { font-size: 12px; color: #66707d; }
.cw-manager .cw-manager-cta { font-size: 13px; font-weight: 600; color: #25d366; }

.cw-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: #f1f4f8;
  color: #4b5563;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.cw-field { margin-bottom: 10px; }

.cw-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #46505e;
  margin-bottom: 4px;
}

.cw-field input,
.cw-field select,
.cw-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d8dee7;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  color: #1f2733;
  background: #fff;
}

.cw-field textarea { min-height: 84px; resize: vertical; }

.cw-hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* 首页 Get in Touch：先快速联系方式 → 再询盘表单 */
.contact-manager-card {
  margin-block-end: 28px;
}

.contact-manager-card .manager-list {
  display: grid;
  gap: 16px;
}

@media (min-width: 860px) {
  .contact-manager-card .manager-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.contact-form-card {
  max-width: 720px;
  margin-inline: auto;
}

.contact-form-card .contact-form-hint {
  font-size: 14px;
  line-height: 1.6;
  color: #5b6675;
  margin-block-end: 18px;
}

.contact-form .cw-submit {
  margin-block-start: 4px;
}

/* 页脚地址 */
.footer-address strong {
  display: block;
  color: #fff;
  margin-block-end: 8px;
}

.footer-address-text {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-block-end: 4px;
  direction: ltr;
}

html[dir="rtl"] .footer-address-text:last-child {
  direction: rtl;
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1.2fr;
  }
}

.cw-submit {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: #1a73e8;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.cw-submit:disabled { opacity: .6; cursor: default; }

.cw-status {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.5;
}

.cw-status.is-ok { color: #1b7f3b; }
.cw-status.is-error { color: #c0392b; }

.cw-links {
  margin-top: 12px;
  font-size: 12px;
  color: #66707d;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .cw-root {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }
  .cw-actions {
    flex-direction: row;
    justify-content: flex-end;
    gap: 8px;
  }
  .cw-btn {
    height: 48px;
    padding: 0 14px;
    font-size: 14px;
  }
  .cw-label { display: none; }
  .cw-tel { display: inline-flex; }
  .cw-panel {
    right: 0;
    bottom: 60px;
    max-height: 72vh;
    overflow-y: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cw-btn { transition: none; }
}
