/*产品中心二级分类页样式*/
/* 基础重置，确保跨设备一致性 */
    * {
        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;
    }
    
    /* 分页样式 */
    .pagination {
        display: inline-flex;
        justify-content: center;
        margin-top: 1.25rem; /* 20px 转 rem */
    }
    
    .pagination > li {
        display: inline-block;
        margin: 0 0.3125rem; /* 5px 转 rem */
    }
    
    .pagination > li > a,
    .pagination > li > span {
        padding: 0.375rem 0.75rem; /* 6px 12px 转 rem */
        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-categories-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr); /* 修改为4列 */
        gap: 1.25rem; /* 调整为20px 转 rem，使间距更紧凑 */
        /* 移除顶部边距，与左侧导航栏水平对齐 */
    }
    
    .category-card {
        background: #fff;
        overflow: hidden;
        box-shadow: 0 0.1875rem 0.625rem rgba(0,0,0,0.08); /* 3px 10px 转 rem */
        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); /* -5px 转 rem */
        box-shadow: 0 0.625rem 1.5625rem rgba(0,0,0,0.12); /* 10px 25px 转 rem */
        border-color: #ffd700; /* 悬停时边框变为黄色 */
    }
    
    .category-img {
        height: 0; /* 使用padding-bottom创建正方形 */
        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; /* 14px 转 rem */
        background-color: #f0f0f0;
    }
    
    .category-content {
        padding: 0.2rem; /* 减小为10px 转 rem */
        text-align: center;
        background-color: #666; /* 灰色背景 */
        flex-grow: 1; /* 让内容区域填充剩余空间 */
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 2.0rem; /* 减小最小高度为56px 转 rem */
    }
    
    .category-content h4 {
        margin: 0; /* 移除边距 */
        font-size: 0.875rem; /* 调整为14px 转 rem */
        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; /* 调整为12px 转 rem */
        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; /* 40px 20px 转 rem */
        background: #fff;
        box-shadow: 0 0.125rem 0.75rem rgba(0,0,0,0.05); /* 2px 12px 转 rem */
        grid-column: 1 / -1;
    }
    
    .no-categories-icon {
        font-size: 3rem; /* 48px 转 rem */
        color: #ccc;
        margin-bottom: 1.25rem; /* 20px 转 rem */
    }
    
    .no-categories h4 {
        color: #666;
        font-size: 1.125rem; /* 18px 转 rem */
        margin-bottom: 0.625rem; /* 10px 转 rem */
    }
    
    .no-categories p {
        color: #999;
        font-size: 0.875rem; /* 14px 转 rem */
    }
    
    /* 无产品提示 */
    .no-products {
        text-align: center;
        padding: 2.5rem 1.25rem; /* 40px 20px 转 rem */
        background: #fff;
        box-shadow: 0 0.125rem 0.75rem rgba(0,0,0,0.05); /* 2px 12px 转 rem */
    }
    
    .no-products-icon {
        font-size: 3rem; /* 48px 转 rem */
        color: #ccc;
        margin-bottom: 1.25rem; /* 20px 转 rem */
    }
    
    .no-products h4 {
        color: #666;
        font-size: 1.125rem; /* 18px 转 rem */
        margin-bottom: 0.625rem; /* 10px 转 rem */
    }
    
    .no-products p {
        color: #999;
        font-size: 0.875rem; /* 14px 转 rem */
    }
    
    /* 产品卡片样式 */
    .product-cards {
        width: 100%;
    }
    
    .product-card {
        width: 100%;
        background: #fff;
        box-shadow: 0 0.125rem 0.75rem rgba(0,0,0,0.08); /* 2px 12px 转 rem */
        margin-bottom: 1.25rem; /* 20px 转 rem */
        overflow: hidden;
        transition: all 0.3s ease;
        border: 1px solid #bbbbbb; /* 产品框线改为黑色 */
        cursor: pointer;
        height: 9.375rem; /* 150px 转 rem */
    }
    
    .product-card:hover {
        box-shadow: 0 0.25rem 1.25rem rgba(0,0,0,0.12); /* 4px 20px 转 rem */
        transform: translateY(-0.125rem); /* -2px 转 rem */
        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; /* 150px 转 rem */
        width: 9.375rem; /* 150px 转 rem */
        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; /* 15px 转 rem */
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    
    .product-title {
        font-size: 1.125rem; /* 18px 转 rem */
        font-weight: 600;
        color: #333;
        margin-bottom: 0.3125rem; /* 5px 转 rem */
        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; /* 14px 转 rem */
        color: #666;
        margin-bottom: 0.3125rem; /* 5px 转 rem */
        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; /* 4px 转 rem */
    }
    
    .tag-icon {
        color: #999;
        font-size: 0.75rem; /* 12px 转 rem */
        margin-right: 0.25rem; /* 4px 转 rem */
    }
    
    .tag-item {
        font-size: 0.75rem; /* 12px 转 rem */
        color: #666;
        background: #f8f8f8;
        padding: 0.125rem 0.375rem; /* 2px 6px 转 rem */
        cursor: default;
        line-height: 1.2;
    }
    
    /* ==== 商品中心左侧导航栏样式 ==== */
    .product-center-sidebar {
        background: #fff;
        box-shadow: 0 0.125rem 0.5rem rgba(0,0,0,0.08); /* 2px 8px 转 rem */
        border: 1px solid #bbbbbb; /* 框线改为黑色 */
        overflow: hidden;
        margin-bottom: 0; /* 移除底部边距，与右侧内容对齐 */
    }
    
    .sidebar-header {
        padding: 0.875rem 1rem; /* 14px 16px 转 rem */
        background: #666;
        border-bottom: 1px solid #eee;
        display: flex;
        align-items: center;
        font-weight: 600;
        color: #fff;
        font-size: 1rem; /* 16px 转 rem */
    }
    
    .sidebar-header-icon {
        color: #ffb600;
        margin-right: 0.5rem; /* 8px 转 rem */
        font-size: 1.125rem; /* 18px 转 rem */
    }
    
    /* 二级分类导航 */
    .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; /* 12px 16px 转 rem */
        color: #333;
        font-size: 0.875rem; /* 14px 转 rem */
        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; /* 24px 转 rem */
        height: 1.5rem; /* 24px 转 rem */
        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; /* 14px 转 rem */
    }
    
    /* 三级分类子菜单 */
    .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; /* 500px 转 rem，足够容纳多个子项 */
    }
    
    .subcategory-item {
        border-top: 1px solid #f0f0f0;
    }
    
    .subcategory-link {
        display: block;
        padding: 0.625rem 1rem 0.625rem 1.875rem; /* 10px 16px 10px 30px 转 rem */
        color: #666;
        font-size: 0.8125rem; /* 13px 转 rem */
        text-decoration: none;
        transition: all 0.2s ease;
        position: relative;
    }
    
    .subcategory-link::before {
        content: "";
        position: absolute;
        left: 1rem; /* 16px 转 rem */
        top: 50%;
        transform: translateY(-50%);
        width: 0.375rem; /* 6px 转 rem */
        height: 0.375rem; /* 6px 转 rem */
        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; /* 10px 转 rem */
        padding: 0.125rem 0.375rem; /* 2px 6px 转 rem */
        margin-left: 0.5rem; /* 8px 转 rem */
    }
    
    /* 轮播图样式优化 */
    .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) { /* 768px 转 rem */
        .category-link {
            padding: 0.625rem 0.875rem; /* 10px 14px 转 rem */
        }
        
        .subcategory-link {
            padding: 0.5rem 0.875rem 0.5rem 1.75rem; /* 8px 14px 8px 28px 转 rem */
        }
        
        .toggle-btn {
            width: 1.25rem; /* 20px 转 rem */
            height: 1.25rem; /* 20px 转 rem */
        }
        
        .home-banner.swiper-container {
            height: 300px; /* 移动端轮播图高度 */
        }
        
        /* 平板端分类卡片调整为3列 */
        .product-categories-grid {
            grid-template-columns: repeat(3, 1fr);
            gap: 0.9375rem; /* 15px 转 rem */
        }
    }
    
    @media (max-width: 36rem) { /* 576px 转 rem */
        .home-banner.swiper-container {
            height: 250px; /* 小屏幕轮播图高度 */
        }
        
        /* 移动端分类卡片调整为2列 */
        .product-categories-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 0.75rem; /* 12px 转 rem */
        }
        
        .category-content {
            padding: 0.5rem; /* 8px 转 rem */
            min-height: 3rem; /* 48px 转 rem */
        }
        
        .category-content h4 {
            font-size: 0.8125rem; /* 13px 转 rem */
        }
        
        .category-desc {
            font-size: 0.6875rem; /* 11px 转 rem */
        }
    }
    
    /* 针对高DPI设备的优化 */
    @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
        .category-card {
            border-width: 0.5px; /* 高DPI屏幕使用更细的边框 */
        }
    }
    
    /* 针对不同设备的字体大小调整 */
    @media screen and (max-width: 1200px) {
        html {
            font-size: 15px;
        }
        
        /* 平板端分类卡片调整 */
        .product-categories-grid {
            gap: 1rem; /* 16px 转 rem */
        }
    }
    
    @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; /* 10px 转 rem */
            }
        }
    }
    
    /* 添加字体平滑处理 */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
    }