:root {
  --bobo-goods-list-text-size: 17px;
  --bobo-goods-list-nav-size: 16px;
  --bobo-goods-list-menu-w: 335px;
  --bobo-goods-list-p: 50px 15px 50px;
  --bobo-goods-list-breadcb-p: 30px 0;
  --bobo-goods-list-title-ld: 54px;
  
  /* 新增导航层级变量 */
  --nav-level-1-bg: #f8f9fa;
  --nav-level-2-bg: #ffffff;
  --nav-level-3-bg: #fafafa;
  --nav-border-color: #e9ecef;
  --nav-active-color: #018CEB;
  --nav-hover-bg: #e7f3ff;
}

.bobo-breadcrumb {
  padding: var(--bobo-goods-list-breadcb-p);
}

.bobo-breadcrumb span {
  color: var(--title-text-color);
  font-size: var(--bobo-goods-list-nav-size);
}

.bobo-breadcrumb span.active-nav {
  color: var(--text-color);
  margin-left: 0.3em;
}

.bobo-goods-list.main {
  padding: var(--bobo-goods-list-p);
  overflow: hidden;
}

.bobo-goods-list .main-left {
  width: var(--bobo-goods-list-menu-w);
}

/* 主标题样式 */
.bobo-goods-list .main-left .sidemenu > h2 {
  border-bottom: 2px solid var(--nav-active-color);
  height: var(--bobo-goods-list-title-ld);
  line-height: var(--bobo-goods-list-title-ld);
  position: relative;
  font-size: var(--bobo-goods-list-text-size);
  font-weight: 600;
  text-transform: uppercase;
  font-family: var(--font-family);
  background: var(--nav-level-1-bg);
  padding: 0 20px;
  margin-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.bobo-goods-list .main-left .sidemenu > h2::after {
  display: none;
  font-family: "qico";
  content: "\e727";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  line-height: 40px;
  font-size: 20px;
  text-align: center;
  transition: transform 0.3s ease;
}

.bobo-goods-list .main-left .sidemenu > h2.active::after {
  transform: rotate(45deg) scale(1.08);
}

.bobo-goods-list .sidemenu {
  margin: 0 0 25px;
  background: white;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  overflow: hidden;
}

.bobo-goods-list .sidemenu ul {
  display: block;
}

.bobo-goods-list .sidemenu > h2.active {
  font-weight: 700;
  color: var(--nav-active-color);
}

/* 一级菜单项 */
.bobo-goods-list .sidemenu > ul > li {
  border-bottom: 1px solid var(--nav-border-color);
  background: var(--nav-level-1-bg);
  transition: background-color 0.2s ease;
}

.bobo-goods-list .sidemenu > ul > li:last-child {
  border-bottom: none;
}

.bobo-goods-list .sidemenu > ul > li:hover {
  background: var(--nav-hover-bg);
}

.bobo-goods-list .sidemenu > ul > li h2 {
  line-height: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--bobo-goods-list-title-ld);
  color: var(--title-text-color);
  font-size: var(--bobo-goods-list-text-size);
  cursor: pointer;
  font-weight: 500;
  font-family: var(--font-family);
  padding: 0 20px;
  margin: 0;
  transition: all 0.2s ease;
}

.bobo-goods-list .sidemenu > ul > li h2 a {
  text-transform: capitalize;
  font-weight: 500;
  flex: 1;
}

.bobo-goods-list .sidemenu > ul > li h2 a:hover {
  color: var(--nav-active-color);
  font-weight: 600;
}

.bobo-goods-list .sidemenu > ul > li h2 span {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(1, 140, 235, 0.1);
  border-radius: 4px;
  transition: all 0.2s ease;
}

.bobo-goods-list .sidemenu > ul > li h2 span:hover {
  background: rgba(1, 140, 235, 0.2);
}

/* 二级菜单容器 */
.bobo-goods-list .sidemenu > ul > li > ul {
  display: none;
  padding: 0;
  border-top: 1px solid var(--nav-border-color);
  background: var(--nav-level-2-bg);
  margin: 0;
}

.bobo-goods-list .sidemenu > ul > li.active > ul {
  display: block;
}

/* 二级菜单项 */
.bobo-goods-list .sidemenu > ul > li > ul > li {
  border-bottom: 1px solid var(--nav-border-color);
  position: relative;
}

.bobo-goods-list .sidemenu > ul > li > ul > li:last-child {
  border-bottom: none;
}

.bobo-goods-list .sidemenu > ul > li > ul > li h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--title-text-color);
  font-size: calc(var(--bobo-goods-list-text-size) - 1px);
  cursor: pointer;
  font-weight: 400;
  font-family: var(--font-family);
  padding: 12px 20px 12px 30px;
  margin: 0;
  transition: all 0.2s ease;
  position: relative;
}

/* 二级菜单左侧指示线 */
.bobo-goods-list .sidemenu > ul > li > ul > li h3::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background: var(--text-color);
  border-radius: 50%;
  opacity: 0.6;
}

.bobo-goods-list .sidemenu > ul > li > ul > li h3 a {
  flex: 1;
  margin-left: 8px;
}

.bobo-goods-list .sidemenu > ul > li > ul > li h3 span {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(1, 140, 235, 0.08);
  border-radius: 3px;
  transition: all 0.2s ease;
}

/* 三级菜单容器 */
.bobo-goods-list .sidemenu > ul > li > ul > li > ul {
  display: none;
  padding: 12px 0;
  border-top: 1px solid var(--nav-border-color);
  background: var(--nav-level-3-bg);
  margin: 0;
}

.bobo-goods-list .sidemenu > ul > li > ul > li.active > ul {
  display: block;
}

/* 三级菜单项 */
.bobo-goods-list .sidemenu > ul > li > ul > li > ul li {
  padding: 0;
}

.bobo-goods-list .sidemenu > ul > li > ul > li > ul li a {
  display: block;
  font-size: 14px;
  line-height: 18px;
  text-transform: capitalize;
  padding: 10px 20px 10px 45px;
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
  border-left: 2px solid transparent;
}

/* 三级菜单左侧指示线 */
.bobo-goods-list .sidemenu > ul > li > ul > li > ul li a::before {
  content: '';
  position: absolute;
  left: 35px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 3px;
  background: var(--text-color);
  border-radius: 50%;
  opacity: 0.4;
}

.bobo-goods-list .sidemenu > ul > li > ul > li > ul li:not(:first-child) {
  margin-top: 0;
}

.bobo-goods-list .sidemenu > ul > li.active h2 a {
  color: var(--nav-active-color);
  font-weight: 600;
}

.bobo-goods-list .main-right {
  flex: 1;
  padding-left: 35px;
}

.bobo-goods-list .prolist ul {
  display: flex;
  flex-wrap: wrap;
  margin-left: -15px;
  margin-right: -15px;
}

.bobo-goods-list .prolist ul li {
  flex-basis: 33.33%;
  width: 33.33%;
  padding: 0 15px;
}

.bobo-goods-list .prolist ul li .pic {
  width: 100%
}

.bobo-goods-list .prolist ul li .pic img {
  width: 100%;
  transition: all 0.3s ease 0s;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.bobo-goods-list .prolist ul li h6 {
  margin-top: 15px;
  padding: 0 10px;
  text-align: center
}

.bobo-goods-list .prolist ul li h6 a {
  color: var(--title-text-color);
  font-size: var(--bobo-goods-list-text-size);
  line-height: 1.53;
  margin-bottom: 0.5em;
  overflow: hidden;
  display: block
}

.bobo-goods-list .prolist ul li .product__price {
  margin-bottom: 10px;
  text-align: center;
}

.bobo-goods-list .prolist ul li h6 a:hover {
  color: #018CEB;
}

.bobo-goods-list .prolist ul li:hover .pic img {
  transform: scale(1.05);
  -webkit-transform: scale(1.05)
}

/* 菜单高亮状态优化 */
.bobo-goods-list .sidemenu > ul > li.active > h2 > a,
.bobo-goods-list .sidemenu > ul > li > h2 > a:hover {
  color: var(--nav-active-color);
  font-weight: 600;
}

.bobo-goods-list .sidemenu > ul > li > ul > li.active > h3 > a,
.bobo-goods-list .sidemenu > ul > li > ul > li > h3 > a:hover {
  color: var(--nav-active-color);
  font-weight: 500;
}

.bobo-goods-list .sidemenu ul li.active > a,
.bobo-goods-list .sidemenu ul li > a:hover {
  color: var(--nav-active-color);
  font-weight: 500;
  border-left-color: var(--nav-active-color);
  background: var(--nav-hover-bg);
}

/* 折叠按钮旋转动画 */
.bobo-goods-list .sidemenu > ul > li.active h2 span i,
.bobo-goods-list .sidemenu > ul > li > ul > li.active h3 span i {
  transform: rotate(90deg);
  transition: transform 0.3s ease;
}

/* 移动端优化折叠区域 */
@media screen and (max-width: 992px) {
  .bobo-goods-list .main-left .sidemenu > h2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    cursor: pointer;
  }
  
  .bobo-goods-list .main-left .sidemenu > h2 a {
    flex: 1;
  }
  
  .bobo-goods-list .main-left .sidemenu > h2::after {
    display: block;
    position: static;
    margin-left: 10px;
    flex-shrink: 0;
  }
}

/* 响应式设计 */
@media screen and (max-width: 1500px) {
  :root {
    --bobo-goods-list-menu-w: 300px;
    --bobo-goods-list-text-size: 16px;
    --bobo-goods-list-nav-size: 15px;
  }
}

@media screen and (max-width: 1280px) {
  :root {
    --bobo-goods-list-menu-w: 260px;
    --bobo-goods-list-text-size: 15px;
    --bobo-goods-list-nav-size: 14px;
  }

  .bobo-goods-list .prolist ul li {
    padding: 0 12px;
  }
}

@media screen and (max-width: 1200px) {
  :root {
    --bobo-goods-list-menu-w: 220px;
  }

  .bobo-goods-list .prolist ul li {
    padding: 0 10px;
  }
}

@media screen and (max-width: 992px) {
  :root {
    --bobo-goods-list-menu-w: 200px;
    --bobo-goods-list-breadcb-p: 20px 0;
    --bobo-goods-list-title-ld: 50px;
  }

  .bobo-goods-list .prolist ul li {
    flex-basis: 50%;
    width: 50%;
    padding: 0 15px;
  }
}

@media screen and (max-width: 992px) {
  :root {
    --bobo-goods-list-menu-w: 100%;
    --bobo-goods-list-breadcb-p: 20px 0;
    --bobo-goods-list-title-ld: 45px;
  }

  .bobo-goods-list .main-right {
    padding-left: 0;
    padding-top: 20px;
  }

  .bobo-goods-list .main-left .sidemenu > h2 {
    height: var(--bobo-goods-list-title-ld);
    line-height: var(--bobo-goods-list-title-ld);
    font-size: 15px;
  }

  .bobo-goods-list .main-left .sidemenu > h2::after {
    display: block
  }

  .bobo-goods-list .sidemenu ul {
    display: none
  }

  .bobo-goods-list .sidemenu > ul > li h2 a {
    padding: 10px 50px 10px 20px
  }

  .bobo-goods-list .sidemenu > ul > li h2 {
    font-size: 15px
  }

  .bobo-goods-list .prolist ul li {
    width: 50%;
    flex-basis: 50%;
  }
}

@media screen and (max-width: 576px) {
  :root {
    --bobo-goods-list-breadcb-p: 15px;
  }

  .bobo-goods-list .sidemenu {
    margin: 0;
  }

  .bobo-goods-list .prolist ul {
    margin: 0
  }

  .bobo-goods-list .prolist ul li {
    float: none;
    width: 100%;
    margin: 0 0 15px
  }

  .bobo-goods-list .prolist ul li h6 {
    padding: 0;
    height: auto
  }
}