* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

ol,
ul,
li {
  list-style: none;
}

a {
  color: inherit;
}

::-webkit-scrollbar {
  width: 0;
  height: 0;
}

body {
  background: #121212;
  color: #fff;
}

body.modal-open {
  overflow: hidden;
}

/* 顶部 */
header {
  position: absolute;
  z-index: 100;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 0 340px;
  width: 100%;
  height: 80px;
}

header .logo {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #fff;
  font-family: 'PingFang SC';
  font-size: 28px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  cursor: pointer;
}

header .logo img {
  width: 38px;
  height: 38px;
}

header ul {
  display: flex;
  gap: 90px;
  color: #fff;
  font-family: 'PingFang SC';
  font-size: 17px;
  font-style: normal;
  font-weight: 600;
  line-height: 24px;
}

header ul li > img {
  display: none;
}

header ul li {
  position: relative;
  cursor: pointer;
}

header ul li:has(.hover-content):hover::after,
header ul li.active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  width: 24px;
  height: 4px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
}

header ul li:hover .hover-content {
  display: block;
}

header ul li .hover-content {
  position: absolute;
  left: 50%;
  bottom: -28px;
  transform: translate(-50%, 100%);
  display: none;
}

header ul li .contact-content {
  padding: 17px 17px 16px;
  width: 150px;
  border-radius: 4px;
  border: 1px solid #fff;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  text-align: center;
}

header ul li .contact-content img {
  margin-bottom: 12px;
  width: 100%;
  aspect-ratio: 1/1;
}

header ul li .contact-content p {
  color: #fff;
  text-align: center;
  font-family: 'PingFang SC';
  font-size: 17px;
  font-style: normal;
  font-weight: 600;
  line-height: 24px;
}

.contact-modal-mask {
  display: none;
}

@media (min-width: 641px) {
  header.scrolled {
    position: fixed;
    background: #000;
    transform: translateY(0);
    transition: transform 0.3s ease;
  }

  header.scrolled.header-hidden {
    transform: translateY(-100%);
  }
}

@media (max-width: 1536px) {
  header {
    padding: 0 60px;
  }

  header ul {
    gap: 48px;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: 24px;
    line-height: normal;
    letter-spacing: 2.4px;
  }

  /* 顶部 */
  header {
    position: sticky;
    top: 0;
    max-width: none;
    height: 68px;
    padding: 0 20px;
    align-items: center;
    background: #000;
  }

  header .logo {
    gap: 8px;
    font-size: 18px;
    line-height: 24px;
  }

  header .logo img {
    width: 24px;
    height: 24px;
  }

  header ul {
    gap: 8px;
    font-size: 0;
  }

  header ul li {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.8);
  }

  header ul li > img {
    display: inline;
    width: 14px;
    height: 14px;
  }

  header ul li span {
    display: none;
  }

  header ul li:has(.hover-content):hover::after,
  header ul li.active::after,
  header ul li:hover .hover-content,
  header ul li .hover-content {
    display: none;
  }

  .contact-modal-mask {
    position: fixed;
    z-index: 999;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6);
  }

  .contact-modal-mask.active {
    display: flex;
  }

  .contact-modal {
    position: relative;
    width: min(335px, 100%);
    padding: 16px 20px 32px;
    border-radius: 24px;
    background: #3b3b3b;
    text-align: center;
  }

  .contact-modal-header {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 24px;
  }

  .contact-modal h2 {
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    font-family: 'PingFang SC';
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
  }

  .contact-modal-close {
    position: absolute;
    top: 2px;
    right: 0;
    width: 20px;
    height: 20px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .contact-modal-close img {
    display: block;
    width: 100%;
    height: 100%;
  }

  .contact-modal-divider {
    margin-top: 17px;
    width: 100%;
    height: 1px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.05);
  }

  .contact-modal .contact-modal-qr {
    display: block;
    margin: 16px auto 14px;
    width: 180px;
    aspect-ratio: 1/1;
    border: 0.957px solid rgba(0, 0, 0, 0.05);
    border-radius: 5.745px;
    object-fit: cover;
  }

  .contact-modal p {
    width: 100%;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    font-family: 'PingFang SC';
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
  }
}
