/* ==========================================================================
 * 投放落地页（设计稿 index-v3.html），样式照搬设计稿，类名加 lp- 前缀避免和 base.css 冲突。
 * 下面「Installation Blocked?」弹窗和邀请码条的样式是原来的，没动。
 * ========================================================================== */
.lp {
  --lp-g: #02f46a;
  --lp-g-deep: #00c957;
  --lp-amber: #ffb020;
  --lp-amber-line: #7a5410;
  --lp-font: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --lp-ease: cubic-bezier(.22, 1, .36, 1);
  /* 插画按 360 宽画的，整列最宽 420 */
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  font-family: var(--lp-font);
}

/* ---- 首屏：插画 + 两个按钮，放在一屏之内 ----
 * 插画占掉按钮以外剩下的高度，屏幕矮时插画缩小，按钮不用滚动就能看到。
 * 用 max-height 而不是 height：首屏只有「插画 + 按钮」那么高，下一屏前面不留黑边。 */
.lp-one {
  position: relative;
  container-type: inline-size;
  max-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #000;
}
@supports not (max-height: 100svh) { .lp-one { max-height: 100vh; } }
/* 邀请码条（?inviteCode=，固定在底部约 77px）出现时首屏让出它的高度，按钮不会被盖住 */
body.dp-has-invite .lp-one { max-height: calc(100svh - 77px - env(safe-area-inset-bottom, 0px)); }
@supports not (max-height: 100svh) {
  body.dp-has-invite .lp-one { max-height: calc(100vh - 77px - env(safe-area-inset-bottom, 0px)); }
}

/* flex: 0 1 auto —— 不会拉得比插画本身高，屏幕矮时会缩；缩的时候 cover + top 裁掉插画底部，不会左右留黑 */
.lp-art {
  flex: 0 1 auto;
  min-height: 0;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center top;
}

/* 插画底部是垂下来的充电线。按钮区上移 92px，让绿色按钮正好盖住线头（548 高的图里 y486），
 * 同时不压「11:00 PM」（到 y432 结束）；渐变把接缝藏掉。 */
.lp-acts {
  position: relative;
  z-index: 2;
  flex: none;
  margin-top: -92px;
  padding: 0 18px calc(14px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .55) 40%, #000 78%);
}

/* ---- 首屏文字：HTML 叠在插画上，不在图里 ---- */
.lp-hero-copy {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 1;
  padding: 18.4cqw 18px 0;
  pointer-events: none;
}
.lp-hero-copy h1 {
  margin: 0;
  font: 700 33px/1.16 var(--lp-font);
  letter-spacing: -.8px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .6);
}
.lp-hero-copy h1 em {
  display: block;
  font-style: normal;
  color: var(--lp-g);
}
.lp-hero-copy p {
  margin: 12px 0 0;
  max-width: 17.4em;
  font: 400 13px/1.5 var(--lp-font);
  color: #dfe8e2;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .6);
}

/* ---- 下载按钮 ---- */
.lp-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 56px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: linear-gradient(180deg, #5cffa2 0%, var(--lp-g) 52%, var(--lp-g-deep) 100%);
  color: #06230f;
  font: 800 16.5px/1 var(--lp-font);
  letter-spacing: -.2px;
  box-shadow: 0 10px 28px rgba(2, 244, 106, .32), inset 0 1px 0 rgba(255, 255, 255, .5);
  transition: transform .14s var(--lp-ease), box-shadow .2s ease, filter .15s ease;
}
.lp-cta:hover {
  filter: brightness(1.05);
  box-shadow: 0 14px 34px rgba(2, 244, 106, .42), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.lp-cta:active { transform: scale(.982); }
.lp-cta:focus-visible { outline: 3px solid #d6ffe8; outline-offset: 3px; }
.lp-cta svg { flex: none; }

/* ---- 安装不了：整宽琥珀色求助卡片，带慢速光环；琥珀色表示「求助」，不和绿色主按钮抢 ---- */
.lp-help {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 11px;
  padding: 11px 13px;
  border-radius: 15px;
  cursor: pointer;
  text-align: left;
  color: #fff;
  background: linear-gradient(180deg, #2a1d05 0%, #241803 100%);
  border: 1.5px solid var(--lp-amber-line);
  transition: transform .14s var(--lp-ease), border-color .18s ease, box-shadow .2s ease;
}
.lp-help::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 18px;
  pointer-events: none;
  border: 2px solid rgba(255, 176, 32, .55);
  opacity: 0;
  animation: lp-ring 3.4s ease-out infinite 1.2s;
}
@keyframes lp-ring {
  0% { opacity: .9; transform: scale(.985); }
  55% { opacity: 0; transform: scale(1.035); }
  100% { opacity: 0; }
}
.lp-help:hover { border-color: var(--lp-amber); box-shadow: 0 10px 24px rgba(255, 176, 32, .2); }
.lp-help:active { transform: scale(.99); }
.lp-help:focus-visible { outline: 3px solid #ffdca3; outline-offset: 3px; }
.lp-hic {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex: none;
  display: grid;
  place-items: center;
  background: rgba(255, 176, 32, .14);
  border: 1px solid rgba(255, 176, 32, .42);
  color: var(--lp-amber);
}
.lp-ht { flex: 1; min-width: 0; }
.lp-ht b { display: block; font: 700 14.5px/1.25 var(--lp-font); }
.lp-ht i { display: block; margin-top: 2px; font: normal 500 11.5px/1.35 var(--lp-font); color: #f3c879; }
.lp-hgo { flex: none; color: var(--lp-amber); }
@media (prefers-reduced-motion: reduce) { .lp-help::before { animation: none; } }

/* ---- 首屏以下：设计稿导出的一整张长图 ---- */
.lp-rest {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- "Installation Blocked?" modal ---------- */
.dp-blocked-modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 48px);
  max-width: 382px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: #ffffff;
  border-radius: 24px;
  padding: 24px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.dp-blocked-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 20px;
  height: 20px;
  cursor: pointer;
  filter: invert(45%);
}

.dp-blocked-modal-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(2, 244, 106, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.dp-blocked-modal-icon svg {
  width: 26px;
  height: 26px;
}

.dp-blocked-modal-title {
  margin: 0;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 17px;
  color: #14151a;
}

.dp-blocked-modal-desc {
  margin: 4px 0 12px;
  font-size: 12.5px;
  line-height: 18px;
  color: #6b6f76;
}

.dp-blocked-option {
  align-self: stretch;
  width: 100%;
  background: #f5f6f8;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
  margin-top: 12px;
}

.dp-blocked-badge {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 4px 10px;
  border-radius: 20px;
}

.dp-blocked-badge.blue {
  background: #e3e8fd;
  color: #3b5bff;
}

.dp-blocked-badge.green {
  background: #dcfbe9;
  color: #059146;
}

.dp-blocked-option-title {
  margin: 0;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 14px;
  color: #14151a;
}

.dp-blocked-guide-btn {
  align-self: stretch;
  width: 100%;
  height: 42px;
  margin-top: 4px;
  background: #ffffff;
  border: 1.3px solid #3b5bff;
  border-radius: 21px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
}

.dp-blocked-guide-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.dp-blocked-guide-btn span {
  font-weight: 700;
  font-size: 12.5px;
  color: #3b5bff;
  white-space: nowrap;
}

.dp-blocked-download-row {
  align-self: stretch;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
}

.dp-blocked-download-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.dp-blocked-android-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(164, 198, 57, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dp-blocked-android-icon svg {
  width: 18px;
  height: 18px;
}

.dp-blocked-download-left span {
  font-size: 13px;
  font-weight: 500;
  color: #14151a;
}

.dp-blocked-download-btn {
  flex-shrink: 0;
  height: 30px;
  padding: 0 16px;
  background: var(--success-500);
  color: #14151a;
  font-weight: 700;
  font-size: 12px;
  border-radius: 15px;
}

/* ---------- Invite code bar (only when opened via ?inviteCode=) ---------- */
body.dp-has-invite {
  padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
}

.dp-invite-bar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 50;
  width: 100%;
  max-width: 430px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(10, 14, 12, 0.94);
  border-top: 1px solid rgba(2, 244, 106, 0.35);
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.45);
}

.dp-invite-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.dp-invite-label {
  color: rgba(255, 255, 255, 0.7);
  font: 400 11px/16px var(--font-secondary);
}

.dp-invite-code {
  color: #fc0;
  font: 700 20px/24px var(--font-primary);
  letter-spacing: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dp-invite-hint {
  color: rgba(255, 255, 255, 0.55);
  font: 400 10px/14px var(--font-secondary);
}

.dp-invite-copy {
  flex-shrink: 0;
  border: 0;
  border-radius: 24px;
  padding: 8px 20px;
  background: var(--success-500);
  color: #0a0e0c;
  font: 700 14px/20px var(--font-secondary);
  letter-spacing: 0.28px;
}

.dp-invite-toast {
  position: fixed;
  left: 50%;
  bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 60;
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font: 400 13px/18px var(--font-secondary);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.dp-invite-toast.show {
  opacity: 1;
}
