.wechat-add-button {
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding: 0 16px;
  color: #ffffff;
  background: #168c5b;
  border: 0;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.wechat-add-button:hover {
  background: #0f7047;
  transform: translateY(-2px);
}

.wechat-add-button:focus-visible,
.wechat-dialog button:focus-visible,
.wechat-dialog a:focus-visible,
.cta-qr-button:focus-visible {
  outline: 3px solid #dfc48d;
  outline-offset: 4px;
}

body.wechat-dialog-open {
  overflow: hidden;
}

.wechat-dialog {
  width: min(920px, calc(100% - 32px));
  max-width: none;
  max-height: min(860px, calc(100dvh - 32px));
  padding: 0;
  overflow: auto;
  color: #10233f;
  background: #f2f7fd;
  border: 0;
  box-shadow: 0 42px 120px rgba(2, 15, 34, 0.46);
}

.wechat-dialog::backdrop {
  background: rgba(4, 21, 45, 0.82);
  backdrop-filter: blur(8px);
}

.wechat-dialog-close {
  position: absolute;
  z-index: 3;
  top: 16px;
  right: 16px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #ffffff;
  background: rgba(4, 21, 45, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.wechat-dialog-layout {
  display: grid;
  min-height: 610px;
  grid-template-columns: minmax(0, 0.9fr) minmax(330px, 1.1fr);
}

.wechat-dialog-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(38px, 6vw, 72px);
  color: #ffffff;
  background: radial-gradient(circle at 84% 18%, rgba(18, 104, 200, 0.48), transparent 30%), linear-gradient(140deg, #04152d, #0a4388);
}

.wechat-dialog-kicker {
  margin: 0;
  color: #dfc48d;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.22em;
}

.wechat-dialog-copy h2 {
  margin: 24px 0 0;
  color: #ffffff;
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.wechat-dialog-copy > p:not(.wechat-dialog-kicker, .wechat-dialog-note) {
  margin: 24px 0 0;
  color: #b9cbdd;
  font-size: 13px;
  line-height: 1.9;
}

.wechat-dialog-actions {
  display: grid;
  gap: 10px;
  margin-top: 32px;
}

.wechat-dialog-actions > * {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  padding: 0 17px;
  border: 0;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.wechat-launch-button {
  color: #04152d;
  background: linear-gradient(145deg, #f0dcae, #c8a15a);
}

.wechat-copy-button,
.wechat-back-button {
  color: #ffffff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
}

.wechat-dialog-note {
  margin: 24px 0 0;
  color: #8fa9c3;
  font-size: 9px;
  line-height: 1.8;
}

.wechat-dialog-image-shell {
  display: grid;
  align-content: center;
  justify-items: center;
  padding: clamp(28px, 5vw, 56px);
  background: #ffffff;
}

.wechat-dialog-image-shell img {
  display: block;
  width: min(100%, 360px);
  max-height: 70dvh;
  object-fit: contain;
  -webkit-touch-callout: default;
  user-select: auto;
}

.wechat-dialog-image-shell span {
  margin-top: 18px;
  color: #64758d;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

@media (max-width: 720px) {
  .wechat-dialog-layout {
    grid-template-columns: 1fr;
  }

  .wechat-dialog-copy {
    min-height: auto;
    padding: 44px 24px 30px;
  }

  .wechat-dialog-copy h2 {
    padding-right: 36px;
  }

  .wechat-dialog-image-shell {
    padding: 24px 20px 34px;
  }

  .wechat-dialog-image-shell img {
    width: min(100%, 330px);
    max-height: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wechat-add-button {
    transition: none;
  }
}
