/* 全局样式 */
:root {
  --primary-color: #6a8b56;
  --secondary-color: #424242;
  --background-color: #f9f9f7;
  --light-green: #e8eee5;
  --text-color: #333;
  --light-text: #777;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "PingFang TC", "Microsoft JhengHei", "微軟正黑體",
    "Helvetica Neue", Arial, sans-serif;
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
}

/* 當移動端菜單打開時禁止滾動 */
body.menu-open {
  overflow: hidden;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: color 0.3s ease;
}

a:hover {
  color: #556b45;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 導航欄 */
.header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 40px;
  z-index: 100;
  padding: 15px 0;
}

@media (max-width: 768px) {
  .header {
    top: 0;
  }
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 50px;
}

.logo-text {
  font-size: 24px;
  font-weight: 600;
  color: var(--primary-color);
  margin-left: 10px;
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-item {
  margin-left: 30px;
}

.nav-link {
  color: var(--secondary-color);
  font-weight: 500;
  font-size: 16px;
  position: relative;
}

.nav-link:after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-link:hover:after,
.nav-link.active:after {
  width: 100%;
}

/* 漢堡菜單按鈕 */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 101;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--primary-color);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* 輪播圖 */
.hero-slider {
  position: relative;
  height: 600px;
  overflow: hidden;
}

.hero-slider-inner {
  height: 100%;
  width: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.hero-content {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  color: white;
  position: relative;
  z-index: 2;
}

.hero-slider-inner:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  color: white;
}

.hero-subtitle {
  font-size: 24px;
  margin-bottom: 30px;
  max-width: 600px;
}

.hero-btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-color);
}

.hero-btn:hover {
  background-color: transparent;
  color: white;
}

/* 小輪播圖（用於內頁） */
.small-hero {
  height: 300px;
}

/* 內容區域 */
.section {
  padding: 80px 0;
}

.section-title {
  font-size: 36px;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-title:after {
  content: "";
  position: absolute;
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.feature-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-img {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.feature-content {
  padding: 20px;
}

.feature-title {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.feature-text {
  color: var(--light-text);
  margin-bottom: 15px;
}

/* 關於我們頁面 */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-img {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
}

.about-img img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.about-img:hover img {
  transform: scale(1.05);
}

.about-text {
  color: var(--text-color);
}

.about-text h3 {
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.about-text p {
  margin-bottom: 15px;
}

/* 聯絡我們頁面 */
.contact-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-info {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-info h3 {
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.contact-item {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
}

.contact-icon {
  margin-right: 15px;
  color: var(--primary-color);
  font-size: 20px;
}

.contact-text {
  flex: 1;
}

.contact-text h4 {
  margin-bottom: 5px;
}

/* 隱私政策頁面 */
.policy-content {
  background-color: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.policy-content h3 {
  font-size: 24px;
  margin: 30px 0 15px;
  color: var(--primary-color);
}

.policy-content p {
  margin-bottom: 15px;
}

.policy-content ul {
  margin-left: 20px;
  margin-bottom: 20px;
}

.policy-content li {
  margin-bottom: 10px;
}

/* 頁腳 */
.footer {
  background-color: var(--secondary-color);
  color: white;
  padding: 30px 0;
  text-align: center;
}

.footer p {
  margin-bottom: 15px;
}

.footer a {
  color: white;
  margin: 0 10px;
  position: relative;
}

.footer a:after {
  content: "";
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -3px;
  left: 0;
  background-color: white;
  transition: width 0.3s ease;
}

.footer a:hover:after {
  width: 100%;
}

/* 響應式設計 */
@media (max-width: 992px) {
  .hero-title {
    font-size: 38px;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-slider {
    height: 450px;
  }

  .small-hero {
    height: 200px;
  }

  /* 移動端導航樣式 */
  .menu-toggle {
    display: flex;
  }

  .nav-container {
    flex-wrap: wrap;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: white;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 80px;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 100;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-item {
    margin: 0;
    width: 100%;
    text-align: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
  }

  .nav-link:after {
    display: none;
  }

  .nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99;
  }

  .nav-overlay.active {
    display: block;
  }

  .section {
    padding: 50px 0;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .section-title {
    font-size: 28px;
  }
}

/* 裝飾元素 */
.decoration {
  position: absolute;
  opacity: 0.1;
  z-index: -1;
}

.decoration-leaf-1 {
  top: 10%;
  left: 5%;
  width: 150px;
  height: 150px;
  background-image: url("https://images.unsplash.com/photo-1524055988636-436cfa46e59e?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1035&q=80");
  background-size: contain;
  background-repeat: no-repeat;
}

.decoration-leaf-2 {
  bottom: 10%;
  right: 5%;
  width: 200px;
  height: 200px;
  background-image: url("https://images.unsplash.com/photo-1501004318641-b39e6451bec6?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1073&q=80");
  background-size: contain;
  background-repeat: no-repeat;
}

/* 圓點裝飾 */
.dots-decoration {
  position: absolute;
  width: 150px;
  height: 150px;
  background-image: radial-gradient(var(--primary-color) 2px, transparent 2px);
  background-size: 15px 15px;
  opacity: 0.2;
}

.dots-1 {
  top: 20%;
  right: 10%;
}

.dots-2 {
  bottom: 15%;
  left: 8%;
}
