/**
 * Fixed Icon Button - 固定按鈕樣式
 * 使用 GIF 動畫版本 - 移除 CSS 縮放動畫
 */

/* 固定按鈕基礎樣式 */
.fixed-icon-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  width: 120px;
  height: 120px;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  text-decoration: none;
  display: block;
  
  /* iOS 兼容的基礎設定 */
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  
  /* 簡化的 transition - 只處理顯示/隱藏 */
  -webkit-transition: opacity 0.3s ease, visibility 0.3s ease;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* 顯示狀態 */
.fixed-icon-button.show {
  opacity: 1;
  visibility: visible;
}

.fixed-icon-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 50%;
}

/* 觸摸和懸停效果 - 簡化版本 */
.fixed-icon-button:hover,
.fixed-icon-button:active,
.fixed-icon-button:focus {
  /* 移除縮放效果，因為 GIF 已經有動畫 */
  outline: none;
}

/* 響應式設計 */
@media (min-width: 1201px) {
  .fixed-icon-button {
    width: 130px;
    height: 130px;
    bottom: 80px;
    right: 40px;
  }
}

@media (min-width: 768px) and (max-width: 1200px) {
  .fixed-icon-button {
    width: 100px;
    height: 100px;
    bottom: 80px;
    right: 20px;
  }
}

@media (max-width: 768px) {
  .fixed-icon-button {
    width: 100px;
    height: 100px;
    bottom: 80px;
    right: 20px;
  }
}

@media (max-width: 480px) {
  .fixed-icon-button {
    width: 80px;
    height: 80px;
    bottom: 80px;
    right: 15px;
  }
}

/* 無障礙設計 */
@media (prefers-reduced-motion: reduce) {
  .fixed-icon-button {
    /* GIF 動畫無法被 prefers-reduced-motion 控制，但可以考慮使用靜態圖片 */
  }
}

/* 焦點樣式 */
.fixed-icon-button:focus {
  outline: 2px solid #006FBB;
  outline-offset: 4px;
}