.cover-shape {
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
  /* 不擋滑鼠事件 */
}

.cover-shape .shape-right {
  fill: rgba(40, 40, 40, 0.85);
}

/* 文字層再往上 */
.cover-title {
  position: absolute;
  right: 8%;
  top: 5%;
  text-align: right;
  max-width: 30%;
  z-index: 6;
  /* ← 文字永遠最上 */
}

.cover-title h1 {
  font-size: 4rem;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.1;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.6);
}

.cover-title p {
  margin-top: 0px;
  font-size: 1.3rem;
  opacity: 0.9;
}

.cover-author {
  display: block;
  margin-top: 1.5rem;
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.75;
  letter-spacing: 0.1em;
}

/* ========= 基本字體設定 ========= */
.reveal {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Noto Sans TC",
    "Segoe UI", sans-serif;
}

.reveal h2 {
  font-size: 2.4rem;
  margin-bottom: 0.8rem;
}

.reveal h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.reveal p,
.reveal li {
  font-size: 1.05rem;
}

.reveal ul {
  margin-top: 0.3rem;
}

/* ========= 章節開頭版 ========= */
.section-title {
  text-align: left;
  max-width: 60%;
}

.section-label {
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #c9a066;
  margin-bottom: 0.4rem;
}

.section-title h2 {
  font-size: 2.8rem;
}

/* ========= 雙欄排版 ========= */
.two-col {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  margin-top: 0.5rem;
}

.two-col .col {
  flex: 1;
}

.two-col .col ul {
  padding-left: 1.1rem;
}

/* ========= 圖片 + 暗色遮罩 ========= */
.bg-photo {
  position: relative;
  color: #fff;
}

.bg-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.bg-photo>* {
  position: relative;
  z-index: 1;
}

/* ========= 重點卡片（小區塊框） ========= */
.callout {
  border-left: 4px solid #c9a066;
  padding-left: 1rem;
  margin-top: 0.8rem;
  font-size: 0.98rem;
  opacity: 0.9;
}

/* ========= 引言版 ========= */
.quote-slide blockquote {
  font-size: 1.3rem;
  border-left: 4px solid #c9a066;
  padding-left: 1.1rem;
  margin-top: 0.8rem;
}

/* ========= 條列縮排較緊的版 ========= */
.compact-list li {
  margin-bottom: 0.25rem;
}

/* ========= 小標籤式小標 ========= */
.kicker {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #c9a066;
  margin-bottom: 0.2rem;
}

.reveal section:not(.cover-hero):not([data-background]) {
  padding: 0 6vw;
  /* 左右各 6% 寬度 */
  box-sizing: border-box;
  width: 100%;
}

/* ========= 章節 ========= */

/* ========= Centered Title Slide (New Layout) ========= */
.reveal section.centered-title-slide {
  padding: 0 !important;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  background-color: #1b1b1b;
}

.centered-title-slide .line-top {
  width: 65%;
  height: 4px;
  background-color: #c9a066;
  align-self: flex-start;
  margin-bottom: 1.5rem;
}

.centered-title-slide h2 {
  font-size: 4rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  line-height: 1.2;
  text-transform: uppercase;
  padding: 0 2rem;
  text-align: center;
}

.centered-title-slide .line-bottom {
  width: 65%;
  height: 4px;
  background-color: #c9a066;
  align-self: flex-end;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.centered-title-slide .subtitle {
  font-size: 1.5rem;
  color: #c9a066;
  opacity: 0.9;
  font-weight: 400;
  letter-spacing: 1px;
  text-align: center;
  max-width: 80%;
}

.centered-title-slide .thanks-names {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 300;
  letter-spacing: 0.5px;
  text-align: center;
  max-width: 95%;
  line-height: 1.8;
  margin-top: 1rem;
}


/* ========= 左圖右文 ========= */
.photo-side {
  display: flex;
  gap: 2rem;
  align-items: center;
  padding: 0 6vw;
}

.photo-side.reverse {
  flex-direction: row-reverse;
}

.photo-side .img {
  flex: 1;
  height: 55vh;
  background-size: cover;
  background-position: center;
  border-radius: 6px;
}

.photo-side .text {
  flex: 1;
}


/* ========= Gallery 大圖 Fragment ========= */
.gallery-slide {
  padding: 0;
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.gallery-slide .section-label {
  position: absolute;
  bottom: 2rem;
  right: 6vw;
  z-index: 10;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.5rem 1rem;
  border-radius: 4px;
}

.gallery-slide .gallery {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  margin: 0;
  max-width: 100%;
}

.gallery-slide .gallery img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: 0;
  box-shadow: none;
  z-index: 1; /* 確保在 footer (z-index: 50) 下方 */
}

.gallery-slide .gallery img[src*="long.jpg"] {
  object-position: center 10%;
}

/* 直立圖片：上下貼邊 */
.gallery-slide .gallery .gallery-portrait {
  object-fit: contain;
  width: auto;
  height: 100%;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border: 3px solid transparent;
}

/* 有邊框的版本 */
.gallery-slide .gallery .gallery-portrait-bordered {
  border: 3px solid #c9a066;
}

/* 第一張圖片一開始就顯示 */
.gallery-slide .gallery .gallery-first-img {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* 確保 fade-in-then-out 的圖片只在 current-fragment 時顯示 */
.gallery-slide .gallery img.fragment.fade-in-then-out:not(.current-fragment) {
  opacity: 0;
  visibility: hidden;
}

/* ========= Gallery 右下角文字區塊 ========= */
.gallery-slide .gallery-text-overlay {
  position: absolute;
  bottom: 2rem;
  right: 6vw;
  z-index: 10;
  max-width: 35%;
  min-width: 300px;
}

.gallery-text-item {
  background: rgba(0, 0, 0, 0.75);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #c9a066;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* 第一個文字項目初始顯示 */
.gallery-text-item:first-child:not(.fragment),
.gallery-text-item.visible-first {
  opacity: 1;
  visibility: visible;
}

.gallery-text-item.fragment.visible,
.gallery-text-item.fragment.current-fragment {
  opacity: 1;
  visibility: visible;
}

.gallery-text-item.fragment:not(.visible):not(.current-fragment) {
  opacity: 0;
  visibility: hidden;
}

.gallery-text-number {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border: 3px solid #c9a066;
  color: #c9a066;
  font-size: 1.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.gallery-text-content {
  text-align: left;
}

.gallery-text-content h3 {
  font-size: 1.4rem;
  color: #c9a066;
  margin: 0 0 0.5rem 0;
  text-transform: uppercase;
  font-weight: 700;
}

.gallery-text-content p {
  font-size: 0.95rem;
  color: #fff;
  margin: 0;
  line-height: 1.5;
  opacity: 0.9;
}

/* 調整 section-label 位置，避免與文字重疊 */
.gallery-slide .section-label {
  position: absolute;
  top: auto;
  right: 6vw;
  bottom: 2rem;
  z-index: 10;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.5rem 1rem;
  border-radius: 4px;
}


/* ========= 名言文字 ========= */
.bg-photo blockquote {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.4;
  border-left: 4px solid #c9a066;
  padding-left: 1.4rem;
  margin-top: 2rem;
}

/* ====== INTRO 圖片 + 文字版型 ====== */

.intro-photo-text {
  display: grid !important;
  grid-template-columns: 0.5fr 1fr;
  align-items: center;
  gap: 2rem;
  padding: 0 6vw;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

/* 左側大圖 */
.intro-photo-text .intro-img {
  height: 70vh;
  background-size: 280%;
  background-position: 25% 75%;
  border-radius: 6px;
  position: relative;
}

/* 金色邊框（仿範例） */
.intro-photo-text .intro-img::before {
  content: "";
  position: absolute;
  inset: 8%;
  border: 3px solid #c9a066;
  border-radius: 4px;
  pointer-events: none;
}

.intro-photo-text .section-label {
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #c9a066;
  margin-bottom: 0.6rem;

  display: block !important;
  text-align: left !important;
}

/* 右側文字 */
.intro-photo-text .intro-text h2 {
  font-size: 2.6rem;
  margin-bottom: 1rem;
  text-align: left !important;
}

.intro-photo-text .intro-text p {
  font-size: 1.12rem;
  line-height: 1.6;
  text-align: left !important;
}

/* 強制側邊直排文字顯示 */
.intro-photo-text,
.intro-photo-text.present,
.reveal .slides section.intro-photo-text,
.gear-section,
.gear-section.present,
.reveal .slides section.gear-section,
.waterproof-section,
.waterproof-section.present,
.reveal .slides section.waterproof-section,
.lens-choice-section,
.lens-choice-section.present,
.reveal .slides section.lens-choice-section,
.sidebar-layout,
.sidebar-layout.present,
.reveal .slides section.sidebar-layout,
.grid-2x2-layout,
.grid-2x2-layout.present,
.reveal .slides section.grid-2x2-layout,
.columnar-layout,
.columnar-layout.present,
.reveal .slides section.columnar-layout {
  overflow: visible !important;
}

/* ========= Fix Side Vertical Title for New Layouts ========= */
/* Adjust position to be closer to the right edge for these full-width layouts */


/* Color Overrides */
/* Sidebar & Columnar: Dark background -> Light Title */
.sidebar-layout .side-vertical-title,
.columnar-layout .side-vertical-title {
  color: rgba(255, 255, 255, 0.45);
}

/* Grid 2x2: Light background -> Dark Title */
.grid-2x2-layout .side-vertical-title {
  color: rgba(0, 0, 0, 0.3);
}

/* Ensure span color (gold) remains visible */
.sidebar-layout .side-vertical-title span,
.columnar-layout .side-vertical-title span,
.grid-2x2-layout .side-vertical-title span {
  color: #c9a066;
  opacity: 1;
}

.reveal .slides section.present .side-vertical-title {
  position: absolute;
  top: 50%;
  right: 0.2%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  z-index: 50;
  white-space: nowrap;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  opacity: 0.45;
  font-weight: 300;
}

.side-vertical-title span {
  color: #c9a066;
}

/* 左側版本的垂直標題 */
.reveal .slides section.present .side-vertical-title.left {
  right: auto;
  left: 0.2%;
}

/* ========= Navigation Arrows ========= */
.reveal .controls {
  color: #c9a066;
  transform: scale(0.8);
  transform-origin: bottom right;
}

/* ========= Progress Bar ========= */
.reveal .progress span {
  background-color: #c9a066;
}

/* ========= 底部水平標題 ========= */
.side-horizontal-title {
  position: absolute;
  bottom: 1.5rem;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  opacity: 0.45;
  font-weight: 300;
  z-index: 50;
  white-space: nowrap;
}

.side-horizontal-title span {
  color: #c9a066;
}

/* ========= Gear Section Redesign (New) ========= */
/* Increase specificity to override reveal.js default display:block */
.reveal .slides section.gear-section {
  display: grid !important;
  grid-template-columns: 40% 55%;
  gap: 3rem;
  align-items: center;
  padding: 0 6vw;
  text-align: left;
  /* Ensure text aligns left */
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.gear-section .img-wrap {
  position: relative;
  height: 55vh;
  /* Slightly taller to match text height better */
  width: 100%;
}

.gear-section .img-wrap .img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 2;
}

/* Decorative border behind image */
.gear-section .img-wrap::before {
  content: "";
  position: absolute;
  top: -15px;
  left: -15px;
  width: 100%;
  height: 100%;
  border: 2px solid #c9a066;
  z-index: 1;
  opacity: 0.6;
  border-radius: 6px;
  transition: transform 0.5s ease;
}

.gear-section:hover .img-wrap::before {
  transform: translate(-5px, -5px);
}

.gear-section .text-content {
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.gear-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  /* Slightly tighter gap */
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.gear-item {
  background: rgba(255, 255, 255, 0.03);
  padding: 0.8rem 1.2rem;
  /* Compact padding */
  border-radius: 4px;
  border-left: 3px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.gear-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.gear-item.highlight {
  background: linear-gradient(90deg, rgba(201, 160, 102, 0.15) 0%, rgba(0, 0, 0, 0) 100%);
  border-left-color: #c9a066;
}

.gear-item h4 {
  margin: 0 0 0.2rem 0;
  font-size: 1.1rem;
  color: #fff;
  font-weight: 600;
}

.gear-item h4 .gear-specs {
  font-size: 0.8rem;
  font-weight: 400;
  opacity: 0.7;
  margin-left: 0.3rem;
}

.gear-item p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.7;
  line-height: 1.3;
}

.gear-section .final-setup {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.95rem;
  color: #c9a066;
  line-height: 1.5;
}

/* ========= Waterproof Section ========= */
.waterproof-section {
  padding: 0 4vw;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
}

.waterproof-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 1.5rem;
  margin-top: 0.5rem;
  align-items: start;
  width: 100%;
  margin-left: 0;
  box-sizing: border-box;
}

.right-col {
  position: relative;
  display: flex;
  flex-direction: column;
}

.image-col {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 200px;
  transition: all 0.5s ease;
}

/* 當 solution-col fragment 顯示時，image-col 不佔空間 */
.image-col.hidden {
  display: none;
}

.image-col #solution-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(201, 160, 102, 0.3);
  transition: opacity 0.5s ease;
}

/* bucket 圖片使用 contain 以完整顯示（直向圖片） */
.image-col #solution-image[src*="bucket"] {
  object-fit: contain;
}

.trials-col h3,
.solution-col h3 {
  font-size: 1.2rem;
  color: #c9a066;
  margin-bottom: 1.2rem;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.trial-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.trial-item {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  border-left: 3px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
}

.trial-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(5px);
}

.trial-item.highlight {
  background: linear-gradient(90deg, rgba(201, 160, 102, 0.15) 0%, rgba(0, 0, 0, 0) 100%);
  border-left-color: #c9a066;
}

.trial-item .method {
  font-weight: 600;
  font-size: 1rem;
  color: #eee;
}

.trial-item .issue {
  font-size: 0.85rem;
  color: #ff8e8e;
  text-align: right;
  letter-spacing: 1px;
  opacity: 0.9;
}

.solution-col {
  background: rgba(201, 160, 102, 0.05);
  border: 1px solid rgba(201, 160, 102, 0.2);
  border-radius: 8px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  margin-top: 1.5rem;
}

/* 當 solution-col 是 fragment 且未顯示時，使用 display: none 避免佔據空間 */
.solution-col.fragment:not(.visible) {
  display: none !important;
}

/* 當 fragment 顯示時，恢復 flex 顯示 */
.solution-col.fragment.visible {
  display: flex !important;
}

.insight-block {
  margin-bottom: 2rem;
}

.insight-block h4 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.insight-block p {
  font-size: 0.95rem;
  opacity: 0.7;
  line-height: 1.4;
  margin: 0;
  padding-left: 0.5rem;
  border-left: 2px solid #555;
}

.core-principle {
  margin-top: auto;
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(201, 160, 102, 0.3);
}

.core-principle .label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.6;
  margin-bottom: 0.5rem;
  display: block;
}

.core-principle .value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #c9a066;
}

/* ========= Lens Choice 3-Column Layout ========= */
.lens-choice-section {
  padding: 0;
  text-align: left;
  position: relative;
  color: #fff;
  overflow: visible;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  width: 100%;
  box-sizing: border-box;
}

.lens-choice-section::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(27, 27, 27, 0.35);
  z-index: 0;
  pointer-events: none;
  display: none;
}

.lens-choice-section.present::before,
.reveal .slides section.lens-choice-section.present::before {
  display: block;
}

.lens-choice-section>* {
  position: relative;
  z-index: 1;
}

.lens-choice-section .section-label {
  text-align: left;
  padding: 0 6vw;
}

.lens-choice-section h2 {
  margin-bottom: 2rem;
  text-align: left;
  padding: 0 6vw;
}

.three-col-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 1rem;
  text-align: left;
  max-width: 90%;
  margin-left: 6vw;
  /* Reset text align for cards */
}

.col-item {
  background: rgba(255, 255, 255, 0.03);
  padding: 2rem 1.5rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.col-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.06);
}

.col-item.highlight {
  border-color: #c9a066;
  background: linear-gradient(160deg, rgba(201, 160, 102, 0.15) 0%, rgba(0, 0, 0, 0) 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.col-item .number {
  font-size: 1.8rem;
  font-weight: 700;
  background: transparent;
  border: 2px solid #c9a066;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  border-radius: 4px;
}

.col-item h3 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  color: #c9a066;
  font-weight: 700;
  text-transform: uppercase;
}

.col-item .verdict {
  font-size: 1rem;
  color: #c9a066;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.col-item .desc {
  font-size: 1rem;
  letter-spacing: 0.1em;
  opacity: 0.7;
  line-height: 1.5;
  margin: 0;
}

.lens-choice-section .callout {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.lens-choice-section .callout-group {
  margin-top: 3rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0 6vw;
  width: fit-content;
  max-width: 650px;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  box-sizing: border-box;
}

.lens-choice-section .callout-group .callout {
  margin: 0;
  width: 100%;
  max-width: none;
}

/* ========= Split Chapter Layout (Left Content / Right Image) ========= */
.split-chapter-layout {
  display: grid !important;
  grid-template-columns: 40% 60%;
  padding: 0 !important;
  height: 100%;
  width: 100%;
  align-items: stretch;
}

.split-chapter-layout .left-content {
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #1b1b1b;
  z-index: 2;
  text-align: left;
}

.split-chapter-layout .section-label {
  text-align: left;
  margin-left: 0;
}

.split-chapter-layout h2 {
  text-align: left;
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.split-chapter-layout .right-images {
  position: relative;
  height: 100%;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.split-chapter-layout .right-images img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.8s ease;
}

/* Table Styling for Sunrise/Sunset Data */
.split-chapter-layout .right-images table {
  width: 85%;
  margin: 1rem auto;
  border-collapse: collapse;
  color: #fff;
  font-size: 1rem;
  position: relative;
  z-index: 1;
}

.split-chapter-layout .right-images .table-caption {
  text-align: center;
  color: #c9a066;
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 1rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.split-chapter-layout .right-images table th,
.split-chapter-layout .right-images table td {
  border: 1px solid rgba(201, 160, 102, 0.5);
  padding: 0.4rem;
  text-align: center;
}

.split-chapter-layout .right-images table th {
  background-color: rgba(201, 160, 102, 0.2);
  color: #c9a066;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.split-chapter-layout .right-images table tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.03);
}

.split-chapter-layout .right-images table tr:hover {
  background-color: rgba(201, 160, 102, 0.1);
}

.chapter-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.chapter-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.chapter-number {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border: 2px solid #c9a066;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  margin-top: 0.2rem;
}

.chapter-text h3 {
  color: #c9a066;
  font-size: 1.3rem;
  margin: 0 0 0.5rem 0;
  text-transform: uppercase;
  text-align: left;
}

.chapter-text p {
  font-size: 0.95rem;
  margin: 0;
  opacity: 0.8;
  line-height: 1.5;
  text-align: left;
}

/* ========= 2x2 Grid Layout (Light Theme) ========= */
.grid-2x2-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2rem;
  padding: 4rem 6vw;
  height: 100%;
  background-color: #f4f4f4;
  /* Light background */
  color: #333;
}

.grid-2x2-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 1rem;
}

.grid-2x2-item .number-box {
  width: 60px;
  height: 60px;
  border: 3px solid #c9a066;
  color: #333;
  font-size: 2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.grid-2x2-item h3 {
  font-size: 1.6rem;
  color: #c9a066;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  font-weight: 700;
}

.grid-2x2-item p {
  font-size: 1rem;
  line-height: 1.5;
  color: #555;
  margin: 0;
}

/* ========= Sidebar Layout (Light Sidebar / Dark Content) ========= */
.sidebar-layout {
  display: flex !important;
  height: 100%;
  padding: 0 !important;
}

.sidebar-layout .sidebar {
  width: 30%;
  background-color: #f4f4f4;
  color: #333;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 3rem;
  position: relative;
}

/* Vertical Line in Sidebar */
.sidebar-layout .sidebar::after {
  content: "";
  position: absolute;
  top: 10%;
  bottom: 10%;
  left: 4.5rem;
  /* Aligned with numbers center */
  width: 2px;
  background-color: #c9a066;
  z-index: 0;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
  /* Above the line */
  opacity: 0.4;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.sidebar-item.active {
  opacity: 1;
}

.sidebar-item .number {
  width: 50px;
  height: 50px;
  background-color: #f4f4f4;
  border: 3px solid #c9a066;
  color: #333;
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-item.active .number {
  background-color: #c9a066;
  color: #fff;
}

.sidebar-item .label {
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  text-align: left;
}

.sidebar-layout .main-content {
  width: 70%;
  background-color: #1b1b1b;
  color: #fff;
  display: grid;
  grid-template-areas: 'stack';
  align-items: flex-start;
  padding: 2rem 5rem 0 5rem;
  text-align: left;
  position: relative;
}

.sidebar-layout .main-content h2 {
  font-size: 3.5rem;
  color: #fff;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  font-weight: 800;
}

.sidebar-layout .main-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.8;
  max-width: 80%;
}

.sidebar-layout .main-content .deco-line {
  width: 100px;
  height: 4px;
  background-color: #c9a066;
  margin-bottom: 2rem;
}

.sidebar-layout .icon-area {
  font-size: 4rem;
  color: #c9a066;
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.sidebar-layout .icon-area img {
  max-width: 650px;
  max-height: 650px;
  width: auto;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(201, 160, 102, 0.3);
}

.content-block {
  grid-area: stack;
  background-color: #1b1b1b;
  width: 100%;
  transition: opacity 0.5s ease;
}

.content-block.fragment:not(.visible) {
  opacity: 0;
  pointer-events: none;
}

.content-block.fragment.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Ensure fragments in sidebar are visible but dimmed initially */
.sidebar-item.fragment {
  opacity: 0.4;
  visibility: visible;
}

.sidebar-item.fragment.visible {
  opacity: 1;
}

/* Styled numbered list for content blocks */
.styled-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: list-counter;
}

.styled-list li {
  counter-increment: list-counter;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.2rem;
  font-size: 1.2rem;
  line-height: 1.6;
}

.styled-list li::before {
  content: counter(list-counter) ".";
  color: #c9a066;
  font-weight: 700;
  font-size: 1.1rem;
  min-width: 1.5rem;
}

/* ========= List Slide Layout (參考版型) ========= */
.list-slide {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 4rem 6rem;
  height: 100%;
  text-align: left;
}

/* 雙欄佈局 - 左右並排 (Grid) */
.list-slide.dual-content,
.reveal .slides section.list-slide.dual-content {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  grid-template-rows: auto auto;
  grid-template-areas:
    "block1 block2"
    "block3 block4";
  align-items: start;
  align-content: center;
  gap: 1.5rem 2rem;
}

.list-slide.dual-content .list-slide-content {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding-right: 1rem;
  padding-top: 0;
  box-sizing: border-box;
}

.list-slide.dual-content .list-slide-content:nth-child(1) {
  grid-area: block1;
}

.list-slide.dual-content .list-slide-content:nth-child(2) {
  grid-area: block2;
}

.list-slide.dual-content .list-slide-content:nth-child(3) {
  grid-area: block3;
}

.list-slide.dual-content .list-slide-content:nth-child(4) {
  grid-area: block4;
}

.list-slide.dual-content > .side-vertical-title {
  position: absolute;
  right: 2.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.list-slide.dual-content .list-slide-title {
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
}

.list-slide.dual-content .list-slide-intro {
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}

.list-slide.dual-content .list-slide-list li {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.list-slide.dual-content .list-slide-note {
  font-size: 0.85rem;
  margin-top: 0.8rem;
}

/* 標題區塊特別樣式 */
.list-slide.dual-content .hero-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.list-slide.dual-content .hero-block .list-slide-title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.list-slide.dual-content .hero-block .hero-divider {
  width: 60px;
  height: 3px;
  background: #c9a066;
  margin: 0.5rem 0 1.2rem;
}

.list-slide.dual-content .hero-block .list-slide-intro {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.list-slide.dual-content .hero-block .list-slide-note {
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  color: #c9a066;
  opacity: 1;
  margin-top: 0.5rem;
}

/* 主要內容區 */
.list-slide-content {
  max-width: 70%;
  padding-right: 8rem;
  padding-top: 4rem;
}

/* 大標題 - 分兩行 */
.list-slide-title {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 2rem;
  text-transform: none;
  color: #fff;
}

.list-slide-title .accent {
  color: #c9a066;
}

/* 介紹文字 */
.list-slide-intro {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  opacity: 0.85;
}

/* 編號列表 */
.list-slide-list {
  list-style: none !important;
  padding: 0;
  margin: 0 0 2rem 1.5rem;
  counter-reset: slide-list;
}

.list-slide-list li {
  counter-increment: slide-list;
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.15rem;
  line-height: 1.5;
}

.list-slide-list li::before {
  content: counter(slide-list) ".";
  position: absolute;
  left: 0;
  color: #888;
  font-weight: 500;
}

/* 底部備註 */
.list-slide-note {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-top: 1.5rem;
  opacity: 0.7;
}

/* 右側垂直標題 */
.list-slide-vertical-title {
  position: absolute;
  right: 2.5rem;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: center center;
  white-space: nowrap;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #888;
}

.list-slide-vertical-title span {
  color: #c9a066;
  font-weight: 400;
}

/* ========= Vertical Stack Layout (Top to Bottom) ========= */
.vertical-stack-layout {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 6vw;
  height: 100%;
  background-color: #f4f4f4;
  color: #333;
}

.vertical-stack-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.vertical-stack-item:last-child {
  border-bottom: none;
}

.vertical-stack-item .number-box {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border: 3px solid #c9a066;
  color: #333;
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.2rem;
}

.vertical-stack-item .text-content {
  text-align: left;
}

.vertical-stack-item h3 {
  font-size: 1.4rem;
  color: #c9a066;
  margin: 0 0 0.4rem 0;
  text-transform: uppercase;
  font-weight: 700;
}

/* ========= Columnar Layout (Dark Theme) ========= */
.columnar-layout {
  display: flex;
  flex-direction: column;
  padding: 3rem 6vw;
  height: 100%;
  background-color: #1b1b1b;
  color: #fff;
  text-align: left;
}

.columnar-header {
  margin-bottom: 3rem;
  max-width: 80%;
}

.columnar-header h2 {
  font-size: 3rem;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  color: #fff;
}

.columnar-header .highlight {
  color: #c9a066;
}

.columnar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  align-items: start;
}

.column-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.column-item .number-box {
  width: 60px;
  height: 60px;
  border: 3px solid #c9a066;
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.column-item:hover .number-box {
  transform: translateY(-5px);
  background-color: rgba(201, 160, 102, 0.1);
}

.column-item h3 {
  font-size: 1.3rem;
  color: #c9a066;
  margin-bottom: 1rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
}

.column-item p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

/* ========= Hero Photo (全幅大圖主題頁) ========= */
.hero-photo {
  position: relative;
  display: flex !important;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0 !important;
}


.reveal .slides section .hero-text {
  position: absolute !important;
  bottom: 3rem;
  right: 4rem;
  font-size: 2rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.6);
  padding: 1.2rem 0.8rem;
  border-right: 3px solid #c9a066;
  background: linear-gradient(to left, rgba(0, 0, 0, 0.4), transparent);
  /* 強制垂直排列：用極窄寬度讓每個字換行 */
  width: 1.2em;
  line-height: 1.6;
  text-align: center;
  word-break: break-all;
}

/* ========= Hero Photo Multi（模仿 gallery-slide）========= */
.hero-photo-multi {
  padding: 0;
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.hero-photo-multi .hero-gallery {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  margin: 0;
  max-width: 100%;
}

.hero-photo-multi .hero-gallery img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: 0;
  box-shadow: none;
  z-index: 1;
}

/* 第一張圖片一開始就顯示 */
.hero-photo-multi .hero-gallery .hero-first-img {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* 確保 fade-in-then-out 的圖片只在 current-fragment 時顯示 */
.hero-photo-multi .hero-gallery img.fragment.fade-in-then-out:not(.current-fragment) {
  opacity: 0;
  visibility: hidden;
}

/* 直立圖片：上下貼邊 */
.hero-photo-multi .hero-gallery .hero-portrait {
  object-fit: contain;
  width: auto;
  height: 100%;
  left: 50%;
  transform: translateX(-50%);
}

/* splash3 往上移 */
.hero-photo-multi .hero-gallery img[src*="splash3"] {
  object-position: center 20%;
}

/* ch2 往右移 */
.hero-photo-multi .hero-gallery img[src*="ch2"] {
  object-position: 20% center;
}

/* 文字位置（先用 vw 定位，之後再調整）*/
.hero-photo-multi .hero-text-multi {
  position: absolute;
  top: 25vh;
  right: 6vw;
  z-index: 10;
  font-size: 1.5rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.6);
  padding: 1.2rem 0.8rem;
  border-right: 3px solid #c9a066;
  background: linear-gradient(to left, rgba(0, 0, 0, 0.4), transparent);
  /* 強制垂直排列 */
  width: 1.2em;
  line-height: 1.6;
  text-align: center;
  word-break: break-all;
}

/* ========= Theme Choice Section (主題展示，無背景遮罩) ========= */
.theme-choice-section {
  padding: 0;
  position: relative;
  color: #fff;
  overflow: visible;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  height: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* 不需要 ::before 背景遮罩，讓背景圖片完整呈現 */

.theme-choice-section > * {
  position: relative;
  z-index: 1;
}

/* 主題文字樣式（學習 hero-text-multi 垂直排列風格）*/
.theme-choice-section .theme-text-multi {
  position: absolute;
  top: 25vh;
  right: 2vw;
  z-index: 10;
  font-size: 1.5rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.6);
  padding: 1.2rem 0.8rem;
  border-right: 3px solid #c9a066;
  background: linear-gradient(to left, rgba(0, 0, 0, 0.4), transparent);
  /* 強制垂直排列 */
  width: 1.2em;
  line-height: 1.6;
  text-align: center;
  word-break: break-all;
}

/* 左側版本的主題文字 */
.theme-choice-section .theme-text-multi.left {
  right: auto;
  left: 2vw;
  border-right: none;
  border-left: 3px solid #c9a066;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.4), transparent);
}

/* ======= 結尾頁樣式 ======= */
.ending-slide {
  justify-content: flex-end !important;
  align-items: center !important;
}

.ending-slide .ending-text-bottom .ending-thanks {
  font-size: 1.5rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.7);
  margin: 0;
  letter-spacing: 0.05em;
  /* 文字絕對定位在正中間 */
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.ending-slide .ending-text-bottom {
  position: absolute;
  bottom: 5vh;
  left: 0;
  right: 0;
  padding: 0 3rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;  /* QR code 靠右 */
  z-index: 10;
}

.ending-slide .ending-ig,
.ending-slide .ending-flickr {
  font-size: 1rem;
  font-weight: 400;
  color: #c9a066;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  border-bottom: 2px solid #c9a066;
  padding-bottom: 0.3rem;
}

.ending-slide .ending-qrcode-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0rem;
}

.ending-slide .ending-qrcode {
  width: 75px;
  height: 75px;
  margin: 0;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* ========= Three Column Layout ========= */
.three-column-slide {
  position: relative;
  padding: 4rem 6rem;
  padding-right: 8rem;
}

.three-column-slide .three-column-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: 80vh;
}

.three-column-header {
  font-size: 3.2rem;
  font-weight: 900;
  font-style: italic;
  line-height: 1.3;
  margin-bottom: 3rem !important;
  text-transform: none;
  color: #fff;
  text-align: left;
}

.three-column-header .accent {
  color: #c9a066;
}

.three-column-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  width: 100%;
  text-align: left;
}

.column-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.column-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 2px solid #c9a066;
  color: #c9a066;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.column-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #c9a066;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  text-align: left;
}

.column-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  text-align: left;
}

.column-list,
.reveal .slides .column-list {
  list-style: none !important;
  list-style-type: none !important;
  padding: 0 !important;
  margin: 0 !important;
  text-align: left;
}

.column-list li,
.reveal .slides .column-list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.7rem;
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  list-style: none !important;
  list-style-type: none !important;
}

.column-list li::before,
.reveal .slides .column-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #c9a066;
}

.three-column-slide > .side-vertical-title {
  position: absolute;
  right: 2.5rem;
  top: 50%;
  transform: translateY(-50%);
}
