/* 与 index.html 官网顶部导航、站点背景保持一致 */

:root {
  --purple-deep: #4f35e7;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  overflow-x: clip;
}

@media (min-width: 769px) {
  html {
    scrollbar-gutter: stable;
  }
}

body {
  max-width: 100%;
  overflow-x: clip;
}

.site {
  min-height: 100vh;
  max-width: 100%;
  background:
    radial-gradient(circle at 72% 28%, rgba(132, 105, 255, 0.16), transparent 34%),
    radial-gradient(circle at 14% 20%, rgba(113, 178, 255, 0.12), transparent 27%),
    linear-gradient(180deg, #ffffff 0%, #f8f9ff 44%, #f7f8ff 100%);
  position: relative;
  isolation: isolate;
}

.site::before {
  content: "";
  position: absolute;
  inset: 76px 0 0;
  background-image:
    linear-gradient(rgba(91, 84, 232, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 84, 232, 0.055) 1px, transparent 1px),
    radial-gradient(circle, rgba(93, 75, 241, 0.13) 1px, transparent 1.6px);
  background-size: 68px 68px, 68px 68px, 34px 34px;
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.9) 18%, rgba(0, 0, 0, 0.55) 58%, transparent 100%);
  pointer-events: none;
  z-index: -2;
}

.site::after {
  content: "";
  position: absolute;
  right: -170px;
  top: 90px;
  width: 760px;
  height: 520px;
  background:
    radial-gradient(ellipse at center, rgba(119, 91, 252, 0.15), transparent 64%),
    radial-gradient(ellipse at 42% 60%, rgba(76, 141, 255, 0.12), transparent 54%);
  filter: blur(4px);
  pointer-events: none;
  z-index: -1;
}

.nav-wrap {
  height: 76px;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(118, 112, 176, 0.13);
  box-shadow: 0 10px 34px rgba(83, 91, 139, 0.06);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav {
  width: min(1240px, calc(100% - 80px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 222px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: saturate(1.06);
}

.brand-name {
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1;
}

.brand-cn {
  font-size: 18px;
  font-weight: 800;
  color: #141827;
}

.brand-en {
  font-size: 10px;
  font-weight: 600;
  color: #4f586b;
  text-transform: uppercase;
}

.menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 43px;
  flex: 1;
  min-width: 0;
}

.menu a {
  position: relative;
  padding: 29px 0 25px;
  color: #242b3b;
  font-size: 15px;
  font-weight: 650;
  white-space: nowrap;
  transition: color 180ms ease;
}

.menu a:hover,
.menu a.active {
  color: var(--purple-deep);
}

.menu a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 26px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #6b4cff, #8a6dff);
  transform: translateX(-50%);
  box-shadow: 0 5px 12px rgba(102, 75, 241, 0.32);
}


@media (max-width: 1180px) {
  .nav {
    width: min(calc(100% - 48px), 1100px);
  }

  .menu {
    gap: 24px;
  }
}

@media (max-width: 920px) {
  .nav {
    gap: 18px;
  }

  .nav > .menu {
    display: none;
  }
}

@media (max-width: 768px) {
  html {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
    scroll-padding-top: 72px;
    scrollbar-gutter: auto;
  }

  body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  .site {
    width: 100%;
    max-width: 100%;
  }

  .site::before {
    inset: 64px 0 0;
    background-size: 54px 54px, 54px 54px, 27px 27px;
  }

  .site::after {
    right: -260px;
    top: 96px;
    width: 560px;
    height: 420px;
  }

  .nav-wrap {
    height: 64px;
  }

  .nav {
    width: 100%;
    padding: 0 16px;
    gap: 12px;
  }

  .brand {
    min-width: 0;
    flex: 1 1 auto;
    gap: 8px;
    overflow: hidden;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .brand-name {
    min-width: 0;
    gap: 2px;
  }

  .brand-cn {
    font-size: 15px;
    line-height: 1.05;
    white-space: nowrap;
  }

  .brand-en {
    font-size: 8.5px;
    letter-spacing: 0;
    white-space: nowrap;
  }

}

@media (max-width: 480px) {
  .nav {
    padding: 0 14px;
  }

  .brand {
    gap: 7px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .brand-cn {
    font-size: 14px;
  }

  .brand-en {
    font-size: 8px;
  }

}
