.article-detail-page[data-article="codex-remote-support"] .remote-support-apply {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin: 18px 0 8px;
  padding: 20px 22px;
  border: 1px solid #cfe1f2;
  border-radius: 9px;
  background: linear-gradient(120deg, #f4f9ff 0%, #f7fcfa 100%);
  box-shadow: 0 10px 28px rgb(21 75 126 / 7%);
}

.remote-support-apply-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  color: #0878df;
  background: #e5f2ff;
}

.remote-support-apply-icon svg {
  width: 25px;
  height: 25px;
}

.remote-support-apply > div {
  min-width: 0;
}

.remote-support-apply > div > span {
  display: block;
  margin-bottom: 3px;
  color: #078162;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
}

.remote-support-apply strong {
  display: block;
  color: #173b61;
  font-size: 17px;
  line-height: 1.45;
}

.remote-support-apply p {
  margin: 6px 0 0;
  color: #5d7187;
  font-size: 13px;
  line-height: 1.65;
}

.article-detail-page[data-article="codex-remote-support"] .remote-support-apply > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 17px;
  border-radius: 7px;
  color: #fff;
  background: #066fd8;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgb(6 111 216 / 18%);
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.article-detail-page[data-article="codex-remote-support"] .remote-support-apply > a:hover {
  background: #055fac;
  box-shadow: 0 10px 22px rgb(6 95 172 / 24%);
  transform: translateY(-1px);
}

.remote-support-apply > a svg {
  width: 16px;
  height: 16px;
}

.remote-support-apply > a:focus-visible,
.codex-wechat-dialog button:focus-visible {
  outline: 3px solid rgb(6 111 216 / 35%);
  outline-offset: 3px;
}

html.has-codex-wechat-dialog {
  overflow: hidden;
}

.codex-wechat-dialog {
  width: min(430px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 16px;
  color: #172b4d;
  background: transparent;
}

.codex-wechat-dialog::backdrop {
  background: rgb(11 31 54 / 64%);
  backdrop-filter: blur(4px);
}

.codex-wechat-dialog-card {
  position: relative;
  max-height: calc(100dvh - 32px);
  overflow: hidden;
  border: 1px solid #d8e4ee;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 70px rgb(7 35 65 / 28%);
}

.codex-wechat-dialog-body {
  display: grid;
  justify-items: center;
  gap: 16px;
  max-height: calc(100dvh - 32px);
  box-sizing: border-box;
  padding: 28px;
  overflow: auto;
  overscroll-behavior: contain;
}

.codex-wechat-dialog-close {
  position: absolute;
  z-index: 1;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #536a82;
  background: #f1f5f8;
  cursor: pointer;
}

.codex-wechat-dialog-close:hover {
  color: #183b60;
  background: #e5edf3;
}

.codex-wechat-dialog-close svg {
  width: 18px;
  height: 18px;
}

.codex-wechat-dialog-header {
  padding: 0 28px;
  text-align: center;
}

.codex-wechat-dialog-header > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #066fd8;
  font-size: 12px;
  font-weight: 800;
}

.codex-wechat-dialog-header > span svg {
  width: 16px;
  height: 16px;
}

.codex-wechat-dialog h2 {
  margin: 9px 0 7px;
  color: #102d52;
  font-size: 22px;
  line-height: 1.3;
}

.codex-wechat-dialog-header p {
  margin: 0;
  color: #526a84;
  font-size: 13px;
  line-height: 1.65;
}

.codex-wechat-dialog figure {
  width: min(100%, 300px);
  margin: 0;
  padding: 8px;
  box-sizing: border-box;
  border: 1px solid #dce7f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgb(28 73 111 / 8%);
}

.codex-wechat-dialog figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.codex-wechat-id {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #d8e7f2;
  border-radius: 10px;
  background: #f5f9fd;
}

.codex-wechat-id > span {
  color: #526a84;
  font-size: 12px;
}

.codex-wechat-id strong {
  color: #173b61;
  font-size: 16px;
  letter-spacing: .02em;
}

.codex-wechat-id button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: #066fd8;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.codex-wechat-id button:hover,
.codex-wechat-id button[data-copied="true"] {
  background: #055fac;
}

.codex-wechat-id button[data-copy-error="true"] {
  background: #a32232;
}

.codex-wechat-id button svg {
  width: 15px;
  height: 15px;
}

.codex-wechat-copy-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.codex-wechat-dialog-note {
  margin: -2px 0 0;
  color: #526a84;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

@media (max-width: 760px) {
  .article-detail-page[data-article="codex-remote-support"] .remote-support-apply {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 13px;
    padding: 18px;
  }

  .remote-support-apply-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .remote-support-apply strong {
    font-size: 16px;
  }

  .article-detail-page[data-article="codex-remote-support"] .remote-support-apply > a {
    grid-column: 1 / -1;
    width: 100%;
    box-sizing: border-box;
  }

  .codex-wechat-dialog {
    width: min(430px, calc(100% - 20px));
    max-height: calc(100dvh - 20px);
  }

  .codex-wechat-dialog-card {
    max-height: calc(100dvh - 20px);
    border-radius: 14px;
  }

  .codex-wechat-dialog-body {
    gap: 14px;
    max-height: calc(100dvh - 20px);
    padding: 24px 18px 18px;
  }

  .codex-wechat-dialog-close {
    top: 10px;
    right: 10px;
  }

  .codex-wechat-dialog-header {
    padding: 0 24px;
  }

  .codex-wechat-dialog h2 {
    font-size: 20px;
  }

  .codex-wechat-dialog figure {
    width: min(100%, 280px);
  }

  .codex-wechat-id {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .codex-wechat-id button {
    grid-column: 1 / -1;
    width: 100%;
  }
}
