/* CSS Variables - 參考 25av.eu 實驗性設計風格 */
:root {
  /* 主要配色 - 極簡實驗風格 */
  --bg-primary: whitesmoke;
  --bg-secondary: #f5f5f5;
  --bg-dark: #000000;
  --bg-accent: #000000;
  
  /* 文字配色 */
  --text-primary: #000000;
  --text-secondary: #666666;
  --text-light: whitesmoke;
  --text-accent: #000000;
  
  /* 邊框和陰影 */
  --border-light: #000000;
  --border-dark: #000000;
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-medium: rgba(0, 0, 0, 0.2);

  /* highlightcolors */
  --color-one: yellowgreen;
  --color-two: yellow;
  --color-three: cyan;
  --color-four: orangered;
  --color-five: magenta;
  --color-six: pink;
  --color-seven: rgb(52, 77, 203);
  --color-eight: forestgreen;

  
  /* 間距 - 極緊湊 */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 12px;
  --spacing-lg: 16px;
  --spacing-xl: 24px;
  --spacing-xxl: 32px;
  
  /* 字體大小 - 大標題 */
  --font-xs: .8rem;
  --font-sm: 0.85em;
  --font-md: 1.1rem;
  --font-lg: 1.2rem;
  --font-xl: 1.4rem;
  --font-xxl: 1.8rem;
  --font-hero: 4.5rem;
  --font-section: 6.5rem;
}

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

/* 確保滾動正常工作 */
html, body {
  height: auto !important;
  overflow-x: hidden;
  overflow-y: auto;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  background: lightgrey;
  font-family: "Inclusive Sans", sans-serif;
  line-height: 1.2;
  font-size: var(--font-md);
  color: var(--text-primary);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 100vh;
  height: auto;
}

/* 頂部導航 - 25av.eu 風格 */
.top-navigation {
  position: static;
  width: 100vw;
  background: rgb(85, 85, 85);
  padding: var(--spacing-sm);
  border-bottom: 2px solid var(--border-light);
}

.nav-container {
  display: flex;
  flex-direction: column;
  background: var(--bg-primary);
  border: 2px solid var(--border-light);
  width: 100%;
}

.nav-logo {
  font-size: var(--font-md);
  font-weight: bold;
  color: var(--text-primary);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.nav-item {
  font-size: var(--font-sm);
  color: var(--text-primary);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: bold;
  transition: all 0.2s ease;
  padding: var(--spacing-sm) var(--spacing-md);
  border-bottom: 1px solid var(--border-light);
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.nav-item:hover {
  background: var(--bg-dark);
  color: var(--text-light);
}

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

.nav-lang {
  font-size: var(--font-sm);
  color: var(--text-primary);
  background: lightgray;
  border: none;
  padding: var(--spacing-sm) var(--spacing-md);
  cursor: pointer;
  font-weight: bold;
  text-transform: uppercase;
  width: 100%;
  box-sizing: border-box;
  border-top: none;
  text-align: center;
}

.nav-lang:hover {
  background: var(--bg-dark);
  color: var(--text-light);
}

.nav-back-btn {
  font-size: var(--font-sm);
  color: var(--text-primary);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: bold;
  transition: all 0.2s ease;
  padding: var(--spacing-sm) var(--spacing-md);
  border-bottom: 1px solid var(--border-light);
  display: block;
  width: 100%;
  box-sizing: border-box;
  background: var(--bg-dark);
  color: var(--text-light);
  text-align: center;
}

.nav-back-btn:hover {
  background: var(--text-light);
  color: var(--bg-dark);
}

/* 主視覺區域 - 左右分佈佈局 */
.hero-section {
  margin-top: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-sm) var(--spacing-lg);
  padding-bottom: 0px;
}

.hero-container {
  display: flex;
  gap: var(--spacing-lg);
  max-width: 100vw;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
  align-items: start;
}

.hero-traffic {
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 15px;
  text-align: left;
  margin: 15px;
 background-color: yellowgreen;
}

/* hero-left 不再使用，影片已移至獨立區域 */

.hero-poster-section {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  margin-bottom: var(--spacing-md);
}

.hero-poster-section iframe {
  width: 100% !important;
  max-width: 100%;
  height: auto !important;
  aspect-ratio: 16 / 9;
  min-height: 400px;
  border-radius: 20px;
}

.hero-poster {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  margin-bottom: var(--spacing-sm);
}

.hero-description {
  text-align: left;
  padding-left: var(--spacing-sm);
  width: 100%;
  max-width: 100%;
  grid-column: 1 / -1;
}

.hero-traffic {
  text-align: left;
}

.hero-poster {
  max-width:1000px;
  width: 100%;
  height: auto;
  margin-bottom: var(--spacing-md);
  border: 2px solid var(--border-light);
}

.hero-title {
  font-size: var(--font-section);
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 0.9;
}

.hero-subtitle {
  font-size: var(--font-lg);
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-description {
  font-size: var(--font-md);
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.hero-description-title {
  font-size: var(--font-lg);
  color: var(--text-primary);
  font-weight: bold;
  margin-bottom: var(--spacing-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* 兩欄布局 - 票券佔2/3，FAQ佔1/3 */
.two-column-section {
  padding: var(--spacing-sm);
  background: var(--bg-primary);
  border-bottom: 2px solid var(--border-light);
  border-top: 2px solid var(--border-light);
}

.two-column-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--spacing-sm);
}

.tickets-column {
  background: url("../image/horizental/hori9.jpg") !important;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: var(--spacing-md);
  border: 2px solid var(--border-light);
  border-radius: 20px;
}

/* 展覽資訊區域樣式 - 統一字體大小 */
.exhibition-info-section {
  margin-top: 0;
  padding: var(--spacing-md);
  background: yellowgreen;
  height: fit-content;
}

.exhibition-title {
  font-size: var(--font-md);
  color: var(--text-primary);
  text-align: left;
}

.exhibition-subtitle {
  font-size: var(--font-md);
  margin-bottom: var(--spacing-md);
  font-style: italic;
  text-align: left;
}

.exhibition-details {
  display: block;
}

.detail-item-title {
  font-size: var(--font-sm);
    background-color: darkgrey;
  font-weight: bold;
  color: black;
}

.detail-item p {
  font-size: var(--font-md);
  margin-bottom: var(--spacing-xs);
}

.time-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.time-list li {
  font-size: var(--font-md);
  margin-bottom: 2px;
}

/* 交通資訊區域樣式 */
.access-info-section {
  margin-top: 0;
  padding: var(--spacing-md);
  background: var(--bg-secondary);
  border: 2px dashed var(--border-light);
  height: fit-content;
}

.access-section-title {
  font-size: var(--font-lg);
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 0.9;
}

.column {
  background: var(--bg-secondary);
  background-size: cover;
  padding: var(--spacing-md);
  border: 2px solid var(--border-light);
}

.column-title {
  font-size: var(--font-hero);
  font-weight: bold;
  color: ghostwhite;
  margin-bottom: var(--spacing-md);
  text-align: left;
  text-transform: uppercase;
  line-height: 0.9;
  background-color: blue;
}

/* Access 區域 */
.access-info {
  margin-bottom: var(--spacing-sm);
}

.access-info h3 {
  font-size: var(--font-sm);
  color: ghostwhite;
  margin-bottom: var(--spacing-xs);
  text-transform: uppercase;
  font-weight: bold;
  background-color: rgb(50,50,50);
}

.access-info p {
  font-size: var(--font-xs);
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
  line-height: 1.3;
}

.map-container {
  margin-top: var(--spacing-sm);
  border: 2px solid var(--border-light);
}

.map-container iframe {
  width: 100%;
  height: 150px;
  border: none;
}

/* 票券區域 - 2x3網格布局 */
.tickets-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto;
  gap: var(--spacing-sm);
}

.ticket-card {
  background: var(--bg-primary);
  padding: var(--spacing-sm);
  border: 2px solid var(--border-light);
  transition: all 0.2s ease;
  position: relative; 
  height: 180px;
}

.ticket-card:hover {
  color: var(--text-light);
  border-radius: 20px;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.ticket-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ticket-price {
  font-size:2rem;
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
}

.ticket-period {
  font-size: var(--font-sm);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xs);
  font-weight: 500;
}

.ticket-limit {
  font-size: var(--font-sm);
  color: var(--text-secondary);
  margin-bottom: 10px;
  font-weight: 500;
}

.ticket-status {
  font-size: var(--font-sm);
  color: var(--text-accent);
  font-weight: bold;
  text-transform: uppercase;
  position: absolute; /* 絕對定位 */
  top: var(--spacing-sm); /* 距離頂部 */
  right: var(--spacing-sm); /* 距離右邊 */
  z-index: 10; /* 確保在其他元素之上 */
}

.ticket-desc {
  font-size: var(--font-xs);
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.3;
}

.ticket-btn {
  width: 100%;
  background: var(--bg-dark);
  color: var(--text-light);
  border: 2px solid var(--border-light);
  padding: var(--spacing-xs) var(--spacing-sm);
  font-size: var(--font-xs);
  font-weight: bold;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
}

.ticket-btn:hover {
  background: var(--text-light);
  color: var(--bg-dark);
}

.ticket-btn:disabled {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  cursor: not-allowed;
}

/* FAQ 區域 */
.faq-item {
  margin-bottom: var(--spacing-sm);
  border-bottom: 2px solid var(--border-light);
  padding-bottom: var(--spacing-xs);
}

.faq-question {
  font-size: var(--font-sm);
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.faq-question:hover {
  background-color: rgb(50,50,50);
  color: ghostwhite;
}

.faq-question::after {
  content: '+';
  font-size: var(--font-md);
  transition: transform 0.2s ease;
  font-weight: bold;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  font-size: 1.5rem;
  color: var(--text-primary);
  line-height: 1.3;
  margin-top: var(--spacing-xs);
}

.faq-item.active .faq-answer {
  display: block;
}

/* Timeline 區域 */
.timeline-section {
  padding: var(--spacing-sm);
  background: rgb(85, 85, 85);
  border-bottom: 2px solid var(--border-light);
  width: 100%;
  position: relative;
}

.timeline-container {
  padding: 0;
  width: 100%;
}

.timeline-title {
  font-size: var(--font-hero);
  font-weight: bold;
  color: black; /* 設為白色文字 */
  text-align: center; /* 置中對齊 */
  margin-bottom: var(--spacing-sm); /* 減少底部間距 */
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 0.9;
  background-color:yellow;
  padding-top: 10px;
}

.timeline-subscribe {
  text-align: center; /* 置中對齊 */
  margin-bottom: var(--spacing-md); /* 與下方內容的間距 */
}

.timeline-content {
  background: var(--bg-secondary);
  padding: var(--spacing-sm);
  border: 2px solid var(--border-light);
  min-height: 300px;
  position: relative;
}

/* Timeline 特定樣式 - 簡化版本 */
.timeline-mode-container {
  width: 100%;
  overflow: hidden;
  border: 2px solid var(--border-light);
  background: var(--bg-secondary);
  position: relative;
  margin-bottom: var(--spacing-lg);
}

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

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

.timeline-calendar {
  display: flex;
  height: 100%;
  min-width: 1600px; /* 調整最小寬度以容納新的對齊方式 */
}

/* 時間軸主容器樣式 */
.timeline-main-container {
  display: flex;
  height: 100%;
  width: 100%;
}

/* 時間軸左側容器 */
.timeline-left-container {
  flex: 1;
  position: relative;
  background: var(--bg-secondary);
  overflow-x: auto;
  overflow-y: hidden;
}

/* 時間軸右側預覽容器 */
.timeline-right-container {
  flex: 0 0 450px;
  padding: var(--spacing-md);
  background: var(--bg-primary);
  border-left: 2px solid var(--border-light);
  overflow-y: auto;
  /* 讓右側預覽固定在視窗右側，左側可獨立滾動 */
  position: sticky;
  top: 0;
  align-self: flex-start;
  z-index: 5;
}

/* 時間軸區域樣式 */
.timeline-area {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--bg-secondary);
  min-height: 800px; /* 增加最小高度讓內容更清楚 */
  overflow: hidden; /* 不允許滾動，強制內容在容器內 */
}

/* 時間格線樣式 */
.timeline-time-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  border-top: 1px dashed var(--border-light);
  background: none; /* 移除實線背景，使用虛線 */
  z-index: 1;
}

/* 時間軸區域分隔線樣式 */
.timeline-zone-border {
  position: absolute;
  width: 1px;
  background: var(--border-light);
  z-index: 1;
}

.timeline-time-label {
  position: absolute;
  left: var(--spacing-sm);
  font-size: var(--font-xs);
  color: var(--text-primary);
  font-weight: bold;
  transform: translateY(-50%);
  z-index: 2;
  background-color:whitesmoke;
}

/* 日期標記樣式 */
.timeline-date-column {
  position: absolute;
  bottom: var(--spacing-sm);
  font-size: var(--font-sm);
  font-weight: bold;
  color: var(--text-primary);
  text-align: center;
  z-index: 2;
  background: var(--bg-primary);
  text-transform: uppercase;
}

.timeline-date-line {
  position: absolute;
  width: 1px;
  background: var(--border-light);
  z-index: 1;
}

/* 活動長條樣式 */
.timeline-event-bar {
  position: absolute;
  background: transparent; /* 移除背景顏色 */
  border: none; /* 移除邊框 */
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 30px; /* 減少高度，只在起始時間顯示 */
  font-size: var(--font-sm); /* 增加字體大小 */
  font-weight: bold;
  color: #000000; /* 預設黑色文字 */
  text-align: center;
  padding: 0; /* 移除padding提高定位準確性 */
  box-sizing: border-box;
  /* 移除圓角 */
  box-shadow: none; /* 移除陰影 */
  width: auto; /* 寬度自動 */
  min-width: fit-content; /* 最小寬度適應內容 */
}

.timeline-event-bar:hover {
  background: currentColor; /* 使用當前文字顏色作為背景 */
  color: white; /* 文字變為白色 */
  z-index: 100;
}

.timeline-event-bar.talk {
  color: #FF4500; /* 橘紅色文字 */
}

.timeline-event-bar.workshop {
  color: #0066CC; /* 正藍色文字 */
}

.timeline-event-bar.performance {
  color: #FFD700; /* 黃色文字 */
}

.timeline-event-bar.exhibition {
  color: #000000; /* 黑色文字 */
}

.timeline-event-bar.default {
  color: #000000; /* 黑色文字 */
}

.timeline-event-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--spacing-xs);
  line-height: 1.2;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  overflow: hidden; /* 防止內容溢出 */
  text-shadow: 1px 1px 0 white, -1px -1px 0 white, 1px -1px 0 white, -1px 1px 0 white; /* 白色文字輪廓 */
}

.timeline-event-content:hover{
  border:1.5px solid blueviolet;
}



/* Agenda 標題行樣式 */
.agenda-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
}

.agenda-controls {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.agenda-subscribe {
  margin: 0;
  font-size: var(--font-sm);
  background-color:#000;
}

.agenda-subscribe a {
  color: white; /* 設為白色文字 */
  text-decoration: none;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.agenda-subscribe a:hover {
  color: var(--text-secondary);
}

/* Timeline 圖例樣式 */
.timeline-legend {
  position: absolute;
    bottom: 10px;
    right: 460px;
    font-family: "Inclusive Sans", sans-serif;
    font-size: 0.75rem;
    background: lightgray;
    padding: 10px;
    border: 1px solid var(--border-light);
    z-index: 10;
}

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

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

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

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

.legend-dot.talk { background-color: #e74c3c; }
.legend-dot.workshop { background-color: #3498db; }
.legend-dot.performance { background-color: #9b59b6; }
.legend-dot.exhibition { background-color: #f39c12; }
.legend-dot.other { background-color: #95a5a6; }

.legend-label {
  font-size: 0.6rem;
  color: var(--text-primary);
}

/* Exhibitor 區域 */
.exhibitor-section {
  padding: var(--spacing-sm);
  background: lightgray;
  border-bottom: 2px solid var(--border-light);
  width: 100%;
}

.exhibitor-container {
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* 搜尋和篩選面板樣式 */
.exhibitor-search-panel {
  padding: var(--spacing-md);
  background: darkgrey;
  border: 2px solid var(--border-light);
  border-bottom: none;
}

.search-section {
  margin-bottom: var(--spacing-md);
}

.search-input-container {
  position: relative;
  margin-bottom: var(--spacing-sm);
}

.search-input {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  padding-right: 40px;
  border: 2px solid var(--border-light);
  background: var(--bg-primary);
  font-size: var(--font-lg);
  font-family: "Inclusive Sans", sans-serif;
  color: var(--text-primary);
  transition: all 0.2s ease;
  border-radius: 20px;
  /* subtle inner shadow */
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.12);
}

.search-input:focus {
  outline: none;
  border-color: var(--bg-dark);
  /* keep inner shadow and add focus ring */
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.12), 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.search-clear-btn {
  position: absolute;
  right: var(--spacing-sm);
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: none;
  color: black;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
}

.search-stats {
  font-size: var(--font-sm);
  color: var(--text-secondary);
  text-align: center;
}

.filter-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-md);
}

/* 排序按鈕樣式 */
.sort_button {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  border: 2px solid var(--border-light);
  background: var(--bg-primary);
  overflow: hidden;
}

.sort-btn {
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: var(--font-md);
  font-family: "Inclusive Sans", sans-serif;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s ease;
  border-right: 1px solid var(--border-light);
  user-select: none;
}

.sort-btn:last-child {
  border-right: none;
}

.sort-btn:hover {
  background: var(--bg-dark);
  color: var(--text-light);
}

.sort-btn.active {
  background: var(--bg-dark);
  color: var(--text-light);
}

.filter-actions {
  display: flex;
  justify-content: center;
  align-items: center;
}

.clear-filters-btn {
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 2px solid var(--border-light);
  font-size: var(--font-md);
  font-family: "Inclusive Sans", sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 0.05em;
}

.clear-filters-btn:hover {
  background: var(--bg-dark);
  color: var(--text-light);
}

/* 篩選器樣式（保留原有樣式） */
.exhibitor-filters {
  display: flex;
  justify-content: center;
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-md);
  background: var(--bg-secondary);
  border: 2px solid var(--border-light);
}

.filter-buttons {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 2px solid var(--border-light);
  font-size: var(--font-sm);
  font-family: "Inclusive Sans", sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 0.05em;
}

.filter-btn:hover {
  background: var(--bg-dark);
  color: var(--text-light);
}

.filter-btn.active {
  background: var(--bg-dark);
  color: var(--text-light);
  border-color: var(--text-accent);
}

/* 洲標題和分隔線樣式 */
.continent-title {
  font-size: var(--font-xl);
  font-weight: bold;
  color: var(--text-primary);
  text-align: center;
  margin: var(--spacing-lg) 0 var(--spacing-sm) 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  grid-column: 1 / -1; /* 跨越整個網格 */
}

.continent-separator {
  width: 100%;
  height: 2px;
  background: var(--border-light);
  margin: var(--spacing-sm) 0 var(--spacing-md) 0;
  grid-column: 1 / -1; /* 跨越整個網格 */
}

.exhibitor-title {
  font-size: var(--font-hero);
  font-weight: bold;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: var(--spacing-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 0.9;
  background-color: yellow;
}

.exhibitor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-sm);
}

.exhibitor-card {
  background: var(--bg-secondary);
  padding: var(--spacing-sm);
  border: 2px solid var(--border-light);
  text-align: left;
  transition: all 0.2s ease;
}

.exhibitor-card:hover {
  background: var(--bg-dark);
  color: var(--text-light);
}

/* 焦點效果：當某個卡片展開時，其他卡片變為黑底白字 */
.exhibitor-card-main.focused-out {
  background: var(--bg-dark) !important;
  color: var(--text-light) !important;
  opacity: 0.3 !important; /* 添加透明度讓反白效果更明顯 */
  transition: all 0.3s ease !important; /* 添加平滑過渡效果 */
}

.exhibitor-card-main.focused-out .exhibitor-name,
.exhibitor-card-main.focused-out .exhibitor-meta-info,
.exhibitor-card-main.focused-out .exhibitor-description {
  color: var(--text-light) !important;
}

/* 確保 focused-out 狀態下的 hover 效果被覆蓋 */
.exhibitor-card-main.focused-out:hover {
  opacity: 0.3 !important;
  border:3px solid rebeccapurple;
}

.exhibitor-name {
  font-size: var(--font-md);
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.exhibitor-desc {
  font-size: var(--font-xs);
  color: var(--text-primary);
  line-height: 1.3;
}

/* 攤商顯示相關樣式 */
.exhibitor-info-content {
  margin-bottom: var(--spacing-sm);
  border: 2px solid var(--border-light);
  padding: var(--spacing-sm);
  background: rgb(100,100,100);
}

.exhibitor-expand-btn {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  cursor: pointer;
  font-size: var(--font-sm);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--spacing-sm);
}

.exhibitor-display-container {
  display: block;
}

 /* 主要攤商網格佈局 - 八欄（桌面）/ 兩欄（手機） */
 .exhibitors-grid-main {
   display: grid;
   grid-template-columns: repeat(5, 1fr);
   gap: var(--spacing-sm);
   margin-bottom: var(--spacing-sm);
   width: 100%;
   box-sizing: border-box;
   overflow-x: hidden;
 }

/* 攤商卡片樣式 */
.exhibitor-card-main {
  background: var(--bg-primary);
  border: 2px solid var(--border-light);
  padding: var(--spacing-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.exhibitor-card-main:hover {
  color: var(--text-light);
border-radius: 20px;
background-color:cyan;
}

.exhibitor-basic-info {
  margin-bottom: var(--spacing-xs);
}

.exhibitor-brand-display {
  font-size: var(--font-lg);
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.exhibitor-meta-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--font-sm);
}

.exhibitor-booth-display {
  font-weight: bold;
  color: var(--text-primary);
}

.exhibitor-nationality-display {
  color: var(--text-secondary);
  font-weight: bold;
}

/* 詳細資訊區域 */
.exhibitor-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.exhibitor-details.expanded {
  max-height: none;
  background-color:cyan;
}

.exhibitor-details-content {
  padding-top: var(--spacing-sm);
  border-top: 1px solid var(--border-light);
  margin-top: var(--spacing-xs);
}

.exhibitor-description {
  font-size: 1.1rem;
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: var(--spacing-sm);
  font-family: "Alice", serif;
}

.exhibitor-social-links {
  display: flex;
  gap: var(--spacing-xs);
  flex-wrap: wrap;
}

.exhibitor-social-link {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  padding: var(--spacing-xs) var(--spacing-sm);
  font-size: var(--font-xs);
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.timeline-instructions {
display:none;
}

.exhibitor-social-link:hover {
  background: var(--bg-dark);
  color: var(--text-light);
}

.exhibitor-social-link.facebook:hover {
  background: black;
  color: white;
}

.exhibitor-social-link.instagram:hover {
  background: black;
  color: white;
}

.exhibitor-social-link.website:hover {
  background: var(--bg-dark);
  color: var(--text-light);
}

.exhibitor-full-list {
  display: none;
  border: 2px solid var(--border-light);
  padding: var(--spacing-sm);
  background: var(--bg-secondary);
}

.exhibitor-full-list.expanded {
  display: block;
}

.exhibitor-top-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-sm);
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.exhibitor-sort-buttons {
  display: flex;
  gap: var(--spacing-xs);
}

.sort-button {
  background: var(--bg-primary);
  border: 2px solid var(--border-light);
  padding: var(--spacing-xs) var(--spacing-sm);
  font-size: var(--font-xs);
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sort-button:hover,
.sort-button.active {
  background: var(--bg-dark);
  color: var(--text-light);
}

.exhibitors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 固定 4 列布局 */
  gap: var(--spacing-sm);
  transition: all 0.3s ease; /* 添加平滑過渡 */
}

/* 展開狀態的攤商卡片 - 佔據更多寬度 */
.exhibitor-card-main.expanded-wide {
  grid-column: span 2; /* 佔據 2 列寬度 */
  z-index: 10; /* 確保在其他卡片之上 */
  position: relative;
}

/* 如果內容特別長，佔據 3 列寬度 */
.exhibitor-card-main.expanded-wide.long-content {
  grid-column: span 3;
}

/* 展開狀態的詳細資訊樣式 */
.exhibitor-card-main.expanded-wide .exhibitor-details {
  display: block !important;
  opacity: 1 !important;
  max-height: none !important;
  padding: var(--spacing-md);
  background: var(--bg-secondary);
  border-top: 2px solid var(--border-light);
  margin-top: var(--spacing-sm);
}

/* 響應式設計 */
@media (max-width: 768px) {
  .exhibitors-grid {
    grid-template-columns: repeat(2, 1fr); /* 手機版 2 列 */
  }
  
  .exhibitor-card-main.expanded-wide {
    grid-column: span 2; /* 手機版展開時佔滿整行 */
  }
  
  .exhibitor-card-main.expanded-wide.long-content {
    grid-column: span 2; /* 手機版長內容也佔滿整行 */
  }

  .hero-traffic {
    display: block;
  }
  
  .hero-poster-section iframe {
    transform: rotate(90deg);
  }
  /* 展覽資訊手機版樣式 - 統一字體大小 */
}

@media (max-width: 480px) {
  .exhibitors-grid {
    grid-template-columns: 1fr; /* 小螢幕 1 列 */
  }
  
  .exhibitor-card-main.expanded-wide,
  .exhibitor-card-main.expanded-wide.long-content {
    grid-column: span 1; /* 小螢幕展開時佔滿整行 */
  }
}

/* Credit/Team 區域 */
.credit-section {
  padding: var(--spacing-sm);
  background: var(--bg-dark);
  color: var(--text-light);
}

.credit-container {
  padding: 0;
  text-align: left;
}

.credit-title {
  font-size: var(--font-hero);
  font-weight: bold;
  margin-bottom: var(--spacing-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 0.9;
}

.credit-content {
  font-size: var(--font-sm);
  line-height: 1.4;
}



/* 響應式設計 */
@media (max-width: 768px) {
  .timeline-instructions {
    display: block;
  }
  .two-column-container {
    grid-template-columns: 1fr;
    gap: var(--spacing-xs);
  }

  .tickets-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

        .hero-container {
          grid-template-columns: 1fr;
          text-align: center;
          gap: var(--spacing-md);
        }

        /* hero-left 不再使用，影片已移至獨立區域 */

        .hero-poster-section {
          width: 100%;
          max-width: 100%;
          margin-bottom: var(--spacing-md);
        }
        
        .hero-poster-section iframe {
          width: 100% !important;
          max-width: 100%;
          height: auto !important;
          aspect-ratio: 16 / 9;
        }

        .hero-description {
          order: 2;
          text-align: center;
          padding-left: 0;
          grid-column: 1 / -1;
        }

  .access-info-section {
    margin-top: var(--spacing-md);
  }

  /* 手機版搜尋面板調整 */
  .exhibitor-search-panel {
    padding: var(--spacing-sm);
  }

  .filter-section {
    flex-direction: column;
    align-items: stretch;
    gap: var(--spacing-sm);
  }

  .sort_button {
    width: 100%;
    justify-content: center;
  }

  .sort-btn {
    flex: 1;
    text-align: center;
  }

  .search-input {
    font-size: var(--font-sm);
  }

  /* 手機版導航調整 */
  .nav-container {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .nav-back-btn {
    flex: 1;
    min-width: 100px;
  }

  .nav-menu {
    flex-direction: row;
    flex-wrap: wrap;
    width: auto;
  }

  .nav-item {
    flex: 1;
    min-width: 80px;
    text-align: center;
    border-bottom: none;
    border-right: 1px solid var(--border-light);
  }

  .nav-item:last-child {
    border-right: none;
  }

  .nav-lang {
    width: auto;
    min-width: 60px;
  }

  .hero-section {
    padding-left: 0;
    padding-right: 0;
  }

  .hero-container {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-md);
    padding-left: 0;
    padding-right: 0;
  }

  .hero-left {
    text-align: center;
  }

  .hero-right {
    text-align: left;
    padding-left: 0;
  }

  .hero-poster {
    max-width: 250px;
  }
  
  .hero-poster-section {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
    overflow: visible;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .hero-poster-section iframe {
    transform: rotate(0deg);
    /* 旋轉後，原本的 height 變成可見的寬度，原本的 width 變成可見的高度 */
    /* 要讓旋轉後的寬度填滿容器，需要讓原本的 height = 100vw */
    height: 100vw !important;
    /* 旋轉後的高度（原本的 width），保持 16:9 比例，所以 width = height * (16/9) */
    width: calc(100vw * 16 / 9) !important;
    max-width: none !important;
    aspect-ratio: none !important;
    border-radius: 0;
    transform-origin: center center;
  }

  /* 手機版篩選器 */
  .exhibitor-filters {
    padding: var(--spacing-sm);
  }

  .filter-buttons {
    flex-direction: column;
    gap: var(--spacing-xs);
  }

  .filter-btn {
    width: 100%;
    text-align: center;
  }

  /* 手機版攤商網格改為兩欄 */
  .exhibitors-grid-main {
    grid-template-columns: repeat(1, 1fr);
  }

  .exhibitor-grid {
    grid-template-columns: 1fr;
  }

  .column-title {
    font-size: var(--font-xl);
  }

  .timeline-title,
  .exhibitor-title,
  .credit-title {
    font-size: var(--font-xl);
  }
}

/* 從 HTML 內聯樣式移動過來的樣式 */

/* Timeline 容器顯示樣式 */
.timeline-mode-container {
  display: block;
}

/* 參展商篩選器隱藏樣式 */
.exhibitor-filters {
  display: none;
}

/* 票券狀態樣式 */
.ticket-status.available {
  color: #00a650;
  font-weight: bold;
}

.ticket-status.unavailable {
  color: #666;
  font-weight: normal;
}

.ticket-status.onsite {
  color: #FBAD17;
  font-weight: bold;
}

/* 票券按鈕樣式 */
.ticket-btn.available {
  background: #FBAD17;
  color: black;
  cursor: pointer;
  border-radius: 50%;
}

.ticket-btn.unavailable {
  background: #ccc;
  color: #666;
  cursor: not-allowed;
}

.ticket-btn.hidden {
  display: none;
}

/* 參展商卡片顯示/隱藏樣式 */
.exhibitor-card-main.visible {
  display: block;
}

.exhibitor-card-main.hidden {
  display: none;
}

/* 從 timeline-visit.js 移動過來的樣式 */

/* Timeline 主容器樣式 */
.timeline-main-container {
  display: flex;
  width: 100%;
}

.timeline-main-container.dynamic-height {
  height: auto;
}

/* Timeline 區域樣式 */
.timeline-area.dynamic-height {
  height: auto;
  flex: 1;
  min-width: 400px;
}

/* Timeline 右側預覽容器樣式 */
.timeline-right-container.dynamic {
  width: 25%;
  min-width: 200px;
  padding: var(--spacing-md);
  background: lightgray;
  border-left: 1px dashed var(--border-light);
  overflow-y: auto;
  flex-shrink: 1;
  position: relative;
}

.timeline-right-container.dynamic-height {
  height: auto;
}

/* Timeline 時間線樣式 */
.timeline-time-line.dynamic {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  border-top: 1px dashed var(--border-light);
  background: none;
  z-index: 1;
}

/* Timeline 時間標籤樣式 */
.timeline-time-label.dynamic {
  position: absolute;
  left: var(--spacing-sm);
  font-size: var(--font-xs);
  color: var(--text-primary);
  font-weight: bold;
  transform: translateY(-50%);
  z-index: 2;
  background-color: whitesmoke;
}

/* Timeline 區域邊界樣式 */
.timeline-zone-border.dynamic {
  position: absolute;
  width: 1px;
  background: var(--border-light);
  z-index: 1;
}

/* Timeline 日期列樣式 */
.timeline-date-column.dynamic {
  position: absolute;
  bottom: var(--spacing-sm);
  font-size: 1.2rem;
  color: var(--text-primary);
  text-align: center;
  z-index: 2;
  background: var(--bg-primary);
  text-shadow: 2px 2px aqua;
}

/* Timeline 日期線樣式 */
.timeline-date-line.dynamic {
  position: absolute;
  width: 1px;
  background: var(--border-light);
  z-index: 1;
}

/* Timeline 篩選容器樣式 */
.timeline-filter-container {
  position: absolute;
  left: 0;
  right: 0;
  height: auto;
  display: flex;
  justify-content: space-between;
  gap: 0;
  z-index: 10;
  padding: 15px 0;
}

/* Timeline 篩選按鈕樣式 */
.timeline-filter-btn {
  padding: 6px 0;
  border: none;
  font-size: 2rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 40%;
  color: whitesmoke;
}

.timeline-filter-btn:hover {
  border-radius: 0;
}

.timeline-filter-btn.all {
  background-color: #333;
}

.timeline-filter-btn.talk {
  background-color: orangered;
}

.timeline-filter-btn.workshop {
  background-color: blue;
}

.timeline-filter-btn.performance {
  background-color: blueviolet;
}

.timeline-filter-btn.exhibition {
  background-color: black;
}

/* Timeline 事件條樣式 */
.timeline-event-bar.dynamic {
  position: absolute;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  font-size: var(--font-sm);
  font-weight: bold;
  text-align: center;
  padding: 0;
  box-sizing: border-box;
  box-shadow: none;
  width: auto;
  min-width: fit-content;
}

.timeline-event-bar.talk {
  color: orangered;
}

.timeline-event-bar.workshop {
  color: blue;
}

.timeline-event-bar.performance {
  color: blueviolet;
}

.timeline-event-bar.exhibition {
  color: black;
}

.timeline-event-bar.default {
  color: black;
}

/* Timeline 事件標題樣式 */
.timeline-event-title {
  font-weight: bold;
  margin-bottom: 2px;
  max-width: 200px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-event-title.small {
  font-size: 10px;
}

.timeline-event-title.medium {
  font-size: 12px;
}

.timeline-event-title.large {
  font-size: 14px;
}

/* Timeline 事件時間樣式 */
.timeline-event-time {
  font-size: 12px;
  color: #666;
  opacity: 0.8;
}

/* Timeline 事件顯示/隱藏樣式 */
.timeline-event-bar.visible {
  display: block;
}

.timeline-event-bar.hidden {
  display: none;
}

/* Timeline 預覽容器內容樣式 */
.timeline-preview-content {
  text-align: center;
}

.timeline-preview-image {
  width: 100%;
  height: auto;
  border: 1.5px solid black;
  margin-bottom: 15px;
}

.timeline-preview-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.timeline-preview-default {
  text-align: center;
  color: #666;
  font-size: 1rem;
}

/* Timeline 容器顯示樣式 */
.timeline-mode-container.visible {
  display: block;
}

/* Timeline 預覽內容詳細樣式 */
.timeline-preview-type-tag {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 8px;
  text-transform: uppercase;
  color: var(--text-primary);
}

.timeline-preview-type-tag.talk {
  color: orangered;
}

.timeline-preview-type-tag.workshop {
  color: blue;
}

.timeline-preview-type-tag.performance {
  color: blueviolet;
}

.timeline-preview-type-tag.exhibition {
  color: black;
}

.timeline-preview-type-tag.default {
  color: black;
}

.timeline-preview-date-time {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.timeline-preview-event-title {
  font-family: "Alice", serif;
  font-size: 1.5rem;
  margin-bottom: 15px;
  text-transform: uppercase;
  background-color: ghostwhite;
}

.timeline-preview-description {
  font-size: 0.9rem;
  line-height: 1.4;
  color: #666;
}

.timeline-preview-signup {
  margin-top: 15px;
}

.timeline-preview-signup-btn {
  display: inline-block;
  padding: 8px 16px;
  background: #000;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
}

/* Timeline 錯誤和空狀態樣式 */
.timeline-empty-state {
  text-align: center;
  padding: 20px;
  background: #f0f0f0;
  border: 2px solid #000;
}

.timeline-error-state {
  text-align: center;
  padding: 20px;
  background: #f0f0f0;
  border: 2px solid #ff0000;
}

.timeline-reload-btn {
  padding: 10px 20px;
  background: #000;
  color: #fff;
  border: none;
  cursor: pointer;
}

/* 回到頂部按鈕 */
.back-to-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 35px;
  height: 55px;
  background: orchid;
  border:none;
  color: white;
  border-radius: 50%;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
  font-family: "Inclusive Sans", sans-serif;
  padding: 0;
  line-height: 1;
}

/* 手機版回到頂部按鈕樣式 */
@media (max-width: 768px) {
  .back-to-top-btn {
    bottom: 20px;
    right: 20px;
    width: 30px;
    height: 45px;
    font-size: 1.8rem;
  }
  .timeline-preview-image {
    width:250px;
  }
  .timeline-right-container{
    flex: 0 0 21%;
  }
  .timeline-date-column.dynamic{
    bottom: 90%;
  }
}

@media (max-width: 480px) {
  .back-to-top-btn {
    bottom: 15px;
    right: 15px;
    width: 35px;
    height: 50px;
    font-size: 1.5rem;
  }
}
