@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&display=swap');

/* Store Modal Styles - 右下角小方形 */
.store-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  bottom: 20px;
  right: 20px;
  width: 200px;
  height: 200px;
  animation: fadeIn 0.3s ease-in-out;
}

.store-modal-content {
  background-color: var(--secondary-color);
  padding: 0;
  border: 2px solid black;
  width: 100%;
  height: 100%;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: transform 0.2s ease;
  border-radius: 8px;
}

.store-modal-content:hover {
  transform: scale(1.05);
}

.store-modal-close {
  color: var(--accent-sky-blue);
  font-size: 1.5rem;
  cursor: pointer;
  position: absolute;
  top: 5px;
  right: 8px;
  z-index: 10001;
  font-family: "IBM PLEX SANS", sans-serif;
  line-height: 1;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-modal-body {
  padding: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  border-radius: 6px;
}

.store-modal-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .store-modal {
    bottom: 15px;
    right: 15px;
    width: 150px;
    height: 150px;
  }
  
  .store-modal-close {
    font-size: 1.2rem;
    width: 20px;
    height: 20px;
  }
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

::selection {
  color: var(--accent-gold);
  background-color: var(--accent-sky-blue);
}

a {
  color: var(--main-color);
  transition: color 0.3s ease;
}

:root {
  /* Main Colors */
  --main-color:black;
  --secondary-color: lightgrey;
  
  /* Accent Colors from the artwork */
  --accent-sky-blue: #87CEEB;
  --accent-warm-brown: #8B4513;
  --accent-orange: #D2691E;
  --accent-gold: #DAA520;
  
  /* Legacy variables for compatibility */
  --primary:black;
  --secondary:black;
  --accent:black;
  --text:black;
  --text-light:black;
  --bg: lightgrey;
  --border:black;
  --shadow: rgba(147, 112, 219, 0.1);
}

body {
  font-family: "Inclusive Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--secondary-color);
  color: var(--main-color);
  line-height: 1.4;
  overflow-x: hidden;
  font-size: 1.3rem;
  cursor: url("image/eye.png") 12 12, auto;
}




/* 為可點擊元素設定不同的游標 */
/* a,
button,
.workshop-register-btn,
.view-all-workshops-btn,
.language-btn {
  cursor: url("image/Face-Chair.png") 16 16, pointer;
} */

/* 為輸入框設定文字游標 */
input,
textarea {
  cursor: text;
}

/* 為拖拽元素設定抓取游標 */
.draggable {
  cursor: grab;
}

.draggable:active {
  cursor: grabbing;
}

/* Typography */
h1,
h2,
h4,
h5,
h6 {
  font-family: "Inclusive Sans", sans-serif;
  font-weight: 400;
  line-height: 1.1;
  text-transform: uppercase;
}

h1 {
  color: var(--main-color);
  text-shadow: 2px 2px 0 var(--accent-sky-blue);
}

h2 {
  color: var(--main-color);
}

h1 {
  font-size: 2.2rem;
}
h2 {
  font-size: 1.6rem;
}
h3 {
  font-size: 1.6rem;
  text-align: center;
  font-family: "Inclusive Sans", sans-serif;
  font-weight: 400;
  line-height: 1.8;
  color: var(--secondary-color);
  text-transform: uppercase;
  background: var(--main-color);
  padding: 10px 20px;
  border: 1px solid var(--main-color);
}
h4 {
  font-size: 1.1rem;
}

p {
  margin-bottom: 0.8rem;
  color: #666;
}

/* 英文文字使用 Inclusive Sans */
.english-text {
  font-family: "Inclusive Sans", sans-serif;
}

/* 中文文字使用 Inclusive Sans */
.chinese-text {
  font-family: "Inclusive Sans", sans-serif;
}

/* 語言切換器 */
.language-switcher {
  position: absolute;
  left: 0px;
  top: 0%;
  transform: translateY(-5%);
}

.language-btn {
  padding: 0;
  border: 1px solid var(--main-color);
  background: var(--secondary-color);
  color: var(--main-color);
  cursor: pointer;
  font-size: 0.9rem;
  font-family: "Inclusive Sans", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  padding-left: 16px;
  padding-right: 16px;
  line-height: 0.99rem;
}

/* 主容器 */
.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 5px;
}

/* 主要內容區域 - 確保在導航欄下方 */
.second-content {
  position: relative;
  z-index: 1;
  display: flex; /* 讓三個section並排 */
  align-items: flex-start; /* 從頂部對齊 */
  gap: 16px; /* 三個section之間的間隔調整為16px */
}

/* Event Info 區塊 - Sticky */
.event-info {
  box-shadow: inset 0 0 10px rgba(147, 112, 219, 0.1);
  font-size: 1rem;
  position: sticky;
  color: var(--main-color);
  background: var(--secondary-color);
  border: 1px solid var(--main-color);
  top: 3.5rem; /* 在導航項目下方 */
  left: 0;
  right: 0;
  border-bottom: 1px solid var(--main-color);
  z-index: 998;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.event-info.expanded {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  z-index: 10000;
  flex-direction: column;
  align-items: stretch;
}

.event-info.expanded .exhibitor-display-container {
  display: none;
}

.event-info.expanded .exhibitor-info-content {
  display: none;
}

.event-info.expanded > .ticket-info {
  display: none;
}

.exhibitor-full-list .ticket-info {
  display: flex !important;
  position: relative !important;
  width: auto !important;
  right: auto !important;
  height: auto !important;
}

/* 社交連結樣式 - 已移至上方統一定義 */
.social-links p {
  margin-left: 16px;
  text-align: right;
  display: inline-block;
}

/* 社交連結靠右對齊 */
.social-links .event-info-content {
  justify-content: flex-end;
  padding-right: 16px;
}

.social-links .event-info-row:last-child {
  gap: 16px; /* Instagram 和 Facebook 之間的間距 */
}

/* 第二個 event-info (主要活動資訊) */
.event-info:nth-of-type(2) {
  top: 70px; /* 在導航欄下方 (16px + 50px) */
}

.event-info-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100%;
  width: 100%;
  padding: 0 8px;
  gap: 40px;
  height: 2rem;
}

/* Ticket 購票區塊 */
.ticket-info {
  position: absolute;
  width: 15rem;
  right: 0px;
  height: 2.1rem;
  background: var(--secondary-color);
  color: var(--main-color);
  border: 1px solid var(--main-color);
  line-height: 2rem;
  display: flex;
  align-items: center;
  position: relative;
}

.ticket-info .ticket-content {
  flex: 1;
  text-align: center;
  padding: 0.3rem 2rem;
}

.ticket-info .ticket-left-notch,
.ticket-info .ticket-right-notch {
  position: absolute;
  width: 1rem;
  height: 1rem;
  background: var(--secondary-color);
  border: 1px solid var(--main-color);
  border-radius: 50%;
  top: 53%;
  transform: translateY(-50%);
}

.ticket-info .ticket-left-notch {
  left: -0.5rem;
}

.ticket-info .ticket-right-notch {
  right: -0.5rem;
}

.ticket-info p {
  color: var(--main-color);
  margin: 0;
  font-weight: 400;
  width: 12rem;
  font-size: 1rem;
  font-family: "Inclusive Sans", sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.event-info-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.event-info-row:first-child {
  flex: 1;
  justify-content: flex-start;
}

.event-info-row:nth-child(2) {
  flex: 1;
  justify-content: center;
}

.event-info-row:last-child {
  flex: 1;
  justify-content: flex-end;
  margin-right: 3rem; /* 為右邊的 Ticket 區塊留出空間 */
}

.event-info-content p {
  margin: 0;
  color: var(--primary);
  font-family: "Inclusive Sans", sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  line-height: 1.3rem;
}

.event-info-item p {
  font-size: 1rem;
  font-weight: 300;
}

/* 右上角控制區域 - 簡潔設計 */
.top-controls {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--main-color);
  border: 1px solid var(--main-color);
  height: 1rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
}

.language-btn {
  background: var(--main-color);
  border: none;
  color: var(--secondary-color);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0 12px;
  font-family: inherit;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  float:left;
}

.exhibitor-login-btn {
  background: var(--accent-warm-brown);
  color: var(--secondary-color);
  text-decoration: none;
  font-size: 0.8rem;
  padding: 0 12px;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  float:right;
}

/* 頁腳社交連結 - 西洋棋盤設計 */
.social-link {
  text-decoration: none;
  font-size: 1.3rem;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
  text-align: center;
}

.social-link:nth-child(1) {
  background: var(--main-color);
  color: var(--secondary-color);
}

.social-link:nth-child(2) {
  background: var(--secondary-color);
  color: var(--main-color);
}

.footer-link {
  flex: 1;
  text-align: center;
  background: var(--main-color);
  color: var(--secondary-color);
  padding: 4px 8px;
  text-decoration: none;
}

/* 社交連結 - 可滾動 */
.social-links {
  background-color: var(--secondary-color);
  border: 1px solid var(--main-color);
  height: 1rem;
  position: relative;
  width: 100%;
  font-size: 0.8rem;
}

/* 主標題區域 - 可滾動 */
.main-title-section {
  padding-top: 25px;
  background: var(--secondary-color);
}

/* Logo 樣式 */
.site-logo {
  height: 9rem;
  width: auto;
  max-width: 100%;
  transition: all 0.3s ease;
}

.site-logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(2px 2px 8px var(--accent-warm-brown));
}

.main-title-area {
  text-align: center;
  margin-top: 10px;
}

/* 導航項目區域 - Sticky */
.nav-items-area.sticky-nav {
  position: sticky;
  top: 0; /* 黏在頂部 */
  background: var(--secondary-color);
  background-image: url('../image/logo.svg');
  background-repeat: repeat;
  background-size: 345px 180px;
  background-position: 0 0;
  border-bottom: 2px solid var(--main-color);
  z-index: 999;
  padding-bottom: 5px;
  padding-top:15px;
  box-shadow: 0 2px 4px rgba(147, 112, 219, 0.1);
}

.nav-items-area {
  display: flex;
  justify-content: center;
}

.logo {
  font-family: "Inclusive Sans", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--main-color);
  text-decoration: none;
  border: 1px solid var(--main-color);
  padding: 6px 10px;
}

.nav-menu {
  display: flex;
  justify-content: space-between; /* 均勻分佈 */
  align-items: center;
  width: 100%; /* 佔滿整個寬度 */
  max-width: 800px; /* 設定最大寬度 */
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-menu a {
  text-decoration: none;
  color: var(--main-color);
  font-weight: 600;
  font-size: 4rem;
  background-color: yellow;
  text-transform: uppercase;
  font-family: "Inclusive Sans", sans-serif;
  border: 1px solid black;
  border-radius: 50%;
  box-shadow: 0 2px 2px var(--main-color);
}

.nav-menu a:hover {
  color: var(--main-color);
  opacity: 0.7;
  border-color: var(--accent-sky-blue);
  box-shadow: 0 0 10px var(--accent-sky-blue);
}

/* TICKET 按鈕樣式 */
.ticket-button a {
  background: var(--accent-orange);
  color: var(--main-color) !important;
  padding: 8px 16px;
  font-weight: 400;
  transition: all 0.2s ease;
}

.ticket-button a:hover {
  background: var(--main-color);
  color: var(--secondary-color) !important;
  border-color: var(--main-color);
}

/* Exhibitors Roller Section */
.exhibitors-roller-section {
  width: 25%; /* 減少寬度 */
  margin-left: 16px;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Multifunction Section */
.multifunction-section {
  border-left: 1px solid black;
  padding: 16px;
  width: 20%; /* 減少寬度 */
  position: relative;
}

/* 垂直分隔線 - 統一樣式 */
.section-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
  z-index: 1;
  pointer-events: none; /* 防止分隔線干擾互動 */
}

.section-divider.left {
  left: -20px;
}

.section-divider.right {
  right: -20px;
}

/* 為不同區域設定分隔線顏色（可選） */
.poster-section .section-divider {
  background: var(--border);
}

.calender-section .section-divider {
  background: var(--border);
}

.multifunction-section .section-divider {
  background: var(--border);
}

/* 移除舊的偽元素分隔線 */
.calender-section::before,
.calender-section::after,
.poster-section::before,
.poster-section::after,
.multifunction-section::before,
.multifunction-section::after {
  display: none;
}

.product-image {
  width: 100%;
  height: auto;
  border: none;
}

/* 響應式設計調整 */
@media (max-width: 768px) {
  /* 平板響應式 - 調整新結構 */
  .main-title-section {
    padding: 15px 0; /* 平板上縮小padding */
  }

  .site-logo {
    height: 7.5rem; /* 平板上稍微縮小logo */
  }

  .nav-items-area.sticky-nav {
    padding: 12px 8px; /* 平板上縮小padding */
  }

  .nav-menu {
    max-width: 600px; /* 平板上縮小最大寬度 */
    gap: 15px;
  }

  .monopoly-board {
    min-height: 100%; /* 平板上保持延伸性 */
    grid-template-rows: 1fr; /* 只有一行 */
    grid-template-columns: 80px 1fr; /* 左邊框和主要內容區域 */
  }

  .event-info {
    top: 3rem; /* 平板上調整sticky位置 */
  }

  .book-item {
    font-size: 0.8rem;
    width: 100px; /* 平板版縮小 */
    height: 150px; /* 平板版縮小 */
    padding: 4px;
  }

  .book-border-left .book-item {
    width: 100px; /* 平板版縮小 */
    height: 150px; /* 平板版縮小 */
  }

  .zine-wall-title {
    font-size: 1rem;
    padding: 0.4rem 0.8rem;
    margin-bottom: 0.8rem;
  }

  .main-content {
    flex-direction: column; /* 在小螢幕上改為垂直排列 */
    padding: 1rem; /* 適當的內邊距 */
    gap: 1rem; /* 適當的間距 */
    min-height: 600px; /* 保持足夠高度 */
  }

  .poster-section,
  .calender-section.card-section {
    width: 100%;
    min-height: 400px; /* 設定最小高度 */
  }

  .book-border-left {
    height: 400px; /* 平板版與PROGRAMS區域等高 */
  }

  .middle-zine-container {
    top: 900px; /* 平板版在 image rotator 下方 */
    gap: 8px;
  }

  .middle-zine-item {
    width: 100px; /* 平板版縮小 */
    height: 150px; /* 平板版縮小 */
    font-size: 0.7rem;
    padding: 3px;
  }

  .zine-container {
    width: 100%; /* 在 calender-section 內部佔滿寬度 */
  }

  .right-zine-container {
    margin-top: 0.5rem;
  }

  .right-zine-item {
    width: 100px; /* 平板版縮小 */
    height: 150px; /* 平板版縮小 */
    font-size: 0.7rem;
    padding: 3px;
  }

  .zine-item {
    width: 100px; /* 平板版縮小 */
    height: 150px; /* 平板版縮小 */
    font-size: 0.7rem;
    padding: 3px;
  }

  /* Agenda 標題行響應式 */
  .agenda-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  /* Event Type 篩選器響應式 */
  .event-filter {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  /* 時間軸區域響應式 */
  .timeline-section {
    padding: 1.5rem 0;
  }

  .timeline-section .container {
    padding-left: 120px; /* 平板版減少左側空間 */
  }

  .agenda-header {
    max-width: calc(100% - 140px); /* 平板版調整寬度 */
  }

  .timeline-section .timeline-mode-container {
    width: calc(100% - 140px); /* 平板版調整寬度 */
  }

  .timeline-section .timeline-mode-container {
    height: 400px; /* 平板版調整為固定高度 */
    margin-bottom: 120px; /* 平板版減少下方空間 */
  }

  .timeline-zine-item {
    width: 100px; /* 平板版縮小 */
    height: 150px; /* 平板版縮小 */
    font-size: 0.8rem;
    padding: 4px;
  }
  
  /* 平板版下方 Zine 容器調整 */
  .timeline-bottom-zine-container {
    bottom: 10px;
    left: 120px; /* 平板版從左側第3本zine的右側開始 */
    right: 10px;
    gap: 3px;
  }
  

  .poster-container {
    max-width: 350px; /* 平板上的海報尺寸 */
    aspect-ratio: 3/4; /* 保持比例 */
  }

  .exhibitors-roller-section,
  .poster-section,
  .multifunction-section,
  .calender-section,
  .workshop-section {
    width: 100%;
    margin-bottom: 20px;
  }

  /* 在小螢幕上隱藏所有分隔線 */
  .section-divider {
    display: none;
  }

  .exhibitors-roller-section::after,
  .poster-section::after {
    display: none; /* 在小螢幕上隱藏垂直分隔線 */
  }
}

.workshop-section {
  margin-left: 16px;
  width: 25%; /* 增加寬度，讓中間區塊大一倍 */
  position: relative;
}

/* 工作坊項目樣式 */
.workshop-item {
  margin-bottom: 20px;
  padding: 15px;
  border: 1px solid var(--border);
  background: var(--bg);
  transition: all 0.3s ease;
}

.workshop-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px var(--shadow);
}

.workshop-item h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.workshop-description {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 10px;
  line-height: 1.4;
  font-family: "Inclusive Sans", sans-serif;
}

.workshop-time {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 5px;
  font-family: "Inclusive Sans", sans-serif;
}

.workshop-location {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 12px;
  font-family: "Inclusive Sans", sans-serif;
}

.workshop-register-btn {
  display: inline-block;
  background: var(--primary);
  color: var(--secondary);
  padding: 8px 16px;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
  border: 1px solid var(--primary);
  font-family: "Inclusive Sans", sans-serif;
}

.workshop-register-btn:hover {
  background: var(--secondary);
  color: var(--primary);
}

.view-all-workshops-btn {
  display: inline-block;
  background: var(--accent);
  color: var(--secondary);
  padding: 12px 20px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
  border: 1px solid var(--accent);
  font-family: "Inclusive Sans", sans-serif;
}

.view-all-workshops-btn:hover {
  background: var(--secondary);
  color: var(--accent);
  border-color: var(--accent);
}

/* 右側 Zine 區域樣式 - 在 poster 下方 */
.right-zine-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  position: absolute;
  top: 560px;
  right: 22px;
}

.right-zine-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary-color);
  border: 1px solid var(--main-color);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--main-color);
  cursor: pointer;
  text-align: center;
  padding: 4px;
  width: 148px; /* 統一寬度 */
  height: 210px; /* 統一高度 */
}

/* 中間 Zine 區域樣式 - 在 image rotator 下面 */
.middle-zine-container {
  position: absolute;
  top: 1080px;
  left: 26.5rem;
  width: auto;
  display: flex;
  flex-direction: row !important; /* 強制橫排 */
  gap: 8px; /* 與 program 上方 zine 相同間距 */
  justify-content: center;
  flex-wrap: wrap;
  z-index: 10; /* 確保在其他元素上方 */
}

/* 桌面版 Zine 項目容器 - 直接橫排 */
.middle-zine-items-wrapper {
  display: flex;
  flex-direction: row;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.middle-zine-item {
  flex: 0 0 auto; /* 不伸縮，保持固定大小 */
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary-color);
  border: 1px solid var(--main-color);
  font-size: 0.8rem; /* 與 program 上方 zine 相同字體大小 */
  font-weight: 400;
  color: var(--main-color);
  cursor: pointer;
  text-align: center;
  padding: 4px; /* 與 program 上方 zine 相同 padding */
  min-height: 50px; /* 與 program 上方 zine 相同高度 */
  aspect-ratio: 1; /* 保持正方形比例，與 program 上方 zine 一致 */
  width: 148px;
  height: 210px;
}

/* Zine 容器樣式 - 在 PROGRAMS 區域內部 */
.zine-container {
  width: 100%; /* 佔滿 calender-section 的寬度 */
  display: flex;
  flex-direction: row; /* 水平排列兩個 zine */
  gap: 8px; /* zine 之間的間距 */
  margin-bottom: 1rem; /* 與 PROGRAMS 標題的間距 */
}

.zine-item {
  flex: 0 0 auto; /* 不伸縮，保持固定大小 */
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary-color);
  border: 1px solid var(--main-color);
  font-size: 0.8rem; /* 縮小字體 */
  font-weight: 400;
  color: var(--main-color);
  cursor: pointer;
  text-align: center;
  padding: 4px; /* 縮小內邊距 */
  width: 148px; /* 統一寬度 */
  height: 210px; /* 統一高度 */
}

/* 活動圖片輪播區域 - 桌面版隱藏 */
.event-gallery-section {
  display: none;
}

/* 條列模式區域 - 縮短寬度 */
.calender-section.card-section {
  width: 38%; /* 增加 20%：從 30% 到 36% */
  min-height: 830px; /* 設定最小高度 */
  position: relative;
  overflow: visible; /* 允許內容自然延伸 */
  box-sizing: border-box; /* 確保padding包含在寬度內 */
  display: flex;
  flex-direction: column;
}

/* Agenda 標題行樣式 */
.agenda-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  flex: 1;
  max-width: calc(100% - 220px); /* 限制寬度，為左側zine留空間 */
}

.agenda-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--secondary-color);
  background: var(--main-color);
  font-family: "Inclusive Sans", sans-serif;
  padding: 10px 20px;
  border: 1px solid var(--main-color);
}

.agenda-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.agenda-subscribe {
  margin: 0;
  font-size: 0.9rem;
  text-align: center;
  background-color: darkgray;
}

.agenda-subscribe a {
  color: lime;
  text-decoration: none;
}

.agenda-subscribe a:hover {
  color: coral;
}

/* 自定義 Scrollbar 樣式 */
.calender-scroll-container::-webkit-scrollbar,
.timeline-scroll-container::-webkit-scrollbar {
  width: 8px;
}

.calender-scroll-container::-webkit-scrollbar-track,
.timeline-scroll-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

.calender-scroll-container::-webkit-scrollbar-thumb,
.timeline-scroll-container::-webkit-scrollbar-thumb {
  background-color: #666;
  border-radius: 4px;
  border: 1px solid transparent;
  background-clip: padding-box;
}

.calender-scroll-container::-webkit-scrollbar-thumb:hover,
.timeline-scroll-container::-webkit-scrollbar-thumb:hover {
  background-color: darkolivegreen;
}

/* Firefox scrollbar */
.calender-scroll-container,
.timeline-scroll-container {
  scrollbar-width: auto;
  scrollbar-color: #666 rgba(0, 0, 0, 0.1);
}

/* Event Type 篩選器樣式 */
.event-filter-header {
  padding: 0.5rem 0;
  background-color: var(--secondary-color);
  border: 1px solid var(--main-color);
  border-bottom: 1px dashed var(--main-color);
  text-indent: 2px;
}

.event-filter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.event-filter label {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 500;
}

.event-type-select {
  background: var(--secondary-color);
  border: 1px solid var(--main-color);
  color: var(--main-color);
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.event-type-select:hover,
.event-type-select:focus {
  border-color: var(--accent);
  outline: none;
}

.event-type-select option {
  background: var(--secondary-color);
  color: var(--main-color);
}

/* 時間軸模式區域 - 鋪滿下方 */
.timeline-section {
  width: 100%;
  background: var(--secondary-color);
  border: 1px solid var(--main-color);
  padding: 2rem 0;
  margin-top: 2rem;
  position: relative;
}

.timeline-section .container {
  display: flex;
  align-items: flex-start;
  padding-left: 200px; 
  flex-direction: column;
}

/* L 型 Zine 布局容器樣式 */
.timeline-left-zine-container {
  position: absolute;
  left: 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 10;
}

/* 下方水平 Zine 容器樣式 */
.timeline-bottom-zine-container {
  position: absolute;
  bottom: 16px;
  left: 180px; /* 從左側第3本zine的右側開始，避免重疊 */
  right: 16px;
  display: flex;
  flex-direction: row;
  gap: 5px;
  justify-content: flex-start;
  z-index: 10;
}

.timeline-zine-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--secondary-color);
  border: 1px solid var(--main-color);
  font-size: 1rem;
  color: var(--main-color);
  cursor: pointer;
  text-align: center;
  padding: 8px;
}

/* 垂直 Zine 樣式 */
.timeline-zine-vertical {
  writing-mode: vertical-lr;
  text-orientation: mixed;
  width: 148px;
  height: 210px;
  margin-bottom: 10px;
}

/* 水平 Zine 樣式 - 改為與垂直 zine 相同尺寸和排列 */
.timeline-zine-horizontal {
  writing-mode: vertical-lr;
  text-orientation: mixed;
  width: 148px;
  height: 210px;
  margin-right: 10px;
}

.timeline-section h3 {
  text-align: center;
  font-size: 1.6rem;
  color: var(--secondary-color);
  background: var(--main-color);
  text-shadow: none;
  font-family: "Inclusive Sans", sans-serif;
  padding: 10px 20px;
  border: 1px solid var(--main-color);
}

/* 時間軸模式容器樣式 */
.timeline-section .timeline-mode-container {
  width: calc(100% - 220px); /* 限制寬度，為左側zine留空間 */
  height: 600px; /* 設定為固定高度 */
  margin-bottom: 225px; /* 為下方水平zine留空間 */
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
  display: block !important; /* 強制顯示 */
  position: relative; /* 為圖例提供定位參考 */
}


/* 確保時間軸區域的可見性 */
.timeline-section {
  display: block;
  visibility: visible;
}

.timeline-section .timeline-scroll-container {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  height: 100%;
  width: 100%;
}

.timeline-section .timeline-scroll-container::-webkit-scrollbar {
  display: none;
}

.timeline-section .timeline-calendar {
  display: flex;
}

/* 時間軸圖例樣式 */
.timeline-legend {
  position: absolute;
  bottom: 0px;
  right: 0px;
  font-family: "Inclusive Sans", sans-serif;
  font-size: 0.75rem;
  background-color: var(--secondary-color);
  border: 1px solid var(--main-color);
  padding: 10px;
  z-index: 10;
}

.timeline-legend h4 {
  margin: 0 0 8px 0;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--main-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.legend-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-dot.talk {
  background-color: rgb(255, 0, 255); /* 洋紅色 */
}

.legend-dot.workshop {
  background-color: rgb(54, 162, 235); /* 藍色 */
}

.legend-dot.performance {
  background-color: rgb(255, 255, 0); /* 黃色 */
}

.legend-dot.exhibition {
  background-color: rgb(255, 165, 0); /* 橙色 */
}

.legend-dot.other {
  background-color: rgb(0, 128, 0); /* 綠色 */
}

.legend-label {
  color: var(--main-color);
  font-size: 0.7rem;
  font-weight: 400;
}

/* 大富翁式布局 - 只保留左邊邊框 */
.monopoly-board {
  width: 100%;
  margin-top: 0; /* 移除固定margin，讓內容自然流動 */
  position: relative;
  z-index: 15; /* 提高z-index確保在rotata上方 */
  display: grid;
  grid-template-areas: "book-left   main-area";
  grid-template-rows: 1fr; /* 只有一行 */
  grid-template-columns: 11rem 1fr; /* 左邊框和主要內容區域 */
  box-sizing: border-box;
  overflow: visible; /* 允許內容溢出 */
}

/* 書籍邊框樣式 */
.book-border {
  display: flex;
}

.book-border-left {
  grid-area: book-left;
  flex-direction: column;
  height: 600px; /* 與PROGRAMS區域等高 */
  padding: 20px 0px 16px 16px; /* 減少上面padding，往上移動 */
  box-sizing: border-box; /* 確保 padding 包含在總寬度內 */
}

/* Zine wall 標題樣式 */
.zine-wall-title {
  text-align: center;
  font-size: 1.2rem;
  color: var(--main-color);
  background-color: transparent;
  text-shadow: none;
  border:none;
  text-align:left;
  font-family: "Inclusive Sans", sans-serif;
  text-transform: uppercase;
  padding:1px;
  line-height: 1rem;
}

/* 書籍項目樣式 */
.book-item {
  flex: 0 0 auto; /* 不伸縮，保持固定大小 */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem; /* 增大字體 */
  color: var(--main-color);
  background-color: var(--secondary-color);
  border: 1px solid var(--main-color);
  cursor: pointer;
  writing-mode: horizontal-tb;
  text-align: center;
  padding: 8px; /* 增加 padding */
  width: 148px; /* 統一寬度 */
  height: 210px; /* 統一高度 */
  margin-bottom: 10px;
}

/* 左右邊框的書籍項目使用垂直文字 */
.book-border-left .book-item,
.book-border-right .book-item {
  writing-mode: vertical-lr;
  text-orientation: mixed;
  min-width: 80px; /* 增大最小寬度 */
  min-height: 80px; /* 增大最小高度 */
  aspect-ratio: 1; /* 強制正方形比例 */
}

/* 上層內容包裝器 - 海報和PROGRAMS水平排列 */
.top-content-wrapper {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  width: 100%;
}
.main-content {
  grid-area: main-area;
  display: flex;
  flex-direction: column; /* 改為垂直排列 */
  width: 100%;
  min-height: 800px;
  padding-top: 1rem;
  box-sizing: border-box;
  overflow: auto;
  gap: 1rem;
  height: auto;
}

/* 海報整體區域 */
.poster-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 15px;
  background-color: darkgray;
  border: 1.5px solid var(--main-color);
}

/* 按鈕容器 - 左右並排 */
.poster-buttons-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 1rem;
}

/* 按鈕功能說明文字 */
.button-explanation {
  width: 100%;
  padding: 0.5rem 1rem;
  text-align: center;
}

/* 商店功能說明文字 */
.store-explanation {
  color: #999999;
  font-size: 0.7rem;
  font-family: "IBM PLEX SANS", sans-serif;
  text-align: left;
  width: 150px;
  margin-bottom: 1rem;
}

.explanation-text {
  color: #999999;
  font-size: 0.7rem;
  font-family: "IBM PLEX SANS", sans-serif;
  text-align: left;
  width: 425px;
}

/* 購票按鈕樣式 */
.ticket-button-container {
  flex: 1;
  margin-right: 1rem;
}

.ticket-button {
  display: inline-block;
  background-color: blue;
  color: var(--secondary-color);
  text-decoration: none;
  padding: 0rem 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: 1px solid var(--main-color);
  border-radius: 3px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3),
              inset 0 3px 12px rgba(240, 232, 232, 0.5), 
              inset 0 -3px 12px rgba(0, 0, 0, 0.3),
              inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.ticket-button:hover {
  transform:scale(1.1);
}

/* Poster Section - 調整為新布局 */
.poster-section {
  width: 500px;
  height: 650px; /* 恢復原始高度，控制區域移到外面 */
  position: relative;
  padding: 1rem; /* 增加內邊距 */
  display: flex;
  flex-direction: column;
  justify-content: center; /* 垂直居中 */
  align-items: center; /* 水平居中 */
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 1) 0%,
    rgba(255, 255, 255, 1) 7%,
    rgba(222, 222, 222, 1) 18%,
    rgba(255, 255, 255, 1) 21%,
    rgba(255, 255, 255, 1) 46%,
    rgba(227, 227, 227, 1) 53%,
    rgba(237, 235, 235, 1) 79%,
    rgba(255, 255, 255, 1) 82%,
    rgba(174, 174, 174, 1) 97%,
    rgba(0, 0, 0, 1) 100%
  );
  border-radius: 20px;
}

#Poster {
  text-align: center;
}

/* 3D翻轉海報容器 */
.poster-container {
  perspective: 1000px;
  width: 100%;
  max-width: 500px; /* 增加最大寬度 */
  aspect-ratio: 3/4; /* 設定海報的標準長寬比 (寬:高 = 3:4) */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer; /* 海報本身可點擊翻轉 */
}

.poster-container::after {
  content: "點擊翻轉 Click to flip";
  position: absolute;
  top: 85%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: black;
  color: ghostwhite;
  padding: 2px 10px;
  font-size: 14px;
  font-family: "Inclusive Sans", sans-serif;
  display: none;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 10;
  white-space: nowrap;
}

.poster-container:hover::after {
  display: block;
}

.poster-card {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.poster-card.flipped {
  transform: rotateY(180deg);
}

.poster-front,
.poster-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 10px;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.poster-back {
  transform: rotateY(180deg);
}

#Poster img,
.poster {
  border-radius: 5px;
  width: 100%;
  height: 100%;
  object-fit: cover; /* 確保圖片填滿容器且保持比例 */
  object-position: center; /* 圖片居中顯示 */
  display: block;
}

/* 翻轉按鈕容器 - 在按鈕區域右側 */
.flip-button-container {
  flex-shrink: 0;
}

/* 翻轉按鈕樣式 */
.flip-button {
  background: gray;
  width: 50px;
  height: auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--main-color);
  font-family: "Inclusive Sans", sans-serif;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 1px dashed black;
}

.flip-text {
  /* writing-mode: vertical-rl; */
  text-orientation: mixed;
  font-size: 1.5rem;
  vertical-align: bottom;
}

.control-center:hover {
  background: var(--main-color);
  color: var(--secondary-color);
  transform: scale(1.05);
}

.arrow-left,
.arrow-right {
  font-family: "Inclusive Sans", sans-serif;
  font-weight: 400;
}

/* 禁用狀態樣式 */
.control-btn:disabled {
  background: #666;
  cursor: not-allowed;
  transform: none !important;
}

.control-btn:disabled:hover {
  background: transparent;
  color: #333;
  transform: none;
}

/* 滾動指示器 */
.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--border);
  z-index: 1001;
}

.scroll-progress {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 0.1s ease;
}

/* 頁腳 */
.footer {
  position: relative;
  text-align: center;
  background: var(--secondary-color);
  border: 1px solid var(--main-color);
  clear: both;
  width: 100%;
}

.footer-content {
  font-size: 1.3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.footer-left {
  flex: 1;
  text-align: left;
}

.footer-right {
  flex: 1;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

.footer-text {
  font-size: 1.2rem;
  color: var(--text-light);
  font-family: "Inclusive Sans", sans-serif;
  margin: 0;
  padding: 0;
}

.footer-link:hover {
  opacity: 0.7;
}

/* EXHIBITOR LOGIN 特殊樣式 */
.exhibitor-login {
  background: var(--secondary-color);
  color: var(--main-color) !important;
  border: 1px solid var(--main-color);
  font-weight: 400;
  padding: 4px 16px;
  border-radius: 10px;
  transition: all 3s ease;
}

/* 動畫效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.5s ease forwards;
}
#newspaper { margin-bottom: 24px; }
#zine-row { margin-top: 24px; } /* 保險，擇一即可 */

/* Newsletter 觸發按鈕 */
.newsletter-trigger {
  position: fixed;
  bottom: 60px;
  right: 20px;
  background: var(--secondary-color);
  color: var(--main-color);
  border: 1px solid var(--main-color);
  padding: 8px 12px;
  cursor: pointer;
  z-index: 997;
  font-family: "Inclusive Sans", sans-serif;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

.newsletter-trigger:hover {
  background: var(--main-color);
  color: var(--secondary-color);
}

.year-title {
  font-size: 5rem;
  font-weight: 400;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--main-color);
}

/* 響應式設計 */
@media (max-width: 768px) {
  body {
    padding-bottom: 35px;
  }

  .hero {
    margin-top: 60px;
    padding: 35px 0;
  }

  .content-section {
    padding: 35px 0;
  }

  .container {
    padding: 0 20px;
  }

  .newsletter-popup {
    width: 400px;
    right: 15px;
    bottom: 100px;
  }
}

@media (max-width: 480px) {
  .hero {
    margin-top: 55px;
    padding: 25px 0;
  }

  .content-section {
    padding: 25px 0;
  }

  .container {
    padding: 0 15px;
  }

  .newsletter-popup {
    width: 300px;
    right: 10px;
    bottom: 90px;
  }
}

/* Newsletter 區塊樣式 */
.newsletter-section {
  margin: 20px 16px;
  margin-bottom: 270px;
}

/* Newsletter 功能說明文字 */
.newsletter-explanation {
  width: 100%;
  text-align: center;
  margin-bottom: .5rem;
}

.newsletter-container {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.newsletter-left h3 {
  margin: 0;
  white-space: nowrap;
  font-family: "Inclusive Sans", sans-serif;
  color: var(--secondary-color);
  background: var(--main-color);
  padding: 10px 20px;
  border: 1px solid var(--main-color);
}

.newsletter-right {
  flex: 1;
}

.newsletter-description {
  margin-bottom: 20px;
  line-height: 1.5;
}

.newsletter-signup-form {
  display: flex;
  gap: 10px;
}

.newsletter-input {
  flex: 1;
  padding: 8px;
  border: 1px solid black;
  font-family: inherit;
}

.newsletter-submit-btn {
  padding: 8px 16px;
  background: black;
  color: white;
  border: 1px solid black;
  cursor: pointer;
  font-family: inherit;
  text-transform: uppercase;
}

/* 浮動Ticket按鈕樣式 */
.floating-ticket {
  position: fixed;
  width: 15rem;
  height: 3rem;
  background: var(--secondary-color);
  border: 1px solid var(--main-color);
  border-radius: 60px 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(147, 112, 219, 0.1),
    0 4px 16px rgba(147, 112, 219, 0.1),
    inset 0 2px 4px rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  user-select: none;
  font-family: "Inclusive Sans", sans-serif;
  font-size: 2rem;
  text-transform: uppercase;
  animation: pulse 8s ease-in-out infinite;
}

.floating-ticket span {
  color: var(--main-color);
  text-shadow: none;
}

.floating-ticket:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 40px rgba(147, 112, 219, 0.2),
    0 6px 20px rgba(147, 112, 219, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 0.2);
  animation: none;
}

/* Hide按鈕樣式 */
.hide-ticket-btn {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 25px;
  height: 25px;
  background: white;
  border: 1px solid black;
  border-radius: 50%;
  color: black;
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 1001;
  font-family: "Inclusive Sans", sans-serif;
  text-transform: lowercase;
}

/* 脈衝動畫 */
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 8px 32px rgba(147, 112, 219, 0.1),
      0 4px 16px rgba(147, 112, 219, 0.1),
      inset 0 2px 4px rgba(255, 255, 255, 0.1);
  }
  50% {
    box-shadow: 0 12px 40px rgba(147, 112, 219, 0.2),
      0 6px 20px rgba(147, 112, 219, 0.2),
      inset 0 2px 4px rgba(255, 255, 255, 0.2);
  }
}

/* Newsletter Section Styles */
.newsletter-section {
  padding: 1rem;
  width: 38%;
  margin-top: .2rem;
  margin-left: auto;
  margin-right: 12rem;
  border: 1px solid black;
}

.newsletter-section h3 {
  font-size: 1.8rem;
  color: var(--main-color);
  text-shadow: none;
  padding: 0px;
  background: var(--secondary-color);
  font-family: "Inclusive Sans", sans-serif;
  text-transform: uppercase;
  display: inline-block;
  width: 100%;
  border: none;
  box-sizing: border-box;
  text-align: left;
  line-height: 1rem;
}

.newsletter-content {
  display: flex;
  gap: 1rem;
  align-items: left;
  justify-content: left;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.form-group {
  display: flex;
}

.form-group input {
  padding: 0.8rem 1rem;
  border: 1px solid var(--main-color);
  font-family: "Inclusive Sans", sans-serif;
  font-size: 0.9rem;
  background: var(--secondary-color);
  color: var(--main-color);
  width: 250px;
}

.form-group input:focus {
  outline: none;
  border-color: var(--main-color);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.form-group input::placeholder {
  color: rgba(0, 0, 0, 0.5);
  font-style: italic;
}

.newsletter-submit-btn {
  background: var(--main-color);
  color: var(--secondary-color);
  border: 2px solid var(--main-color);
  padding: 0.8rem 1.5rem;
  font-family: "Inclusive Sans", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
}

.newsletter-submit-btn:hover {
  background: var(--secondary-color);
  color: var(--main-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.newsletter-message {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 4px;
  font-family: "Inclusive Sans", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
}

.newsletter-message.success {
  background: rgba(0, 255, 0, 0.1);
  color: green;
  border: 1px solid green;
}

.newsletter-message.error {
  background: rgba(255, 0, 0, 0.1);
  color: red;
  border: 1px solid red;
}


/* Newsletter 響應式設計 */
@media (max-width: 768px) {
  .newsletter-content {
    flex-direction: column;
    gap: 1rem;
  }
  
  .newsletter-form {
    flex-direction: column;
    gap: 1rem;
  }
  
  .form-group input {
    width: 100%;
    max-width: 300px;
  }
  
  .newsletter-section {
    padding: 1.5rem;
    margin: 1.5rem 0;
  }
  
  .newsletter-section h3 {
    font-size: 1.4rem;
    padding: 0.6rem 1rem;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 480px) {
  .newsletter-section {
    padding: 1rem;
    margin: 1rem 0;
  }
  
  .newsletter-section h3 {
    font-size: 1.2rem;
    padding: 0.5rem 0.8rem;
    margin-bottom: 1rem;
  }
  
  .form-group input {
    padding: 0.6rem 0.8rem;
    font-size: 0.8rem;
    width: 100%;
    max-width: 250px;
  }
  
  .newsletter-submit-btn {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }
}

/* Event Photos Section Styles */
.rotata {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100%; /* 至少要有視窗高度 */
  /* height 將由 JavaScript 動態設置為文檔實際高度 */
  pointer-events: none; /* 改為 none，避免阻擋主要內容的互動 */
  z-index: 1; /* 設定為背景層級，確保在主要內容之下但在 body 背景之上 */
  overflow: visible;
}

.poster-rotator {
  width: 100%;
  height: 100%;
  position: absolute;
  overflow: hidden;
  border: 1px solid black;
}
.poster-rotator:hover .image-strip {
  animation-play-state: paused;
}


.rotata div:nth-child(1) {
  position: absolute;
  top: 128px;
  right: 16px;
  width: 10rem;
  height: 33rem;
}

.rotata div:nth-child(2) {
  position: absolute;
 top: 960px;
  left: 16px;
  width: 25rem;
  height: 28rem;
}

.rotata div:nth-child(3) {
  position: absolute;
  top: 960px;
  left: 26.5rem;
  width: 18rem;
  height: 13rem;
}

.image-strip {
  display: flex;
  flex-shrink: 0;
  white-space: nowrap;
  animation: slide 120s linear infinite;
  will-change: transform;
  width: max-content;
  height: 100% !important;
  align-items: flex-start;
  position: relative;
  top: 0;
  left: 0;
}

/* 為每個輪播區域創建獨立的 image-strip 樣式 */
.rotata div:nth-child(1) .image-strip {
  position: relative;
  top: 0;
  left: 0;
}

.rotata div:nth-child(2) .image-strip {
  position: relative;
  top: 0;
  left: 0;
}

.rotata div:nth-child(3) .image-strip {
  position: relative;
  top: 0;
  left: 0;
}

@keyframes slide {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-400%);
  }
  100% {
    transform: translateX(0);
  }
}

/* 手機版專用動畫 - 移動50%因為有兩組相同的圖片 */
@keyframes slide-mobile {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* 第二個輪播的反向動畫 - 從-50%移動回0 */
@keyframes slide-mobile-reverse {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

.rotata div:nth-child(1) .image-strip img {
  width:auto;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

.rotata div:nth-child(2) .image-strip img {
  width: auto;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

.rotata div:nth-child(3) .image-strip img {
  width: auto;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}



/* 大螢幕響應式設計 - 保持比例並添加灰色邊框 */
@media (min-width: 1400px) {
  body {
    background: black;
  }

  /* 整體容器 - 限制最大寬度並居中 */
  .main-container {
    max-width: 1375px;
    margin: 0 auto;
    background-color: var(--secondary-color);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  }

  /* 導航和標題區的縮放 */
  .top-controls,
  .social-links {
    transform: scale(0.837);
    transform-origin: top center;
  }

  /* Event info sticker adjustments */
  .event-info {
    transform: scale(0.85);
  }

  .monopoly-board {
    max-width: none; /* 移除個別限制，讓它使用父容器的限制 */
    background-color: transparent; /* 改為透明，讓 rotata 顯示 */
  }

  /* Image rotata position adjustments for reduced scale */
  .rotata div:nth-child(1) {
    right: calc(50% - 687.5px + 16px); /* 相對於新容器中心位置 */
  }

  .rotata div:nth-child(2) {
    left: calc(50% - 687.5px + 16px); /* 相檔案於新容器中心位置 */
  }

  .rotata div:nth-child(3) {
    left: calc(50% - 687.5px + 26.5rem); /* 相對於新容器中心位置 */
  }
}

/* 超大螢幕響應式設計 - 進一步縮放 */
@media (min-width: 1920px) {
  /* 更大的縮放比例 */
  .top-controls,
  .main-title-section,
  .nav-items-area,
  .social-links,
  .event-info {
    transform: scale(0.75);
    transform-origin: top center;
  }

  .main-container {
    max-width: 1375px; /* 保持1375px的寬度 */
  }
}

/* 平板響應式設計 */
@media (max-width: 768px) and (min-width: 481px) {
  .main-title-section {
    padding: 15px 0;
  }

  .site-logo {
    height: 7rem;
  }

  .nav-items-area.sticky-nav {
    padding: 12px 10px;
    background-size: 40px auto; /* 手機版較小的 LOGO */
  }

  .top-controls {
    height: 1.8rem;
    padding: 0 12px;
  }

  .language-btn,
  .exhibitor-login-btn {
    font-size: 0.75rem;
  }

  .monopoly-board {
    grid-template-columns: 80px 1fr;
  }

  .book-item {
    width: 80px;
    height: 120px;
    font-size: 0.7rem;
  }

  .book-border-left .book-item {
    width: 80px;
    height: 120px;
  }

  .zine-wall-title {
    font-size: 1rem;
    padding: 0.4rem 0.8rem;
  }

  .main-content {
    padding: 0.8rem;
    gap: 0.8rem;
  }

  .poster-area {
    width: 100%;
    padding: 0.8rem;
  }

  .poster-buttons-container {
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .ticket-button {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }

  .flip-button {
    width: 55px;
    height: 55px;
    font-size: 0.85rem;
  }

  .poster-section {
    width: 100%;
    min-height: 500px; /* 改為最小高度，允許內容自然延伸 */
    padding: 0.8rem;
  }

  .book-border-left {
    height: 400px;
  }

  .middle-zine-container {
    top: 750px;
    gap: 10px;
  }

  .middle-zine-item {
    width: 80px;
    height: 120px;
    font-size: 0.6rem;
  }

  .right-zine-item {
    width: 80px;
    height: 120px;
    font-size: 0.6rem;
  }

  .zine-item {
    width: 80px;
    height: 120px;
    font-size: 0.6rem;
  }

  .timeline-zine-item {
    width: 80px;
    height: 120px;
    font-size: 0.7rem;
  }
  .about-section{
    padding-bottom: 0px;
  }
}

/* 手機響應式設計 - 垂直堆疊排列 */
@media (max-width: 480px) {

  /* 手機版基本設定 */
  .main-title-section {
    padding-bottom: 5px;
    padding-top: 50px;
  }

  .site-logo {
    height: 6rem;
  }

  .nav-items-area.sticky-nav {
    padding: 40px 8px;
    position: sticky;
    top: 0;
    z-index: 999;
  }

  .nav-menu {
    flex-direction: row;
    gap: 8px;
    max-width: 100%;
    justify-content: center;
  }

  .nav-menu a {
    font-size: 1.5rem;
    padding: 8px 12px;
  }

  /* 手機版右上角控制區域 */
  .top-controls {
    top: 0;
    right: 0;
    width: 100%;
    height: 1.5rem;
    padding: 0 8px;
    gap: 0;
    position: fixed;
  }

  .language-btn,
  .exhibitor-login-btn {
    font-size: 0.7rem;
  }

  /* 手機版完全重新排列佈局 - 垂直堆疊 */
  .monopoly-board {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    grid-template-areas: none;
    grid-template-rows: none;
    grid-template-columns: none;
    gap: 1rem;
  }

  /* 手機版主要內容區域改為垂直排列 */
  .main-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  /* 手機版上層內容包裝器改為垂直排列 */
  .top-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  /* 隱藏左側書籍邊框 */
  .book-border-left {
    display: none;
  }

  /* 手機版主要內容區域 - 垂直堆疊 */
  .main-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: .4rem;
    gap: 1rem;
    order: 1;
  }

  /* 1. 海報區域 - 垂直堆疊第一個 */
  .poster-area {
    width: 100%;
    padding: 1rem;
    order: 1;
    margin-bottom: 1rem;
  }

  /* 手機版海報區域 */
  .poster-section {
    width: 100%;
    padding: 0.5rem;
    order: 1;
    height:auto;
  }

  /* 手機版中間 Zine 區域 */
  .middle-zine-container {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
    order: 2;
    margin: 1rem 0;
    padding: 0 1rem;
  }

  /* 手機版 Zine 項目容器 - 橫排 */
  .middle-zine-items-wrapper {
    display: flex;
    flex-direction: row;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
  }

  /* 手機版 Store Highlight 標題 */
  .middle-zine-container::before {
    content: "STORE HIGHLIGHT:";
    font-family: "Inclusive Sans", sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: var(--main-color);
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 0.5rem;
    width: 100%;
  }

  /* 手機版 Zine 項目容器 */
  .middle-zine-items-wrapper {
    display: flex;
    flex-direction: row;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
  }

  .poster-buttons-container {
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0;
  }

  .ticket-button-container {
    margin-right: 0;
    width: 100%;
  }

  .ticket-button {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
  }

  .flip-button-container {
    align-self: center;
    display: none;
  }

  /* 手機版按鈕說明文字 */
  .button-explanation {
    padding: 0.3rem 0.5rem;
    display: none;
  }

  /* 手機版商店說明文字 */
  .store-explanation {
    padding: 0.3rem 0.5rem;
  }

  .explanation-text {
    font-size: 0.8rem;
    text-align: center;
    line-height: 1.3;
    width: 100%;
  }

  .flip-button {
    width: 50px;
    height: 50px;
    font-size: 0.8rem;
  }

  .poster-section {
    width: 100%;
    min-height: 400px;
    padding: 0.5rem;
  }

  .poster-container {
    max-width: 100%;
    aspect-ratio: 3/4;
  }

  /* 隱藏右側zine區域 */
  .right-zine-container {
    display: none;
  }

  /* 2. Upcoming Events 區域 - 垂直堆疊第三個 */
  .calender-section.card-section {
    width: 100%;
    max-height: 500px; 
    padding: 0rem;
    order: 3; /* 調整為第3個，在活動圖片輪播下面 */
    margin-bottom: 0rem;
    box-sizing: border-box;
  }

  /* 手機版其他區域 */
  .exhibitors-roller-section,
  .multifunction-section,
  .workshop-section {
    width: 100%;
    order: 3;
    margin-bottom: 1rem;
  }

  .calender-section h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-family: "Inclusive Sans", sans-serif;
  }

  /* 手機版 Event Filter 樣式 */
  .event-filter-header {
    padding: 0.3rem 0.5rem;
    margin: 0.5rem 0;
  }

  .event-filter {
    flex-direction: column;
    align-items: stretch;
    gap: 0.3rem;
  }

  .event-filter label {
    font-size: 0.8rem;
  }

  .event-type-select {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
    width: 100%;
  }

  /* 手機版 Calender Content 樣式 */
  .calender-content {
    width: 100%;
    padding: 0;
    margin: 0;
  }

  .calender-scroll-container {
    width: 100%;
    max-height: none; /* 移除最大高度限制 */
    height: auto; /* 讓高度自動調整 */
  }

  /* 手機版 Events Timeline 樣式 - 垂直堆疊 */
  .events-timeline {
    display: flex;
    flex-direction: column;
    gap: 0.5rem; /* 減少間距 */
    padding: 0.3rem; /* 減少內邊距 */
  }

/* 桌面版 Event Card 樣式 - 簡潔列表樣式 */
.event-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  background: transparent;
  border: none;
  border-bottom: 1px dashed var(--main-color);
  border-radius: 0;
  padding: 1rem 0;
  margin-bottom: 0;
  box-shadow: none;
  width: 100%;
  max-width: none;
  gap: 1rem;
}

.event-card:last-child {
  border-bottom: none;
}

.event-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.event-date {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--secondary-color);
  padding: 0.5rem 0.8rem;
  border-radius: 0;
  min-width: 80px;
  text-align: center;
}

.event-time {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--main-color);
  background: var(--secondary-color);
  padding: 0.5rem 0.8rem;
  text-align: center;
}

.event-type {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--main-color);
  background: var(--secondary-color);
  border: 1px solid var(--main-color);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.event-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--main-color);
  margin-bottom: 0.5rem;
  line-height: 1.3;
  text-transform: uppercase;
}

.event-description {
  font-size: 0.9rem;
  color: var(--main-color);
  line-height: 1.5;
  margin-bottom: 0.8rem;
}

.event-type-tag {
  font-weight: 600;
}

 .event-footer {
   display: flex;
   flex-direction: row;
   justify-content: space-between;
   align-items: center;
   gap: 1rem;
   font-size: 0.9rem;
   color: var(--main-color);
   margin-top: auto;
 }
 
 .event-date,
 .event-time,
 .event-location {
   display: flex;
   align-items: center;
   gap: 0.5rem;
   font-size: 0.9rem;
   color: var(--main-color);
   flex: 1;
   text-align: center;
 }
 
 .event-empty {
   flex: 1;
 }

.event-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-height: 100%;
  justify-content: space-between;
}

/* 時間資訊區域 - 在標題上面 */
.event-time-info {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 0;
  font-size: 1.1rem;
  color: var(--main-color);
  margin-bottom: 0.8rem;
  border: 2px solid var(--main-color);
  border-radius: 4px;
  overflow: hidden;
}

/* 時間資訊容器 */
.time-info-container {
  display: flex;
  flex-direction: column;
  gap: 0;
  grid-column: 1;
  grid-row: 1 / 3;
}

/* 報名按鈕容器 - 在時間資訊區域 */
.signup-container {
  text-align: center;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  grid-column: 2;
  grid-row: 1 / 3;
  border-left: 1px solid var(--main-color);
  background: var(--secondary-color);
}

 .signup-button {
   display: inline-block;
   padding: 8px 16px;
   background-color: #000;
   color: #fff;
   text-decoration: none;
   border-radius: 0;
   font-size: 0.8rem;
   text-transform: uppercase;
   font-weight: bold;
   margin-top: 0;
   transition: background-color 0.3s ease;
   text-align: center;
   white-space: nowrap;
   height: fit-content;
   line-height: 1.2;
   border: none;
 }
 
 .signup-button:hover {
   background-color: #333;
 }

/* 手機版 Event Card 樣式 - 垂直堆疊 */
@media (max-width: 768px) {
  .event-card {
    display: flex;
    flex-direction: column;
    background: transparent;
    border: none;
    border-bottom: 1px dashed var(--main-color);
    border-radius: 0;
    padding: 1rem 0;
    margin-bottom: 0;
    box-shadow: none;
    width: 100%;
    gap: 1rem;
  }

  .event-card:last-child {
    border-bottom: none;
  }

  .event-card .event-image {
    width: 100% !important;
    height: auto!important;
    object-fit: cover !important;
    border-radius: 0;
    align-self: center;
  }

  .event-content {
    gap: 0.5rem;
    min-height: 100%;
    justify-content: space-between;
  }

   .event-footer {
     flex-direction: column;
     align-items: flex-start;
     gap: 0.5rem;
   }
   
   .event-date,
   .event-time,
   .event-location {
     text-align: left;
   }
   
   .event-time-info {
     display: grid;
     grid-template-columns: 1fr;
     grid-template-rows: auto auto auto;
     gap: 0;
   }
   
   .time-info-container {
     grid-column: 1;
     grid-row: 1 / 3;
   }
   
   .signup-container {
     grid-column: 1;
     grid-row: 3;
     border-left: none;
     border-top: 1px solid var(--main-color);
   }
   
   .signup-button {
     padding: 8px 16px;
     font-size: 0.8rem;
   }

  .event-card-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
  }

  .event-date {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--secondary-color);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    min-width: 60px;
    text-align: center;
    align-self: flex-start;
  }

  .event-type {
    font-size: 0.6rem;
    font-weight: 500;
    color: var(--main-color);
    background: var(--secondary-color);
    border: 1px solid var(--main-color);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    text-transform: uppercase;
    align-self: flex-start;
  }

  .event-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--main-color);
    margin-bottom: 0.3rem;
    line-height: 1.3;
  }

  .event-description {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.4;
    margin-bottom: 0.5rem;
  }

  .event-type-tag {
    font-weight: 600;
  }

  .event-details {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.7rem;
    color: #888;
  }

  .event-time,
  .event-location {
    display: flex;
    align-items: center;
    gap: 0.3rem;
  }

  /* 手機版 Event Image 樣式 - 縮小圖片 */
  .event-image {
    width: 100%;
    max-width: 150px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    margin: 0.5rem 0;
    align-self: center;
  }
}

  /* 手機版活動圖片輪播區域 */
  .event-gallery-section {
    display: block !important; /* 覆蓋桌面版的 display: none */
    width: 100%;
    order: 2; /* 調整為第2個，在 store highlight 下面 */
  }

  /* 第二個活動圖片輪播區域 */
  .event-gallery-section-2 {
    display: block !important; /* 覆蓋桌面版的 display: none */
    width: 100%;
    order: 4; /* 第4個，在 upcoming events 下面 */
  }

  .event-gallery-divider {
    border: none;
    border-top: 1px dashed var(--main-color);
    margin: .8rem 0;
    width: 100%;
  }

  .event-gallery-container {
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--main-color);
    border-radius: 8px;
  }

  .event-gallery-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
  }

  /* 手機版 image-strip 樣式 - 與桌面版一致 */
  .event-gallery-section .image-strip {
    display: flex;
    flex-shrink: 0;
    white-space: nowrap;
    animation: slide-mobile 60s linear infinite; /* 手機版較慢的速度 */
    will-change: transform;
    width: max-content;
    height: 200px !important; /* 從 150px 增加到 200px */
    align-items: flex-start;
    position: relative;
    top: 0;
    left: 0;
  }

  .event-gallery-section .image-strip img {
    width: auto;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
    border-right: 1px solid var(--main-color);
  }

  /* 第二個活動圖片輪播的樣式 */
  .event-gallery-section-2 .image-strip {
    display: flex;
    flex-shrink: 0;
    white-space: nowrap;
    animation: slide-mobile-reverse 60s linear infinite; /* 反向動畫 */
    will-change: transform;
    width: max-content;
    height: 200px !important;
    align-items: flex-start;
    position: relative;
    top: 0;
    left: 0;
  }

  .event-gallery-section-2 .image-strip img {
    width: auto;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
    border-right: 1px solid var(--main-color);
  }


  .middle-zine-item {
    width: 70px;
    height: 100px;
    font-size: 0.5rem;
    padding: 1px;
  }

  /* 隱藏其他zine區域 */
  .zine-container {
    display: none;
  }

  /* 4. 圖片輪播 - 垂直堆疊第四個 */
  .rotata {
    position: relative;
    top: auto;
    display: none;
    left: auto;
    width: 100%;
    height: auto;
    min-height: auto;
    order: 4;
    margin: 1rem 0;
    padding: 0 1rem;
  }

  /* 只顯示第一個輪播區域 */
  .rotata div:nth-child(1) {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    height: 200px;
    margin: 0 auto;
  }

  /* 隱藏其他輪播區域 */
  .rotata div:nth-child(2),
  .rotata div:nth-child(3) {
    display: none;
  }

  /* 5. Newsletter 區域 - 垂直堆疊第五個 */
  .newsletter-section {
    width: 100%;
    padding: 1rem;
    margin: 0;
    order: 5;
  }

  .newsletter-section h3 {
    font-size: 1.2rem;
    padding: 0.5rem 0.8rem;
    margin-bottom: 1rem;
  }

  /* 手機版 Newsletter 說明文字 */
  .newsletter-explanation {
    padding: 0.3rem 0.5rem;
    margin-bottom: 0.5rem;
    display:none;
  }

  .newsletter-content {
    flex-direction: column;
    gap: 1rem;
  }

  .newsletter-form {
    flex-direction: column;
    gap: 1rem;
  }

  .form-group input {
    width: 100%;
    max-width: 300px;
    padding: 0.6rem 0.8rem;
    font-size: 0.8rem;
  }

  .newsletter-submit-btn {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }

  /* 6. Banner 區域 - 垂直堆疊第六個 */
  .banner {
    font-size: 0.9rem;
    padding: 8px 0;
    order: 6;
    margin: 1rem 0;
  }

  .dot {
    width: 8px;
    height: 8px;
    margin: 3px 6px 0px 6px;
  }

  /* 7. Socials and Credits - 垂直堆疊最後一個 */
  .footer {
    order: 7;
    position:absolute;
  }

  .footer-content {
    font-size: 1rem;
    flex-direction: row;
    gap: 8px;
  }

  .footer-right {
    flex-direction: row;
    gap: 4px;
  }

  .social-link,
  .footer-link {
    font-size: 0.9rem;
    padding: 6px 12px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* 隱藏不需要的元素 */
  .event-info {
    display: none;
  }

  .timeline-section {
    display: none;
  }

  .floating-ticket {
    display: none;
  }
}

/* ===== 滾動橫幅樣式 ===== */
.banner {
  font-family: "Inclusive Sans", sans-serif;
  width: 100%;
  overflow: hidden;
  background-color: transparent;
  white-space: nowrap;
  position: relative; /* 改為相對定位，在正常文檔流中 */
  color: var(--main-color);
  font-size: 1.2rem; /* 增大字體 */
  padding: 10px 0; /* 增加上下間距 */
  margin-bottom: 0; /* 與頁腳緊貼 */
  border-top: 1px solid var(--main-color); /* 添加上方分割線 */
}

.banner-track {
  display: flex;
  animation: scroll-loop 360s linear infinite;
}

.banner-content {
  display: flex;
  white-space: nowrap;
}

.dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  background-color: plum;
  border-radius: 50%;
  margin: 5px 8px 0px 8px;
}

@keyframes scroll-loop {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-700%);
  }
}

/* 響應式設計 - 滾動橫幅 */
@media (max-width: 768px) {
  .banner {
    font-family: "Inclusive Sans", sans-serif;
    white-space: nowrap;
    position: relative; /* 改為相對定位 */
    width: 100%;
    background-color: transparent;
    color: var(--main-color);
    font-size: 1rem; /* 手機版稍微小一點 */
    padding: 8px 0;
  }

  .banner-track {
    display: flex;
    animation: scroll-loop 20s linear infinite;
  }

  .banner-content {
    display: flex;
    white-space: nowrap;
  }
}

/* ===== 攤商顯示樣式 ===== */

/* 攤商資訊顯示區域 - 保持原本的窄條樣式 */
.exhibitor-info-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  margin-right: 10px;
}

.exhibitor-display-container {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  min-width: 0;
}

.exhibitor-item-display {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 1;
  min-width: 0;
}

.exhibitor-booth-number {
  font-size: 0.8rem;
  font-weight: bold;
  color: var(--primary);
  font-family: "Inclusive Sans", sans-serif;
  flex-shrink: 0;
}

.exhibitor-name {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.exhibitor-region {
  font-size: 0.7rem;
  color: var(--text-light);
  font-weight: 400;
  flex-shrink: 0;
}

.exhibitor-separator {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 300;
  flex-shrink: 0;
}

/* 展開按鈕 - 小小的在左邊 */
.exhibitor-expand-btn {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.6rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 400;
  transition: all 0.2s ease;
  user-select: none;
}

.exhibitor-expand-btn:hover {
  background: var(--secondary);
}

.expand-arrow {
  font-size: 0.6rem;
  transition: transform 0.2s ease;
}

.exhibitor-expand-btn:hover .expand-arrow {
  transform: translateY(1px);
}

/* 攤商名單展開區域 */
.exhibitor-full-list {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.exhibitor-full-list.expanded {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* 頂部控制區域 */
.exhibitor-top-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  gap: 1rem;
}

/* 排序按鈕區域 */
.exhibitor-sort-buttons {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.sort-button {
  padding: 0.4rem 0.8rem;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  background: white;
  color: #495057;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.sort-button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.sort-button.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* 攤商名單展開區域的網格容器 */
.exhibitor-full-list .exhibitors-grid {
  flex: 1;
  overflow-y: auto;
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  margin: 0;
  display: flex;
  gap: 0;
}

/* 左欄區域 */
.exhibitor-column-left {
  flex: 1;
  padding-right: 0.5rem;
}

/* 右欄區域 */
.exhibitor-column-right {
  flex: 1;
  padding-left: 0.5rem;
}

/* 攤商項目容器 - 簡單條列式 */
.exhibitor-card {
  padding: 1rem;
  border-bottom: 1px solid #eee;
  transition: background-color 0.2s ease;
  position: relative;
  box-sizing: border-box;
}

.exhibitor-card {
  cursor: pointer;
}

.exhibitor-card:hover {
  background-color: #f8f9fa;
}

/* 攤商基本資訊 - 橫向佈局 */
.exhibitor-basic-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

/* 攤商編號 */
.exhibitor-booth-display {
  font-size: 0.9rem;
  font-weight: 500;
  color: #666;
  font-family: "Inclusive Sans", sans-serif;
  min-width: 80px;
}

/* 品牌名稱（可點擊） */
.exhibitor-brand-display {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  transition: color 0.2s ease;
  flex: 1;
}

.exhibitor-brand-display:hover {
  color: #007bff;
}

/* 國籍 */
.exhibitor-nationality-display {
  font-size: 0.8rem;
  color: #888;
  font-style: italic;
  min-width: 60px;
}

/* 攤商詳細資訊下拉區域 */
.exhibitor-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: #f8f9fa;
  margin: 0.5rem -1rem 0 -1rem;
  padding: 0 1rem;
}

.exhibitor-details.expanded {
  max-height: 300px;
  padding: 1rem;
}

.exhibitor-details-content {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

/* 攤商介紹文字 */
.exhibitor-description {
  flex: 1;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #555;
  font-family: "Alice", serif; /* 使用Alice字體 */
}

/* 攤商照片 - 只在展開時顯示 */
.exhibitor-photo {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 4px;
  overflow: hidden;
  background: #e9ecef;
}

.exhibitor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 攤商社交連結 - 縮小版本 */
.exhibitor-social-links {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid #dee2e6;
}

.exhibitor-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  background: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-size: 0.7rem;
  transition: background-color 0.2s ease;
}

.exhibitor-social-link:hover {
  background: #0056b3;
  color: white;
}

.exhibitor-social-link.facebook {
  background: #1877f2;
}

.exhibitor-social-link.facebook:hover {
  background: #166fe5;
}

.exhibitor-social-link.instagram {
  background: #e4405f;
}

.exhibitor-social-link.instagram:hover {
  background: #c13584;
}

.exhibitor-social-link.website {
  background: #28a745;
}

.exhibitor-social-link.website:hover {
  background: #1e7e34;
}

/* 手機版攤商顯示樣式 */
@media screen and (max-width: 768px) {
  .exhibitor-info-content {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }

  .exhibitor-display-container {
    gap: 0.4rem;
    width: 100%;
  }

  .exhibitor-item-display {
    gap: 0.25rem;
    flex: 1;
  }

  .exhibitor-booth-number {
    font-size: 0.7rem;
  }

  .exhibitor-name {
    font-size: 0.7rem;
    flex: 1;
  }

  .exhibitor-region {
    font-size: 0.6rem;
  }

  .exhibitor-separator {
    font-size: 0.7rem;
  }

  .exhibitor-expand-btn {
    padding: 0.2rem 0.4rem;
    font-size: 0.6rem;
  }

  .exhibitor-top-controls {
    padding: 0.8rem 1rem;
    flex-direction: column;
    gap: 0.8rem;
  }

  .exhibitor-sort-buttons {
    gap: 0.3rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .sort-button {
    padding: 0.3rem 0.6rem;
    font-size: 0.7rem;
  }

  .exhibitor-full-list .exhibitors-grid {
    padding: 1rem;
  }

  /* 攤商名單展開區域手機版樣式 */
  .exhibitor-full-list .exhibitors-grid {
    padding: 0.5rem;
  }

  .exhibitor-full-list .exhibitors-grid {
    flex-direction: column; /* 手機版改為垂直排列 */
  }

  .exhibitor-column-left,
  .exhibitor-column-right {
    padding: 0; /* 手機版移除左右間距 */
  }

  .exhibitor-card {
    padding: 0.75rem;
  }

  .exhibitor-basic-info {
    gap: 0.5rem;
  }

  .exhibitor-brand-display {
    font-size: 0.9rem;
  }

  .exhibitor-booth-display {
    font-size: 0.8rem;
  }

  .exhibitor-nationality-display {
    font-size: 0.7rem;
  }

  .exhibitor-photo {
    width: 50px;
    height: 50px;
  }

  .exhibitor-details-content {
    flex-direction: column;
    gap: 0.5rem;
  }

  .exhibitor-description {
    font-size: 0.8rem;
    font-family: "Alice", serif; /* 使用Alice字體 */
  }

  .exhibitor-social-links {
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .exhibitor-social-link {
    font-size: 0.6rem;
    padding: 0.2rem 0.4rem;
  }
}

/* About 頁面樣式 */
.about-section {
  padding: 4rem 0;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-content {
  max-width: 1000px;
  text-align: center;
  padding: 2rem;
}

.about-title {
  font-family: "Inclusive Sans", sans-serif;
  font-size: 10rem;
  font-weight: 800;
  color: whitesmoke;
  text-transform: uppercase;
  text-shadow: 3px 3px 0 black;
}

.about-text {
  margin-bottom: 3rem;
}

.about-quote {
  font-family: "Libre Franklin", sans-serif;
  font-size: 3rem;
  font-weight: 600;
  color: var(--accent);
  font-style: italic;
  line-height: 1;
  letter-spacing: -0.25rem;
}

.about-description {
  font-family: "Libre Franklin", sans-serif;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-primary);
  text-align: left;
  max-width: 500px;
  margin: 0 auto;
  background: blue;
  color: lime;
}

.contact-info {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px dashed var(--main-color);
}

.contact-text {
  font-family: "Libre Franklin", sans-serif;
  font-size: 1rem;
  color: var(--main-color);
  text-align: left;
}

.contact-email {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-email:hover {
  color: var(--main-color);
  text-decoration: underline;
}

.vacancies-title {
  display: inline-block;
  background-color: greenyellow;
  color: black;
  text-decoration: none;
  padding: 0rem 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: 1px solid var(--main-color);
  border-radius: 3px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), inset 0 3px 12px rgba(240, 232, 232, 0.5), inset 0 -3px 12px rgba(0, 0, 0, 0.3), inset 0 0 20px rgba(255, 255, 255, 0.1);
}
/* About 頁面響應式設計 */
@media (max-width: 768px) {
  .calender-section {
    background-color:lime;
    padding-bottom:15px !important;
  }

  .about-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
  }
  
  .about-quote {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    letter-spacing: 1rem;
  }
  
  .about-description {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  .contact-text {
    font-size: .8rem;
  }
  
  .about-content {
    padding: 1rem;
  }
  
  .back-to-home-container {
    top: 10px;
    left: 10px;
  }
  
  .back-to-home-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
}

/* --- Credit drop-up button & panel (dark grey) --- */
.credit-dropup-container {
  position: relative;
  width: 100%;
}

.credit-btn {
  display: inline-block;
  padding: 8px 12px;
  font-family: "Inclusive Sans", sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  color: white;
  background: #333;
  border: 2px solid #333;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, opacity 0.2s ease;
}

.credit-btn:hover { background: #1f1f1f; }
.credit-btn:active { transform: translateY(1px); }

.credit-panel {
  padding: 0;
  background: #2b2b2b;
  color: #f0f0f0;
  border: 2px solid #1f1f1f;
  box-shadow: 0 8px 24px rgba(0,0,0,0.28);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}

.credit-panel.open {
  max-height: 2000px;
  opacity: 1;
  padding: 14px 16px;
  overflow: auto;
}

.credit-panel h3 {
  margin: 0 0 8px 0;
  font-size: 1rem;
  font-weight: 900;
}

.credit-panel p, .credit-panel li {
  font-size: 0.9rem;
  line-height: 1.5;
  color:plum;
}

.credit-panel a {
  background-color: plum; color: black;
}

.credit-panel ul { 
  margin: 6px 0 0 18px; 
}

.credit-panel li {
  color: lightgray;
}
@media (max-width: 768px) {
  .credit-panel {
    width: calc(100vw - 24px);
    right: 0;
    left: 0;
    margin: 0 auto;
  }
}

