/* 容器样式 */
.catalog-container {
    width: 1420px;
    margin: 0 auto;
    padding: 20px 0;
    position: relative;
    transition: all 0.3s ease;
}

.catalog-wrapper {
    border-radius: 12px;
    background: #fff;
    /* box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1); */
}

.catalog-content {
    padding: 0px;
}

/* 分类区块样式 */
.catalog-section {
    /* margin-bottom: 40px; */
    position: relative;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    /* padding: 20px; */
    /* background: linear-gradient(to bottom, #ffffff, #fafbfc); */
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02); */
}

.catalog-section:last-child {
    margin-bottom: 0;
}

/* 一级分类样式 */
.catalog-level1 {
    /* margin: -20px -20px 0px -20px; */
    position: relative;
}

.level1-title {
    display: flex;
    align-items: center;
    padding: 10px 13px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 1px solid #eaeaea;
    border-radius: 10px 10px 0 0;
    position: relative;
    overflow: hidden;
}

.level1-title .title-text {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    position: relative;
    padding-left: 0;
    text-shadow: 1px 1px 0 rgba(255,255,255,0.8);
}

/* 二级分类容器 */
.catalog-level2-wrapper {
    display: flex;
    flex-wrap: wrap;
    margin: 9px;
    /* padding: 20px 15px 0; */
    position: relative;
}

/* 带有三级分类的二级分类样式 */
.catalog-level2-with-children {
    width: 100%;
    /* margin: 0 12px 20px; */
    background-color: #fff;
    /* border-radius: 10px; */
    /* border: 1px solid #f0f0f0; */
    overflow: hidden;
    /* box-shadow: 0 2px 8px rgba(0,0,0,0.03); */
}

.level2-title {
    display: flex;
    align-items: center;
    padding: 11px 12px;
    margin-left: 10px;
    background: linear-gradient(to right, #f8f9fa, #ffffff);
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.level2-title:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 152px;
    height: 1px;
    background: linear-gradient(to right, #1e9fff, #ffffff00);
}

.level2-title i {
    font-size: 18px;
    color: #017cff;
    margin-right: 10px;
    opacity: 0.9;
}

.level2-title .title-text {
    font-size: 16px;
    font-weight: 600;
    color: #017cff;
    position: relative;
}

/* 三级分类网格 */
.catalog-level3-grid {
    display: flex;
    flex-wrap: wrap;
    padding-top: 4px;
    /* padding-left: 8px; */
    margin: 0px;
    /* background: linear-gradient(to bottom, #ffffff, #fafafa); */
}

/* 分类项通用样式 */
.catalog-item {
    width: calc(14.2% - 16px);
    margin: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.item-content {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background-color: #fff;
    border-radius: 8px;

    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.catalog-item:hover .item-content {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: #e6e6e6;
    background: linear-gradient(to right, #fff, #fafafa);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.item-icon {
    width: 45px;
    height: 45px;
    flex-shrink: 0;
    margin-right: 12px;
    position: relative;
    z-index: 1;
}

.catalog-item:hover .item-icon:after {
    opacity: 1;
}

.item-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.catalog-item:hover .item-icon img {
    animation: bounce 1s ease;
}

.item-info {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.item-title {
    font-size: 16px;
    color: #333;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: all 0.3s ease;
    margin: 0;
    padding: 0 5px;
}

.catalog-item:hover .item-title {
    color: #dc0e18;
}

/* 分隔线 */
.catalog-section:not(:last-child) {
    position: relative;
    margin-bottom: 31px;
}

.catalog-section:not(:last-child):after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 1px;
    background: linear-gradient(to right, transparent, #eaeaea, transparent);
}

/* 左侧漂浮菜单 */
.float-menu {
    position: fixed;
    left: calc((100% - 1420px) / 2 - 216px);
    width: 216px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.float-menu-header {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.float-menu-search {
    flex: 1;
    position: relative;
}

.float-menu-search input {
    width: 105px;
    padding: 8px 15px;
    border: 1px solid #eaeaea;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.float-menu-search input:focus {
    border-color: #1e9fff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(30,159,255,0.1);
}

.float-menu-search i {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 14px;
    cursor: pointer;
}

.float-menu-toggle {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
    background: #1e9fff;
    box-shadow: 0 2px 8px rgba(30, 159, 255, 0.3);
}

.float-menu-toggle:hover {
    background: #1890ff;
    transform: scale(1.05);
}

.float-menu-toggle i {
    font-size: 18px;
    color: #fff;
    transition: all 0.3s ease;
}

.float-menu.collapsed .float-menu-toggle {
    background: #1e9fff;
    box-shadow: 0 2px 8px rgba(30, 159, 255, 0.3);
}

.float-menu.collapsed .float-menu-toggle i {
    transform: rotate(180deg);
}

/* 菜单收起状态 */
.float-menu.collapsed {
    transform: translateX(-220px);
}

.float-menu.collapsed .float-menu-content {
    display: none;
}

/* 添加开关按钮的提示文字 */
.float-menu-toggle::after {
    content: '收起';
    position: absolute;
    right: 50px;
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.float-menu.collapsed .float-menu-toggle::after {
    content: '展开';
}

.float-menu-toggle:hover::after {
    opacity: 1;
    right: 45px;
}

.float-menu-content {
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    padding: 10px 0;
}

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

.float-menu-item {
    margin: 0;
    padding: 0;
}

.float-menu-item > .level1-link {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: #333;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.float-menu-item > .level1-link i {
    margin-right: 8px;
    font-size: 16px;
    color: #1e9fff;
}

.float-menu-item > .level1-link:hover,
.float-menu-item > .level1-link.active {
    color: #1e9fff;
    background: rgba(30,159,255,0.05);
}

.float-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #fafafa;
}

.float-submenu-item {
    margin: 0;
    padding: 0;
}

.float-submenu-item .level2-link {
    display: flex;
    align-items: center;
    padding: 8px 15px 8px 30px;
    color: #666;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
}

.float-submenu-item .level2-link .level2-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.float-submenu-item .level2-link span {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.float-submenu-item .level2-link:hover,
.float-submenu-item .level2-link.active {
    color: #1e9fff;
    background: rgba(30,159,255,0.05);
}

/* 响应式布局 */
@media screen and (min-width: 1890px) {
    .float-menu {
        transform: none !important;
        left: calc((100% - 1420px) / 2 - 228px);
    }
    
    .float-menu.collapsed {
        transform: none !important;
    }
    
    .float-menu-content {
        display: block !important;
    }
    
    .float-menu-toggle {
        display: none;
    }
}

@media screen and (max-width: 1889px) {
    .float-menu {
        transform: translateX(-158px);
        left: calc((100% - 1420px) / 2 - 228px);
    }
    
    .float-menu.collapsed {
        transform: translateX(-158px);
    }
    
    .float-menu:not(.collapsed) {
        transform: translateX(0);
    }
    
    .float-menu-content {
        display: none;
    }
    
    .float-menu:not(.collapsed) .float-menu-content {
        display: block;
    }
    
    .float-menu-toggle {
        display: flex;
    }
}

 
 


