/* 全站咨询入口：关闭第三方自动遮屏，仅在用户点击后加载 Zoosnet 聊天。 */
.hk-consult-dock,
.hk-consult-dock * {
  box-sizing: border-box;
}

.hk-consult-dock {
  position: fixed;
  right: 24px;
  bottom: 28px;
  z-index: 9000;
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  transition: opacity .2s ease, transform .2s ease;
}

.hk-consult-dock a {
  text-decoration: none !important;
}

.hk-consult-dock__desktop {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 286px;
  min-height: 88px;
  padding: 14px 15px;
  overflow: hidden;
  color: #fff !important;
  background: linear-gradient(135deg, #087cf0 0%, #075fca 100%);
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 22px;
  box-shadow: 0 14px 38px rgba(4, 91, 190, .28), 0 4px 12px rgba(15, 23, 42, .12);
  transition: transform .2s ease, box-shadow .2s ease;
}

.hk-consult-dock__desktop::after {
  content: "";
  position: absolute;
  right: -34px;
  top: -46px;
  width: 112px;
  height: 112px;
  border: 22px solid rgba(255, 223, 62, .2);
  border-radius: 50%;
}

.hk-consult-dock__desktop:hover {
  color: #fff !important;
  transform: translateY(-3px);
  box-shadow: 0 18px 46px rgba(4, 91, 190, .34), 0 6px 16px rgba(15, 23, 42, .14);
}

.hk-consult-dock__icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  color: #075fca;
  background: #ffdf3e;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.48);
}

.hk-consult-dock__icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.hk-consult-dock__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  line-height: 1.2;
}

.hk-consult-dock__status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 4px;
  color: #dceeff;
  font-size: 11px;
}

.hk-consult-dock__status i {
  width: 7px;
  height: 7px;
  background: #4ade80;
  border: 2px solid rgba(255,255,255,.88);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(74,222,128,.18);
}

.hk-consult-dock__copy strong {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .01em;
}

.hk-consult-dock__copy small {
  margin-top: 5px;
  color: rgba(255,255,255,.78);
  font-size: 12px;
}

.hk-consult-dock__arrow {
  position: relative;
  z-index: 1;
  color: #ffdf3e;
  font-family: Arial, sans-serif;
  font-size: 30px;
  line-height: 1;
}

.hk-consult-dock__mobile {
  display: none;
}

/* 即使旧页面缓存仍加载了 Zoosnet 自动脚本，也不允许它再次遮屏。 */
body > #LRfloater0,
body > #LRfloater1,
body > #LRfloater2,
body > #LRdiv0,
body > #LRdiv1,
body > #LRdiv2,
body > div[id^="LRfloater"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.hk-consult-backdrop {
  z-index: 10020 !important;
  background: rgba(15, 23, 42, .46) !important;
  backdrop-filter: blur(2px);
}

.hk-consult-panel {
  top: 16px !important;
  right: 16px !important;
  bottom: 16px !important;
  width: min(430px, calc(100vw - 32px)) !important;
  min-width: 360px !important;
  height: auto !important;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 22px;
  z-index: 10021 !important;
  box-shadow: -10px 12px 46px rgba(15, 23, 42, .24) !important;
}

.hk-consult-panel__header {
  min-height: 72px;
  padding: 11px 14px !important;
  background: linear-gradient(135deg, #087cf0 0%, #075fca 100%) !important;
}

.hk-consult-panel__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hk-consult-panel__brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: #075fca;
  background: #ffdf3e;
  border-radius: 13px;
  font-size: 15px;
  font-weight: 800;
}

.hk-consult-panel__brand > span:last-child {
  display: flex;
  flex-direction: column;
}

.hk-consult-panel__title {
  color: #fff;
  font-size: 16px;
  line-height: 1.3;
}

.hk-consult-panel__brand small {
  margin-top: 3px;
  color: rgba(255,255,255,.76);
  font-size: 11px;
}

.hk-consult-panel__close {
  width: 36px !important;
  height: 36px !important;
  border-radius: 11px !important;
}

.hk-consult-panel__frame {
  background: #f8fafc !important;
}

body.hk-consult-open .hk-consult-dock {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

@media (max-width: 767px) {
  body.hk-consult-dock-active {
    padding-bottom: calc(76px + env(safe-area-inset-bottom)) !important;
  }

  .hk-consult-dock {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
  }

  .hk-consult-dock__desktop {
    display: none;
  }

  .hk-consult-dock__mobile {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 8px;
    min-height: 68px;
    padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.97);
    border-top: 1px solid #e5eaf1;
    box-shadow: 0 -8px 26px rgba(15,23,42,.11);
    backdrop-filter: blur(12px);
  }

  .hk-consult-dock__mobile-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    line-height: 1.2;
  }

  .hk-consult-dock__mobile-copy strong {
    overflow: hidden;
    color: #10233f;
    font-size: 14px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hk-consult-dock__mobile-copy small {
    overflow: hidden;
    margin-top: 4px;
    color: #718096;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hk-consult-dock__form,
  .hk-consult-dock__chat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 66px;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 13px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
  }

  .hk-consult-dock__form {
    color: #0872df !important;
    background: #eef6ff;
    border: 1px solid #cfe5ff;
  }

  .hk-consult-dock__chat {
    color: #10233f !important;
    background: #ffdf3e;
    border: 1px solid #f2cf1d;
    box-shadow: 0 5px 13px rgba(213, 168, 0, .2);
  }

  .hk-consult-panel {
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 100vh !important;
    height: 100dvh !important;
    border: 0;
    border-radius: 0;
  }
}

@media (max-width: 374px) {
  .hk-consult-dock__mobile-copy small { display: none; }
  .hk-consult-dock__form,
  .hk-consult-dock__chat { min-width: 62px; padding: 0 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .hk-consult-dock,
  .hk-consult-dock__desktop,
  .hk-consult-panel,
  .hk-consult-backdrop {
    transition: none !important;
  }
}
