@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Syncopate:wght@400;700&family=Zen+Antique&display=swap');
reset.css

body {
  margin: 0;

  background: #f9f9f9;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: 70px; /* 預留空間給 fixed 導覽列 */
  padding-bottom: 50px; /* 預留空間給 fixed footer */
  overflow-x: hidden; /* 避免跑馬燈溢出時橫向捲軸 */
}

/* Header - 固定在最上方 */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  z-index: 1000;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  font-style: normal;
}

/* 導覽列 */
nav {
  display: flex;
}
nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: #333;
  font-weight: 500;
}
nav a:hover {
  color: #0077cc;
}

/* 漢堡按鈕 */
.hamburger {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* Section 1 */
.slogan {
  text-align: center;
  margin: 3rem 1rem;
  font-size: 5rem;
  font-weight: bold;
  line-height: 1.2;
  font-family: "Syncopate", sans-serif;
  font-weight: 400;
  font-style: normal;
}

/* 漸層文字 */
.gradient-2025 {
  background: linear-gradient(to right, #001f5c, #66a3ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.gradient-you {
  background: linear-gradient(to right, #a8e6a1, #006400);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* Section 2 */
.links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 3rem 0;
  flex-wrap: wrap;

}
.links a {
  padding: 0.8rem 1.5rem;
  border: 2px solid #333;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  font-weight: 600;
  transition: all 0.3s ease;
  font-family: "Zen Antique", serif;
  font-weight: 400;
  font-style: normal;
    font-size: 4.0rem;
}
.links a:hover {
  background: #333;
  color: #fff;
}

/* Section 3 - 文字容器 */
.marquee-container {
  position: relative; /* 讓裡面的文字可以絕對定位 */
  height: 300px;      /* 你可以依需要調整容器高度 */
  margin: 2rem auto;
  text-align: center;
  overflow: hidden;   /* 防止文字跑出去 */
}

/* 每段文字 */
.marquee-text {
  position: absolute;
  opacity: 0;
  transition: opacity 2s ease; /* 淡入效果 */
  font-size: 1.5rem;
  color: #333;
  max-width: 80%;
  word-break: break-word;
  display: inline-block; /* 確保每段文字是獨立的 */
}

/* Footer */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  text-align: center;
  padding: 1rem;
  background: #fff;
  border-top: 1px solid #ddd;
  font-size: 0.9rem;
  color: #666;
  z-index: 1000;
}

/* ===================== */
/* RWD 響應式設計 */
/* ===================== */

/* 平板 (768px–1024px) */
@media (max-width: 1024px) {
  .slogan {
    font-size: 2.5rem;
  }
  nav a {
    margin-left: 1rem;
    font-size: 0.95rem;
  }
  .links a {
    font-size: 2rem;
  }
}

/* 手機 (<768px) */
@media (max-width: 768px) {
  header {
    flex-wrap: wrap;
    padding: 1rem;
  }
  /* 漢堡按鈕顯示 */
  .hamburger {
    display: block;
  }
  /* 導覽列預設隱藏 */
  nav {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 0.5rem;
  }
  nav a {
    margin: 0.5rem 0;
  }
  /* 點擊展開後顯示 */
  nav.show {
    display: flex;
  }

  .slogan {
    font-size: 2rem;
    margin: 2rem 1rem;
  }
  .links {
    flex-direction: column;
    gap: 1rem;
  }
  .links a {
    width: 80%;
    text-align: center;
    font-size: 1.5rem;
  }
}