@charset "UTF-8";
/* ============================================================
   回到頂端按鈕（.ntop）
   - 結構／行為對齊 go100：id=ntop、is-show 切換、固定門檻、RWD 斷點、
     position/size 皆沿用 go100（見 js/nbacktotop.js）
   - 外觀維持 keys100 品牌樣式：白底半透明圓 + 橘色箭頭（::before 邊框拼出）
     + 橘色陰影
   - 對應結構：block/footer.html 內的 <a class="ntop" id="ntop">
   ============================================================ */
.ntop {
  position: fixed;
  right: 35px;
  bottom: 130px;
  width: 3rem;
  height: 3rem;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8); /* 外觀：keys100 白底半透明 */
  box-shadow: 0 4px 12px rgba(246, 126, 17, 0.32); /* 外觀：keys100 橘色陰影 */
  z-index: 1000;
  transition: opacity 0.3s ease, visibility 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  /* 預設隱藏，捲動後由 JS 加上 is-show 才顯示 */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
/* 外觀：keys100 橘色箭頭（以 ::before 邊框拼出，不依賴圖示字型） */
.ntop::before {
  content: "";
  width: 14px;
  height: 14px;
  margin-top: 5px;
  border-top: 3px solid #f67e11;
  border-left: 3px solid #f67e11;
  border-radius: 2px;
  transform: rotate(45deg);
}
.ntop.is-show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.ntop:hover,
.ntop:focus {
  background: rgba(255, 255, 255, 0.95); /* 外觀：keys100 hover */
  box-shadow: 0 8px 20px rgba(246, 126, 17, 0.42);
}

@media (max-width: 768px) {
  .ntop {
    right: 30px;
    bottom: 120px;
  }
}
@media (max-width: 767.98px) {
  .ntop {
    right: 12px;
    /* 抬到首頁右下「索取」浮動鈕（.nstyle_float-course：手機 bottom:16px、
       高約 86px，頂邊離底約 102px）上方，留約 10px 間隙，避免互相重疊 */
    bottom: 116px;
    width: 2rem;
    height: 2rem;
    padding: 0.25rem;
  }
  .ntop::before {
    width: 10px;
    height: 10px;
    margin-top: 4px;
    border-top-width: 2px;
    border-left-width: 2px;
  }
}
