/* 加到桌面：底栏和说明卡。不盖住整页，字给中老年留大。不改商城原有布局。 */
.ly-pwa-bar {
  position: fixed;
  left: 10px;
  right: 10px;
  z-index: 1200;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 520px;
  margin: 0 auto;
  padding: 10px 10px 10px 14px;
  background: #fffdf8;
  color: #1b1b1b;
  border: 3px solid #1b1b1b;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  box-sizing: border-box;
}
.ly-pwa-bar.above-tab {
  bottom: calc(78px + env(safe-area-inset-bottom, 0px));
}
.ly-pwa-bar.activity {
  bottom: 108px;
  z-index: 40;
}
.ly-pwa-copy {
  flex: 1;
  min-width: 0;
}
.ly-pwa-copy strong {
  display: block;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 800;
}
.ly-pwa-copy span {
  display: block;
  margin-top: 2px;
  font-size: 16px;
  line-height: 1.35;
  color: #333;
}
.ly-pwa-go,
.ly-pwa-primary {
  border: 0;
  border-radius: 14px;
  background: #e23d2b;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.ly-pwa-go {
  flex: 0 0 auto;
  min-width: 92px;
  min-height: 52px;
  padding: 10px 14px;
  font-size: 20px;
}
.ly-pwa-x {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border: 2px solid #1b1b1b;
  border-radius: 12px;
  background: #fff;
  color: #1b1b1b;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}
.ly-pwa-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1300;
  display: flex;
  justify-content: center;
  pointer-events: none;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.ly-pwa-sheet.activity {
  z-index: 80;
}
.ly-pwa-card {
  pointer-events: auto;
  width: min(520px, 100%);
  margin: 0 10px calc(12px + env(safe-area-inset-bottom, 0px));
  padding: 16px 16px 18px;
  background: #fffdf8;
  color: #1b1b1b;
  border: 3px solid #1b1b1b;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
}
.ly-pwa-card h2 {
  margin: 0 48px 8px 0;
  font-size: 24px;
  line-height: 1.3;
}
.ly-pwa-card p,
.ly-pwa-card li {
  font-size: 20px;
  line-height: 1.45;
}
.ly-pwa-card ol {
  margin: 8px 0 14px;
  padding-left: 1.3em;
}
.ly-pwa-card .ly-pwa-x {
  position: absolute;
  top: 12px;
  right: 12px;
}
.ly-pwa-card {
  position: relative;
}
.ly-pwa-primary,
.ly-pwa-later {
  display: block;
  width: 100%;
  min-height: 52px;
  margin-top: 8px;
  font-size: 20px;
}
.ly-pwa-later {
  border: 2px solid #1b1b1b;
  border-radius: 14px;
  background: #fff;
  color: #1b1b1b;
  font-weight: 700;
  cursor: pointer;
}
.ly-pwa-quiet {
  display: block;
  width: calc(100% - 24px);
  margin: 8px 12px 4px;
  min-height: 48px;
  border: 2px solid #e23d2b;
  border-radius: 12px;
  background: #fff;
  color: #e23d2b;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
}

/* 旧的全屏自动弹层和旧底栏不再出现。分享成功弹层是 shareModal，不受影响。
   不要给 pwa-install 宿主加 z-index / transform，否则系统安装说明会被关在错误的层里。 */
#a2hsModal,
#ly-a2hs-bar,
#ly-a2hs-sheet,
[data-ly-a2hs-entry] {
  display: none !important;
}

/* 安卓无原生安装：极简一句卡，不要大图/黄框手指 */
.ly-pwa-quietcard {
  padding: 14px 16px 16px;
}
.ly-pwa-quietline {
  margin: 4px 48px 12px 0;
  font-size: 20px !important;
  line-height: 1.4 !important;
  font-weight: 700;
}
