:root {
  --site-nav-red: #f30700;
  --site-nav-red-dark: #a91410;
  --site-nav-ease: cubic-bezier(.16, 1, .3, 1);
}

.nav {
  position: fixed;
  z-index: 100;
  top: 24px;
  left: clamp(16px, 3vw, 44px);
  right: clamp(16px, 3vw, 44px);
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
  align-items: center;
  gap: 20px;
  color: rgba(32, 33, 29, .64);
  font: 13px/1 "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  pointer-events: none;
}

.nav > .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  width: fit-content;
  padding: 6px 14px 6px 6px;
  color: #11110f;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .86), rgba(255, 255, 255, .56));
  box-shadow:
    0 22px 62px rgba(0, 0, 0, .18),
    inset 0 1px 0 rgba(255, 255, 255, .9),
    inset 0 -18px 34px rgba(32, 33, 29, .06);
  backdrop-filter: blur(22px) saturate(1.22);
  -webkit-backdrop-filter: blur(22px) saturate(1.22);
  pointer-events: auto;
}

.nav > .brand .brand-mark {
  width: 58px;
  height: 46px;
  min-width: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .74);
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .42));
  box-shadow:
    0 18px 48px rgba(32, 33, 29, .1),
    inset 0 1px 0 rgba(255, 255, 255, .9),
    inset 0 -14px 26px rgba(32, 33, 29, .05);
  overflow: visible;
}

.nav > .brand .brand-mark img {
  width: 64px;
  max-width: none;
  transform: translateX(-1px);
}

.nav > .brand .brand-name {
  display: grid;
  gap: 3px;
  min-width: 0;
  letter-spacing: 0;
  text-transform: none;
}

.nav > .brand .brand-name strong {
  display: block;
  color: rgba(16, 17, 14, .92);
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.nav > .brand .brand-name span {
  display: block;
  margin: 0;
  color: rgba(16, 17, 14, .58);
  font-size: 11px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav > .nav-links {
  position: relative;
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 574px;
  min-width: 574px;
  padding: 10px;
  color: rgba(32, 33, 29, .66);
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .76), rgba(255, 255, 255, .44)),
    radial-gradient(circle at 28% 0%, rgba(255, 255, 255, .96), transparent 42%),
    radial-gradient(circle at 78% 100%, rgba(255, 255, 255, .42), transparent 44%);
  box-shadow:
    0 24px 76px rgba(0, 0, 0, .22),
    inset 0 1px 0 rgba(255, 255, 255, .92),
    inset 0 -18px 34px rgba(32, 33, 29, .06);
  backdrop-filter: blur(28px) saturate(1.36);
  -webkit-backdrop-filter: blur(28px) saturate(1.36);
  overflow: hidden;
  isolation: isolate;
  pointer-events: auto;
}

.nav > .nav-links::before,
.nav > .nav-links::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.nav > .nav-links::before {
  inset: 1px;
  border-radius: inherit;
  background:
    linear-gradient(105deg, rgba(255, 255, 255, .74), transparent 24% 72%, rgba(255, 255, 255, .4)),
    radial-gradient(circle at var(--nav-x, 50%) 50%, rgba(255, 255, 255, .62), transparent 24%);
  opacity: .62;
  mix-blend-mode: screen;
}

.nav > .nav-links::after {
  left: 18px;
  right: 18px;
  top: 5px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .88), transparent);
}

.nav > .nav-links a {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: rgba(20, 22, 18, .72);
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  transition: color .32s var(--site-nav-ease), transform .32s var(--site-nav-ease);
}

.nav > .nav-links a:nth-of-type(1) { width: 62px; }
.nav > .nav-links a:nth-of-type(2) { width: 90px; }
.nav > .nav-links a:nth-of-type(3) { width: 90px; }
.nav > .nav-links a:nth-of-type(4) { width: 104px; }
.nav > .nav-links a:nth-of-type(5) { width: 90px; }
.nav > .nav-links a:nth-of-type(6) { width: 90px; }

.nav > .nav-links a:hover,
.nav > .nav-links a:focus-visible,
.nav > .nav-links a.active {
  color: var(--site-nav-red-dark);
  background: transparent;
  box-shadow: none;
  transform: translateY(-1px);
}

.nav > .nav-links .liquid-thumb,
.nav > .nav-links .liquid-trail {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--liquid-w, 72px);
  height: var(--liquid-h, 42px);
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  transform:
    translate3d(var(--liquid-x, 6px), var(--liquid-y, 6px), 0)
    scaleX(var(--liquid-sx, 1))
    scaleY(var(--liquid-sy, 1));
  transform-origin: center;
}

.nav > .nav-links .liquid-trail {
  z-index: 1;
  background: rgba(255, 255, 255, .35);
  filter: blur(13px);
  transition:
    width .62s cubic-bezier(.2, .9, .2, 1),
    height .62s cubic-bezier(.2, .9, .2, 1),
    transform .78s var(--site-nav-ease),
    opacity .28s ease;
}

.nav > .nav-links .liquid-thumb {
  z-index: 2;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .72);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .3)),
    radial-gradient(circle at var(--thumb-light-x, 50%) 0%, rgba(255, 255, 255, .98), transparent 58%),
    radial-gradient(circle at 82% 100%, rgba(255, 255, 255, .48), transparent 52%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .96),
    inset 0 -22px 34px rgba(32, 33, 29, .05),
    inset 16px 0 28px rgba(255, 255, 255, .36),
    inset -16px 0 28px rgba(32, 33, 29, .055),
    0 12px 30px rgba(255, 255, 255, .18),
    0 22px 54px rgba(32, 33, 29, .12);
  transition:
    width .58s var(--site-nav-ease),
    height .58s var(--site-nav-ease),
    transform .7s var(--site-nav-ease),
    opacity .22s ease;
}

.nav > .nav-links.is-ready .liquid-thumb { opacity: 1; }
.nav > .nav-links.is-ready .liquid-trail { opacity: .5; }

.nav > .nav-links .liquid-thumb::before,
.nav > .nav-links .liquid-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.nav > .nav-links .liquid-thumb::before {
  background:
    linear-gradient(110deg, rgba(255, 255, 255, .92), transparent 24% 62%, rgba(255, 255, 255, .38)),
    radial-gradient(circle at 24% 22%, rgba(255, 255, 255, .92), transparent 18%);
  opacity: .66;
  mix-blend-mode: screen;
}

.nav > .nav-links .liquid-thumb::after {
  inset: 2px;
  border: 1px solid rgba(255, 255, 255, .42);
  box-shadow: inset 0 0 18px rgba(255, 255, 255, .24), inset 0 -10px 18px rgba(32, 33, 29, .04);
}

.nav > .nav-pill {
  justify-self: end;
  min-height: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  color: rgba(18, 20, 17, .72);
  border: 1px solid rgba(255, 255, 255, .86);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .86), rgba(255, 255, 255, .58)),
    radial-gradient(circle at 22% 0%, rgba(255, 255, 255, .98), transparent 46%);
  box-shadow:
    0 22px 62px rgba(0, 0, 0, .18),
    inset 0 1px 0 rgba(255, 255, 255, .96),
    inset 0 -16px 30px rgba(32, 33, 29, .05);
  backdrop-filter: blur(26px) saturate(1.28);
  -webkit-backdrop-filter: blur(26px) saturate(1.28);
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  pointer-events: auto;
}

.nav > .nav-pill i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--site-nav-red);
  box-shadow: 0 0 10px rgba(243, 7, 0, .46);
}

@media (max-width: 1180px) and (min-width: 641px) {
  .nav {
    top: 18px;
    grid-template-columns: minmax(180px, 1fr) auto;
    gap: 14px;
  }

  .nav > .nav-pill {
    display: none;
  }
}

@media (max-width: 860px) and (min-width: 641px) {
  .nav {
    left: 18px;
    right: 18px;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 10px;
  }

  .nav > .brand {
    width: 58px;
    height: 58px;
    padding: 5px;
  }

  .nav > .brand .brand-name {
    display: none;
  }

  .nav > .brand .brand-mark {
    width: 46px;
    height: 46px;
    min-width: 46px;
  }

  .nav > .nav-links {
    justify-self: end;
  }
}
