/* 顶部导航栏样式 */
.header {
  display: flex;
  align-items: center;
  padding: 0 24px;
  background: white;
  border-bottom: 1px solid #E5E7EB;
  position: relative;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.header-brand {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 12px;
  min-width: 0;
}

.header-logo {
  display: block;
  flex-shrink: 0;
  height: 36px;
  width: auto;
  max-width: min(200px, 36vw);
  object-fit: contain;
  object-position: left center;
}

.header-brand-tagline {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  color: #9ca3af;
  line-height: 1.4;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .header-brand-tagline {
    font-size: 12px;
    white-space: normal;
    max-width: 42vw;
  }
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 积分显示 */
.user-points {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: #f9fafb;
  border-radius: 8px;
}

.user-points-icon {
  font-size: 18px;
  line-height: 1;
}

.user-points-value {
  font-weight: 600;
  color: #667eea;
}

/* 用户头像 */
.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s;
}

.user-avatar:hover {
  transform: scale(1.05);
}

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

/* 按钮样式 */
.btn {
  padding: 8px 16px;
  border: 1px solid #D1D5DB;
  background: white;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.btn:hover {
  background: #F9FAFB;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}

.btn-icon {
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 用户菜单下拉 */
.user-menu {
  position: absolute;
  top: 50px;
  right: 24px;
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  min-width: 200px;
  z-index: 1000;
  display: none;
}

.user-menu.show {
  display: block;
}

.user-menu-item {
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.2s;
  border-bottom: 1px solid #F3F4F6;
}

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

.user-menu-item:hover {
  background: #F9FAFB;
}

.user-menu-item.danger {
  color: #EF4444;
}
