/* 供应商筛选页面样式 */
.supplier-filter-page {
    max-width: 1366px;
    margin: 30px auto;
    min-height: 100vh;
    padding: 0;
}

/* 面包屑导航 */
.supplier-breadcrumb {
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.supplier-breadcrumb .container {
    max-width: 1366px;
    margin: 0 auto;
    padding: 0 20px;
    font-size: 14px;
}

.supplier-breadcrumb a {
    color: #0073aa;
    text-decoration: none;
    text-transform: capitalize;
}

.supplier-breadcrumb a:hover {
    text-decoration: underline;
}

.supplier-breadcrumb span {
    color: #6c757d;
}

/* 布局 */
.supplier-filter-layout {
    display: flex;
    max-width: 1366px;
    margin: 0 auto;
    gap: 30px;
}

/* 左侧筛选栏 */
.filter-sidebar {
    width: 22%;
    background: white;
    border-radius: 8px;
    padding: 20px 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.filter-section {
    margin-bottom: 25px;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-section h3 {
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
    color: #333;
    font-size: 16px!important;
    font-weight: 600;
    text-transform: capitalize;
}

.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-list li {
    margin-bottom: 8px;
    text-transform: capitalize;
}

.filter-list li:last-child {
    margin-bottom: 0;
}

.filter-list a {
    display: block;
    padding: 8px 12px;
    color: #555;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.filter-list a:hover {
    background: #f0f8ff;
    color: #0073aa;
}

.filter-list a.active {
    background: #0073aa;
    color: white;
    font-weight: 500;
}
/* 产品分类列表样式 */
.product-catalog-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-catalog-list li {
    margin-bottom: 5px;
}

/* 一级分类样式 */
.catalog-level1 a {
    font-weight: bold;          /* 粗体 */
    font-size: 15px;            /* 稍大字体 */
    color: #333;                /* 深色 */
    padding: 10px 12px;
    display: block;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.catalog-level1 a:hover {
    background: #f0f8ff;
    color: #0073aa;
}

.catalog-level1 a.active {
    background: #0073aa;
    color: white;
}

/* 二级分类样式 */
.catalog-sub{
    list-style: none;
    margin: 0;
    display: none;   /* 默认隐藏子菜单 */
    transition: max-height 0.5s ease, opacity 0.5s ease;
}
.catalog-level2 {
    margin-left: 5px;          /* 缩进显示 */
}
.catalog-level1:hover > .catalog-sub{
    display: block;
    max-height: 800px;  /* 设一个足够容纳子菜单的高度 */
    opacity: 1;
}
.catalog-level2 a {
    font-weight: normal;        /* 正常字体 */
    font-size: 14px;            /* 稍小字体 */
    color: #555;                /* 浅色 */
    padding: 8px 12px 8px 25px;  /* 左侧留出空间 */
    display: block;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

/* 二级分类前的小标识 */
.catalog-level2 a:before {
    content: "├─";              /* 树形连接符 */
    position: absolute;
    left: 10px;
    color: #999;
    font-size: 12px;
}

.catalog-level2 a:hover {
    background: #f8f9fa;
    color: #0073aa;
    padding-left: 30px;         /* 悬停时微调 */
}

.catalog-level2 a.active {
    background: #e6f3ff;
    color: #0073aa;
    font-weight: 500;
}

/* 活跃状态的额外样式 */
.catalog-level1 a.active:hover,
.catalog-level2 a.active:hover {
    background: #005a87;
    color: white;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .catalog-level1 a {
        font-size: 14px;
        padding: 8px 10px;
    }
    
    .catalog-level2 a {
        font-size: 13px;
        padding: 6px 10px 6px 20px;
    }
    
    .catalog-level2 {
        margin-left: 10px;
    }
}
/* 右侧内容区域 */
.filter-content {
    flex: 1;
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.filter-header h1 {
    margin: 0;
    color: #333;
    font-size: 24px!important;
    font-weight: 600;
    text-transform: capitalize;
}

.result-count {
    color: #6c757d;
    font-size: 16px;
}
.result-count span{
    color: #f2546a;
    font-size: 20px;
    font-weight: 600;

}

/* 供应商卡片网格 */
.supplier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.supplier-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.supplier-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: #0073aa;
}

.supplier-card.svip {
    border-color: #ffd700;
    position: relative;
}

.supplier-card.svip::before {
    content: "Premium";
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ffd700;
    color: #000;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}

.supplier-card.vip {
    border-color: #1e90ff;
    position: relative;
}

.supplier-card.vip::before {
    content: "Verified Supplier";
    position: absolute;
    top: 10px;
    right: 10px;
    background: #1e90ff;
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}

.supplier-logo {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    padding: 20px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.supplier-logo img {
    max-width: 100%;
    max-height: 90px;
    object-fit: contain;
    border-radius: 12px;
}

.placeholder-logo {
    width: 80px;
    height: 80px;
    background: #0073aa;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
}

.supplier-info {
    padding: 20px;
}

.supplier-info h3 {
    margin: 0 0 10px 0;
    font-size: 18px!important;
}

.supplier-info h3 a {
    color: #333;
    text-decoration: none;
}

.supplier-info h3 a:hover {
    color: #0073aa;
}

.supplier-country {
    color: #666;
    font-size: 14px;
    margin: 5px 0;
}

.supplier-description {
    color: #555;
    font-size: 14px;
    line-height: 1.4;
    margin: 10px 0;
}

.supplier-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #777;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* 无结果提示 */
.no-suppliers {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.no-suppliers p {
    font-size: 18px;
    margin-bottom: 20px;
}

.no-suppliers a {
    display: inline-block;
    padding: 10px 20px;
    background: #0073aa;
    color: white!important;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.no-suppliers a:hover {
    background: #005a87;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .supplier-filter-layout {
        flex-direction: column;
    }
    
    .filter-sidebar {
        width: 100%;
        position: static;
    }
    
    .filter-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .supplier-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .supplier-filter-page {
        padding: 10px 0;
    }
    
    .supplier-filter-layout {
        padding: 0 15px;
    }
    
    .filter-sidebar, .filter-content {
        padding: 15px;
    }
    
    .supplier-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .supplier-breadcrumb .container {
        padding: 0 15px;
    }
    
    .filter-header h1 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .supplier-card.svip::before,
    .supplier-card.vip::before {
        top: 5px;
        right: 5px;
        font-size: 10px;
        padding: 2px 6px;
    }
    
    .supplier-logo {
        height: 120px;
    }
    
    .supplier-info {
        padding: 15px;
    }
    
    .supplier-info h3 {
        font-size: 16px;
    }
}

/* 分页css */
.supplier-pagination {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.pagination-info {
    color: #6c757d;
    font-size: 14px;
}

.pagination-links {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.pagination-links a,
.pagination-links span {
    display: inline-block;
    padding: 8px 12px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
}

.pagination-links a {
    background: #f8f9fa;
    color: #0073aa;
    border: 1px solid #dee2e6;
    transition: all 0.3s;
}

.pagination-links a:hover {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

.current-page {
    background: #0073aa;
    color: white;
    border: 1px solid #0073aa;
    font-weight: bold;
}

.dots {
    padding: 8px 5px;
    color: #6c757d;
}

.prev-page,
.next-page {
    font-weight: 500;
}

/* 响应式分页 */
@media (max-width: 768px) {
    .supplier-pagination {
        flex-direction: column;
        text-align: center;
    }
    
    .pagination-links {
        justify-content: center;
    }
}