.news {
  background-color: transparent;
  display: flex;
  flex-direction: row;
  justify-content: center;
  min-height: 100vh;
}

.news .div {
  width: 1440px;
  height: auto; 
  position: relative;
}

@media (min-width: 768px) and (max-width: 1399px) {
.news {
    display: flex;
    justify-content: center;
    height: auto; 
}

.news .scale-wrapper {
    transform-origin: top center;
    zoom: 0.9; /* 🔥 補強 Safari / Edge 相容性 */
    display: inline-block;
    position: relative;
  }
}

@media (max-width: 768px) {
.news .div {
    width: 100% !important;
    max-width: 100% !important; /* 防止超過螢幕 */
    position: relative !important;
  }

html {
    overflow-x: hidden; /* ✅ 只針對 html，保持固定元素獨立 */
  }

body {
    min-height: 100vh;
    overflow-x: visible; /* ✅ 保留 fixed 元素的繪製範圍 */
  }
}

.news .overlap {
  position: relative;
  width: 100%;
  height: auto;
  background-color: #ffffff;
  overflow: hidden;  /* 裁切超出部分 */
  top: 80px;         /* 如果需要保留 fixed title 高度 */
}

.news .image-2 {
  display: block;
  width: 100%;    /* 佔滿父容器寬度 */
  height: auto;   /* 等比例縮放 */
}

@media (max-width: 768px) {
.news .image-2 {
    width: 200%;             /* 放大圖片，方便只顯示左半邊 */
    height: auto;            /* 等比縮放 */
    transform-origin: left;  /* 從左邊開始顯示 */
}
}

.news .element {
  width: 1440px;
  background-color: #ffffff;
  position: relative;
  /* ❌ 不要固定 min-height，讓內容自動撐開 */
}

@media (max-width: 768px) {
.new .element {
    width: 100%;       /* 讓容器變成滿版 */
    max-width: 100%;   /* 避免還維持桌機版寬度 */
    height: auto !important;      /* 高度自動撐開 */
    min-height: auto !important;  /* 避免桌機版殘留 */
    overflow: visible !important; /* 避免內容被裁切 */
  }
  }

.news .text-wrapper-0 {
  position: absolute;
  margin: 40px 0 50px 350px;
  font-family: "DFPHeiBold-B5-Regular", Helvetica;
  font-weight: 400;
  color: #000000;
  font-size: 40px;
  letter-spacing: 0;
  line-height: normal;
  white-space: normal;
}

.news-text-container {
  display: flex;                  /* 使用 Flexbox 排版，方便控制子元素的排列 */
  flex-direction: column;         /* 垂直排列子元素（每個段落一行一行往下排） */
  gap: 8px;                       /* 每個子元素（段落）之間的間距，控制段落間距 */
  max-width: 1200px;              /* 設定容器最大寬度，超過會自動換行，不讓文字過寬影響可讀性 */
  margin: 100px auto 50px;           /* 容器與上方的間距 100px，左右自動置中（auto） */
  padding: 200px 20px 50px;       /* 上 右 下 左（沒有寫左就跟右一樣） */
  color: #8a8a8a;               
  font-family: "DFPHeiBold-B5-Regular", Helvetica, sans-serif;
  font-size: 22px;                
  letter-spacing: 0.4px;          /* 字距設定，每個字之間的間距 */
  line-height: 1.6;               /* 行高設定，數值越大行距越寬，方便閱讀 */
}

.news-text-container p {
  margin: 0;/* 移除段落預設的上下外邊距，讓 gap 控制間距 */
}


.news .text-wrapper-2-1 {
  position: absolute;
  top: 0px;
  left: 120px;
  font-family: "DFPHeiBold-B5-Regular", Helvetica;
  font-weight: 400;
  color: #0167b5;
  font-size: 100px;
  letter-spacing: 10.00px;
  line-height: normal;
  white-space: nowrap;
}

.news .element-1 {
  position: absolute;
  height: 60px;
  top: 40px;
  left: 250px;
  font-family: "DFPHeiMedium-B5-Regular", Helvetica;
  font-weight: 400;
  color: #0167b5;
  font-size: 20px;
  letter-spacing: 4.00px;
  line-height: 30px;
}

.news .line-0 {
  position: absolute;
  width: 1200px;
  height: 2px;
  top: 150px;
  left: 120px;
  background-color: #0167b5;  /* 線顏色 */
}

@media (max-width: 768px) {
  /* 日期數字 + 月份：放在一排 */
  .news .element {
    width: 100%;
    max-width: 100%;
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
    padding: 20px;
  }

  /* 日期容器 */
  .news .date-container {
    display: flex;
    justify-content: center; /* 置中 */
    align-items: flex-end;   /* 對齊底部 */
    gap: 8px;
    margin-bottom: 20px;
  }

  .news .text-wrapper-2-1 {
    position: static;   /* 取消 absolute */
    font-size: 60px;    /* 手機縮小 */
    letter-spacing: 4px;
  }

  .news .element-1 {
    position: static;   /* 取消 absolute */
    font-size: 16px;
    line-height: 1.4;
  }

  /* 主標題 */
  .news .text-wrapper-0 {
    position: static;
    text-align: center;
    font-size: 24px;
    white-space: normal; /* 允許換行 */
    margin: 10px auto;
    max-width: 90%;
  }

  /* 上方藍色線 */
  .news .line-0 {
    position: static;
    width: 80%;       /* 按比例縮短 */
    height: 2px;
    margin: 10px auto 30px;
  }

  /* 文章內文 */
  .news-text-container {
    max-width: 90%;
    margin: 20px auto;
    padding: 0 10px;
    text-align: left; /* 內文靠左 */
    font-size: 16px;
  }

  /* 內文段落 */
  .news-text-container p {
    text-align: left;
  }
}

/* DOWN開始 */
.news  .DOWN {
  position: relative;   /* ✅ 讓它乖乖跟在 element 後面 */
  width: 1440px;
  height: 320px;
  margin-top: 40px;     /* 與 element 保持距離 */
}

.news  .DOWN .bg-image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;       /* 等同 background-size: cover */
  object-position: 50% 50%; /* 等同 background-position: 50% 50% */
  z-index: 0;              /* 確保在最底層 */
}

.news  .overlap-group {
  position: relative;
  height: 320px;
  background-color: #18366ccc;
  z-index: 1;              /* 在圖片上方 */
}

.news  .text-wrapper {
  position: absolute;
  top: 283px;
  left: 386px;
  font-family: "DFPHeiLight-B5-Regular", Helvetica;
  font-weight: 400;
  color: #58d2ff;
  font-size: 16px;
  text-align: center;
  letter-spacing: 1.6px;
  line-height: normal;
  white-space: nowrap;
}

.news  .LOGO {
  position: absolute;
  width: 434px;
  height: 66px;
  top: 69px;
  left: 125px;
  object-fit: cover;
}

.news  .overlap-2 {
  position: absolute;
  width: 361px;
  height: 47px;
  top: 71px;
  left: 562px;
}

.news  .text-wrapper-2 {
  position: absolute;
  top: 0;
  left: 0;
  font-family: "DFPHeiUBold-B5-Regular", Helvetica;
  font-weight: 400;
  color: #ffffff;
  font-size: 22px;
  letter-spacing: 0;
  line-height: normal;
  white-space: nowrap;
}

.news  .text-wrapper-3 {
  position: absolute;
  top: 23px;
  left: 0;
  font-family: "DFPHeiUBold-B5-Regular", Helvetica;
  font-weight: 400;
  color: #ffffff;
  font-size: 22px;
  letter-spacing: 0;
  line-height: normal;
  white-space: nowrap;
}

.news  .text-wrapper-4-1 {
  position: absolute;
  top: 34px;
  left: 129px;
  font-family: "DFPNHeiXBold-B5-Regular", Helvetica;
  font-size: 26px;
  letter-spacing: 5.2px;
  line-height: normal;
  font-weight: 400;
  color: #ffffff;
  text-align: center;
  white-space: nowrap;
}

.news   .text-wrapper-5-1 {
  position: absolute;
  top: 34px;
  left: 398px;
  font-family: "DFPNHeiXBold-B5-Regular", Helvetica;
  font-weight: 400;
  color: #ffffff;
  font-size: 26px;
  text-align: center;
  letter-spacing: 5.2px;
  line-height: normal;
  white-space: nowrap;
}

.news  .line {
  position: absolute;
  width: 808px;
  height: 1px;
  top: 148px;
  left: 122px;
  object-fit: cover;
  background-color:#ffffff;
}

.news  .group,
.news  .group-2,
.news  .group-3 {
  position: absolute;
  left: 125px;
  display: flex;
  align-items: center; /* 垂直置中 */
  height: auto;
}

.news  .group {
  top: 243px;
  width: 667px;
}

.news  .group-2 {
  top: 202px;
  width: 505px;
}

.news  .group-3 {
  top: 160px;
  width: 270px;
}

.news .text-wrapper {
  position: absolute;
  top: 283px;
  left: 386px;
  font-family: "DFPHeiLight-B5-Regular", Helvetica;
  font-weight: 400;
  color: #58d2ff;
  font-size: 16px;
  text-align: center;
  letter-spacing: 1.6px;
  line-height: normal;
  white-space: nowrap;
}

/* icon 統一大小與間距，取消絕對定位讓 flex 生效 */
.news  .house,
.news  .phone-call,
.news  .printer {
  position: static;
  width: 25px;
  height: 25px;
  margin-right: 10px; /* icon 與標題間距 */
  object-fit: cover;
}

/* 標題文字 固定寬度，與 icon 右側間距 */
.news  .text-wrapper-7-1 {
  width: 80px;
  font-family: "DFPNHeiXBold-B5-Regular", Helvetica;
  font-weight: 400;
  margin-right: 10px;
  white-space: nowrap;
  text-align: left;
  color: #ffffff;
  font-size: 20px;
  letter-spacing: 4px;
  line-height: normal;
}

/* 內容文字 撐滿剩餘空間 */
.news  .text-wrapper-6-1 {
  flex: 1;
  white-space: nowrap;
  text-align: left;
  font-family: "DFPHeiMedium-B5-Regular", Helvetica;
  font-weight: 400;
  color: #ffffff;
  font-size: 20px;
  letter-spacing: 4px;
  line-height: normal;
  margin: 0;
}

.news  .text-wrapper-9 {
  position: absolute;
  width: 80px;
  top: 41px;
  left: 1225px;
  font-family: "DFPHeiMedium-B5-Regular", Helvetica;
  font-weight: 400;
  color: #ffffff;
  font-size: 18px;
  text-align: center;
  letter-spacing: 0;
  line-height: normal;
  white-space: nowrap;
}

.news  .text-wrapper-10 {
  position: absolute;
  width: 80px;
  top: 121px;
  left: 1225px;
  font-family: "DFPHeiMedium-B5-Regular", Helvetica;
  font-weight: 400;
  color: #ffffff;
  font-size: 18px;
  text-align: center;
  letter-spacing: 0;
  line-height: normal;
  white-space: nowrap;
}

.news  .text-wrapper-11 {
  position: absolute;
  width: 80px;
  top: 240px;
  left: 1225px;
  font-family: "DFPHeiMedium-B5-Regular", Helvetica;
  font-weight: 400;
  color: #ffffff;
  font-size: 18px;
  text-align: center;
  letter-spacing: 0;
  line-height: normal;
  white-space: nowrap;
}

.news  .text-wrapper-12 {
  position: absolute;
  width: 80px;
  top: 160px;
  left: 1225px;
  font-family: "DFPHeiMedium-B5-Regular", Helvetica;
  font-weight: 400;
  color: #ffffff;
  font-size: 18px;
  text-align: center;
  letter-spacing: 0;
  line-height: normal;
  white-space: nowrap;
}

.news  .text-wrapper-13 {
  position: absolute;
  width: 80px;
  top: 81px;
  left: 1225px;
  font-family: "DFPHeiMedium-B5-Regular", Helvetica;
  font-weight: 400;
  color: #ffffff;
  font-size: 18px;
  text-align: center;
  letter-spacing: 0;
  line-height: normal;
  white-space: nowrap;
}

.news  .text-wrapper-14 {
  position: absolute;
  width: 80px;
  top: 200px;
  left: 1225px;
  font-family: "DFPHeiMedium-B5-Regular", Helvetica;
  font-weight: 400;
  color: #ffffff;
  font-size: 18px;
  text-align: center;
  letter-spacing: 0;
  line-height: normal;
  white-space: nowrap;
}

.news  .line-1 {
  position: absolute;
  width: 3px;
  height: 20px;
  top: 45px;
  left: 1218px;
  background-color:#ffffff;
}

.news  .line-2 {
  position: absolute;
  width: 3px;
  height: 20px;
  top: 85px;
  left: 1218px;
  background-color:#ffffff;
}

.news  .line-3 {
  position: absolute;
  width: 3px;
  height: 20px;
  top: 125px;
  left: 1218px;
  background-color:#ffffff;
}

.news  .line-4 {
  position: absolute;
  width: 3px;
  height: 20px;
  top: 164px;
  left: 1218px;
  background-color:#ffffff;
}
.news  .line-5 {
  position: absolute;
  width: 3px;
  height: 20px;
  top: 204px;
  left: 1218px;
  background-color:#ffffff;
}
.news  .line-6 {
  position: absolute;
  width: 3px;
  height: 20px;
  top: 244px;
  left: 1218px;
  background-color:#ffffff;
}
/* DOWN結束 */

@media (max-width: 768px) {
    /* 隱藏圖示 */
.news .printer,
.news .phone-call,
.news .house {
    display: none;
  }

.news .DOWN {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    top: auto !important;
    left: auto !important;
    margin-top: 20px !important;
  }

.news .overlap-group {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    height: auto;
    background-color: rgba(24, 54, 108, 0.8);
  }

  /* LOGO 縮小並置中 */
.news .LOGO {
    position: static;
    width: 70%;
    max-width: 300px;
    height: auto;
    margin-bottom: 1rem;
  }

  /* 公司名稱文字調整，置中且間距縮小 */
.news .text-wrapper-4-1,
.news .text-wrapper-5-1 {
    position: static;
    text-align: center;
    white-space: normal;
    letter-spacing: 2px;
    font-size: 1rem;
    margin-bottom: 0.3rem;
  }

  /* 隱藏 text-wrapper-2 和 text-wrapper-3 */
.news .text-wrapper-2,
.news .text-wrapper-3 {
    display: none;
  }

  /* 中間的分隔線改寬度並置中 */
.news .line {
    position: static;
    width: 80%;
    margin: 1rem auto;
  }

  /* 聯絡資訊群組直排，靠左對齊 */
.news .group,
.news .group-2,
.news .group-3 {
    position: static;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 0rem;
    width: 100%;
    padding-left: 1rem;
    box-sizing: border-box;
    margin-top: 10px; /* 加上 margin-top 往下移 */
  }

.news .text-wrapper-6-1 {
  position: static;
  font-size: 0.9rem;
  letter-spacing: 1px;
  white-space: normal;   /* 允許換行 */
}

.news .text-wrapper-7-1 {
  position: static;
  font-size: 1rem;
  letter-spacing: 1px;
  margin-right: -10px; /* 加間距 */
}

  /* 導覽連結改成直排，置中對齊 */
.news .text-wrapper-9,
.news .text-wrapper-10,
.news .text-wrapper-11,
.news .text-wrapper-12,
.news .text-wrapper-13,
.news .text-wrapper-14 {
    position: static;
    display: block;
    margin: 0.3rem 0;
    text-align: center;
    font-size: 1rem;
    width: 100%;
    padding-right: 1rem;
    box-sizing: border-box;
  }

  /* 桌機版的小直線在手機隱藏 */
.news .line-1,
.news .line-2,
.news .line-3,
.news .line-4,
.news .line-5,
.news .line-6 {
    display: none;
  }

  /* 版權文字放最下面一列，斷行置中 */
.news .text-wrapper {
    position: static;
    width: 100%;
    margin-top: 1.5rem;
    white-space: normal;
    text-align: center;
    font-size: 0.8rem;
  }
}

.news .element-2 {
  position: relative;   /* 改 relative 或乾脆移除 */
  width: 100%;
  max-width: 1200px;
  height: auto;
  margin: 50px auto;    /* 居中 + 留白 */
  display: block;
}


.news .line-8 {
  position: relative;  /* 移除 absolute */
  width: 90%;
  height: 1px;
  margin: 40px auto;
  background-color:#5c5c5c;
}

/* 外層容器：控制 PREV / NEXT 對齊 */
.news .nav-container {
  display: flex;
  justify-content: space-between; /* PREV 靠左、NEXT 靠右 */
  align-items: center;
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 20px;
}

/* ✅ 讓 <a> 成為穩定的區塊元素 */
.news .nav-container a {
  display: block;
  text-decoration: none;
  flex: 0 0 auto; /* 不讓它被 flex 壓縮 */
}

/* PREV / NEXT 按鈕樣式 */
.news .NEXT {
  width: 187px;
  height: 56px;
  border: 1px solid #5c5c5c;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* PREV / NEXT 按鈕樣式 */
.news .PREV {
  width: 187px;
  height: 56px;
  border: 1px solid #5c5c5c;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* overlap-3 是內層排版容器 */
.news .overlap-3 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px; /* 圖示與文字間距 */
  width: 100%;
  height: 100%;
}

/* 文字樣式 */
.news .text-wrapper-16,
.news .text-wrapper-17 {
  font-family: "DFPHeiMedium-B5-Regular", Helvetica, sans-serif;
  font-weight: 400;
  color: #5c5c5c;
  font-size: 18px;
  letter-spacing: 3.6px;
  white-space: nowrap;
}

/* 左箭頭 */
.news .arrow-left {
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 12px solid #5c5c5c;
}

/* 右箭頭 */
.news .arrow-right {
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 12px solid #5c5c5c;
}

@media (max-width: 768px) {
  /* 內文圖片 */
  .news .element-2 {
    width: 100%;
    max-width: 90%;
    height: auto;
    display: block;
    margin: 20px auto;
  }

  /* 下方灰色線 */
  .news .line-8 {
    width: 80%;
    margin: 20px auto;
  }

  /* 導覽按鈕容器 */
  .news .nav-container {
    max-width: 90%;
    margin: 30px auto;
    padding: 0 10px;
    justify-content: space-between;
    gap: 10px; /* 避免太靠近邊界 */
  }

  /* a 保持 block 狀態，不會壓縮 */
  .news .nav-container a {
    flex: 1; /* 讓 PREV / NEXT 各佔 50% */
  }

  .news .PREV,
  .news .NEXT {
    width: 80%;  
    height: 48px;
    margin: 0 auto; /* 讓它在 <a> 內置中 */
  }

  .news .text-wrapper-16,
  .news .text-wrapper-17 {
    font-size: 14px;
    letter-spacing: 2px;
  }

  .news .overlap-3 {
    gap: 8px; /* 手機上縮小間距 */
  }
}

/* 路徑標題列用 */
.news  .view-11 {
  display: flex;
  align-items: center;   /* 垂直置中 */
  justify-content: center; /* 水平置中 */
  gap: 20px;  /* 改這裡就能調整內容間距 */
  padding: 20px;
  background-color: #173268;
  position: relative;
}

.news .text-wrapper-24,
.news .text-wrapper-25 {
  font-family: "DFPHeiMedium-B5-Regular", Helvetica;
  font-weight: 400;
  font-size: 16px;
  line-height: 40px;
  letter-spacing: 1.6px;
  white-space: nowrap;
  text-align: center;
}

.news .text-wrapper-24 {
  color: #ffffff;
}

.news .text-wrapper-25 {
  color: #00f6ff;
}

@media (max-width: 768px) {
  .news .view-11 {
    gap: 10px;       /* 間距縮小 */
    padding: 10px;   /* 內距縮小 */
  }

  .news .text-wrapper-24,
  .news .text-wrapper-25 {
    font-size: 12px;   /* 縮小字體 */
    line-height: 28px; /* 調整行高 */
    letter-spacing: 1px;
  }
}

/* 固定標題列 */
.news .title {
  position: fixed;
  width: 1440px;
  height: 80px;
  background-color: #ffffff;
  z-index: 10;
}

/* 固定標題列用 */
.news .head-rectangle {
  position: absolute;
  width: 100%;
  height: 2px;
  top: 80px;
  left: 0;
  box-shadow: 0px 2px 3px 1px #00000040;
}

/* 漢堡按鈕 */
.news .hamburger {
  display: none;
  font-size: 28px;
  cursor: pointer;
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 10000;
}

/* 固定標題列用 */
.news .navbar {
  display: flex;
  width: 750px;
  height: 50px;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 8px;
  position: absolute;
  top: 15px;
  left: 580px;
}

/* 預設隱藏（桌機版不顯示） */
.news .navbar .nav-logo {
  display: none;
}

/* 下拉選單用要改的 */
.news .text-wrapper-67 {
  position: relative;
  width: 80px;
  height: 20px;
  font-family: "DFPHeiMedium-B5-Regular", Helvetica;
  font-weight: 400;
  color: #173268;
  font-size: 18px;
  text-align: center;
  letter-spacing: 0;
  line-height: normal;
  white-space: nowrap;
}

/* 下拉選單的容器 */
.news .dropdown {
  position: relative;
  display: inline-block;
}

/* 下拉選單內容（預設隱藏） */
.news .dropdown-content {
  display: none;
  position: absolute;
  background-color: rgba(255, 255, 255, 0.9); /* 白色帶 10% 透明 */
  min-width: 120px; /* 最小寬度 */
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2); /* 陰影效果 */
  z-index: 1; /* 確保選單浮在最上層 */
  top: 55px; /* 從上方偏移，使選單出現在主選項下方 */
  left: 60%;
  transform: translateX(-50%);
  border-radius: 4px; /* 圓角邊框 */
  padding: 8px 0; /* 上下內距 */
}

/* 下拉選單中的每個選項 */
.news .dropdown-item {
  padding: 10px 20px; /* 內距設定 */
  font-size: 16px; /* 字體大小 */
  color: #004f8a; /* 字體顏色 */
  cursor: pointer; /* 滑鼠游標改為手指形狀 */
  white-space: nowrap; /* 不換行 */
  text-align: center; /* 加這一行讓文字置中 */
  transition: all 0.3s ease
}

/* 滑鼠滑過下拉選項時的背景效果 */
.news .dropdown-item:hover {
  background-color: #004f8a; /* 背景變深藍 */
  color: white;              /* 字變白色 */
}

/* 滑鼠移到主選單項目時顯示下拉內容 */
.news .dropdown:hover .dropdown-content {
  display: block;
}


/* title語言選擇對齊 */
.news .group-13 {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px; /* 圖與字的間距，可依需要調整 */
}

.news .group-13 .icon {
  width: 20px;
  height: 20px;
}

.news .group-13 .text {
  font-family: "DFPHeiMedium-B5-Regular", Helvetica;
  font-weight: 400;
  color: #173268;
  font-size: 18px;
  white-space: nowrap;
}

.news .dropdown-arrow {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 10px solid #173268; /* 三角形朝下 */
}

/* 下拉選單用要改的結束 */

/* 給下拉選單的<a>用的 */

.news .dropdown-item,
.news .dropdown-item:link,
.news .dropdown-item:visited {
  display: block;           /* 讓 <a> 像區塊一樣佔滿整行 */
  padding: 10px 20px;       /* 設定內距，保持你原本的設計 */
  font-size: 16px;
  color: #004f8a;           /* 字體顏色 */
  text-decoration: none;    /* 移除超連結底線 */
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
  transition: all 0.3s ease;
}
.news .dropdown-item:hover {
  background-color: #004f8a; /* 背景變深藍 */
  color: white;              /* 字變白色 */
}
/* 給下拉選單的<a>用的結束 */

.news .many-splendid {
  position: absolute;
  width: 361px;
  height: 56px;
  top: 12px;
  left: 27px;
  object-fit: cover;
}

@media (min-width: 768px) and (max-width: 1399px) {
.news .title {
  position: fixed;
  zoom: 0.9;
  left: 50%;
  transform: translateX(-50%);
  width: 1440px; /* 保持原寬度方便置中 */
}
}

@media (max-width: 768px) {
.news .hamburger {
  width: 30px;
  height: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  position: absolute;
  top: 20px;
  right: 20px;
  left: auto;
  z-index: 10000;
}

.news .hamburger span {
  display: block;
  height: 2px;         /* 線條變細 */
  width: 100%;
  background-color: #173268;
  border-radius: 2px;
  transition: all 0.4s ease;
  position: absolute;       /* 改成 absolute，方便控制位置 */
  left: 0;
}

.news .hamburger span:nth-child(1) { top: 0; }
.news .hamburger span:nth-child(2) { top: 9px; }
.news .hamburger span:nth-child(3) { top: 18px; }

/* 點擊後變成 X */
.news .hamburger.active span:nth-child(1) {
  top: 9px;                 /* 移到中間 */
  transform: rotate(45deg); /* 旋轉 */
}

.news .hamburger.active span:nth-child(2) {
  opacity: 0; /* 中間線消失 */
}

.news .hamburger.active span:nth-child(3) {
  top: 9px;                  /* 也移到中間 */
  transform: rotate(-45deg); /* 旋轉 */
}

.news .title {
    width: 100%;          /* 讓寬度自動撐滿螢幕 */
    max-width: 100%;      /* 避免超過螢幕 */
    left: 0;              /* 靠左 */
    right: 0;             /* 靠右 */
    margin: 0 auto;       /* 自動置中 */
  }

.news .head-rectangle {
    width: 100%;          /* 下方橫線跟著縮小 */
    left: 0;
  }

.news .navbar {
  display: none; /* 預設隱藏 */
  flex-direction: column;
  position: fixed;      /* 改成固定覆蓋螢幕 */
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;        /* 高度覆蓋整個視窗 */
  justify-content: flex-start; /* 靠上 */
  align-items: center;  /* 水平垂直置中 */
  background-color: white;
  padding: 30px;
  box-shadow: 0px 2px 5px rgba(152, 152, 152, 0.2);
  z-index: 9999;        /* 蓋在最上層 */
  text-align: center;  /* 讓裡面元素置中 */
}

.news .navbar.active {
    display: flex; /* 點擊漢堡後展開 */
  }
  
.news .navbar .nav-logo {
    display: block;
    text-align: center;
    margin-bottom: 15px; /* 與選單文字保持距離 */
  }

.news .navbar .nav-logo img {
    max-width: 200px; /* 縮小圖片，依需求調整 */
    height: auto;
  }

.news .navbar a,
.news .dropdown {
    display: inline-block;  /* 讓選項水平排列 */
    margin: 5px 10px;
  }

.news .dropdown {
    position: relative; /* 父容器相對定位，子元素才能依附它 */
  }

  /* 手機版 dropdown：點擊展開，不要絕對定位 */
.news .dropdown-content {
  position: absolute;
  top: 100%;   /* 剛好緊貼「關於我們」區塊的底部 */
  margin-top: 10px;    /* 往下移 5px，製造間距 */
  left: 50%;     /* 與父層左邊對齊 */
  width: 150px; /* 可依需求調整 */
  border: 1px solid #8a8a8a;
  box-shadow: none; /* 移除陰影 */
  background: rgba(249, 249, 249, 0.9); /* #f9f9f9 90%透明 */
  display: none;
  z-index: 10001;
}

.news .dropdown.active .dropdown-content {
    display: block;
  }

    /* 子選單內項目 */
.news .dropdown-content a {
    display: block;
    padding: 8px 15px;
    text-decoration: none;
  }

.news .many-splendid {
    max-width: 200px;   /* 控制最大寬度 (依需求調整) */
    height: auto;       /* 保持比例 */
    margin: 10px auto 0; /* 上方空間 10px，可自行調整 */
  }

  /* 手機版不顯示 dropdown-arrow */
.news .dropdown-arrow {
    display: none;
  }
}

/* 回到頂端懸浮按鈕 */
.news .backToTopBtn {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 999;
  width: 50px;
  height: 50px;
  border-radius: 30%;
  background-color: rgba(255, 255, 255, 0.6); /* 半透明白色 */
  border: 1.5px solid rgba(150, 150, 150, 0.8); /* ✅ 灰色邊框線 */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.4s ease,
    transform 0.2s ease,
    background-color 0.3s ease,
    border-color 0.3s ease;
}

/* 三角形箭頭 */
.news .backToTopBtn::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 15px solid #666666; /* 灰色箭頭 */
  transition: border-bottom-color 0.3s ease;
}

/* 顯示狀態 */
.news .backToTopBtn.show {
  opacity: 1;
  pointer-events: auto;
}

/* 滑鼠懸停效果 */
.news .backToTopBtn:hover {
  background-color: rgba(150, 150, 150, 0.4); /* 半透明灰底 */
  border-color: rgba(180, 180, 180, 0.8);     /* ✅ hover 時邊框稍淺 */
  transform: scale(1.1);
  border-radius: 50%;
}

/* 滑鼠懸停時箭頭變白 */
.news .backToTopBtn:hover::before {
  border-bottom-color: white;
}