/* Preserve the contact image sizing used before September 27, 2026. */
.contact-section, .contact-page {
  --contact-ink: #f1eeee;
  --contact-muted: #e1dede;
  --contact-link: #bfe4ff;
  --contact-focus: #6bbcff;
  box-sizing: border-box;
  text-align: center;
  overflow-wrap: anywhere;
}
#footer .contact-section { max-width: none; margin: 0 auto; padding: 36px 30px; }
.contact-title { margin: 0 0 12px; color: var(--contact-ink); font-size: 26px; line-height: 1.4; font-weight: 600; }
.contact-caption { margin: 0 0 20px; color: var(--contact-muted); font-size: 16px; line-height: 1.7; }
.contact-qr-link { display: block; width: 32%; max-width: 100%; margin: 0 auto; border-radius: 8px; }
#footer .contact-qr-image, .contact-qr-image { display: block; width: 100%; max-width: 100%; height: auto; margin: 0 auto; border-radius: 8px; }
.contact-qr-link:focus { outline: 3px solid var(--contact-focus); outline-offset: 5px; }
.contact-legal { margin: 24px 0 0; color: var(--contact-muted); font-size: 14px; line-height: 1.9; }
#footer .contact-section a { color: var(--contact-link); }
.contact-section a:hover { text-decoration: underline; }
body.contact-page {
  --contact-ink: #222;
  --contact-muted: #555;
  --contact-link: #145f96;
  margin: 0;
  min-height: 100vh;
  padding: 28px 0;
  background: #f4f4f4;
  font-family: "Microsoft Yahei", "PingFang SC", sans-serif;
}
.contact-page main { width: 100%; margin: 0 auto; }
.contact-page .contact-qr-link { width: 100%; }
.contact-page .contact-qr-image { width: auto; max-width: 90%; max-height: 90vh; border-radius: 10px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); }
.contact-help { margin: 16px 0 0; color: var(--contact-muted); font-size: 14px; line-height: 1.8; }
@media (max-width: 375px) {
  #footer .contact-section { padding: 28px 30px; }
  .contact-title { font-size: 24px; }
}
