.product-header {
  --nav-text: #576570;
  --nav-ink: #1f2933;
  --nav-accent: #3e6698;
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--nav-ink);
  background: rgb(255 255 255 / 72%);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgb(0 0 0 / 4%);
  font-family: "Microsoft YaHei UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.55;
}

.product-header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1200px, 92vw);
  min-height: 64px;
  margin-inline: auto;
}

.product-header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--nav-ink);
  font-size: 18px;
  font-weight: 800;
  white-space: nowrap;
}

.product-header .logo img {
  width: 34px;
  height: 34px;
}

.product-header .menu,
.product-header .right.site-nav {
  display: flex;
  align-items: center;
  font-size: 15px;
}

.product-header .menu {
  gap: 32px;
}

.product-header .right.site-nav {
  position: static;
  gap: 18px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.product-header .menu a,
.product-header .menu button,
.product-header .right .login-link {
  color: var(--nav-text);
  white-space: nowrap;
}

.product-header .menu button {
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.product-header .menu a:hover,
.product-header .menu button:hover,
.product-header [aria-current="page"] {
  color: var(--nav-ink);
}

.product-header .right .login-link {
  padding: 6px 0;
  margin: 0;
}

.product-header .site-nav a.product-download {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--nav-accent);
  color: #fff;
  box-shadow: 0 10px 24px rgb(62 102 152 / 32%);
  font-size: 14px;
  font-weight: 700;
}

.product-header .site-nav a.product-download:hover {
  text-decoration: none;
  background: #345782;
}

.qq-dialog {
  width: min(320px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  border-radius: 16px;
}

.qq-dialog .dialog-header {
  gap: 12px;
  padding: 8px 12px 0 20px;
  border-bottom: 0;
}

.qq-dialog .dialog-header h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.qq-dialog-body {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 2px 20px 20px;
  color: #576570;
  font-size: 14px;
  text-align: center;
}

.qq-dialog-body p {
  margin: 0;
}

.qq-qr {
  display: grid;
  place-items: center;
  width: min(196px, 100%, 52dvh);
  aspect-ratio: 1;
  background: #f8fafc;
  border: 1px solid #e6ebf1;
  border-radius: 12px;
}

.qq-qr span {
  position: relative;
  width: 86%;
  aspect-ratio: 1;
  overflow: hidden;
}

.qq-qr img {
  position: absolute;
  left: calc(-100% * 200 / 816);
  top: calc(-100% * 720 / 816);
  width: calc(100% * 1217 / 816);
  max-width: none;
  height: auto;
}

.qq-group-number strong {
  color: #1f2933;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 1000px) {
  .product-header .menu {
    gap: 16px;
  }
}

@media (max-width: 760px) {
  .product-header nav {
    display: grid;
    grid-template-columns: 1fr auto;
    min-height: 58px;
  }

  .product-header .logo {
    grid-area: 1 / 1;
    font-size: 16px;
  }

  .product-header .logo img {
    width: 30px;
    height: 30px;
  }

  .product-header .menu {
    grid-area: 2 / 1 / 3 / -1;
    justify-content: space-between;
    gap: 8px;
    padding: 3px 0 7px;
    font-size: 13px;
  }

  .product-header .right.site-nav {
    grid-area: 1 / 2;
    justify-self: end;
    gap: 12px;
    min-height: 44px;
    font-size: 14px;
  }

  .product-header .site-nav a.product-download {
    padding: 6px 12px;
  }
}
