/*产品列表页样式*/
/* 基础重置，确保跨设备一致性 */
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }
    
    /* 使用rem单位确保一致缩放 */
    html {
        font-size: 16px; /* 基准字体大小 */
    }
    
    /* 导航栏样式 */
    .nav-menu {
        border-bottom: 1px solid #000 !important;
    }
    
    .nav-menu .nav-item.active > .nav-link,
    .nav-menu .nav-item:hover > .nav-link {
        background-color: #000 !important;
        color: #fff !important;
    }
    
    /* 产品中心导航项样式 */
    .nav-menu .nav-item.product-center-item > .nav-link {
        background-color: #000 !important;
        color: #fff !important;
        border: 1px solid #000 !important;
    }
    
    /* 二级分类下拉菜单 */
    .dropdown-menu.level2 {
        background-color: #333 !important;
        border: 1px solid #000 !important;
        padding: 0.5rem 0;
        min-width: 200px;
    }
    
    .dropdown-menu.level2 .dropdown-item {
        color: #fff !important;
        padding: 0.5rem 1.5rem;
        transition: all 0.2s ease;
    }
    
    .dropdown-menu.level2 .dropdown-item:hover {
        background-color: #ffd700 !important;
        color: #000 !important;
    }
    
    /* 三级分类下拉菜单 */
    .dropdown-menu.level3 {
        background-color: #f5f5f5 !important;
        border: 1px solid #000 !important;
        padding: 0.5rem 0;
        min-width: 200px;
    }
    
    .dropdown-menu.level3 .dropdown-item {
        color: #000 !important;
        padding: 0.5rem 1.5rem 0.5rem 2.5rem; /* 左边距加大 */
        transition: all 0.2s ease;
    }
    
    .dropdown-menu.level3 .dropdown-item:hover {
        background-color: #ffd700 !important;
        color: #fff !important;
    }
    
    /* 增加层级效果 */
    .dropdown-menu.level3 {
        margin-left: 1px;
        box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
    }
    
    /* 首页轮播图 - 参照首页设计 */
    .home-banner.swiper-container {
        height: 400px; /* PC端高度 400px */
        width: 100%;
        position: relative;
        overflow: hidden;
    }
    
    #main-container.main-container {
        padding-top: 0 !important;
        padding-bottom: 3rem !important; /* 增加底部内边距 */
    }
    
    #main-container {
        padding: 0 !important;
        padding-bottom: 3rem !important; /* 增加底部内边距，确保有空间 */
    }
    
    /* 面包屑导航容器 - 间距缩减为20px */
    .breadcrumb-container {
        padding: 0.625rem 0; /* 10px 转 rem */
        margin-top: 1.25rem; /* 20px 转 rem */
        margin-bottom: 1.25rem; /* 20px 转 rem */
        border-bottom: 1px solid #eee;
    }
    
    /* 筛选器折叠/展开功能 */
    .filter-collapse-btn {
        background: #666;
        border: 1px solid #bbbbbb;
        padding: 0.5rem 1rem;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        color: #fff;
        font-weight: 600;
        transition: all 0.3s ease;
    }
   
    .filter-collapse-btn:hover {
        background: #444;
    }
    
    .filter-collapse-btn i {
        transition: transform 0.3s ease;
    }
    
    .filter-collapse-btn.collapsed i {
        transform: rotate(180deg);
    }
    
    /* 筛选器主容器样式 */
    .filter-section {
        background: #f5f5f7;
        padding: 0.625rem 0.75rem;
        margin-bottom: 0.9375rem;
        width: 100%;
        border: 1px solid #bbbbbb;
        border-top: none;
        max-height: 18.75rem;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        box-shadow: 0 0.125rem 0.375rem rgba(0,0,0,0.05);
        transition: all 0.3s ease;
    }
    
    .filter-section.collapsed {
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
        border: none;
        overflow: hidden;
    }
        
    .filter-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0.5rem;
        padding-bottom: 0.5rem;
    }
    
    .filter-title {
        font-size: 0.875rem;
        font-weight: 600;
        color: #444;
        display: flex;
        align-items: center;
    }
    
    /* 新增的橙黄色竖线样式 */
    .filter-title::before {
        content: "";
        display: inline-block;
        width: 0.1875rem;
        height: 1rem;
        background-color: #ffb600;
        margin-right: 0.625rem;
    }
    
    .filter-clear {
        color: #ffb600;
        font-size: 0.75rem;
        cursor: pointer;
        padding: 0.1875rem 0.375rem;
        background: rgba(255,107,0,0.1);
    }
        
    .filter-clear:hover {
        background: rgba(255,107,0,0.2);
    }
        
    /* 横向滚动容器 */
    .filter-scroll-container {
        display: flex;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        gap: 0.625rem;
        scrollbar-width: thin;
        scrollbar-color: #c1c1c1 #f0f0f0;
    }
    
    .filter-scroll-container::-webkit-scrollbar {
        height: 0.5rem;
    }
    
    .filter-scroll-container::-webkit-scrollbar-thumb {
        background: #c1c1c1;
    }
    
    .filter-scroll-container::-webkit-scrollbar-track {
        background: #f0f0f0;
    }
    
    /* 筛选组样式 */
    .filter-attribute-group {
        flex: 0 0 auto;
        width: 10.625rem;
        border: 1px solid #ddd;
        font-size: 0.75rem;
        background: #fff;
        box-shadow: 0 0.0625rem 0.1875rem rgba(0,0,0,0.05);
    }
    
    .filter-attribute-header {
        padding: 0.5rem 0.75rem;
        background-color: #f8f9fa;
        font-size: 0.8125rem;
        font-weight: 600;
        color: #555;
        border-bottom: 1px solid #e8e8e8;
    }
    
    /* 属性组搜索框 */
    .attribute-search {
        padding: 0.375rem 0.625rem;
        border-bottom: 1px solid #eee;
        background: #f9f9f9;
    }
    
    .attribute-search input {
        width: 100%;
        padding: 0.25rem 0.5rem;
        border: 1px solid #ddd;
        font-size: 0.75rem;
        height: 1.625rem;
        background: #fff;
    }
    
    /* 内容区域 */
    .filter-attribute-content {
        max-height: 9.375rem;
        overflow-y: auto;
        padding: 0.5rem 0.75rem;
        scrollbar-width: thin;
        scrollbar-color: #d0d0d0 #f5f5f5;
        background: #fff;
    }
    
    .filter-attribute-content::-webkit-scrollbar {
        width: 0.3125rem;
    }
    
    .filter-attribute-content::-webkit-scrollbar-thumb {
        background: #d0d0d0;
    }
    
    .filter-attribute-content::-webkit-scrollbar-track {
        background: #f5f5f5;
    }
    
    /* 筛选值 */
    .filter-attribute-value {
        padding: 0.25rem 0;
        font-size: 0.75rem;
        color: #444;
        cursor: pointer;
        display: flex;
        align-items: center;
        border-bottom: 1px solid #f5f5f5;
        line-height: 1.4;
    }
    
    .filter-attribute-value:last-child {
        border-bottom: none;
    }
    
    /* 复选框 */
    .filter-checkbox {
        display: inline-block;
        width: 0.875rem;
        height: 0.875rem;
        border: 1px solid #ccc;
        margin-right: 0.5rem;
        position: relative;
        flex-shrink: 0;
        background: #fff;
    }
    
    .filter-attribute-value.active .filter-checkbox {
        border-color: #ff8c00;
        background-color: #ff8c00;
    }
    
    .filter-attribute-value.active .filter-checkbox::after {
        content: "✓";
        position: absolute;
        color: white;
        font-size: 0.625rem;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    
    .filter-attribute-value:hover {
        color: #ffb600;
    }
    
    .filter-attribute-value.active {
        color: #ffb600;
        font-weight: 500;
    }
    
    /* 当前筛选标签 */
    .current-filters {
        display: flex;
        flex-wrap: wrap;
        gap: 0.375rem;
        margin-bottom: 0.625rem;
        font-size: 0.75rem;
    }
    
    .filter-tag {
        background: #fff;
        padding: 0.25rem 0.5rem;
        font-size: 0.6875rem;
        display: inline-flex;
        align-items: center;
        border: 1px solid #e0e0e0;
        box-shadow: 0 0.0625rem 0.125rem rgba(0,0,0,0.05);
    }
    
    .filter-tag-remove {
        margin-left: 0.25rem;
        cursor: pointer;
        color: #ffb600;
        font-size: 0.625rem;
    }
    
    /* 不可用的属性值样式 */
    .filter-attribute-value.disabled {
        color: #ccc !important;
        cursor: not-allowed !important;
    }
    
    .filter-attribute-value.disabled .filter-checkbox {
        border-color: #eee !important;
        background-color: #f9f9f9 !important;
    }
    
    .filter-attribute-value.disabled:hover {
        color: #ccc !important;
    }
    
    /* 分页样式 */
    .pagination {
        display: inline-flex;
        justify-content: center;
        margin-top: 1.25rem;
    }
    
    .pagination > li {
        display: inline-block;
        margin: 0 0.3125rem;
    }
    
    .pagination > li > a,
    .pagination > li > span {
        padding: 0.375rem 0.75rem;
        border: 1px solid #ddd;
        color: #333;
        text-decoration: none;
    }
    
    .pagination > li > a:hover {
        background-color: #f5f5f5;
    }
    
    .pagination > .active > a,
    .pagination > .active > span {
        background-color: #ffb600;
        border-color: #ffb600;
        color: white;
    }
    
    .pagination > .disabled > span {
        color: #777;
        cursor: not-allowed;
    }
    
    /* 产品列表卡片样式 */
    .product-cards {
        width: 100%;
    }
    
    /* 在产品卡片上添加左侧内边距 */
    .product-card {
        width: 100%;
        background: #fff;
        box-shadow: 0 0.125rem 0.75rem rgba(0,0,0,0.08);
        margin-bottom: 1.25rem;
        overflow: hidden;
        transition: all 0.3s ease;
        border: 1px solid #bbbbbb;
        cursor: pointer;
        height: 9.375rem;
        padding-left: 0.3125rem; /* 新增：5px左边距 */
        box-sizing: border-box; /* 确保内边距包含在总宽度内 */
    }
    
    .product-card:hover {
        box-shadow: 0 0.25rem 1.25rem rgba(0,0,0,0.12);
        transform: translateY(-0.125rem);
        border-color: #ffd700;
    }
    
    .product-card-link {
        display: block;
        text-decoration: none;
        color: inherit;
        height: 100%;
    }
    
    .product-card-inner {
        display: flex;
        height: 100%;
    }
    
    .product-image {
        flex: 0 0 9.375rem;
        width: 9.375rem;
        height: 100%;
        overflow: hidden;
        background: #f8f9fa;
    }
    
    .product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }
    
    .product-card:hover .product-image img {
        transform: scale(1.05);
    }
    
    .product-content {
        flex: 1;
        padding: 0.9375rem;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    
    .product-title {
        font-size: 1.125rem;
        font-weight: 600;
        color: #333;
        margin-bottom: 0.3125rem;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        flex-shrink: 0;
    }
    
    .product-title:hover {
        color: #ffb600;
    }
    
    .product-subtitle {
        font-size: 0.875rem;
        color: #666;
        margin-bottom: 0.3125rem;
        line-height: 2.0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        flex-shrink: 0;
    }
    
    .product-tags-container {
        margin-top: 0.25rem;
    }
    
    .product-tags {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .tag-icon {
        color: #999;
        font-size: 0.75rem;
        margin-right: 0.25rem;
    }
    
    .tag-item {
        font-size: 0.75rem;
        color: #666;
        background: #f8f8f8;
        padding: 0.125rem 0.375rem;
        cursor: default;
        line-height: 1.2;
    }
    
    /* 无产品提示 */
    .no-products {
        text-align: center;
        padding: 2.5rem 1.25rem;
        background: #fff;
        box-shadow: 0 0.125rem 0.75rem rgba(0,0,0,0.05);
    }
    
    .no-products-icon {
        font-size: 3rem;
        color: #ccc;
        margin-bottom: 1.25rem;
    }
    
    .no-products h4 {
        color: #666;
        font-size: 1.125rem;
        margin-bottom: 0.625rem;
    }
    
    .no-products p {
        color: #999;
        font-size: 0.875rem;
    }
    
    /* ==== 新增：产品分类卡片样式 ==== */
    .product-categories-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 1.25rem;
    }
    
    .category-card {
        background: #fff;
        overflow: hidden;
        box-shadow: 0 0.1875rem 0.625rem rgba(0,0,0,0.08);
        transition: all 0.3s ease;
        border: 1px solid #bbbbbb;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        height: 100%;
    }
    
    .category-card:hover {
        transform: translateY(-0.3125rem);
        box-shadow: 0 0.625rem 1.5625rem rgba(0,0,0,0.12);
        border-color: #ffd700;
    }
    
    .category-img {
        height: 0;
        padding-bottom: 100%;
        overflow: hidden;
        position: relative;
        background-color: #f8f8f8;
    }
    
    .category-img img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }
    
    .category-card:hover .category-img img {
        transform: scale(1.05);
    }
    
    /* 无图片提示 */
    .no-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #999;
        font-size: 0.9rem;
        background-color: #f0f0f0;
    }
    
    .category-content {
        padding: 0.2rem;
        text-align: center;
        background-color: #666;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 2.0rem;
    }
    
    .category-content h4 {
        margin: 0;
        font-size: 0.875rem;
        line-height: 1.3;
    }
    
    .category-content h4 a {
        color: #fff;
        text-decoration: none;
        transition: color 0.3s;
    }
    
    .category-content h4 a:hover {
        color: #ffb600;
    }
    
    .category-desc {
        color: #666;
        font-size: 0.75rem;
        line-height: 1.4;
        margin: 0.25rem 0 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    /* 无分类提示 */
    .no-categories {
        text-align: center;
        padding: 2.5rem 1.25rem;
        background: #fff;
        box-shadow: 0 0.125rem 0.75rem rgba(0,0,0,0.05);
        grid-column: 1 / -1;
    }
    
    .no-categories-icon {
        font-size: 3rem;
        color: #ccc;
        margin-bottom: 1.25rem;
    }
    
    .no-categories h4 {
        color: #666;
        font-size: 1.125rem;
        margin-bottom: 0.625rem;
    }
    
    .no-categories p {
        color: #999;
        font-size: 0.875rem;
    }
    
    /* ==== 商品中心左侧导航栏样式 ==== */
    .product-center-sidebar {
        background: #fff;
        box-shadow: 0 0.125rem 0.5rem rgba(0,0,0,0.08);
        border: 1px solid #bbbbbb;
        overflow: hidden;
        margin-bottom: 0;
    }
    
    .sidebar-header {
        padding: 0.875rem 1rem;
        background: #666;
        border-bottom: 1px solid #eee;
        display: flex;
        align-items: center;
        font-weight: 600;
        color: #fff;
        font-size: 1rem;
    }
    
    .sidebar-header-icon {
        color: #ffb600;
        margin-right: 0.5rem;
        font-size: 1.125rem;
    }
    
    /* 二级分类导航 */
    .category-nav {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .category-item {
        border-bottom: 1px solid #f5f5f5;
        transition: background-color 0.2s ease;
    }
    
    .category-item:last-child {
        border-bottom: none;
    }
    
    .category-item.active {
        background-color: rgba(255, 182, 0, 0.05);
    }
    
    /* 二级分类链接 */
    .category-link {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 1rem;
        color: #333;
        font-size: 0.875rem;
        text-decoration: none;
        transition: all 0.2s ease;
    }
    
    .category-link:hover {
        color: #ffb600;
        background-color: rgba(255, 182, 0, 0.05);
    }
    
    .category-link.active {
        color: #ffb600;
        font-weight: 500;
    }
    
    /* 三级分类展开按钮 */
    .toggle-btn {
        width: 1.5rem;
        height: 1.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        background: transparent;
        cursor: pointer;
        color: #999;
        transition: transform 0.3s ease, color 0.2s ease;
    }
    
    .toggle-btn:hover {
        color: #ffb600;
        background-color: rgba(0,0,0,0.05);
    }
    
    .toggle-btn.expanded {
        transform: rotate(180deg);
        color: #ffb600;
    }
    
    .toggle-btn i {
        font-size: 0.875rem;
    }
    
    /* 三级分类子菜单 */
    .subcategory-menu {
        list-style: none;
        padding: 0;
        margin: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        background-color: #fafafa;
    }
    
    .subcategory-menu.expanded {
        max-height: 31.25rem;
    }
    
    .subcategory-item {
        border-top: 1px solid #f0f0f0;
    }
    
    .subcategory-link {
        display: block;
        padding: 0.625rem 1rem 0.625rem 1.875rem;
        color: #666;
        font-size: 0.8125rem;
        text-decoration: none;
        transition: all 0.2s ease;
        position: relative;
    }
    
    .subcategory-link::before {
        content: "";
        position: absolute;
        left: 1rem;
        top: 50%;
        transform: translateY(-50%);
        width: 0.375rem;
        height: 0.375rem;
        background-color: #ccc;
    }
    
    .subcategory-link:hover {
        color: #ffb600;
        background-color: rgba(255, 182, 0, 0.05);
    }
    
    .subcategory-link:hover::before {
        background-color: #ffb600;
    }
    
    .subcategory-link.active {
        color: #ffb600;
        font-weight: 500;
        background-color: rgba(255, 182, 0, 0.08);
    }
    
    .subcategory-link.active::before {
        background-color: #ffb600;
    }
    
    /* 当前分类标记 */
    .current-category {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background-color: #ffb600;
        color: white;
        font-size: 0.625rem;
        padding: 0.125rem 0.375rem;
        margin-left: 0.5rem;
    }
    
    /* 轮播图样式优化 */
    .swiper-slide {
        background-position: center;
        background-size: cover;
        width: 100%;
        height: 100%;
        position: relative;
    }
    
    .swiper-slide .container {
        height: 100%;
        display: flex;
        align-items: center;
    }
    
    .box-slider-content {
        color: #fff;
        text-align: left;
        max-width: 600px;
    }
    
    .box-slide-sub-title {
        font-size: 1.5rem;
        font-weight: 600;
        margin-bottom: 1rem;
    }
    
    .box-slide-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .slider.btn {
        display: inline-block;
        padding: 0.5rem 1.5rem;
        background-color: #ffb600;
        color: #fff;
        text-decoration: none;
        transition: background-color 0.3s ease;
    }
    
    .slider.btn:hover {
        background-color: #e6a200;
    }
    
    /* 响应式调整 */
    @media (max-width: 48rem) {
        .category-link {
            padding: 0.625rem 0.875rem;
        }
        
        .subcategory-link {
            padding: 0.5rem 0.875rem 0.5rem 1.75rem;
        }
        
        .toggle-btn {
            width: 1.25rem;
            height: 1.25rem;
        }
        
        .home-banner.swiper-container {
            height: 300px;
        }
        
        /* 平板端分类卡片调整为3列 */
        .product-categories-grid {
            grid-template-columns: repeat(3, 1fr);
            gap: 0.9375rem;
        }
    }
    
    @media (max-width: 36rem) {
        .home-banner.swiper-container {
            height: 250px;
        }
        
        /* 移动端分类卡片调整为2列 */
        .product-categories-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 0.75rem;
        }
        
        .category-content {
            padding: 0.5rem;
            min-height: 3rem;
        }
        
        .category-content h4 {
            font-size: 0.8125rem;
        }
        
        .category-desc {
            font-size: 0.6875rem;
        }
    }
    
    /* 针对高DPI设备的优化 */
    @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
        .category-card {
            border-width: 0.5px;
        }
    }
    
    /* 针对不同设备的字体大小调整 */
    @media screen and (max-width: 1200px) {
        html {
            font-size: 15px;
        }
        
        /* 平板端分类卡片调整 */
        .product-categories-grid {
            gap: 1rem;
        }
    }
    
    @media screen and (max-width: 768px) {
        html {
            font-size: 14px;
        }
        
        .home-banner.swiper-container {
            height: 200px;
        }
        
        .box-slide-sub-title {
            font-size: 1.2rem;
        }
        
        .box-slide-description {
            font-size: 0.9rem;
        }
        
        /* 移动端小屏幕分类卡片调整为1列 */
        @media (max-width: 480px) {
            .product-categories-grid {
                grid-template-columns: 1fr;
                gap: 0.625rem;
            }
        }
    }
    
    /* 添加字体平滑处理 */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
    }