/* 網頁回頂部 */
.back-to-top {
  /* 關鍵：固定定位 */
  position: fixed;
  bottom: 30px;    /* 距離底部 30 像素 */
  right: 30px;     /* 距離右側 30 像素 */
  z-index: 999;    /* 確保按鈕永遠顯示在最上層 */

  /* 按鈕外觀設計（可依圖片風格自行調整） */
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.5); /* 半透明白色背景 */
  color: #285f79;                             /* 箭頭顏色 */
  border: none;
  border-radius: 8px;                         /* 微圓角 */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);  /* 淡淡的陰影 */
  
  /* 置中箭頭 */
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  cursor: pointer;
  
  /* 滑鼠懸停時的漸變效果 */
  transition: all 0.3s ease;

  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

/* 滑鼠懸停（Hover）效果 */
.back-to-top:hover {
  background-color: rgba(40, 95, 121, 0.5);
  color: #ffffff;                     /* 箭頭變白 */
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
}