﻿.searchTabs {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.searchTabs-nav {
    margin-bottom: 8px;
    border-radius: 4px;
    overflow: hidden;
    background: rgba(255,255,255,0.1);
}

.searchTabs-item {
    flex: 1;
    padding: 8px 0;
    text-align: center;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.searchTabs-item.active {
    background: rgba(255,255,255,0.9);
    color: #333;
    font-weight: 500;
}

.searchTabs-content .searchWrap {
    display: none;
}

.searchTabs-content .searchWrap.active {
    display: block;
}

/* 导航容器优化 */
.snav-container{display: flex;}
.snav-container .adv{width:100%;max-width:270px;margin-left:20px;}
.snav-container .adv img{width:100%;height:126px;border-radius:5px;}
.nav-container {
    display: flex;
    flex-wrap: wrap; /* 允许在小屏幕自动换行 */
    /* gap: 25px; */
    /* padding: 25px; */
    width:100%;
    max-width: 1320px;
    margin: 0 0 20px 0;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 主栏目样式调整 */
.nav-item {
    flex: 1;
     min-width: 260px;
    padding: 15px;
    border-radius: 6px;
    transition: transform 0.3s ease;
}
.nav-item:hover {
    transform: translateY(-3px);
}

/* 栏目标题优化 */
.nav-title {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 18px;
    color: #2c3e50;
    border-bottom: 2px solid #037e3a;
    padding-bottom: 8px;
    display: inline-block;
    position: relative;
}

.nav-title::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background-color: #037e3a;
    bottom: -2px;
    left: 0;
}

/* 子栏目网格调整 */
.sub-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px 15px;
}

.sub-nav.single {
    grid-template-columns: 1fr;
    width:91px;
}


/* 子栏目项优化 */
.sub-nav-item {
    padding: 10px 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sub-nav-item:hover {
    background-color: #e9f5ff;
    border-left-color: #037e3a;
    transform: translateX(3px);
}

.sub-nav-item a {
    text-decoration: none;
    color: #495057;
    font-size: 14px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sub-nav-item a:hover {
    color: #037e3a;
}

/* 响应式调整 */
@media (max-width: 992px) {
.erweima,.factory-list .left .bottom dl:nth-child(5){display: none;}
.snav-container{display: none;}
.snav-container .adv{width:100%;margin-left:0;margin-bottom:20px;display:none;}
.snav-container .adv img{width:100%;height:auto;border-radius:5px;}
    .sub-nav {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .sub-nav {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-container {
        padding: 15px;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .sub-nav {
        grid-template-columns: 1fr;
    }

    .nav-item {
        min-width: 100%;
    }
}

/* 工厂板块整体容器 */
.related-factory {
    background: var(--bg-color); /* 继承全局背景色 */
    border-radius: 10px; /* 使用全局圆角变量 */
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); /* 轻微阴影增强层次感 */
    margin-bottom:20px;
}

/* 板块标题 */
.related-factory .title {
    font-size: 18px; /* f18类字体大小 */
    color: var(--text-color); /* 全局文本色 */
    margin-bottom: 20px; /* mb20类的margin-bottom值 */
    font-weight: bold;
    display: flex;
    align-items: center;
}

.related-factory .title .uk-label-primary {
    background-color: var(--main-color); /* 使用全局主色调 */
    margin-right: 10px; /* mr10类间距 */
}

/* 工厂列表容器 */
.factory-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 工厂列表项 */
.factory-list li {
    border: 1px solid #f0f0f0;
    overflow: hidden;
    transition: all 0.3s ease; /* 过渡动画保持一致性 */
    margin-bottom:15px;
}

.factory-list li:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07); /* hover效果增强 */
}

/* 带图片的列表项布局 */
.factory-list .has-image {
    display: flex;
    flex-wrap: wrap;
}

/* 左侧内容区域 */
.factory-list .left {
    flex: 1;
    display: flex;
    min-width: 0;
    order: 1;
    padding: 15px; /* 内边距保持内容间距 */
    box-sizing: border-box; /* 确保内边距不影响宽度计算 */
}

/* 左侧图片区域 */
.factory-list .left .image {
    flex: 0 0 260px; /* 固定图片宽度 */
    margin-right: 30px; /* mr15类间距 */
}

.factory-list .left .image img {
    width: 100%;
    height: 175px;
    object-fit: cover; /* 保持图片比例 */
    border-radius:5px; /* 小圆角优化 */
}

/* 左侧文字区域 */
.factory-list .left .text {
    flex: 1;
    min-width: 0; /* 允许内容收缩 */
}

/* 公司等级与名称区域 */
.factory-list .left .xw {
    margin-bottom: 10px; /* mb10类间距 */
}

.factory-list .left .level {
    display: inline-block; /* 宽度自适应内容 */
    white-space: nowrap; /* 防止文字换行 */
    padding:5px 15px;
    font-size: 14px; /* f14类字体大小 */
    color: white; /* 灰色文本 */
    margin-bottom: 5px;
    border-radius:2px;
}

.factory-list .left .level.premium {
    background: linear-gradient(135deg, #037e3a, #056a32);
    color: white; /* 会员等级色 */
}

.factory-list .left .level.senior {
    background: linear-gradient(135deg, #ff9600, #ff6b00);
    color: white; /* 会员等级色 */
}

.factory-list .left .xw a {
    font-size: 16px; /* f16类字体大小 */
    font-weight: bold;
    color: var(--text-color);
    display: block;
    margin-top: 5px;
    transition: color 0.2s;
}

.factory-list .left .xw a:hover {
    color: var(--text-color-hover); /* 链接hover色 */
}

/* 经营范围文本 */
.factory-list .left .message {
    color: var(--text-gray);
    font-size: 14px; /* f14类字体大小 */
    line-height: 1.6; /* 行高保持一致性 */
    margin-bottom: 15px; /* mb15类间距 */
    max-height: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

/* 底部信息区域 */
.factory-list .left .bottom {
    display: flex;
    flex-wrap: wrap; /* 允许换行 */
    /* gap: 15px;  */
    color: var(--text-gray);
    font-size: 13px; /* f13类字体大小 */
}

.factory-list .left .bottom dl {
    flex: 1;
    min-width: 120px; /* 最小宽度避免过窄 */
    margin-top:0;
    margin-bottom:0;
}

.factory-list .left .bottom dt {
    font-weight: bold;
    margin-bottom: 3px;
    color: var(--text-color); /* 主文本色 */
}

/* 右侧店铺码区域 */
.factory-list .erweima {
    flex: 0 0 200px;
    background: #f9f9f9; /* 浅灰背景 */
    padding: 15px;
    text-align: center;
    border-left: 1px solid #f0f0f0; /* 左侧分隔线 */
    order: 2;
    box-sizing: border-box;
}

.factory-list .erweima .item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.factory-list .erweima .image {
    margin-bottom: 10px;
}

.factory-list .erweima .image img {
    width: 150px;
    height: 150px;
    object-fit: contain;
}

.factory-list .erweima p {
    font-size: 13px; /* f13类字体大小 */
    color: var(--text-color);
}

/* 响应式适配 - 中等屏幕 */
@media (max-width: 992px) {
    .factory-list .left {
        flex-direction: column; /* 图片在上，文字在下 */
    }

    .factory-list .left .image {
        flex: none;
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px; /* mb15类间距 */
    }

    .factory-list .left .image img {
        width: 100%;
        height: auto; /* 自适应高度 */
    }
}

/* 响应式适配 - 小屏幕 */
@media (max-width: 768px) {
    .factory-list .has-image {
        flex-direction: column;
    }

    .factory-list .erweima {
        order: 2;
        border-left: none;
        border-top: 1px solid #f0f0f0; /* 顶部分隔线 */
        flex: none;
        width: 100%;
    }

    .factory-list .left {
        order: 1;
    }
}