:root {
}
.content {
height:100vh;
overflow:auto;
margin-left:4.5rem;
transition: margin-left 0.3s ease;}
.sidebar {
width:4.5rem;
position:fixed;
top:0;
bottom:0;
z-index:1010;
transition: transform 0.3s ease;
}
        .sidebar.collapsed {
            transform: translateX(-4rem);
        }
.content.collapsed {
            margin-left: 0;
        }
/* ... add.phtml ... */
    .expand-icon {
        cursor: pointer;
        width: 16px;
        height: 16px;
        display: inline-block;
        text-align: left;
        font-size: 12px;
        margin-right: 5px;
        font-weight: bold;
        transition: transform 0.2s ease;
    }

    .category-children {
        margin-left: 20px;
        display: none;
    }

    .category-item {
        list-style: none;
        padding: 5px;
        cursor: pointer;
        display: block;
        text-align: left; /* 左对齐 */
    }

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

    .category-item.selected {
        background-color: lightblue; /* 背景色仅应用于选中的类目 */
    }

    /* Rotate the arrow icon when expanded */
    .category-children:target + .category-item .expand-icon {
        transform: rotate(90deg);
    }

    #category-container {
        position: relative;
    }

    #category-text {
        padding: 5px;
        border: 1px solid #ccc;
	cursor: pointer;
	width: 100%;
	text-align:left;
    }

    #category-dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        border: 1px solid #ccc;
        background-color: #fff;
        box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
        z-index: 10;
        display: none;
        overflow-y: auto;
        max-height: 500px;
    }

    #category-search {
        width: 100%;
        padding: 5px;
        box-sizing: border-box;
        border-bottom: 1px solid #ccc;
    }
