/* ============================================
   Go Top 回頂按鈕（共用元件）
   ============================================
   HTML（放在 <body> 開頭附近即可）：
     <button class="go-top" type="button" aria-label="回到頁首">↑</button>

   JS（原生寫法，不依賴 jQuery）：
     (function () {
         var goTop = document.querySelector('.go-top');
         if (!goTop) return;
         window.addEventListener('scroll', function () {
             goTop.classList.toggle('is-visible', window.scrollY > 500);
         });
         goTop.addEventListener('click', function (e) {
             e.preventDefault();
             window.scrollTo({ top: 0, behavior: 'smooth' });
         });
     }());

   顏色固定為 #006eb8，箭頭使用 SVG 圖示（不依賴頁面字型），
   讓所有頁面的圓鈕顏色、箭頭大小與粗細一致。
   ============================================ */

.go-top {
    display: none;
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 999;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #006eb8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M5 12l7-7 7 7'/%3E%3C/svg%3E") center / 22px no-repeat;
    font-size: 0;      /* 隱藏按鈕內的 ↑ 文字，改用上面的 SVG 箭頭 */
    cursor: pointer;
}

.go-top.is-visible {
    display: block;
}
