.list-container{max-width: 1440px;}
.filter-sidebar{background-color: #f7f7f7;position: sticky;top:60px;overflow-y: auto;padding:0px 10px 100px 10px;overflow-x: hidden;}
     .featured-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr); /* 两列等分 */
      gap: 8px; /* 列间距稍微缩小，防止溢出 */
      list-style: none;
      padding: 0;
      margin: 0;
      box-sizing: border-box; /* 防止超出父容器 */
    }

    .featured-grid li {
      text-align: center;
      border-radius: 4px;
      padding: 6px; /* 减小内边距 */
      box-sizing: border-box;
    }

    .featured-grid img {
      width: 100%;
      height: auto;
      max-height: 60px;
      object-fit: contain;
      margin-bottom: 4px;
    }

    .featured-grid span {
      display: block;
      font-size: 0.9em;
      color: #333;
      word-break: break-word;   /* 长单词或连续字符自动断行 */
      white-space: normal;      /* 允许换行 */
    }
    .fiter-selected {
      background: url('/static/icons/duihao.svg') no-repeat left center;
      padding-left: 20px !important; /* 给图标留空间 */
    }
    .filter-sidebar section{
      border-bottom: 1px solid #999;
      padding-bottom: 5px;
    }
    .filter-sidebar section:last-child {
      border-bottom: none; /* 去掉最后一个的底部边框 */
    }
    .filter-sidebar a{font-size: 0.8rem;padding-bottom: 1px;padding-left: 5px;width:100%;display: inline-block;}
    .filter-sidebar a:hover{background-color:#2563eb;color: #fff}
    .filter-sidebar h4{font-size: 0.9rem;font-weight: 400;padding:5px 0px}
    .filter-img{text-align:center;}
    .filter-img img{height: 60px;width: auto;}
    .filter-sidebar input{width: 100%;height:30px;padding:10px;border: 1px solid #999;}
    .filter-sidebar input:focus{outline: none;border:1px solid #999}
    .featured-grid a:hover {background-color: #ffffb5}
    .featured-grid a:hover span{color:#333;}
    .filter-sidebar-shao{padding:5px}
    .filter-sidebar-duo{padding:5px;max-height: 150px;overflow-y: auto;overflow-x: hidden;border:1px solid #999;border-top:none;background-color:#fff;}
    .filter-input{position: relative;}
    .filter-input span{position: absolute;top:5px;right: 5px}
    .filter-h4{position: relative;}
    .filter-h4 .filter-h4-tb{position: absolute;top:7px;right: 0px;cursor:pointer;}
    /* 分类卡片网格 */
        .category-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            gap: 25px;
        }
        
        .category-card {
            background: white;
            border-radius: 15px;
            overflow: hidden;
            transition: all 0.3s ease;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
            position: relative;
            display: flex;
            flex-direction: column;
            height: auto;
        }
        
        .category-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
        }
        
        .card-image {
            height: 120px;
            width: 80%;
            margin:0px 10%;
            object-fit: cover;
            transition: transform 0.5s;
        }
        
        .category-card:hover .card-image {
            transform: scale(1.03);
        }
        
        .card-content {
            padding: 15px 15px 10px 15px;
            display: flex;
            flex-direction: column;
            flex: 1;
            background-color: #f2f2f2;
        }
        
        .card-content h2 {
            color: #1a5f3f;
            margin-bottom: 10px;
            font-size: 14px;
            font-weight: 500;
            line-height: 1.4;
        }
        
        .card-content p {
            color: #333;
            font-size: 12px;
            font-weight: 400;
            flex: 1;
            overflow: visible;
        }

        /* 动画效果 */
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .category-card {
            animation: fadeIn 0.5s ease-out forwards;
            opacity: 0;
        }
        .category-card:nth-child(1) { animation-delay: 0.1s; }
        .category-card:nth-child(2) { animation-delay: 0.2s; }
        .category-card:nth-child(3) { animation-delay: 0.3s; }
        .category-card:nth-child(4) { animation-delay: 0.4s; }
        .category-card:nth-child(5) { animation-delay: 0.5s; }
        .category-card:nth-child(6) { animation-delay: 0.6s; }

       

        .list-content-right{display: block;width: 100%;}
        .category-overview h1{font-size: 1.2rem;font-weight: 700;}
        .product-count{font-size: 0.9rem;padding: 10px 0px;color: #72777d;}
        .product-desc{margin-bottom:10px;font-size: 0.9rem;color:#222;line-height:1.6;text-shadow: 0.02em 0 currentColor}
        #fiter-select-mb{width: 100%;height: 50px;margin-bottom: 10px;color: #333;border: 1px solid #2563eb;border-radius: 25px;font-size: 1rem;display: none;}
        .filter-close{display: none;text-align: right;padding: 10px;position:sticky;top: 0px;z-index: 301;background-color:#f7f7f7;}
        .fiter-title{padding: 5px;border-bottom: 1px solid #333;position: sticky;top:0px;background-color:#f7f7f7}
        .fiter-title .fiter-title-clear{position: absolute;right: 0px;}
        .fiter-title .fiter-title-clear a{display: inline;font-size: 1rem;}
        .fiter-title .fiter-title-clear a:hover{background-color: #f7f7f7;color: #2563eb}

        @media (max-width: 1100px) {
          .filter-sidebar{display: none}
          .list-content-right{width: 100%;}
          #fiter-select-mb{display: block;}

          .filter-sidebar{float: none;width: 100%;height: 90vh;z-index: 99;position: fixed;top:10vh;z-index: 300;padding-bottom: 150px;border-top: 4px solid #2563eb;border-top-left-radius: 15px;border-top-right-radius: 15px;box-shadow: 4 0px 20px rgba(0, 0, 0, 0.85);}
          .filter-sidebar input{height:30px;font-size: 18px}
          .filter-close{display: block;}
          .product-desc{font-size: 14px}
          .fiter-title{display: none}
        }

        .products-catalog h2 {
            margin-bottom: 10px;
            font-size: 1rem;
            font-weight: 600;
          }
          .products-catalog .table-wrap{overflow-x:auto;width: 100%;border: 1px solid #f6f6f6;border-radius:5px;margin-top:5px}
          .products-catalog .table-wrap table a{color:#1a5f3f}
          .products-catalog .table-wrap table {
            border-collapse: collapse;
            font-size: 0.75rem;
            color: #444;
            width:100%;
            
          }
          .products-catalog .table-wrap thead{
            height: 35px;
          }

          .products-catalog .table-wrap th, td {
            padding: 5px 15px 5px 5px;
            text-align: left;
            min-width: 50px;
            white-space: nowrap;       /* 不换行 */
          }

          /* PC端固定表头 */
          .products-catalog .table-wrap thead th {
            color: #222;
            font-weight: 500;
            position: sticky;
            top: 0px;
            background-color: #f2f2f2;
            z-index: 12;
          }
         /* 固定第一列（Part Number） */
        .table-wrap thead th:first-child,
        .table-wrap tbody td:first-child {
          position: sticky;
          left: 0;
          background: #f2f2f2; /* 重要：必须有背景色 */
          z-index: 11;
        }
        
        /* 表头的固定列需要更高层级 */
        .table-wrap thead th:first-child {
            position: sticky;
            top: 0px;
          z-index: 15;
          box-shadow: 2px 0 5px rgba(0,0,0,0.1);
        }
        
        /* 表格行的背景色覆盖 */
        .table-wrap tbody tr:nth-child(even) td:first-child {
          background: #f8f9fa; /* 与斑马纹匹配 */
        }
        
        .table-wrap tbody tr:nth-child(odd) td:first-child {
          background: #fff;
        }
        
        /* 悬停效果 */
        .table-wrap tbody tr:hover td:first-child {
          background: #2563eb;
        }
          .products-catalog .table-wrap tbody tr{cursor: pointer;}
          .products-catalog .table-wrap tbody tr:hover{background-color: #2563eb;color:#fff}
          .products-catalog .table-wrap tbody tr:hover a{color:#fff}

          /* 手机端卡片布局 */
          @media (max-width: 1000px) {
              .products-catalog .table-wrap{overflow:hidden;border: none;max-height:100%}
            .products-catalog .table-wrap thead {
              display: none;
            }
            .products-catalog .table-wrap table, tbody, tr, td {
              display: block;
              width: 100%;
              font-size: 14px;
            }
            .products-catalog .table-wrap tr {
              margin-bottom: 1rem;
              border: 1px solid #333;
              border-radius: 8px;
              padding: 10px;
            }
            .products-catalog .table-wrap td {
              text-align: right;
              padding-left: 50%;
              position: relative;
              border: none;
              border-bottom: 1px solid #eee;
            }
            .products-catalog .table-wrap td:last-child {
              border-bottom: 0;
            }
            .products-catalog .table-wrap td::before {
              content: attr(data-label);
              position: absolute;
              left: 12px;
              width: 45%;
              font-weight: 600;
              text-align: left;
              white-space: nowrap;
            }
            .products-catalog .table-wrap tbody tr:hover{background-color: #fff;color:#333}
            .products-catalog .table-wrap tbody tr:hover a{color:#2563eb}
          }

          .product-card {
  display: flex;
  align-items: flex-start;
  gap: 15px;

}

.product-image {
  height: 80px;
  flex-shrink: 0;
  object-fit: cover;
  border: 1px solid #f6f6f6;
  border-radius: 5px;
}

.product-info {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.product-title {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
  font-size: 1rem;
  color: #222;
}

.product-info p {
  margin: 0;
  font-size: 12px;
  color: #222;
  line-height: 1.2;
  font-weight: 400;
}


@media (max-width: 600px) {
  .product-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .product-image {
    width: 100%;
    max-width: 300px;
  }
}


.selected-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  background: #fafafa;
  border: 1px solid #f6f6f6;
  padding: 8px 12px;
  border-radius: 6px;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 10px;
}

.selected-filters .filter-title {
  font-weight: 600;
  color: #333;
  margin-right: 6px;
  white-space: nowrap;
}

.selected-filters ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.selected-filters .filter-item {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: 1px solid #ddd;
  padding: 4px 8px;
  text-decoration: none;
  color: #333;
  transition: all 0.2s ease;
}

.selected-filters .filter-item:hover {
  border-color: #0073e6;
  background: #f0f8ff;
}

.selected-filters .filter-text {
  margin-right: 6px;
}

.selected-filters .remove {
  font-weight: bold;
  color: #888;
  font-size: 14px;
  line-height: 1;
}

.selected-filters .filter-item:hover .remove {
  color: #0073e6;
}

.selected-filters .clear-all {
  margin-left: auto;
  font-size: 13px;
  color: #d00;
  text-decoration: none;
  padding: 2px 4px;
  border-radius: 4px;
  transition: background 0.2s;
}

.selected-filters .clear-all:hover {
  background: rgba(255, 0, 0, 0.08);
}

@media (max-width: 768px) {
  .selected-filters {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .selected-filters .clear-all {
    margin-left: 0;
  }
}

.product-content-container {
            line-height: 1.6;
            color: #333;
            max-width: 100%;
            margin: 0 auto;
            overflow-x: auto;
        }
 .product-content-container h2, .product-content-container h3, .product-content-container h4 {
            
            margin-top: 1.5em;
            margin-bottom: 0.5em;
        }
        .product-content-container table {
            overflow: auto;
            max-width: 100%;
            border-collapse: collapse;
            margin: 1.5em 0;
        }
        .product-content-container th, .product-content-container td {
            border: 1px solid #ddd;
            padding: 10px;
            text-align: left;
        }
        .product-content-container th {
            background-color: #f2f2f2;
            font-weight: bold;
        }


.filter-container {
    background: #fff;
    margin: 0 auto 10px;
    overflow-y: auto;
    font-size: 12px;
    border: 1px solid #e6e6e6;
    color: #333;
}



        /* 已选筛选条件区域 */
        .filter-selected {
            padding: 10px 15px;
            border-bottom: 1px solid #e6e6e6;
            background-color: #f7f7f7;
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
        }

        .selected-left {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 8px;
        }

        .selected-label {
            font-weight: bold;
            margin-right: 5px;
        }

        .selected-item {
            display: inline-flex;
            align-items: center;
            border: 1px solid #1a5f3f;
            background-color: #fff;
            color: #1a5f3f;
            padding: 2px 8px;
            font-size: 12px;
            text-decoration: none;
        }

        .selected-item .close-btn {
            margin-left: 8px;
            cursor: pointer;
            font-weight: bold;
            font-size: 14px;
        }

        .clear-all {
            color: #005aa0;
            text-decoration: none;
            cursor: pointer;
            font-size: 12px;
            margin-left: auto;
        }

        /* 筛选行样式 */
        .filter-row {
            display: flex;
            border-bottom: 1px solid #e6e6e6;
            position: relative;
        }

        .filter-row:last-child {
            border-bottom: none;
        }

        .filter-key {
            width: 145px;
            padding: 10px;
            background-color: #f7f7f7;
            flex-shrink: 0;
            display: flex;
            align-items: flex-start;
            text-transform: capitalize;
            font-family: 'Playfair Display', serif;
        }

        .filter-values-wrapper {
            flex-grow: 1;
            padding: 8px 15px;
            overflow: hidden;
        }

        .filter-values {
            display: flex;
            flex-wrap: wrap;
            gap: 10px 15px;
            max-height: 24px; /* 默认显示一行 */
            overflow: hidden;
            transition: max-height 0.3s ease;
        }

        /* 展开状态下的滚动条支持 */
        .filter-row.expanded .filter-values {
            max-height: 200px; /* 展开后的最大高度 */
            overflow-y: auto;
            padding-right: 5px;
            scrollbar-width: thin;
    transition: box-shadow 0.3s ease;
        }

        /* 美化滚动条 */
        .filter-values::-webkit-scrollbar {
            width: 6px;
        }
        .filter-values::-webkit-scrollbar-thumb {
            background-color: #ccc;
            border-radius: 3px;
        }

        .filter-value {
            text-decoration: none;
            cursor: pointer;
            white-space: nowrap;
            padding: 2px 0;
            display: inline-block;
            /*color: #1a5f3f;*/
        }
        .filter-value:hover{
            color:#0f2550;
            text-decoration: underline;
        }

        /* 搜索框样式 */
        .filter-search-box {
            margin-bottom: 10px;
            display: none;
        }

        .filter-row.expanded .filter-search-box {
            display: block;
        }

        .filter-search-box input {
            border: 1px solid #e6e6e6;
            padding: 5px 10px;
            font-size: 13px;
            width: 100%;
            max-width: 200px;
            outline: none;
            border-radius: 2px;
        }

        /* 操作按钮区域 */
        .filter-ext {
            width: 80px;
            padding: 5px;
            display: flex;
            justify-content: flex-end;
            align-items: flex-start;
            flex-shrink: 0;
        }

        .btn-more {
            border: 1px solid #e6e6e6;
            padding: 2px 8px;
            background: #fff;
            cursor: pointer;
            display: flex;
            align-items: center;
            color: #666;
            border-radius: 2px;
        }

        .btn-more::after {
            content: '∨';
            margin-left: 5px;
            font-size: 10px;
        }

        .filter-row.expanded .btn-more::after {
            content: '∧';
        }

        .hidden {
            display: none !important;
        }

        /* 移动端适配 */
        @media (max-width: 768px) {
            .filter-row {
                flex-direction: column;
            }

            .filter-key {
                width: 100%;
                padding: 8px 15px;
                background-color: #f7f7f7;
                border-bottom: 1px solid #e6e6e6;
                font-weight: bold;
            }

            .filter-values-wrapper {
                padding: 10px 15px;
            }

            .filter-ext {
                position: absolute;
                right: 0;
                top: 0;
                width: auto;
                padding: 6px 15px;
            }

            .filter-values {
                max-height: none; /* 移动端默认展开或根据需要调整 */
                overflow: visible;
            }

            .filter-row:not(.expanded) .filter-values {
                max-height: 80px; /* 移动端未展开时显示两三行 */
                overflow: hidden;
            }

            .filter-search-box input {
                max-width: 100%;
            }
        }
        
        /* 底部展开按钮 */
        .filter-footer {
            border-top: 1px solid #e6e6e6;
            background: #fff;
            text-align: center;
            padding: 8px 0;
        }
        .btn-expand-all {
            display: inline-flex;
            align-items: center;
            color: #666;
            text-decoration: none;
            font-size: 12px;
            cursor: pointer;
            padding: 4px 10px;
            border: 1px solid #e6e6e6;
            background: #fff;
            transition: all 0.2s;
        }
        /* 默认隐藏的行 */
        .filter-row.more-row { display: none; }
        .filter-container.show-all .filter-row.more-row { display: flex; }
        .btn-expand-all:hover { background: #f7f7f7; color: #005aa0; border-color: #005aa0; }
        .btn-expand-all i { margin-left: 5px; font-style: normal; transition: transform 0.3s; }
        
        .filter-container.show-all .btn-expand-all i { transform: rotate(180deg); }