* {
  margin: 0;
  padding: 0;
}
a {
  text-decoration: none;
  color: #000;
}
li {
  list-style: none;
}
img {
  border: none;
  vertical-align: middle;
  max-width: 100%;
  height: auto;
}
body {
  font-size: 12px;
  line-height: 1;
}
.clearfix::after {
  content: ".";
  display: block;
  clear: both;
  height: 0;
  visibility: hidden;
}
.clearfix {
  *zoom: 1;
}
.container {
  width: 100%;
  max-width: 1200px;
  height: auto;
  margin: 0 auto;
  background: #f2f2f2;
}
.nav-wrapper {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.container .nav {
  width: 100%;
  max-width: 1200px;
  height: 56px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px;
  box-sizing: border-box;
}

.container {
  width: 100%;
  height: auto;
  margin: 0 auto;
  background: #f2f2f2;
  padding-top: 56px; /* 添加与导航栏等高的内边距 */
}
.container .nav .logo {
  margin-left: 0;
}
.container .nav .logo img {
  height: 40px;
}
.container .nav ul {
  display: flex;
}
.container .nav ul li {
  margin-right: 40px;
}
.container .nav ul li:last-child {
  margin-right: 0;
}
.container .nav ul li a {
  color: #333;
  font-size: 14px;
}
.container .banner {
  width: 100%;
  height: auto;
}
.container .category {
  width: 100%;
  padding: 0 15px;
  box-sizing: border-box;
}
.container .category .title {
  width: 100%;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.container .category ul {
  display: flex;
  flex-wrap: wrap;
  box-sizing: border-box;
  padding: 0;
  gap: 20px;
  justify-content: center;
}
.container .category ul li {
  cursor: pointer;
  width: calc(25% - 15px);
}
.container .introduce {
  width: 100%;
  height: auto;
  margin-top: 40px;
  padding: 0 15px;
  box-sizing: border-box;
}
.container .bottom {
  width: 100%;
  background: #fff;
}
.font_bot {
  background: #fff;
  padding: 20px 15px;
  font-size: 14px;
  color: #333;
  text-align: center;
}

/* 为所有可能的锚点目标添加滚动偏移量 */
#banner,
#cate1,
#cate2,
#intro {
  scroll-margin-top: 76px; /* 导航栏高度 + 额外空间 */
  scroll-behavior: smooth; /* 平滑滚动效果 */
}

/* 平板端适配 */
@media screen and (max-width: 768px) {
  #banner,
  #cate1,
  #cate2,
  #intro {
    scroll-margin-top: 104px; /* 适配平板端导航栏高度 */
  }
  .container .nav {
    height: auto;
    padding: 10px 15px;
    flex-direction: column;
  }
  .container {
    padding-top: 84px; /* 调整内边距以适应更高的导航栏 */
  }
  .container .nav .logo {
    margin-bottom: 10px;
  }
  .container .nav ul li {
    margin-right: 20px;
  }
  .container .category ul li {
    width: calc(33.33% - 13.33px);
  }
}

/* 移动端适配 */
@media screen and (max-width: 480px) {
  #banner,
  #cate1,
  #cate2,
  #intro {
    scroll-margin-top: 120px; /* 适配移动端导航栏高度 */
  }
  .container {
    padding-top: 100px; /* 进一步调整内边距以适应更高的导航栏 */
  }
  .container .nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  .container .nav ul li {
    margin: 5px 10px;
  }
  .container .category .title {
    height: 60px;
  }
  .container .category ul li {
    width: calc(50% - 10px);
  }
  .container .category ul .devide {
    margin-top: 20px;
  }
}
.font_bot {
  background: #fff;
  padding: 20px 0;
  font-size: 14px;
  color: #fff;
  text-align: center;
}
