/* 陶都宜兴 · APP 安装引导横幅（brand:pwa-install）
 * 由 assets/pwa/pwa-install.js 在页脚动态插入 DOM；本文件只负责样式。
 * 已安装 / 全屏运行态（display-mode:standalone）由媒体查询强制隐藏。 */
#pwa-install {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 99998;
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px calc(11px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(20,32,27,.95), rgba(20,32,27,.99));
  color: #f7f5f0;
  box-shadow: 0 -10px 30px -12px rgba(0,0,0,.55);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  transform: translateY(115%);
  transition: transform .42s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}
#pwa-install.show { transform: translateY(0); }

#pwa-install .pi-ico {
  width: 42px; height: 42px; flex: none; border-radius: 11px;
  background: #f7f5f0; display: flex; align-items: center; justify-content: center;
  overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
#pwa-install .pi-ico svg { width: 32px; height: 32px; display: block; }

#pwa-install .pi-tx { flex: 1; min-width: 0; }
#pwa-install .pi-t1 { font-size: 14px; font-weight: 600; letter-spacing: .03em; line-height: 1.3; }
#pwa-install .pi-t2 {
  font-size: 11.5px; color: rgba(201,171,119,.92); margin-top: 2px; line-height: 1.35;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* 第三方 App 内打开：提示语较长，改为最多 3 行 */
#pwa-install.pi-inapp .pi-t2 {
  white-space: normal;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3;
  overflow: hidden;
}

#pwa-install .pi-btn {
  flex: none; border: 0; cursor: pointer; font: inherit; font-size: 13px; font-weight: 600;
  letter-spacing: .06em; padding: 9px 17px; border-radius: 999px;
  background: #b08d57; color: #1b1410; transition: .2s ease;
}
#pwa-install .pi-btn:active { transform: scale(.95); }

#pwa-install .pi-x {
  flex: none; width: 30px; height: 30px; border: 0; background: transparent;
  color: rgba(247,245,240,.55); font-size: 22px; line-height: 1; cursor: pointer; padding: 0;
}
#pwa-install .pi-x:active { color: #fff; }

/* 宽屏：收成右下角卡片，避免遮挡桌面浏览 */
@media (min-width: 560px) {
  #pwa-install {
    max-width: 400px; left: auto; right: 16px; bottom: 16px;
    border-radius: 14px; padding: 13px 14px;
  }
}

/* 已安装 / 全屏运行：彻底不出现 */
@media (display-mode: standalone) {
  #pwa-install { display: none !important; }
}
