.float-consult {
  --fc-primary: #1E88E5;
  position: fixed;
  right: 24px;
  bottom: 120px;
  z-index: 99999;
  overflow: visible;
}

.float-consult-pc {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: visible;
}

.float-consult-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 72px;
  padding: 18px 8px;
  background: #fff;
  border-radius: 40px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
  overflow: visible;
}

.float-consult-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px 4px;
  border: none;
  background: transparent;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
  color: #333333;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s ease, color 0.25s ease;
}

.float-consult-item:hover,
.float-consult-item:focus-visible {
  transform: scale(1.06);
  color: var(--fc-primary);
}

.float-consult-item:active {
  transform: scale(0.98);
}

.float-consult-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #666666;
  transition: color 0.25s ease;
}

.float-consult-icon svg {
  width: 26px;
  height: 26px;
}

.float-consult-icon--wechat {
  width: 32px;
  height: 32px;
  color: #666666;
}

.float-consult-icon--wechat svg {
  width: 30px;
  height: 30px;
}

.float-consult-item:hover .float-consult-icon--wechat,
.float-consult-item:focus-visible .float-consult-icon--wechat {
  color: #666666;
}

.float-consult-item:hover .float-consult-icon,
.float-consult-item:focus-visible .float-consult-icon {
  color: var(--fc-primary);
}

.float-consult-label {
  display: block;
  white-space: nowrap;
}

.float-consult-wechat-wrap {
  position: relative;
  overflow: visible;
  width: 100%;
  border-top: 1px solid #EEEEEE;
  margin-top: 4px;
  padding-top: 4px;
}

.float-consult-qr-popover {
  position: absolute;
  right: 100%;
  top: 50%;
  margin-right: 8px;
  transform: translateY(-50%) scale(0.96);
  opacity: 0;
  visibility: hidden;
  width: 164px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  padding: 12px;
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  z-index: 100001;
}

.float-consult-qr-popover::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 0;
  width: 12px;
  height: 100%;
}

.float-consult-qr-popover.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) scale(1);
  pointer-events: auto;
}

.float-consult-qr-popover img {
  display: block;
  width: 140px;
  height: 140px;
  max-width: none;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
}

.float-consult-mobile-btn {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: var(--fc-primary);
  color: #fff;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(30, 136, 229, 0.4);
  cursor: pointer;
  transition: transform 0.28s ease, box-shadow 0.28s ease, opacity 0.28s ease;
}

.float-consult-mobile-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}

.float-consult-mobile-btn-icon svg {
  width: 20px;
  height: 20px;
}

.float-consult-mobile-btn-text {
  line-height: 1;
}

.float-consult.is-drawer-open .float-consult-mobile-btn {
  opacity: 0;
  transform: scale(0.85);
  pointer-events: none;
}

.float-consult-mobile-btn:active {
  transform: scale(0.94);
}

.float-consult-drawer {
  position: fixed;
  inset: 0;
  z-index: 100002;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.float-consult-drawer.is-open {
  display: flex;
}

.float-consult-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 40, 0.5);
  opacity: 0;
  transition: opacity 0.32s ease;
}

.float-consult-drawer.is-open .float-consult-drawer-backdrop {
  opacity: 1;
}

.float-consult-drawer-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  background: #F5F7FA;
  border-radius: 20px 20px 0 0;
  padding: 8px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.15);
  transform: translateY(100%);
  transition: transform 0.36s cubic-bezier(0.32, 0.72, 0, 1);
}

.float-consult-drawer.is-open .float-consult-drawer-panel {
  transform: translateY(0);
}

.float-consult-drawer-handle {
  width: 36px;
  height: 4px;
  margin: 8px auto 12px;
  background: #D9D9D9;
  border-radius: 999px;
}

.float-consult-drawer-title {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  color: #333333;
  text-align: center;
  margin-bottom: 16px;
}

.float-consult-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.float-consult-drawer-action {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px;
  margin: 0;
  border: none;
  background: #fff;
  border-radius: 12px;
  font-family: var(--font);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.float-consult-drawer-action:active {
  transform: scale(0.98);
  background: #FAFBFC;
}

.float-consult-drawer-action-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(30, 136, 229, 0.1);
  color: var(--fc-primary);
}

.float-consult-drawer-action-icon svg {
  width: 28px;
  height: 28px;
}

.float-consult-drawer-action-icon--wechat {
  background: rgba(102, 102, 102, 0.1);
  color: #666666;
}

.float-consult-drawer-action-icon--wechat svg {
  width: 30px;
  height: 30px;
}

.float-consult-drawer-action-text {
  flex: 1;
  min-width: 0;
}

.float-consult-drawer-action-text strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #333333;
  margin-bottom: 2px;
}

.float-consult-drawer-action-text small {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: #999999;
}

.float-consult-drawer-action-arrow {
  flex-shrink: 0;
  font-size: 22px;
  color: #CCCCCC;
  line-height: 1;
}

.float-consult-drawer-action-primary .float-consult-drawer-action-icon {
  background: rgba(30, 136, 229, 0.12);
  color: var(--fc-primary);
}

.float-consult-drawer-cancel {
  display: block;
  width: 100%;
  padding: 14px;
  margin: 0;
  border: none;
  background: #fff;
  border-radius: 12px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  color: #666666;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.float-consult-drawer-cancel:active {
  transform: scale(0.98);
  background: #F5F7FA;
}

.float-consult-qr-modal {
  position: fixed;
  inset: 0;
  z-index: 100003;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.float-consult-qr-modal.is-open {
  display: flex;
}

.float-consult-qr-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 40, 0.6);
  opacity: 0;
  transition: opacity 0.32s ease;
}

.float-consult-qr-modal.is-open .float-consult-qr-modal-backdrop {
  opacity: 1;
}

.float-consult-qr-modal-card {
  position: relative;
  z-index: 1;
  width: 80%;
  max-width: 320px;
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  text-align: center;
  opacity: 0;
  transform: translateY(24px) scale(0.96);
  transition: opacity 0.32s ease, transform 0.32s ease;
}

.float-consult-qr-modal.is-open .float-consult-qr-modal-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.float-consult-qr-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: #F5F7FA;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  color: #666666;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.float-consult-qr-modal-close:active {
  background: #EEEEEE;
}

.float-consult-qr-modal-title {
  font-family: var(--font);
  font-size: 18px;
  font-weight: 700;
  color: #333333;
  margin-bottom: 6px;
}

.float-consult-qr-modal-desc {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 400;
  color: #999999;
  margin-bottom: 20px;
}

.float-consult-qr-modal-card img {
  display: block;
  width: 240px;
  height: 240px;
  max-width: none;
  object-fit: contain;
  margin: 0 auto;
  background: #fff;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .float-consult {
    right: 16px;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    z-index: 99999;
  }

  body.mobile-nav-open .float-consult {
    bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  }

  .float-consult-pc {
    display: none;
  }

  .float-consult-mobile-btn {
    display: flex;
  }

  .float-consult-qr-modal-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }
}
