.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) {
  html {
    overflow-x: hidden; /* ✅ 只針對 html，保持固定元素獨立 */
  }

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

.NEWS .div {
    width: 100% !important;
    max-width: 100% !important; /* 防止超過螢幕 */
    position: relative !important;
  }
}

.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;
  position: relative;
  padding-bottom: 50px;
}

.NEWS .frame {
  display: flex;
  flex-direction: column;
  width: 700px;
  align-items: flex-start;
  gap: 16px;
  position: relative; 
  padding-top: 115px; 
  margin: 0 auto 50px 135px; 
}

.NEWS .line-7 {
  position: absolute;
  width: 2px;
  height: 80px;
  left: -20px;    /* ✅ 可調整相對距離 */
  background-color: #0167b5;
}

.NEWS .text-wrapper-15 {
  position: relative;
  align-self: stretch;
  margin-top: -1px;
  font-family: "DFPHeiBold-B5-Regular", Helvetica;
  font-weight: 400;
  color: #0167b5;
  font-size: 20px;
  letter-spacing: 4px;
  line-height: normal;
}

.NEWS .text-wrapper-16 {
  position: relative;
  align-self: stretch;
  font-family: "DFPNHeiXBold-B5-Regular", Helvetica;
  font-weight: 400;
  color: #000000;
  font-size: 40px;
  letter-spacing: 0;
  line-height: normal;
}

.NEWS .overlap-group-2 {
  position: relative;
  margin: 50px auto ; /* 接在 frame 下方 */
  width: 1200px;
  height: 50px;
  background-color: #0167b5;
}

.NEWS .text-wrapper-3-1 {
  height: 21px;
  top: 15px;
  left: 550px;
  font-family: "DFPHeiMedium-B5-Regular", Helvetica;
  color: #ffffff;
  font-size: 20px;
  text-align: center;
  position: absolute;
  font-weight: 400;
  letter-spacing: 4.00px;
  line-height: normal;
  white-space: nowrap;
}

.NEWS .polygon {
  position: absolute;
  right: 10px;          /* 與右邊距離 */
  top: 50%;             
  transform: translateY(-50%); /* 垂直置中 */
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #ffffff; /* 白色向下箭頭 */
}

.NEWS .dropdown-menu {
  display: none;
  position: absolute;
  top: 52px; /* 放在色塊下方 */
  left: 0;
  width: 1200px;
  background-color: #ffffff;
  border: 1px solid #ccc;
  z-index: 1000;
  box-shadow: 0px 4px 8px rgba(0,0,0,0.1);
  text-align: center;   /* 水平置中文字 */
  padding: 10px 0;      /* 上下間距，可調整 */
  cursor: pointer;
}

.NEWS .dropdown-menu li {
  list-style: none;
  border-top: 1px solid #eee;
}

.NEWS .dropdown-menu li:first-child {
  border-top: none;
}

.NEWS .dropdown-menu li a {
  display: block;
  padding: 12px 20px;
  color: #0167b5;
  text-decoration: none;
  font-family: "DFPHeiMedium-B5-Regular", Helvetica;
  font-size: 18px;
  letter-spacing: 2px;
/* 🟢 禁止點擊（不會觸發連結）有連結後請刪除 */
  /* pointer-events: none;     */
}

.NEWS .dropdown-menu li a:hover {
  background-color: #f2f2f2;
}

.NEWS .dropdown-toggle {
  background: transparent;   /* 背景透明 */
  border: none;              /* 移除邊框 */
  padding: 0 40px 0 0;   /* 給右邊留空間放 polygon */
  width: 100%;               
  height: 100%;              
  color: inherit;            /* 繼承字體顏色 */
  font: inherit;             /* 繼承字體樣式 */
  cursor: pointer;           /* 滑鼠變成點擊狀態 */
  position: relative;    /* 設定相對定位，讓 polygon 可以靠它定位 */
}

.NEWS .img {
  width: 550px;
  height: 370px;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  transition: transform 0.3s ease;
}

.NEWS .img:hover {
  transform: scale(1.05);
}

/* 標題換行 */
.NEWS .text-wrapper-4 {
  position: absolute;
  top: 386px;
  left: 117px;
  font-family: "DFPHeiBold-B5-Regular", Helvetica;
  font-weight: 500;
  color: #000000;
  font-size: 20px;
  letter-spacing: 0;
  line-height: 1.4;           
  white-space: normal;        /* ✅ 允許換行 */
  max-width: 650px;           /* ✅ 限制寬度，讓文字自動換行 */
  word-break: break-word;     /* ✅ 避免太長的詞不換行 */
}


.NEWS .flexcontainer {
  width: 422px;
  top: 422px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  position: absolute;
  height: 51px;
  left: 117px;
}

.NEWS .flexcontainer-1 {
  width: 422px;
  top: 440px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  position: absolute;
  height: 51px;
  left: 117px;
}

/* 控制內文 */
.NEWS .description {
  font-family: "DFPHeiBold-B5-Regular", Helvetica;
  font-size: 14px;
  color: #8a8a8a;
  line-height: 1.5;
  letter-spacing: 0.16px;
}

.NEWS .text-wrapper-5 {
  top: 386px;
  left: 17px;
  font-family: "DFPHeiBold-B5-Regular", Helvetica;
  color: #0167b5;
  font-size: 40px;
  position: absolute;
  font-weight: 400;
  letter-spacing: 4.00px;
  line-height: normal;
  white-space: nowrap;
}

.NEWS .text-wrapper-6 {
  height: 15px;
  top: 458px;
  left: 17px;
  font-family: "DFPHeiMedium-B5-Regular", Helvetica;
  color: #0167b5;
  font-size: 14px;
  letter-spacing: 2.80px;
  position: absolute;
  font-weight: 400;
  line-height: normal;
  white-space: nowrap;
}

.NEWS .line-2-1 {
  position: absolute;
  width: 1px;
  height: 30px;
  top: 427px;
  left: 12px;
  object-fit: cover;
  background-color:#0167b5
}

.NEWS .text-wrapper-7 {
  top: 390px;
  left: 15px;
  font-family: "DFPHeiBold-B5-Regular", Helvetica;
  color: #0167b5;
  font-size: 30px;
  position: absolute;
  font-weight: 400;
  letter-spacing: 4.00px;
  line-height: normal;
  white-space: nowrap;
}

/* 設定所有element-的位置 */
.NEWS [class^="element-"] {
 position: absolute; /* 或position: relative; */
  width: 550px;
  height: 500px;
  overflow: hidden; /* 防止放大溢出 */
}


.NEWS .element-44,
.NEWS .element-42,
.NEWS .element-40,
.NEWS .element-38,
.NEWS .element-36,
.NEWS .element-34,
.NEWS .element-32,
.NEWS .element-30,
.NEWS .element-28,
.NEWS .element-26,
.NEWS .element-24,
.NEWS .element-22,
.NEWS .element-20,
.NEWS .element-18,
.NEWS .element-16,
.NEWS .element-14,
.NEWS .element-12,
.NEWS .element-10,
.NEWS .element-8,
.NEWS .element-6,
.NEWS .element-4,
.NEWS .element-2 {
  left: 124px;
}


.NEWS .element-43,
.NEWS .element-41,
.NEWS .element-39,
.NEWS .element-37,
.NEWS .element-35,
.NEWS .element-33,
.NEWS .element-31,
.NEWS .element-29,
.NEWS .element-27,
.NEWS .element-25,
.NEWS .element-23,
.NEWS .element-21,
.NEWS .element-19,
.NEWS .element-17,
.NEWS .element-15,
.NEWS .element-13,
.NEWS .element-11,
.NEWS .element-9,
.NEWS .element-7,
.NEWS .element-5,
.NEWS .element-3, 
.NEWS .element-1 {
  left: 773px;
}

/* 讓element-暫時空著 */
.NEWS .element-44 {
  visibility: hidden;
}


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

  .NEWS .frame {
    position: relative;
    padding-top: 50px; 
    margin: 0 auto 50px; 
    width: 80%;         /* 縮小比例 */
  }

    /* overlap-group-2 置中、縮短寬度 */
  .NEWS .overlap-group-2 {
    position: relative;
    margin: 20px auto; /* 置中 */
    top: auto;
    left: auto;
    width: 100%;
    display: flex;
    justify-content: center; /* 水平置中 */
    align-items: center;     /* 垂直置中 */
  }

  /* 讓文字不再固定座標 */
  .NEWS .text-wrapper-3-1 {
    position: static;   
    margin: 0;               /* 移除多餘 margin */
    font-size: 18px;
    top: auto;          /* 清掉桌機版 top */
    left: auto;         /* 清掉桌機版 left */
  }

  /* 下拉按鈕置中顯示 */
  .NEWS .dropdown-toggle {
    display: flex;           /* flex 排列文字 + 箭頭 */
    align-items: center;
    justify-content: center; /* 置中整個按鈕內容 */
    gap: 20px;                /* 文字和箭頭間距 */
    width: auto;             /* 讓按鈕依內容縮放 */
    background: transparent;
    border: none;
    padding: 8px 12px; /* 上下內距/左右內距 */
  }

  /* 下拉箭頭也不再固定 */
  .NEWS .polygon {
    position: relative;
    top: auto;
    left: auto;
  }

  /* 下拉選單寬度跟著父層走，不要固定1200px */
  .NEWS .dropdown-menu {
    width: 100%;
    left: 0;
    top: 100%; /* 挨著按鈕下方 */
  }

  .NEWS .dropdown-menu li a {
    font-size: 16px;   /* 手機版縮小字體 */
    padding: 10px;     /* 間距稍微縮小 */
  }
}

@media (max-width: 768px) {

  /*讓element-暫時空著不顯示也不占位  */
  .NEWS .element-44 {
    display: none !important;
  }

  /* 讓每個 element-* 自然流式排列 */
  .NEWS [class^="element-"] {
    position: relative !important; /* 不要再 absolute */
    top: auto !important;
    left: auto !important;
    width: 90%;            /* 區塊縮小一點，避免貼滿螢幕 */
    max-width: 500px;      /* 避免太大，可以調整 */
    margin: 50px auto;     /* 上下留白、水平置中 */
    height: auto !important;
    overflow: visible !important;
    display: flex;
    flex-direction: column; /* 直式排列 */
    align-items: center;    /* 內容置中 */
  }

  /* 讓圖片等比例縮小，撐開容器高度 */
  .NEWS [class^="element-"] .img {
    position: relative !important;
    width: 100%;
    height: auto;
    display: block;
  }
  /* 標題 */
  .NEWS .text-wrapper-4 {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    margin-top: 10px;
    font-size: 18px;
    text-align: center;
    max-width: 100%;
  }

  /* 內文容器 */
  .NEWS .flexcontainer,
  .NEWS .flexcontainer-1 {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    height: auto !important;
    margin: 5px 5px;
    display: block; /* 直式排列即可 */
  }

  /* 內文 */
  .NEWS .description {
    font-size: 14px;
    line-height: 1.4;
    text-align: justify;
    color: #666;
    margin: 0px auto;
  }

  /* 日期數字 */
  .NEWS .text-wrapper-5 {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    font-size: 28px;
    color: #0167b5;
    margin-top: 5px;
    text-align: center;
  }

    /* 日期數字 */
  .NEWS .text-wrapper-7 {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    font-size: 26px;
    color: #0167b5;
    margin-top: 5px;
    text-align: center;
  }

  /* 日期月份 */
  .NEWS .text-wrapper-6 {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    font-size: 14px;
    color: #0167b5;
    margin-top: 15px;
    text-align: center;
  }

  /* 分隔線 */
  .NEWS .line-2-1 {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 20%;
    height: 1px;
    margin: 10x auto;
    background-color: #0167b5;
  }
  }


/* DOWN開始 */
.NEWS  .DOWN {
  position: relative;   /* ✅ 讓它乖乖跟在 element 後面 */
  width: 1440px;
  height: 320px;
}

.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;
  }

  .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 .view {
  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 {
    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;
}

