/* Header styles extracted from templates/components/header.html */
.header {
  background-color: #fff;
  color: #333;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #e5e7eb;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #333;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.25rem;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: #3b82f6;
  border-radius: 8px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.btn-icon-img {
  width: 16px;
  height: 16px;
  margin-bottom: -2px;
}

.search-btn {
  background-color: #181818;
  color: white;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* 用户信息区域样式 */
.user-info {
  cursor: pointer;
}

.avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #1f2937;
  transition: border-color 0.2s ease;
}

.username {
  font-weight: 500;
  color: #333;
  margin-left: -4px;
  transition: color 0.2s ease;
  max-width: 160px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 当用户信息区域被悬停时，同时改变头像边框和用户名颜色 */
.user-info:hover .avatar {
  border-color: #2563eb;
}

.user-info:hover .username {
  color: #3b82f6;
}

/* 下拉菜单样式 */
.user-dropdown {
  display: none;
  position: absolute;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 8px 0;
  min-width: 160px;
}

.dropdown-item {
  display: block;
  padding: 8px 16px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.2s;
}

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

.dropdown-divider {
  height: 1px;
  background-color: #e5e7eb;
  margin: 4px 0;
}

