/* ========== 1. Base（變數、reset、body） ========== */
:root {
  --color-bg: #f5f3ef;
  --color-bg-cream: #faf8f5;
  --color-primary: #006834;
  --color-primary-light: #02a842;
  --color-primary-dark: #3a8260;
  --color-nav-bg: #ffffff;
  --color-nav-border: rgba(0, 0, 0, 0.08);
  --color-nav-shadow: rgba(0, 0, 0, 0.06);
  --color-text: #1a1a1a;
  --color-text-muted: #5c5c5c;
  --color-white: #ffffff;
  --color-jcw: #c41e3a;
  --color-title-green: #7eb89a;
  --font-sans: "Noto Sans TC", sans-serif;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --header-height: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg-cream);
}

/* 區塊滑入視窗時：由下往上淡入 */
@keyframes scrollFadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
}

.scroll-reveal.is-inview {
  animation: scrollFadeInUp 0.6s ease-out forwards;
}

/* ========== 2. Header & Nav ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition:
    background 0.25s,
    border-color 0.25s,
    box-shadow 0.25s;
}

.header.is-scrolled {
  background: var(--color-nav-bg);
  border-bottom: 1px solid var(--color-nav-border);
  box-shadow: 0 2px 12px var(--color-nav-shadow);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: var(--header-height);
  padding: 0 0 0 1rem; /* 左右貼齊螢幕邊緣並留適當寬度 24px */
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .navbar {
    padding: 0 0 0 1rem; /* 桌面版稍寬 32px */
  }
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 1rem; /* 16px */
}

.navbar__brand-link {
  color: inherit;
  text-decoration: none;
  flex-shrink: 0;
}

/* 頂端時 logo 與右側文字為白，捲動後還原 */
.header .navbar__brand,
.header .navbar__brand-link {
  color: var(--color-white);
}

.header.is-scrolled .navbar__brand,
.header.is-scrolled .navbar__brand-link {
  color: var(--color-text);
}

/* 頂端時 logo 維持原本顏色（不反白）；捲動後亦同 */

/* Figma 數值：main_logo 375×43、esg_logo 103×43 */
.navbar__logo-img {
  display: block;
  width: 300px;
  height: 35px;
  object-fit: contain;
  object-position: left center;
}

.navbar__logo-esg {
  display: block;
  width: 103px;
  height: 43px;
  object-fit: contain;
  flex-shrink: 0;
}

.navbar__menu {
  display: flex;
  align-items: stretch;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

.navbar__item {
  margin: 0;
}

.navbar__item + .navbar__item .navbar__link {
  border-left: 1px solid rgba(255, 255, 255, 0.25);
}

.header.is-scrolled .navbar__item + .navbar__item .navbar__link {
  border-left: 1px solid var(--color-nav-border);
}

.navbar__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: var(--header-height);
  padding: 0 var(--space-lg);
  color: var(--color-white);
  text-decoration: none;
  font-weight: 500;
  transition:
    background 0.2s,
    color 0.2s;
}

.header.is-scrolled .navbar__link {
  color: var(--color-primary);
}

.navbar__link-zh {
  font-size: 0.9375rem;
  line-height: 1.2;
}

.navbar__link-en {
  font-size: 0.6875rem;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

.navbar__link:hover {
  color: var(--color-primary);
}

.header .navbar__link:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
}

.header.is-scrolled .navbar__link:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--color-primary);
}

.navbar__link:hover .navbar__link-en {
  opacity: 1;
}

.navbar__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 54px;
  height: 54px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.navbar__toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.header.is-scrolled .navbar__toggle:hover {
  background: rgba(0, 0, 0, 0.06);
}

.navbar__toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-white);
  border-radius: 1px;
  transition:
    transform 0.25s,
    opacity 0.25s;
}

.header.is-scrolled .navbar__toggle-bar {
  background: var(--color-primary);
}

.navbar__toggle[aria-expanded="true"] .navbar__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar__toggle[aria-expanded="true"] .navbar__toggle-bar:nth-child(2) {
  opacity: 0;
}
.navbar__toggle[aria-expanded="true"] .navbar__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ========== 3. Hero 主視覺 ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + var(--space-2xl)) 1.5rem var(--space-2xl);
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url("../imgs/kv_bg.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-color: #0f3328;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(15, 51, 40, 0.25) 0%,
    transparent 40%,
    transparent 60%,
    rgba(15, 51, 40, 0.2) 100%
  );
}

/* 由下往上淡入動畫 */
@keyframes heroFadeInUp {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 以 1200px 為基準寬度，大於 1200px 時整塊等比例放大 */
.hero__box {
  position: relative;
  z-index: 2;
  max-width: 1440px; /* 鎖定最大寬度 */
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;

  /* 1440px 時中間空 74px，換算成相對於內容區的比例 */
  /* 或者直接用 74px，隨螢幕小於 1440 時自動擠壓 */
  gap: clamp(2rem, 5.1vw, 74px);
}

.hero__left {
  /* 1440px 下寬度 489px */
  /* 489 / 1184 ≈ 41.3% */
  flex: 0 1 489px;
  min-width: 0;
  animation: heroFadeInUp 1s ease-out both;
}

.hero__kv-pic {
  width: 100%;
  /* 強制維持 1:1 比例，這樣就會是 489x489 */
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: contain;
}

.hero__right {
  /* 1440px 下寬度 609px */
  /* 609 / 1184 ≈ 51.4% */
  flex: 0 1 609px;
  min-width: 0;
  animation: heroFadeInUp 1s ease-out 0.3s both;
}

.hero__kv-text {
  width: 100%;
  /* 強制維持 609:274 比例 */
  aspect-ratio: 609 / 274;
  display: block;
  object-fit: contain;
}

@media (min-width: 1200px) {
  .hero {
    min-height: calc(100vh * (100vw / 1200));
  }

  .hero__box {
    transform: scale(calc(100vw / 1200));
    transform-origin: center top;
  }
}

/* ========== 4. Section 共用（標題、圖） ========== */
.section__header {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: var(--space-xl);
  min-height: 120px;
  text-align: center;
}

.section__header__pic {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.section__header__pic img {
  width: 100%;
  height: 100%;
  max-height: 90px;
  object-fit: contain;
  object-position: bottom;
  opacity: 0.5;
}

.section__title-zh {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
}

/* ========== 5. About 活動資訊 ========== */

.section--about {
  padding: var(--space-3xl) 0;
  background-image: url("../imgs/about_bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.about__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
  margin: 0 3rem;
}

.about__text {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-text);
  line-height: 2;
  max-width: 840px;
  text-align: center;
}

.about__info-box {
  max-width: 740px;
  width: 100%;
  background: linear-gradient(
    var(--color-primary) 0%,
    var(--color-primary-light) 100%
  );
  color: var(--color-white);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
}

.about__info-box ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.about__info-box li {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 1.1rem;
  font-weight: 500;
}

.about__info-box li:last-child {
  border-bottom: none;
}

/* ========== 6. Agenda 議程 ========== */
.section--agenda {
  padding: var(--space-3xl) 0;
  background: url("../imgs/agenda_bg.png") center / cover no-repeat;
  background-attachment: fixed;
}

.section--agenda .section__title-en {
  color: var(--color-title-green);
}

.section--agenda .section__title-zh {
  color: rgba(255, 255, 255, 0.8);
}

.agenda__tabs {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.agenda__tab {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 999px;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--color-primary);
  color: var(--color-white);
  transition: background 0.2s;
}

.agenda__tab:hover {
  background: var(--color-primary-light);
}

/* 選中按鈕：較亮綠 + 下方三角指示（對應 Figma 三小行指向下面） */
.agenda__tab--active {
  background: var(--color-primary-light);
}

.agenda__tab--active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 10px solid var(--color-primary-light);
}

.agenda__table-wrap {
  display: none;
}

.agenda__table-wrap.is-visible {
  display: block;
}

.agenda__table-wrap {
  background: transparent;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* 內層：桌面版無額外樣式，行動版由此層負責圓角裁切 */
.agenda__table-inner {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* 時間、講題、講者：與下方 table 同寬對齊（2:4:4），padding 改放各 cell */
.agenda__table-header {
  display: grid;
  grid-template-columns: 2fr 4fr 4fr;
  gap: 0;
  padding: var(--space-lg) 0;
  background: transparent;
  color: var(--color-white);
  font-size: 0.9rem;
  font-weight: 600;
}

.agenda__table-header__cell {
  padding: 0 var(--space-lg);
  text-align: left;
  box-sizing: border-box;
}

/* 每列白底 10% 透明 */
.agenda__table tbody tr {
  background: rgba(255, 255, 255, 0.05);
}

/* 09:00 首列左上、右上圓角 */
.agenda__table tbody tr:first-child td:first-child {
  border-top-left-radius: var(--radius-lg);
}
.agenda__table tbody tr:first-child td:last-child {
  border-top-right-radius: var(--radius-lg);
}

.agenda__table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--color-white);
  font-size: 0.9rem;
}

/* 時間:講題:講者 = 2:4:4 */
.agenda__table .agenda__col-time {
  width: 20%;
}
.agenda__table .agenda__col-topic {
  width: 40%;
}
.agenda__table .agenda__col-speaker {
  width: 40%;
}

.agenda__table td {
  padding: var(--space-lg) var(--space-lg);
  min-height: 3.5rem;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.agenda__table .agenda__title {
  margin: 0;
  font-weight: 600;
}

/* 講題格：保持 table-cell 以填滿列高，內層 .agenda__topic-inner 做 flex 排版、文字垂直置中 */
.agenda__table td:nth-child(2) .agenda__topic-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-xs);
  min-height: 100%;
}

.agenda__topic {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--color-primary-light);
  color: var(--color-white);
  padding: 0.3em 0.8em;
  border-radius: var(--radius-lg);
  vertical-align: middle;
  margin-bottom: 0.5em;
}

/* 中場休息：一欄滿寬，可自訂背景 */
.agenda__row--break td {
  width: 100%;
  color: var(--color-primary);
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
  background-color: var(--color-white);
  background-image: url(../imgs/agenda_bg_line.png);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: auto;
}

/* 中場休息不套用 tr 白底 10%，維持白底 */
.agenda__row--break {
  background: transparent;
}

.agenda__speaker {
  color: var(--color-white);
}

/* ========== 7. Speakers 貴賓/講者 ========== */
.section--speakers {
  padding: var(--space-3xl) 0;
  background-color: #ffffed;
  background-attachment: fixed;
}

/* 貴賓區橫幅圖：最大寬 1200px，響應式時改用 guest_s.png */
.guest-banner {
  max-width: 1200px;
  margin: 0 auto var(--space-2xl);
}

.guest-banner__img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 750px) {
  .guest-banner__img {
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
  }
}

.speaker-featured {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--space-2xl);
  align-items: center;
  margin-bottom: var(--space-2xl);
  padding: var(--space-xl);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.speaker-featured__name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2563eb;
  margin: 0 0 var(--space-xs);
}

.speaker-featured__role {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-sm);
}

.speaker-featured__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 var(--space-md);
}

.speaker-featured__bio {
  font-size: 0.9375rem;
  color: var(--color-text);
  line-height: 1.75;
  margin: 0;
}

.speaker-featured__photo {
  justify-self: center;
}

.speaker-featured__avatar {
  width: 220px;
  height: 260px;
  border-radius: 12px;
  background: linear-gradient(
    145deg,
    var(--color-primary-light),
    var(--color-primary)
  );
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-md);
}

/* 貴賓/講者 Swiper（section id=guest） */
#guest .swiperBox,
.section--speakers .swiperBox {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  position: relative;
}

#guest .swiper_speaker,
.section--speakers .swiper_speaker {
  position: relative;
  min-height: 300px;
  flex: 1;
  max-width: 1144px;
  overflow: hidden;
}

/* 講者輪播：橫向排列，寬度由 Swiper 依 slidesPerView 計算，卡片隨寬度縮窄 */
.swiper_speaker .swiper-wrapper {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  box-sizing: border-box;
  align-items: stretch;
}

.swiper_speaker .swiper-slide {
  height: auto;
  flex-shrink: 0;
}

/* 貴賓區箭頭：放在 card 外側、上下置中 */
#guest .swiperBox .swiper-button-prev,
#guest .swiperBox .swiper-button-next,
.section--speakers .swiperBox .swiper-button-prev,
.section--speakers .swiperBox .swiper-button-next {
  flex-shrink: 0;
  width: 30px !important;
  height: 50px !important;
  margin: 0 !important;
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  z-index: 10 !important;
}
#guest .swiperBox .swiper-button-prev,
.section--speakers .swiperBox .swiper-button-prev {
  background-image: url("../imgs/arrow_left.png") !important;
}
#guest .swiperBox .swiper-button-next,
.section--speakers .swiperBox .swiper-button-next {
  background-image: url("../imgs/arrow_right.png") !important;
}
#guest .swiperBox .swiper-button-prev::after,
#guest .swiperBox .swiper-button-next::after,
.section--speakers .swiperBox .swiper-button-prev::after,
.section--speakers .swiperBox .swiper-button-next::after {
  content: "" !important;
}
#guest .swiperBox .swiper-button-disabled,
.section--speakers .swiperBox .swiper-button-disabled {
  opacity: 0.4 !important;
  cursor: default;
  pointer-events: none;
}

#guest .pt-8,
.section--speakers .pt-8 {
  padding-top: 8px !important;
}

#guest .fz-24,
.section--speakers .fz-24 {
  font-size: 24px !important;
}

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

.card .speakerImg {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.card .textBox_speaker {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  padding: 24px 16px;
  z-index: 1;
  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(-10px);
  transition: transform 0.2s linear;
}
.card:hover .name_speaker {
  transform: translateY(-10px);
  transition: transform 0.2s linear;
}

.card:hover .speakerImg {
  transform: scale(1.05);
  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 center;
  background-size: cover;
  background-color: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* 左邊圖片區 */
.block_imgArea {
  display: flex;
  align-items: stretch;
  flex: 1;
  min-height: 0;
}
.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: 16px;
  line-height: 2;
  color: #0d4645;
  font-weight: 500;
  padding-right: 3rem;
  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;
  height: 30px;
  position: absolute;
  top: 20px;
  right: 20px;
  cursor: pointer;
  border: 0;
  padding: 0;
  background: url("../imgs/blockCard_close.png") no-repeat center;
  background-size: contain;
  text-indent: -9999px;
  overflow: hidden;
}

/* RWD 手機版 */
@media (max-width: 768px) {
  #block_card {
    flex-direction: column;
  }
  .swiper-wrapper {
    display: flex; /* 橫向排列 */
  }
  .block_closeBtn {
    width: 30px;
    height: 30px;
    background-image: url("../imgs/mobile_closeBtn.png");
    background-size: contain;
  }
  .block_imgArea {
    display: none;
  }

  .block_textArea {
    margin: 40px;
  }
  .about__text {
    font-size: 1rem;
  }
}
/* ========== 8. Register 論壇報名 ========== */
.section--register {
  padding: var(--space-3xl) 0;
  background:
    url(../imgs/register_bg.png) no-repeat top / 100% auto,
    url(../imgs/register_bg_bottom.png) no-repeat bottom / 100% auto;
  background-color: #fff;
}

.register-form {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.register-form__row {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.register-form__row--full {
  grid-column: 1 / -1;
}

.register-form__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
}

.required {
  color: #c53030;
}

.register-form__input,
.register-form__select {
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  border: 1px solid #d1d5db;
  border-radius: var(--radius-lg);
  background: var(--color-white);
  transition: border-color 0.2s;
}

.register-form__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235c5c5c' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.register-form__input:focus,
.register-form__select:focus {
  outline: none;
  border-color: var(--color-primary);
}

/* Checkbox 條款區塊：全寬、5% 黑底、圓角 */
.form.checkbox,
.form-group.checkbox {
  width: 100%;
  padding: var(--space-lg);
  background: rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-lg);
  flex-direction: column;
  align-items: stretch;
  grid-column: 1 / -1;
}

.form.checkbox label,
.form-group.checkbox label {
  display: flex;
  align-items: center;
  font-size: 14px;
}

.checkbox-description {
  font-size: 12px;
  font-weight: 400;
  color: var(--color-text-muted);
  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.checkbox input[type="checkbox"],
.form-group.checkbox input[type="checkbox"] {
  margin-right: 8px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.register-form__actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn--primary:hover {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.btn--large {
  padding: 1rem 2rem;
  font-size: 1.0625rem;
  width: 100%;
  max-width: 280px;
}

/* ========== 9. Report 前瞻觀點 + 合作夥伴 ========== */
.section--report {
  padding: var(--space-3xl) 0;
  background: linear-gradient(
    180deg,
    var(--color-primary) 0%,
    var(--color-primary-light) 100%
  );
  background-attachment: fixed;
}

.section--report .section__title-en {
  color: var(--color-title-green);
}

.section--report .section__title-zh {
  color: rgba(255, 255, 255, 0.9);
}

.report__carousel {
  margin-bottom: var(--space-2xl);
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  max-width: 1144px;
  margin-left: auto;
  margin-right: auto;
}

.report__nav {
  flex-shrink: 0;
  width: 30px;
  height: 50px;
  padding: 0;
  border: 0;
  background: url("../imgs/arrow_left.png") no-repeat center;
  background-size: contain;
  cursor: pointer;
}

.report__nav--next {
  background-image: url("../imgs/arrow_right.png");
}

.report__nav.swiper-button-disabled {
  opacity: 0.4;
  pointer-events: none;
}

.section--report .swiper_report {
  position: relative;
  flex: 1;
  height: 100%;
  min-width: 0;
  overflow: hidden;
}

.swiper_report .swiper-wrapper {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  box-sizing: border-box;
  align-items: stretch;
}

.swiper_report .swiper-slide {
  height: auto;
  flex-shrink: 0;
}

.report-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--color-primary);
  box-sizing: border-box;
  text-decoration: none;
}

.report-card__img {
  width: 100%;
  height: 230px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

.report-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.report-card__img img:hover {
  transform: scale(1.05);
  transition: transform 0.2s linear;
}

.report-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: var(--space-md);
}

.report-card__title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 var(--space-xs);
}

.report-card__desc {
  font-size: 0.875rem;
  opacity: 0.9;
  margin: 0;
  margin-top: auto;
  text-align: right;
}

.sponsors {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.sponsors__row {
  margin-bottom: var(--space-xl);
}

.sponsors__row:last-child {
  margin-bottom: 0;
}

.sponsors__label {
  font-size: 0.875rem;
  color: var(--color-primary);
  margin: 0 0 var(--space-md);
  text-align: center;
}

.sponsors__logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-xl);
}

.sponsors__logo {
  height: 32px;
  width: auto;
  object-fit: contain;
  object-position: center;
}

.sponsors__logo--tall {
  height: 42px;
}

.sponsors__logo--xl-tall {
  height: 78px;
}

/* ========== 10. Footer ========== */
.footer {
  background: var(--color-primary);
  background-attachment: fixed;
  color: rgba(255, 255, 255, 0.9);
  padding: var(--space-lg) var(--space-lg);
  text-align: center;
}

.footer__copy {
  margin: 0;
  font-size: 0.875rem;
}

/* ========== 11. Container ========== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ========== 12. Responsive ========== */
@media (max-width: 900px) {
  .speaker-featured {
    grid-template-columns: 1fr;
  }

  .speaker-featured__photo {
    order: -1;
  }

  .register-form {
    grid-template-columns: 1fr;
  }
}

/* 1028px 以下：navbar 改為漢堡選單 */
@media (max-width: 1028px) {
  .navbar__toggle {
    display: flex;
  }

  .navbar__menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    width: 100%;
    background: var(--color-nav-bg);
    border-bottom: 1px solid var(--color-nav-border);
    box-shadow: 0 8px 20px var(--color-nav-shadow);
    flex-direction: column;
    padding: 0;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition:
      max-height 0.3s,
      opacity 0.3s;
  }

  .navbar__menu.is-open {
    max-height: 360px;
    opacity: 1;
  }

  .navbar__menu.is-open .navbar__link {
    color: var(--color-primary);
  }

  .navbar__menu.is-open .navbar__link:hover {
    background: rgba(70, 157, 114, 0.08);
    color: var(--color-primary-dark);
  }

  .navbar__menu .navbar__item {
    width: 100%;
    border-bottom: 1px solid var(--color-nav-border);
  }

  .navbar__menu .navbar__item:last-child {
    border-bottom: none;
  }

  .navbar__item + .navbar__item .navbar__link {
    border-left: none;
  }

  .navbar__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: auto;
    padding: var(--space-md) var(--space-lg);
    box-sizing: border-box;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .navbar__logo-img {
    width: auto;
    max-width: 200px;
    height: 28px;
  }

  .navbar__logo-esg {
    width: 55px;
    height: 28px;
  }

  .hero__box {
    flex-direction: column;
    gap: 2rem;
  }

  .hero__left {
    width: 100%;
    flex: none;
  }

  .hero__right {
    width: 90%;
    max-width: 450px;
    flex: none;
  }

  .hero__kv-pic,
  .hero__kv-text {
    height: auto;
  }

  /* 行動版：議程區塊不衝出容器，避免圓角被裁掉；左右留一點邊距 */
  .section--agenda .container {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }

  .section--agenda .agenda__table-wrap {
    width: 100%;
    margin-left: 0;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
  }

  .agenda__topic {
    font-size: 0.8rem;
    margin-bottom: 1em;
  }

  /* 圓角與裁切在內層，確保可見 */
  .section--agenda .agenda__table-inner {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
  }

  /* 行動版：隱藏「時間、講題、講者」表頭 */
  .section--agenda .agenda__table-header {
    display: none;
  }

  /* 行動版：表格改為 block 排版 */
  .agenda__table {
    display: block;
  }

  .agenda__table tbody {
    display: block;
  }

  .agenda__table tbody tr {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: var(--space-md) 0;
    text-align: center;
  }

  .agenda__table .agenda__title {
    font-weight: 800;
    font-size: 1rem;
  }

  /* 行動版：tbody 圓角（首列第一個 td 為整列上方、末列最後一個 td 為整列下方） */
  .agenda__table tbody tr:first-child td:first-child {
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
  }
  .agenda__table tbody tr:last-child td:last-child {
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
  }

  .agenda__table tbody tr:last-child {
    border-bottom: none;
  }

  .agenda__table tbody td {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: var(--space-xs) 0 var(--space-sm);
    min-height: 0;
    border: none;
    text-align: center;
  }

  .agenda__table tbody td:first-child {
    padding-top: 0;
  }

  /* 手機版：隱藏「時間、議程／講者」標題 */
  .agenda__table tbody td::before {
    display: none;
  }

  /* 講者格前方：綠色粗「■」（無講者、空欄或僅「—」時不顯示） */
  .agenda__table
    tbody
    td.agenda__speaker:not(:empty):not(.agenda__speaker--no-name)::before {
    display: inline;
    content: "■";
    color: var(--color-primary);
    font-weight: 700;
    margin-right: 0.35em;
  }

  /* 講題格：內層置中 */
  .agenda__table tbody td:nth-child(2) .agenda__topic-inner {
    align-items: center;
  }

  /* 手機版：中場休息列 — 用偽元素整塊白底，文字在框框正中間 */
  .agenda__row--break {
    position: relative;
    display: flex;
    align-items: stretch;
    min-height: 56px;
    padding: var(--space-md) 0;
    margin: 0;
    border: none;
    border-bottom: none;
    background: transparent;
  }
  .agenda__row--break::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    background-color: var(--color-white);
    background-image: url(../imgs/agenda_bg_line.png);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: auto;
  }
  .agenda__row--break td {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    width: 100%;
    min-height: 0;
    box-sizing: border-box;
    padding: 0 var(--space-lg);
    margin: 0;
    background: transparent;
    color: var(--color-primary);
    font-weight: 800;
    text-align: center;
  }
}

/* ========== 13. 固定快捷按鈕（不受捲動影響） ========== */
/* .fixed-btns-wrapper 由 JS 建立並包住 fixed-btns，確保 fixed 生效 */
.fixed-btns-wrapper {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none;
  z-index: 99999;
}

.fixed-btns {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.fixed-btns .fixed-btn {
  pointer-events: auto;
}

.fixed-btns__group {
  position: absolute;
}

.fixed-btns__group--right {
  top: 50%;
  right: 1.5rem;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-sm);
}

.fixed-btn {
  display: block;
  width: 80px;
  height: 100px;
  border: none;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  text-indent: -9999px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
}

.fixed-btn--signup {
  background-image: url("../imgs/signUpBtn.png");
}

.fixed-btn--book {
  background-image: url("../imgs/BookBtn.png");
}

.fixed-btn--gotop {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  background-image: url("../imgs/goTopBtn.png");
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.fixed-btn--gotop.is-visible {
  opacity: 1;
  pointer-events: auto;
  width: 60px;
}

@media (max-width: 768px) {
  .fixed-btn {
    width: 65px;
    height: 90px;
  }
}

/* 貴賓區卡片：固定高度，不隨寬度變化 */
#guest .swiper_speaker .swiper-slide .card,
.section--speakers .swiper_speaker .swiper-slide .card {
  height: 400px !important;
}
