/* user-profile.css - 用户资料组件样式 */

/* 用户头像框样式 */
.user-profile {
    position: absolute;
    left: 20px; /* 桌面端定位在左侧 */
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    background: #e0f7fa;
    padding: 10px 15px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    margin-right: 0;
    border: 1px solid rgba(200, 200, 200, 0.3);
}

.user-profile:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-52%);
}

@media (max-width: 768px) {
    .user-profile {
        position: static;
        transform: none;
        margin-bottom: 1rem;
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .user-profile:hover {
        transform: translateY(-2px);
    }
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
    border: 2px solid #4ca3e0;
}

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

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.user-status {
    font-size: 12px;
    color: #666;
    margin-left: -5px; /* 向左移动一点 */
}