html.contact-dialog-open { overflow: hidden; }
.contact-dialog { width: min(1040px, calc(100vw - 40px)); max-height: min(92dvh, 960px); padding: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); color: var(--ink); font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; box-shadow: 0 24px 90px rgb(15 30 60 / 24%); }
.contact-dialog[open] { display: flex; flex-direction: column; }
.contact-dialog::backdrop { background: rgb(15 25 45 / 45%); backdrop-filter: blur(3px); }
.contact-dialog__header { position: relative; display: grid; grid-template-columns: minmax(240px, .85fr) minmax(0, 1.35fr); align-items: center; gap: 32px; padding: 38px 44px 30px; }
.contact-dialog__header::after { content: ""; position: absolute; bottom: 0; left: 44px; right: 44px; border-bottom: 1px solid var(--line); }
body:not(.ops-page) .contact-dialog__header h2 { margin: 0; font-size: 36px; font-weight: 600; line-height: 1.35; }
.contact-dialog__close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--ink); cursor: pointer; }
.contact-dialog__close svg { width: 20px; height: 20px; }
.contact-dialog__close:hover { color: var(--brand); background: var(--soft); }
.contact-dialog__body { min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 28px 44px 36px; }
.contact-methods { display: grid; gap: 8px; min-width: 0; border-left: 1px solid var(--line); padding-left: 28px; }
.contact-page-methods { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; margin-bottom: 28px; padding: 0; border: 0; }
.contact-page-methods .contact-method { align-items: flex-start; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.contact-method { display: flex; align-items: center; gap: 12px; min-width: 0; }
.contact-method > div { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; min-width: 0; }
.contact-method__icon { display: grid; place-items: center; flex: 0 0 24px; height: 28px; color: var(--brand); }
.contact-method__icon svg { width: 24px; height: 24px; }
body:not(.ops-page) .contact-method :is(h2, h3) { margin: 0; font-size: 16px; font-weight: 500; line-height: 1.5; color: var(--muted); }
.contact-method__value { margin: 0; font-size: 18px; line-height: 1.6; color: var(--ink); overflow-wrap: anywhere; user-select: text; text-decoration: none; }
a.contact-method__value { display: inline-flex; align-items: center; min-height: 44px; }
a.contact-method__value:hover { text-decoration: underline; text-underline-offset: 3px; }
.contact-copy { flex-shrink: 0; min-height: 32px; padding: 4px 0; border: 0; background: transparent; color: var(--brand); font-size: 16px; font-weight: 500; line-height: 1.5; cursor: pointer; }
.contact-copy:hover { text-decoration: underline; text-underline-offset: 3px; }
.contact-copy-status { margin: 0 0 16px; color: var(--muted); font-size: 13px; }
.contact-copy-status:empty { display: none; }
.contact-wechat-qr { display: block; max-width: 100%; height: auto; border-radius: 6px; }
.contact-dialog__form { margin: 0; }
.contact-dialog .submission-result { margin-top: 24px; }
.contact-dialog :is(button, a):focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
@media (max-width: 800px) {
  .contact-dialog { width: calc(100vw - 24px); max-height: 94dvh; border-radius: 16px; }
  .contact-dialog__header { grid-template-columns: 1fr; gap: 18px; padding: 24px 24px 20px; }
  body:not(.ops-page) .contact-dialog__header h2 { padding-right: 44px; font-size: 24px; }
  .contact-dialog__header::after { left: 24px; right: 24px; }
  .contact-methods { gap: 6px; padding: 0; border: 0; }
  .contact-dialog__body { padding: 22px 24px 26px; }
}
@media (max-width: 480px) {
  .contact-dialog__header { padding-inline: 20px; }
  .contact-dialog__body { padding-inline: 20px; }
  .contact-dialog__header::after { left: 20px; right: 20px; }
  body:not(.ops-page) .contact-method :is(h2, h3) { font-size: 14px; }
  .contact-method { gap: 10px; }
  .contact-method > div { gap: 0 10px; }
  .contact-method__value { font-size: 14px; }
  .contact-copy { font-size: 13px; }
}
