/* CSS Document */
html {
  /* 當跳轉到錨點時，視窗頂部會自動預留這個高度 */
  scroll-padding-top: 80px; 
  scroll-behavior: smooth; /* 順便加入平滑捲動效果，體驗更好 */
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box; /* 確保寬度計算包含內距與邊框 */
}

body {
  margin: 0;
  padding: 0;
}
<style>

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
    }

    body {
      background: #f6f8f3;
      color: #243428;
      line-height: 1.7;
    }

    header {
      position: fixed;
      top: 0;
      width: 100%;
      z-index: 1000;
	  background-color: rgba(238, 190, 72, 0.8);
      backdrop-filter: blur(10px);
      box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    }

    .nav {
      max-width: 1180px;
      margin: auto;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 16px 24px;

    }

    .logo {
      font-size: 24px;
      font-weight: 800;
      color: #1f5d3a;
      letter-spacing: 1px;
    }

    .logo span {
      color: #b38b2d;
      font-size: 15px;
      margin-left: 8px;
    }

    nav a {
      margin-left: 24px;
      color: #243428;
      text-decoration: none;
      font-weight: 600;
      font-size: 15px;
    }

    nav a:hover {
      color: #1f7a46;
    }

    .hero {
      min-height: 92vh;
      background: linear-gradient(rgba(15,43,28,0.58), rgba(15,43,28,0.5)),
        url('../images/header.jpg') center/cover;
      display: flex;
      align-items: center;
      color: white;
      padding: 120px 24px 80px;
	  max-width:100%;
    }

    .hero-content {
      max-width: 1180px;
      margin: auto;
      width: 100%;
    }

    .hero h1 {
      font-size: clamp(38px, 6vw, 72px);
      line-height: 1.15;
      margin-bottom: 24px;
      font-weight: 900;
    }

    .hero p {
      max-width: 680px;
      font-size: 20px;
      margin-bottom: 32px;
    }

    .btn-group {
      display: flex;
      gap: 16px;
      flex-wrap: wrap;
    }

    .btn {
      padding: 13px 28px;
      border-radius: 999px;
      text-decoration: none;
      font-weight: 700;
      display: inline-block;
      transition: 0.25s;
    }

    .btn-primary {
      background: #d8a832;
      color: #1c2d1f;
    }

    .btn-secondary {
      border: 1px solid rgba(255,255,255,0.75);
      color: white;
    }

    .btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 20px rgba(0,0,0,0.18);
    }

    section {
      max-width: 1180px;
      margin: auto;
      padding: 86px 24px;
    }

    .section-title {
      text-align: center;
      margin-bottom: 48px;
    }

    .section-title h2 {
      font-size: 36px;
      color: #1f5d3a;
      margin-bottom: 12px;
    }

    .section-title p {
      color: #667060;
      font-size: 18px;
    }

    .cards {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 24px;
    }

    .card {
      background: white;
      padding: 30px;
      border-radius: 22px;
      box-shadow: 0 12px 32px rgba(30,60,40,0.08);
      border: 1px solid rgba(31,93,58,0.08);
    }

    .card h3 {
      color: #1f5d3a;
      font-size: 22px;
      margin-bottom: 12px;
    }

    .card .icon {
      font-size: 38px;
      margin-bottom: 12px;
    }

    .split {
      display: grid;
      grid-template-columns: 1.05fr 0.95fr;
      gap: 42px;
      align-items: center;
    }

    .split img {
      width: 100%;
      border-radius: 28px;
      box-shadow: 0 18px 42px rgba(0,0,0,0.15);
    }

    .split h2 {
      color: #1f5d3a;
      font-size: 36px;
      margin-bottom: 18px;
    }

    .highlight {
      background: linear-gradient(135deg, #143b28, #2f6e45);
      max-width: none;
      color: white;
      text-align: center;
      padding: 86px 24px;
    }

    .highlight-inner {
      max-width: 980px;
      margin: auto;
    }

    .highlight h2 {
      font-size: 38px;
      margin-bottom: 20px;
    }

    .highlight p {
      font-size: 19px;
      margin-bottom: 30px;
    }

    .process {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 18px;
    }

    .step {
      background: #eef3e8;
      border-radius: 18px;
      padding: 24px;
      text-align: center;
      font-weight: 700;
      color: #1f5d3a;
    }

    footer {
      background: #14251a;
      color: #dfe8dc;
      padding: 48px 24px;
      text-align: center;
    }

    footer h3 {
      font-size: 26px;
      color: white;
      margin-bottom: 12px;
    }

    @media (max-width: 768px) {
      nav {
        display: none;
      }
      .split {
        grid-template-columns: 1fr;
      }
      .hero p {
        font-size: 18px;
      }
      .video-cards-grid .card {
        flex: 1 1 100%;             /* 手機尺寸時改為一列 1 個 */
        max-width: 100%;
      }
    
    }
	
	/* =========================
   漢堡按鈕
========================= */

.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: #000;
}

/* =========================
   側邊選單
========================= */

.sidebar {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: #1f3b2d;
  z-index: 2000;
  transition: 0.35s ease;
  padding: 24px;
  box-sizing: border-box;
}

.sidebar.active {
  right: 0;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  color: white;
}

.close-btn {
  font-size: 2rem;
  cursor: pointer;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sidebar-nav a {
  color: white;
  text-decoration: none;
  font-size: 1.05rem;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: 0.3s;
}

.sidebar-nav a:hover {
  color: #cde7b0;
  padding-left: 8px;
}

/* =========================
   背景遮罩
========================= */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 1500;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* =========================
   RWD
========================= */

@media (max-width: 992px) {

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    justify-content: space-between;
    align-items: center;
  }
.video-cards-grid .card {
        flex: 1 1 calc(50% - 20px); /* 平板尺寸時改為一列 2 個 */
        max-width: calc(50% - 10px);
      }
}
.berry-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.berry-icon::before,
.berry-icon::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: #4d6fb3;
  box-shadow: inset -4px -5px 0 rgba(0,0,0,0.12);
}

.berry-icon::before {
  width: 32px;
  height: 32px;
  left: 2px;
  bottom: 0;
}

.berry-icon::after {
  width: 34px;
  height: 34px;
  right: 0;
  top: 4px;
  background: #355a9f;
}

.berry-leaf {
  position: absolute;
  width: 18px;
  height: 10px;
  left: 15px;
  top: 0;
  background: #5f8f3c;
  border-radius: 18px 18px 0 18px;
  transform: rotate(-20deg);
  z-index: 2;
}

/* --- 新增：影像專區專用四欄網格排版 --- */
.video-cards-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;            /* 卡片與卡片之間的間距 */
  justify-content: flex-start; /* 🌟 關鍵：不管有幾個項目，一律從左邊開始依序排列 */
  max-width: 1200px;    /* 限制影像專區最大整體總寬度 */
  margin: 0 auto;       /* 整個區塊在網頁正中央 */
  padding: 20px;
}

/* 影像專區內的卡片寬度控制 */
.video-cards-grid .card {
  background: #ffffff;
  border-radius: 20px;
  padding: 30px 24px;
  text-align: left;     /* 卡片內部文字全面靠左 */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* 輕微柔和陰影 */
  
  /* 🌟 核心寬度計算：固定一列最多 4 個 (25%)，且不強行放大撐滿 */
  flex: 0 1 calc(25% - 15px); 
  max-width: calc(25% - 15px);
  min-width: 250px;     /* 限制最小寬度，行動裝置時防止擠壓變形 */
  box-sizing: border-box;
}

/* 調整影像專區卡片內圖標的間距與大小 */
.video-cards-grid .card .icon {
  font-size: 40px;
  margin-bottom: 15px;
  display: block;
  text-align: left;     /* 圖標（Emoji）靠左 */
}

/* 調整標題間距 */
.video-cards-grid .card h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 22px;
  color: #1b4332;       /* 搭配農場綠色 */
  text-align: left;     /* 標題靠左 */
}

/* 調整內文段落樣式 */
.video-cards-grid .card p {
  font-size: 15px;
  color: #555555;
  line-height: 1.6;
  margin: 0;
  text-align: left;     /* 內文說明靠左 */
}	
	
  </style>
