﻿.goodsSubMenu{
  width:94%;
  margin:0 auto;
  padding:25px 0;
  display:flex;
  text-align:center;
  align-items:center;
  justify-content:center;
  flex-wrap: wrap;            /* PC：可换行 */
  gap: 8px;
}

.goodsSubMenu a{
  display:inline-block;
  padding:10px 15px;
  background:#f7f7f7;
  font-size:0.9rem;
  border-radius:3px;
  margin-right:0;            /* 用 gap 控制更稳 */
  margin-bottom:0;
  white-space: nowrap;
}

.active1{ background:#0d8c55 !important; color:#fff; }
.active1:hover{color:#fff; }

.products-main{ padding-bottom:70px; width:94%; margin:0 auto;}
.products-main .page-box{ margin:30px 0;}

/* 页面整体 */
.products-main{
  padding-bottom: 70px;
  width: 94%;
  margin: 0 auto;
}

/* 顶部：显示数量 */
.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%, #f1f8f8 100%);
  box-shadow: 0 10px 22px rgba(0,0,0,.06);
  margin: 18px 0 16px;
}
.ABMenu i{ color:#0d8c55; 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(116,167,169,.55);
  box-shadow: 0 0 0 3px rgba(116,167,169,.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(116,167,169,.38);
  color: #0d8c55;
  background: #f1f8f8;
}
.goodsListTop .sort-item.active{
  border-color: rgba(116,167,169,.55);
  background: #0d8c55;
  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: #f1f8f8;
}
.goodsListTop2 b{ color:#111827; font-weight: 800; }
.goodsListTop2 .fr{ margin-left: auto; color:#111827; font-weight: 800; }

/* 输入框统一风格 */
.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(116,167,169,.55);
  box-shadow: 0 0 0 3px rgba(116,167,169,.12);
}

/* 搜索按钮 */
.GSub1{
  height: 36px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid rgba(116,167,169,.55);
  background: #0d8c55;
  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: #0d8c55;
  transform: translateY(1px);
}

/* 外层增加横向滚动，避免字段太多挤压 */
.goodsListWrap{
  width: 100%;
  overflow-x: auto;
  padding-bottom: 8px;
}

/* 表格整体 */
.goodsList{
  min-width: 1600px; /* 列很多时建议设置一个最小宽度 */
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 24px rgba(17,24,39,0.05);
}

.goodsList table{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: auto;
}

/* 表头 */
.goodsList .firTr{
  background: linear-gradient(180deg, #edf6f6 0%, #e4f0f0 100%) !important;
  color: #111827 !important;
  text-align: center;
}

.goodsList .firTr td{
  min-width: 120px;
  padding: 12px 10px 14px;
  border-bottom: 1px solid rgba(0,0,0,.08);
  border-right: 1px solid rgba(0,0,0,.05);
  vertical-align: top;
}

.goodsList .firTr td:last-child{
  border-right: none;
}

/* 表头内部结构 */
.goodsList .th-box{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 78px;
}

/* 第一列 */
.goodsList .first-col{
  min-width: 150px;
}

.goodsList .th-first{
  justify-content: center;
}

/* 表头标题 */
.goodsList .firTr td i{
  display: flex;
    align-items: center;
  font-style: normal;
  font-weight: 700;
  font-size: 14px;
  color: #0f172a;
  line-height: 20px;
  min-height:80px;
  letter-spacing: 0.2px;
  margin-bottom: 8px;
  word-break: break-word;
}

/* Datasheet 这种单独标题 */
.goodsList .firTr td i.single-title{
  margin-top: 16px;
}

/* 下拉框区域 */
.goodsList .select-w{
  width: 100%;
  margin-top: auto;
}

.goodsList .select-w select{
  width: 100%;
  min-width: 84px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid #cfd8dc;
  padding: 0 12px;
  background: #fff;
  outline: none;
  color: #111827;
  font-size: 13px;
  transition: all .2s ease;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.03);
}

.goodsList .select-w select:hover{
  border-color: #9abfc0;
  background: #fcfefe;
}

.goodsList .select-w select:focus{
  border-color: #74a7a9;
  box-shadow: 0 0 0 3px rgba(116,167,169,.14);
}

/* 重置按钮 */
.clear-btn{
  margin-top: 0;
}

.clear-btn span{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 7px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #dff1ec 0%, #d5ede6 100%);
  color: #0d8c55;
  font-weight: 700;
  font-size: 13px;
  border: 1px solid rgba(13,140,85,.16);
  transition: all .2s ease;
  white-space: nowrap;
}

.clear-btn span:hover{
  background: linear-gradient(180deg, #d2ece5 0%, #c5e6dc 100%);
  color: #087647;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(13,140,85,.10);
}

/* tbody */
#tableContent tr{
  transition: background .15s ease;
}

#tableContent td{
  padding: 14px 10px;
  border-bottom: 1px solid rgba(0,0,0,.06);
  border-right: 1px solid rgba(0,0,0,.04);
  text-align: center;
  color: #111827;
  line-height: 22px;
  background: #fff;
}

#tableContent td:last-child{
  border-right: none;
}

#tableContent tr:nth-child(even) td{
  background: #fafcfc;
}

#tableContent tr:hover td{
  background: #f2f8f8;
}

/* 产品名称列可稍微突出 */
#tableContent td:first-child{
  font-weight: 600;
  color: #0b8a7a;
}

.goodsInfosMenu{
  padding: 28px 0 60px;
}

.goodsInfosMenu h2{
  font-size: 1.5rem;
  font-weight: 900;
  color: #111827;
  margin: 0 0 16px;
  padding-left: 12px;
  border-left: 4px solid #0d8c55;
}

.products-content-info{ padding:30px 0; }


@media (max-width: 768px) {
  .goods-menu dl{ padding:20px;}
  .goods-menu dd a{ font-size:0.8rem; padding:5px 10px; margin: 2px;}

  .goodsSubMenu{
    width: 100%;
    padding: 12px 10px;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
  }

  .goodsSubMenu::-webkit-scrollbar{ height: 0; }
  .goodsSubMenu{ scrollbar-width: none; }

  .goodsSubMenu a{
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 5px;
    font-size: 0.7rem;
  }

  .goodsSubMenu{
    position: relative;
    mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
  }

  .products-main{ width: 94%; }

  .ABMenu{
    width: 100%;
    justify-content: space-between;
  }

  .goodsListTop{
    flex-wrap: wrap;
    gap: 8px;
  }
  .goodsListTopR{ width: 100%; margin-left: 0; }

  .goodsListTop2 .fr{
    width: 100%;
    margin-left: 0;
  }
  .Ginput1{ min-width: 100%; width: 100%; }
  .Ginput2{ width: 82px; }

  .goodsList{
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .goodsList table{
    min-width: 980px;
  }

  .goodsList::-webkit-scrollbar{ height: 0; }
  .goodsList{ scrollbar-width: none; }
}
