@font-face {
  font-family: 'SweiSpringSugarCJKtc';
  src: url('./font/SweiSpringSugarCJKtc-Medium.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'NotoSansTC-Regular';
  src: url('./font/NotoSansTC-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'ChenYuluoyan';
  src: url('./font/ChenYuluoyan-2.0-Thin.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'NotoSansTC-Regular', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #183171;
}

.wrapper {
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
}

.top-plane {
  position: absolute;
  top: 102px;
  left: 5vw;
  --plane-fly-x: 25vw; /* 飛行距離改為螢幕寬度的40% */
  animation: flyaway 6s ease-out forwards;
}
.top-plane img {
  width: 300px;
}

@keyframes flyaway {
  10% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }

  100% {
    transform: translate(var(--plane-fly-x), 0); /* 使用變數 */
  }
}

/* 在螢幕寬度小於等於 1440px 時，把飛行距離縮短一半 */
@media (max-width: 1440px) {
  .top-plane {
    animation: flyaway-short 6s ease-out forwards;
  }
}

@keyframes flyaway-short {
  10% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }

  100% {
    transform: translate(90px, 0px); /* 原本 400px 改為一半 */
  }
}

.top-logo {
  position: absolute;
  right: 70px;
  top: 15px;
  max-width: calc(100% - 70px);
}
.top-logo img {
  margin: 0 10px;
  width: 500px;
}

/* === 漢堡按鈕 === */
.menu-btn {
  position: fixed;
  right: 20px;
  top: 15px;
  width: 46px;
  height: 40px;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: none;
  cursor: pointer;
  z-index: 1002;
}

.menu-btn.active {
  background-color: transparent;
}

.menu-btn span {
  display: block;
  width: 100%;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}

.menu-btn.active span {
  background-color: #333;
}

/* === 叉叉動畫 === */
.menu-btn.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.menu-btn.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* === 遮罩 === */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 1000;
}

.menu-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* === 側邊選單 === */
.menu-panel {
  position: fixed;
  right: -260px;
  top: 0;
  width: 260px;
  height: 100%;
  background: #fff;
  box-shadow: -4px 0 10px rgba(0, 0, 0, 0.15);
  transition: 0.3s ease;
  padding: 60px 20px;
  z-index: 1001;
  box-sizing: border-box;
  overflow-y: auto;
}

.menu-panel.open {
  right: 0;
}

.menu-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-panel li {
  padding: 5px 0;
  /* border-bottom: 1px solid rgba(255, 255, 255, 0.15); */
}

.menu-panel a {
  width: 120px;
  display: block;
  text-decoration: none;
  color: #333;
  text-align: center;
  margin: 0 auto;
}

.menu-panel a img {
  max-width: 100%;
}

.main-logo-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 200px;
  aspect-ratio: 16 / 9;
  background: url(./pics/sec01.jpg) no-repeat bottom center;
  background-size: cover;
}
.main-logo-container2 {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 80px 20px 100px;
  background: url(./pics/sec03.jpg) no-repeat bottom center;
  background-size: cover;
}
.main-logo-container img,
.main-logo-container2 img {
  width: 60%;
  height: auto;
}
.main-logo-container img {
  padding-bottom: 26em;
}
.main-logo-container2 > img {
  padding-bottom: 60px;
  max-width: 1200px;
}
.nav-area {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 40px 20px;
}
.nav-area a {
  display: block;
  max-width: 200px;
  aspect-ratio: 1 / 1;
}

.nav-area img {
  width: 100%;
  cursor: pointer;
  border-radius: 50%;
}
.nav-area img:hover {
  transition: 0.3s;
  box-shadow: rgba(255, 255, 255, 0.35) 0px 5px 15px;
}
.section1 {
  position: relative;
  width: 100%;
  padding: 80px 20px 40px;
}

.section1::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 50px;
  background: linear-gradient(to bottom, #183171, transparent);
  pointer-events: none;
}

.section1 .container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.section1 .ribbon {
  max-width: 80%;
}
.section1 .plane {
  max-width: 100%;
}
.section1 .right {
  flex: 0 0 40%;
}
.section1 .text {
  box-sizing: border-box;
  width: 100%;
  color: #fff;
  background-color: #ffffff62;
  border-radius: 20px;
  padding: 10px 20px;
  right: 0;
  line-height: 1.8;
}
.link-btn {
  width: 1000px;
  margin: 0px auto;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.link-btn a img {
  width: 200px;
  cursor: pointer;
  border-radius: 10px;
}
.link-btn a img:hover {
  transition: 0.3s;
  box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
}
.section2 {
  padding: 60px 0;
}
.section2 .title {
  max-width: 1200px;
  width: 100%;
  padding: 0 20px 30px;
  margin: 0 auto;
  display: flex;
}
.section2 .title img {
  width: 140px;
  height: 140px;
}
.section2 .title .text {
  width: 70%;
  margin-left: 60px;
  color: #fff;
  text-shadow: 2px 3px 5px #4d4d4d;
  font-size: 18px;
}
.section2 .title .text h1 {
  font-family: 'SweiSpringSugarCJKtc', sans-serif;
  font-weight: 400;
  letter-spacing: 2px;
  font-size: 36px;
}
.section2 .title .text h1 span {
  font-size: 18px;
}

.section2 .photo {
  width: 100%;
  max-width: 1200px;
  margin: 50px auto;
  display: flex;
  flex-wrap: wrap; /* 允許自動換行 */
  gap: 20px; /* 每張圖片之間有間隔 */
}

.section2 .photo img {
  flex: 1 1 calc(33.333% - 20px); /* 三個一行 */
  max-width: calc(33.333% - 20px);
}
.schedule {
  background: url(./pics/sec04.jpg) no-repeat bottom center;
  background-size: cover;
}

.schedule .tab-content {
  scroll-margin-top: 140px;
}

/* 外層 */
.tabs {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

/* 頁籤列 */
.tab-nav {
  max-width: 1200px;
  width: 100%;
  padding: 0 20px;
  margin: 0 auto 30px;
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 0;
  list-style: none;
}

.tab-nav li {
  margin: 0;
  padding: 0;
  flex: 0 1 auto;
  max-width: 200px;
}

/* 頁籤按鈕 */
.tab-nav li a {
  font-size: 18px;
  display: block;
  width: 100%;
  transition: all 0.2s;
}

.tab-nav li img {
  width: 100%;
}

/* 選到的頁籤 */
.tab-nav li a:hover,
.tab-nav li a.active {
  transform: scale(1.1) translateY(-10px);
}

/* 內容區 */
.tab-content {
  display: none;
  font-size: 18px;
  line-height: 1.6;
}

/* 顯示中的內容 */
.tab-content.active {
  display: block;
}

.slide img {
  width: 100%;
}

.ocean {
  background: #0d308c url(./pics/sec05.jpg) no-repeat top center;
  background-size: 100% auto;
}

.spot {
  background: linear-gradient(to bottom, #0d308c, #183171);
}
.card-section {
  max-width: 1200px;
  padding: 0 20px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}
.card {
  flex-basis: calc(33.333% - 20px * 2 / 3);
  width: 32%;
  border: 0px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  background-color: #fff;
}

.card-img-top {
  width: 100%;
  height: auto;
  display: block;
}

.card-body {
  padding: 1.25rem;
}

.card-title {
  font-size: 2rem;
  margin: 0 0 5px 0;
  font-weight: 500;
  color: #2ca6e0;
}
.eng {
  width: 100%;
  color: #c79f62;
  font-family: 'ChenYuluoyan', sans-serif;
  text-align: right;
  font-size: 52px;
}
.card-text {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: #6c757d;
}
.card-text h3 {
  margin-bottom: 0;
  color: #036eb7;
}
.divide {
  background-color: #c79f62;
  height: 1px;
  width: 100%;
}

@media (max-width: 768px) {
  body {
    background-color: #183171;
  }
  .top-plane {
    display: block; /* 取消隱藏，讓飛機出現 */
    /* 如需微調位置可加上：top: 102px; left: 100px; */
  }

  .top-plane img {
    width: 150px; /* 原本 300px → 50% 縮放 */
  }
  .top-logo img {
    width: 300px;
  }
  .main-logo-container {
    background: url(./pics/sec01_m.jpg) no-repeat bottom center;
    background-size: cover;
  }
  .main-logo-container img {
    padding-bottom: 16em;
  }

  .main-logo-container img {
    width: 90%;
  }
  .main-logo-container2 img {
    width: 100%;
  }
  .nav-area {
    gap: 20px;
  }

  .link-btn {
    flex-wrap: wrap;
    width: 100%;
    gap: 10px;
  }

  .link-btn a img {
    width: 120px;
  }
  .card-section {
    flex-wrap: wrap;
  }
  .card {
    width: 100%;
    flex-basis: 100%;
    margin: 10px 0;
  }
  .section2 .photo {
    flex-wrap: wrap;
    justify-content: center;
  }
  .flags img {
    width: 170px;
  }
  .section2 .photo img {
    flex: 1 1 calc(50% - 20px); /* 兩欄 */
    max-width: calc(50% - 20px);
  }
  .section2 .title {
    display: flex; /* 原本是 block，改成水平排列 */
    flex-direction: row;
    align-items: top;
    gap: 24px; /* 圖示與文字間距 */
  }
  .section2 .title img {
    width: 70px;
    height: 70px;
    flex: 0 0 70px; /* 固定圖示寬度，不被擠壓 */
    margin: 0; /* 移除可能的額外外距 */
  }

  .section2 .title .text {
    flex: 1 1 auto; /* 文字區塊吃剩餘寬度 */
    width: auto; /* 覆蓋桌面版/既有的 width:100% */
    margin: 0; /* 覆蓋桌面版的 margin-left */
    min-width: 0; /* 避免文字溢出 */
  }

  .section1 {
    display: block;
  }
  .section1 .container {
    flex-wrap: wrap;
  }
  .section1 .plane {
    position: relative;
  }
  .section1 .container .ribbon,
  .section1 .container .plane,
  .section1 .container .right {
    max-width: 100%;
    flex-basis: 100%;
  }
  .section1 .container .right {
    margin-top: 50px;
  }
  .tab-nav {
    flex-wrap: wrap;
  }
  .tab-nav li {
    flex: 0 0 45%;
  }
}

/* 在螢幕寬度小於等於 425px 時，photo 區塊一欄顯示 */
@media (max-width: 425px) {
  .section2 .photo img {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .main-logo-container {
    padding-top: 120px; /* 原本在 ≤768px 是 250px，上移 70px */
    padding-bottom: 70px;
    background-size: 100% auto;
  }

  .main-logo-container img {
    padding-bottom: 10em;
  }

  .nav-area {
    margin: 0 auto;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 10px;
    transform-origin: top center;
    padding: 0 20px;
  }

  .menu-btn {
    top: 10px;
    right: 10px;
  }

  .top-plane {
    display: block;
  }

  /* 將飛機-5.png 再縮一半：150px -> 75px */
  .top-plane img {
    width: 75px;
    height: auto; /* 保持比例 */
  }
}

/* --- Slick arrows: 永不消失、用自訂 PNG、固定位置與層級 --- */

/* 讓輪播左右留白，箭頭放在安全邊，不與圖重疊（你已經有 padding，可保留） */
/* ---- Slick arrows: 使用自訂 <img>，不再依賴 :before ---- */

/* 讓圖片不要被箭頭壓到（你若已經有 padding 可與此合併） */
.slide {
  position: relative;
  padding: 0 70px;
}

.slick-dots {
  bottom: -35px;
  left: 0;
}

/* 箭頭按鈕本體 */
.slide .slick-prev,
.slide .slick-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;

  display: flex !important; /* 一定顯示 */
  align-items: center;
  justify-content: center;

  z-index: 10; /* 壓過滑塊 */
  border: none;
  outline: none;
  background: transparent !important; /* 避免被舊的 background 設定覆蓋 */
  box-shadow: none;
  padding: 0;
  cursor: pointer;
}

/* 左右位置 */
.slide .slick-prev {
  left: 15px;
}
.slide .slick-next {
  right: 15px;
}

/* 箭頭圖片填滿按鈕 */
.slide .slick-prev img,
.slide .slick-next img {
  width: 100%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: transparent !important;
}

/* 徹底移除 slick-theme 的字元箭頭，避免狀態切換時閃爍或覆蓋 */
.slide .slick-prev:before,
.slide .slick-next:before {
  content: '' !important;
}

/* 邊界狀態：即便 slick 加上 disabled，也只降透明不隱形 */
.slide .slick-prev.slick-disabled img,
.slide .slick-next.slick-disabled img {
  opacity: 0.4;
}

/* 滑過/聚焦更清楚（可選） */
.slide .slick-prev:hover img,
.slide .slick-next:hover img,
.slide .slick-prev:focus img,
.slide .slick-next:focus img {
  opacity: 1;
}

/* RWD：小螢幕收窄內距與箭頭尺寸 */
@media (max-width: 768px) {
  .slide {
    padding: 0;
  }
  .slide .slick-prev,
  .slide .slick-next {
    width: 32px;
    height: 32px;
    display: none !important; /* 小螢幕隱藏箭頭 */
  }
  /* .slide .slick-prev {
    left: 8px;
  }
  .slide .slick-next {
    right: 8px;
  } */
}

@media (max-width: 320px) {
  h1 {
    font-size: 1em !important;
  }
  .top-logo {
    display: flex;
    justify-content: flex-end;
  }
  .top-logo img {
    width: 50%;
  }
  .nav-area {
    flex-wrap: wrap;
    gap: 20px 40px;
    justify-content: center;
  }
  .nav-area a {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
  }
  .nav-area img {
    width: 100%;
    max-width: 120px;
  }
}
