
/* 类目选择弹窗样式 */
.category-columns-container {
    background: #fff;
}

.category-column {
    min-width: 180px; /* 减小最小宽度，防止4级类目时出现滚动条 */
    width: 25%;
    flex: 0 0 25%; /* 固定宽度比例 */
    box-sizing: border-box; /* 包含边框和内边距 */
    border-right: 1px solid #eee;
    overflow-y: auto;
    height: 100%;
}

/* 搜索结果列表样式 */
.search-results-list {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding: 10px;
}

.search-result-item {
    padding: 10px 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 14px;
    color: #333;
}

.search-result-item:hover {
    background-color: #e6f7ff;
}

.search-result-item.active {
    background-color: #e6f7ff;
    color: #1890ff;
}

.search-result-path {
    color: #666;
}

.search-highlight {
    color: #ff4d4f;
    font-weight: bold;
}

/* 搜索结果列表滚动条 */
.search-results-list::-webkit-scrollbar {
    width: 4px;
}

.search-results-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.3s;
}

.search-results-list:hover::-webkit-scrollbar-thumb {
    opacity: 1;
}

.search-results-list::-webkit-scrollbar-track {
    background: transparent;
}

.category-column:last-child {
    border-right: none;
}

.category-item {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
}

.category-item:hover {
    background-color: #e6f7ff;
}

.category-item.active {
    background-color: #e6f7ff;
    color: #1890ff;
}

.category-item.selected-leaf {
    background-color: #e6f7ff;
    color: #1890ff;
    font-weight: 500;
}

.category-arrow {
    font-size: 12px;
    color: #999;
}

.category-item.active .category-arrow {
    color: #1890ff;
}

/* 滚动条样式 */
.category-column::-webkit-scrollbar {
    width: 4px;
}

.category-column::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.3s;
}

.category-column:hover::-webkit-scrollbar-thumb {
    opacity: 1;
}

.category-column::-webkit-scrollbar-track {
    background: transparent;
}
