/* noto-sans-tc-regular - chinese-traditional */
@font-face {
  font-family: 'Noto Sans TC';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/noto-sans-tc/noto-sans-tc-v36-chinese-traditional-regular.woff2') format('woff2');
}

/* noto-sans-tc-700 - chinese-traditional */
@font-face {
  font-family: 'Noto Sans TC';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/noto-sans-tc/noto-sans-tc-v36-chinese-traditional-700.woff2') format('woff2');
}

body {
  font-family: 'Noto Sans TC', sans-serif;
}

    /* ✅ Header */
  body {
    margin: 0;
    padding-top: 80px;
    }
    /* ⚙️ 全域樣式 */
    .tu-header {
      width: 100%;
      position: fixed;
      top: 0;
      background: #fff;
      z-index: 9999;
      box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
    }
    .tu-header-container {
      max-width: 1000px;
      margin: auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 12px 16px;
    }
    
    /* ✅ 電腦版比例 */
    .tu-header-logo {
      flex: 0 0 20%;
    }
    .tu-header-logo img {
      max-width: 100%;
      height: auto;
    }
    .tu-header-nav {
      flex: 0 0 60%;
    }
    .tu-header-nav ul {
      display: flex;
      gap: 16px;
      padding: 0;
      margin: 0;
      list-style: none;
      justify-content: center;
    }
    .tu-header-nav ul li a {
      text-decoration: none;
      font-size: 15px;
      color: #333;
    }
    .tu-header-btns {
      flex: 0 0 20%;
      display: flex;
      justify-content: flex-end;
      gap: 8px;
    }
    .btn-login,
    .btn-register {
      padding: 6px 10px;
      font-size: 14px;
      border-radius: 6px;
      text-decoration: none;
      color: #fff;
      background-color: #7a5c16;
      white-space: nowrap;
    }
    
    
    
    /* 📱 手機版優化 */
    @media (max-width: 768px) {
      .tu-header-container {
        padding: 5px 12px;

      }
      
      .tu-header-container::before,
      .tu-header-container::after {
      content: '';
      display: block;
      height: 2px;
      width: 100%;
      position: absolute;
      left: 0;
      z-index: -1;
      }

      .tu-header-container::before {
      top: 0;
      background: linear-gradient(to bottom, #e9dfce, #b58400, #c6a55e);
      }

      .tu-header-container::after {
      bottom: 0;
      background: linear-gradient(to top, #e9dfce, #b58400, #c6a55e);
      }
      
      .tu-header-logo {
        flex: 0 0 40%;
      }
      .tu-header-nav {
        display: none;
      }
      .tu-header-btns {
        flex: 0 0 60%;
        justify-content: flex-end;
      }
      .btn-login,
      .btn-register {
        padding: 4px 8px;
        font-size: 13px;
      }
    }
    
    
    /* === 共用樣式 === */
.home-banner {
  position: relative;
  width: 100%;
}

.home-banner__img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}
.swiper-slide {
  position: relative;
}
.swiper-button-prev,
.swiper-button-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  border-radius: 50%;
}
.swiper-button-prev { left: 10px; }
.swiper-button-next { right: 10px; }
.swiper-button-prev::after,
.swiper-button-next::after {
  display: none;
}
.swiper-pagination {
  position: absolute;
  left: 0;
  width: 100%;
  text-align: center;
  transform: translateY(-50%);
}
.swiper-pagination-bullet {
  width: 20px;
  height: 20px;
  margin: 4px;
}
/* ✅ Active 點點變成主色 */
.swiper-pagination-bullet-active {
  background-color: #7a5c16;
}

/* ✅ RWD：手機版可稍微放大一點 */
@media (max-width: 768px) {
  .swiper-pagination-bullet {
    width: 16px;
    height: 16px;
  }
}

/* === Swiper 外框限制高度 === */
.swiper-wrapper {
  height: auto !important;
}


.home-banner-swiper {
  position: relative;
  height: auto !important;
  max-height: 100%;
  padding-bottom: 30px;
}

/* === 手機樣式 === */
@media (max-width: 768px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: block; }
  .swiper-button-prev,
  .swiper-button-next {
    top: 50%; /* 垂直置中圖高度 */
  }

.home-banner-swiper {
   margin: -20px 0 !important;
}
  
  
.swiper-button-prev,
.swiper-button-next {
  position: absolute;
  width: 25px;
  height: 25px;
  }

.swiper-pagination {
  bottom: 10px !important;
  transform: translateY(-50%);
  }
}

/* === 電腦樣式 === */
@media (min-width: 769px) {
  .desktop-only { display: block; }
  .mobile-only { display: none !important; }
}
    
        /* 🟡 TU 跑馬燈公告區 */
    .tu-marquee-wrap {
      background-color: #e0e0de;
      padding: 5px 5px;
      border-top: 1px solid #b58400;
      border-bottom: 1px solid #b58400;
      box-shadow:
        0 -2px 0 0 #e9dfce,
        0 -4px 0 0 #c6a55e,
        0 2px 0 0 #e9dfce,
        0 4px 0 0 #c6a55e;
      margin-top: -15px;
    }
    
    .tu-marquee {
      display: flex;
      align-items: center;
      overflow: hidden;
    }
    
    .tu-marquee-icon {
      flex-shrink: 0;
      width: 18px;
      height: 18px;
      background: url('https://www.ts8.org/img/icon/marquee.svg') no-repeat center;
      background-size: contain;
      margin-right: 10px;
    }
    
    .tu-marquee-track {
      flex-grow: 1;
      overflow: hidden;
      position: relative;
    }
    
    .tu-marquee-list {
      display: flex;
      animation: marquee 25s linear infinite;
      width: max-content;
      white-space: nowrap;
      gap: 48px;
    }
    
    .tu-marquee-list li {
      list-style: none;
      color: #333;
      font-size: 14px;
      white-space: nowrap;
    }
    
    @keyframes marquee {
      0% { transform: translateX(0); }
      100% { transform: translateX(-50%); }
    }
    
    
    
     .txn-divider {
    width: 1px;
    height: 30px;
    background: linear-gradient(
      180deg,
      rgba(90, 89, 84, 0),
      rgba(214, 191, 134, 0.7) 49%,
      rgba(70, 69, 64, 0.11) 95%
    );
  }
  /* ✅ 僅手機顯示 */
@media (max-width: 768px) {
  .txn-bar-m {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border-radius: 7px;
    margin: 10px 5px;
    padding: 10px 0px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
    overflow: hidden;
  }

  .txn-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 14px;
    color: #826e3f;
    font-weight: 500;
    white-space: nowrap;
    gap: 5px;
  }

  .txn-btn img {
    width: 35px;
    height: 35px;
  }
  
}
@media (min-width: 769px) {
  .txn-bar-m {
    display:none;
  }   
}




    /* ✅ 手機卡片區塊，一排兩張 */
    .game-grid-wrap {
      padding: 12px;
    }
    
    
    .game-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
    }
    
    .game-item {  
      width: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      background: #fff;
      border-radius: 10px;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);  
      overflow: hidden;
    }
    
    .game-item img {
      width: 100%;
      max-height:150px;
      border-radius: 8px;
      padding: 5px 5px;
    }
    
    .game-item span {
      margin-top: 6px;
      font-size: 14px;
      color: #333;
      font-weight: 500;
      text-align: center;
      display: flex;
      justify-content: center;

    }
    
    @media (min-width: 580px) and (max-width: 1023px) {
      .game-grid {
        grid-template-columns: repeat(3, 1fr);
      }
    }
        
    /* ✅ Tab 外框區域 */
    .tab-game-layout {
      display: flex;
      flex-wrap: nowrap;
      align-items: flex-start;
      gap: 12px;
      padding:0px 5px;
    }
    
    /* ✅ 左側選單欄位 */
    .tab-m-wrap {
      width: 28%; 
      max-width: 100px; 
      min-width: 85px;
      flex: 0 0 auto;
      flex-shrink: 0;
      background: #fafaf9;
      border-radius: 12px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* 陰影更明顯 */
      display: flex;
      flex-direction: column;
      justify-content: space-evenly;
      gap: 5px;
      padding: 8px;
      
    }
    
    /* ✅ Tab 按鈕樣式 */
    .tab-m {  
      display: flex;
      align-items: center;
      justify-content: flex-start;
      width: 100%; /* 寬度為父容器100%，才會跟著 tab-m-wrap 對齊 */
      padding: 7px 3px;
      border: none;
      border-radius: 8px;
      background-image: linear-gradient(180deg, #ffffff, #f9f9f9 51%, #f1f1f1 59%, #ededed);
      font-size: 14px;
      color: #444;
      cursor: pointer;
      transition: all 0.2s ease-in-out;
      box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
      flex-shrink: 0;
    }
    
    /* ✅ Tab 按下後 */
    .tab-m.on {
      background-image: linear-gradient(180deg, #d8bc7d, #f8e5bb 51%, #cca04f 59%, #b28c38);
      color: #fff;
      font-weight: bold;
      box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    /* ✅ 圖示 */
    .tab-icon-m {
      width: 24px;
      height: 24px;
      flex-shrink: 0;
      margin-right: 8px; /* 微調圖示與文字距離 */
    }
    
    /* ✅ 文字 */
    .tab-label-m {
      flex: 1;
      text-align: left;
      letter-spacing: -0.25px; /* 微調文字寬鬆感 */
    }

/* 📱 手機：隱藏 PC */
@media (max-width: 768px) {
  .tab-pc-wrap,
  .tab-game-pclayout {
    display: none !important;
  }
}

/* 💻 電腦：隱藏手機 */
@media (min-width: 0px) and (min-width: 769px) {
  .tab-m-wrap,
  .tab-game-layout {
    display: none !important;
  }
}




        /* ✅ 電腦版 TAB 外框區域 */
        .tab-game-pclayout {
          max-width: 1200px;
          margin: 30px auto;
          padding: 20px 16px;
          background: #f9f9f9;
          border-radius: 12px;
        }
        
        /* ✅ 電腦版 Tab 區塊 */
        .tab-pc-wrap {
          display: flex;
          justify-content: center;
          flex-wrap: wrap;
          gap: 16px;
          margin-bottom: 24px;
          background: #fafaf9;
          border-radius: 12px;
          box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);    
        }
        
        .tab-pc {
        width: 90px;
        height: 90px;
        border-radius: 12px;
        border: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s ease-in-out;
        background: transparent;
        box-shadow: none;        
}
        
.tab-pc.on {
  background: linear-gradient(180deg, #d8bc7d, #f8e5bb 51%, #cca04f 59%, #b28c38);
  box-shadow: 0 0 8px rgba(204, 160, 79, 0.5);
}
        
        .tab-pc .tab-icon-pc {
          width: 32px;
          height: 32px;
          margin: 15px auto;
        }
        
        .tab-pc .tab-label-m {
          font-size: 14px;
          font-weight: 500;
          color: #444;
        }
        
        .tab-pc.on .tab-label-m {
          color: #fff;
          font-weight: bold;
        }
        
        .tab-pc.on .tab-icon-pc {
          filter: brightness(1.2);
        }
        
        /* ✅ 電腦版遊戲卡片列表 */
        .pcgame-grid-wrap {
          padding: 0 8px;
        }
        
        .pcgame-grid {
          display: grid;
          grid-template-columns: repeat(5, 1fr);
          gap: 16px;
        }
        
        .pcgame-item {
          background: #fff;
          border-radius: 12px;
          overflow: hidden;
          box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
          display: flex;
          flex-direction: column;
          align-items: center;
          text-align: center;
          padding-bottom: 8px;
          transition: transform 0.2s ease, box-shadow 0.2s ease;
        }



        /* ✅ Tab 按鈕 hover 效果（未點擊時） */
        .tab-pc:hover:not(.on) {
        background: #f0f0f0;
        box-shadow: 0 0 6px rgba(0, 0, 0, 0.08);
        }

        /* ✅ 遊戲卡片 hover 效果 */
        .pcgame-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        }
        
        .pcgame-item img {
          width: 100%;
          max-height: 180px;
          object-fit: contain;
          border-radius: 12px 12px 0 0;
        }
        
        .pcgame-item span {
          margin-top: 8px;
          font-size: 15px;
          font-weight: 500;
          color: #333;
        }
        
        
        
        
        
        
        
            /* ✅ 電腦 footer 總包裝 */
  .tu-footer-wrap {
    background: linear-gradient(to bottom, #d8bc7d, #cca04f 50%, #b28c38);
    color: white;
    padding: 40px 24px;
    font-family: 'Noto Sans TC', sans-serif;
    display: block;
  }
  
  @media (max-width: 768px) {
    .tu-footer-wrap {
      display: none;
    }
  }

  .tu-footer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;  /* 水平置中 */
  justify-content: center; /* 垂直置中（若有高度） */
  text-align: center;
  margin-bottom: 24px;
  }
  
  
  .tu-footer-logo img {
    width: 140px;
    opacity: 0.9;
    margin-bottom: 10px;
  }
  
  .tu-footer-title {
    font-size: 16px;
    font-weight: bold;
  }
  
  /* 外框：負責畫整條線條、填滿全寬 */
.tu-footer-bordered-wrap {
  border-top: 2px solid #eaeaea;
  border-bottom: 2px solid #eaeaea;
  margin-bottom: 20px;
}

/* 內層：負責置中與最大寬度限制 */
  .tu-footer-section-group {
    padding:10px 20px;    
    max-width: 1200px;
    margin: 0 auto;
    
  }
  
  .tu-footer-section {
    margin-bottom: 24px;
  }
  
  .tu-footer-subtitle {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 12px;
    color: #fff;
  }
  
  .tu-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 16px;
    justify-items: center;
    align-items: center;
  }
  
  .tu-footer-grid img {
    max-width: 80px;
    height: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease;
  }
  .tu-footer-grid img:hover {
    opacity: 1;
  }
  

  
  .footer-divider {
    height: 14px;
    align-self: center;
    background: #ffffff66; /* 半透明白線 */
  }
  
  .tu-footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 14px;
    margin-bottom: 16px;
  }
  
  .tu-footer-links a {
    color: #fff;
    text-decoration: none;
    white-space: nowrap;    
  }
  .tu-footer-links a:hover {
    text-decoration: underline;
  }
  
  .tu-footer-copy {
    text-align: center;
    font-size: 12px;
    opacity: 0.9;
  }
  
  
  
  @media (min-width: 1025px) {
    .tu-footer-nav {
        display: none !important;
    }
}

.tu-footer-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 85px;
    background: url('https://www.ts8.org/img/footer-icon/tu-footerbg.svg') no-repeat center bottom / cover;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    z-index: 999;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.tu-footer-link {
    flex: 1;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none !important;
}

.tu-footer-link img {
    width: 46px;
    height: auto;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.tu-footer-link:hover img {
    opacity: 1;
}

.tu-footer-home {
    position: absolute;
    bottom: 38px;
    left: 50%;
    transform: translateX(-50%);
    width: 75px;
    height: 75px;
    border-radius: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tu-footer-home-bg {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;    
    background: linear-gradient(155deg, #f5f5f4 10%, #e0e0de 93%);
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.06);
    z-index: 0;
}

.tu-footer-home-icon {
    width: 50px;
    z-index: 2;
}

.tu-footer-link:nth-child(2) {
    margin-right: 35px;
}
.tu-footer-link:nth-child(4) {
    margin-left:35px;
}

.tu-footer-text {
    font-size: 16px;
    color: white;
    font-weight: 600;
    margin-top: 2px;
    z-index: 9999;
}

.tu-footer-text-home {
    font-size: 16px;
    font-weight: bold;
}

@media (max-width: 768px) {
    .tu-footer-nav {
        height: 70px;
        padding: 5px 0;
    }
    .tu-footer-link img {
        width: 38px;
    }
    .tu-footer-home {
        width: 70px;
        height: 70px;
        bottom: 35px;
    }
    .tu-footer-home-bg {
        width: 72px;
        height: 72px;
    }
    .tu-footer-text {
        font-size: 14px;
    }
    .tu-footer-home-icon {
        width: 45px;
    }
}

@media (max-width: 480px) {
    .tu-footer-nav {
        height: 60px;
        padding: 3px 0;
    }
    .tu-footer-link img {
        width: 30px;
    }

    .tu-footer-home {
        width: 65px;
        height: 65px;
        bottom: 20px;
    }
    .tu-footer-home-bg {
        width: 66px;
        height: 66px;
    }
    .tu-footer-text {
        font-size: 13px;
    }
    .tu-footer-home-icon {
        width: 40px;
    }
}




 .tuapp-feature {
  background: #fff;
  padding: 60px 20px;
}

.tuapp-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.tuapp-left {
  flex: 1 1 48%;
  position: relative;
  min-height: 400px;
}

.tuapp-left .bg1 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 0;
}

.tuapp-left .phones {
  position: relative;
  width: 90%;
  max-width: 420px;
  z-index: 1;
  margin: 0 auto;
  display: block;
}

.tuapp-right {
  flex: 1 1 48%;
  padding: 20px;
  text-align: left;
}

.tuapp-title {
  font-size: 32px;
  font-weight: 700;
  background: linear-gradient(180deg, #4d96d2, #0a3b63);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.tuapp-subtitle {
  font-size: 18px;
  margin: 10px 0 20px;
  color: #444;
}

.tuapp-desc {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 30px;
  max-width: 520px;
}

.tuapp-h5logo {
  width: 90px;
  display: block;
  margin-bottom: 10px;
}

.tuapp-h5text {
  color: #555;
}

/* 📱 手機預設隱藏 TU APP 區塊 */
@media (max-width: 768px) {
  .tuapp-container {
    display: none;
  }
}
/* 📱 手機樣式 皮膚先預設不顯示
@media (max-width: 768px) {
  .tuapp-container {
    flex-direction: column;
    text-align: center;
  }

  .tuapp-left {
    order: 2;
    width: 100%;
    height: auto;
    margin-top: 20px;
  }

  .tuapp-right {
    order: 1;
    padding: 0;
  }

  .tuapp-left .bg1 {
    display: none;
  }

  .tuapp-left .phones {
    position: relative;
    width: 80%;
    margin: 0 auto;
  }
}
 */