/* Universal page utility: fixed return-to-top control.
   This selector intentionally does not reuse the legacy .theme-scroll-top class,
   preventing page-level theme rules from shrinking the text button into a circle. */
button.theme-scroll-top-global {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 2147483000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  width: auto;
  height: 42px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, .80);
  border-radius: 999px;
  background: linear-gradient(135deg, #1769b7, #0a5fae);
  color: #fff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  box-shadow: 0 10px 21px rgba(12, 78, 143, .26);
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
button.theme-scroll-top-global.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
button.theme-scroll-top-global:hover {
  filter: brightness(1.08);
  box-shadow: 0 14px 27px rgba(12, 78, 143, .31);
}
button.theme-scroll-top-global:focus-visible {
  outline: 3px solid rgba(45, 151, 221, .42);
  outline-offset: 3px;
}
button.theme-scroll-top-global .theme-scroll-top-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
}
button.theme-scroll-top-global .theme-scroll-top-label {
  display: inline-block;
  white-space: nowrap;
}
@media (max-width: 640px) {
  button.theme-scroll-top-global {
    right: 14px;
    bottom: 15px;
    width: 42px;
    min-width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 50%;
  }
  button.theme-scroll-top-global .theme-scroll-top-label {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  button.theme-scroll-top-global {
    transition: none;
  }
}
