/* 智营AI 移动端底部悬浮「添加到主屏幕」引导组件（苹果极简毛玻璃风） */

.zy-pwa-banner {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  z-index: 9990;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px 11px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(24, 26, 31, 0.09);
  box-shadow:
    0 14px 36px rgba(15, 23, 42, 0.12),
    0 2px 6px rgba(15, 23, 42, 0.05);
  color: #181a1f;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
  animation: zyPwaSlideUp 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes zyPwaSlideUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.zy-pwa-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  flex-shrink: 0;
  object-fit: cover;
  border: 1px solid rgba(24, 26, 31, 0.08);
  background: #f8f9fb;
}

.zy-pwa-copy {
  flex: 1;
  min-width: 0;
}

.zy-pwa-title {
  font-size: 13px;
  font-weight: 640;
  color: #181a1f;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.zy-pwa-desc {
  margin-top: 2px;
  font-size: 11.8px;
  color: #525b6b;
  line-height: 1.45;
}

.zy-pwa-desc strong {
  color: #181a1f;
  font-weight: 600;
}

.zy-pwa-install-btn {
  flex-shrink: 0;
  height: 32px;
  padding: 0 12px;
  border: none;
  border-radius: 999px;
  background: #181a1f;
  color: #ffffff;
  font-size: 12px;
  font-weight: 560;
  cursor: pointer;
  white-space: nowrap;
}

.zy-pwa-close {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(24, 26, 31, 0.06);
  color: #6e7685;
  font-size: 15px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.zy-pwa-close:active {
  background: rgba(24, 26, 31, 0.12);
}

/* 电脑端彻底隐藏 */
@media (min-width: 901px) and (hover: hover) and (pointer: fine) {
  .zy-pwa-banner {
    display: none !important;
  }
}
