html {
  scroll-behavior: smooth;
}
a {
  color: #333;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  background-color: #fff;
}

.header {
  height: 130px;
  background-color: #f3f4f7;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 900;
   box-shadow: 0 2px 4px #333;

}
.header-header {
  height: 30px;
  background-color: #585858;
  position: fixed;
  top: 0;
  width: 100%;
}
.hdcs{
  height: 25px;
  width: auto;
  left: 200px;
  
}
.hdcs li {
  font-size: 20px;
  color: #fff;
  display: inline-block;
  align-items: center;
  left: 100px;
  justify-content: center;

}
.hdcs li img{
  height: 25px;
  width: auto;
}
.hdcs li a{
 font-size: 16px;
  color: #fff;
  display: inline;
}



.header-logo {
  height: 75px;
  width: 30%;
  background-size: cover;
  background-position: center;
  margin: 35px 0 0 30px;
  z-index: 999;
}
/* ==========下拉菜单开始========== */
.header-menu {
  height: 40px;
  background: none;
  /* 占视口宽度的70% */
  width: 80%;
  /* 固定页面位置 滚动屏幕时不动 */
  position: fixed;
  right: 0;
  margin: -20px 0 0 0;
}
/* 去掉各种不必要的格式 */
.header-menu * {
  /* 内外边距为 0  */
  margin: 0;
  padding: 0;
  /* 各种列表样式为空 */
  text-decoration: none;
  list-style: none;
}
.btli {
  /* 左浮动，让它横排 */
  float: right;
  /* 设置宽和行高 */
  width: 200px;
  line-height: 40px;
  /* 对齐方式是水平居中 */
  text-align: center;
}
.menu-width {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  height: 100%;
}
.menu-width a {
  /* 链接字体为黑色 */
  color: #000;
  /* 让它以块模式来显示 */
  display: block;
  font-size: 20px;
  font-weight: bold;
  letter-spacing: -0.5px;
}
/* 鼠标悬停时背景变色 */
.header-menu .btli a:hover {
  background: green;
  color: #fff;
  transition: all 0.3s ease;
}
/* 当激活时背景变色 */
.header-menu .btli a.active {
  background-color: #ff6600;
  color: #fff;
}
.droplist {
  /* 改变下拉列表的颜色 */
  background: #f3f4f7;
  /* 给个阴影 */
  box-shadow: 0 2px 4px #333;
  /* 让它不显示 */
  display: none;
  /* 把列表变圆角 */
  border-radius: 6px;
  /* 把超出部份隐藏 */
  overflow: hidden;
}
.droplist li a {
  /* 链接字体为黑色 */
  color: #000;
  /* 让它以块模式来显示 */
  display: block;
  font-size: 16px;
}
/* 让鼠标移上去时显示 */
.btli:hover .droplist {
  display: block;
}
.droplist li {
  line-height: 40px;
  height: 40px;
  /* 给列表中的每一个项加条线隔开 */
  border-top: 1px solid #666;
}

/* 头 样式  结束 */
.barimg {
  height: 400px;
  width: auto;
  margin-top: 130px;
  object-fit: cover; /* 保持宽高比 */
}
.barimg img {
  height: 100%;
  width: 100%;
  object-fit: cover; /* 保持宽高比 */
}


.col {
  margin-bottom: 20px;
  padding-right: 20px; /* 内右边距 等同 padding: 0 20px 0 0;   上  右  下  左 */
  /* ‌border-box 模式‌：width = 内容 + padding + border，实际宽度 = width。 */
  /* ‌content-box 模式‌：width = 内容宽度，实际宽度 = width + padding + border。 */
  box-sizing: border-box;
  
}
.navnar2 a {
  color: #000000;
  font-size: 16px;
  background-color: #f5a875;
}
.navnar2 a:hover {
  color: #fff;
  background-color: green;
}
.navnar2 h1 {
  color: #000000;
  font-size: 30px;
  font-weight: bold;
  margin: 10px;
}



/* 右侧详细图开始 */
.product-details {
  width: auto;
  border-radius: 10px;
  margin-left: 30px;
  background: #fff;
}
/* 相关产品 开始  */
.related-details {
  width: calc(100%);
  position: relative; /* 添加定位属性 必须 */
  min-height: 260px;
  padding: 5px;
  left: 25px;
}
.related-products {
  margin: 10px 0;
}
.related-products h4 {
  font-size: 18px;
  margin-bottom: 10px;
}
.related-list {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.related-item {
  width: 160px;
  background: #fff;
  text-align: center;
  margin: 5px 0;
  transition: all 0.3s ease;
}
.related-item:hover {
  transform: translateY(-10px);
}
.related-item:hover img {
  border: 2px solid green;
}
.related-item:hover p {
  color: rgb(235, 241, 235);
  font-size: 14px;
  background-color: green;
}
.related-item img {
  width: 170px;
  min-height: 170px;
  border: 1px solid #eee;
}
.related-item p {
  font-size: 15px;
  color: #333;
}
/* 相关产品 结束 */
.copyright {
  display: flex;
  justify-content: center; /* 水平居中 */
  align-items: center; /* 垂直居中 */
  font-size: 16px;
  color: #ccc;
  background-color: #585858;
  line-height: 2;
}
/* 手机端菜单开始 */
.menu-toggle {
  display: none;
  position: fixed;
  top: 40px;
  right: 20px;
  font-size: 30px;
  background: #f3f4f7;
  border: none;
  cursor: pointer;
  z-index: 9999;
  color: #333;
}
.dropdown-wrapper {
  position: relative;
}
.sjdlist {
  position: absolute;
  top: 50px;
  right: 80px;
  width: 200px;
  height: auto;
  background: #f3f4f7;
  box-shadow: 0 2px 4px #333;
  display: none;
  border-radius: 6px;
  overflow: hidden;
  list-style: none;
}
.sjdlist li a {
  color: #000;
  display: block;
  font-size: 16px;
  padding: 0 10px;
  text-decoration: none;
}
.sjdlist li {
  line-height: 30px;
  height: 30px;
  border-top: 1px solid #666;
  position: relative;
}
.sjdlist li.has-submenu {
  padding-bottom: 125px;
}
.sjdlist li ul.sub-menu {
  display: block;
  position: absolute;
  top: 30px; /* 这里的40px是父菜单项的高度 */
  left: 0;
  width: 200px;
  height: auto;
  background: #f3f4f7;
  overflow: hidden;
  list-style: none;
}
.sjdlist li ul.sub-menu li {
  line-height: 20px;
  height: 20px;
  border-top: 1px solid #666;
  position: relative;

}
.sjdlist li ul.sub-menu li a {
  font-size: 10px;
  padding: 0 0 0 30px;
}
