/* 分类菜单样式 */
.category-wrapper {
    width: 190px;
    position: relative;
    z-index: 100;
}

/* 分类标题 */
.category-title {
    height: 40px;
    line-height: 40px;
    padding: 0 15px;
    background: #333;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.icon-category {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 5px;
    vertical-align: middle;
}

/* 分类内容 */
.category-content {
    display: none;
    position: absolute;
    left: 0;
    top: 40px;
    width: 100%;
    background: #fff;
    border: 1px solid #eee;
}

/* 显示分类内容 */
.category-content.show {
    display: block;
}

/* 分类列表 */
.category-list {
    background: #fff;
}

/* 分类项 */
.category-item {
    position: relative;
    height: 31px;
    line-height: 31px;
    padding: 0 10px;
}

.category-item:hover {
    background: #f7f7f7;
}

.category-item > a {
    display: block;
    color: #333;
    font-size: 14px;
    text-decoration: none;
}

.category-item > a span {
    margin: 0 4px;
    color: #666;
}

.category-item > a span:first-child {
    margin-left: 0;
}

/* 弹出层 */
.category-popup {
    display: none;
    position: absolute;
    left: 190px;
    top: -1px;
    width: 800px;
    min-height: 478px;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    padding: 20px;
}

.category-item:hover .category-popup {
    display: block;
}

/* 弹出层内容 */
.popup-content {
    display: flex;
    flex-wrap: wrap;
}

.popup-item {
    width: 25%;
    margin-bottom: 20px;
    padding-right: 20px;
}

.popup-item h4 {
    height: 22px;
    line-height: 22px;
    font-size: 12px;
    color: #333;
    font-weight: 700;
    margin-bottom: 10px;
}

.popup-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.popup-links a {
    color: #666;
    font-size: 12px;
    text-decoration: none;
    white-space: nowrap;
    padding-right: 10px;
    position: relative;
}

.popup-links a:hover {
    color: #e1251b;
}

.popup-links a::after {
    content: '/';
    position: absolute;
    right: 0;
    color: #ddd;
}

.popup-links a:last-child::after {
    display: none;
}

/* 防止菜单消失的连接区域 */
.category-item::before {
    content: '';
    position: absolute;
    right: -10px;
    top: 0;
    width: 10px;
    height: 100%;
    background: transparent;
}

.category-popup::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 0;
    width: 10px;
    height: 100%;
    background: transparent;
}