/* 在线咨询弹窗公共样式 */

/* 防止背景滚动 */
body.popup-open {
  overflow: hidden !important;
  position: fixed;
  width: 100%;
  /* 隐藏滚动条 */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}
body.popup-open::-webkit-scrollbar {
  display: none; /* Chrome/Safari/Webkit */
}

/* 弹窗样式 */
.popup-overlay {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 500px;
  height: 100vh;
  background: white;
  box-shadow: -2px 0 15px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  overflow-y: auto;
  transform: translateX(100%);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
  visibility: hidden;
}
.zx{
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.popup-overlay::-webkit-scrollbar {
  display: none;
}

@media (max-width: 767px) { 
  .popup-overlay {
    width: 90%;
    /* 高度由 JS 动态设置 */
  }
}

@media (min-width: 768px) and (max-width: 1024px) { 
  .popup-overlay {
    width: 500px;
  }
}

@media (min-width: 1025px) { 
  .popup-overlay {
    width: 500px;
  }
}

/* 确保弹窗滚动条覆盖页面 */
.popup-overlay.show {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

/* 半透明遮罩层 */
.popup-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.popup-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.popup-content {
  height: 100%;
  /* padding-top: 60px; */
  box-sizing: border-box;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 9999;
  font-size: 32px;
  background: white;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.popup-iframe {
  width: 100%;
  height: 100%;
  border: none;
} 