/* 联系页 + 落地页页脚联系条 */

.contact-page-qr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.contact-page-qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 12px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(248, 250, 252, 0.9);
}

body:not(.app-theme-light) .contact-page-qr-card {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(255, 255, 255, 0.1);
}

.contact-page-qr-card--wa {
  border-color: rgba(34, 197, 94, 0.35);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.08);
}

.contact-page-qr-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.contact-page-qr-img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  padding: 6px;
}

.contact-page-qr-hint {
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
  color: rgba(100, 116, 139, 0.95);
  max-width: 180px;
}

body:not(.app-theme-light) .contact-page-qr-hint {
  color: rgba(203, 213, 225, 0.75);
}

/* 落地页页脚联系条 */
.saas-footer-contact-strip {
  max-width: 1100px;
  margin: 0 auto 40px;
  padding: 20px 22px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(15, 23, 42, 0.45) 100%);
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: stretch;
  text-align: left;
}

@media (min-width: 768px) {
  .saas-footer-contact-strip {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }
}

.saas-footer-contact-greeting {
  font-size: 15px;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.45;
  margin: 0 0 6px;
}

.saas-footer-contact-sub {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(203, 213, 225, 0.82);
  margin: 0 0 12px;
}

.saas-footer-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.saas-footer-contact-email {
  font-size: 13px;
  font-weight: 600;
  color: #c7d2fe;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(129, 140, 248, 0.45);
  background: rgba(30, 27, 75, 0.35);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.saas-footer-contact-email:hover {
  color: #eef2ff;
  border-color: rgba(165, 180, 252, 0.7);
  background: rgba(49, 46, 129, 0.45);
}

.saas-footer-contact-qr-link {
  font-size: 13px;
  color: rgba(226, 232, 240, 0.88);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: color 0.15s, border-color 0.15s;
}

.saas-footer-contact-qr-link:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

.saas-footer-contact-qr-mini {
  display: none;
  gap: 14px;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .saas-footer-contact-qr-mini {
    display: flex;
  }
}

.saas-footer-qr-mini-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.saas-footer-qr-mini-card img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  padding: 4px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.saas-footer-qr-mini-card span {
  font-size: 10px;
  font-weight: 600;
  color: rgba(203, 213, 225, 0.85);
  letter-spacing: 0.02em;
}

body.app-theme-light .saas-footer-contact-strip {
  border-color: rgba(15, 23, 42, 0.08);
  background: linear-gradient(135deg, rgba(238, 242, 255, 0.95) 0%, rgba(248, 250, 252, 0.98) 100%);
}

body.app-theme-light .saas-footer-contact-greeting {
  color: #0f172a;
}

body.app-theme-light .saas-footer-contact-sub {
  color: #475569;
}

body.app-theme-light .saas-footer-contact-email {
  color: #3730a3;
  border-color: rgba(99, 102, 241, 0.35);
  background: rgba(255, 255, 255, 0.85);
}

body.app-theme-light .saas-footer-contact-email:hover {
  color: #312e81;
  border-color: rgba(79, 70, 229, 0.5);
}

body.app-theme-light .saas-footer-contact-qr-link {
  color: #334155;
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.6);
}

body.app-theme-light .saas-footer-contact-qr-link:hover {
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.22);
}

body.app-theme-light .saas-footer-qr-mini-card span {
  color: #64748b;
}

@media (min-width: 900px) {
  .saas-footer-grid.saas-footer-grid--4 {
    grid-template-columns: 1.35fr 1fr 1fr 1fr;
  }
}

/* ── 可点击放大的 QR ── */
.contact-qr-open-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
  color: inherit;
  font: inherit;
  text-align: center;
  width: 100%;
}

.contact-qr-open-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.contact-qr-open-btn-frame {
  position: relative;
  display: block;
  line-height: 0;
}

.contact-qr-open-btn-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.contact-qr-open-btn-zoom {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.15s ease, transform 0.15s ease;
  pointer-events: none;
}

.contact-qr-open-btn-zoom svg {
  width: 14px;
  height: 14px;
}

.contact-qr-open-btn:hover .contact-qr-open-btn-zoom,
.contact-qr-open-btn:focus-visible .contact-qr-open-btn-zoom {
  opacity: 1;
  transform: scale(1);
}

.contact-qr-open-btn:focus-visible {
  outline: 2px solid rgba(99, 102, 241, 0.65);
  outline-offset: 3px;
  border-radius: 12px;
}

.contact-qr-open-btn--card {
  width: 100%;
}

.contact-qr-open-btn--card .contact-qr-open-btn-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.contact-qr-open-btn--card .contact-qr-open-btn-frame {
  width: 200px;
  height: 200px;
  padding: 6px;
  border-radius: 14px;
  background: #fff;
}

.contact-qr-open-btn--card .contact-qr-open-btn-hint {
  font-size: 11px;
  line-height: 1.4;
  max-width: 180px;
  color: rgba(100, 116, 139, 0.95);
}

body:not(.app-theme-light) .contact-qr-open-btn--card .contact-qr-open-btn-hint {
  color: rgba(203, 213, 225, 0.75);
}

.contact-qr-open-btn--thumb {
  width: 128px;
  height: 128px;
  position: relative;
  z-index: 1;
}

.contact-qr-open-btn--thumb .contact-qr-open-btn-frame {
  width: 128px;
  height: 128px;
}

.contact-qr-open-btn--thumb .contact-qr-open-btn-img {
  border-radius: 10px;
}

.contact-qr-open-btn--mini {
  width: 72px;
}

.contact-qr-open-btn--mini .contact-qr-open-btn-frame {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.contact-qr-open-btn--mini .contact-qr-open-btn-img {
  border-radius: 10px;
}

.contact-page-qr-card {
  padding: 12px 10px 14px;
}

.contact-page-qr-card .contact-qr-open-btn--card .contact-qr-open-btn-frame {
  width: 200px;
  height: 200px;
}

/* 灯箱 */
.contact-qr-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.contact-qr-lightbox-panel {
  position: relative;
  width: min(94vw, 480px);
  padding: 22px 20px 18px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  text-align: center;
}

body:not(.app-theme-light) .contact-qr-lightbox-panel {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-qr-lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
  color: #64748b;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

body:not(.app-theme-light) .contact-qr-lightbox-close {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

.contact-qr-lightbox-label {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #0f172a;
}

body:not(.app-theme-light) .contact-qr-lightbox-label {
  color: #f8fafc;
}

.contact-qr-lightbox-frame {
  display: flex;
  justify-content: center;
  padding: 12px;
  border-radius: 16px;
  background: #f8fafc;
}

body:not(.app-theme-light) .contact-qr-lightbox-frame {
  background: rgba(15, 23, 42, 0.6);
}

.contact-qr-lightbox-img {
  width: min(78vw, 380px);
  height: min(78vw, 380px);
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
}

.contact-qr-lightbox-hint {
  margin: 12px 0 4px;
  font-size: 13px;
  color: #475569;
}

body:not(.app-theme-light) .contact-qr-lightbox-hint {
  color: #94a3b8;
}

.contact-qr-lightbox-sub {
  margin: 0;
  font-size: 11px;
  color: #94a3b8;
}

.ai-agent-contact-qr-card .contact-qr-open-btn--card {
  padding: 4px 0 0;
}

.ai-agent-contact-qr-card .contact-qr-open-btn--card .contact-qr-open-btn-frame {
  width: 176px;
  height: 176px;
}

.ai-agent-contact-qr-card .contact-qr-open-btn--card .contact-qr-open-btn-label {
  font-size: 12px;
}

.ai-agent-contact-qr-card .contact-qr-open-btn--card .contact-qr-open-btn-hint {
  font-size: 10px;
}

.saas-footer-qr-mini-card .contact-qr-open-btn--mini {
  margin: 0 auto;
}
