/* Reset & 基礎設定 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans TC', sans-serif;
  background-color: #fdfcf8;
  color: #333;
  scroll-behavior: smooth;
  line-height: 1.8;
}

/* 標題字型 */
h1, h2, h3 {
  font-family: 'Cinzel', serif;
  color: #3b2f2f;
}

h1 {
  font-size: 3em;
  margin-bottom: 20px;
}

h2 {
  font-size: 2.2em;
  margin-bottom: 20px;
}

p {
  font-size: 1.1em;
  margin-bottom: 20px;
}

/* 首頁橫幅區塊 */
.hero-section {
  height: 80vh;
  background-image: url('/static/images/bazi-hero.jpg'); /* 請替換為你的背景圖 */
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 20px;
}

.hero-content p {
  font-size: 1.2em;
}

/* CTA 按鈕 */
.cta-button {
  display: inline-block;
  padding: 14px 32px;
  background-color: #d4a373;
  color: white;
  font-weight: bold;
  font-size: 1em;
  border-radius: 8px;
  transition: background 0.3s ease;
  margin-top: 20px;
}

.cta-button:hover {
  background-color: #b97c4b;
}

/* 區塊樣式 */
.section {
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(to bottom, #fdfcf8, #fff);
}

.section p {
  max-width: 700px;
  margin: 0 auto 40px;
}

/* 優勢項目 */
.benefit-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.benefit-item {
  background: #fff8f0;
  border: 1px solid #e0c9a6;
  padding: 20px;
  border-radius: 10px;
  width: 250px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  font-size: 1em;
}

/* 響應式設計 */
@media (max-width: 768px) {
  h1 {
    font-size: 2.2em;
  }

  h2 {
    font-size: 1.8em;
  }

  .hero-content p {
    font-size: 1em;
  }

  .cta-button {
    padding: 12px 24px;
    font-size: 0.95em;
  }

  .benefit-item {
    width: 90%;
  }
}
