/* Navbar 基本 */
#navbar {
  height: 72px;
  background-color: #fff;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 22;
  padding: 0 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#navbar .box {
  padding: unset;
  height: 100%;
  width: 100%;
  max-width: 3000px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#navbar .logoContainer img {
  height: 32px; /* 或自己想要的大小 */
  width: auto; /* 自動比例 */
}

#navbar .listContainer a {
  color: #199c77;
  text-decoration: none;
  padding: 0 10px;
  line-height: 72px;
  font-size: 18px;
}

#navbar .listContainer a:hover {
  color: #10628a;
  transition: color 0.3s;
}

/* Burger 按鈕 */
.burgerBtn {
  display: none; /* 桌面隱藏 */
  flex-direction: column;
  width: 30px;
  height: auto; /* 讓高度自適應 span */
  cursor: pointer;
}

.burgerBtn span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #199c77;
  border-radius: 2px;
  margin: 4px 0; /* 給每條線上下間距 */
  transition: all 0.3s ease;
}

/* 漢堡點擊後變 X */
.burgerBtn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.burgerBtn.active span:nth-child(2) {
  opacity: 0;
}
.burgerBtn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* 手機版顯示 */
@media (max-width: 950px) {
  .burgerBtn {
    display: flex;
  }

  .mobileShowF {
    display: flex;
    flex-direction: column;
  }

  #listBar {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #ade8e8;
    flex-direction: column;
    align-items: center;
    padding-top: 80px;
    transition: top 0.5s ease;
    z-index: 21;
  }

  #listBar a {
    color: #157472;
    font-size: 20px;
    padding: 20px 0;
    text-decoration: none;
  }

  #listBar.open {
    top: 0;
  }
}

/* fixed btn */
#fixedBtnContainer {
  position: fixed;
  transform: translateY(-50%);
  top: 80%;
  right: 2.5rem;
  text-align: center;
  z-index: 30;
}

#fixedBtnContainer a {
  display: block;
}

#fixedBtnContainer .signUpBtn {
  position: relative;
}

#fixedBtnContainer .signUpBtn img {
  margin-top: 10px;
}

#fixedBtnContainer img {
  border-radius: 100px;
  width: 50px;
  display: block;
}

#fixedBtnContainer .computerShow_480 {
  border-radius: 0;
}

#fixedBtnContainer .mobileShow_480 {
  border-radius: 0;
}

@media (max-width: 480px) {
  #fixedBtnContainer {
    transform: unset;
    top: unset;
    bottom: 20px;
    right: 20px;
  }

  #fixedBtnContainer .signUpBtn img {
    margin-top: 15px;
  }

  #fixedBtnContainer img {
    width: 45px;
  }
}

/* kv */

#kv {
  margin-top: 72px;
  width: 100%;
  position: relative;
}

#kv .kvBox {
  width: 100%;
  position: relative;
}

#kv .kvBox img {
  width: 100%;
  height: auto;
  display: block;
}

/* kv文字動畫 */
@keyframes kvTextFadeInUp {
  from {
    opacity: 0;
    margin-top: 30px; /* 從原本位置的下方 30px 開始 */
  }
  to {
    opacity: 1;
    margin-top: 0; /* 回到原本的位置 */
  }
}

#kv .kvText {
  position: absolute;
  transform: translate(-50%, -50%);
  left: 68%;
  width: 54%;
  top: 50%;
  height: auto;
  animation: kvTextFadeInUp 1.2s ease-out forwards;
}

@media (max-width: 480px) {
  #kv .kvBox .kv {
    position: unset;
    transform: unset;
    min-width: unset;
  }

  #kv .kvText {
    width: calc(100% - 50px);
    top: 22%;
    left: 50%;
  }
}

#main {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mainBgBox {
  width: 100%;
  overflow: hidden;
  background: url("../imgs/main_bg.png") no-repeat center top;
  background-size: cover; /* 撐滿容器，可能裁切 */
}

/* 圖片 */
.mainBgBox .mainBg {
  width: 100%;
  height: auto;
}

#main .box {
  z-index: 2;
}

#introduction {
  margin-bottom: 0%;
}

#introduction .description {
  width: 100%;
  max-width: 920px;
  text-align: center;
  line-height: 250%;
  color: #199c77;
}

#introduction .description span {
  font-weight: 700;
  font-size: 24px;
}

/* ─── 響應式中斷點優化 ─── */
@media (max-width: 1440px) {
  /* 這裡原本寫死 5500px 高度的代碼已被安全移除 */
}

@media (max-width: 480px) {
  #introduction {
    margin-bottom: 0px;
  }

  #introduction .description span {
    font-size: 22px;
  }

  .mainBgBox {
    height: auto;
  }

  .icon {
    width: 30rem;
  }
}

#main .box .centerBox {
  flex-direction: column;
  gap: 64px;
  align-items: center;
}
.icon_div {
  display: flex;
  justify-content: center;
  width: 100%;
  overflow: hidden;
  margin-bottom: 2rem;
}

.icon {
  max-width: 100%;
  height: auto;
  display: block;
}
/* info */
#info {
  font-size: 20px;
  line-height: 1.6;
  background-color: #fff;
  box-shadow: 0 0 15px #4d511b;
  width: 100%;
  max-width: 1440px;
  padding: 32px 0;
  border-radius: 20px;
  display: flex; /* 使用 flex */
  flex-direction: column; /* 垂直排版 */
  align-items: center; /* 中間置中 */
  min-height: 22rem;

  background-image: url(../imgs/info_bg.png);
  background-repeat: no-repeat;
  background-position: bottom calc(100% + 15rem);
  background-size: cover;
}

@keyframes revealFadeInUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
}

.reveal.is-visible {
  animation: revealFadeInUp 0.9s ease-out forwards;
  animation-delay: var(--reveal-delay, 0s);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }

  .reveal.is-visible {
    animation: none;
  }
}

.infoHighlight {
  width: 90%;
  max-width: 840px;
  text-align: center;
  margin-bottom: 3rem;
  padding: 1.1rem 1.5rem 1rem;
  background: linear-gradient(
    90deg,
    transparent 0%,
    #c9a227 12%,
    #e0b93d 50%,
    #c9a227 88%,
    transparent 100%
  );
  border: none;
  border-radius: 0;
}

.infoHighlight__main {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 1px;
}

.infoHighlight__note {
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
  margin-top: 0.4rem;
}

.infoText {
  margin-bottom: 8px;
  color: #199c77;
  width: 70%;
  max-width: 900px;
}

.infoSignUpBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
  padding: 14px 48px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 4px;
  color: #fff;
  background-color: #199c77;
  border-radius: 1rem;
  text-decoration: none;
  transition:
    background-color 0.3s,
    transform 0.2s;
}

.infoSignUpBtn:hover {
  background-color: #0d7457;
  transform: translateY(-2px);
}

.flexBox {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  text-align: left; /* 內容靠左 */
  width: fit-content; /* 讓寬度剛好包住內容 */
}

.label {
  line-height: 0%;
  margin-right: 0.5rem;
}

.agree-text {
  color: #157472;
}
.content {
  flex: 1;
}

.small_brackets {
  font-size: 1rem;
}

.sub {
  font-size: 14px;
}

.form_ctrl {
  display: flex;
  justify-content: center;
}

@media (max-width: 768px) {
  .infoHighlight {
    padding: 0.9rem 1.1rem 0.85rem;
  }

  .infoHighlight__main {
    font-size: 18px;
  }

  .infoHighlight__note {
    font-size: 12px;
  }

  .infoSignUpBtn {
    font-size: 16px;
    padding: 12px 40px;
  }
}

@media (max-width: 480px) {
  #info {
    row-gap: 10px;
    font-size: 16px;
  }

  .infoText .flexBox {
    font-size: 14px;
    margin: 0 -1.5rem;
  }

  .infoText .flexBox .small_brackets {
    font-size: 12px;
  }
  .infoHighlight__main {
    font-size: 16px;
  }
}

.infoSignUpBtn {
  width: 90%;
  max-width: 280px;
  font-size: 15px;
  padding: 12px 24px;
  letter-spacing: 2px;
  margin-top: 1rem;
}

/* spealer swiper */
#speaker .swiperBox {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  position: relative;
}

#speaker .swiper_speaker {
  position: relative; /* 絕對定位箭頭的參考容器 */
  height: 400px;
  width: 100%;
  max-width: 1144px;
}

.swiper-wrapper {
  /* display: flex; */
  box-sizing: content-box !important;
}

@media (max-width: 768px) {
  #speaker .swiper_speaker {
    width: 100%;
    max-width: 100%; /* 滿版 */
  }
  .swiper-slide {
    width: 50%;
    flex-shrink: 0; /* 避免被壓縮 */
  }
}

@media (max-width: 480px) {
  #speaker .swiper_speaker {
    width: 100%;
    max-width: 300px; /* 滿版 */
  }
  .swiper-slide {
    width: 100% !important;
    flex-shrink: 0; /* 避免被壓縮 */
  }
}

.swiper-button-prev,
.swiper-button-next {
  /* 讓您的自定義樣式優先於 Swiper 預設樣式 */
  position: absolute;
  top: 50% !important; /* 確保箭頭垂直置中 */
  transform: translateY(-50%) !important; /* 完美居中 */
  width: 30px !important;
  height: 50px !important;
  background-size: cover !important; /* 確保圖片不扭曲 */
  background-repeat: no-repeat !important;
  background-position: center !important; /* 確保圖片在容器內居中 */
  z-index: 100 !important;
}
.swiper-button-prev {
  left: 0 !important;
  background-image: url("../imgs/arrow_left.png") !important;
}

.swiper-button-next {
  right: 0;
  background-image: url("../imgs/arrow_right.png") !important;
}
/* 確保 Swiper 預設的內建圖標不顯示 */
#swiper-button-prev::after,
#swiper-button-next::after {
  content: "" !important;
}

#speaker .pt-8 {
  padding-top: 8px !important;
}

#speaker .fz-24 {
  font-size: 24px !important;
}

.card {
  position: relative; /* 文字絕對定位需要 */
  width: 100%;
  max-width: none;
  height: 400px; /* 固定高度 */
  border-radius: 24px;
  overflow: hidden; /* 圓角裁切 */
  background-color: #fff;
}

.card .speakerImg {
  width: 100%;
  height: 90%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.card .textBox_speaker {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 160px; /* 固定高度 */
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  padding: 72px 12px;
  z-index: 10;
  overflow: hidden; /* 避免文字撐開高度 */
  transition: transform 0.5s linear;

  background-image: url(../imgs/speakerBoxBg.png);
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: cover;
}

@media (max-width: 480px) {
  .card .textBox_speaker {
    height: 8rem; /* 固定高度 */
    padding: 32px 16px;
  }
}

.card .textBox_speaker .title_speaker,
.card .textBox_speaker .name_speaker {
  margin: 0;
  line-height: 1.4;
}

.card .title_speaker {
  font-size: 14px;
  line-height: 150%;
  margin: 0;
  text-align: center;
  color: #157472;
}

.card .name_speaker {
  font-size: 24px;
  font-weight: 700;
  line-height: 140%;
  margin: 0;
  text-align: center;
  color: #157472;
}

.card .btnBox_speaker {
  text-align: center;
  margin-top: 8px; /* 可依需求調整 */
}

/* 滑鼠 hover 動作可選擇 */
.card:hover .title_speaker {
  transform: translateY(-5px);
  transition: transform 0.2s linear;
}
.card:hover .name_speaker {
  transform: translateY(-5px);
  transition: transform 0.2s linear;
}

.card:hover .speakerImg {
  transform: scale(1.1);
  transition: transform 0.2s linear;
}

/* block container */
#blockContainer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* 彈窗內容區塊 */
#block_card {
  display: flex;
  max-width: 900px;
  width: 90%;
  height: 536px; /* 與圖片高度一致，固定高度 */
  background: url("../imgs/blockCard_bg.png") no-repeat -300px -260px;
  background-color: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
}

/* 左邊圖片區 */
.block_imgArea {
  padding: 0 0;
  display: flex;
  align-items: center;
  flex: 1;
}
.block_imgArea img {
  width: 18rem;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 右邊文字區 */
.block_textArea {
  flex: 2;
  display: flex;
  flex-direction: column;
  min-height: 0; /* 讓子元素可以縮小 */
  overflow: hidden; /* 避免超出 */
  padding: 20px;
  margin: 40px;
  background: transparent; /* 背景透明，顯示整個彈窗背景圖 */
}

/* 標題區塊 */
.block_titleBox {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* 齊左 */
  margin-top: 40px;
  margin-bottom: 20px;
}

.block_titleBox .block_title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #157472;
}

.block_titleBox .block_name {
  font-size: 24px;
  font-weight: 700;
  color: #183f3e;
}

/* 文字描述區 */
.block_textBox {
  flex: 1 1 auto; /* 保持彈性伸縮 */
  min-height: 0;
}

.scroll_textBox {
  height: 100%;
  overflow-y: auto; /* 可捲動 */
  font-size: 18px;
  line-height: 2;
  color: #0d4645;
  font-weight: 500;
}

.scroll_textBox {
  height: 100%;
  overflow-y: auto; /* 可捲動 */
  font-size: 18px;
  line-height: 2;
  color: #000;
  padding-right: 8px;
  text-align: justify;
}

/* 滾動條 */
.scroll_textBox::-webkit-scrollbar {
  width: 8px; /* 設置滾動條寬度 */
}

/* 滾動條軌道 */
.scroll_textBox::-webkit-scrollbar-track {
  background: #f1f1f1; /* 軌道背景色 */
  border-radius: 10px;
}

/* 滾動條滑塊 */
.scroll_textBox::-webkit-scrollbar-thumb {
  background-color: #157472; /* 滑塊顏色 */
  border-radius: 10px; /* 滑塊圓角 */
  border: 2px solid #f1f1f1; /* 邊框顏色，讓滑塊看起來與軌道有間距 */
}

/* 滑塊在懸停時的顏色 */
.scroll_textBox::-webkit-scrollbar-thumb:hover {
  background-color: #183f3e;
}

/* 關閉按鈕 */
.block_closeBtn {
  width: 30px;
  position: absolute;
  top: 20px;
  right: 20px;
  cursor: pointer;
}

/* RWD 手機版 */
@media (max-width: 768px) {
  #block_card {
    flex-direction: column;
  }
  .swiper-wrapper {
    display: flex; /* 橫向排列 */
  }
  .block_closeBtn {
    width: 30px;
  }
  .block_imgArea {
    display: none;
  }
  .block_titleBox {
    margin: 20px;
  }
  .block_textArea {
    margin: 40px;
  }
}

/* 議程 */
#agenda {
  width: 100%;
  max-width: 1200px; /* 可選 */
  margin: 0 auto;
}

#agenda .agendaImg {
  width: 100%;
  height: auto;
  display: block;
}

/* 報名表 */
/* SignUp 表單 */
#signUp {
  max-width: 900px;
  margin: 20px;
  margin: 20px 0 2rem 0;
  width: 95% !important;
  padding: 40px 20px;
  border-radius: 16px;
  background-color: #ffffff52;
}

#signUp .title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
}

/* 通用欄位樣式 */

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.form-group label {
  font-size: 14px;
  margin-bottom: 6px;
  font-weight: 500;
  color: #157472;
}

.required {
  color: red;
  font-size: 12px;
  margin-left: 2px;
}

/* 單欄位全寬 */
.full input {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  outline: none;
}

/* 並列欄位 */
.form-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.half {
  flex: 1;
}

.half input {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  outline: none;
}

/* Checkbox */
.form-group.checkbox {
  flex-direction: row;
  align-items: center;
}

.form-group.checkbox label {
  display: flex;
  align-items: center;
  font-size: 14px;
}
.agree,
.checkbox-description {
  font-size: 12px;
  color: #157472;
  margin-top: 8px;
  line-height: 1.5;
}
.agree,
.checkbox-description .point {
  font-size: 14px;
  color: #157472;
  margin-top: 8px;
  line-height: 1.5;
}
.checkbox-description ol {
  padding-left: 20px;
  margin: 8px 0 0 0;
}

.form-group.checkbox input[type="checkbox"] {
  margin-right: 8px;
  width: 16px;
  height: 16px;
}

/* 送出按鈕 */
.form-group.submit {
  display: flex;
  justify-content: center;
  width: 10rem;
  margin: 2rem auto 0 auto;
}

.form-group.submit button {
  padding: 14px 40px;
  font-size: 16px;
  font-weight: 700;
  background-color: #157472;
  color: #6cdad8;
  border: none;
  border-radius: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.form-group.submit button:hover {
  background-color: #1a8b89;
}

/* RWD 手機版 */
@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: 0px;
  }
}

.transportation {
  width: 100%;
  height: auto;
  padding: 0 2rem;
}

.transportationGuide {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.transportationGroup {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.transportationGroup__title {
  color: #199c77;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #199c77;
}

.transportationItem {
  padding-left: 0.5rem;
}

.transportationItem__title {
  color: #157472;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.transportationItem__desc {
  color: #183f3e;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: 1px;
}

.transportation .map {
  margin-top: 2rem;
  border-radius: 0.5rem;
  overflow: hidden;
}

@media (max-width: 768px) {
  .transportationGuide {
    gap: 1.5rem;
  }

  .transportationGroup__title {
    font-size: 20px;
  }

  .transportationItem__title {
    font-size: 17px;
  }

  .transportationItem__desc {
    font-size: 15px;
    line-height: 1.7;
  }
}

@media (max-width: 480px) {
  .transportation {
    padding: 0 1rem;
  }

  .transportationGroup__title {
    font-size: 18px;
  }

  .transportationItem__title {
    font-size: 16px;
  }

  .transportationItem__desc {
    font-size: 14px;
  }
}

/* footer */
#footer {
  background-color: #fff;
  width: 100%;
  overflow: hidden;
  z-index: 1;
  margin-top: 0;
  display: flex;
  justify-content: center;
}

#footer .logos {
  display: grid;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

#footer .logoBox {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
#footer .logoBox3 {
  gap: 22px;
}

#footer .logos img {
  height: clamp(28px, 7vw, 45px);
  width: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
}

#footer .logoBox .footer_title {
  display: flex;
  align-items: center;
  color: #183f3e;
  font-size: 14px;
}

#footer .logoBox2 {
  margin-left: 0;
}

#footer .logoBox2 img {
  height: clamp(28px, 7vw, 45px);
  margin-right: 1rem;
}

#footer .lineBox {
  width: 100%;
  border-bottom: 1px solid #0d4645;
  margin: 32px 0;
}

@media (max-width: 768px) {
  #footer .logos {
    gap: 24px;
  }

  #footer .logoBox {
    gap: 12px;
  }

  #footer .logoBox2 img {
    margin-right: 0.5rem;
  }
}

@media (max-width: 480px) {
  #footer .logos {
    gap: 16px;
  }

  #footer .logoBox {
    gap: 8px;
  }

  #footer .logoBox .footer_title {
    font-size: 12px;
    width: 100%;
  }

  #footer .logoBox2 img {
    margin-right: 0.35rem;
  }
}

#footer .remark {
  color: #0d4645;
  font-size: 12px;
  font-weight: 400;
}
