@charset "UTF-8";
/*
 * 共用浮動按鈕（回頁面頂端 / 官方 LINE / LINE 速配）
 *
 * 規則由 css/index_v3.css（廠商設計稿）中 .floating-actions 與 .go-top 抽出，內容未修改，
 * 僅補上元件自身需要的 reset，使其可獨立用於未載入 index_v3_reset.css 的頁面。
 *
 * 搭配：lib/_FloatingActions.php（結構）、js/floating-actions.js（行為）
 */

/* 元件自身的 reset，以 :where() 歸零特異度，避免蓋掉設計稿的設定 */
:where(.floating-actions) *,
:where(.floating-actions) *::before,
:where(.floating-actions) *::after {
  box-sizing: border-box;
}

:where(.floating-actions) a {
  color: inherit;
  text-decoration: none;
}

:where(.floating-actions) img {
  display: block;
  max-width: 100%;
  max-height: none;
}

:where(.floating-actions) button {
  font: inherit;
  color: inherit;
}

/* ── 以下為設計稿原樣抽出 ────────────────────────────────── */

.floating-actions {
  position: fixed;
  z-index: 20;
  right: 30px;
  bottom: 30px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  opacity: 1;
  pointer-events: auto;
}

.go-top,
.floating-actions__link {
  position: relative;
  display: block;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.go-top img,
.floating-actions__link img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.2s ease;
}

.go-top__hover,
.go-top:hover .go-top__default {
  opacity: 0;
}

.go-top:hover .go-top__hover {
  opacity: 1;
}

.floating-actions__link img {
  object-fit: contain;
}

@media (max-width: 768px) {
  .floating-actions {
  right: 12px;
      bottom: 10px;
      gap: 10px;
  }

  .go-top,
  .floating-actions__link {
  width: 48px;
      height: 48px;
  }

}
