.main-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.main-content {
  width: 70%;
  min-height: 1000px;
}
.navnar2 {
  height: 100px;
  background-color: none;
  text-align: center;
}



/* 左菜单 开始 */
.sidebar-menu {
  width: auto;
  position: sticky;
  top: 150px;
  border-radius: 10px;
  background: #fff;
}
.category-title {
  background: #585858;
  color: #fff;
  padding: 8px 10px;
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 5px;
}
.category-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 5px;
}
.category-list li {
  padding: 5px 0px;
  padding-bottom: 0px;
  border-bottom: 1px solid #eee;
}
.category-list li a {
  color: #333;
  display: block;
  height: 30px;
  padding: 0 10px;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  line-height: 1.8;
}
.category-list li a:hover {
  color: #fff;
  background-color: #00a854;
}
.category-list li.active a {
  color: #fff;
  font-weight: bold;
  background-color: #ff6600;
}
/* 新产品开始 */
.xiang {
  display: flex;
  width: auto;
  height: 5px;
  background-color: #585858;
  margin-top: 20px;
}
.new-products {
  margin-top: 10px;
}
.new-products h4 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #333;
}
.product-item {
  display: flex;
  flex-direction: row;
  margin-bottom: 5px;
  align-items: center;
}
.product-item:hover img {
  border: 1px solid green;
  transition: all 0.3s ease;
}
.product-item:hover .product-name {
  font-size: 16px;
  color: green;
  transition: all 0.3s ease;
}
.product-item:hover .read-more {
  color: #fff;
  background-color: #00a854;
  transition: all 0.3s ease;
}
.product-item img {
  width: 80px;
  height: 80px;
  margin-right: 8px;
  border: 1px solid #ddd;
}
.product-item .product-name {
  font-size: 14px;
  color: #333;
  text-decoration: none; /*  去掉下划线 */
}
.product-item .read-more {
  font-size: 18px;
  color: #00a854;
  text-decoration: none;
}
/* 新产品结束 */

.cpxianxi {
  width: calc(100%);
  min-height: 600px;

  display: flex;
  align-items: flex-start;
}

/* 商品图片区域 - 放大镜+弹窗效果 */

/* 产品参数 开始 */

.navnar2 span {
  color: #000000;
  font-size: 16px;
  background-color: #f5a875;
}

.navnar2 span:hover {
  color: #fff;
  background-color: green;
}

.categories-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.category-item {
  background: #fff;
  padding: 5px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  text-decoration: none;
  transition: transform 0.3s ease;
}
.category-item:hover {
  transform: translateY(-10px);
}
.category-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.category-item h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #666;
}
.category-item p {
  font-size: 14px;
  color: #666;
}

/* 产品图片展示区 */

/* 右侧详细图 结束 */

@media screen and (max-width: 1400px) {
  .main-content {
    width: 100%;
    padding: 0 20px;
  }
}

@media screen and (max-width: 1200px) {
  .categories-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .header-menu {
    height: 30px;
    margin: -10px 0 0 0;
  }

  .btli {
    width: 180px;
    line-height: 30px;
  }
  .menu-width a {
    font-size: 18px;
  }
  .droplist li {
    height: 30px;
    line-height: 30px;
  }

  .droplist li a {
    font-size: 12px;
  }
}
@media screen and (max-width: 992px) {
  .header-menu {
    height: 20px;
    margin: 0 0 0 0;
  }

  .btli {
    width: 150px;
    line-height: 20px;
  }
  .menu-width a {
    font-size: 15px;
  }
}

@media screen and (max-width: 768px) {
  .sidebar-menu {
    display: none;
  }

  .category-list li a {
    height: 30px;
    padding: 0 0px;
    font-size: 14px;
    line-height: 1.8;
  }
}

@media screen and (max-width: 576px) {
  .menu-toggle {
    display: flex;
  }
  .categories-list {
    grid-template-columns: repeat(1, 1fr);
  }

  .btli {
    display: none;
  }

  .product-details {
    border-radius: 5px;
    margin-left: 5px;
  }
}
