/* ========================
 /* Hero 區域背景圖片 */
.hero-section {
  position: relative;
  height: 80vh; /* Hero區域占視窗的 80% */
  width: 100%;
  background-color: #000; /* 如果圖片加載失敗，顯示背景顏色 */
  overflow: hidden; /* 防止內容溢出 */
}

/* Hero 圖片 */
.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* 保證背景圖覆蓋整個區域 */
  opacity: 0.7; /* 圖片透明度，避免文字不清楚 */
}

/* Hero 文字內容 */
.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* 讓文字內容垂直和水平居中 */
  text-align: center;
  color: white;
  z-index: 10; /* 確保文字在圖片之上 */
}

/* Hero 標題樣式 */
.hero-content h1 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7); /* 加入陰影效果 */
}

/* Hero 文字樣式 */
.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7); /* 文字陰影效果 */
}

/* Hero 按鈕樣式 */
.hero-content button {
  padding: 12px 24px;
  font-size: 1.2rem;
  background-color: #3182ce; /* 按鈕背景顏色 */
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-transform: uppercase; /* 按鈕文字大寫 */
}

.hero-content button:hover {
  background-color: #2b6cb0; /* 滑鼠懸停時的顏色 */
}

/* 小螢幕適配 */
@media (max-width: 768px) {
  .hero-section {
    height: 60vh; /* 小螢幕上將 Hero 區域高度設為 60% */
  }

  .hero-content {
    font-size: 1.2rem; /* 小螢幕上文字大小 */
    text-align: center; /* 讓文字置中 */
  }

  .hero-content h1 {
    font-size: 1.8rem; /* 小螢幕上標題字型大小調整 */
  }

  .hero-content p {
    font-size: 1rem; /* 小螢幕上描述文字大小調整 */
  }

  .hero-content button {
    font-size: 1rem; /* 小螢幕上按鈕文字大小 */
    padding: 12px 24px; /* 按鈕大小調整 */
  }

  /* 讓背景圖片在小螢幕上也能適當顯示 */
  .hero-image {
    height: 60vh; /* 小螢幕上設定背景圖片的高度 */
  }
}

/* ========================
   Typography Styling
   ======================== */

h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

/* ========================
   Button Effects
   ======================== */

button {
  padding: 12px 24px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #3182ce;
  cursor: pointer;
}

/* Global styles */
body {
  font-family: Arial, sans-serif;
  background-color: #f9f9f9;
  margin: 0;
  padding: 0;
}

header {
  background-color: #3182ce;
  padding: 20px;
  color: white;
  text-align: center;
}

footer {
  background-color: #111c4a;
  padding: 10px;
  text-align: center;
  color: white;
}

h1 {
  font-size: 2.5em;
}
