.tech-contact {
  --contact-ink: #082e2c;
  --contact-deep: #0a3633;
  --contact-teal: #17726d;
  --contact-glow: #69fffa;
  --contact-cyan: #8ed4dd;
  position: fixed;
  right: max(28px, env(safe-area-inset-right));
  bottom: max(28px, env(safe-area-inset-bottom));
  z-index: 2147483000;
  width: 72px;
  height: 72px;
  font-family: Inter, "Microsoft YaHei", Arial, sans-serif;
  isolation: isolate;
}

.tech-contact,
.tech-contact * {
  box-sizing: border-box;
}

.tech-contact__orbit,
.tech-contact__ripple {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
}

.tech-contact__orbit {
  inset: -8px;
  border: 1px dashed rgba(105, 255, 250, 0.55);
  animation: tech-contact-orbit 9s linear infinite;
}

.tech-contact__orbit::before,
.tech-contact__orbit::after {
  position: absolute;
  width: 7px;
  height: 7px;
  content: "";
  border-radius: 50%;
  background: var(--contact-glow);
  box-shadow: 0 0 14px 4px rgba(105, 255, 250, 0.65);
}

.tech-contact__orbit::before {
  top: 7px;
  left: 8px;
}

.tech-contact__orbit::after {
  right: 5px;
  bottom: 10px;
  width: 4px;
  height: 4px;
}

.tech-contact__ripple {
  border: 1px solid rgba(105, 255, 250, 0.68);
  animation: tech-contact-ripple 3s cubic-bezier(0.18, 0.7, 0.32, 1) infinite;
}

.tech-contact__ripple--delay {
  animation-delay: 1.5s;
}

.tech-contact__trigger {
  position: relative;
  display: grid;
  width: 72px;
  height: 72px;
  padding: 0;
  color: #eaffff;
  text-decoration: none;
  background:
    linear-gradient(145deg, rgba(105, 255, 250, 0.22), transparent 42%),
    radial-gradient(circle at 50% 32%, #238d86 0%, var(--contact-deep) 68%);
  border: 1px solid rgba(142, 212, 221, 0.7);
  border-radius: 50%;
  outline: none;
  place-items: center;
  box-shadow:
    0 14px 34px rgba(8, 46, 44, 0.36),
    inset 0 0 0 5px rgba(105, 255, 250, 0.055),
    inset 0 0 22px rgba(105, 255, 250, 0.15),
    0 0 22px rgba(105, 255, 250, 0.24);
  animation: tech-contact-float 4.2s ease-in-out infinite;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
  -webkit-tap-highlight-color: transparent;
}

.tech-contact__trigger::before {
  position: absolute;
  inset: 7px;
  content: "";
  border: 1px solid rgba(105, 255, 250, 0.2);
  border-radius: 50%;
}

.tech-contact__trigger:hover,
.tech-contact__trigger:focus-visible {
  color: #ffffff;
  border-color: var(--contact-glow);
  transform: translateY(-5px) scale(1.06);
  box-shadow:
    0 18px 40px rgba(8, 46, 44, 0.42),
    inset 0 0 26px rgba(105, 255, 250, 0.24),
    0 0 32px rgba(105, 255, 250, 0.48);
}

.tech-contact__trigger:focus-visible {
  outline: 3px solid rgba(105, 255, 250, 0.45);
  outline-offset: 6px;
}

.tech-contact__icon {
  position: relative;
  z-index: 1;
  width: 31px;
  height: 31px;
  overflow: visible;
  filter: drop-shadow(0 0 7px rgba(105, 255, 250, 0.75));
}

.tech-contact__signal {
  position: absolute;
  top: 7px;
  right: 8px;
  z-index: 2;
  width: 9px;
  height: 9px;
  border: 2px solid var(--contact-deep);
  border-radius: 50%;
  background: var(--contact-glow);
  box-shadow: 0 0 10px 2px rgba(105, 255, 250, 0.75);
}

.tech-contact__prompt {
  position: absolute;
  right: 86px;
  bottom: 13px;
  display: flex;
  align-items: center;
  width: max-content;
  min-height: 47px;
  padding: 0 17px 0 18px;
  color: #eaffff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.06em;
  white-space: nowrap;
  text-decoration: none;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(105deg, rgba(105, 255, 250, 0.12), transparent 60%),
    rgba(8, 46, 44, 0.96);
  border: 1px solid rgba(105, 255, 250, 0.46);
  border-radius: 13px 13px 3px 13px;
  box-shadow:
    0 12px 30px rgba(8, 46, 44, 0.32),
    inset 0 0 20px rgba(105, 255, 250, 0.08),
    0 0 18px rgba(105, 255, 250, 0.16);
  transform: translateX(12px) scale(0.94);
  transform-origin: right bottom;
  transition:
    opacity 260ms ease,
    transform 320ms cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.tech-contact__prompt::before {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 3px;
  height: calc(100% - 16px);
  content: "";
  border-radius: 4px;
  background: var(--contact-glow);
  box-shadow: 0 0 8px rgba(105, 255, 250, 0.8);
}

.tech-contact__prompt::after {
  width: 7px;
  height: 7px;
  margin-left: 10px;
  content: "";
  border-top: 1px solid var(--contact-glow);
  border-right: 1px solid var(--contact-glow);
  transform: rotate(45deg);
}

.tech-contact.is-prompt-visible .tech-contact__prompt {
  pointer-events: auto;
  opacity: 1;
  transform: translateX(0) scale(1);
}

@keyframes tech-contact-orbit {
  to {
    transform: rotate(360deg);
  }
}

@keyframes tech-contact-ripple {
  0% {
    opacity: 0.72;
    transform: scale(0.88);
  }
  72%,
  100% {
    opacity: 0;
    transform: scale(1.72);
  }
}

@keyframes tech-contact-float {
  0%,
  44%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  56% {
    transform: translateY(0);
  }
  61% {
    transform: translateY(-4px);
  }
  66% {
    transform: translateY(0);
  }
}

@media (max-width: 767px) {
  .tech-contact {
    right: max(18px, env(safe-area-inset-right));
    bottom: max(20px, env(safe-area-inset-bottom));
    width: 62px;
    height: 62px;
  }

  .tech-contact__trigger {
    width: 62px;
    height: 62px;
  }

  .tech-contact__orbit {
    inset: -7px;
  }

  .tech-contact__icon {
    width: 27px;
    height: 27px;
  }

  .tech-contact__prompt {
    right: 73px;
    bottom: 8px;
    min-height: 44px;
    padding-right: 14px;
    padding-left: 16px;
    font-size: 14px;
  }
}

@media (max-width: 390px) {
  .tech-contact__prompt {
    right: 0;
    bottom: 78px;
    border-radius: 13px 13px 3px;
    transform-origin: right bottom;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tech-contact__orbit,
  .tech-contact__ripple,
  .tech-contact__trigger {
    animation: none;
  }

  .tech-contact__prompt,
  .tech-contact__trigger {
    transition-duration: 0.01ms;
  }
}
