/* 全局字体配置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "思源黑体 Bold", "Montserrat Bold", sans-serif;
}

/* 横幅 */
.product-banner {
  position: relative;
  width: 100%;
  max-width: 100vw;
  height: 400px;
  max-height: 50vh;
  overflow: hidden;
}
.product-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.banner-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #FFFFFF; /* 纯白 */
}
.banner-text h1 {
  font-size: 36px;
  font-weight: bold;
  margin: 0 0 10px;
  font-family: "Montserrat Bold", sans-serif; /* 英文用Montserrat Bold */
}
.banner-line {
  width: 100px;
  height: 2px;
  background: #FFFFFF; /* 纯白 */
  margin: 0 auto 10px;
}
.banner-text p {
  font-size: 18px;
  margin: 0;
  font-family: "思源黑体 Bold", sans-serif; /* 中文用思源黑体 Bold */
}

/* 面包屑 */
.breadcrumb {
  padding: 14px 30px;
  background: #f7f7f7;
  font-size: 14px;
  border-bottom: 1px solid #eee;
  font-family: "思源黑体 Bold", sans-serif;
}
.breadcrumb a {
  color: #000000; /* 纯黑 */
  text-decoration: none;
  cursor: pointer;
}
.breadcrumb a:hover {
  color: #00A846; /* 主色科技绿 */
}
.breadcrumb a.active {
  color: #00A846; /* 主色科技绿 */
  font-weight: bold;
}
.breadcrumb span {
  margin: 0 8px;
  color: #999;
}

/* 主布局 */
.product-layout {
  display: flex;
  max-width: 1200px;
  margin: 30px auto;
  gap: 30px;
  padding: 0 15px;
  align-items: flex-start;
}

/* 左侧边栏 */
.sidebar {
  width: 220px;
  flex-shrink: 0;
}
.sidebar-box {
  border: 1px solid #eee;
  margin-bottom: 20px;
}
.sidebar-title {
  background: #00A846; /* 主色科技绿 */
  color: #FFFFFF; /* 纯白 */
  padding: 12px 0;
  text-align: center;
  font-weight: bold;
  font-family: "思源黑体 Bold", sans-serif;
}

/* -------------------------- */
/* 全新菜单样式（与导航栏完全隔离） */
/* -------------------------- */
.custom-menu {
  width: 100%;
}
.custom-menu-item {
  width: 100%;
  border-bottom: 1px solid #eee;
}
.custom-menu-level1 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px 8px 10px;
  color: #000000; /* 纯黑 */
  cursor: pointer;
  background: #FFFFFF; /* 纯白 */
  font-size: 16px;
  font-family: "思源黑体 Bold", sans-serif;
  transition: color 0.3s ease; /* 新增：悬浮过渡 */
}
/* 新增：一级菜单悬浮变色 */
.custom-menu-level1:hover {
  color: #00A846; /* 主色科技绿 */
}
.custom-menu-level1.active {
  color: #00A846; /* 主色科技绿 */
  font-weight: bold;
}
.custom-arrow {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 1px solid #999;
  border-bottom: 1px solid #999;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}
.custom-arrow.open {
  transform: rotate(-135deg);
}
.custom-submenu {
  display: none;
  width: 100%;
  background: #FFFFFF; /* 纯白 */
}
.custom-submenu.open {
  display: block;
}
.custom-menu-level2 {
  display: block;
  padding: 8px 12px 8px 35px;
  color: #000000; /* 纯黑 */
  font-size: 14px;
  border-top: 1px solid #eee;
  cursor: pointer;
  font-family: "思源黑体 Bold", sans-serif;
  transition: color 0.3s ease; /* 新增：悬浮过渡 */
}
/* 新增：二级菜单悬浮变色 */
.custom-menu-level2:hover {
  color: #00A846; /* 主色科技绿 */
}
.custom-menu-level2.active {
  color: #00A846; /* 主色科技绿 */
  font-weight: bold;
}

/* 联系方式 */
.contact-list {
  padding: 15px 20px;
}
.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  font-size: 13px;
  font-family: "思源黑体 Bold", sans-serif;
}
.contact-item i {
  margin-right: 10px;
  color: #00A846; /* 主色科技绿 */
}
.contact-item span {
  color: #000000; /* 纯黑 */
}

/* 右侧产品列表 */
.product-main {
  flex: 1;
  margin-top: 0;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

/* 产品卡片 */
.product-card {
  border: 1px solid #eee;
  padding: 15px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 4px;
}
.product-card:hover {
  border-color: #00A846; /* 主色科技绿 */
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}
.product-card img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}
.product-card:hover img {
  transform: scale(1.03);
}

.product-name {
  font-weight: 600;
  font-size: 15px;
  color: #000000; /* 纯黑 */
  margin-bottom: 10px;
  font-family: "思源黑体 Bold", sans-serif;
}

/* 电压 电流 功率 美化样式 */
.product-specs {
  text-align: left;
  font-size: 14px;
  color: #555;
  line-height: 1.7;
  margin: 10px 0 0;
  font-family: "思源黑体 Bold", "Microsoft Yahei", "PingFang SC", sans-serif;
}
.product-specs > div {
  padding: 2px 0;
  display: flex;
  align-items: center;
}
.product-specs > div::before {
  content: "•";
  color: #00A846; /* 主色科技绿 */
  margin-right: 6px;
  font-size: 12px;
}

/* 分页 */
.pagination {
  text-align: center;
  margin-top: 30px;
  font-size: 14px;
  color: #666;
  font-family: "思源黑体 Bold", sans-serif;
}
.pagination span {
  display: inline-block;
  margin: 0 8px;
  padding: 5px 10px;
  cursor: pointer;
  border: 1px solid #eee;
  border-radius: 3px;
}
.pagination span:hover:not([style]) {
  background: #f5f5f5;
  color: #00A846; /* 主色科技绿 */
}
.product-pagination {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-family: "思源黑体 Bold", sans-serif;
}
.product-pagination button {
  padding: 6px 14px;
  border: 1px solid #ddd;
  background: #FFFFFF; /* 纯白 */
  cursor: pointer;
  font-family: "思源黑体 Bold", sans-serif;
  color: #000000; /* 纯黑 */
}
.product-pagination button:disabled {
  opacity: 0.5;
  cursor: default;
}
.product-pagination button:hover:not(:disabled) {
  color: #00A846; /* 主色科技绿 */
  border-color: #00A846;
}
.product-pagination span {
  color: #000000; /* 纯黑 */
}