@media (min-width: 1200px) {
    .col-custom-5 {
        flex: 0 0 20%;
        max-width: 20%;
        padding: 0 10px;
    }
}



/* 2. 缩小产品卡片 */



/* --- 产品卡片美化核心样式 --- */

/* 1. 卡片整体容器 */
.single-products-box.mini-box {
    background: #ffffff;
    border: 1px solid #f0f2f5;
    border-radius: 15px; /* 更现代的圆角 */
    padding: 20px;
    margin-bottom: 25px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03); /* 微弱的深层阴影 */
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* 悬停效果：上浮并加深阴影，边框转为品牌蓝 */
.single-products-box.mini-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(23, 113, 255, 0.1);
    border-color: #1771FF;
}

/* 2. 图片包裹区域 */
.single-products-box.mini-box .image {
    background: #fcfdfe; /* 给图片一个极浅的背景 */
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 18px;
    overflow: hidden;
}

.mini-img {
    height: 180px; /* 适当增加高度，使3列布局更饱满 */
    object-fit: contain;
    width: 100%;
    transition: transform 0.5s ease;
}

.single-products-box.mini-box:hover .mini-img {
    transform: scale(1.05); /* 鼠标移入时图片轻微放大 */
}

/* 3. 标题样式优化 */
.product-name-text {
    font-size: 16px !important;
    font-weight: 600;
    color: #333;
    line-height: 1.5;
    height: 48px; /* 固定两行高度 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
    transition: 0.3s;
}

.product-name-text:hover {
    color: #1771FF;
}

/* 4. 货号标签美化 (Badge化) */
.product-sku-info {
    margin-top: auto; /* 强制对齐到卡片底部 */
    display: inline-block;
    padding: 4px 12px;
    background: #f1f4f9;
    color: #6c757d;
    font-size: 12px;
    border-radius: 20px;
    font-family: Arial, sans-serif;
    margin-left: 2%;
}

.product-sku-info b {
    color: #444;
}

/* --- 列表模式细节微调（保持功能） --- */
#product-list-container.list-view .single-products-box {
    flex-direction: row;
    padding: 12px 25px;
    min-height: 70px;
}

#product-list-container.list-view .image {
    width: 60px;
    margin-right: 20px;
    margin-bottom: 0;
    padding: 5px;
}

#product-list-container.list-view .mini-img {
    height: 50px;
}

#product-list-container.list-view .product-name-text {
    height: auto;
    margin-bottom: 0;
}

/* 3. 左侧筛选器样式 */
/* 侧边栏容器 */
.product-filter-sidebar {
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 8px;
    padding: 20px 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* 主标题 */
.filter-main-title {
    font-size: 18px;
    color: #1771FF;
    border-bottom: 2px solid #1771FF;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-weight: bold;
}

/* 大分类分组 */
.filter-group {
    margin-bottom: 20px;
}

/* 大分类名称 */
.filter-group-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    background: #f8f9fa;
    padding: 8px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

/* 小分类列表 */
.filter-list {
    list-style: none;
    padding-left: 5px;
}

.filter-list li {
    margin-bottom: 5px;
}

.filter-list a {
    display: block;
    padding: 6px 10px;
    color: #666;
    font-size: 14px;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.filter-list a i {
    font-size: 12px;
    opacity: 0;
    transition: all 0.3s;
}

/* 激活与悬停状态 */
.filter-list a:hover {
    color: #1771FF;
    background: rgba(23, 113, 255, 0.05);
    padding-left: 15px;
}

.filter-list a:hover i,
.filter-list a.active i {
    opacity: 1;
}

.filter-list a.active {
    color: #fff !important;
    background: #1771FF !important;
    font-weight: bold;
}

/* 4. 搜索框样式调整 */
.custom-search-input {
    border-radius: 30px 0 0 30px;
    border: 1px solid #ddd;
    padding: 10px 20px;
}

.btn-search-submit {
        width: 10%;
    background: #1771FF;
    color: white;
    border: none;
    padding: 0 25px;
    border-radius: 0 30px 30px 0;
    transition: 0.3s;
}

.btn-search-submit:hover {
    background: #0056b3;
}
.page-title-area {
    text-align: center;
    background-color: #f7f8fa;
    padding-top: 80px;
    padding-bottom: 10px;
}
/* 修正页码样式，使其与原主题一致 */
.pagination-area .page-numbers {
        display: inline-block;
        min-width: 40px;
        height: 40px;
        line-height: 40px;
        padding: 0 5px;
        background: #f4f4f4;
        color: #333;
        margin: 0 3px;
        border-radius: 5px;
        font-weight: bold;
        transition: 0.3s;
        text-align: center;
        vertical-align: middle;
    }

    /* 禁用状态（第一页的上一页，最后一页的下一页） */
    .pagination-area .page-numbers.disabled {
        background: #eee;
        color: #ccc;
        cursor: not-allowed;
    }

    .pagination-area .page-numbers.current {
        background: #1771FF;
        color: #fff;
    }

    .pagination-area .page-numbers:hover:not(.disabled):not(.current) {
        background: #1771FF;
        color: #fff;
    }

    /* 跳转框样式 */
    .pagination-jump input::-webkit-inner-spin-button {
        display: none; /* 隐藏数字增减箭头 */
    }

    .pagination-jump input:focus {
        outline: none;
        border-color: #1771FF;
    }


    /* --- 列表模式切换样式 --- */

/* 当容器拥有 list-view 类时，修改子列的宽度 */
#product-list-container.list-view .js-product-item {
    flex: 0 0 100%;
    max-width: 100%;
}

/* 列表模式下的卡片排列 */
#product-list-container.list-view .single-products-box {
    display: flex;
    align-items: center;
    text-align: left;
    padding: 15px;
    border: 1px solid #eee;
}

#product-list-container.list-view .single-products-box .image {
    width: 150px;
    margin-bottom: 0;
    margin-right: 20px;
}

#product-list-container.list-view .single-products-box .content {
    flex: 1;
}

/* 列表模式下显示隐藏的元素 */
#product-list-container.list-view .product-description,
#product-list-container.list-view .list-action {
    display: block !important;
    margin-top: 10px;
}

#product-list-container.list-view .product-name-text {
    font-size: 18px;
    color: #1771FF;
}

/* 按钮状态切换 */
.btn-group .btn-outline-primary {
    border-color: #1771FF;
    color: #1771FF;
}
.btn-group .btn-outline-primary.active {
    background-color: #1771FF;
    color: #fff;
}

/* 列表视图模式下的布局调整 */



/* 1. 容器整行化与高度压缩 */
#product-list-container.list-view .js-product-item {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    margin-bottom: 5px !important; /* 极小行间距 */
}

#product-list-container.list-view .single-products-box {
    display: flex;
    flex-direction: row; /* 强制横向 */
    align-items: center; /* 垂直居中 */
    padding: 5px 15px; /* 极小内边距，实现高度缩小50% */
    min-height: 50px;
    border: 1px solid #eee;
}

/* 2. 图片极小化 */
#product-list-container.list-view .image {
    width: 50px; /* 缩小图片宽度 */
    margin-bottom: 0;
    margin-right: 20px;
    flex-shrink: 0;
}

#product-list-container.list-view .mini-img {
    height: 40px; /* 高度同步缩小 */
    width: auto;
}

/* 3. 内容区布局：名称与信息栏横向排列 */
#product-list-container.list-view .content {
    display: flex;
    flex: 1;
    align-items: center;
    overflow: hidden;
}

/* 4. 产品名称占位 */
#product-list-container.list-view .mini-content h3 {
    flex: 0 0 20%; /* 名称占据 20% 宽度 */
    margin: 0;
    text-align: left;
    font-size: 14px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    height: auto;
}

/* 5. 信息栏横向排列 (d-none 在 list-view 下会被 JS 或 CSS 开启) */
#product-list-container.list-view .product-list-info {
    display: flex !important; /* 开启 flex 布局 */
    flex: 1; /* 占据剩余所有空间 */
    align-items: center;
    margin-left: 20px;
}

/* 每个信息项的分配 */
#product-list-container.list-view .info-item {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /*padding-right: 15px;*/
    margin-left: 15%;
}

.item-sn { flex: 0 0 15%; }  /* 货号宽度 */
.item-cat { flex: 0 0 15%; } /* 分类宽度 */
.item-desc { flex: 1; color: #999;margin-left: 1% } /* 介绍占据剩下所有空间 */

/* 响应式：手机端如果太挤，可以隐藏介绍 */
@media (max-width: 768px) {
    .item-desc {
        display: none;
    }
}


/* --- 新增：水平分类导航样式 --- */
.category-horizontal-wrapper {
    background: #fff;
    padding: 20px;
    border: 1px solid #ebebeb;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    /*margin-bottom: 20px;*/
}

.category-row {
    border-bottom: 1px dashed #eee;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.category-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.category-label {
    min-width: 100px;
    color: #333;
    font-size: 15px;
    padding-top: 5px;
}

.category-tags-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-tags-list li {
    margin-right: 10px;
    margin-bottom: 8px;
}

.category-tag-item {
    display: inline-block;
    padding: 4px 15px;
    background: #f8f9fa;
    color: #666;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.category-tag-item:hover {
    color: #1771FF;
    background: rgba(23, 113, 255, 0.05);
}

.category-tag-item.active {
    background: #1771FF;
    color: #fff !important;
    font-weight: bold;
}

/* 调整原有的产品展示区内边距 */
.pt-50 {
    padding-top: 20px !important; /* 减少间距，因为上方已经有了导航条 */
}

/* 适配移动端 */
@media (max-width: 768px) {
    .category-row {
        flex-direction: column;
    }
    .category-label {
        margin-bottom: 8px;
    }
}


/* 1. 产品卡片美化 */
.single-products-box.mini-box {
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 12px; /* 圆角增强 */
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease-in-out;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.single-products-box.mini-box:hover {
    transform: translateY(-8px); /* 悬浮动画 */
    box-shadow: 0 12px 24px rgba(23, 113, 255, 0.12);
    border-color: #1771FF;
}

.mini-img {
    height: 180px; /* 3列布局图片适当放大 */
    object-fit: contain;
    width: 100%;
    margin-bottom: 15px;
    border-radius: 8px;
}

.product-name-text {
    font-size: 16px !important;
    font-weight: 600;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 最多显示两行标题 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 44px; /* 固定高度确保对齐 */
    line-height: 1.4;
    transition: 0.3s;
}

.product-name-text:hover {
    color: #1771FF;
}

.product-meta-info {
    margin-top: 10px;
    font-size: 13px;
    color: #888;
}


/* 列表表头样式 */
.product-list-header {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    padding: 12px 25px;
    border-radius: 8px 8px 0 0;
    border: 1px solid #eee;
    border-bottom: none;
    margin-bottom: 0;
    font-weight: bold;
    color: #333;
}

/* 这里的 flex 比例必须与列表项 (.info-item) 的比例完全一致 */
.header-item {
    font-size: 14px;
}

.header-item.item-img { width: 60px; margin-right: 25px; flex-shrink: 0; text-align: center; }
.header-item.item-name { flex: 0 0 20%; } /* 与列表模式下名称占比一致 */
.header-item.item-sn { flex: 0 0 15%; margin-left: 20px; }
.header-item.item-cat { flex: 0 0 15%; }
.header-item.item-desc { flex: 1; }

/* 响应式：手机端隐藏表头 */
@media (max-width: 768px) {
    .product-list-header {
        display: none !important;
    }
}

/* 修正列表模式下的圆角，让表头和第一项衔接更好 */
#product-list-container.list-view .js-product-item:first-child .single-products-box {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}



#dataheadname{
    margin-left: 7%;
}
.info-item item-cat{
     margin-left: 7%;
}
