.product_category_menu { 
    width: 100%; 
    background: #ffffff; 
    border-radius: 8px; 
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08); 
    overflow: hidden; 
    font-family: "Microsoft YaHei", sans-serif;
    border: 1px solid var(--border-color);
}

.title {
    border-bottom: 1px solid #c2c2c2;
}
.product_category_menu .title { 
    background-color: var(--menu-primary); 
    color: #1890ff; 
    margin: 0; 
    padding: clamp(12px, 1.6vw, 18px) clamp(14px, 1.6vw, 20px); 
    font-weight: bold; 
}

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

.product_category_menu ul ul { 
    display: none;
}

/* --- 通用列表项与分割线 --- */
.product_category_menu li { 
    position: relative; 
    border-bottom: 1px solid #c2c2c2;
}

.product_category_menu li:last-child { 
    border-bottom: none; 
}

/* --- 链接基础样式 --- */
.product_category_menu li a { 
    display: block; 
    padding: clamp(10px, 1.2vw, 14px) clamp(12px, 1.6vw, 20px); 
    color: #333; 
    text-decoration: none; 
    font-size: 14px; 
    transition: all 0.3s;
    line-height: 1.5;
}

@media (min-width: 2700px) {
    .product_category_menu li a { 
        font-size: 19px; 
    }
}
/* --- 层级底色区分 --- */
.product_category_menu > ul > li { 
    background-color: var(--bg-l1);
} /* 一级 */

.product_category_menu ul ul li {
    background-color: var(--bg-l2);
}   /* 二级或直属文章 */

.product_category_menu ul ul ul li { 
    background-color: var(--bg-l3); 
} /* 三级文章 */

/* --- 选中颜色与缩进 (每级不一样) --- */

/* 一级选中：全充满 */
.product_category_menu > ul > li.active > a {
    background-color: var(--active-l1) !important;
    color: #333;
    border-bottom: 1px solid #c2c2c2;
}

/* 二级或直属文章选中：左侧缩进8px */
.product_category_menu ul ul li a { 
    padding-left: 35px; 
}

.product_category_menu ul ul li.active > a {
    background-color: var(--active-l2) !important;
    color: #333;
    margin-left: 15px; 
    border-bottom: 1px solid #c2c2c2;
}

/* 三级文章选中：左侧缩进15px */
.product_category_menu ul ul ul li a { 
    padding-left: 55px; 
    padding-right: 10px; 
}

.product_category_menu ul ul ul li.active > a {
    background-color: var(--active-l3) !important;
    color: #333;
    margin-left: 25px;
    border-bottom: 1px solid #c2c2c2;
}

/* 悬浮效果 */
.product_category_menu li > a:hover { 
    background-color: rgba(24, 144, 255, 0.1); 
    color: #000;
}

/* --- 箭头样式优化 --- */
.product_category_menu span[class^="dropdown_"] { 
    position: absolute;
    right: -8px; 
    top: 0; 
    width: 46px; 
    height: 46px; 
    cursor: pointer; 
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center; 
}

.product_category_menu span[class^="dropdown_"]::after { 
    content: '';
    width: 7px; 
    height: 7px; 
    border-top: 2px solid #999;
    border-right: 2px solid #999; 
    transform: rotate(45deg); transition: 0.3s; 
}

/* 展开后的箭头旋转 */
.product_category_menu span.dropdown_darrow::after {
    transform: rotate(135deg); 
}

/* 选中状态下箭头的颜色变化 */
.product_category_menu li.active > span::after,
.product_category_menu li.path-active > span::after {
    border-color: #1890ff; 
}

.product_category_menu li.active > a + span::after { 
    border-color: #fff; 
}

/* 调整按钮样式 */
.btn-outline-primary {
    border-color: #1890ff !important;
    color: #1890ff !important;
}

.btn-outline-primary:hover {
    background-color: #1890ff !important;
    color: #fff !important;
}

.tag-cloud {
    display: none !important;
}

/* 社交栏外容器 */
.sidebar-social-box {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin-top: 25px !important;
    padding: 0 5px !important;
}

/* 每一行项目 */
.social-item {
    position: relative !important; /* 必须加相对定位，方便定位弹出二维码 */
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    padding: 10px 15px !important;
    background: #ffffff !important;
    border: 1px solid #e8e8e8 !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important; /* 变成手型 */
}

/* 图标包裹框 */
.social-item .icon-box {
    width: 24px !important;
    height: 24px !important;
    margin-right: 15px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.social-item .icon-box img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: block !important;
}

/* 文字样式 */
.social-item span {
    font-size: 15px;
    color: #333 !important;
    font-weight: 500 !important;
    line-height: 1 !important;
}

/* 悬停效果 */
.social-item:hover {
    border-color: #1890ff !important;
    background-color: #f0f7ff !important;
    transform: translateX(5px);
}

.social-item:hover span {
    color: #1890ff !important;
}

/* --- 新增：二维码弹出层样式 --- */
.qr-popover {
    display: none !important; /* 关键：默认绝对隐藏 */
    position: absolute !important;
    left: 50% !important;       /* 水平居中 */
    top: auto !important;       /* 清除顶部定位 */
    bottom: 102% !important;  
    
    /* 2. 关键：确保这里只有 translateX（水平居中），千万不要写 translateY */
    transform: translateX(-50%) !important; 
    background: #ffffff !important;
    border: 1px solid #e8e8e8 !important;
    border-radius: 8px !important;
    padding: 12px 12px 8px 12px !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15) !important;
    z-index: 999 !important;
    text-align: center !important;
    width: 130px !important;
}

.qr-popover img {
    width: 106px !important;
    height: 106px !important;
    display: block !important;
    margin: 0 auto 6px !important;
}

.qr-popover p {
    margin: 0 !important;
    font-size: 12px !important;
    color: #666 !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
}

/* 鼠标悬浮在选项上时，强制显示二维码 */
.qr-trigger:hover .qr-popover {
    display: block !important; 
}

@media (max-width: 1199.98px) {
    .product_category_menu { 
        border-radius: 6px;
    }
    
    .product_category_menu ul ul li a { 
        padding-left: 28px; 
    }
    
    .product_category_menu ul ul ul li a {
        padding-left: 42px; 
    }
    
    .sidebar-social-box { 
        gap: 10px; 
        padding: 15px 10px;
    }
    
    /* 移动端/小屏幕下改为向左弹出，防止溢出屏幕 */
    .qr-popover {
        left: auto !important;
        right: 105% !important;
    }
}
@media (max-width: 1199.98px) {
    .product_category_menu { 
        border-radius: 6px;
    }
    
    .product_category_menu ul ul li a { 
        padding-left: 28px; 
    }
    
    .product_category_menu ul ul ul li a {
        padding-left: 42px; 
    }
    
    .sidebar-social-box { 
        gap: 10px; 
        padding: 15px 10px;
    }
}