/* 版心 */
.wrapper {
  margin: 0 auto;
  width: 1200px;
}

/* 顶部导航栏 */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 60px;
  height: 100px;
  line-height: 100px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #fff;
  z-index: 9999;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

/* 移动端汉堡菜单按钮 */
.mobile_menu_btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.mobile_menu_btn span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #485030;
  border-radius: 3px;
  transition: all 0.3s ease;
  position: relative;
}


.mobile_menu_btn.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
  position: absolute;
}

.mobile_menu_btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile_menu_btn.active span:nth-child(3) {
  transform: rotate(-45deg);
  bottom: 9px;
  position: absolute;
}

/* 导航栏固定占位 */
.nav-placeholder {
  height: 100px;
  width: 100%;
}

.logo {
  flex: 1;
  width: 130px;
  height: 80px;
}

.logo a {
  display: block;
  width: 130px;
  height: 80px;
  background: url(../images/logo.png) no-repeat center / cover;
  font-size: 0;
}

.nav_list ul {
  display: flex;
  justify-content: center;
}

.nav_list ul li {
  margin-right: 60px;
}

.nav_list ul li a {
  height: 42px;
  padding: 10px 0;
  display: block;
  font-size: 16px;
  color: #485030;
  text-align: center;
  line-height: 22px;
}

.nav_list ul li a:hover {
  border-bottom: 2px solid #485030;
}

.nav_list ul li a.active {
  border-bottom: 2px solid #485030;
}

/* 下拉菜单样式 */
.nav_list ul li {
  position: relative;
}

.nav_list ul li.has-submenu .submenu {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 55px;
  left: 0;
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  z-index: 1000;
  min-width: 150px;
  padding: 10px 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  display: block;
}

.nav_list ul li.has-submenu:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav_list ul li.has-submenu .submenu li {
  margin: 0;
  padding: 0;
}

.nav_list ul li.has-submenu .submenu li a {
  display: block;
  padding: 8px 16px;
  height: auto;
  line-height: 1.5;
  font-size: 12px;
  color: #485030;
  text-align: left;
  border-bottom: none;
  transition: background-color 0.3s;
}

.nav_list ul li.has-submenu .submenu li a:hover {
  background-color: #f5f7f6;
  color: #485030;
}


.nav_list .has-submenu .iconfont {
  font-size: 12px;
  margin-left: 5px;
  vertical-align: middle;
}

.search {
  display: flex;
  width: 168px;
  height: 44px;
  line-height: 100px;
  border-radius: 44px;
  border: 2px solid #F4F4F4;
  background-color: #F5F7F6;
}

.search .search_icon {
  width: 24px;
  height: 24px;
  margin: auto 15px;
  border: none;
}

.search input {
  flex: 1;
  width: 0;
  background-color: #F5F7F6;
  margin: auto 0;
  padding: 0 15px 0 0;
  font-size: 16px;
  color: #333;
}

.search input::placeholder {
  color: #999;
  font-size: 16px;
}

/* 底部样式 */
.footer {
  width: 100%;
  background-color: #F5F7F6;
  padding: 40px 0 20px;
}

.footer_content {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
}

.footer_item {
  flex: 1;
  margin-right: 60px;
}

.footer_item dt {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #282B29;
}

.footer_item dl dd {
  margin-bottom: 12px;
}

.footer_item dl dd a {
  color: #6E706F;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.footer_item dl dd a:hover {
  color: #485030;
}

.footer_qrcode {
  text-align: center;
}

.footer_qrcode img {
  width: 160px;
  height: 160px;
  margin-bottom: 10px;
  background-color: #fff;
  padding: 10px;
  border-radius: 8px;
  object-fit: cover;
}

.footer_qrcode p {
  color: #6E706F;
  font-size: 14px;
}

.footer_copyright {
  border-top: 1px solid #E6EBE8;
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
  color: #6E706F;
  line-height: 1.6;
}

.footer_copyright a {
  color: #6E706F;

}

/* 响应式断点 - 大屏幕 */
@media (max-width: 1250px) {
  .wrapper {
    width: 100%;
  }

  /* 优化头部导航 */
  .nav {
    padding: 0 40px;
    height: 90px;
    line-height: 90px;
  }

  .nav-placeholder {
    height: 90px;
  }

  .nav_list ul li {
    margin-right: 40px;
  }

  .nav_list ul li a {
    font-size: 14px;
  }

  /* 优化搜索框 */
  .search {
    width: 120px;
  }

  .search .search_icon {
    width: 20px;
    height: 20px;
  }

  .search input {
    font-size: 13px;
  }

  .search input::placeholder {
    color: #999;
    font-size: 14px;
  }

  .footer {
    padding: 20px 30px;
  }

  .footer_content {
    justify-content: space-between;
  }

  .footer_item {
    margin-right: 30px;
  }

  .footer_item dt {
    font-size: 17px;
  }

  .footer_item dl dd a {
    font-size: 13px;
  }
}

/* 响应式断点 - 平板(768px-992px) */
@media (min-width: 768px) and (max-width: 992px) {

  /* 优化头部导航 */
  .nav {
    padding: 0 25px;
  }

  .nav_list ul li {
    margin-right: 25px;
  }

  .nav_list ul li a {
    font-size: 11px;
  }

  /* 优化搜索框 */
  .search {
    width: 120px;
    height: 40px;
  }

  .search .search_icon {
    width: 20px;
    height: 20px;
  }

  .search input {
    font-size: 13px;
  }

  .search input::placeholder {
    color: #999;
    font-size: 12px;
  }

  .footer_content {
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .footer_item {
    flex: 0 0 calc(33.333% - 15px);
    margin-right: 15px;
    margin-bottom: 30px;
    text-align: center;
  }

  .footer_item dt {
    font-size: 16px;
    margin-bottom: 15px;
  }

  .footer_item dl dd {
    margin-bottom: 10px;
  }

  .footer_item dl dd a {
    font-size: 13px;
  }

  .footer_qrcode {
    margin: 0 auto;
  }

  .footer_qrcode img {
    width: 180px;
    height: 180px;
  }

  .footer_qrcode p {
    font-size: 13px;
  }

  .footer_copyright {
    font-size: 11px;
  }
}

/* 响应式断点 - 移动端(<768px) */
@media (max-width: 768px) {
  .wrapper {
    width: 100%;
  }

  /* 头部导航 - 移动端 */
  .nav {
    padding: 0 20px;
    height: 80px;
    line-height: 80px;
  }

  /* 显示汉堡菜单 */
  .mobile_menu_btn {
    display: flex;
  }

  /* 隐藏默认导航 */
  .nav_list {
    position: fixed;
    top: 80px;
    left: -80%;
    width: 60%;
    height: calc(100vh - 80px);
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    z-index: 9998;
    overflow-y: auto;
  }

  /* 导航菜单打开状态 */
  .nav_list.active {
    left: 0;
  }

  /* 垂直排列导航项 */
  .nav_list ul {
    flex-direction: column;
    padding: 15px 0;
  }

  .nav_list ul li {
    margin-right: 0;
    margin-bottom: 5px;
  }

  .nav_list ul li a {
    display: block;
    padding: 15px 20px;
    text-align: left;
    height: auto;
    line-height: 1.6;
    font-size: 17px;
    border-radius: 4px;
    transition: all 0.3s ease;
  }

  .nav_list ul li a.active {
    border-bottom: none;
  }

  .nav_list ul li a:hover,
  .nav_list ul li a:focus {
    background-color: rgba(72, 80, 48, 0.05);
    padding-left: 25px;
  }

  /* 下拉菜单样式调整 */
  .nav_list ul li.has-submenu .submenu {
    position: static;
    opacity: 0;
    visibility: hidden;
    box-shadow: none;
    padding: 0 20px 0 30px;
    transform: translateY(-10px);
    background-color: transparent;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
  }

  /* 下拉菜单展开状态 */
  .nav_list ul li.has-submenu.active .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    max-height: 500px;
    padding: 10px 20px 15px 30px;
  }

  .nav_list ul li.has-submenu .submenu li a {
    padding: 10px 0 10px 15px;
    font-size: 15px;
    color: #555;
    border-left: 2px solid transparent;
    transition: all 0.3s ease;
  }

  .nav_list ul li.has-submenu .submenu li a:hover,
  .nav_list ul li.has-submenu .submenu li a:focus {
    color: #485030;
    border-left-color: #485030;
    padding-left: 20px;
    background-color: rgba(72, 80, 48, 0.05);
  }

  /* 搜索框隐藏 */
  .search {
    display: none;
  }

  /* 调整导航占位高度 */
  .nav-placeholder {
    height: 80px;
  }

  /* 调整底部布局 - 移动端 */
  .footer_content {
    flex-direction: column;
    align-items: center;
    padding: 0 10px;
  }

  .footer_item {
    display: none;
  }

  .footer_qrcode {
    margin-top: 10px;
  }

  .footer_qrcode img {
    width: 200px;
    height: 200px;
  }

  .footer_qrcode p {
    font-size: 16px;
  }


  .footer_copyright {
    padding: 15px 10px;
    font-size: 16px;
    line-height: 1.8;
    word-break: break-all;
  }
}