.footer .yx-social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  margin-top: 10px;
}

.footer .yx-social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  min-height: 36px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: color .18s ease, transform .18s ease;
}

.footer .yx-social-link .yx-instagram-mark,
.footer .yx-social-link .yx-facebook-mark,
.footer .yx-social-link .yx-wechat-mark {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

.footer .yx-social-link .yx-instagram-mark {
  filter: drop-shadow(0 3px 8px rgba(214, 41, 118, .24));
}

.footer .yx-social-link .yx-facebook-mark {
  filter: drop-shadow(0 3px 8px rgba(8, 102, 255, .24));
}

.footer .yx-social-link .yx-wechat-mark {
  filter: drop-shadow(0 3px 8px rgba(7, 193, 96, .24));
}

.footer .yx-social-link:hover {
  color: #efc39e;
  transform: translateY(-1px);
}

body.yx-wechat-modal-open {
  overflow: hidden;
}

.yx-wechat-modal[hidden] {
  display: none;
}

.yx-wechat-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 20px;
}

.yx-wechat-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 12, 23, .72);
  backdrop-filter: blur(5px);
}

.yx-wechat-dialog {
  position: relative;
  z-index: 1;
  width: min(430px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 26px;
  border: 1px solid rgba(7, 193, 96, .22);
  border-radius: 24px;
  background: #fff;
  color: #0b1d37;
  box-shadow: 0 24px 80px rgba(4, 12, 23, .3);
}

.yx-wechat-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #eef4f0;
  color: #0b1d37;
  font: 700 28px/1 Arial, sans-serif;
  cursor: pointer;
}

.yx-wechat-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 44px;
}

.yx-wechat-dialog-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
}

.yx-wechat-heading p,
.yx-wechat-heading h2,
.yx-wechat-copy,
.yx-wechat-status {
  margin: 0;
}

.yx-wechat-heading p {
  color: #607087;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.yx-wechat-heading h2 {
  margin-top: 3px;
  color: #0b1d37;
  font-size: clamp(23px, 5vw, 30px);
  line-height: 1.1;
}

.yx-wechat-qr {
  display: block;
  width: min(100%, 340px);
  height: auto;
  margin: 20px auto 14px;
  border: 1px solid #e4ebe7;
  border-radius: 16px;
  background: #fff;
}

.yx-wechat-copy {
  color: #52637a;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

.yx-wechat-copy strong {
  color: #0b1d37;
}

.yx-wechat-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.yx-wechat-actions button,
.yx-wechat-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #07c160;
  border-radius: 999px;
  font: 800 13px/1.2 Arial, sans-serif;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.yx-wechat-actions button {
  background: #07c160;
  color: #fff;
}

.yx-wechat-actions a {
  background: #fff;
  color: #087c43;
}

.yx-wechat-status {
  min-height: 20px;
  margin-top: 8px;
  color: #087c43;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.footer .yx-social-link:focus-visible {
  outline: 2px solid #efc39e;
  outline-offset: 4px;
  border-radius: 4px;
}

@media (max-width: 760px) {
  .footer .yx-social-links {
    gap: 4px 12px;
    margin-top: 12px;
  }

  .footer .yx-social-link {
    min-height: 44px;
    font-size: 14px;
  }

  .yx-wechat-modal {
    align-items: end;
    padding: 10px;
  }

  .yx-wechat-dialog {
    width: 100%;
    max-height: calc(100dvh - 20px);
    padding: 22px 18px 18px;
    border-radius: 22px;
  }

  .yx-wechat-qr {
    width: min(100%, 300px);
    margin-top: 16px;
  }

  .yx-wechat-actions {
    grid-template-columns: 1fr;
  }
}

/* Unified YAQIXIN footer: visual social icons with accessible labels. */
.footer.yx-site-footer .footer-inner {
  display: grid;
  grid-template-columns: minmax(240px, .8fr) minmax(360px, 1.2fr);
  align-items: start;
  gap: 40px;
}

.footer.yx-site-footer .yx-footer-brand {
  display: grid;
  gap: 8px;
}

.footer.yx-site-footer .yx-footer-brand span {
  color: rgba(255, 255, 255, .68);
  line-height: 1.6;
}

.footer.yx-site-footer .yx-footer-contact {
  display: grid;
  gap: 12px;
  justify-items: start;
}

.footer.yx-site-footer .yx-footer-email {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(239, 195, 158, .72);
  text-underline-offset: 3px;
}

.footer.yx-site-footer .yx-footer-email:hover {
  color: #efc39e;
}

.footer.yx-site-footer address {
  margin: 0;
  color: rgba(255, 255, 255, .68);
  font-style: normal;
  line-height: 1.6;
}

.footer.yx-site-footer .yx-footer-map-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(239, 195, 158, .72);
  text-underline-offset: 3px;
}

.footer.yx-site-footer .yx-footer-map-link:hover {
  color: #efc39e;
}

.footer.yx-site-footer .yx-social-links {
  gap: 10px;
  margin-top: 2px;
}

.footer.yx-site-footer .yx-social-link {
  position: relative;
  width: 44px;
  height: 44px;
  min-height: 44px;
  justify-content: center;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  background: rgba(255, 255, 255, .05);
}

.footer.yx-site-footer .yx-social-link > span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 760px) {
  .footer.yx-site-footer .footer-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer.yx-site-footer .yx-footer-contact {
    gap: 10px;
  }

  .footer.yx-site-footer .yx-social-links {
    gap: 10px;
    margin-top: 2px;
  }

  .footer.yx-site-footer .yx-social-link {
    width: 44px;
    height: 44px;
  }
}

/* Homepage Instagram wall: a static, fast-loading editorial grid that links to the live profile. */
.instagram-wall {
  padding: clamp(72px, 9vw, 124px) 38px;
  background: #f8f4ef;
  border-top: 1px solid rgba(213, 200, 186, .62);
}

.instagram-wall-wrap {
  width: min(1200px, 100%);
  margin: 0 auto;
}

.instagram-wall-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 38px;
}

.instagram-wall-head .eyebrow {
  margin: 0 0 14px;
  color: #b8662f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.instagram-wall-head h2 {
  max-width: 640px;
  margin: 0;
  color: #2c3038;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: .01em;
}

.instagram-wall-head .lead {
  max-width: 510px;
  margin: 18px 0 0;
  color: #697386;
  font-size: 15px;
  line-height: 1.65;
}

.instagram-wall-follow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  flex: 0 0 auto;
  padding: 0 20px;
  border: 1px solid #c8783a;
  border-radius: 999px;
  background: #fff;
  color: #a85e2a;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.instagram-wall-follow:hover {
  background: #c8783a;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(184, 102, 47, .2);
}

.instagram-wall-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.instagram-wall-card {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1;
  background: #10151f;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 18px 42px rgba(16, 21, 31, .08);
}

.instagram-wall-card figure,
.instagram-wall-card img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
}

.instagram-wall-card img {
  object-fit: cover;
  transition: transform .55s cubic-bezier(.25, .46, .45, .94), filter .35s ease;
}

.instagram-wall-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 14, 22, 0) 36%, rgba(8, 14, 22, .86) 100%);
  content: "";
  pointer-events: none;
}

.instagram-wall-card figcaption {
  position: absolute;
  right: 18px;
  bottom: 16px;
  left: 18px;
  z-index: 1;
}

.instagram-wall-card figcaption span,
.instagram-wall-card figcaption strong,
.instagram-wall-card figcaption em {
  display: block;
}

.instagram-wall-card figcaption span {
  color: #f0c6a2;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.instagram-wall-card figcaption strong {
  margin-top: 7px;
  color: #fff;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(20px, 2.1vw, 28px);
  font-weight: 400;
  line-height: 1.05;
}

.instagram-wall-card figcaption em {
  margin-top: 8px;
  color: rgba(255, 255, 255, .7);
  font-size: 11px;
  font-style: normal;
  line-height: 1.4;
}

.instagram-wall-card:hover img,
.instagram-wall-card:focus-visible img {
  filter: saturate(1.08);
  transform: scale(1.045);
}

.instagram-wall-card:focus-visible,
.instagram-wall-follow:focus-visible {
  outline: 2px solid #b8662f;
  outline-offset: 5px;
}

@media (max-width: 760px) {
  .instagram-wall {
    padding: 58px 16px 66px;
  }

  .instagram-wall-head {
    display: block;
    margin-bottom: 24px;
  }

  .instagram-wall-head h2 {
    font-size: clamp(34px, 10vw, 46px);
    line-height: 1.02;
  }

  .instagram-wall-head .lead {
    margin-top: 14px;
    font-size: 14px;
  }

  .instagram-wall-follow {
    width: 100%;
    margin-top: 20px;
  }

  .instagram-wall-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .instagram-wall-card figcaption {
    right: 11px;
    bottom: 11px;
    left: 11px;
  }

  .instagram-wall-card figcaption span {
    font-size: 8px;
    letter-spacing: .1em;
  }

  .instagram-wall-card figcaption strong {
    margin-top: 5px;
    font-size: clamp(16px, 4.4vw, 22px);
  }

  .instagram-wall-card figcaption em {
    margin-top: 5px;
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .instagram-wall-follow,
  .instagram-wall-card img {
    transition: none;
  }

  .instagram-wall-follow:hover,
  .instagram-wall-card:hover img,
  .instagram-wall-card:focus-visible img {
    transform: none;
  }
}
