.site-header {
  background: #fff;
  border-bottom: 1px solid #e8eaed;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.site-logo img {
  height: 40px;
  width: auto;
  display: block;
}

.site-search {
  flex: 1;
  max-width: 480px;
  display: flex;
  margin: 0 auto;
}

.site-search input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 14px;
  border: 1px solid #dadce0;
  border-right: none;
  border-radius: 6px 0 0 6px;
  font-size: 14px;
  font-family: inherit;
  color: #202124;
  background: #fff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.site-search input::placeholder {
  color: #9aa0a6;
}

.site-search input:focus {
  border-color: #3366cc;
  box-shadow: inset 0 0 0 1px #3366cc;
}

.site-search button {
  height: 38px;
  padding: 0 20px;
  background: #3366cc;
  color: #fff;
  border: 1px solid #3366cc;
  border-radius: 0 6px 6px 0;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}

.site-search button:hover {
  background: #2a5db0;
  border-color: #2a5db0;
}

.site-nav {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.site-nav a,
.site-nav span {
  color: #3c4043;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
  white-space: nowrap;
  line-height: 1.2;
}

.site-nav a:hover {
  background: #f1f3f4;
  text-decoration: none;
  color: #202124;
}

.site-nav .nav-user {
  color: #5f6368;
  font-weight: 400;
  padding-right: 4px;
}

.site-nav .nav-login {
  background: #3366cc;
  color: #fff !important;
  padding: 8px 16px;
}

.site-nav .nav-login:hover {
  background: #2a5db0;
  color: #fff !important;
}

@media (max-width: 900px) {
  .site-header {
    position: static;
    box-shadow: none;
  }

  .site-header-inner {
    flex-wrap: wrap;
    padding: 10px 16px;
    gap: 10px;
  }

  .site-search {
    order: 3;
    flex-basis: 100%;
    max-width: none;
    margin: 0;
  }

  .site-nav .nav-user {
    display: none;
  }
}

@media (max-width: 480px) {
  .site-logo img {
    height: 34px;
  }

  .site-nav a {
    padding: 6px 10px;
    font-size: 13px;
  }

  .site-search input,
  .site-search button {
    height: 36px;
    font-size: 13px;
  }
}
