/* 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: 1400px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

#navbar .listContainer a {
  color: #40220f;
  text-decoration: none;
  padding: 0 15px;
  line-height: 72px;
  font-size: 20px;
}

#navbar .listContainer a:hover {
  color: #b49d88;
  text-decoration-line: underline;
  transition: all 0.3s ease;
}

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

.burgerBtn span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #40220f;
  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: 768px) {
  .burgerBtn {
    display: flex;
  }
  .computerShowF {
    display: none;
  }
  .mobileShowF {
    display: flex;
    flex-direction: column;
  }

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

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

  #listBar.open {
    top: 0;
  }
}

/* fixed btn */
#fixedBtnContainer {
  position: fixed;
  transform: translateY(-50%);
  top: 50%;
  right: 30px;
  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: 40px;
  display: block;
}

@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 .kvText {
  position: absolute;
  transform: translate(-50%, -50%);
  top: 25%;
  left: 50%;
  width: 47%;
  height: auto;
}

@media (max-width: 768px) {
  #kv .kvText {
    width: 47%;
  }
}

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

  #kv .kvText {
    width: calc(100% - 80px);
    top: 30%;
  }
}

@media (max-width: 420px) {
}

#main {
  position: relative;
  flex-direction: column;
  align-items: center;
  background-color: rgb(244 218 186);
}

#main .mainBgBox {
  overflow: hidden;
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
}

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

#main .mainBg {
  position: absolute;
  width: 100%;
  transform: translateX(-50%);
  top: -20px;
  left: 50%;
  z-index: 1;
}

#introduction {
  margin-bottom: 0%;
}

#introduction .description {
  width: 100%;
  max-width: 1440px;
  text-align: center;
  line-height: 180%;
}

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

@media (max-width: 1440px) {
  #main .mainBg {
    width: 1980px;
  }
}

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

#main .box .centerBox {
  flex-direction: column;
  gap: 64px;
  align-items: center;
}

.icon {
  display: block; /* 讓圖片變成區塊元素，好置中 */
  margin: 0 auto 40px auto;
  width: 48px;
  height: 48px;
}
/* info */
#info {
  font-size: 24px;
  line-height: 1.6;
  background-color: #fff;
  box-shadow: 0 0 20px #592b0e;
  width: 100%;
  max-width: 1440px;
  padding: 32px 0;
  border-radius: 20px;
  display: flex; /* 使用 flex */
  flex-direction: column; /* 垂直排版 */
  align-items: center; /* 中間置中 */

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

.infoText {
  margin-bottom: 8px;
  color: #40220f;
  width: 90%;
  max-width: 700px;
}

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

.label {
  font-weight: bold;
  flex-shrink: 0;
  min-width: 50px; /* 時間 / 地點對齊 */
}
.agree-text {
  color: #40220f;
}
.content {
  flex: 1;
}

.sub {
  font-size: 14px;
}

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

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

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

.swiper-wrapper {
  display: flex;
  box-sizing: content-box;
}

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

.swiper-button-prev,
.swiper-button-next {
  /* 讓您的自定義樣式優先於 Swiper 預設樣式 */
  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;
}
.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: 500px; /* 固定高度 */
  border-radius: 24px;
  overflow: hidden; /* 圓角裁切 */
}

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

.card .textBox_speaker {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px; /* 固定高度 */
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* 文字靠底 */
  gap: 5px;
  align-items: center;
  padding: 20px 16px;
  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;
}

.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: #fff;
}

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

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

/* 滑鼠 hover 動作可選擇 */
.card:hover .title_speaker {
  transform: translateY(-20px);
  transition: transform 0.2s linear;
}
.card:hover .name_speaker {
  transform: translateY(-20px);
  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 center/cover;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
}

/* 左邊圖片區 */
.block_imgArea {
  flex: 0;
}
.block_imgArea img {
  width: 300px;
  height: 536px;
  object-fit: cover;
  display: block;
}

/* 右邊文字區 */
.block_textArea {
  flex: 1;
  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: #40220f;
}

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

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

.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: #40220f; /* 滑塊顏色 */
  border-radius: 10px; /* 滑塊圓角 */
  border: 2px solid #f1f1f1; /* 邊框顏色，讓滑塊看起來與軌道有間距 */
}

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

/* 關閉按鈕 */
.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;
  width: 95% !important;
  padding: 40px 20px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

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

/* 通用欄位樣式 */
.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

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

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

.checkbox-description {
  font-size: 12px;
  font-weight: 400;
  color: #4d3b3d;
  margin-top: 8px;
  line-height: 1.5;
}
.checkbox-description ol {
  padding-left: 20px;
  margin: 8px 0 0 0;
}
.checkbox-description li {
  font-weight: 400;
}

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

/* 送出按鈕 */
.form-group.submit {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.form-group.submit button {
  padding: 14px 40px;
  font-size: 16px;
  font-weight: 700;
  background-color: #40220f;
  color: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.form-group.submit button:hover {
  background-color: #5a341f;
}

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

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

#footer .box {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 針對所有 logobox 區塊 */
#footer .logobox {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}

#footer .footer_title {
  color: #40220f;
  font-size: 14px;
  margin-bottom: 12px;
}

#footer .logo-list {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
}

#footer .logo-list1 img {
  height: 50px;
  display: block;
}

#footer .logo-list img {
  height: 45px;
  display: block;
}

/* 如果協辦單位的圖片需要特殊尺寸，可以單獨為其設定 class */
/* 範例：如果協辦單位的 logobox class 改為 "logobox co-organizers"，就可以這樣設定 */
.logobox.co-organizers .logo-list img {
  height: 35px;
}

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

#footer .remark {
  color: #40220f;
  font-size: 12px;
  text-align: center;
}

@media (max-width: 480px) {
  #footer .logo-list {
    flex-direction: column;
    gap: 12px;
  }

  #footer .logo-list img {
    height: auto;
    max-width: 100px;
  }
}
