/* 官网微信在线咨询浮窗（与 assets/consult.json 配置联动，无外部依赖） */
.wx-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 400;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 18px 0 14px;
  border: 0;
  border-radius: 26px;
  background: #07C160;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(7, 193, 96, 0.32);
  transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.wx-fab:hover { background: #06AD56; transform: translateY(-1px); box-shadow: 0 14px 30px rgba(7, 193, 96, 0.38); }
.wx-fab:focus-visible { outline: 3px solid rgba(7, 193, 96, 0.35); outline-offset: 2px; }
.wx-fab svg { width: 22px; height: 22px; flex: none; fill: currentColor; }
.wx-fab[aria-expanded="true"] { background: #06AD56; }

.wx-panel {
  position: fixed;
  right: 24px;
  bottom: 88px;
  z-index: 401;
  width: 312px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  background: #fff;
  border: 1px solid #E4EAF0;
  border-radius: 14px;
  box-shadow: 0 18px 46px rgba(11, 60, 93, 0.18);
  padding: 16px 16px 14px;
  font-family: inherit;
  color: #1F2A37;
  animation: wx-panel-in .18s ease-out;
}
.wx-panel[hidden] { display: none; }
@keyframes wx-panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.wx-panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.wx-panel__title { margin: 0; font-size: 16px; font-weight: 700; color: #0B3C5D; line-height: 1.4; }
.wx-panel__sub { margin: 4px 0 0; font-size: 12.5px; color: #7A8794; line-height: 1.6; }
.wx-panel__close {
  flex: none; width: 28px; height: 28px; margin: -4px -4px 0 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 8px; background: #F5F8FA; color: #4B5A6A;
  font-size: 18px; line-height: 1; cursor: pointer;
}
.wx-panel__close:hover { background: #EEF3F7; color: #1F2A37; }

.wx-panel__qr { margin: 14px auto 0; width: 188px; text-align: center; }
.wx-panel__qr img { display: block; width: 188px; height: 188px; object-fit: contain; border: 1px solid #E4EAF0; border-radius: 10px; background: #fff; }
.wx-panel__qr figcaption { margin-top: 8px; font-size: 12px; color: #7A8794; }

.wx-panel__kf { display: block; margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: #E8F8EF; color: #067647; font-size: 14px; font-weight: 600; text-align: center; text-decoration: none; }
.wx-panel__kf:hover { background: #D9F2E5; }

.wx-panel__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #EEF3F7; font-size: 13px; color: #4B5A6A; }
.wx-panel__row:first-of-type { border-top: 0; }
.wx-panel__row b { font-weight: 600; color: #1F2A37; }
.wx-panel__copy {
  flex: none; padding: 5px 10px; border: 1px solid #CFE7DA; border-radius: 7px;
  background: #F2FBF6; color: #067647; font-size: 12.5px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.wx-panel__copy:hover { background: #E8F8EF; }
.wx-panel__note { margin: 12px 0 0; font-size: 12px; line-height: 1.7; color: #7A8794; }
.wx-panel__toast { margin: 10px 0 0; font-size: 12.5px; color: #067647; }

/* 双通道标签页（微信 / QQ） */
.wx-panel__tabs { display: flex; gap: 4px; margin-top: 12px; padding: 4px; background: #F2F6FA; border-radius: 10px; }
.wx-panel__tab {
  flex: 1; padding: 7px 0; border: 0; border-radius: 8px; background: transparent;
  color: #5B6B7B; font-size: 13px; font-weight: 600; font-family: inherit; cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.wx-panel__tab:hover { color: #0B3C5D; }
.wx-panel__tab[aria-selected="true"] { background: #fff; color: #0B3C5D; box-shadow: 0 1px 4px rgba(11, 60, 93, 0.14); }
.wx-panel__pane[hidden] { display: none; }

/* QQ 唤起会话按钮（与微信绿区分，用 QQ 蓝） */
.wx-panel__cta {
  display: block; margin-top: 14px; padding: 11px 14px; border-radius: 10px;
  background: #12B7F5; color: #fff; font-size: 14px; font-weight: 600;
  text-align: center; text-decoration: none;
}
.wx-panel__cta:hover { background: #0EA5DE; }

/* 联系方式区的二维码占位 → 真实二维码 */
.ph--qr.is-live { background: #fff; border-color: rgba(255, 255, 255, 0.35); padding: 8px; gap: 8px; }
.ph--qr.is-live img { display: block; width: 100%; height: auto; border-radius: 6px; }
.ph--qr.is-live .ph__hint { color: rgba(255, 255, 255, 0.8); font-size: 12px; }

/* 防御性约束：.value 网格子项默认 min-width:auto，若图片固有宽度大于视口会把整页撑出横向滚动
   （fixed 浮窗也会被推到屏外）。此处允许子项收缩，不影响现有布局。 */
.value__visual { min-width: 0; }
@media (max-width: 900px) {
  .value__visual img { max-width: 100%; height: auto; }
}

@media (max-width: 600px) {
  .wx-fab { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); height: 48px; padding: 0 16px 0 12px; font-size: 14px; }
  .wx-panel {
    right: 0; left: 0; bottom: 0;
    width: auto; max-width: none; max-height: 78vh;
    border-radius: 16px 16px 0 0; border-bottom: 0;
    padding: 18px 18px calc(18px + env(safe-area-inset-bottom, 0px));
  }
}
