/* 修复：移除全局overflow-x:hidden导致的移动端点击失效，仅限制内容区而非html/body */
body {
  overflow-x: hidden;
  max-width: 100%;
}
/* 仅内容区禁止横向滚动，不影响导航/头部 */
.container-fluid, .neiye, .xqy {
  overflow-x: hidden !important;
  max-width: 100% !important;
}

/* 手机端：表格默认不滚动、完整显示 */
#CodeGoodsTable, .con table {
  width: 100% !important;
  max-width: 100% !important;
  table-layout: auto !important;
  overflow: visible !important;
  display: table !important;
  white-space: normal !important;
}

/* 表格全屏放大遮罩层 */
.table-modal {
  display: none;
  position: fixed;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  padding: 15px;
  box-sizing: border-box;
  overflow: auto !important;
  -webkit-overflow-scrolling: touch !important;
}
.table-modal-content {
  background: #fff;
  padding: 15px;
  border-radius: 6px;
  min-width: -webkit-max-content !important;
  min-width: max-content !important;
  margin: 0 auto;
  transform-origin: center center;
  transition: transform 0.15s ease;
  user-select: none;
  -webkit-user-select: none;
  will-change: transform;
}
.table-modal-close {
  position: fixed;
  top: 15px; right: 20px;
  color: #fff;
  font-size: 38px;
  cursor: pointer;
  z-index: 10000;
  background: rgba(0,0,0,0.3);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* 缩放控制按钮 */
.table-zoom-controls {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  display: flex;
  gap: 15px;
}
.table-zoom-btn {
  width: 50px;
  height: 50px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* 手机端文字浮动按钮 - 表格放大 */
.mobile-table-float-btn {
  position: fixed;
  bottom: 100px;
  right: 15px;
  background: #e4900c;
  color: #fff;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 6px;
  display: none;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  cursor: pointer;
  line-height: 1.3;
  text-align: center;
}
@media (max-width: 768px) {
  .mobile-table-float-btn {
    display: block;
  }
}

.gonglv,.brand {
    display: block;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    padding: 2px;
    width: 100%;
    float: left;
}
.gonglv li,.brand li {
    text-align: center;
    height: 35px;
    line-height: 35px;
    margin-right: 20px;
    margin-bottom: 10px;
    float: left;
    margin-right: 21px;
    margin-bottom: 21px;
    width: calc(100% / 4 - 21px);
    box-sizing: border-box;
    border: 1px solid #ddd;
}
@media only screen and (max-width: 768px) {
    .gonglv {
        width: 100%;
        margin: 0 auto;
    }
}
@media only screen and (max-width: 768px) {
    .gonglv li {
        transform: none;
        animation: none;
        width: 25% ;
    }
    .brand li{
        width: 44.4%;
    }
}
    .gonglv .active,.brand .active{
        background: #e4900c !important;
         color: #fff !important;
    }
    
/* 修复导航：移除height:100% !important冲突，确保点击热区 */
.ny_nav {
    height: auto !important;
    position: relative;
    z-index: 99999;
}
.ny_nav li a {
    background: #2e89ff !important;
    color: #fff !important;
    display: block;
    padding: 10px 15px;
    cursor: pointer;
    touch-action: manipulation;
}
.proclass {
}
.proclass a {
    background:none !important;
    width: 50% !important;
    float: left;
    padding: 2px !important;
    background: #e4900c !important;
    height: 40px !important;
    line-height:40px !important;
    color: #fff !important;
    margin-top:5px !important;
    margin-bottom: 5px !important;
    display: block;
    touch-action: manipulation;
}
.ny_nav .active {
    background: #e4900c !important;
     color: #fff !important;
}