.site-header {
  position: relative;
  z-index: 7;
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto minmax(250px, 1fr);
  align-items: center;
  height: 92px;
  padding: 0 clamp(38px, 4.7vw, 82px);
}

.site-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  text-decoration: none;
}

.site-header .brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  overflow: hidden;
  border: 1px solid rgba(244, 200, 121, 0.68);
  border-radius: 50%;
  background: rgba(255, 236, 184, 0.18);
  box-shadow: 0 0 18px rgba(255, 179, 71, 0.22), inset 0 0 10px rgba(255, 246, 207, 0.18);
}

.site-header .brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-header .brand-name {
  color: var(--gold, #f4c879);
  font-family: "STSong", "SimSun", serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0;
}

.site-header .brand-line {
  width: 1px;
  height: 17px;
  background: rgba(244, 200, 121, 0.32);
}

.site-header .brand-tagline {
  color: rgba(255, 228, 177, 0.82);
  font-size: 14px;
  white-space: nowrap;
}

.site-header .main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(34px, 4vw, 62px);
  white-space: nowrap;
}

.site-header .main-nav a {
  position: relative;
  padding: 10px 0 18px;
  color: rgba(255, 241, 210, 0.72);
  font-size: 17px;
  text-decoration: none;
  transition: color 180ms ease, text-shadow 180ms ease;
}

.site-header .main-nav a:hover,
.site-header .main-nav a.active {
  color: var(--gold, #f4c879);
  text-shadow: 0 0 16px rgba(244, 200, 121, 0.24);
}

.site-header .main-nav a.active::before,
.site-header .main-nav a.active::after {
  position: absolute;
  left: 50%;
  content: "";
  transform: translateX(-50%);
}

.site-header .main-nav a.active::before {
  bottom: 6px;
  width: 64px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold, #f4c879), transparent);
}

.site-header .main-nav a.active::after {
  bottom: 1px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--gold, #f4c879);
  box-shadow: 0 0 15px rgba(244, 200, 121, 0.86);
}

.site-header .header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 26px;
}

.site-header .search-button {
  position: relative;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.site-header .search-button::before {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 15px;
  height: 15px;
  content: "";
  border: 2px solid rgba(255, 246, 224, 0.92);
  border-radius: 50%;
}

.site-header .search-button::after {
  position: absolute;
  top: 23px;
  left: 23px;
  width: 11px;
  height: 2px;
  content: "";
  background: rgba(255, 246, 224, 0.92);
  border-radius: 99px;
  transform: rotate(45deg);
  transform-origin: left center;
}

.site-header .login-button {
  min-width: 132px;
  padding: 10px 20px;
  color: var(--gold, #f4c879);
  text-align: center;
  text-decoration: none;
  border: 1px solid rgba(244, 200, 121, 0.52);
  border-radius: 13px;
  background: rgba(106, 68, 33, 0.14);
  box-shadow: 0 8px 22px rgba(94, 53, 14, 0.12), inset 0 0 16px rgba(255, 235, 179, 0.05);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.site-header .login-button:hover,
.site-header .login-button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 218, 143, 0.62);
  background: linear-gradient(180deg, rgba(255, 239, 194, 0.22), rgba(132, 82, 34, 0.26));
  box-shadow: 0 13px 30px rgba(255, 166, 49, 0.18), 0 0 20px rgba(255, 190, 90, 0.1), inset 0 0 22px rgba(255, 238, 190, 0.09);
}

@media (max-width: 1220px) {
  .site-header {
    grid-template-columns: 1fr auto;
    height: 82px;
  }

  .site-header .main-nav {
    display: none;
  }
}

@media (max-width: 760px) {
  .site-header {
    height: 70px;
    padding: 0 18px;
  }

  .site-header .brand-line,
  .site-header .brand-tagline,
  .site-header .search-button {
    display: none;
  }

  .site-header .brand-name {
    font-size: 22px;
  }

  .site-header .brand-mark {
    width: 36px;
    height: 36px;
  }

  .site-header .login-button {
    min-width: auto;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 14px;
  }
}
