.ty-top-submenu {
    width: 100%;
    height: 60px;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 101;
    box-sizing: border-box;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    border-bottom: 1px solid var(--ty-color-border-secondary, rgba(174, 174, 174, 25%));
    border-top-left-radius: 6px;
    background: var(--ty-color-bg-container-gery, #f9fafb);

    & * {
        box-sizing: border-box;
    }

    .ps__rail-y {
        background-color: transparent !important;

        /* 设置垂直滚动条轨道的背景色 */
    }

    .ps__thumb-y {
        width: 6px !important;
        background-color: #dee0e5 !important;

        /* 设置垂直滚动条滑块的背景色 */
    }

    .ps__rail-x {
        background-color: transparent !important;

        /* 设置纵向滚动条轨道的背景色 */
    }

    .ps__thumb-x {
        background-color: #dee0e5 !important;

        /* 设置纵向滚动条滑块的背景色 */
    }

    &-left {
        &-title {
            display: flex;
            align-items: center;
            border-radius: 6px;
            padding-right: 10px;

            &:hover {
                background-color: rgba(174, 174, 174, 10%);
            }

            .ty-icon-box {
                width: 40px;
                height: 40px;
                font-size: 40px;
                background-color: transparent;
                border-radius: 8px;
                display: flex;
                align-items: center;
                justify-content: center;

                .ty-icon-txt {
                    font-size: 24px;
                    color: var(--ty-color-primary, #1677ff);
                }

                img {
                    object-fit: contain;
                    font-size: initial;
                    line-height: initial;
                    max-width: 100%;
                    max-height: 100%;
                }
            }

            .ty-title-name {
                font-size: 18px;
                font-weight: 600;
                color: var(--ty-color-text-heading, rgba(0, 0, 0, 85%));
                line-height: 24px;
            }

            .mask-Beta {
                background: #ff9000;
                padding: 2px;
                border-radius: 2px;
                font-size: 12px;
                font-weight: 400;
                color: #fff;
                line-height: 12px;
                margin-left: 4px;
            }

            .mask-New {
                background: #00b578;
                padding: 0 2px 2px;
                border-radius: 2px;
                font-size: 12px;
                font-weight: 400;
                color: #fff;
                line-height: 12px;
                margin-left: 4px;
            }
        }
    }

    &-center {
        flex: 1;
        position: relative;
        overflow-y: auto;
        margin: 0 32px;

        .ty-submenu-wrap {
            width: 100%;
            box-sizing: border-box;
            list-style-type: none;
            display: flex;
            align-items: center;
            flex-wrap: nowrap;
            margin: 0;
            padding: 10px 0;

            .ty-submenu-item {
                flex-grow: 0;
                flex-shrink: 0;
                padding: 8px 16px;
                border-radius: 6px;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
                text-align: center;
                cursor: pointer;
                font-size: 14px;
                line-height: 24px;
                font-weight: 400;
                color: var(--ty-color-text-heading, rgba(0, 0, 0, 85%));
                transition: backgroundcolor 0.3s cubic-bezier(0.2, 0, 0, 1) 0s;
                margin-right: 4px;

                &:hover {
                    background: hsla(0deg, 0%, 68.2%, 10%);
                }

                &.ty-submenu-active {
                    background: hsla(0deg, 0%, 68.2%, 25%);
                }
            }
        }
    }

    &-right {
        display: flex;
        align-items: center;
        cursor: pointer;
        color: var(--ty-color-text-label, rgba(0, 0, 0, 65%));
        font-size: 14px;

        &-item {
            display: flex;
            align-items: center;
            cursor: pointer;

            .ty-doc-desc {
                line-height: 1;
                margin-right: 4px;
            }

            &:hover {
                color: var(--ty-color-primary, #1677ff);
            }

            &:hover .ty-icon {
                color: #1677ff;
            }

            .ty-icon {
                color: #808182;
            }
        }

        .ty-divider {
            width: 1px;
            height: 20px;
            background-color: #aeaeae40;
            margin: 0 12px;
        }
    }

    .ty-custom_popover {
        .ant-popover-inner {
            min-width: 116px;
            background: #fff;
            box-shadow: 0 9px 28px 8px rgba(0, 0, 0, 5%), 0 6px 16px 0 rgba(0, 0, 0, 8%);
            border-radius: 6px;
            padding: 4px 0;
        }

        &.ant-popover-placement-bottom {
            .ant-popover-inner {
                transform: translateY(5px);
            }
        }

        &.ant-popover-placement-top {
            .ant-popover-inner {
                transform: translateY(-5px);
            }
        }

        .ty-submenu-child-item {
            width: 100%;
            height: 32px;
            font-size: 14px;
            font-family: PingFangSC, 'PingFang SC';
            color: var(--ty-color-text-label, rgba(0, 0, 0, 65%));
            line-height: 32px;
            text-align: center;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            padding: 0 16px;

            &:hover {
                background-color: #fafafa;
            }

            &.ty-submenu-child-active {
                background-color: #fafafa;
            }
        }
    }
}