.header {
  height: 130px;
}

.header img {
  height: 100%;
  max-width: 300px;
  width: 100%;
}

/* 头部导航手机端 */
@media (max-width: 768px) {
  .header {
    height: 60px;
    margin-top: 20px;
  }

  .header img {
    display: flex;
    max-width: 200px;
    padding-bottom: 10px !important;
    width: 100%;
    height: auto;
  }

  .search {
    max-width: 100% !important;
    width: calc(100% - 24px) !important;
    margin: 0 auto !important;
    padding: 0 10px !important;
    margin-top: 10px !important;
    display: flex !important;
    flex-direction: column;
    align-items: center !important;
    gap: 10px;
  }

  .baidu-search {
    justify-content: center;
    margin-bottom: 15px;
  }

  .baidu-search img {
    display: none;
  }

  form {
    display: flex;
    align-items: center;
    width: 100%;
  }

  .search input {
    flex: 4;
    min-width: 0;
    height: 45px !important;
    max-width: none !important;
    width: 100% !important;
    font-size: 14px;
    border-radius: 0;
  }

  .search button {
    flex: 1;
    height: 49px !important;
    max-width: none !important;
    width: 100% !important;
    font-size: 14px;
    border-radius: 7px;
  }
}

@media (max-width: 576px) {
  .header {
    height: 60px;
    margin-top: 20px;
  }

  .header img {
    display: flex;
    max-width: 180px;
    width: 100%;
    height: auto;
  }

  .search {
    max-width: 100% !important;
    width: calc(100% - 24px) !important;
    margin: 0 auto !important;
    padding: 0 10px !important;
    display: flex !important;
    flex-direction: column;
    align-items: center !important;
    gap: 10px;

  }

  .baidu-search {
    justify-content: center;
    margin-bottom: 15px;
  }

  .baidu-search img {
    display: none;
  }

  form {
    display: flex;
    align-items: center;
    width: 100%;
  }

  .search input {
    flex: 3;
    min-width: 0;
    height: 45px !important;
    max-width: none !important;
    width: 100% !important;
    font-size: 14px;
    border-radius: 0;
  }

  .search button {
    flex: 1;
    height: 49px !important;
    max-width: none !important;
    width: 100% !important;
    font-size: 14px;
    border-radius: 7px;
  }
}



/* 头部响应式设计 */

/* 搜索模块 */
.search {
  max-width: 765px;
  width: 100%;
  margin: 0 auto;
  padding: 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
}

.baidu-search {
  display: flex;
  align-items: center;
}

.baidu-search img {
  height: 42px;
  width: 130px;
  margin-right: 24px;
}

.search input {
  height: 48px;
  width: 400px;
  padding: 0 15px;
  margin-right: -5px;
  border: 2px solid #4e6ef2;
  border-radius: 7px 0 0 7px;
  font-size: 16px;
  outline: none;
}

.search button {
  height: 52px;
  width: 140px;
  padding: 0 20px;
  border: none;
  border-radius: 0 7px 7px 0;
  background-color: #4e6ef2;
  color: white;
  font-size: 16px;
  line-height: 17px;
  cursor: pointer;
  white-space: nowrap;
}

.search button:hover {
  background-color: #3a5ad8;
}

/* 搜索模块手机端 */




/* 第一排导航 */
.common-nav {
  display: flex;
  justify-content: center;
  height: 27px;
  width: 100%;
  line-height: 27px;
  margin-top: 20px;
  border: 1px solid rgb(222, 227, 235);
}

.common-nav a {
  text-decoration: none;
  font-size: 14px;
  color: #373737;
  text-align: center;
  width: 80px;
}

/* 第一排导航自适应 - 小屏幕 */



@media (max-width: 992px) {
  .common-nav {
    flex-wrap: wrap;
    height: auto;
    padding: 10px 0;
    justify-content: flex-start;
    align-items: center;
  }

  .common-nav a {
    width: auto;
    font-size: 14px;
    line-height: 30px;
    padding: 0 10px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .common-nav {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px 0px;
    height: auto;
    border: 1px solid rgb(222, 227, 235);
    justify-items: center;
  }

  .common-nav a {
    width: 100%;
    font-size: 14px;
    line-height: 22px;
    text-align: center;
    padding: 0;
    white-space: nowrap;
  }

  .common-nav .hidden-xs {
    display: none;
  }
}

@media (max-width: 480px) {
  .common-nav {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px 0px;
    height: auto;
    border: 1px solid rgb(222, 227, 235);
    justify-items: center;
  }

  .common-nav a {
    width: 100%;
    font-size: 13px;
    line-height: 22px;
    text-align: center;
    padding: 0;
    white-space: nowrap;
  }

  .common-nav .hidden-xs {
    display: none;
  }
}

/* 第二排导航 */
.ecommerce-nav {
  border: 1px solid rgb(222, 227, 235);
  margin-top: 15px;
  padding: 0 20px;
}

.ecommerce-nav ul li {
  float: left;
  width: 128px;
  font-size: 14px;
  letter-spacing: 1px;
  height: 29px;
  line-height: 29px;
  /* 垂直居中 */
}

.ecommerce-nav ul li a {
  color: #373737;
  background-size: 18px 18px;
  background-repeat: no-repeat;
  padding-left: 22px;
}

.ecommerce-nav .life-nav {
  margin-top: 15px;
  padding-top: 8px;
  border-top: 1px solid rgb(222, 227, 235);
}

.ecommerce-nav .life-nav li a {
  padding-left: 0;
}

/* 第二排导航自适应 */
@media screen and (max-width: 1240px) and (min-width: 1059px) {
  .ecommerce-nav ul {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
  }
}

@media screen and (max-width: 1058px) and (min-width: 991px) {
  .ecommerce-nav ul {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
  }
}


@media screen and (max-width: 992px) {
  .ecommerce-nav {
    height: auto;
    padding: 10px 15px;
    align-items: center;
  }

  .ecommerce-nav ul {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px 0;
    margin-top: 0 !important;
    width: 100%;
    justify-items: left;
    /* 靠右对齐 */
  }

  .ecommerce-nav ul li {
    float: none;
    width: auto;
    height: auto;
    line-height: 17px;
    font-size: 14px;
    padding: 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    text-align: center;
  }

  .ecommerce-nav ul li a {
    padding-left: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    height: 100%;
    background-position: left center;
    /* 图标居中对齐 */
    white-space: nowrap;
  }

  .ecommerce-nav .life-nav {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgb(222, 227, 235);
  }

  .ecommerce-nav .life-nav li a {
    padding-left: 0;
  }
}

@media screen and (max-width: 768px) {
  .ecommerce-nav ul {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px 0;
    margin-top: 0 !important;
    width: 100%;
    justify-items: left;
    /* 靠右对齐 */
  }

  .ecommerce-nav ul li a {
    width: auto;
    font-size: 14px;
    white-space: nowrap;
  }

}

@media screen and (max-width: 650px) {
  .ecommerce-nav ul {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media screen and (max-width: 576px) {

  .ecommerce-nav ul {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    /* 每行6列，均匀分布 */
    gap: 10px 0;
    margin-top: 0 !important;
    width: 100%;
  }

  .ecommerce-nav ul li {
    float: none;
    width: 100%;
    /* 占满列宽 */
    height: auto;
    line-height: 14px;
    font-size: 10px;
    padding: 6px 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    text-align: center;
    box-sizing: border-box;
  }

  .ecommerce-nav ul li a {
    padding-left: 0;
    padding-top: 43px;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background-position: top center;
    background-size: 32px 32px;
    background-repeat: no-repeat;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }


  .ecommerce-nav .life-nav {
    margin-top: 8px !important;
    padding-top: 8px;
    border-top: 1px solid rgb(222, 227, 235);
  }

  .ecommerce-nav .life-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    /* 每行6列，自动换行 */
    gap: 2px 0;
    margin-top: 8px !important;
    padding-top: 8px;
    border-top: 1px solid rgb(222, 227, 235);
    width: 100%;
  }

  .ecommerce-nav .life-nav li {
    float: none;
    width: 100%;
    height: auto;
    line-height: 14px;
    font-size: 13px;
    padding: 6px 2px;
    padding-left: 0;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    text-align: center;
    box-sizing: border-box;
  }

  .ecommerce-nav .life-nav li a {
    padding-left: 0;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background-position: top center;
    background-size: 18px 18px;
    background-repeat: no-repeat;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  /* 处理双链接的情况 */
  .ecommerce-nav ul li a+a {
    padding-top: 4px;
    /* 第二个链接不需要图标空间 */
    font-size: 14px;
    /* 字号更小 */
  }


}

/* 小手机及以下 */
@media screen and (max-width: 480px) {

  .ecommerce-nav ul {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    /* 每行6列，均匀分布 */
    gap: 10px 0;
    margin-top: 0 !important;
    width: 100%;
  }

  .ecommerce-nav ul li {
    float: none;
    width: 100%;
    /* 占满列宽 */
    height: auto;
    line-height: 14px;
    padding: 6px 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    text-align: center;
    box-sizing: border-box;
  }

  .ecommerce-nav ul li a {
    padding-left: 0;
    padding-top: 43px;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background-position: top center;
    background-size: 28px 28px;
    background-repeat: no-repeat;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  /* 处理双链接的情况 */
  .ecommerce-nav ul li a+a {
    padding-top: 4px;
    /* 第二个链接不需要图标空间 */
    font-size: 13px;
  }








  .ecommerce-nav .life-nav {
    margin-top: 8px !important;
    padding-top: 8px;
    border-top: 1px solid rgb(222, 227, 235);
  }

  .ecommerce-nav .life-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 每行6列，自动换行 */
    gap: 2px 0;
    margin-top: 8px !important;
    padding-top: 8px;
    border-top: 1px solid rgb(222, 227, 235);
    width: 100%;
  }

  .ecommerce-nav .life-nav li {
    float: none;
    width: 100%;
    height: auto;
    line-height: 14px;
    font-size: 13px;
    padding: 6px 2px;
    padding-left: 0;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    text-align: center;
    box-sizing: border-box;
  }

  .ecommerce-nav .life-nav li a {
    padding-left: 0;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background-position: top center;
    background-size: 18px 18px;
    background-repeat: no-repeat;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .ecommerce-nav .life-nav li a+a {
    padding-top: 4px;
    font-size: 13px;

  }

}

/* 第三部分导航 */
.site-nav {
  border: 1px solid rgb(222, 227, 235);
  margin-top: 15px;
  padding-left: 19px;
  padding-bottom: 5px;
}

.site-nav ul {
  height: 34px;
}

.site-nav ul li {
  float: left;
  font-size: 14px;
  letter-spacing: 1px;
  height: 29px;
  width: 104px;
  line-height: 29px;
  /* 垂直居中 */
}

.site-nav ul li a {
  color: #373737;
  padding-left: 20px;
}

.site-nav .firstnav {
  padding-left: 0;
}

@media screen and (max-width: 1240px) {
  .site-nav {
    padding: 10px 15px;
  }

  .site-nav ul {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 8px 4px;
    justify-items: start;
    /* 网格项左对齐 */
    height: auto;
    margin-top: 5px;
  }

  .site-nav ul:first-child {
    margin-top: 10px;
  }

  .site-nav ul li {
    float: none;
    width: 100%;
    height: auto;
    line-height: 18px;
    font-size: 14px;
    padding: 4px 2px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    ;
    justify-content: flex-start;
    min-height: 25px;
    text-align: left;
    box-sizing: border-box;
  }

  .site-nav ul li:first-child {
    width: 100% !important;
    min-width: auto;
    padding-right: 2px;
  }

  .site-nav ul li a {
    padding-left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .site-nav ul li:first-child a {
    font-size: 16px;
  }
}

@media screen and (max-width: 992px) {

  .site-nav ul {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
  }

}

@media screen and (max-width: 768px) {

  .site-nav ul {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
  }
}

@media screen and (max-width:650px) {

  .site-nav ul {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
  }
}

@media screen and (max-width: 576px) {
  .site-nav ul {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
  }
}

@media screen and (max-width: 480px) {
  .site-nav ul {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
  }
}

/* 第四部分导航 */
.comprehensive-nav {
  display: flex;
  margin-top: 20px;
}

.comprehensive-nav .left-nav {
  width: 748px;
  border: 1px solid rgb(222, 227, 235);
  font-size: 14px;
}

.comprehensive-nav .right-nav {
  width: 452px;
  border: 1px solid rgb(222, 227, 235);
  font-size: 14px;
  background-image: url(https://zwdaohang-1305073862.cos.ap-guangzhou.myqcloud.com/zwdaohang.jpg);
  margin-left: 10px;
}

.multi-category-nav {
  border-bottom: 1px solid rgb(222, 227, 235);
}

.multi-category-nav ul {
  display: block;
  height: 34px;
}


.top-tabs {
  height: 31px;
  line-height: 31px;
  background-color: rgb(247, 247, 247);
  margin-bottom: 6px;
}

.top-tabs ul {
  padding: 2px 15px;
}

.top-tabs ul li {
  float: left;
  color: rgb(73, 137, 73);
}

.top-tabs ul li a {
  color: rgb(73, 137, 73);
  text-decoration: none;
  padding: 0 13px;
}

.category-section {
  padding: 10px 15px;
}

.category-section ul {
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
  height: 33px;
  line-height: 33px;
}

.category-section ul li {
  text-align: center;
}

.category-section ul li:first-child {
  text-align: left;
  flex: 0 0 auto;
}

.category-section ul li:last-child {
  text-align: right;
  flex: 0 0 auto;
}

.category-section ul li a {
  color: #373737;
  text-decoration: none;
  padding: 0 12px;
}

@media screen and (max-width: 1240px) {
  .comprehensive-nav {
    height: auto;
  }

  .left-nav ul {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 8px 4px;
    justify-items: start;
    height: auto;
  }

  .left-nav ul li {
    float: none;
    width: 100%;
    height: auto;
    line-height: 18px;
    font-size: 14px;
    padding: 4px 2px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    min-height: 25px;
    text-align: left;
  }

  .left-nav ul li a {
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    height: 100%;
    font-size: 14px;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 100%;
    text-align: left;
  }

  .multi-category-nav {
    /* padding: 10px 15px; */
    height: auto;
  }

  .top-tabs {
    padding: 0;
    height: auto;
  }

  .top-tabs ul {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
  }

  .top-tabs ul li a {
    font-size: 16px;
  }

  .comprehensive-nav .left-nav {
    width: 100%;
  }

  .comprehensive-nav .right-nav {
    display: none;
  }
}

@media screen and (max-width: 768px) {
  .left-nav ul {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 8px 4px;
    justify-items: start;
    height: auto;
  }

  .top-tabs ul {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
  }

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

}

@media screen and (max-width: 650px) {
  .left-nav ul {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
  }

  .top-tabs ul {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
  }
}

@media screen and (max-width: 576px) {
  .left-nav ul {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
  }

  .top-tabs ul {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
  }
}