/**
 * Floating back-to-top (PC + mobile). Scoped class prefix: aoxiang-btt-
 * z-index below typical Bootstrap modals (1050+).
 */
.aoxiang-btt {
  position: fixed;
  /* Above sticky header / footer widgets; below Bootstrap modal (1050+) */
  z-index: 10050;
  right: max(18px, env(safe-area-inset-right, 0px));
  bottom: max(22px, env(safe-area-inset-bottom, 0px));
  width: 48px;
  height: 48px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 50%;
  background: #fb5b21;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease,
    background 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.aoxiang-btt.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto !important;
  transform: translateY(0);
}

.aoxiang-btt:hover,
.aoxiang-btt:focus {
  background: #e04e1a;
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  outline: none;
}

.aoxiang-btt:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.aoxiang-btt__icon {
  display: block;
  width: 22px;
  height: 22px;
}

@media (prefers-reduced-motion: reduce) {
  .aoxiang-btt {
    transition: none;
  }
}

@media print {
  .aoxiang-btt {
    display: none !important;
  }
}
