/**
 * PWA 安装引导 Bottom Sheet 样式
 */

.pwa-install-sheet {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10001;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  pointer-events: none;
}

.pwa-install-sheet.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.install-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.install-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(30px) saturate(200%);
  -webkit-backdrop-filter: blur(30px) saturate(200%);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  padding: 24px 20px 32px;
  max-height: 80vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.1);
}

.pwa-install-sheet.show .install-content {
  transform: translateY(0);
}

.install-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #666666;
  transition: background 0.2s, color 0.2s;
  z-index: 10;
}

.install-close-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #000000;
}

.install-close-btn:active {
  background: rgba(0, 0, 0, 0.1);
}

.install-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.install-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.install-title {
  font-size: 18px;
  font-weight: 600;
  color: #000000;
  text-align: center;
  margin: 0 0 24px;
  line-height: 1.5;
  padding: 0 8px;
}

.install-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.install-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.step-number {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: #000000;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}

.step-text {
  flex: 1;
  font-size: 15px;
  color: #333333;
  line-height: 1.6;
  padding-top: 2px;
}

.step-text .share-icon {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin: 0 2px;
  display: inline-block;
}

/* 响应式设计 */
@media (max-width: 480px) {
  .install-content {
    padding: 20px 16px 28px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
  }

  .install-title {
    font-size: 17px;
    margin-bottom: 20px;
  }

  .install-steps {
    gap: 12px;
  }

  .install-step {
    padding: 14px;
  }

  .step-text {
    font-size: 14px;
  }
}

/* 桌面端隐藏 */
@media (min-width: 1024px) {
  .pwa-install-sheet {
    display: none !important;
  }
}

