/* ===================================
   产品侧边栏样式 - 简洁重构版
   =================================== */

/* 侧边栏容器 */
.products-sidebar {
    width: 240px;
    flex-shrink: 0;
}

/* 区块容器 */
.sidebar-section {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 20px;
    padding: 0;
}

/* 标题容器 - 背景颜色和文字颜色由内联样式设置 */
.sidebar-header {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

.sidebar-header svg {
    display: none;
}

.sidebar-header h3 {
    font-size: 14px;

    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

/* 产品分类列表 */
.products-sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #ffffff;
}

.products-sidebar li {
    margin-bottom: 0;

}

.products-sidebar li:last-child {
    border-bottom: none;
}

.products-sidebar li a {
    display: flex;
    align-items: center;
    padding: 0 16px;
    color: #333333;
    font-size: 14px;

    background: #ffffff;
    text-decoration: none;
    line-height: 40px;
    height: 40px;
    transition: none;
}

.products-sidebar li a:hover {
    background: #ffffff;
    color: #2563eb;
}

.products-sidebar li.active a {
    color: #2563eb;

    background: #ffffff;
}

.category-name {
    flex: 1;
}

.category-count {
    background: transparent;
    color: #999999;
    padding: 0;
    font-size: 13px;

    margin-left: 8px;
}

.products-sidebar li.active .category-count {
    color: #2563eb;
}

/* 特色产品列表 */
.featured-products-list {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.featured-product-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
}

.featured-product-item:last-child {
    border-bottom: none;
}

.featured-product-item:hover {
    background: #ffffff;
}


.featured-product-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
}

.featured-product-info h4 {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.featured-product-info h4 a {
    color: #333333;
    text-decoration: none;
}

.featured-product-info h4 a:hover {
    color: #2563eb;
}

.btn-more {
    display: inline-block;
    background: #dc2626;
    color: white;
    padding: 4px 12px;
    font-size: 12px;

    text-decoration: none;
    text-transform: uppercase;
    align-self: flex-start;
}

.btn-more:hover {
    background: #b91c1c;
    color: white;
}

/* 联系方式区块 */
.contact-details-section {
    margin-bottom: 20px;
}

.contact-details-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #333;
}

.contact-detail-item:last-child {
    border-bottom: none;
}

.contact-detail-icon {
    color: #666;
    flex-shrink: 0;
}

.contact-detail-item a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    word-break: break-all;
}

.contact-detail-item a:hover {
    color: #2563eb;
}

.contact-detail-item span {
    color: #333;
    font-size: 14px;
    line-height: 1.4;
}

.contact-detail-qrcodes {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 12px;
}

.contact-detail-qrcode-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.contact-detail-qrcode-item img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    display: block;
}

.qrcode-label {
    font-size: 12px;
    color: #333;
    font-weight: 500;
}

/* 响应式 */
@media (max-width: 992px) {
    .products-sidebar {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        flex: 0 0 100% !important;
    }
}
