/* 联系客服弹窗 + 顶栏按钮（内页、演示页共用） */

.nav-support-btn,
.site-support-btn,
.demo-support-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #2e86de, #1a6bb5);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(46, 134, 222, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-support-btn:hover,
.site-support-btn:hover,
.demo-support-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(46, 134, 222, 0.45);
}

.site-topbar .topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  margin-left: auto;
}

.feedback-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.feedback-modal.active {
  display: flex;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.modal-content--support {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 1rem 1rem 0.85rem;
  max-width: min(92vw, 300px);
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
}

.modal-content--support .modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.modal-content--support .modal-close:hover {
  background: #e2e8f0;
  color: #334155;
}

.support-card-image {
  display: block;
  width: min(100%, 258px);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 12px;
  margin: 0 auto;
  background: #fff;
}

.modal-content--support .modal-desc {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
  color: #64748b;
}

.demo-top-actions {
  position: fixed;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.demo-top-actions .lang-switch {
  position: static;
}

@media (max-width: 720px) {
  .site-topbar .topbar-actions {
    grid-area: lang;
    margin-left: 0;
  }

  .site-topbar .site-support-btn {
    padding: 0.4rem 0.65rem;
    font-size: 0.75rem;
  }
}
