@charset "UTF-8";
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

body {
  line-height: 1;
}

ol, ul {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
  content: "";
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* 基礎設定與變數 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif;
}

a {
  color: inherit;
  cursor: pointer;
}

@keyframes fadeUp {
  0% {
    transform: translateY(30%);
    -webkit-transform: translateY(30%);
    -moz-transform: translateY(30%);
    -ms-transform: translateY(30%);
    -o-transform: translateY(30%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    -webkit-transform: translateY(0);
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    -o-transform: translateY(0);
    opacity: 1;
  }
}
@keyframes jump {
  0% {
    transform: translateY(-1%);
    -webkit-transform: translateY(-1%);
    -moz-transform: translateY(-1%);
    -ms-transform: translateY(-1%);
    -o-transform: translateY(-1%);
  }
  50% {
    transform: translateY(0);
    -webkit-transform: translateY(0);
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    -o-transform: translateY(0);
  }
  100% {
    transform: translateY(-1%);
    -webkit-transform: translateY(-1%);
    -moz-transform: translateY(-1%);
    -ms-transform: translateY(-1%);
    -o-transform: translateY(-1%);
  }
}
/* --- 變數與基礎設定 --- */
:root {
  --primary: #FE638C;
  --primary-hover: #BE3F76;
  --secondary: #FFCB66;
  --bg-color: #FDE8ED;
  --bg-light: #fff6f8;
  --text-main: #333333;
  --text-light: #666666;
  --border-color: #eeeeee;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  --header-height: 80px;
  /* 您可以在這裡調整 Header 的高度 */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Helvetica Neue", Arial, "微軟正黑體", sans-serif;
}

body {
  background-color: var(--bg-light);
  color: var(--text-light);
  line-height: 1.6;
  scroll-behavior: smooth;
  padding-top: var(--header-height);
  background-image: url(../img/bg.png);
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
}

a {
  color: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  -ms-transition: all 0.3s;
  -o-transition: all 0.3s;
}

/* --- 共用 Layout (RWD 核心) --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 80px 0;
}

.bg-white {
  background-color: var(--bg-light);
}

.bg-light-warm {
  background-color: #fffaf0;
  background-image: url(../img/bg-02.png);
  background-size: 50% auto;
  background-repeat: no-repeat;
  background-position: right top;
}

h1 {
  font-weight: bold;
}

h2 {
  font-weight: bold;
  text-align: center;
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 40px;
}

h3 {
  font-size: 1.4rem;
  color: #555;
  margin-bottom: 10px;
  font-weight: bold;
}
h3.btn {
  padding: 0.25em 1em;
  border: none;
  background-color: var(--secondary);
  color: var(--text-main);
}

/* 按鈕共用樣式 */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid var(--primary);
  color: var(--primary);
  background-color: var(--bg-light);
  cursor: pointer;
}

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

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

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

.btn-sm {
  padding: 8px 16px;
  font-size: 0.9rem;
}

/* --- Header 導航列 --- */
.header {
  background-color: #FFF;
  box-shadow: var(--shadow);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  padding: 15px 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo img {
  max-height: 50px;
  width: auto;
}

.main-nav ul {
  display: flex;
  gap: 20px;
  align-items: center;
}
.main-nav li {
  text-decoration: none;
  transition: color 0.3s;
  cursor: pointer;
}
.main-nav a {
  display: block;
}
.main-nav a:hover {
  color: var(--primary);
}

.nav-cta {
  padding: 8px 16px;
  font-size: 0.9rem;
}

/* 手機版漢堡選單圖標 */
.hamburger-menu {
  display: none;
  /* 預設隱藏 */
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  z-index: 1100;
}

.hamburger-line {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--primary);
  border-radius: 5px;
  transition: transform 0.3s, opacity 0.3s;
}

/* --- RWD 響應式 (手機版) --- */
@media (max-width: 768px) {
  .hamburger-menu {
    display: flex;
    /* 手機版顯示漢堡選單按鈕 */
  }
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background-color: var(--bg-light);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    /* 初始隱藏在螢幕右側 */
    transition: transform 0.3s ease-in-out;
    z-index: 1050;
    padding: var(--header-height) 20px 20px;
    /* 為 Header 預留空間 */
  }
  .main-nav ul {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
  /* 漢堡選單打開時的樣式 */
  .header.active .main-nav {
    transform: translateX(0);
  }
  .header.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .header.active .hamburger-line:nth-child(2) {
    opacity: 0;
  }
  .header.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}
/* --- Fade In 動畫樣式 --- */
.fade-in-section {
  opacity: 0;
  transform: translateY(50px);
  /* 初始位移：向下 50px */
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  visibility: hidden;
  /* 確保內容不會在fadeIn前佔用空間 */
}

/* jQuery 滾動觸發後的樣式 */
.fade-in-section.fade-in-visible {
  opacity: 1;
  transform: translateY(0);
  /* 恢復原位 */
  visibility: visible;
}

/* --- Hero Section 首屏 --- */
#hero {
  padding: 0;
  background-image: url(../img/hero-bg.jpg);
  background-size: cover;
  background-position: center;
}
#hero h1 {
  font-size: 3.5rem;
  color: var(--primary);
  margin-bottom: 15px;
}
#hero subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 30px;
}

.hero-content {
  text-align: center;
  max-width: none;
  padding: 0;
  position: relative;
}
.hero-content .hero-buttons {
  position: absolute;
  bottom: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-image {
  width: 100%;
  animation: jump 0.5s 1s infinite;
  -webkit-animation: jump 1s 1s ease-in-out infinite;
}
.hero-image img {
  width: auto;
  max-width: 100%;
  height: 80vh;
  margin-bottom: 5em;
  animation: fadeUp 1s forwards;
  -webkit-animation: fadeUp 1s forwards;
}

.hero-info {
  display: flex;
  justify-content: center;
  gap: 30px;
  font-weight: bold;
}

/* --- Grid 網格佈局 (RWD) --- */
.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  /* 預設單欄 */
}

/* --- 各區塊專屬樣式 --- */
/* 關於市集卡片 */
.card {
  background: #FFF;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
}

.icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--primary-soft, #ffece8);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  margin: 0 auto 20px auto;
  color: var(--primary);
}

/* 活動主旨 */
.application.bg-light-warm {
  background-size: auto 40%;
  background-repeat: no-repeat;
  background-position: right bottom;
}
.application .application-content {
  background-image: url(../img/bg-03.png);
  background-size: auto 30%;
  background-repeat: no-repeat;
  background-position: left center;
}

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

.image-box img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  margin-bottom: 15px;
}

/* 報名須知 */
section.application {
  padding-bottom: 0;
}
section.application .container {
  padding: 0;
}
section.application .container > div {
  padding: 0 50px 50px 50px;
}

.guide-grid {
  gap: 20px;
  text-align: center;
  background-color: rgba(255, 250, 240, 0.5);
  padding-bottom: 80px;
}
.guide-grid > div {
  margin: 0 auto;
  max-width: 800px;
}
.guide-grid ul {
  list-style: inside;
  text-align: left;
  background-color: #FFF;
  padding: 1rem;
  border-radius: 0.5em;
  -webkit-border-radius: 0.5em;
  -moz-border-radius: 0.5em;
  -ms-border-radius: 0.5em;
  -o-border-radius: 0.5em;
}

.app-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 1rem !important;
  margin-bottom: 3em;
  background-color: #FFF;
  box-shadow: var(--shadow);
  border-radius: 1rem;
  -webkit-border-radius: 1rem;
  -moz-border-radius: 1rem;
  -ms-border-radius: 1rem;
  -o-border-radius: 1rem;
}
.app-card img {
  width: 100%;
  border-radius: 1rem;
  -webkit-border-radius: 1rem;
  -moz-border-radius: 1rem;
  -ms-border-radius: 1rem;
  -o-border-radius: 1rem;
}

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

/* 市集地點 */
.map-box img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  margin-top: 15px;
}

.diy-button {
  margin-top: 20px;
}

.guide-transport p {
  display: flex;
}
.guide-transport p span {
  margin-right: 0.25rem;
}

.record {
  padding: 0 2em;
}
.record img {
  border-radius: 1rem;
  -webkit-border-radius: 1rem;
  -moz-border-radius: 1rem;
  -ms-border-radius: 1rem;
  -o-border-radius: 1rem;
}

/* 返回置頂按鈕 */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--bg-light);
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 1.5rem;
  text-decoration: none;
  z-index: 1000;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
}

/* 滾動時顯示置頂按鈕 */
.back-to-top.back-to-top-visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--primary-hover);
  transform: translateY(-5px);
}

/* 頁尾 */
.footer {
  text-align: center;
  padding: 40px 0;
  background-color: var(--bg-light);
  border-top: 1px solid var(--border-color);
  color: var(--text-light);
}
.footer .link-group {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}
.footer .icon {
  width: 24px;
  margin: 5px;
}
.footer .icon img {
  width: 100%;
}

.logo.justify-center {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

/* 手機版 Hero H1 字體大小 */
@media (max-width: 768px) {
  body {
    background-size: auto 100%;
    background-position: right bottom;
  }
  .main-nav li {
    width: 100%;
    font-size: 1.25rem;
    text-align: center;
  }
  .main-nav li .nav-cta {
    font-size: 1.25rem;
  }
  .bg-light-warm {
    background-size: auto 100%;
    background-position: left top;
  }
  .application.bg-light-warm {
    background-position: left bottom;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero-image img {
    height: auto;
  }
  .app-card {
    grid-template-columns: 1fr;
    margin-left: 1rem;
    margin-right: 1rem;
  }
}
/* 平板及桌機版網格排版 */
@media (min-width: 768px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .highlights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .application-grid {
    grid-template-columns: 2fr 1fr;
    align-items: center;
  }
  .contact-grid {
    grid-template-columns: 2fr 1fr;
    gap: 40px;
  }
}
@media (min-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .highlights-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.simple-carousel-container {
  width: 90%; /* 您可以自定義容器寬度 */
  max-width: 1000px;
  margin: 50px auto;
  overflow: hidden; /* **關鍵：隱藏捲動部分** */
  position: relative;
}

/* 2. 軌道：所有圖片都放在這裡，使用 Flexbox 橫向排列 */
.carousel-track {
  display: flex;
  transition: transform 0.8s ease-in-out; /* 捲動動畫特效 */
  will-change: transform;
}

/* 3. 單張幻燈片：核心設定 */
.slide {
  /* **關鍵：計算寬度。計算方式：100% / 每次顯示張數** */
  flex: 0 0 33.3333333333%;
  box-sizing: border-box;
  padding: 10px; /* 圖片之間的間距 */
  display: flex;
  justify-content: center;
  align-items: center;
}

.slide img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 5px;
}

/* 可選：分頁圓點樣式 */
.carousel-dots {
  text-align: center;
  margin-top: -20px;
  position: relative;
  z-index: 10;
}

.dot {
  height: 10px;
  width: 10px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: #717171;
}/*# sourceMappingURL=style.css.map */