/* 公共样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Microsoft YaHei", "SimSun", sans-serif;
  color: #333;
  font-size: 16px;
  line-height: 1.5;
  background-color: #fff;
}

a {
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
}

ul,
li {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 15px;
}

/* 头部样式 */
.site-header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 100;
  position: sticky;
  top: 0;
  transition: box-shadow 0.3s ease;
  padding-left: 50px;
  padding-right: 50px;
}

.site-header.scrolled {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  width: 160px;
  justify-content: space-between;
}
.logo span p{
  font-size: 12px;
}
.logo .farmName{
  font-size: 22px;
}
.logo img {
  height: 70px;
  margin-right: 10px;
}

.logo h1 {
  font-size: 24px;
  color: #069d63;
  font-weight: bold;
}

.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav li {
  margin: 0; 
}

.main-nav li + li {
  margin-left: 30px;
}

.main-nav a {
  font-size: 20px;
  padding: 5px 0;
  position: relative;
}


.main-nav a:hover,
.main-nav a.active 
.main-nav li.active{
  color: #069d63;
}

.main-nav a.active:after,
.main-nav li.active > a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #069d63;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
  z-index: 110;
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #069d63;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* 页脚样式 */
.footer{
  width: 100%;
  height: 200px;
  background-color: rgb(243, 243, 243);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 100px;
  box-sizing: border-box;
}

.footer-logo{
 width: 100px;

}
.footer-info{
  line-height: 30px;
    font-size: 16px;
}

.footer-info img{
  width: 20px;
  height: 20px;
  display: inline-block;
  margin-right: 10px;
}
/* 按钮样式 */
.more-btn {
  display: inline-block;
  padding: 8px 25px;
  background-color: #069d63;
  color: #fff;
  border-radius: 20px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.more-btn:hover {
  background-color: #2c7d48;
  color: #fff;
}

/* 通用标题样式 */
.section-title {
  margin-bottom: 30px;
  text-align: center;
  position: relative;
}

.section-title h2 {
  font-size: 28px;
  color: #333;
  font-weight: 300;
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 10px;
}

.section-title h3 {
  font-size: 24px;
  color: #069d63;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.section-title h3:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: #069d63;
}

/* 通用部分 */
section {
  padding: 60px 0;
}

/* 回到顶部按钮 */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: #069d63;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 99;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: #2c7d48;
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .site-header .container {
    position: relative;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .main-nav.active {
    max-height: 300px;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 20px 0;
  }

  .main-nav li {
    margin: 0;
    text-align: center;
  }

  .main-nav a {
    display: block;
    padding: 10px 0;
  }

  .main-nav a.active:after {
    display: none;
  }

  .section-title h2 {
    font-size: 24px;
  }

  .section-title h3 {
    font-size: 20px;
  }

  section {
    padding: 40px 0;
  }

  .back-to-top {
    width: 40px;
    height: 40px;
    font-size: 20px;
    bottom: 20px;
    right: 20px;
  }

  .footer-links ul {
    flex-direction: column;
  }

  .footer-links li {
    margin: 5px 0;
  }
}
