:root {
  color: #f6f2f9;
  background: #0f0f0f;
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-synthesis: none;
}

html,
body {
  min-height: 100%;
  background: #0f0f0f;
}

body {
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

a,
a:link,
a:visited,
a:hover,
a:active {
  color: inherit;
  text-decoration: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-page {
  min-height: 100vh;
  isolation: isolate;
  background: #0f0f0f;
}

.nav-page::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background: url("/static/images/nav/background-desktop-32be38.png") center / cover no-repeat;
  opacity: 0.1;
  pointer-events: none;
}

.nav-shell {
  display: flex;
  width: 375px;
  max-width: 100%;
  min-height: 100vh;
  padding: 175px 28px 72px;
  margin: 0 auto;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  width: 319px;
  max-width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.brand__logo {
  width: 173px;
  height: 48px;
  margin: 0;
}

.brand__logo img {
  display: block;
  width: 173px;
  height: 48px;
}

.brand__description {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  white-space: nowrap;
}

.brand__promise {
  color: #08934f;
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
  white-space: nowrap;
}

.official-links {
  display: flex;
  width: 319px;
  max-width: 100%;
  flex-direction: column;
  gap: 12px;
}

.official-link {
  display: flex;
  width: 100%;
  min-height: 64px;
  padding: 10px 16px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  text-align: center;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.official-link:hover,
.official-link:focus-visible {
  border-color: rgba(8, 147, 79, 0.7);
  background: rgba(255, 255, 255, 0.14);
  outline: none;
  transform: translateY(-1px);
}

.official-link__title {
  color: #f6f2f9;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.official-link__url {
  max-width: 100%;
  overflow: hidden;
  color: #08934f;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-download {
  display: block;
  width: 319px;
  max-width: 100%;
  height: 64px;
  overflow: hidden;
  border-radius: 12px;
}

.app-download img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-download::after {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(0, 0, 0, 0.6);
}

.app-download span {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  color: #f6f2f9;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}

.official-contact {
  max-width: 319px;
  overflow-wrap: anywhere;
  color: #08934f !important;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  text-align: center;
}

.channel-links {
  display: grid;
  width: 319px;
  max-width: 100%;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}

.channel-link {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #b0a6b2 !important;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  text-align: center;
  white-space: nowrap;
}

.channel-link__icon {
  display: flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: background-color 160ms ease, transform 160ms ease;
}

.channel-link:hover .channel-link__icon,
.channel-link:focus-visible .channel-link__icon {
  background: rgba(8, 147, 79, 0.7);
  transform: translateY(-1px);
}

.channel-link:focus-visible {
  outline: none;
}

.channel-link__icon img {
  display: block;
}

.nav-footer {
  display: flex;
  width: 319px;
  max-width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #b0a6b2;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  text-align: center;
}

@media (max-width: 767px) {
  .nav-page::before {
    background-image: url("/static/images/nav/background-mobile.png");
    background-position: center top;
  }

  .nav-shell {
    padding-top: 63px;
    padding-bottom: max(58px, env(safe-area-inset-bottom));
    gap: 18px;
  }

  .brand {
    gap: 6px;
  }
}

@media (max-width: 374px) {
  .nav-shell {
    padding-right: 20px;
    padding-left: 20px;
  }

  .channel-link {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .official-link,
  .channel-link__icon {
    transition: none;
  }
}
