﻿.products-main{
  padding: 40px 0 70px;
  width: 94%;
  margin: 0 auto;
}

.products-layout{
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

/* 左侧 */
.products-aside{
  width: 230px;
  flex: 0 0 230px;
  position: sticky;
  top: 90px;
}

.products-aside-box{
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  padding: 20px 16px;
  box-shadow: 0 10px 24px rgba(0,0,0,.05);
}

.products-aside-title{
  font-size: 1.15rem;
  font-weight: 900;
  color: #111827;
  line-height: 24px;
  margin-bottom: 16px;
  padding-left: 12px;
  position: relative;
}

.products-aside-title:before{
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 4px;
  height: 18px;
  border-radius: 4px;
  background: #3879bd;
}

.goods-sub_menu{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.goods-menu-item{
  width: 100%;
}

/* 一级分类头部 */
.goods-menu-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  border-radius: 12px;
  background: #f7f7f7;
  border: 1px solid transparent;
  transition: all .25s ease;
  overflow: hidden;
}

.goods-menu-head:hover{
  background: #f1f7fd;
  border-color: rgba(56,121,189,.18);
  transform: translateX(4px);
}

/* 一级分类文字链接 */
.goods-menu-link{
  flex: 1;
  min-width: 0;
  display: block;
  padding: 12px 8px 12px 14px;
  color: #111827;
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 22px;
  transition: all .25s ease;
}

.goods-menu-link span{
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.goods-menu-head:hover .goods-menu-link{
  color: #3879bd;
}

/* 有二级分类时的展开按钮 */
.goods-menu-toggle{
  width: 38px;
  height: 42px;
  flex: 0 0 38px;
  border: 0;
  outline: none;
  background: transparent;
  cursor: pointer;
  color: #9ca3af;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .25s ease;
}

.goods-menu-toggle i{
  transition: transform .25s ease;
}

.goods-menu-toggle:hover{
  color: #3879bd;
  background: rgba(56,121,189,.08);
}

/* 没有二级分类时的右箭头 */
.goods-menu-nochild{
  width: 38px;
  height: 42px;
  flex: 0 0 38px;
  color: #9ca3af;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 当前一级选中 */
.goods-menu-item.is-active > .goods-menu-head{
  background: #3879bd;
  color: #fff;
  border-color: #3879bd;
  box-shadow: 0 10px 22px rgba(56,121,189,.20);
}

.goods-menu-item.is-active > .goods-menu-head .goods-menu-link{
  color: #fff;
}

.goods-menu-item.is-active > .goods-menu-head .goods-menu-toggle,
.goods-menu-item.is-active > .goods-menu-head .goods-menu-nochild{
  color: #fff;
}

.goods-menu-item.is-active > .goods-menu-head .goods-menu-toggle:hover{
  background: rgba(255,255,255,.16);
  color: #fff;
}

/* 展开状态箭头旋转 */
.goods-menu-item.is-open > .goods-menu-head .goods-menu-toggle i{
  transform: rotate(180deg);
}

/* 二级分类 */
.goods-sub-two{
  display: none;
  margin: 8px 0 2px 0;
  padding: 8px 0 8px 14px;
  border-left: 2px solid rgba(56,121,189,.18);
  flex-direction: column;
  gap: 6px;
}

.goods-sub-two a{
  display: block;
  padding: 8px 12px 8px 18px;
  border-radius: 10px;
  color: #4b5563;
  font-size: 0.9rem;
  line-height: 20px;
  text-decoration: none;
  position: relative;
  transition: all .25s ease;
}

.goods-sub-two a:before{
  content: "";
  position: absolute;
  left: 7px;
  top: 17px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #9ca3af;
  transition: all .25s ease;
}

.goods-sub-two a:hover{
  background: #f1f7fd;
  color: #3879bd;
  padding-left: 22px;
}

.goods-sub-two a:hover:before{
  background: #3879bd;
}

.goods-sub-two a.active{
  background: rgba(56,121,189,.10);
  color: #3879bd;
  font-weight: 700;
}

.goods-sub-two a.active:before{
  background: #3879bd;
}

/* 兼容原来的 active */
.goods-sub_menu > a.active{
  background: #3879bd;
  color: #fff;
}



/* 右侧 */
.products-body{
  flex: 1;
  min-width: 0;
}

.products-main .page-box{
  margin: 30px 0 0;
}

/* 顶部：显示数量 */
.ABMenu{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f1f7fd 100%);
  box-shadow: 0 10px 22px rgba(0,0,0,.06);
  margin: 0 0 16px;
}
.ABMenu i{
  color: #3879bd;
  font-size: 16px;
}
.ABMenu b{
  font-weight: 800;
  color: #111827;
}
.ABMenu select{
  height: 34px;
  border: 1px solid rgba(0,0,0,.14);
  border-radius: 10px;
  padding: 0 10px;
  outline: none;
  background: #fff;
}
.ABMenu select:focus{
  border-color: rgba(56,121,189,.55);
  box-shadow: 0 0 0 3px rgba(56,121,189,.12);
}

/* 内容容器 */
.goodsContain{
  width: 100%;
}

.inbg{
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  overflow: hidden;
}

/* 顶部排序条 */
.goodsListTop{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px;
  border-bottom: 1px solid rgba(0,0,0,.08);
  background: #ffffff;
}

.goodsListTopR{
  margin-left: auto;
  color: #6b7280;
  font-size: .92rem;
}

.goodsListTop .sort-item{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  background: #fafafa;
  color: #111827;
  text-decoration: none;
  font-weight: 700;
  transition: all .2s ease;
}
.goodsListTop .sort-item:hover{
  border-color: rgba(56,121,189,.38);
  color: #3879bd;
  background: #f1f7fd;
}
.goodsListTop .sort-item.active{
  border-color: rgba(56,121,189,.55);
  background: #3879bd;
  color: #fff;
}

/* 第二行筛选条 */
.goodsListTop2{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  padding: 14px 14px;
  border-bottom: 1px solid rgba(0,0,0,.08);
  background: #f1f7fd;
}
.goodsListTop2 b{
  color: #111827;
  font-weight: 800;
}
.goodsListTop2 .fr{
  margin-left: auto;
  color: #111827;
  font-weight: 800;
}

.stock-wrap{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #111827;
}

/* 输入框统一风格 */
.Ginput1, .Ginput2{
  height: 36px;
  border: 1px solid rgba(0,0,0,.14);
  border-radius: 10px;
  padding: 0 12px;
  outline: none;
  background: #fff;
}
.Ginput1{ min-width: 220px; }
.Ginput2{
  width: 90px;
  text-align: center;
}
.Ginput1:focus, .Ginput2:focus{
  border-color: rgba(56,121,189,.55);
  box-shadow: 0 0 0 3px rgba(56,121,189,.12);
}

/* 搜索按钮 */
.GSub1{
  height: 36px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid rgba(56,121,189,.55);
  background: #3879bd;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: opacity .18s ease, transform .18s ease;
}
.GSub1:hover{
  opacity: .92;
  transform: translateY(-1px);
}

/* 现货 checkbox */
.Gch1{
  width: 16px;
  height: 16px;
  accent-color: #3879bd;
  transform: translateY(1px);
}

/* 表格区域 */
.goodsList{
  padding: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.goodsList table{
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
}

.goodsList .firTr{
  background: #e8f2fb !important;
  color: #111827 !important;
  height: 54px !important;
  text-align: center;
}
.goodsList .firTr td{
  border-bottom: 1px solid rgba(0,0,0,.10);
  padding: 10px 10px;
  vertical-align: middle;
}
.goodsList .firTr td i{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-weight: 800;
  color: #111827;
  line-height: 20px;
}

.goodsList .select-w{
  margin-top: 8px;
}
.goodsList .select-w select{
  width: 100%;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.14);
  padding: 0 10px;
  background: #fff;
  outline: none;
}
.goodsList .select-w select:focus{
  border-color: rgba(56,121,189,.55);
  box-shadow: 0 0 0 3px rgba(56,121,189,.12);
}

/* 第一列“重置全部” */
.firTd{
  position: relative;
}
.clear-btn{
  margin-top: 8px;
}
.clear-btn span{
  display: inline-block;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(56,121,189,.12);
  color: #3879bd;
  font-weight: 800;
  border: 1px solid rgba(56,121,189,.20);
}

/* tbody 行样式 */
#tableContent tr{
  transition: background .15s ease;
}
#tableContent td{
  padding: 12px 10px;
  border-bottom: 1px solid rgba(0,0,0,.06);
  text-align: center;
  color: #111827;
  line-height: 22px;
}
#tableContent tr:nth-child(even){
  background: #fafafa;
}
#tableContent tr:hover{
  background: #f1f7fd;
}

/* 分页 */
.page-box{
  margin-top: 24px;
}


/* 顶部工具栏：显示数量 + 型号搜索 */
.products-toolbar{
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 16px;
  flex-wrap: wrap;
}

.products-toolbar .ABMenu{
  margin: 0;
  flex: 0 0 auto;
}

.model-search-box{
  flex: 1;
  min-width: 320px;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(0,0,0,.06);
}

.model-search-box i{
  color: #3879bd;
  font-size: 16px;
  flex: 0 0 auto;
}

.model-search-box input{
  flex: 1;
  min-width: 180px;
  height: 36px;
  border: 1px solid rgba(0,0,0,.14);
  border-radius: 10px;
  padding: 0 12px;
  outline: none;
  background: #fff;
  font-size: 14px;
}

.model-search-box input:focus{
  border-color: rgba(56,121,189,.55);
  box-shadow: 0 0 0 3px rgba(56,121,189,.12);
}

.model-search-box button{
  height: 36px;
  padding: 0 16px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 800;
  transition: all .18s ease;
}

#modelSearchBtn{
  border: 1px solid rgba(56,121,189,.55);
  background: #3879bd;
  color: #fff;
}

#modelSearchBtn:hover{
  opacity: .92;
  transform: translateY(-1px);
}

#modelSearchClear{
  border: 1px solid rgba(56,121,189,.18);
  background: rgba(56,121,189,.10);
  color: #3879bd;
}

#modelSearchClear:hover{
  background: rgba(56,121,189,.16);
}

/* 简化后的产品列表信息栏 */
.goods-simple-info{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 14px 18px;
  background: #f7fbff;
  border-bottom: 1px solid rgba(0,0,0,.08);
  color: #111827;
  font-size: 14px;
  font-weight: 700;
}

.goods-page-info span,
.goods-total-info span{
  color: #3879bd;
  font-weight: 900;
}