/* ==================== 用户登录头像下拉菜单样式 ==================== */
/* 来源: sitex_pc/css/style.6.14.1.1689415232.css 中 .navbar-action .profile 相关样式 */

/* 容器 */
.navbar-action .profile {
    display: inline-block;
    height: 45px;
    margin-bottom: 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
    vertical-align: top;
}

/* 菜单项 */
.navbar-action .profile .menu-item {
    height: 45px;
}

/* 下拉项 */
.navbar-action .profile .dropdown {
    padding-right: 17px;
}

.navbar-action .profile .dropdown:after {
    position: absolute;
    right: 0;
    top: 0;
    content: "";
    height: 26px;
    width: 16px;
    transition: transform .3s;
    opacity: .5;
    background-image: var(--theme-dropdown-arrow);
    background-size: 16px;
    background-position: 50%;
    background-repeat: no-repeat;
}

.navbar-action .profile .dropdown:hover:after {
    transform: rotate(-180deg);
    transition: transform .3s;
}

/* 链接通用样式 */
.navbar-action .profile a {
    display: inline-block;
    line-height: 26px;
    vertical-align: top;
    color: var(--theme-gray-color);
    text-decoration: none;
}

.navbar-action .profile a:hover {
    color: var(--theme-hover);
}

/* 用户头像容器 */
.navbar-action .profile .menu-item-avatar {
    position: relative;
    display: inline-block;
    width: 26px;
    height: 26px;
    margin-right: 5px;
    vertical-align: top;
}

/* 头像图片 */
.navbar-action .profile img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

/* 用户名 */
.navbar-action .profile .menu-item-name {
    display: inline-block;
    max-width: 120px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    vertical-align: top;
}

/* 下拉菜单 */
.navbar-action .profile .dropdown-menu {
    display: block;
    opacity: 0;
    margin: 0;
    min-width: 120px;
    transform: rotateX(-90deg);
    transform-origin: 0 0;
    transition: transform .3s, opacity .1s .2s, visibility .1s .3s;
    visibility: hidden;
    backface-visibility: hidden;
    border-radius: 0;
    border: 0;
    background-color: var(--theme-el-bg-color);
}

/* 下拉箭头装饰 */
.navbar-action .profile .dropdown-menu:before,
.navbar-action .profile .dropdown-menu:after {
    position: absolute;
    left: 40px;
    margin-left: -7px;
    border: 7px solid transparent;
    content: "";
    opacity: 0;
    transition: opacity .2s 0s;
}

.navbar-action .profile .dropdown-menu:before {
    top: -14px;
    border-bottom: 7px solid var(--theme-line-color);
}

.navbar-action .profile .dropdown-menu:after {
    z-index: 1;
    top: -13px;
    border-bottom: 7px solid var(--theme-el-bg-color);
}

/* 下拉菜单项链接 */
.navbar-action .profile .dropdown-menu a {
    position: relative;
    display: block;
    line-height: 20px;
}

/* Hover 显示下拉菜单 */
.navbar-action .profile .dropdown:hover .dropdown-menu {
    opacity: 1;
    transform: rotateX(0);
    transition: transform .3s, opacity .1s;
    visibility: visible;
}

.navbar-action .profile .dropdown:hover .dropdown-menu:after,
.navbar-action .profile .dropdown:hover .dropdown-menu:before {
    opacity: 1;
    transition: transform .2s, opacity .1s;
}

/* 下拉菜单项基础样式（Bootstrap .dropdown-menu>li>a） */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    float: left;
    min-width: 160px;
    padding: 5px 0;
    margin: 2px 0 0;
    list-style: none;
    font-size: 14px;
    text-align: left;
    background-color: var(--theme-el-bg-color);
    border: 1px solid rgba(0, 0, 0, .15);
    border-radius: 2px;
    box-shadow: 0 6px 12px hsla(var(--theme-color-hsl), .2);
    background-clip: padding-box;
}

.dropdown-menu > li > a {
    display: block;
    padding: 3px 20px;
    clear: both;
    font-weight: 400;
    line-height: 1.42857;
    color: #232323;
    white-space: nowrap;
}

.dropdown-menu > li > a:focus,
.dropdown-menu > li > a:hover {
    text-decoration: none;
    color: #161616;
    background-color: #f5f5f5;
}
