/* 客服弹窗：延续官网黑色、细线和马卡龙黄；二维码原图不裁切、不变色。 */
.nav-actions .nav-contact { cursor: pointer; }
.nav-actions .nav-contact:hover { color: var(--gold); border-color: var(--gold); background: #1c1a15; }
.nav-contact:focus-visible, .contact-dialog :focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
html.contact-modal-open { overflow: hidden; overscroll-behavior: none; }
dialog.contact-dialog {
  position: fixed; inset: 0; margin: auto; padding: 0;
  width: 420px; max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  overflow: auto; overscroll-behavior: contain;
  background: #121212; color: var(--text); border: 1px solid #56534c;
  border-radius: 12px; box-shadow: 0 24px 80px #0008;
}
.contact-dialog::backdrop { background: #000b; backdrop-filter: none; }
.contact-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px 20px; border-bottom: 1px solid var(--line); }
.contact-eyebrow { display: block; color: var(--gold); font-size: .6875rem; line-height: 1.5; letter-spacing: .12em; }
.contact-header h2 { font-size: 1.375rem; font-weight: 500; line-height: 1.5; margin: 5px 0 0; }
.contact-close { display: inline-flex; flex: 0 0 44px; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid #46433c; border-radius: 6px; background: transparent; color: #f8f6f0; font-size: 1.75rem; line-height: 1; cursor: pointer; }
.contact-close:hover { border-color: var(--gold); color: var(--gold); background: #24221c; }
.contact-content { padding: 22px 24px 26px; text-align: center; }
#contact-description { font-size: 1rem; line-height: 1.7; color: #f8f6f0; margin: 0 0 18px; }
.contact-qr-frame { max-width: 320px; margin: 0 auto; padding: 16px; border-radius: 8px; background: #fff; }
#contact-qr { display: block; width: 100%; height: auto; max-width: 100%; margin: 0; filter: none; }
.contact-hint { color: #bcb7ac; font-size: .875rem; line-height: 1.8; margin: 18px 0; }
.contact-save { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 18px; padding: 10px 24px; background: var(--gold); color: #211b0e; border: 1px solid var(--gold); border-radius: 4px; font-size: .875rem; font-weight: 500; text-decoration: none; }
.contact-save:hover { background: #ffe6ac; color: #211b0e; border-color: #ffe6ac; }
#contact-error { color: #702a20; line-height: 1.8; padding: 24px 8px; margin: 0; }
.contact-dialog [hidden] { display: none !important; }
@media (max-width: 380px) {
  .contact-header { padding: 18px 20px; }
  .contact-content { padding: 20px; }
  .contact-qr-frame { padding: 12px; }
}
