@charset "UTF-8";
/* ===========================
   全站基本設定
   =========================== */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;700&display=swap");
:root {
  --primary: #1e90d6;
  --primary-light: #55b3f5;
  --primary-dark: #0d65a8;
  --accent: #f5a623;
  --accent2: #e8f4fd;
  --text: #1a1a2e;
  --text-light: #555577;
  --bg: #f5faff;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
  --radius: 14px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-dark);
}

/* ===========================
   導覽列（桌機）
   =========================== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  height: 68px;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary-dark);
  text-decoration: none;
}

.nav-logo img {
  height: 40px;
  border-radius: 6px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 6px;
}

.nav-links a {
  padding: 7px 15px;
  border-radius: 20px;
  font-size: 0.95rem;
  color: var(--text);
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--primary);
  color: var(--white);
}

/* 漢堡按鈕 — 桌機隱藏 */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--primary-dark);
  border-radius: 3px;
  transition: transform 0.3s, opacity 0.3s;
}

/* 漢堡開啟時的 X 動畫 */
.hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ===========================
   英雄橫幅
   =========================== */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("../images/banner-main.png") center/cover no-repeat;
  opacity: 0.55;
}

.hero-content {
  position: relative;
  text-align: center;
  color: var(--white);
  padding: 60px 20px;
  max-width: 800px;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 4px;
  margin-bottom: 18px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-content p {
  font-size: 1.15rem;
  line-height: 2;
  opacity: 0.95;
}

.hero-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  padding: 6px 18px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

/* 首頁全幅橫幅圖片 */
.hero-banner {
  width: 100%;
  line-height: 0;
}

.hero-banner-img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 600px;
  object-fit: contain;
  object-position: center;
  background: var(--primary-dark);
}

/* 子頁面頂部橫幅 */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  padding: 70px 5%;
  text-align: center;
}

.page-hero h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.page-hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 650px;
  margin: 0 auto;
}

/* ===========================
   版面容器
   =========================== */
main {
  min-height: 70vh;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 70px 5%;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-dark);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.title-logo {
  height: 65px;
  width: auto;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
}

/* ===========================
   首頁資訊區塊
   =========================== */
.info-block {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 50px;
  box-shadow: var(--shadow);
  max-width: 720px;
  margin: 0 auto 50px;
}

.info-block h2 {
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-block h2::before {
  content: "";
  display: block;
  width: 5px;
  height: 24px;
  background: var(--primary);
  border-radius: 3px;
}

.info-block p,
.info-block li {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

.info-block ul {
  padding-left: 20px;
}

/* ===========================
   三大活動卡片 (首頁)
   =========================== */
.activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}

.activity-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
}

.activity-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
}

.activity-card-full {
  padding: 0;
  height: 100%; /* Ensure it stretches */
  min-height: 400px; /* Match approximate height of other cards */
}

.activity-card-full img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.activity-card-img {
  height: 200px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid #eee;
}

.activity-card-img img {
  width: auto;
  height: 100%;
  object-fit: contain;
}

.activity-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.activity-card-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.activity-card-body p {
  font-size: 0.9rem;
  color: var(--text-light);
  flex: 1;
}

.card-btn {
  display: inline-block;
  margin-top: 18px;
  padding: 9px 22px;
  background: var(--primary);
  color: var(--white);
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 700;
  align-self: flex-start;
  transition: background 0.2s;
}

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

/* ===========================
   贊助板塊
   =========================== */
.sponsors-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  border-radius: var(--radius);
  padding: 50px 40px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.sponsors-cta h2 {
  font-size: 1.6rem;
  margin-bottom: 14px;
}

.sponsors-cta p {
  opacity: 0.9;
  margin-bottom: 24px;
  font-size: 1rem;
}

.btn-white {
  display: inline-block;
  padding: 12px 34px;
  background: var(--white);
  color: var(--primary-dark);
  border-radius: 25px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.2s;
}

.btn-white:hover {
  transform: scale(1.04);
  color: var(--primary-dark);
}

/* ===========================
   活動地點
   =========================== */
.location-container {
  max-width: 900px;
  margin: 0 auto;
}

.location-map {
  margin-bottom: 24px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.location-info {
  text-align: center;
}

.location-info p {
  margin-bottom: 8px;
  color: var(--text);
}

/* ===========================
   子頁面通用
   =========================== */
.page-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 24px;
}

.content-section {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  margin-bottom: 32px;
  box-shadow: var(--shadow);
}

.content-section h2 {
  font-size: 1.4rem;
  color: var(--primary-dark);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--accent2);
}

.content-section h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin: 20px 0 10px;
}

.content-section p {
  color: var(--text-light);
  margin-bottom: 12px;
}

.content-section ul {
  padding-left: 22px;
  margin-bottom: 14px;
}

.content-section li {
  color: var(--text-light);
  margin-bottom: 6px;
}

/* ===========================
   標籤列表 / 攤位 / 演出
   =========================== */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.tag {
  background: var(--accent2);
  color: var(--primary-dark);
  padding: 5px 14px;
  border-radius: 16px;
  font-size: 0.88rem;
  font-weight: 500;
}

.stats-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin: 30px 0;
}

.stat-item {
  text-align: center;
}

.stat-item .stat-num {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
}

.stat-item .stat-label {
  font-size: 0.9rem;
  color: var(--text-light);
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
}

.schedule-table th {
  background: var(--primary);
  color: var(--white);
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
}

.schedule-table td {
  padding: 10px 16px;
  border-bottom: 1px solid #eee;
  color: var(--text-light);
}

.schedule-table tr:nth-child(even) td {
  background: var(--accent2);
}

.booth-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.booth-item {
  background: var(--accent2);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 0.9rem;
  color: var(--text);
}

.performance-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.performance-item {
  background: #fff3e0;
  border-left: 4px solid var(--accent);
  padding: 6px 14px;
  border-radius: 0 8px 8px 0;
  font-size: 0.9rem;
  color: var(--text);
}

/* ===========================
   頁腳
   =========================== */
.site-footer {
  background: var(--white);
  color: var(--text-light);
  text-align: center;
  padding: 50px 20px;
  font-size: 0.9rem;
  line-height: 2;
  border-top: 1px solid #eee;
}

.footer-logo {
  max-height: 80px;
  width: auto;
  margin-bottom: 25px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.site-footer a {
  color: var(--primary);
}

.site-footer a:hover {
  color: var(--primary-dark);
}

/* ===========================
   行動裝置 RWD — 漢堡選單
   =========================== */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  /* 顯示漢堡按鈕 */
  .hamburger {
    display: flex;
  }
  /* 隱藏桌機導覽列，改為下拉抽屜 */
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 16px 20px 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 999;
    gap: 4px;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links li {
    width: 100%;
  }
  .nav-links a {
    display: block;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 1rem;
  }
  .info-block {
    padding: 28px 20px;
  }
  .content-section {
    padding: 24px 18px;
  }
  .activity-grid {
    grid-template-columns: 1fr;
  }
  .page-content {
    padding: 40px 16px;
  }
}
/* ===========================
   YouTube 響應式嵌入
   =========================== */
.yt-wrap {
  position: relative;
  padding-top: 56.25%;
  /* 16:9 */
  margin-top: 24px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.yt-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ===========================
   Carousel / Slider
   =========================== */
.carousel-container {
  position: relative;
  width: 100%;
  max-width: 900px; /* Increased for better desktop presence */
  margin: 30px auto;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* Softer, premium shadow */
  background: #fdfdfd;
}

.carousel-wrapper {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.carousel-wrapper::-webkit-scrollbar {
  display: none;
}

.carousel-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  position: relative;
}

.carousel-slide img {
  width: 100%;
  display: block;
  object-fit: contain;
  background: #f8f9fa; /* Light, elegant background for diagrams */
  aspect-ratio: 16/9;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.7); /* Stronger glassmorphism */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--primary-dark);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  font-size: 1.2rem;
}

.carousel-btn:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-50%) scale(1.05);
}

.carousel-btn.prev {
  left: 20px;
}

.carousel-btn.next {
  right: 20px;
}

.carousel-pagination {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(4px);
  border-radius: 20px;
}

.dot {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--white);
  transform: scale(1.2);
}

/*# sourceMappingURL=style.css.map */