/* The project contact keeps the existing blue panel and shared QR interaction. */
.project-wechat-page .project-next-contact {
  width: 228px;
  max-width: 100%;
  min-width: 0;
}
.project-wechat-page .project-next-contact .actions { display: flex; margin: 0; }
.project-wechat-page .project-wechat-scan { display: inline-flex; justify-content: center; width: 100%; min-height: 44px; padding: 12px 18px; font-size: 14px; line-height: 1.5; }
.project-wechat-page .project-next-contact a:focus-visible { outline: 2px solid white; outline-offset: 4px; border-radius: 8px; }

/* The panel matches the homepage's native dialog; account/image stay identical. */
.project-wechat-page .wechat-contact-dialog:not([open]) { display: none; }
.project-wechat-page .wechat-contact-dialog {
  width: min(400px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #d5e3ff;
  border-radius: 20px;
  background: white;
  color: var(--ink);
  box-shadow: 0 24px 80px #01265225;
}
.project-wechat-page .wechat-contact-dialog::backdrop { background: #041d4e4d; }
.project-wechat-page .wechat-contact-panel { padding: 24px; }
.project-wechat-page .wechat-contact-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.project-wechat-page .wechat-contact-heading > div > p { margin: 0 0 4px; font-size: 12px; color: var(--blue); }
.project-wechat-page .wechat-contact-heading h2 { margin: 0; font-size: 24px; line-height: 1.25; font-weight: 700; }
.project-wechat-page .wechat-contact-close { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: #f8fbfd; color: var(--muted); cursor: pointer; }
.project-wechat-page .wechat-contact-close .icon { width: 20px; height: 20px; }
.project-wechat-page .wechat-contact-description { margin: 16px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.project-wechat-page .wechat-qr-frame { width: min(100%, 292px); padding: 12px; margin: 16px auto 0; background: white; }
.project-wechat-page .wechat-qr-frame img { display: block; width: 100%; height: auto; object-fit: contain; }
.project-wechat-page .wechat-contact-hint { margin: 8px 0 0; color: var(--muted); text-align: center; font-size: 12px; line-height: 1.6; }
.project-wechat-page .wechat-contact-account { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.project-wechat-page .wechat-contact-account p { display: flex; align-items: baseline; gap: 10px; margin: 0; }
.project-wechat-page .wechat-contact-account p > span { color: var(--muted); font-size: 12px; }
.project-wechat-page .wechat-contact-account strong { font-size: 16px; font-weight: 600; user-select: text; }
.project-wechat-page .wechat-contact-account button { min-height: 44px; padding: 10px 14px; border: 1px solid #c6dcff; border-radius: 10px; background: #edf4ff; color: var(--blue); font-size: 13px; font-weight: 600; cursor: pointer; }
.project-wechat-page .wechat-contact-account button:disabled { opacity: .6; cursor: wait; }
.project-wechat-page .wechat-contact-close:hover, .project-wechat-page .wechat-contact-account button:hover { background: #e5efff; color: var(--blue); }
.project-wechat-page .wechat-contact-dialog button:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.project-wechat-page .wechat-copy-feedback { min-height: 20px; margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }

@media (max-width: 650px) {
  .project-wechat-page .project-next-contact { width: 100%; }
  .project-wechat-page .wechat-contact-panel { padding: 20px; }
  .project-wechat-page .wechat-contact-heading h2 { font-size: 22px; }
}
