.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: linear-gradient(135deg, #FAF7F2 0%, #F5EFE4 100%);
  box-shadow: 0 2px 12px rgba(139, 69, 19, 0.08);
  z-index: 1000;
  border-bottom: 1px solid var(--border-light);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex-shrink: 0;
}

.logo-icon {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-brown);
  letter-spacing: 2px;
  white-space: nowrap;
  font-family: 'STSong', 'SimSun', serif;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  justify-content: center;
}

.nav-item {
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
}

.nav-item:hover {
  color: var(--primary-brown);
  background: rgba(139, 69, 19, 0.06);
}

.nav-item.active {
  color: var(--primary-brown);
  font-weight: 600;
}

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-gold), var(--primary-brown));
  border-radius: 1px;
}

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

.search-box {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 0 4px 0 14px;
  height: 34px;
  width: 210px;
  flex-shrink: 0;
  transition: all 0.3s ease;
  overflow: hidden;
}

.search-box:focus-within {
  border-color: var(--primary-gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.15);
}

.search-type {
  font-size: 12px;
  color: var(--text-secondary);
  border-right: 1px solid var(--border-light);
  padding-right: 8px;
  margin-right: 4px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
}

.search-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0 6px;
  font-size: 12px;
  color: var(--text-primary);
  outline: none;
  line-height: 1;
  height: 100%;
}

.search-input::placeholder {
  color: var(--text-tertiary);
}

.search-icon {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-brown), var(--primary-brown-light));
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-icon img {
  width: 13px;
  height: 13px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.search-icon:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(139, 69, 19, 0.25);
}

.user-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.create-btn-wrap {
  display: flex;
  align-items: center;
}

.create-spectrum-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: linear-gradient(135deg, var(--primary-brown), var(--primary-brown-light));
  border: none;
  border-radius: 20px;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.create-spectrum-btn img {
  width: 13px;
  height: 13px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.create-spectrum-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 69, 19, 0.25);
}

.login-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: transparent;
  border: 1px solid var(--primary-brown);
  border-radius: 20px;
  color: var(--primary-brown);
  font-size: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.login-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.login-btn:hover {
  background: var(--primary-brown);
  color: #fff;
}

.login-btn:hover .login-icon {
  filter: brightness(0) invert(1);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 20px;
  transition: all 0.3s ease;
  position: relative;
}

.user-info:hover {
  background: rgba(139, 69, 19, 0.06);
}

.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border-light);
}

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

.user-name {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 140px;
  overflow: hidden;
  display: none;
  z-index: 1001;
  border: 1px solid var(--border-light);
}

.user-dropdown.show {
  display: block;
  animation: fadeInDown 0.2s ease;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-item {
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background: var(--bg-warm);
  color: var(--primary-brown);
}

.dropdown-divider {
  height: 1px;
  background: var(--border-light);
  margin: 4px 0;
}
