html {
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  font-family:
    "Chiron GoRound TC", "Noto Sans TC", Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 300;
  color: #000000;
  overflow-x: hidden;
}

::selection {
  background-color: #fff49d;
}

a,
button {
  transition: all 0.3s ease;
}

a:hover {
  text-decoration: none;
}

/* ---------------------------------------------------------------- */
/* Icon 1 */

.animated-icon1,
.animated-icon2,
.animated-icon3 {
  width: 30px;
  height: 20px;
  position: relative;
  margin: 0px;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: 0.5s ease-in-out;
  -moz-transition: 0.5s ease-in-out;
  -o-transition: 0.5s ease-in-out;
  transition: 0.5s ease-in-out;
  cursor: pointer;
}

.animated-icon1 span,
.animated-icon2 span,
.animated-icon3 span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  border-radius: 9px;
  opacity: 1;
  left: 0;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: 0.25s ease-in-out;
  -moz-transition: 0.25s ease-in-out;
  -o-transition: 0.25s ease-in-out;
  transition: 0.25s ease-in-out;
}

.animated-icon1 span {
  background: #fff;
}

.animated-icon2 span {
  background: #e3f2fd;
}

.animated-icon3 span {
  background: #f3e5f5;
}

.animated-icon1 span:nth-child(1) {
  top: 0px;
}

.animated-icon1 span:nth-child(2) {
  top: 10px;
}

.animated-icon1 span:nth-child(3) {
  top: 20px;
}

.animated-icon1.open span:nth-child(1) {
  top: 11px;
  -webkit-transform: rotate(135deg);
  -moz-transform: rotate(135deg);
  -o-transform: rotate(135deg);
  transform: rotate(135deg);
}

.animated-icon1.open span:nth-child(2) {
  opacity: 0;
  left: -60px;
}

.animated-icon1.open span:nth-child(3) {
  top: 11px;
  -webkit-transform: rotate(-135deg);
  -moz-transform: rotate(-135deg);
  -o-transform: rotate(-135deg);
  transform: rotate(-135deg);
}

.navbar-dark .navbar-toggler {
  border-color: transparent;
}

/* -------------------------------------- */
/* 六大主題區塊專用樣式 */
/* -------------------------------------- */
.theme-section-wrapper {
  background-color: #ef3a7f; /* 桃紅色背景 */
  color: #ffffff;
  padding: 60px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 主容器 */
.theme-section-container {
  max-width: 800px;
  width: 100%;
  text-align: center;
}

/* 主標題與副標題 */
.theme-section-main-title {
  font-size: 3rem;
  font-weight: 800;
  color: #ffeb3b; /* 黃色文字 */
  margin-bottom: 8px;
  line-height: 1.3;
}

.theme-section-subtitle {
  font-size: 1.9rem;
  color: #ffffff;
  opacity: 0.9;
  margin-bottom: 50px;
  line-height: 1.5;
  font-weight: 500;
}

/* 六大主題網格 (3欄 x 2列) */
.theme-section-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 20px;
}

/* 單一卡片 */
.theme-section-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 圖示容器與搖晃動畫 */
.theme-section-icon-box {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.theme-section-icon-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  /* 套用原地微微晃動動畫 */
  animation: themeSectionWiggle 2.5s infinite ease-in-out;
}

/* 讓偶數卡片的動畫錯開時間，增加動態豐富度 */
.theme-section-card:nth-child(even) .theme-section-icon-img {
  animation-delay: 0.3s;
}

/* 文字內容 */
.theme-section-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.theme-section-card-desc {
  font-size: 1.1rem;
  line-height: 1.5;
  opacity: 0.9;
  font-weight: 400;
}

/* 獨特命名的搖晃 keyframes */
@keyframes themeSectionWiggle {
  0%,
  100% {
    transform: rotate(0deg);
  }
  20% {
    transform: rotate(-4deg);
  }
  40% {
    transform: rotate(4deg);
  }
  60% {
    transform: rotate(-2deg);
  }
  80% {
    transform: rotate(2deg);
  }
}

@media (max-width: 768px) {
  .theme-section-grid {
    grid-template-columns: repeat(2, 1fr); /* 保持 2 欄 */
    gap: 25px 10px;
  }

  .theme-section-icon-box {
    width: 100px;
    height: 100px;
  }

  .theme-section-card-title {
    font-size: 1.2rem;
  }

  .theme-section-card-desc {
    font-size: 0.9rem;
  }
  .theme-section-main-title {
    font-size: 1.9rem;
  }
  .theme-section-subtitle {
    font-size: 1rem;
  }
}

/* CSS 樣式 */
.wave-wrapper {
  width: 100%;
  line-height: 0;
  margin-top: -1px;
  overflow: hidden;
}

.wave-wrapper picture {
  display: block;
  width: 102%;
  margin-left: -1%;
}

.wave-wrapper img {
  width: 102%;
  max-width: none;
  height: auto;
  display: block;
}

/* -新增的css---------------------------------------------------- */
.navbar-bg {
  background-color: #ef3a7f;
}

.navbar-bg a {
  color: #ffffff;
}

.banner {
  padding-left: 0px;
  padding-right: 0px;
}

.banner img {
  width: 100%;
}

.navbar-expand-lg .navbar-nav .nav-link {
  padding-right: 0.6rem;
  padding-left: 0.6rem;
}

.navbar-dark .navbar-nav .nav-link {
  color: #fff;
  font-size: 16px;
}
.navbar-dark .navbar-nav .nav-link:hover {
  cursor: pointer;
}

.contact-item img {
  width: 100%;
}

footer {
  background-color: #000000;
  color: #fff;
  font-size: 14px;
}

.top_nav {
  padding-right: 0px;
}

/* --選擇課程日期---------------------------------------------------- */

.class-date {
  padding: 6px 15px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 25px;
  background: #ffe200;
  color: #6187d8;
  border: 2px solid #6187d8;
  display: inline-flex;
  align-items: center;
}

.class-date::after {
  content: "";
  border: solid #6187d8;
  border-width: 0 4px 4px 0;
  display: inline-block;
  padding: 4px; /* 箭頭的大小 */
  transform: rotate(45deg);
  margin-left: 10px;
  transition: transform 0.3s ease;
  position: relative;
  top: -2px;
}

/* --- ↓↓↓ 美化 Dropdown Menu 的樣式 ↓↓↓ --- */

/* 1. dropdown-menu (選單本體) 的樣式 */
.dropdown-menu {
  background-color: #fff9d4;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border: none;
  margin-top: 10px !important;
  max-height: 330px;
  overflow-y: auto;
  padding: 10px 5px;
}

.dropdown-item {
  color: #333;
  font-weight: 600;
  font-size: 16px;
  padding: 10px 20px;
  border-radius: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition:
    background-color 0.2s ease-out,
    color 0.2s ease-out;
}

.dropdown-item:hover {
  background-color: #6187d8;
  color: #ffffff;
}

.dropdown-item.active,
.dropdown-item:active {
  background-color: #193693;
  color: white;
}

/* 美化捲軸樣式 */
.dropdown-menu::-webkit-scrollbar {
  width: 8px;
}
.dropdown-menu::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}
.dropdown-menu::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}
.dropdown-menu::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}

/* 讓按鈕的箭頭在展開時向上旋轉 */
.class-date.dropdown-toggle[aria-expanded="true"]::after {
  /* Bootstrap 會在按鈕展開時加上 aria-expanded="true" 屬性 */
  transform: rotate(-135deg);
  top: 0px;
}

@media (max-width: 768px) {
  .dropdown-menu {
    max-width: 410px;
  }
  .dropdown-item {
    font-size: 15px;
  }
}

/* -------------------------------------------------------------- */

.text_p {
  color: #6187d8;
  font-size: 18px;
  text-align: right;
}

.text_p_daan {
  color: #ef3a7f;
  font-size: 18px;
  text-align: right;
}

.onlinebuy-a-taoyuan {
  color: #ef3a7f;
  font-weight: 600;
}

.onlinebuy-taoyuan {
  padding: 6px 15px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 25px;
  background: #ef3a7f;
  color: #fff;
  display: inline-flex;
  align-items: center;
  transition: transform 0.2s ease-out;
}

.onlinebuy-taoyuan:hover {
  transform: scale(1.05);
  background: #c9356e;
}

.onlinebuy-taoyuan::before {
  content: "";
  border: solid #fff;
  border-width: 0 4px 4px 0;
  display: inline-block;
  padding: 4px; /* 箭頭的大小 */
  transform: rotate(-45deg);
  margin-right: 10px;
  transition: transform 0.3s ease;
}

/* -------------------------------------------------------- */

#aboutus {
  margin-top: 100px;
}
.banner02 {
  text-align: right;
}

.banner03 {
  text-align: left;
}

.banner02 img {
  width: 70%;
}
.banner03 img {
  width: 75%;
}
.scelogo {
  max-width: 180px;
}

.copyright a {
  color: #fff100;
}

.sub_title {
  font-size: 23px;
  color: #ef3a7f;
  font-weight: 600;
}

.numcolor {
  background-color: #ef3a7f;
  border-radius: 50%;
  color: #fff;
  width: 22px;
  height: 22px;
  display: inline-block;
  text-align: center;
  font-size: 16px;
}

.main-sub_title {
  font-size: 23px;
  color: #6187d8;
  font-weight: 600;
}

.main-numcolor {
  background-color: #6187d8;
  border-radius: 50%;
  color: #fff;
  width: 22px;
  height: 22px;
  display: inline-block;
  text-align: center;
  font-size: 16px;
}

.courseNum {
  font-size: 38px;
  font-weight: 700;
  color: #6187d8;
}

@media (max-width: 768px) {
  .courseNum {
    font-size: 32px;
  }
}

.C_title01 {
  font-size: 31px;
  color: #eb6d8e;
  font-weight: 700;
}
.C_title02 {
  font-size: 31px;
  color: #ee7959;
  font-weight: 700;
}

.course_sub {
  font-size: 22px;
}

.course table,
.course td,
.course thead th {
  border: 1px solid #000000;
}

.course a {
  color: #000000;
  text-decoration: none;
}

.course a:hover {
  text-decoration: none;
  color: #00ada9;
}

.nav-tabs .nav-link {
  color: #3667c8;
}

.nav-tabs .nav-link:hover {
  color: #39271a;
}

.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active {
  color: #39271a;
}

.title img {
  width: 25%;
}

.ch_img {
  width: 75%;
}
.title00 {
  width: 40%;
}
.allClass {
  color: #fff;
  background-color: #ef3a7f;
  padding: 5px 10px;
  border-radius: 12px;
}
.allClass:hover {
  background-color: #e5e5e5;
  color: #ef3a7f;
}

.main-allClass {
  color: #fff;
  background-color: #6187d8;
  padding: 5px 10px;
  border-radius: 12px;
}
.main-allClass:hover {
  background-color: #e5e5e5;
  color: #6187d8;
}

.dropdown_a {
  color: #000 !important;
}

.dropdown_a:hover {
  color: #fff !important;
}

.lessons_tag01 {
  color: #fff;
  background-color: #ef3a7f;
  text-decoration: none;
  border-radius: 5px;
  padding: 8px 28px;
  font-weight: 700;
  font-size: 19px;
}

.lessons_tag01:hover,
.lessons_tag02:hover {
  background-color: #e5e5e5;
  color: #000;
}

.lessons_tag02 {
  color: #fff;
  background-color: #ec7aac;
  text-decoration: none;
  border-radius: 5px;
  padding: 8px 28px;
  margin-left: 10px;
  font-weight: 700;
  font-size: 19px;
}

.red_text {
  color: #ec4943;
  font-size: 15px;
}

.line {
  margin-top: 20px;
}

.line img {
  max-width: 120px;
  margin-top: 10px;
}

@media print {
  .print_lessons {
    page-break-inside: avoid; /* 若順著向下排列時會切開此元素，則直接換頁 */
    page-break-after: always; /* 碰到此元素會直接換頁 */
    page-break-before: always;
  }

  .title img {
    width: 300px !important;
  }

  .lessons_tag {
    display: none !important;
  }

  thead {
    color: #000000 !important;
    -webkit-print-color-adjust: exact;
    color-adjust: exact;
  }

  table,
  blockquote {
    page-break-inside: auto;
    -webkit-print-color-adjust: exact;
    color-adjust: exact;
  }

  h1,
  h2,
  h3,
  h5,
  h6 {
    page-break-after: avoid;
    page-break-before: always;
    page-break-inside: avoid;
  }
  h1 + p,
  h2 + p,
  h3 + p {
    page-break-before: avoid;
  }
  a {
    page-break-inside: avoid;
  }
  ul,
  ol,
  dl {
    page-break-before: avoid;
  }

  body {
    -webkit-print-color-adjust: exact;
    color-adjust: exact;
  }
  @page {
    size: portrait; /* 直向 */
    size: landscape; /* 橫向 */
    size: A4; /* 紙張大小 */
    size: A4 portrait; /* 混合使用 */
    margin: 0.5cm; /* 邊界與內容的距離 */
  }
}
/* ----------------------------------------------------- */

@media (max-width: 1054px) {
}

@media (max-width: 991px) {
  .title img {
    width: 40%;
  }
}

@media (max-width: 768px) {
  .div_left {
    padding-right: 15px !important;
  }

  .title img {
    width: 46%;
  }
  .title00 {
    width: 75%;
  }
}

@media (max-width: 767px) {
  .banner02,
  .banner03 {
    text-align: center;
  }

  .banner02 img {
    width: 90%;
  }

  .copyright {
    text-align: center;
    margin-top: 16px;
  }

  .title img {
    width: 55%;
  }
  .banner03 {
    margin-top: 20px;
  }
}

@media (max-width: 730px) {
}

@media (max-width: 575px) {
  .ch_img {
    width: 43%;
  }
}

@media (max-width: 485px) {
  .table td,
  .table th {
    padding: 0.65rem;
  }
}

@media (max-width: 443px) {
  .title img {
    width: 65%;
  }
  .title00 {
    width: 85%;
  }
}

@media (max-width: 320px) {
}

/* ------------------------------------------------------------ */
/* 建國分部和大安分部錨點按鈕 */
.campus-section {
  padding: 80px 20px 50px 20px;
  text-align: center;
}

.campus-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 30px;
}

/* 按鈕連結基本設定 */
.campus-card {
  display: block;
  width: 100%;
  max-width: 350px;
  text-decoration: none;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

/* 圖片層疊容器：在桌機與手機都統一由這裡控制大小與置中 */
.image-box {
  position: relative;
  width: 100%;
  max-width: 350px; /* 桌機版預設最大寬度 */
  margin: 0 auto; /* 確保容器本身水平置中 */
}

.image-box img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.4s ease-in-out;
}

/* 預設隱藏滿版底色圖（hover 圖），並與原圖完美疊合 */
.image-box img.hover-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

/* 滑鼠移入 (Hover) 特效 */
.campus-card:hover {
  transform: translateY(-8px); /* 輕微浮起特效 */
}

.campus-card:hover .image-box img.default-img {
  opacity: 0; /* 隱藏原圖 */
}

.campus-card:hover .image-box img.hover-img {
  opacity: 1; /* 顯示滿版底色圖 */
}

/* 手機版響應式設計：改為上下排列並統一控制圖片尺寸與置中 */
@media (max-width: 768px) {
  .campus-container {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .campus-card {
    max-width: 100%;
  }

  /* 在手機版統一縮小 `.image-box` 的最大寬度，因為設定了 margin: 0 auto，兩張圖（default 與 hover）會一起完美置中且不會跑版 */
  .image-box {
    max-width: 270px;
    margin: 0 auto;
  }
}

/* ----------------------------------------------------------------- */
.heading-with-arrow {
  display: flex; /* 使用 flexbox 讓箭頭和文字並排 */
  align-items: center; /* 垂直置中 */
  gap: 2px; /* 增加箭頭和文字之間的間距，因為箭頭變大了 */
  margin: 10px 0;
  color: #ef3a7f;
  font-weight: 700;
}

.heading-with-arrow .arrow-icon {
  width: 30px; /* 箭頭的寬度，從 20px 增加到 30px */
  height: 30px; /* 箭頭的高度，從 20px 增加到 30px */
  fill: #ef3a7f; /* 箭頭的顏色 */
  flex-shrink: 0; /* 防止箭頭在空間不足時被壓縮 */
}

.heading-with-arrow h4 {
  margin: 0;
}

.main-arrow {
  color: #6187d8;
}

.main-arrow .arrow-icon {
  fill: #6187d8;
}

/* ------------------------------------------------------- */
/* --- 桌面版樣式 (基本不變) --- */
.banner-wrapper {
  position: relative;
  width: 100%;
}

.banner-wrapper.desktop-view {
  padding-bottom: 48%; /* 桌面版圖片比例 */
  height: 0;
  background-color: #ef3a7f;
}

.background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

.title-overlay-desktop {
  position: absolute;
  top: 15%;
  left: 9%;
  width: 37%;
  height: auto;
  max-height: 90%;
  object-fit: contain;
  object-position: left top;
  z-index: 2;
  transform: translateY(-40px);
  opacity: 0;
  animation: slideInDown 1s ease-out forwards;
  animation-delay: 0.5s;
}

@keyframes slideInDown {
  0% {
    transform: translateY(-40px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* RWD 圖片切換輔助類別 */
.mobile-only {
  display: none;
}
.desktop-only {
  display: block;
}

/* --- 中螢幕 RWD 調整 --- */
@media (max-width: 768px) {
  .banner-wrapper.desktop-view {
    padding-bottom: 56.1083%;
  }
  .title-overlay-desktop {
    width: 40%;
    top: 12%;
    left: 3%;
  }
}

/* --- 手機版 RWD 調整 (max-width: 480px) --- */
@media (max-width: 600px) {
  /* 1. 切換顯示的容器 */
  .desktop-only {
    display: none;
  }
  .mobile-only {
    display: block;
  }

  /* 2. 手機版的主容器 */
  .banner-wrapper.mobile-view {
    position: relative;
    /* 主容器不再有 padding-bottom 或 height
        它的高度由內部的兩個子元素決定 
      */
  }

  /* 3. 手機版背景圖區域 */
  .mobile-image-zone {
    position: relative; /* 用於定位內部的 img */
    width: 100%;
    padding-bottom: 169%; /* 手機背景圖比例 (1737 / 1439) */
    height: 0;
    z-index: 1; /* 圖層 1 */
  }

  /* 背景圖 img 標籤本身 */
  .mobile-image-zone .background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* 4. 靜態的藍色背景區域 */
  .mobile-title-background-zone {
    position: relative;
    width: 100%;
    height: 250px; /* 藍色區域的高度，您可以自行調整 */
    background-color: #6187d8;
    z-index: 1; /* 圖層 1 (與圖片同層) */
    /* 這個區塊會緊跟在圖片區域下方 */
  }

  /* 5. 單獨的、會滑入的標題圖 */
  .title-overlay-mobile {
    position: absolute; /* 相對於 .banner-wrapper 定位 */
    top: 12vw;
    left: 11%;
    width: 75%;
    height: auto;
    object-fit: contain;
    z-index: 3; /* 圖層 3 (在所有東西之上) */

    /* 動畫初始狀態 */
    transform: translateY(-40px);
    opacity: 0;
    animation: slideInDownMobile 1s ease-out forwards;
    animation-delay: 0.5s;
  }

  /* 手機版標題圖的動畫 */
  @keyframes slideInDownMobile {
    0% {
      transform: translateY(-40px);
      opacity: 0;
    }
    100% {
      transform: translateY(0); /* 滑入到 'top: 95vw' 的位置 */
      opacity: 1;
    }
  }
}

/* ------------------------------------------------- */
/* 優惠資訊 */
/* ------------------------------------------------- */
.main-sale-title {
  margin-top: 90px;
}

/* 區塊基本設定 */
.discount-section {
  padding: 10px 20px 30px 20px;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
}

/* 外框主容器 */
.discount-box {
  position: relative;
  width: 100%;
  max-width: 950px;
  border: 3px solid #6187d8;
  border-radius: 30px;
  padding: 40px 40px 60px 40px;
  box-sizing: border-box;
  text-align: center;
  margin-top: 40px; /* 預留上方空間給裝飾小鳥 */
}

/* 右上角裝飾小鳥圖片 */
.bird-decor {
  position: absolute;
  top: -45px;
  right: 35px;
  width: 110px;
  height: auto;
  z-index: 2;
}

/* 標題與副標題 */
.discount-title {
  color: #6187d8;
  font-size: 2.2rem;
  font-weight: 800; /* ExtraBold */
  margin: 0 0 10px 0;
}

.discount-subtitle {
  color: #6187d8;
  font-size: 1.25rem;
  font-weight: 500; /* Medium */
  margin: 0 0 50px 0;
  line-height: 1.6;
}

/* 桌機版三欄排版網格 */
.discount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  position: relative;
}

/* 單個優惠方案欄位 */
.discount-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 15px;
}

/* 欄位之間的分隔線 (桌機版適用) */
.discount-item:not(:last-child):after {
  content: "";
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 2px;
  background-color: #6187d8;
}

/* 說明文字 */
.item-desc {
  color: #333333;
  font-size: 1.25rem;
  font-weight: 500; /* Medium */
  line-height: 1.5;
  min-height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

/* 折扣數字與單位 */
.item-number-wrap {
  display: flex;
  align-items: baseline;
  color: #6187d8;
}

.item-number {
  font-size: 5.5rem;
  font-weight: 800; /* ExtraBold */
  line-height: 1;
}

.item-unit {
  font-size: 1.5rem;
  font-weight: 800; /* ExtraBold */
  margin-left: 4px;
}

/* 底部凸出的膠囊標語 */
.discount-footer-badge {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #6187d8;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 5px 120px;
  border-radius: 50px;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(97, 135, 216, 0.3);
}

/* 手機版響應式設計 (RWD) */
@media (max-width: 768px) {
  .discount-section {
    padding: 10px 15px 40px 15px;
  }

  .discount-box {
    padding: 40px 20px 60px 20px;
    border-radius: 24px;
  }

  /* 手機版小鳥位置與大小調整 */
  .bird-decor {
    top: -35px;
    right: 15px;
    width: 85px;
  }

  .discount-title {
    font-size: 1.8rem;
  }

  .discount-subtitle {
    font-size: 1.1rem;
    margin-bottom: 30px;
  }

  /* 手機版改為單欄上下排列 */
  .discount-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
  }

  /* 取消桌機分隔線，改用底部橫線 */
  .discount-item:not(:last-child):after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 15%;
    right: 15%;
    top: auto;
    height: 2px;
    width: auto;
    background-color: #6187d8;
  }

  .discount-item {
    padding-bottom: 15px;
  }

  .item-desc {
    min-height: auto;
    font-size: 1.1rem;
    margin-bottom: 10px;
  }

  .item-number {
    font-size: 4.5rem;
  }

  .discount-footer-badge {
    font-size: 1rem;
    padding: 10px 30px;
    bottom: -22px;
  }
}

/* 團報優惠 */
.group-discount-section {
  padding: 30px 20px;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
}

/* 主卡片外框 */
.discount-card {
  position: relative;
  width: 100%;
  max-width: 950px;
  border: 3px solid #ef6352;
  border-radius: 30px;
  padding: 30px 20px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 40px;
  background-color: #ffffff;
}

/* 左側：折扣數字與吉祥物圖片容器 */
.discount-left {
  flex: 0 0 35%;
  display: flex;
  flex-direction: column; /* 桌機版：數字在上，圖片在下 */
  align-items: center;
  text-align: center;
}

/* 折扣數字樣式 */
.group-discount-section .discount-number-wrap {
  display: flex;
  align-items: baseline;
  color: #ef6352;
}

.discount-num {
  font-size: 5.5rem;
  font-weight: 800;
  line-height: 1;
}

.discount-unit {
  font-size: 1.8rem;
  font-weight: 800;
  margin-left: 4px;
}

/* 吉祥物圖片 */
.characters-img {
  width: 100%;
  max-width: 260px;
  height: auto;
  margin-top: 15px;
  display: block;
}

/* 桌機版垂直分隔線 */
.discount-divider {
  width: 2px;
  height: 280px;
  background-color: #ef6352;
}

/* 右側：標題與詳細文字說明 */
.group-discount-section .discount-right {
  flex: 1;
  text-align: left;
  font-weight: 400;
}

.section-title {
  color: #ef6352;
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0 0 15px 0;
}

.section-desc {
  color: #333333;
  font-size: 1.25rem;
  line-height: 1.6;
  margin: 0 0 20px 0;
  font-weight: 500;
}

/* 條列規則清單 */
.rules-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rules-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
  color: #333333;
  font-size: 1.25rem;
  line-height: 1.6;
  font-weight: 500;
}

.rule-num {
  color: #ef6352;
  font-weight: 800;
  font-size: 1.1rem;
  margin-right: 8px;
  flex-shrink: 0;
}

.rule-text {
  flex: 1;
}

/* 手機版響應式設計 (RWD) */
@media (max-width: 768px) {
  .group-discount-section {
    padding: 40px 15px;
  }

  .discount-card {
    flex-direction: column; /* 改為上下直向排列 */
    padding: 20px 20px 40px 20px;
    border-radius: 24px;
    gap: 5px;
  }

  /* 手機版將左側容器改為 column-reverse：讓圖片自動排在最上方，數字在下方 */
  .discount-left {
    width: 100%;
    flex-direction: column-reverse;
  }

  .characters-img {
    max-width: 220px;
    margin-top: 0;
    margin-bottom: 15px;
  }

  .discount-num {
    font-size: 4.5rem;
  }

  /* 將桌機的垂直分隔線轉為手機版的水平分隔線 */
  .discount-divider {
    width: 100%;
    height: 2px;
    margin: 5px 0;
  }

  .discount-right {
    text-align: left;
    width: 100%;
  }

  .section-title {
    font-size: 1.8rem;
    text-align: center; /* 手機版標題置中 */
    margin-bottom: 12px;
  }

  .section-desc {
    font-size: 1.05rem;
  }

  .rules-list li {
    font-size: 1.05rem;
  }
}

/* 加購優惠和午餐優惠 */
.offers-section {
  padding: 30px 20px;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
}

/* 基礎卡片樣式 */
.offer-card {
  width: 100%;
  max-width: 950px;
  border-radius: 30px;
  padding: 30px 20px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 35px;
  background-color: #ffffff;
}

/* 藍色卡片主題 */
.offer-card.blue-theme {
  border: 3px solid #6187d8;
}

/* 紅色卡片主題 */
.offer-card.red-theme {
  border: 3px solid #ef6352;
}

/* 左側區域：圖片 + 折扣數字 或 圖片 + 標題 */
.offer-left {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-shrink: 0;
}

.blue-theme .offer-left {
  flex: 0 0 32%;
}

.red-theme .offer-left {
  flex: 0 0 32%;
}

/* 圖案設定 */
.character-img {
  height: auto;
  display: block;
  object-fit: contain;
}

.sports-img {
  width: 110px;
}

.chef-img {
  width: 120px;
}

/* 折扣數字與單位 (藍色卡片) */
.discount-number-wrap {
  display: flex;
  align-items: baseline;
  color: #6187d8;
}

.discount-num {
  font-size: 5.5rem;
  font-weight: 800;
  line-height: 1;
}

.discount-unit {
  font-size: 1.5rem;
  font-weight: 800;
  margin-left: 4px;
}

/* 午餐優惠標題 (紅色卡片) */
.lunch-title {
  color: #ef6352;
  font-size: 2.2rem;
  font-weight: 800;
  white-space: nowrap;
  margin: 0;
}

/* 分隔線 */
.offer-divider {
  width: 2px;
  height: 110px;
  flex-shrink: 0;
}

.blue-theme .offer-divider {
  background-color: #6187d8;
}

.red-theme .offer-divider {
  background-color: #ef6352;
}

/* 右側：標題與詳細說明 */
.offer-right {
  flex: 1;
}

.offer-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0 0 12px 0;
}

.blue-theme .offer-title {
  color: #6187d8;
}

/* 說明列表 */
.offer-rules {
  list-style: none;
  padding: 0;
  margin: 0;
}

.offer-rules li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 8px;
  color: #333333;
  font-size: 1.25rem;
  line-height: 1.6;
  font-weight: 500;
}

.offer-rules li:last-child {
  margin-bottom: 0;
}

.rule-num {
  font-weight: 800;
  font-size: 1.1rem;
  margin-right: 8px;
  flex-shrink: 0;
}

.blue-theme .rule-num {
  color: #6187d8;
}

.red-theme .rule-num {
  color: #ef6352;
}

.rule-text {
  flex: 1;
}

.highlight-blue {
  color: #6187d8;
  font-weight: 700;
  font-size: 1.25rem;
}

/* 手機版響應式設計 (RWD) */
@media (max-width: 768px) {
  .offers-section {
    padding: 30px 15px;
    gap: 25px;
  }

  .offer-card {
    flex-direction: column;
    padding: 30px 20px;
    border-radius: 24px;
    gap: 20px;
  }

  .offer-left {
    width: 100%;
    flex-direction: column; /* 手機版：圖片在上，數字/標題在下 */
    gap: 10px;
  }

  .blue-theme .offer-left,
  .red-theme .offer-left {
    flex: auto;
  }

  .sports-img {
    width: 100px;
  }

  .chef-img {
    width: 110px;
  }

  .discount-num {
    font-size: 4.5rem;
  }

  .lunch-title {
    font-size: 1.8rem;
  }

  /* 分隔線改為水平線 */
  .offer-divider {
    width: 80%;
    height: 2px;
    margin: 0 auto;
  }

  .offer-right {
    width: 100%;
    text-align: left;
  }

  .blue-theme .offer-title {
    font-size: 1.8rem;
    text-align: center; /* 手機版加購優惠標題置中 */
    margin-bottom: 15px;
  }

  .offer-rules li {
    font-size: 1.05rem;
  }
}

/* 報名諮詢 */
.contact-info-section {
  padding: 50px 20px;
  background-color: #ffffff;
  display: column;
  justify-content: center;
  width: 100%;
}

.contact-title-wrapper {
  margin-bottom: 35px;
  text-align: center;
  width: 100%;
}

.contact-title-img {
  max-width: 280px;
  width: 100%;
  height: auto;
  display: inline-block;
}

.contact-info-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

/* 單個聯絡項目：使用獨特名稱避免衝突 */
.info-card-item {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
}

/* 左側圖片圖示 */
.info-card-icon {
  width: 55px;
  height: 55px;
  object-fit: contain;
  flex-shrink: 0;
}

/* 第三個區塊的 QR Code 圖片 */
.info-card-qr {
  width: 90px;
  height: 90px;
  object-fit: contain;
  flex-shrink: 0;
}

/* 文字內容區域 */
.info-card-text-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #333333;
  font-size: 0.95rem;
  line-height: 1.4;
  font-weight: 500;
}

/* 電話號碼顏色 */
.info-card-phone {
  color: #ef3a7f;
  font-size: 1.3rem;
  font-weight: 800;
  text-decoration: none;
}

.info-card-phone:hover {
  text-decoration: underline;
}

/* 藍色垂直分隔線 (桌機版專用) */
.info-card-divider {
  width: 2px;
  height: 70px;
  background-color: #ef3a7f;
  flex-shrink: 0;
}

/* LINE QR Code 右側說明文字 */
.info-card-line-text {
  color: #85c930;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.4;
}

/* 響應式設計 */
@media (max-width: 768px) {
  .contact-info-section {
    padding: 40px 20px;
  }

  .contact-title-img {
    max-width: 235px;
  }

  /* 主容器改為垂直排列 */
  .contact-info-container {
    flex-direction: column;
    align-items: center;
    gap: 35px;
  }

  /* 隱藏桌機版分隔線 */
  .info-card-divider {
    display: none;
  }

  /* 手機版：單個區塊改為上下排列並置中 */
  .info-card-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    width: 100%;
  }

  .info-card-icon {
    width: 60px;
    height: 60px;
  }

  .info-card-qr {
    width: 120px;
    height: 120px;
  }

  .info-card-text-box {
    font-size: 1rem;
    align-items: center;
  }

  .info-card-phone {
    font-size: 1.4rem;
  }

  .info-card-line-text {
    font-size: 1.1rem;
    text-align: center;
  }
  .contact-title-wrapper {
    margin-bottom: 25px; /* 手機版縮小與下方內容的間距 */
  }
}

/* footer */
.site-footer-wave {
  width: 100%;
  background-color: #ffffff; /* 波浪上方背景色 */
  line-height: 0;
  margin-bottom: -1px; /* 向上微疊 1px 確保與 Footer 完美無縫貼合 */
  overflow: hidden; /* 關鍵 1：隱藏左右微幅超出的圖片，防止產生橫向滾動條 */
}

/* 2. 針對 picture 容器與 img 同步拉大 */
.site-footer-wave picture {
  display: block;
  width: 102%; /* 關鍵 2：將寬度拉大至 102% */
  margin-left: -1%; /* 關鍵 3：向左微調 1%，讓左右兩邊平均超出容器 */
}

.site-footer-wave img {
  width: 102%;
  max-width: none; /* 避免被 Reset CSS 限制寬度 */
  height: auto;
  display: block;
}

/* 2. Footer 主體區塊 */
/* ========================================== */
/* 頁尾區塊專用樣式 (前綴 site-footer-)       */
/* ========================================== */
.site-footer-wrapper {
  background-color: #ef3a7f; /* 桃紅色背景 */
  color: #ffffff;
  padding: 40px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.site-footer-container {
  max-width: 900px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 頁尾區塊共通樣式 */
.site-footer-block {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* 左側：聯絡資訊與文字 */
.site-footer-info {
  font-size: 1.05rem;
  line-height: 1.6;
  text-align: left;
}

.site-footer-highlight {
  color: #facd1b; /* 黃色高亮文字 */
  font-weight: 700;
}

.site-footer-phone {
  color: #facd1b; /* 電話號碼黃色高亮 */
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.5px;
}

/* 中間：Logo 圖片容器 */
.site-footer-logo-box {
  display: flex;
  justify-content: center;
  align-items: center;
}

.site-footer-logo-img {
  max-width: 180px;
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* 右側：版權宣告文字 */
.site-footer-copyright {
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: left;
  opacity: 0.95;
}

/* 垂直分隔線 */
.site-footer-divider {
  width: 1px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.7);
  margin: 0 40px;
  flex-shrink: 0;
}

/* ========================================== */
/* 響應式調整：手機版小於 768px                */
/* ========================================== */
@media (max-width: 768px) {
  .site-footer-container {
    flex-direction: column;
    text-align: center;
    gap: 25px;
  }

  .site-footer-info,
  .site-footer-copyright {
    text-align: center;
  }

  .site-footer-logo-img {
    max-width: 160px;
  }

  /* 手機版隱藏垂直分隔線 */
  .site-footer-divider {
    display: none;
  }
}

/* ------------------------------------------- */
.daan_section {
  margin-top: 50px;
  margin-bottom: 50px;
}

.quention-section {
  margin-top: 60px;
  margin-bottom: 60px;
}

.map-section {
  margin-top: 50px;
  margin-bottom: 50px;
}

.jianguo-section {
  margin-top: 40px;
  margin-bottom: 40px;
}

/* ------------------------------------- */
.aboutus-text {
  color: #545454;
}

/* ------------------------------------------ */
/* 右下角懸浮面板容器 */
.floating-nav-panel {
  position: fixed;
  right: 10px; /* 改為右下角 */
  bottom: 100px;
  z-index: 999; /* 確保浮在網頁最上層 */
  background-color: rgba(255, 255, 255, 0.65); /* 更透明的背景 */
  backdrop-filter: blur(8px); /* 玻璃擬態模糊效果 */
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  padding: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2); /* 更深、更有立體感的陰影 */
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 210px;
}

/* 按鈕共用樣式 (高度調扁) */
.float-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px; /* 減小上下 padding，讓按鈕變扁 */
  border-radius: 50px; /* 膠囊圓角 */
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

/* 圖示大小與對齊微調 */
.float-btn img,
.float-btn svg {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

/* 查看課程表 */
.btn-taoyuan-course {
  background-color: #53b8e5;
}

.btn-taoyuan-course:hover {
  background-color: #489fc4;
}

/* 桃園兒童營隊報名表 */
.btn-taoyuan-Register {
  background-color: #ef3a7f;
}

.btn-taoyuan-Register:hover {
  background-color: #c9356e;
}

/* 共用的 Hover 動態效果 (浮起、加強陰影) */
.float-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
  color: #ffffff; /* 確保文字保持清晰的白色 */
}

/* 按鈕點擊時的微縮效果 */
.float-btn:active {
  transform: translateY(0) scale(0.98);
}

/* 手機版適應 */
@media (max-width: 480px) {
  .floating-nav-panel {
    right: 5px;
    bottom: 90px;
    padding: 10px;
  }

  .float-btn {
    padding: 7px 12px;
    font-size: 0.85rem;
  }
}

/* ========================================== */
/* 優惠資訊區塊專用樣式 (前綴 promo-section-)   */
/* ========================================== */
.promo-section-wrapper {
  background-color: #ffffff;
  padding: 60px 20px;
  color: #545454;
  display: flex;
  justify-content: center;
  align-items: center;
}

.promo-section-container {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

/* 四大優惠卡片網格 (預設桌機版 4欄並排) */
.promo-section-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 25px;
}

/* 單一優惠卡片 (已移除 hover 效果) */
.promo-section-card {
  background-color: #ffffff;
  border-radius: 35px;
  padding: 20px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* 卡片邊框與主題色彩變化 */
.promo-section-card.blue-theme {
  border: 3px solid #53b8e5;
}

.promo-section-card.green-theme {
  border: 3px solid #85c930;
}

/* 卡片上方小圖示 (已放大) */
.promo-section-icon-box {
  width: 110px;
  height: 110px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.promo-section-icon-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* 卡片標題 */
.promo-section-card-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.blue-theme .promo-section-card-title {
  color: #53b8e5;
}

.green-theme .promo-section-card-title {
  color: #85c930;
}

/* 折扣數字 */
.promo-section-discount {
  font-size: 5.3rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 15px;
  display: flex;
  align-items: baseline;
  justify-content: center;
}

.promo-section-discount span {
  font-size: 1.3rem;
  font-weight: 700;
  margin-left: 2px;
}

.blue-theme .promo-section-discount {
  color: #53b8e5;
}

.green-theme .promo-section-discount {
  color: #85c930;
}

/* 卡片說明文字 */
.promo-section-card-desc {
  font-size: 1.1rem;
  line-height: 1.5;
  color: #545454;
  font-weight: 500;
}

/* 「以上優惠擇一使用」提示橫幅  */
.promo-section-notice-banner {
  background-color: #53b8e5;
  color: #ffffff;
  text-align: center;
  padding: 8px 20px; /* 上下 padding 變小以符合調窄需求 */
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 25px;
  box-shadow: 0 4px 10px rgba(83, 184, 229, 0.3);
}

/* 午餐優惠橫幅卡片 */
.promo-section-lunch-box {
  background-color: #ffffff;
  border: 3px solid #85c930;
  border-radius: 35px;
  padding: 25px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  position: relative;
}

.promo-section-lunch-header {
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
  padding-right: 30px;
}

/* 中間分隔線 */
.promo-section-lunch-header::after {
  content: "";
  position: absolute;
  right: 0;
  top: 10%;
  height: 80%;
  width: 2px;
  background-color: #85c930;
}

.promo-section-lunch-icon {
  width: 110px;
  height: 110px;
}

.promo-section-lunch-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.promo-section-lunch-title {
  font-size: 2rem;
  font-weight: 800;
  color: #85c930;
  white-space: nowrap;
}

.promo-section-lunch-content {
  flex-grow: 1;
  padding-left: 30px;
}

.promo-section-lunch-item {
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.6;
  color: #545454;
  margin-bottom: 6px;
  display: flex;
  align-items: flex-start;
}

.promo-section-lunch-item:last-child {
  margin-bottom: 0;
}

.promo-section-lunch-item span {
  color: #85c930;
  font-weight: 700;
  margin-right: 8px;
}

/* ========================================== */
/* 響應式調整：手機版小於 768px                */
/* ========================================== */
@media (max-width: 768px) {
  /* 四大優惠卡片改為 2欄 x 2列 排列 */
  .promo-section-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .promo-section-card {
    padding: 10px 5px;
  }

  .promo-section-icon-box {
    width: 100px;
    height: 100px;
  }

  .promo-section-discount {
    font-size: 3.5rem;
  }

  .promo-section-card-title {
    font-size: 1.7rem;
  }

  .promo-section-card-desc {
    font-size: 1rem;
  }

  .promo-section-notice-banner {
    padding: 7px 15px;
    font-size: 1.05rem;
  }

  /* 午餐優惠卡片改為上下疊加排版 */
  .promo-section-lunch-box {
    flex-direction: column;
    padding: 25px 20px;
    align-items: flex-start;
  }

  .promo-section-lunch-header {
    padding-right: 0;
    padding-bottom: 15px;
    margin-bottom: 15px;
    width: 100%;
  }

  .promo-section-lunch-header::after {
    left: 0;
    bottom: 0;
    top: auto;
    width: 100%;
    height: 2px;
  }

  .promo-section-lunch-content {
    padding-left: 0;
  }
}
