/* 加到桌面说明层 — 跟金色双皮肤变量走 */

.wap-add-home-sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
}

.wap-add-home-sheet[hidden] {
  display: none !important;
}

.wap-add-home-sheet__mask {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.55);
}

.wap-add-home-sheet__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  border: 1px solid rgba(var(--color-gold-rgb, var(--wap-gold-rgb)), 0.28);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  background: var(--bg-main);
  color: var(--text-primary);
  transform: translateY(18px);
  transition: transform 0.24s ease;
}

.wap-add-home-sheet.is-show .wap-add-home-sheet__panel {
  transform: none;
}

.wap-add-home-sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.wap-add-home-sheet__head strong {
  font-size: 16px;
  font-weight: 800;
}

.wap-add-home-sheet__close {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-primary);
  font-size: 22px;
}

.wap-add-home-sheet__copy {
  margin: 0 0 10px;
  color: var(--text-muted, var(--wap-muted));
  font-size: 14px;
  line-height: 1.6;
}

.wap-add-home-sheet__warn {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(var(--color-gold-rgb, var(--wap-gold-rgb)), 0.4);
  border-radius: 10px;
  background: rgba(var(--color-gold-rgb, var(--wap-gold-rgb)), 0.08);
  color: var(--text-primary);
  font-size: 13px;
  line-height: 1.55;
}

.wap-add-home-sheet__steps {
  margin: 0 0 14px;
  padding-left: 1.2em;
  color: var(--text-muted, var(--wap-muted));
  font-size: 13px;
  line-height: 1.65;
}

.wap-add-home-sheet__steps[hidden],
.wap-add-home-sheet__steps:empty {
  display: none;
}

.wap-add-home-sheet__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin: 0 0 10px;
  border: 0;
  border-radius: 12px;
  background: var(--color-gold);
  color: #12100a;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.wap-add-home-sheet__cta[hidden] {
  display: none !important;
}

.wap-add-home-sheet__cta--ghost {
  background: transparent;
  border: 1px solid rgba(var(--color-gold-rgb, var(--wap-gold-rgb)), 0.45);
  color: var(--color-gold);
}

.wap-add-home-sheet__help {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  color: var(--color-gold);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

html.is-standalone [data-add-home],
html.is-standalone .wap-profile__idsep {
  display: none !important;
}

html.wap-add-home-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .wap-add-home-sheet__panel {
    transition: none;
  }
}
