/* userreg */
.reg-main
{
    display: flex;
}
.cc-userreg-left {
}

.flex-1 {
    flex: 1 1 0%;
}


/* navbar */
.cc-navbar {
    height: 4rem;
    line-height: 4rem;
    padding-left: 20px;
    padding-right: 20px;
    white-space: nowrap;
    overflow: hidden;
}
    .cc-navbar:hover {
        text-underline-position: under;
        text-underline-offset: 5px;
        text-decoration-color: red;
        text-decoration-line: underline;
        /*        background-color: rgb(75 56 50);*/
        color: rgb(230 77 1);
    }

.cc-navbar-menu {
    position: absolute;
    display: none;
    top: calc(100%);
    background-color: rgb(253 243 226);
    padding: 0;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    width: 200px;
}

/* 当菜单项超过6个时自动变为两列 */
.cc-navbar-menu:has(li:nth-child(7)) {
    width: 400px;
    column-count: 2;
}

/* 当菜单项超过12个时自动变为三列 */
.cc-navbar-menu:has(li:nth-child(13)) {
    width: 600px;
    column-count: 3;
}

.cc-navbar-menu li {
    height: 40px;
    width: 200px;
    padding-left: 20px;
    line-height: 40px;
    color: rgb(75 56 50);
    break-inside: avoid;
}

.cc-navbar-menu li:hover {
    font-weight: bold;
    color: rgb(230 77 1);
    background-color: rgba(230, 77, 1, 0.1);
}

.cc-navbar-menu li a {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.cc-navbar-menu li a:hover {
    font-weight: bold;
    color: rgb(230 77 1);
}

/* 显示下拉菜单 */
.dropdown:hover .cc-navbar-menu {
    display: block;
}

/* 向左展开的菜单 */
.menu-left {
    left: auto !important;
    right: 0 !important;
    transform: translateX(0) !important;
}

/* 强制最后三个导航项的子菜单向左展开 */
.dropdown:nth-last-child(1) .cc-navbar-menu,
.dropdown:nth-last-child(2) .cc-navbar-menu,
.dropdown:nth-last-child(3) .cc-navbar-menu {
    left: auto !important;
    right: 0 !important;
}