* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  font-family: "Roboto", "Noto Sans TC", sans-serif;
}
.bg {
  background-image: url(../images/main-background.jpg);
  background-repeat: no-repeat;
  background-position: center;
  height: 100vh;
  width: 100vw;
  position: fixed;
  z-index: -1;
}

@font-face {
  font-family: "Noto Sans TC";
  unicode-range: U+4E00-9FFF; /* 覆蓋常用的中文漢字範圍 */
}

/* 回到最上層按鈕 */
.arrow i:hover {
  background-color: rgb(0, 0, 0);
}
.arrow {
  position: fixed;
  right: 5%;
  bottom: 0%;
  z-index: 999;
  transition: transform 0.3s ease;
}
.arrow i {
  font-size: 2.3rem;
  color: #fff;
  background-color: rgba(193, 42, 33, 1);
  cursor: pointer;
  float: right;
  padding: 30%;
  border-radius: 5px;
}
@media screen and (max-width: 959px) {
  .arrow {
    right: 3%;
    bottom: 0%;
    max-width: 10%;
    padding: 2%;
  }
  .arrow i {
    font-size: 6vw;
    border-radius: 1vw;
  }
}


@media screen and (min-width: 960px) {
  /* 捲動條的寬度 (整個捲軸的空間) */
  ::-webkit-scrollbar {
    width: 15px;
  }

  /* 捲動條上捲動軌道的樣式 (底色) */
  ::-webkit-scrollbar-track {
    background-color: #fff; /* 捲動軌道的背景顏色 */
  }

  /* 捲動條上的捲動滑塊樣式 */
  ::-webkit-scrollbar-thumb {
    /* * 1. 使用 border-radius 讓滑塊有圓角
     * 2. 使用 border 設定透明邊框。這個邊框的寬度就是你想要的「內縮」空間。
     * 例如：border: 3px solid transparent; 內縮 3px。
     * 3. 關鍵：使用 background-clip: padding-box; 
     * 這會將背景色裁切到 padding box 區域，避免背景色覆蓋到邊框區域。
     */
    background-color: #C12a21; /* 捲動滑塊的背景顏色 */
    border-radius: 10em; /* 捲動滑塊的圓角 */
    
    /* === 🌟 模擬內縮的關鍵 CSS 🌟 === */
    border: 3px solid transparent; /* 設置透明邊框，例如內縮 3px */
    background-clip: padding-box; /* 讓背景只在 padding 範圍內顯示 (不包含 border) */
    /* ============================== */
  }
}