﻿.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-icon-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #999999;
    font-size: 12px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
}

    .nav-icon-btn:hover {
        color: #ff6b35;
    }

.night-mode .nav-icon-btn {
    color: #ffffff;
}

.nav-icon-img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
}

.user-menu-wrapper {
    position: relative;
}

.user-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: visible;
    color: #ffffff;
}

    .user-icon:hover {
        background: rgba(255, 255, 255, 0.3);
    }

/*.user-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}*/

/* 圆形图片样式类 */
.circle-img {
    width: 40px;
    height: 40px;
    /* 核心属性：圆形裁剪 */
    border-radius: 50%;
    /* 关键：图片填充容器且不变形（避免拉伸） */
    object-fit: cover;
    /* 可选：防止图片超出容器 */
    overflow: hidden;
}

.night-mode .user-icon {
    background: rgba(255, 255, 255, 0.15);
}

    .night-mode .user-icon:hover {
        background: rgba(255, 255, 255, 0.25);
    }

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    list-style: none;
    padding: 8px 0;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

    .user-dropdown-menu::before {
        content: '';
        position: absolute;
        bottom: 100%;
        left: 0;
        right: 0;
        height: 8px;
        background: transparent;
    }

    .user-dropdown-menu.show {
        opacity: 1;
        visibility: visible;
    }

    .user-dropdown-menu li {
        margin: 0;
    }

    .user-dropdown-menu a {
        display: block;
        padding: 10px 20px;
        color: #333;
        text-decoration: none;
        font-size: 14px;
        text-align: center;
    }

        .user-dropdown-menu a:hover {
            background: #f5f5f5;
            color: #ff6b35;
        }
