/* 用户信息样式 */
.user-info {
    position: relative;
    margin-left: 10px;
}

.user-info-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    /* padding: 8px 12px; */
    border-radius: 25px;
    transition: all 0.3s ease;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #6E544C;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #6E544C;
    line-height: 1.2;
}

.user-points {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
}

.points-icon {
    font-size: 14px;
    width: 20px;
    height: 20px;
}

.points-icon img {
    width: 20px;
    height: 20px;
}

.points-value {
    color: #FF6B35;
    font-weight: 600;
}

.points-label {
    color: #999;
    font-size: 11px;
}

.dropdown-toggle::after {
    display: inline-block;
    margin-left: .255em;
    vertical-align: .255em;
    content: "";
    border-top: .3em solid currentColor;
    border-right: .3em solid transparent;
    border-bottom: 0;
    border-left: .3em solid transparent;
    transition: transform 0.3s ease;
}

.user-info.active .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* 悬浮时箭头也旋转 */
.user-info:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* 下拉菜单样式 */
.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 160px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 8px;
}

.user-info.active .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 悬浮时也显示下拉 */
.user-info:hover .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #6E544C;
}

.dropdown-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* 登录样式 */
.login {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.login a {
    color: #6E544C;
    text-decoration: none;
}

.login-btn-line {
    width: 1px;
    height: 10px;
    background-color: #6E544C;
}

.login-btn-line:hover {
    background-color: #555;
}
