/* Too Lost–style site header — light theme */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 64px;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
  background: transparent;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}
.site-header.is-scrolled::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(15, 23, 42, 0.08), transparent);
  pointer-events: none;
}
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1260px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
}
.site-nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #0f172a;
  flex-shrink: 0;
}
.site-nav-logo img {
  width: auto;
  height: 24px;
  max-width: 120px;
  object-fit: contain;
  display: block;
  /* PNG is already brand sky #38BDF8 */
  filter: none;
}
@media (min-width: 900px) {
  .site-nav-logo img {
    height: 38px;
    max-width: 190px;
  }
}
.site-nav-logo span {
  display: none;
}
.site-nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  width: 100%;
}
.site-nav-links {
  display: none;
  align-items: center;
  gap: 4px;
}
.site-nav-link {
  display: inline-flex;
  align-items: center;
  height: 60px;
  padding: 0 0.35rem;
  margin: 0 0.15rem;
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.16px;
  line-height: 1;
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
}
.site-nav-link:hover,
.site-nav-link.is-active {
  color: #38BDF8;
}
.site-nav-divider {
  display: block;
  width: 1px;
  height: 20px;
  margin: 0 12px;
  background: #e2e8f0;
  flex-shrink: 0;
}
.site-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 20px;
  margin-left: 4px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.16px;
  color: #fff;
  background: #38BDF8;
  border: 1px solid #38BDF8;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transform: translateY(0);
  box-shadow: 0 0 0 rgba(56, 189, 248, 0);
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    color 0.25s ease,
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.site-nav-cta:hover {
  color: #fff;
  background: #0ea5e9;
  border-color: #0ea5e9;
  transform: translateY(-2px);
  box-shadow:
    0 8px 20px rgba(56, 189, 248, 0.35),
    0 0 0 3px rgba(56, 189, 248, 0.18);
  text-decoration: none;
}
.site-nav-cta:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.28);
  background: #0284c7;
  border-color: #0284c7;
}
.site-nav-home {
  margin-right: 4px;
  margin-left: 0;
}
.site-mobile-nav .site-nav-home {
  width: 100%;
  height: 44px;
  margin: 0 0 8px;
  justify-content: center;
}
@media (prefers-reduced-motion: reduce) {
  .site-nav-cta,
  .site-nav-cta:hover,
  .site-nav-cta:active {
    transform: none;
    transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  }
}
.site-nav-burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  margin-left: 8px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}
.site-nav-burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: #0f172a;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.site-nav-burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.site-nav-burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.site-nav-burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile panel */
.site-mobile-nav {
  position: fixed;
  inset: 64px 0 0 0;
  z-index: 49;
  display: none;
  flex-direction: column;
  padding: 12px 24px 32px;
  background: #ffffff;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  overflow-y: auto;
  border-top: 1px solid #e2e8f0;
}
.site-mobile-nav.is-open {
  display: flex;
}
/* Keep top bar white while mobile menu is open */
body.nav-open .site-header {
  background: #ffffff;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}
.site-mobile-nav a {
  display: flex;
  align-items: center;
  padding: 16px 4px;
  color: #64748b;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid #f1f5f9;
  transition: color 0.15s ease;
}
.site-mobile-nav a:hover,
.site-mobile-nav a.is-active {
  color: #38BDF8;
}
.site-mobile-nav .site-nav-cta {
  margin: 24px 0 0;
  height: 44px;
  width: 100%;
  border-bottom: none;
  color: #fff;
}

body.nav-open {
  overflow: hidden;
}

@media (min-width: 900px) {
  .site-header {
    height: 80px;
  }
  .site-nav {
    padding: 0 24px;
  }
  .site-nav-links {
    display: flex;
  }
  .site-nav-burger {
    display: none;
  }
  .site-mobile-nav,
  .site-mobile-nav.is-open {
    display: none !important;
  }
}

@media (max-width: 899px) {
  .site-header {
    height: 56px;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
  }
  .site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
  }
  .site-mobile-nav {
    inset: 56px 0 0 0;
    background: #ffffff;
  }
}

/* Footer / inline logo — PNG already #38BDF8 */
.logo-blue {
  filter: none;
}

/* Footer social icons — equal visual size */
.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  color: #94a3b8;
  transition: color 0.2s ease;
}
.footer-socials a:hover,
.footer-socials a:focus-visible {
  color: #38BDF8 !important;
}
.footer-socials a svg {
  width: 1.15em;
  height: 1.15em;
  display: block;
  fill: currentColor;
}
/* Kuaishou glyph fills the 24 viewBox more densely than peers */
.footer-socials a[aria-label="快手"] svg {
  width: 0.98em;
  height: 0.98em;
}
/* Footer business/help cards — equal icon box */
footer a.flex-1 .footer-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
}
footer a.flex-1 .footer-card-icon svg {
  width: 2rem;
  height: 2rem;
  display: block;
}

/* Footer copyright / ICP — only interactive items hover brand blue */
footer .mt-20.pt-8.border-t a,
footer .mt-20.pt-8.border-t .group,
footer .mt-20.pt-8.border-t .group > span:first-child {
  transition: color 0.2s ease;
}
footer .mt-20.pt-8.border-t a:hover,
footer .mt-20.pt-8.border-t a:focus-visible,
footer .mt-20.pt-8.border-t .group:hover,
footer .mt-20.pt-8.border-t .group:hover > span:first-child {
  color: #38BDF8 !important;
}

/* Footer beian: keep each registration number on one line; stack on narrow screens */
.footer-beian a,
.footer-beian > span {
  white-space: nowrap;
}
@media (max-width: 639px) {
  .footer-beian {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}