/* China-only footer: intentionally self-contained so this release can evolve
   independently from the multilingual design source. */
.ayh-site-footer {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(70% 130% at 100% 0%, rgb(65 55 114 / 0.22), transparent 64%),
    radial-gradient(42% 100% at 0% 100%, rgb(181 132 71 / 0.1), transparent 70%),
    #06070b;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  color: #f5f4f1;
}

.ayh-site-footer::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(232 193 124 / 0.55), transparent);
  content: "";
}

.ayh-footer-shell {
  position: relative;
  z-index: 1;
  width: min(100% - 48px, 1280px);
  margin: 0 auto;
  padding: 72px 0 32px;
}

.ayh-footer-main {
  display: grid;
  grid-template-columns: minmax(15rem, 0.9fr) minmax(0, 1.8fr);
  gap: clamp(3rem, 7vw, 8rem);
  padding-bottom: 56px;
}

.ayh-footer-brand {
  display: flex;
  max-width: 18rem;
  flex-direction: column;
  align-items: flex-start;
}

.ayh-footer-wordmark {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.625rem;
  color: #fffdf8;
  text-decoration: none;
}

.ayh-footer-wordmark-en {
  font-size: 1.375rem;
  font-weight: 650;
  letter-spacing: -0.04em;
}

.ayh-footer-wordmark-zh {
  color: rgb(255 255 255 / 0.52);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
}

.ayh-footer-statement {
  margin: 1.5rem 0 0;
  color: rgb(255 255 255 / 0.66);
  font-size: 0.9375rem;
  line-height: 1.9;
}

.ayh-footer-intro-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.8rem;
  color: #ebc77e;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: color 160ms ease, gap 160ms ease;
}

.ayh-footer-intro-link svg {
  width: 1rem;
  height: 1rem;
}

.ayh-footer-intro-link:hover {
  gap: 0.7rem;
  color: #fff1cc;
}

.ayh-footer-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.4rem, 3.3vw, 3.25rem);
}

.ayh-footer-nav-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.ayh-footer-nav-group h2 {
  margin: 0 0 0.45rem;
  color: rgb(255 255 255 / 0.46);
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  line-height: 1.2;
}

.ayh-footer-nav-group a,
.ayh-footer-legal a,
.ayh-footer-icp a {
  color: rgb(255 255 255 / 0.73);
  text-decoration: none;
  transition: color 160ms ease;
}

.ayh-footer-nav-group a {
  position: relative;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.ayh-footer-nav-group a::after {
  position: absolute;
  right: 0;
  bottom: -0.3rem;
  left: 0;
  height: 1px;
  background: #e7bd71;
  content: "";
  opacity: 0;
  transform: scaleX(0.35);
  transform-origin: left;
  transition: opacity 160ms ease, transform 160ms ease;
}

.ayh-footer-nav-group a:hover,
.ayh-footer-legal a:hover,
.ayh-footer-icp a:hover {
  color: #fffdf8;
}

.ayh-footer-nav-group a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.ayh-footer-divider {
  height: 1px;
  background: linear-gradient(90deg, rgb(255 255 255 / 0.16), rgb(255 255 255 / 0.055));
}

.ayh-footer-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1.8rem;
  color: rgb(255 255 255 / 0.47);
  font-size: 0.75rem;
  line-height: 1.6;
}

.ayh-footer-meta p {
  margin: 0;
}

.ayh-footer-meta p:last-child {
  max-width: 21rem;
  text-align: right;
}

.ayh-footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.25rem;
  margin-top: 1.45rem;
  font-size: 0.75rem;
  line-height: 1.65;
}

.ayh-footer-legal a {
  color: rgb(255 255 255 / 0.54);
}

.ayh-footer-record {
  margin-top: 1.35rem;
}

.ayh-footer-icp {
  color: rgb(255 255 255 / 0.43);
  font-size: 0.75rem;
  line-height: 1.65;
}

.ayh-footer-icp a {
  color: inherit;
}

.ayh-site-footer a:focus-visible {
  outline: 2px solid #f1cf8b;
  outline-offset: 4px;
}

@media (max-width: 900px) {
  .ayh-footer-main {
    grid-template-columns: 1fr;
    gap: 3.25rem;
  }

  .ayh-footer-brand {
    max-width: 32rem;
  }
}

@media (max-width: 640px) {
  .ayh-footer-shell {
    width: min(100% - 40px, 1280px);
    padding-top: 52px;
  }

  .ayh-footer-main {
    gap: 2.75rem;
    padding-bottom: 42px;
  }

  .ayh-footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.25rem 1.5rem;
  }

  .ayh-footer-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.45rem;
    padding-top: 1.5rem;
  }

  .ayh-footer-meta p:last-child {
    max-width: none;
    text-align: left;
  }

  .ayh-footer-legal {
    gap: 0.55rem 1rem;
    margin-top: 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ayh-site-footer *,
  .ayh-site-footer *::after {
    transition-duration: 0ms !important;
  }
}
