/* ========================================
   基礎設定
   ======================================== */

/* ========== 平滑滾動與錨點偏移 ========== *//* ========== 平滑滾動與錨點偏移 ========== */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* 👈 改成 80px */
}

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

/* 👇 加上這段 */
section {
  scroll-margin-top: 80px; /* 👈 所有 section 都有偏移 */
}

/* 手機版可能需要更大的偏移 */
@media (max-width: 768px) {
  html {
    scroll-padding-top: 70px; /* 👈 手機版導覽列較矮 */
  }
  
  section {
    scroll-margin-top: 70px;
  }
}


body,
html {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  font-family: 'Noto Sans TC', sans-serif;
}

/* 固定背景設定 */
body {
  background-image: url('images/bg.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* ========================================
   導覽列樣式
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #ea5e73;
  z-index: 1000;
  padding: 10px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 50px;
  width: auto;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

.nav-menu li a {
  text-decoration: none;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  transition: opacity 0.3s;
  padding: 8px 12px;
}

.nav-menu li a:hover {
  color: #b4263bd7;
}

/* 漢堡選單按鈕 */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.hamburger span {
  width: 25px;
  height: 2.5px;
  background-color: #fff;
  transition: all 0.3s;
  border-radius: 3px;
}

/* 漢堡選單動畫 */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ========================================
   內容區域
   ======================================== */
.content {
  min-height: 100vh;
  position: relative;
  padding-top: 60px;
}

/* ========================================
   主視覺區塊
   ======================================== */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 5px;
  text-align: center;
}

.hero-section img {
  max-width: 100%;
  height: auto;
}

.year-image {
  width: 120px;
  margin-bottom: 20px;
}

.main-title-image {
  width: 700px;
  max-width: 90%;
  margin-bottom: 30px;
}

/* 手機版 (767px 以下) - 替換圖片 */
@media screen and (max-width: 767px) {
  .main-title-image {
    content: url('images/main_title_mob.png');
    width: 200px;
  }
}

.artists-image {
  width: 900px;
  max-width: 95%;
  margin-bottom: 30px;
}

.sponsors-image {
  width: 700px;
  max-width: 90%;
  margin-bottom: 40px;
}

.ambassador-info {
  color: #595757;
  font-size: 28px;
  line-height: 2;
  font-weight: 700;
  text-align: center;
  margin-top: 80px;
}

/* ========================================
   影片區塊
   ======================================== */
.video-section {
  padding: 0px 20px;
  text-align: center;
  max-width: 1400px;
  margin: 0 auto;
}

.video-title {
  color: #ea5e73;
  font-size: 42px;
  font-weight: 900;
  margin-bottom: 40px;
  letter-spacing: 1px;
}

.video-wrapper {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background-color: #b73952;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}
/* ========================================
   送糧影片+記者會影片區塊
   ======================================== */
   .dual-video-section {
    padding: 60px 20px;
    text-align: center;
    max-width: 1400px;
    margin: 0 auto;
  }
  
  .dual-video-container {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap; /* 確保小螢幕自動換行 */
  }
  
  /* 預設狀態 (當有 2 個影片時) */
  .dual-video-container .video-wrapper {
    flex: 1;
    max-width: 600px; /* 左右並排時，限制最大寬度 */
    width: 100%;      /* 確保在小螢幕能縮放 */
    margin: 0 auto;   /* 確保自身置中 */
  }
  
  /* 🔥 自動偵測：當只有 1 個影片時 */
  .dual-video-container .video-wrapper:only-child {
    flex: 0 0 100%;   /* 強制佔滿容器寬度 */
    max-width: 900px; /* 放寬最大寬度 (與上方主影片區塊一致) */
  }
  
/* ========================================
   捐糧區塊樣式
   ======================================== */
.donation-section {
  padding: 80px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

/* 標題樣式 - 向左對齊 */
.section-title {
  color: #ea5e73;
  font-size: 42px;
  font-weight: 900;
  margin-bottom: 50px;
  text-align: left;
  letter-spacing: 1px;
}

/* 內容區域 - 左右佈局 */
.donation-content {
  display: flex;
  gap: 60px;
  align-items: center;
  justify-content: space-between;
}

/* ========================================
   圖片輪播系統 (可複用) - 簡潔版
   ======================================== */
.carousel-container {
  flex: 1;
  max-width: 700px;
}

.carousel-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel-slides {
  position: relative;
  width: 100%;
  aspect-ratio: 700 / 515;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 左右切換按鈕 - 隱藏 */
.carousel-btn {
  display: none;
}

/* 導覽小圓點 */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #d4d4d4;
  cursor: pointer;
  transition: all 0.3s;
}

.dot:hover {
  background-color: #ea5e73;
}

.dot.active {
  background-color: #ea5e73;
}

/* ========================================
   右側資訊區
   ======================================== */
.donation-info {
  flex: 1;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
}

.donation-text {
  color: #595757;
  font-size: 22px;
  line-height: 2;
  font-weight: 500;
  text-align: left;
}

/* 捐糧按鈕 - 呼吸動畫(純縮放,無陰影) */
.donate-btn {
  display: inline-block;
  cursor: pointer;
  transition: transform 0.3s;
  align-self: center;
}

.donate-btn img {
  width: 220px;
  height: auto;
  display: block;
}

.donate-btn:hover {
  transform: scale(1.05);
}

/* 呼吸動畫效果 - 移除 box-shadow */
@keyframes breathing {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }
}

.donate-btn.breathing {
  animation: breathing 2.5s ease-in-out infinite;
}

/* ========================================
   無尾香蕉動物學校區塊
   ======================================== */
.school-section {
  padding: 80px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

/* 標題樣式 - 橘色 */
.school-title {
  color: #f0871f;
  font-size: 42px;
  font-weight: 900;
  margin-bottom: 50px;
  text-align: left;
  letter-spacing: 1px;
  line-height: 1.5;
}

/* 內容區域 - 左右佈局 */
.school-content {
  display: flex;
  gap: 60px;
  align-items: center;
  justify-content: space-between;
}

/* 右側資訊區 */
.school-info {
  flex: 1;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
}

.school-text {
  color: #595757;
  font-size: 22px;
  line-height: 2;
  font-weight: 500;
  text-align: left;
}

/* 三個按鈕容器 */
.school-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  /* 或保持 80% 也可以 */
  justify-content: center;
}

/* 🔥 按鈕樣式 - 與關於區塊統一尺寸 (預設 1200-1439px) */
.school-btn {
  position: relative;
  background-color: #f0871f;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  min-width: 110px;
  text-align: center;
  display: inline-block;
  cursor: pointer;
}

/* 使用偽元素製作白色內框 */
.school-btn::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  border: 2px solid #fff;
  border-radius: 3px;
  pointer-events: none;
}

.school-btn:hover {
  background-color: #f0871fad;
}

/* 圖片說明文字 */
.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  color: #fff;
  padding: 20px;
  font-size: 16px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.carousel-slide.active .carousel-caption {
  opacity: 1;
}

/* ========================================
   學習區塊樣式
   ======================================== */
.learning-section {
  padding: 80px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

/* 標題樣式 - 藍色 */
.learning-title {
  color: #2ea6df;
  font-size: 42px;
  font-weight: 900;
  margin-bottom: 50px;
  text-align: left;
  letter-spacing: 1px;
  line-height: 1.5;
}

/* 內容區域 - 左右佈局 */
.learning-content {
  display: flex;
  gap: 60px;
  align-items: center;
  justify-content: left;
}

/* 可點擊輪播容器 */
.clickable-carousel-container {
  flex: 1;
  max-width: 700px;
}

.clickable-carousel-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  cursor: pointer;
}

.clickable-carousel-slides {
  position: relative;
  width: 100%;
  aspect-ratio: 700 / 515;
}

.clickable-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.clickable-carousel-slide.active {
  opacity: 1;
}

.clickable-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 點擊提示效果 */
.clickable-carousel-wrapper:hover {
  opacity: 0.95;
}

/* 右側資訊區 */
.learning-info {
  flex: 1;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
}

.learning-text {
  color: #595757;
  font-size: 22px;
  line-height: 2;
  font-weight: 500;
  text-align: left;
}

/* 圖片連結按鈕 */
.learning-btn {
  display: inline-block;
  cursor: pointer;
  transition: transform 0.3s;
  align-self: center;
}

.learning-btn img {
  width: 220px;
  height: auto;
  display: block;
}

.learning-btn:hover {
  transform: scale(1.05);
}

/* ========================================
   圖片燈箱 (Lightbox)
   ======================================== */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  overflow-y: auto; /* 👈 允許垂直滾動 */
  overflow-x: hidden;
  animation: fadeIn 0.3s ease-in-out;
}

.lightbox.active {
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  animation: zoomIn 0.3s ease-in-out;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lightbox-content img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* 關閉按鈕 */
.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  width: 40px;
  height: 40px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  font-size: 40px;
  color: #fff;
  font-weight: 300;
  line-height: 1;
  transition: transform 0.3s, color 0.3s;
}

.lightbox-close:hover {
  transform: rotate(90deg);
  color: #2ea6df;
}

/* ========================================
   關於毛起來愛區塊
   ======================================== */
.about-section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

/* 標題樣式 - 紅色 */
.about-title {
  color: #b4263b;
  font-size: 42px;
  font-weight: 900;
  margin-bottom: 40px;
  letter-spacing: 1px;
}

/* 主圖片 */
.about-image {
  width: 280px;
  max-width: 100%;
  height: auto;
  margin: 0 auto 40px;
  display: block;
}

/* 說明文字 */
.about-text {
  color: #595757;
  font-size: 20px;
  line-height: 2;
  font-weight: 500;
  text-align: left;
  max-width: 900px;
  margin: 0 auto 50px;
}

/* 四個按鈕容器 */
.about-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* 按鈕樣式 - 標準尺寸 (預設 1200-1439px) */
.about-btn {
  position: relative;
  background-color: #b4263b;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  min-width: 110px;
  text-align: center;
  display: inline-block;
  cursor: pointer;
}

.about-btn:hover {
  background-color: #b4263ba8;
}

/* 使用偽元素製作白色內框 */
.about-btn::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  border: 2px solid #fff;
  border-radius: 3px;
  pointer-events: none;
}

/* ========================================
   協辦單位區塊
   ======================================== */
.sponsors-section {
  padding: 60px 20px 50px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.sponsors-logo {
  width: 100%;
  max-width: 650px;
  height: auto;
  margin: 0 auto;
  display: block;
}

/* ========================================
   頁尾版權區塊
   ======================================== */
.footer {
  /*background-color: rgba(234, 94, 115, 0.1);*/
  padding: 30px 20px;
  text-align: center;
}

.copyright {
  color: #595757;
  font-size: 14px;
  line-height: 1.8;
  font-weight: 400;
  max-width: 800px;
  margin: 0 auto;
}

/* ========================================
   RWD 響應式斷點
   ======================================== */

/* 超大螢幕 (1920px 以上) */
@media screen and (min-width: 1920px) {
  .video-wrapper {
    max-width: 1100px;
  }
  
  /* 🔥 自動偵測：當只有 1 個影片時 */
  .dual-video-container .video-wrapper:only-child {
    flex: 0 0 100%;   /* 強制佔滿容器寬度 */
    max-width: 1100px; /* 放寬最大寬度 (與上方主影片區塊一致) */
  }

  .video-title,
  .section-title {
    font-size: 48px;
    margin-bottom: 45px;
  }

  .navbar {
    padding: 12px 50px;
  }

  .nav-menu {
    gap: 40px;
  }

  .nav-menu li a {
    font-size: 18px;
  }

  .sponsors-image {
    margin-bottom: 45px;
  }

  .ambassador-info {
    font-size: 34px;
    margin-top: 50px;
  }

  /* 雙影片區塊 */
  .dual-video-container {
    gap: 60px;
  }

  .dual-video-container .video-wrapper {
    max-width: 700px;
  }

  .carousel-container {
    max-width: 700px;
  }

  .donation-text {
    font-size: 24px;
  }

  .donate-btn img {
    width: 250px;
  }

  /* 🔥 學校區塊按鈕 - 與關於區塊統一 */
  .school-title {
    font-size: 48px;
    margin-bottom: 45px;
  }

  .school-text {
    font-size: 24px;
  }

  .school-btn {
    font-size: 18px;
    padding: 12px 24px;
    min-width: 130px;
  }

  .school-btn::before {
    border: 2.5px solid #fff;
  }

  /* 學習區塊 */
  .learning-title {
    font-size: 48px;
    margin-bottom: 45px;
  }

  .learning-text {
    font-size: 24px;
  }

  .learning-btn img {
    width: 250px;
  }

  .clickable-carousel-container {
    max-width: 700px;
  }

  /* 關於區塊 */
  .about-title {
    font-size: 48px;
    margin-bottom: 45px;
  }

  .about-image {
    width: 320px;
    margin-bottom: 45px;
  }

  .about-text {
    font-size: 22px;
    margin-bottom: 55px;
  }

  .about-btn {
    font-size: 18px;
    padding: 12px 24px;
    min-width: 130px;
  }

  .about-btn::before {
    border: 2.5px solid #fff;
  }

  /* 協辦單位 */
  .sponsors-section {
    padding: 70px 20px 60px;
  }

  .sponsors-logo {
    max-width: 700px;
  }

  /* 頁尾 */
  .footer {
    padding: 35px 20px;
  }

  .copyright {
    font-size: 15px;
  }
}

/* 大螢幕桌機 (1440px - 1919px) */
@media screen and (min-width: 1440px) and (max-width: 1919px) {
  .video-wrapper {
    max-width: 1000px;
  }

  .video-title,
  .section-title {
    font-size: 44px;
  }

  .artists-image {
    width: 850px;
  }

  .sponsors-image {
    margin-bottom: 42px;
  }

  .ambassador-info {
    font-size: 32px;
    margin-top: 80px;
  }

  /* 雙影片區塊 */
  .dual-video-container {
    gap: 50px;
  }

  .dual-video-container .video-wrapper {
    max-width: 650px;
  }

  .carousel-container {
    max-width: 650px;
  }

  .donate-btn img {
    width: 240px;
  }

  /* 🔥 學校區塊按鈕 - 與關於區塊統一 */
  .school-title {
    font-size: 44px;
  }

  .school-btn {
    font-size: 17px;
    padding: 11px 22px;
    min-width: 120px;
  }

  /* 學習區塊 */
  .learning-title {
    font-size: 44px;
  }

  .learning-btn img {
    width: 240px;
  }

  .clickable-carousel-container {
    max-width: 650px;
  }

  /* 關於區塊 */
  .about-title {
    font-size: 44px;
  }

  .about-image {
    width: 300px;
  }

  .about-btn {
    font-size: 17px;
    padding: 11px 22px;
    min-width: 120px;
  }

  /* 協辦單位 */
  .sponsors-logo {
    max-width: 680px;
  }
}

/* 標準桌機 (1200px - 1439px) */
@media screen and (min-width: 1200px) and (max-width: 1439px) {

  .donation-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
  }

  .dual-video-section {
    padding: 60px 20px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
  }

  .school-section {
    padding: 60px 20px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
  }

  .learning-section {
    padding: 60px 20px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
  }

  .video-wrapper {
    max-width: 900px;
  }

  .video-title,
  .section-title {
    font-size: 40px;
  }

  .artists-image {
    width: 750px;
  }

  .sponsors-image {
    width: 650px;
  }

  /* 雙影片區塊 */
  .dual-video-container {
    gap: 40px;
  }

  .dual-video-container .video-wrapper {
    max-width: 650px;
  }

  .donation-content {
    gap: 50px;
  }

  .carousel-container {
    max-width: 550px;
  }

  .donation-text {
    font-size: 20px;
  }

  .donate-btn img {
    width: 220px;
  }

  /* 學校區塊 */
  .school-title {
    font-size: 40px;
  }

  .school-content {
    gap: 50px;
  }

  .school-text {
    font-size: 20px;
  }

  /* 學習區塊 */
  .learning-title {
    font-size: 40px;
  }

  .learning-content {
    gap: 50px;
  }

  .learning-text {
    font-size: 20px;
  }

  .learning-btn img {
    width: 220px;
  }

  .clickable-carousel-container {
    max-width: 550px;
  }

  /* 關於區塊 */
  .about-title {
    font-size: 40px;
  }

  .about-image {
    width: 280px;
  }

  .about-text {
    font-size: 20px;
  }

  .about-btn {
    font-size: 16px;
    padding: 10px 20px;
    min-width: 110px;
  }

  /* 協辦單位 - 預設尺寸 */
  .sponsors-logo {
    max-width: 650px;
  }
}

/* 小型桌機/大平板橫向 (992px - 1199px) */
@media screen and (min-width: 992px) and (max-width: 1199px) {
  .video-wrapper {
    max-width: 800px;
  }

  .video-title,
  .section-title {
    font-size: 36px;
    margin-bottom: 35px;
  }

  .main-title-image {
    width: 450px;
  }

  .artists-image {
    width: 650px;
  }

  .sponsors-image {
    width: 550px;
    margin-bottom: 38px;
  }

  .ambassador-info {
    font-size: 28px;
    margin-top: 60px;
  }

  /* 雙影片區塊 */
  .dual-video-container {
    gap: 30px;
  }

  .dual-video-container .video-wrapper {
    max-width: 450px;
  }

  .donation-content {
    gap: 40px;
  }

  .carousel-container {
    max-width: 500px;
  }

  .donation-text {
    font-size: 19px;
    line-height: 1.9;
  }

  .donate-btn img {
    width: 200px;
  }

  /* 🔥 學校區塊按鈕 - 與關於區塊統一 */
  .school-title {
    font-size: 36px;
    margin-bottom: 35px;
    margin-left: 40px;
  }

  .school-content {
    gap: 40px;
  }

  .school-text {
    font-size: 19px;
    line-height: 1.9;
  }

  .school-btn {
    font-size: 15px;
    padding: 9px 18px;
    min-width: 100px;
  }

  /* 學習區塊 */
  .learning-title {
    font-size: 36px;
    margin-bottom: 35px;
  }

  .learning-content {
    gap: 40px;
  }

  .learning-text {
    font-size: 19px;
    line-height: 1.9;
  }

  .learning-btn img {
    width: 200px;
  }

  .clickable-carousel-container {
    max-width: 500px;
  }

  /* 關於區塊 */
  .about-title {
    font-size: 36px;
    margin-bottom: 35px;
  }

  .about-image {
    width: 260px;
    margin-bottom: 35px;
  }

  .about-text {
    font-size: 19px;
    margin-bottom: 45px;
  }

  .about-btn {
    font-size: 15px;
    padding: 9px 18px;
    min-width: 100px;
  }

  /* 協辦單位 */
  .sponsors-section {
    padding: 50px 20px 40px;
  }

  .sponsors-logo {
    max-width: 600px;
  }
}

/* 平板橫向 (768px - 991px) */
@media screen and (min-width: 768px) and (max-width: 991px) {
  body {
    background-attachment: scroll;
  }

  .video-wrapper {
    max-width: 650px;
    padding: 0 15px;
  }

  .video-title,
  .section-title {
    font-size: 32px;
    margin-bottom: 30px;
  }

  .main-title-image {
    width: 400px;
  }

  .artists-image {
    width: 550px;
  }

  .sponsors-image {
    width: 500px;
    margin-bottom: 35px;
  }

  .ambassador-info {
    font-size: 26px;
    line-height: 1.9;
    margin-top: 30px;
  }

  .nav-menu {
    gap: 20px;
  }

  .nav-menu li a {
    font-size: 15px;
  }

  /* 雙影片區塊 - 改為上下排列 */
  .dual-video-section {
    padding: 50px 20px;
  }

  .dual-video-container {
    flex-direction: column;
    gap: 40px;
    align-items: center;
  }

  .dual-video-container .video-wrapper {
    max-width: 600px;
    width: 100%;
  }

  .donation-section {
    padding: 60px 20px;
  }

  .section-title {
    text-align: left;
  }

  .donation-content {
    flex-direction: column;
    gap: 40px;
  }

  .carousel-container {
    max-width: 600px;
  }

  .donation-info {
    max-width: 600px;
    align-items: center;
  }

  .donation-text {
    font-size: 18px;
    line-height: 1.9;
    text-align: left;
  }

  .donate-btn img {
    width: 200px;
  }

  /* 🔥 學校區塊按鈕 - 與關於區塊統一 */
  .school-section {
    padding: 60px 20px;
  }

  .school-title {
    font-size: 32px;
    margin-bottom: 30px;
    text-align: left;
  }

  .school-content {
    flex-direction: column;
    gap: 40px;
  }

  .school-info {
    max-width: 600px;
    align-items: center;
  }

  .school-text {
    font-size: 18px;
    line-height: 1.9;
    text-align: left;
  }

  .school-buttons {
    justify-content: center;
  }

  .school-btn {
    font-size: 14px;
    padding: 8px 16px;
    min-width: 95px;
  }

  /* 學習區塊 */
  .learning-section {
    padding: 60px 20px;
  }

  .learning-title {
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
  }

  .learning-content {
    flex-direction: column;
    gap: 40px;
  }

  .learning-info {
    max-width: 600px;
    align-items: center;
  }

  .learning-text {
    font-size: 18px;
    line-height: 1.9;
    text-align: center;
  }

  .learning-btn img {
    width: 200px;
  }

  .clickable-carousel-container {
    max-width: 600px;
  }

  /* 關於區塊 */
  .about-section {
    padding: 60px 20px;
  }

  .about-title {
    font-size: 32px;
    margin-bottom: 30px;
  }

  .about-image {
    width: 240px;
    margin-bottom: 30px;
  }

  .about-text {
    font-size: 18px;
    margin-bottom: 40px;
    padding: 0 20px;
  }

  .about-btn {
    font-size: 14px;
    padding: 8px 16px;
    min-width: 95px;
  }

  /* 協辦單位 */
  .sponsors-section {
    padding: 50px 20px 35px;
  }

  .sponsors-logo {
    max-width: 550px;
  }

  /* 頁尾 */
  .footer {
    padding: 25px 20px;
  }

  .copyright {
    font-size: 13px;
  }
}

/* 平板直向 & 手機 (767px 以下) - 影片和輪播圖片幾乎滿版 */
@media screen and (max-width: 767px) {
  body {
    background-attachment: scroll;
  }

  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: #ea5e73;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    transition: right 0.3s ease-in-out;
    padding: 20px;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu li a {
    font-size: 24px;
  }

  .navbar {
    padding: 10px 20px;
  }

  .logo {
    height: 40px;
  }

  /* 🔥 影片區塊 - 手機版幾乎滿版但留邊界 */
  .video-wrapper {
    max-width: 100%;
    padding: 0 15px;
  }

  .video-section {
    padding: 40px 15px 0px;
  }

  .video-title {
    font-size: 28px;
    margin-bottom: 25px;
    text-align: center;
  }

  .section-title {
    font-size: 28px;
    margin-bottom: 25px;
    text-align: left;
  }

  .hero-section {
    padding: 30px 5px;
  }

  .year-image {
    width: 100px;
    margin-bottom: 18px;
  }

  .main-title-image {
    width: 100%;
    margin-bottom: 25px;
  }

  .artists-image {
    width: 100%;
    margin-bottom: 25px;
  }

  .sponsors-image {
    width: 100%;
    margin-bottom: 30px;
  }

  .ambassador-info {
    font-size: 26px;
    line-height: 1.8;
    padding: 0 10px;
    margin-top: 0px;
  }

  /* 🔥 雙影片區塊 - 上下排列,幾乎滿版 */
  .dual-video-section {
    padding: 40px 15px;
  }

  .dual-video-container {
    flex-direction: column;
    gap: 30px;
    align-items: center;
  }

  .dual-video-container .video-wrapper {
    max-width: 100%;
    width: 100%;
    padding: 0 15px;
  }

  .donation-section {
    padding: 50px 15px;
  }

  .donation-content {
    flex-direction: column;
    gap: 35px;
  }

  /* 🔥 輪播容器 - 手機版幾乎滿版但留邊界 */
  .carousel-container {
    max-width: 100%;
    width: 100%;
    padding: 0 15px;
  }

  .dot {
    width: 10px;
    height: 10px;
  }

  .dot.active {
    width: 12px;
    height: 12px;
  }

  .donation-info {
    max-width: 100%;
    gap: 30px;
    align-items: center;
  }

  .donation-text {
    font-size: 17px;
    line-height: 1.8;
    padding: 0 10px;
    text-align: left;
  }

  .donate-btn img {
    width: 180px;
  }

  /* 🔥 學校區塊按鈕 - 與關於區塊統一 */
  .school-section {
    padding: 50px 15px;
  }

  .school-title {
    font-size: 28px;
    margin-bottom: 25px;
    text-align: left;
  }

  .school-content {
    flex-direction: column;
    gap: 35px;
  }

  .school-info {
    max-width: 100%;
    gap: 30px;
    align-items: center;
  }

  .school-text {
    font-size: 17px;
    line-height: 1.8;
    padding: 0 10px;
    text-align: left;
  }

  .school-buttons {
    justify-content: center;
    width: 80%;
    gap: 8px;
  }

  .school-btn {
    font-size: 18px;
    padding: 7px 14px;
    min-width: 85px;
    flex: 0 0 calc(50% - 4px);
  }

  .school-btn::before {
    border: 1.5px solid #fff;
  }

  .carousel-caption {
    font-size: 14px;
    padding: 15px;
  }

  /* 學習區塊 */
  .learning-section {
    padding: 50px 15px;
  }

  .learning-title {
    font-size: 28px;
    margin-bottom: 25px;
    text-align: left;
  }

  .learning-content {
    flex-direction: column;
    gap: 35px;
  }

  .learning-info {
    max-width: 100%;
    gap: 30px;
    align-items: center;
  }

  .learning-text {
    font-size: 17px;
    line-height: 1.8;
    padding: 0 10px;
    text-align: left;
  }

  .learning-btn img {
    width: 180px;
  }

  /* 🔥 可點擊輪播容器 - 手機版幾乎滿版但留邊界 */
  .clickable-carousel-container {
    max-width: 100%;
    width: 100%;
    padding: 0 15px;
  }

  .lightbox-close {
    top: -45px;
    width: 35px;
    height: 35px;
    font-size: 35px;
  }

  /* 關於區塊 */
  .about-section {
    padding: 50px 15px;
  }

  .about-title {
    font-size: 28px;
    margin-bottom: 25px;
  }

  .about-image {
    width: 220px;
    margin-bottom: 30px;
  }

  .about-text {
    font-size: 17px;
    line-height: 1.8;
    padding: 0 10px;
    margin-bottom: 35px;
  }

  .about-buttons {
    gap: 10px;
    width: 80%;
    margin: 0 auto;
  }

  .about-btn {
    font-size: 18px;
    padding: 7px 14px;
    min-width: 85px;
  }

  .about-btn::before {
    border: 1.5px solid #fff;
  }

  /* 協辦單位 - 手機版縮小 10% */
  .sponsors-section {
    padding: 40px 15px 30px;
  }

  .sponsors-logo {
    max-width: 90%;
  }

  /* 頁尾 - 手機版字體縮小 */
  .footer {
    padding: 25px 15px;
  }

  .copyright {
    font-size: 11px;
    line-height: 1.6;
  }
}

/* 大手機 (480px - 575px) */
@media screen and (max-width: 575px) {
  .main-title-image {
    width: 100%;
  }

  .video-title,
  .section-title {
    font-size: 26px;
  }

  .sponsors-image {
    margin-bottom: 28px;
  }

  .ambassador-info {
    font-size: 24px;
  }

  /* 學校區塊 */
  .school-title {
    font-size: 26px;
  }

  /* 學習區塊 */
  .learning-title {
    font-size: 26px;
  }

  /* 關於區塊 */
  .about-title {
    font-size: 26px;
  }

  .about-image {
    width: 200px;
  }

  .about-btn {
    font-size: 12px;
    padding: 6px 12px;
    min-width: 80px;
  }

  /* 🔥 學校區塊按鈕 - 與關於區塊統一 */
  .school-btn {
    font-size: 12px;
    padding: 6px 12px;
    min-width: 80px;
  }

  /* 協辦單位 - 再縮小一點 */
  .sponsors-logo {
    max-width: 85%;
  }

  /* 版權文字 - 更小 */
  .copyright {
    font-size: 10px;
  }
}

/* 小手機 (480px 以下) */
@media screen and (max-width: 479px) {
  .year-image {
    width: 80px;
    margin-bottom: 15px;
  }

  .main-title-image {
    width: 180px;
    margin-bottom: 20px;
  }

  .sponsors-image {
    margin-bottom: 25px;
  }

  .ambassador-info {
    font-size: 22px;
    line-height: 1.8;
  }

  .video-title,
  .section-title {
    font-size: 24px;
    margin-bottom: 20px;
    padding: 0 12px;
  }

  .hero-section {
    padding: 20px 5px;
  }

  /* 🔥 影片區塊 - 小手機留更小邊界 */
  .video-wrapper {
    padding: 0 12px;
  }

  /* 雙影片區塊 */
  .dual-video-section {
    padding: 40px 10px 0px;
  }

  .dual-video-container {
    gap: 25px;
  }

  .dual-video-container .video-wrapper {
    padding: 0 12px;
  }

  .donation-section {
    padding: 40px 10px 0px;
  }

  .donation-content {
    gap: 30px;
  }

  /* 🔥 輪播容器 - 小手機留更小邊界 */
  .carousel-container {
    padding: 0 12px;
  }

  .carousel-dots {
    gap: 10px;
  }

  .dot {
    width: 9px;
    height: 9px;
  }

  .dot.active {
    width: 9px;
    height: 9px;
  }

  .donation-text {
    font-size: 18px;
    line-height: 1.8;
  }

  .donate-btn img {
    width: 160px;
  }

  /* 🔥 學校區塊按鈕 - 與關於區塊統一 */
  .school-title {
    font-size: 24px;
    margin-bottom: 20px;
    padding: 0 12px;
  }

  .school-section {
    padding: 40px 10px 0px;
  }

  .school-content {
    gap: 30px;
  }

  .school-text {
    font-size: 18px;
    line-height: 1.8;
  }

  .school-buttons {
    gap: 8px;
  }

  .school-btn {
    font-size: 18px;
    padding: 5px 10px;
    min-width: 70px;
    flex: 0 0 calc(50% - 4px);
  }

  .carousel-caption {
    font-size: 13px;
    padding: 12px;
  }

  /* 學習區塊 */
  .learning-title {
    font-size: 24px;
    margin-bottom: 20px;
    padding: 0 12px;
  }

  .learning-section {
    padding: 40px 10px 0px;
  }

  .learning-content {
    gap: 30px;
  }

  .learning-text {
    font-size: 18px;
    line-height: 1.8;
  }

  .learning-btn img {
    width: 160px;
  }

  /* 🔥 可點擊輪播容器 - 小手機留更小邊界 */
  .clickable-carousel-container {
    padding: 0 12px;
  }

  .lightbox-close {
    top: -40px;
    width: 30px;
    height: 30px;
    font-size: 30px;
  }

  /* 關於區塊 */
  .about-title {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .about-section {
    padding: 40px 10px;
  }

  .about-image {
    width: 180px;
    margin-bottom: 25px;
  }

  .about-text {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
  }

  .about-buttons {
    gap: 8px;
  }

  .about-btn {
    font-size: 18px;
    padding: 5px 10px;
    min-width: 70px;
    flex: 0 0 calc(50% - 4px);
  }

  .about-btn::before {
    border: 1.5px solid #fff;
  }

  /* 協辦單位 - 小手機更小 */
  .sponsors-section {
    padding: 35px 10px 25px;
  }

  .sponsors-logo {
    max-width: 80%;
  }

  /* 頁尾 - 小手機字體最小 */
  .footer {
    padding: 20px 10px;
  }

  .copyright {
    font-size: 9px;
    line-height: 1.5;
  }
}

/* ========================================
   滾動動畫效果
   ======================================== */
/* ========================================
   首屏初始隱藏 - 避免詭異的閃現效果
   ======================================== */

   .hero-section {
    opacity: 0;
    transform: translateY(30px);
  }
  
  /* 當添加 show class 時才顯示 */
  .hero-section.show {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  }
  
/* 預設隱藏狀態 - 向下偏移且透明 */
.scroll-animate {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* 當元素進入視窗時的顯示狀態 */
.scroll-animate.show {
  opacity: 1;
  transform: translateY(0);
}

/* 為不同區塊添加延遲效果,讓動畫更有層次感 */
.scroll-animate.delay-1 {
  transition-delay: 0.1s;
}

.scroll-animate.delay-2 {
  transition-delay: 0.2s;
}

.scroll-animate.delay-3 {
  transition-delay: 0.3s;
}

/* 針對標題的特殊動畫 */
.scroll-animate.title-animate {
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* 針對按鈕的特殊動畫 */
.scroll-animate.button-animate {
  transform: translateY(20px) scale(0.95);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.scroll-animate.button-animate.show {
  transform: translateY(0) scale(1);
}

/*2025.11.21修改*/
/* 標題容器 - 左右佈局 */
.section-header {
  display: flex;
  align-items: center;
  margin-bottom: 50px;
  gap: 100px;  /* 圖片與標題的間距 */
}

.special-gap {
  gap: 150px;  /* 圖片與標題的間距 */
}

/* 調整標題樣式 */
.section-header .section-title {
  margin-bottom: 0;
  /*flex: 1;*/
}

/* 左側 Logo 圖片 */
.section-logo {
  width: 150px;
  height: auto;
  flex-shrink: 0;
  order: 1;  /* 確保圖片在後面 */
}

/*標題字不同色*/
/* 第二個標題 - 橘色 */
#school .section-title {
  color: #f0871f;
}

/* 第三個標題 - 淺藍色 */
#learning .section-title {
  color: #2ea6df;
}


/* ========================================
   RWD 響應式調整
   ======================================== */

/* 大螢幕 (1920px 以上) */
@media screen and (min-width: 1920px) {
  .section-header {
    gap: 100px;
  }
  .section-logo {
    width: 150px;
  }
}

/* 大螢幕桌機 (1440px - 1919px) */
@media screen and (min-width: 1440px) and (max-width: 1919px) {
  .section-header {
    gap: 100px;
  }
  .section-logo {
    width: 150px;
  }
}

/* 標準桌機 (1200px - 1439px) */
@media screen and (min-width: 1200px) and (max-width: 1439px) {
  .section-header {
    gap: 100px;
  }
  .section-logo {
    width: 140px;
  }
}

/* 小型桌機/大平板橫向 (992px - 1199px) */
@media screen and (min-width: 992px) and (max-width: 1199px) {
  .section-header {
    gap: 18px;
  }
  .section-logo {
    width: 140px;
  }
}

/* 平板橫向 (768px - 991px) */
@media screen and (min-width: 768px) and (max-width: 991px) {
  .section-header {
    gap: 15px;
  }
  .section-logo {
    margin-left: 10px;
    width: 120px;
  }
}

/* 平板直向 & 手機 (767px 以下) */
@media screen and (max-width: 767px) {
  .section-header {
    gap: 8px;
    margin-left: 10px;
    margin-bottom: 30px;
  }
  
  .section-logo {
    width: 100px;
  }
}

/* 大手機 (480px - 575px) */
@media screen and (max-width: 575px) {
  .section-header {
    gap: 5px;
    margin-left: 10px;
  }
  
  .section-logo {
    width: 70px;
  }
}

/* 小手機 (480px 以下) */
@media screen and (max-width: 479px) {
  .section-header {
    gap: 50px;
    margin-left: 10px;
    margin-bottom: 25px;
  }
  
.special-gap {
  gap: 100px;  /* 圖片與標題的間距 */
}
  
  .section-logo {
    width: 70px;
  }
}
