* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: #333333;
  background: #f5f5f5;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #ffffff;
  border-top: 1px solid #e8e8e8;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.site-header__inner {
  max-width: 1600px;
  width: 100%;
  height: 72px;
  margin: 0 auto;
  padding: 0 0px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 32px;
}

.site-header__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  justify-self: start;
}

.site-header__logo img {
  width: 147px;
  height: auto;
}

.site-header__logo-icon {
  display: flex;
  flex-shrink: 0;
  line-height: 0;
}

.site-header__logo-text {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #0052d9;
  line-height: 1;
}

.site-header__nav {
  justify-self: center;
}

.site-header__nav-list {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}

.site-header__nav-list a {
  font-size: 15px;
  font-weight: 400;
  color: #333333;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.site-header__nav-list a:hover {
  color: #0052d9;
}

.site-header__tools {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-self: end;
}

.site-header__search,
.site-header__lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: none;
  background: transparent;
  color: #666666;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.2s ease;
}

.site-header__search:hover,
.site-header__lang:hover {
  color: #0052d9;
}

.site-header__divider {
  width: 1px;
  height: 14px;
  background: #d9d9d9;
}

.site-header__lang-text {
  font-size: 14px;
  color: #666666;
  white-space: nowrap;
}

.site-header__lang-text .is-active {
  color: #333333;
}

.site-header__menu {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #333333;
  cursor: pointer;
  flex-shrink: 0;
}

.site-header__menu-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 20px;
  height: 16px;
}

.site-header__menu-bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-header__overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.site-header.is-menu-open .site-header__overlay {
  opacity: 1;
  visibility: visible;
}

.site-header.is-menu-open .site-header__menu-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.is-menu-open .site-header__menu-bar:nth-child(2) {
  opacity: 0;
}

.site-header.is-menu-open .site-header__menu-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

body.is-nav-open {
  overflow: hidden;
}

.page-main {
  max-width: 1600px;
  margin: 0 auto;
  padding: 48px 24px;
}

@media (max-width: 1600px) {
  .site-header__inner {
    padding: 0 24px;
  }

  .site-header__nav-list {
    gap: 28px;
  }
}

@media (max-width: 1024px) {
  .site-header__inner {
    height: 64px;
    padding: 0 20px;
    column-gap: 16px;
  }

  .site-header__logo img {
    width: 120px;
  }

  .site-header__nav-list {
    gap: 16px;
  }

  .site-header__nav-list a {
    font-size: 13px;
  }

  .site-header__lang-text {
    display: none;
  }
}

@media (max-width: 768px) {
  .site-header__inner {
    display: flex;
    justify-content: space-between;
    height: 56px;
    padding: 0 16px;
    column-gap: 12px;
  }

  .site-header__logo {
    flex-shrink: 0;
  }

  .site-header__logo img {
    width: 100px;
  }

  .site-header__tools {
    flex-shrink: 0;
    gap: 8px;
  }

  .site-header__menu {
    display: inline-flex;
  }

  .site-header__overlay {
    display: block;
    top: 56px;
    left: 0;
    right: 0;
    width: 100%;
  }

  .site-header__nav {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    width: 100vw;
    max-width: 100vw;
    z-index: 1001;
    max-height: calc(100vh - 56px);
    margin: 0;
    padding: 0 0 24px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition:
      opacity 0.3s ease,
      transform 0.3s ease,
      visibility 0.3s ease;
    pointer-events: none;
    justify-self: auto;
  }

  .site-header__nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .site-header__nav-list {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0;
  }

  .site-header__nav-list li {
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
  }

  .site-header__nav-list li:last-child {
    border-bottom: none;
  }

  .site-header__nav-list a {
    display: block;
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    white-space: normal;
    box-sizing: border-box;
  }
}
