/* GeoOps 官网右侧快捷联系栏（复用 www.eeebit.com site-float-bar） */
.site-float-bar {
  position: fixed;
  right: 0;
  top: 50%;
  z-index: 880;
  display: flex;
  flex-direction: column;
  width: 4.25rem;
  transform: translateY(-50%);
  border-radius: 12px 0 0 12px;
  background: #fff;
  box-shadow: -4px 0 24px rgba(15, 23, 42, 0.12);
  border: 1px solid #e2e8f0;
  border-right: none;
}
.site-float-item {
  position: relative;
  border-bottom: 1px solid #eef2f7;
}
.site-float-item:last-child {
  border-bottom: none;
}
.site-float-trigger {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  min-height: 4.6rem;
  padding: 0.65rem 0.35rem;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #64748b;
  transition: color 0.18s ease, background 0.18s ease;
}
.site-float-trigger:hover,
.site-float-item.is-open .site-float-trigger,
.site-float-item:focus-within .site-float-trigger {
  color: #dc2626;
  background: #fff5f5;
}
.site-float-trigger:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: -2px;
}
.site-float-icon {
  display: flex;
  width: 1.65rem;
  height: 1.65rem;
}
.site-float-icon svg {
  width: 100%;
  height: 100%;
}
.site-float-label {
  font-size: 0.68rem;
  line-height: 1.25;
  text-align: center;
  font-weight: 600;
}
.site-float-panel {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  z-index: 1;
  width: 11.5rem;
  padding: 0.85rem 0.85rem 0.75rem;
  transform: translateY(-50%);
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
  text-align: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
}
.site-float-panel img {
  display: block;
  width: 8.5rem;
  height: 8.5rem;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 8px;
}
.site-float-panel-title {
  margin: 0.55rem 0 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1e293b;
}
.site-float-panel-hint {
  margin: 0.25rem 0 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: #64748b;
}
.site-float-panel--phone {
  width: 10.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.site-float-phone {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #dc2626;
  text-decoration: none;
}
.site-float-phone:hover {
  text-decoration: underline;
}
.site-float-item.is-open .site-float-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@media (hover: hover) and (pointer: fine) {
  .site-float-item:hover .site-float-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(-50%) translateX(0);
  }
}

@media (max-width: 719px) {
  body {
    padding-bottom: 4.75rem;
  }

  .site-float-bar {
    top: auto;
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    transform: none;
    flex-direction: row;
    border-radius: 14px 14px 0 0;
    border: 1px solid #e2e8f0;
    border-bottom: none;
    box-shadow: 0 -8px 28px rgba(15, 23, 42, 0.12);
  }

  .site-float-item {
    flex: 1;
    border-bottom: none;
    border-right: 1px solid #eef2f7;
  }

  .site-float-item:last-child {
    border-right: none;
  }

  .site-float-trigger {
    min-height: 44px;
    height: 4.25rem;
    padding: 0.45rem 0.35rem;
    gap: 0.2rem;
  }

  .site-float-label {
    font-size: 0.68rem;
  }

  .site-float-panel {
    right: 50%;
    left: auto;
    top: auto;
    bottom: calc(100% + 8px);
    width: min(12rem, calc(100vw - 2rem));
    transform: translateX(50%);
  }

  .site-float-item.is-open .site-float-panel,
  .site-float-item:focus-within .site-float-panel {
    transform: translateX(50%);
  }

  .site-float-panel img {
    width: 7.5rem;
    height: 7.5rem;
  }
}
