#userInfo {
  background-color: #ecfaefe6;
  /* 创建完全的胶囊形状，border-radius 等于高度的一半 */
  border-radius: 25px; 
  padding: 0 15px; /* 水平内边距 */
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  height: 50px; /* 固定高度，与头像一致 */
  /* 可选：添加边框 */
  border: 1px solid #d4a373;
  position: relative;
  /* 垂直居中对齐整个用户信息区域 */
  margin: 10px 0;
  /* 确保下拉菜单不会被裁剪 */
  overflow: visible;
}

/* 下拉内容区域 */
.dropdown-content {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  border-radius: 8px;
  z-index: 1000; /* 提高z-index确保在最上层 */
  /* 默认隐藏 */
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  margin-top: 5px;
  border: 1px solid #e0e0e0;
}

/* 当鼠标悬停在 userInfo 上时显示下拉内容 */
#userInfo:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* 下拉菜单中的项目样式 */
.dropdown-item {
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  color: #333;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.dropdown-item:hover {
  background-color: #f5f5f5;
}

.dropdown-item:last-child {
  border-bottom: none;
  border-radius: 0 0 8px 8px;
}

.dropdown-item:first-child {
  border-radius: 8px 8px 0 0;
}