.site-wave-footer {
  position: relative;
  overflow: hidden;
  margin-top: 0;
  background: #fff;
  color: #fff;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

.site-wave-footer::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 360px;
  background:
    radial-gradient(circle at 88% 0%, rgba(0, 200, 128, 0.13), transparent 30%),
    linear-gradient(180deg, #fff 0%, #fbfffd 100%);
}

.site-footer-cta {
  position: relative;
  z-index: 5;
  min-height: 278px;
  display: grid;
  grid-template-columns: auto auto;
  gap: clamp(80px, 13vw, 230px);
  align-items: center;
  justify-content: center;
  padding: 114px 0 122px;
  color: #111827;
}

.site-footer-cta h2 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 10px;
  color: #08734f;
  font-size: clamp(30px, 2.8vw, 42px);
  line-height: 1.16;
  font-weight: 950;
  letter-spacing: 0;
}

.site-footer-title-logo {
  width: clamp(136px, 12vw, 184px);
  height: auto;
  display: inline-block;
  transform: translateY(1px);
}

.site-footer-cta p {
  margin: 0;
  max-width: 620px;
  color: #667085;
  font-size: 16px;
  line-height: 1.62;
  font-weight: 720;
}

.site-footer-button {
  min-width: 150px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  padding: 0 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #00c880, #009963);
  color: #fff;
  border: 0;
  box-shadow: 0 14px 30px rgba(0, 153, 99, 0.16);
  font-size: 14px;
  font-weight: 950;
  text-decoration: none;
}

.site-wave-layer {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  transform: none;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center top;
}

.site-wave-layer.light {
  z-index: 2;
  top: 276px;
  bottom: 0;
  height: auto;
  background-image: url("data:image/svg+xml,%3Csvg width='1440' height='760' viewBox='0 0 1440 760' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 92C224 151 476 184 746 178C995 172 1218 130 1386 72C1406 65 1424 57 1440 48V760H0V92Z' fill='%23BFF8EA'/%3E%3C/svg%3E");
  opacity: 0.86;
}

.site-wave-layer.dark {
  z-index: 3;
  top: 276px;
  bottom: 0;
  height: auto;
  background-image: url("data:image/svg+xml,%3Csvg width='1440' height='760' viewBox='0 0 1440 760' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='1' y1='0' y2='0'%3E%3Cstop offset='0' stop-color='%23006449'/%3E%3Cstop offset='0.58' stop-color='%23008761'/%3E%3Cstop offset='1' stop-color='%2300B17B'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 126C214 178 476 206 758 196C990 188 1192 154 1340 98C1382 82 1414 66 1440 48V760H0V126Z' fill='url(%23g)'/%3E%3C/svg%3E");
  opacity: 1;
}

.site-footer-main {
  position: relative;
  z-index: 4;
  margin-top: 0;
  padding: 182px 0 54px;
  background: transparent;
}

.site-footer-main::before {
  content: "";
  position: absolute;
  inset: 0;
  display: none;
  background: none;
  pointer-events: none;
}

.site-footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 0.75fr 0.95fr 1.3fr;
  gap: 52px;
  padding-bottom: 46px;
  border-bottom: 1px solid rgba(255,255,255,0.24);
}

.site-footer-brand img {
  width: 148px;
  margin-bottom: 18px;
  filter: none;
  opacity: 0.96;
}

.site-footer-brand p {
  margin: 0;
  max-width: 340px;
  color: rgba(255,255,255,0.74);
  font-size: 15px;
  line-height: 1.65;
  font-weight: 650;
}

.site-footer-group h3 {
  margin: 0 0 22px;
  color: rgba(255,255,255,0.72);
  font-size: 15px;
  font-weight: 950;
}

.site-footer-group a,
.site-footer-group span {
  display: block;
  margin-bottom: 14px;
  color: #fff;
  font-size: 16px;
  font-weight: 850;
  text-decoration: none;
}

.site-social-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.site-social-row a,
.site-social-row span,
.site-social-row button {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin: 0;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font: inherit;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.site-social-row a:hover,
.site-social-row a:focus-visible,
.site-social-row button:hover,
.site-social-row button:focus-visible {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.38);
  transform: translateY(-1px);
  outline: 0;
}

.site-social-row svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-social-row .social-facebook svg,
.site-social-row .social-x svg {
  fill: currentColor;
  stroke: none;
}

.site-wechat-channel {
  position: relative;
  display: block;
  margin: 0;
}

.site-wechat-popover {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  z-index: 10;
  width: 196px;
  padding: 12px;
  border-radius: 16px;
  background: #fff;
  color: #102033;
  border: 1px solid rgba(223, 231, 240, 0.96);
  box-shadow: 0 20px 46px rgba(0,0,0,0.18);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -6px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.site-wechat-popover::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 12px;
  height: 12px;
  background: #fff;
  border-right: 1px solid rgba(223, 231, 240, 0.96);
  border-bottom: 1px solid rgba(223, 231, 240, 0.96);
  transform: translate(-50%, -6px) rotate(45deg);
}

.site-wechat-popover img {
  display: block;
  width: 172px;
  height: 172px;
  object-fit: contain;
  border-radius: 10px;
}

.site-wechat-popover p {
  margin: 9px 0 0;
  color: #102033;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 850;
  text-align: center;
}

.site-wechat-channel:hover .site-wechat-popover,
.site-wechat-channel:focus-within .site-wechat-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.site-social-row .social-phone::after {
  content: attr(data-contact);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 4;
  min-width: max-content;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(4, 37, 29, 0.88);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 12px 24px rgba(0,0,0,0.16);
  font-size: 12px;
  line-height: 1;
  font-weight: 850;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.site-social-row .social-phone:hover::after,
.site-social-row .social-phone:focus-visible::after,
.site-social-row .social-phone:active::after,
.site-social-row .social-phone.show-contact::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.site-address {
  max-width: 330px;
  margin: 2px 0 0;
  color: rgba(255,255,255,0.72);
  font-size: 14px;
  line-height: 1.65;
  font-weight: 680;
}

.site-footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 30px;
  color: rgba(255,255,255,0.70);
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 980px) {
  .site-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 720px) {
  .site-footer-cta,
  .site-footer-grid,
  .site-footer-bottom {
    grid-template-columns: 1fr;
  }

  .site-footer-cta {
    gap: 24px;
    min-height: 284px;
    align-content: end;
    justify-content: start;
    padding: 88px 0 126px;
  }

  .site-footer-cta h2 {
    gap: 9px;
    margin-bottom: 8px;
  }

  .site-footer-title-logo {
    width: 128px;
  }

  .site-footer-button {
    justify-self: start;
    margin-top: 0;
  }

  .site-wave-layer {
    width: 100%;
  }

  .site-wave-layer.light {
    display: block;
    top: 330px;
    bottom: 0;
    height: auto;
    background-image: url("data:image/svg+xml,%3Csvg width='390' height='760' viewBox='0 0 390 760' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 68C76 96 162 108 250 98C318 91 362 74 390 52V760H0V68Z' fill='%23BFF8EA'/%3E%3C/svg%3E");
    opacity: 0.84;
  }

  .site-wave-layer.dark {
    top: 330px;
    bottom: 0;
    height: auto;
    background-image: url("data:image/svg+xml,%3Csvg width='390' height='760' viewBox='0 0 390 760' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='1' y1='0' y2='0'%3E%3Cstop offset='0' stop-color='%23006449'/%3E%3Cstop offset='0.58' stop-color='%23008761'/%3E%3Cstop offset='1' stop-color='%2300B17B'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 86C74 112 158 124 248 114C314 107 362 88 390 62V760H0V86Z' fill='url(%23g)'/%3E%3C/svg%3E");
  }

  .site-footer-main {
    margin-top: 0;
    padding-top: 144px;
  }

  .site-footer-grid {
    gap: 34px;
  }

  .site-footer-bottom {
    display: grid;
    justify-content: start;
  }

  .site-wechat-popover {
    left: 0;
    width: 184px;
    transform: translate(0, -6px);
  }

  .site-wechat-popover::after {
    left: 20px;
  }

  .site-wechat-popover img {
    width: 160px;
    height: 160px;
  }

  .site-wechat-channel:hover .site-wechat-popover,
  .site-wechat-channel:focus-within .site-wechat-popover {
    transform: translate(0, 0);
  }
}

.site-mobile-footer {
  display: none;
}

.newpay-qr-dialog {
  position: fixed;
  inset: 0;
  z-index: 2300;
  display: grid;
  place-items: end center;
  padding: 16px;
  padding-right: calc(16px + env(safe-area-inset-right));
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
  padding-left: calc(16px + env(safe-area-inset-left));
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--motion-normal, 220ms) var(--ease-standard, cubic-bezier(0.2,0,0,1));
}

.newpay-qr-dialog.open {
  opacity: 1;
  pointer-events: auto;
}

.newpay-qr-dialog[hidden] {
  display: none;
}

.newpay-qr-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(7, 18, 24, 0.42);
  cursor: pointer;
}

.newpay-qr-sheet {
  position: relative;
  z-index: 1;
  width: min(100%, 360px);
  display: grid;
  justify-items: center;
  padding: 26px 20px 22px;
  border: 1px solid rgba(0, 153, 99, 0.24);
  border-radius: 24px;
  background: #fff;
  color: #111827;
  box-shadow: 0 24px 64px rgba(15, 32, 50, 0.22);
  transform: translateY(12px);
  transition: transform var(--motion-normal, 220ms) var(--ease-entrance, cubic-bezier(0.22,1,0.36,1));
}

.newpay-qr-dialog.open .newpay-qr-sheet {
  transform: translateY(0);
}

.newpay-qr-sheet:focus,
.newpay-qr-sheet:focus-visible {
  outline: 2px solid rgba(0, 153, 99, 0.26);
  outline-offset: 3px;
}

.newpay-qr-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 153, 99, 0.22);
  border-radius: 14px;
  background: #f7fffb;
  color: #08734f;
  cursor: pointer;
}

.newpay-qr-close span::before,
.newpay-qr-close span::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  top: 21px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.newpay-qr-close span::before {
  transform: rotate(45deg);
}

.newpay-qr-close span::after {
  transform: rotate(-45deg);
}

.newpay-qr-sheet h2 {
  margin: 8px 52px 16px;
  color: #073b2b;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 950;
  text-align: center;
}

.newpay-qr-sheet img {
  width: min(220px, 70vw);
  min-width: 180px;
  height: auto;
  display: block;
  border-radius: 16px;
  border: 1px solid #e8edf3;
}

.newpay-qr-sheet p {
  margin: 14px 0 0;
  max-width: 260px;
  color: #667085;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 760;
  text-align: center;
}

@media (min-width: 721px) and (max-width: 980px) {
  .newpay-qr-dialog {
    place-items: center;
  }
}

@media (max-width: 980px) {
  .site-footer-cta {
    min-height: auto;
    grid-template-columns: 1fr;
    justify-content: start;
    gap: 12px;
    padding: 34px 0 42px;
  }

  .site-footer-cta h2 {
    gap: 8px;
    margin-bottom: 8px;
    font-size: clamp(26px, 8vw, 34px);
    line-height: 1.18;
  }

  .site-footer-title-logo {
    width: 112px;
    opacity: 0.86;
  }

  .site-footer-cta p {
    max-width: 100%;
    font-size: 14px;
    line-height: 1.55;
  }

  .site-footer-button {
    min-height: 44px;
    justify-self: start;
    margin-top: 0;
  }

  .site-wave-layer.light {
    top: 156px;
    bottom: auto;
    height: 380px;
  }

  .site-wave-layer.dark {
    top: 156px;
    bottom: auto;
    height: 380px;
  }

  .site-footer-main {
    padding-top: 104px;
    padding-bottom: calc(28px + env(safe-area-inset-bottom));
    background: linear-gradient(90deg, #006449 0%, #008761 58%, #00b17b 100%);
  }

  .site-footer-grid,
  .site-footer-bottom {
    display: none;
  }

  .site-mobile-footer {
    position: relative;
    z-index: 1;
    display: block;
    color: #fff;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .site-mobile-footer-brand {
    margin-bottom: 20px;
  }

  .site-mobile-footer-brand img {
    width: 132px;
    margin: 0 0 12px;
  }

  .site-mobile-footer-brand p {
    margin: 0;
    max-width: 100%;
    color: rgba(255,255,255,.74);
    font-size: 14px;
    line-height: 1.58;
    font-weight: 650;
  }

  .site-mobile-footer-core {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,.18);
  }

  .site-mobile-footer-core a,
  .site-mobile-footer-content a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border: 1px solid rgba(255,255,255,.20);
    border-radius: 14px;
    background: rgba(255,255,255,.08);
    color: #fff;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 850;
    text-decoration: none;
  }

  .site-mobile-footer-panel {
    border-top: 1px solid rgba(255,255,255,.18);
    min-height: 0;
    margin: 0;
    padding: 0;
  }

  .site-mobile-footer-core + .site-mobile-footer-panel {
    border-top: 0;
  }

  .site-mobile-footer-toggle {
    width: 100%;
    min-height: 52px;
    display: grid;
    grid-template-columns: 1fr 20px;
    align-items: center;
    gap: 12px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 950;
    text-align: left;
    cursor: pointer;
    margin: 0;
  }

  .site-mobile-footer-toggle i {
    width: 9px;
    height: 9px;
    justify-self: center;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform var(--motion-fast, 160ms) var(--ease-standard, cubic-bezier(0.2,0,0,1));
  }

  .site-mobile-footer-panel.open .site-mobile-footer-toggle i {
    transform: rotate(225deg);
  }

  .site-mobile-footer-content {
    display: grid;
    max-height: 0;
    gap: 10px;
    opacity: 0;
    overflow: hidden;
    min-height: 0;
    margin: 0;
    padding: 0;
    transition: max-height var(--motion-normal, 220ms) var(--ease-standard, cubic-bezier(0.2,0,0,1)), opacity var(--motion-fast, 160ms) var(--ease-standard, cubic-bezier(0.2,0,0,1));
  }

  .site-mobile-footer-panel.open .site-mobile-footer-content {
    max-height: 360px;
    opacity: 1;
    padding-bottom: 14px;
  }

  .site-mobile-footer-content > * {
    min-height: 0;
    margin-top: 0;
    margin-bottom: 0;
  }

  .site-mobile-footer-content .site-social-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0;
    padding: 4px 0 10px;
  }

  .site-social-row a,
  .site-social-row span,
  .site-social-row button {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }

  .site-mobile-footer-content .site-wechat-popover {
    display: none;
  }

  .site-mobile-footer-content span {
    color: rgba(255,255,255,.72);
    font-size: 12px;
    line-height: 1.5;
  }

  .site-mobile-footer-bottom {
    display: grid;
    gap: 4px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.18);
    color: rgba(255,255,255,.72);
    font-size: 12px;
    line-height: 1.5;
  }
}

@media (max-width: 360px) {
  .site-mobile-footer-core {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .newpay-qr-dialog,
  .newpay-qr-sheet,
  .site-mobile-footer-toggle i,
  .site-mobile-footer-content {
    transition: none;
  }
}
