/* ============================================================
   模块：侧边栏容器
   ============================================================ */
.page-sidebar {
    width: 265px;
    flex-shrink: 0;
}
.contact-sidebar {
    width: 100%;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.06);
    border: 1px solid #eef0f2;
}

/* ============================================================
   模块：区块标题
   ============================================================ */
.contact-sidebar__head {
    background: var(--primary-color);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    padding: 10px 0;
    letter-spacing: 0.5px;
}

/* ============================================================
   模块：分类列表
   ============================================================ */
.sidebar-category-item {
    border-bottom: 1px solid #eee;
}
.sidebar-category-item:last-child {
    border-bottom: none;
}

/* 分类行 */
.sidebar-category-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    border-left: 3px solid transparent;
    transition: border-color 0.2s ease;
    cursor: pointer;
}
/* 分类选中 — 蓝色 */
.sidebar-category-row.active {
    border-left-color: var(--primary-color);
    background: #f5f5f5;
}
.sidebar-category-row.active .sidebar-category-title {
    color: var(--primary-color);
    font-weight: 600;
}
.sidebar-category-row:hover {
    background: #f7f9fc;
}

.sidebar-category-title {
    flex: 1;
    padding: 10px 12px;
    font-size: 14px;
    color: #333;
    transition: color 0.2s ease;
    text-decoration: none;
    line-height: 1.5;
}
.sidebar-category-title:hover {
    color: var(--primary-color);
}

/* 展开箭头 */
.category-toggle {
    flex: 0 0 36px;
    padding: 10px 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}
.category-arrow {
    font-size: 10px;
    color: #c0c0c0;
    transition: all 0.3s ease;
    display: inline-block;
    transform: rotate(0deg);
}
.sidebar-category-row:hover .category-arrow {
    color: var(--primary-color);
}
.category-toggle.open .category-arrow {
    transform: rotate(90deg);
}

/* ============================================================
   模块：子产品列表
   ============================================================ */
.sidebar-sub-wrap.collapse {
    display: none;
}

.sidebar-sub-product {
    margin: 0;
    padding: 10px;
    list-style: none;
}
.sidebar-sub-product li {
    padding: 0;
    margin: 0;
    border-bottom: 1px solid #f5f5f5;
}
.sidebar-sub-product li:last-child {
    border-bottom: none;
}

.sidebar-sub-product__link {
    display: block;
    padding: 8px 10px;
    font-size: 13px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    line-height: 1.5;
}
.sidebar-sub-product__link:hover {
    color: var(--primary-color);
    background: #f7f9fc;
}
/* 子产品选中 — 橙色 */
.sidebar-sub-product__link.active {
    color: #ff6600;
    font-weight: 500;
    background: rgba(255, 102, 0, 0.05);
}

.sub-empty-tip {
    font-size: 12px;
    color: #999;
    padding: 6px 12px 6px 28px;
}

/* ============================================================
   模块：联系我们区域
   ============================================================ */
.contact-sidebar__item {
    padding: 12px 15px 12px 10px;
    border-bottom: 1px solid #f0f2f5;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: border-color 0.3s ease;
    border-left: 3px solid transparent;
}
.contact-sidebar__item:last-child {
    align-items: flex-start;
    border-bottom: none;
}
.contact-sidebar__item:hover {
    border-left-color: var(--primary-color);
}

.contact-sidebar__icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
    color: var(--primary-color);
    border-radius: 8px;
    background-color: #e8edf5;
    transition: all 0.3s ease;
}
.contact-sidebar__item:hover .contact-sidebar__icon {
    background-color: var(--primary-color);
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.25);
}

.contact-sidebar__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.contact-sidebar__label {
    font-size: 10px;
    color: #a0a0a0;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.contact-sidebar__link {
    font-size: 13px;
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
    word-break: break-all;
    line-height: 1.5;
}
.contact-sidebar__link:hover {
    color: var(--primary-color);
}
.contact-sidebar__addr {
    font-size: 13px;
    color: #333;
    line-height: 1.5;
    word-break: break-all;
}

/* ============================================================
   模块：响应式适配
   ============================================================ */
@media (max-width: 1100px) {
    .page-sidebar {
        width: 230px;
    }
}
@media (max-width: 992px) {
    .page-sidebar {
        display: none !important;
    }
}