/* ========== 心声下载页 · 基础 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  min-height: 100vh;
  color: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* 背景：优先 bg.jpg，缺失时回退暖色渐变；上叠一层暗化保证文字可读 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    url('/BL-JS-55/img/bg.jpg') center / cover no-repeat,
    linear-gradient(160deg, #7a5c86 0%, #c76e93 52%, #e88f68 100%);
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(18, 10, 24, .22) 0%, rgba(18, 10, 24, .08) 34%, rgba(18, 10, 24, .55) 100%);
}

[hidden] { display: none !important; }

/* ========== 主容器 ========== */
.lp {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 62px 28px 46px;
  display: flex;
  flex-direction: column;
}

/* ========== App 信息 ========== */
.lp__icon {
  width: 90px;
  height: 90px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, #ff7ac0, #6c8bff);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .32);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lp__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lp__name {
  margin-top: 24px;
  font-size: 46px;
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 1.1;
  text-shadow: 0 3px 16px rgba(0, 0, 0, .35);
}

.lp__slogan {
  margin-top: 14px;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.55;
  color: rgba(255, 255, 255, .95);
  text-shadow: 0 2px 12px rgba(0, 0, 0, .3);
}

/* ========== 下载按钮 ========== */
.lp__actions { margin-top: 42px; }

.dl-btn {
  width: 100%;
  height: 62px;
  border: none;
  border-radius: 16px;
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .5px;
  cursor: pointer;
  outline: none;
  appearance: none;
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 12px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .28);
  transition: transform .15s ease, box-shadow .15s ease;
}
.dl-btn + .dl-btn { margin-top: 16px; }
.dl-btn:active { transform: scale(.98); }

.dl-btn--ios { background: linear-gradient(135deg, #ff5fa2, #9a5cf6); }
.dl-btn--android { background: linear-gradient(135deg, #3d7bff, #31c5f4); }

.dl-btn__ic { width: 26px; height: 26px; flex-shrink: 0; display: flex; }
.dl-btn__ic svg { width: 100%; height: 100%; }
.dl-btn__tx { flex: 1; text-align: left; }
.dl-btn__arrow { width: 20px; height: 20px; opacity: .9; flex-shrink: 0; }
.dl-btn__arrow svg { width: 100%; height: 100%; }

/* ========== 说明文字 ========== */
.lp__note {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  color: rgba(255, 255, 255, .9);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .3);
}
.lp__note:first-of-type { margin-top: 24px; }
.lp__note-ic {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: flex;
  color: #ffffff;
}
.lp__note-ic svg { width: 100%; height: 100%; }

/* ========== 备用下载 ========== */
.lp__backup {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
}
.lp__backup-q { color: rgba(255, 255, 255, .85); }

.backup-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border: 1px solid rgba(255, 255, 255, .55);
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border-radius: 22px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  backdrop-filter: blur(6px);
}
.backup-toggle__arrow { width: 15px; height: 15px; transition: transform .2s ease; display: flex; }
.backup-toggle__arrow svg { width: 100%; height: 100%; }
.backup-toggle.is-open .backup-toggle__arrow { transform: rotate(180deg); }

.lp__backup-panel {
  margin-top: 16px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .25);
  backdrop-filter: blur(8px);
  animation: fadeUp .25s ease;
}
.lp__backup-tip { font-size: 14px; color: rgba(255, 255, 255, .9); margin-bottom: 12px; }
.backup-go {
  width: 100%;
  height: 50px;
  border: none;
  border-radius: 13px;
  background: rgba(255, 255, 255, .95);
  color: #b0416f;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  outline: none;
}
.backup-go:active { transform: scale(.98); }

/* ========== 微信引导蒙层 ========== */
.wx-mask {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, .82);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 18px;
}
.wx-mask__arrow {
  position: fixed;
  top: 10px;
  right: 16px;
  width: 62px;
}
.wx-mask__arrow svg { width: 100%; height: auto; }
.wx-mask__panel {
  max-width: 320px;
  background: #fff;
  color: #222;
  border-radius: 18px;
  padding: 22px 20px;
  text-align: center;
}
.wx-mask__title { font-size: 18px; font-weight: 800; color: #1a1a2e; }
.wx-mask__desc { font-size: 14px; color: #667085; margin-top: 8px; line-height: 1.6; }
.wx-mask__steps { text-align: left; margin: 16px 0; font-size: 14px; color: #444; line-height: 2; }
.wx-mask__steps b { color: #b0416f; }
.wx-mask__copy { display: flex; gap: 8px; margin-top: 8px; }
.wx-mask__copy input { flex: 1; min-width: 0; border: 1px solid #e3e3e8; border-radius: 10px; padding: 10px; font-size: 13px; color: #444; }
.wx-mask__copy button { border: none; border-radius: 10px; padding: 0 16px; background: linear-gradient(135deg, #ff5fa2, #9a5cf6); color: #fff; font-weight: 700; cursor: pointer; }

/* ========== 网络异常弹窗 ========== */
.net-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 70;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(4, 8, 18, .54);
  backdrop-filter: blur(10px);
}
.net-modal__panel {
  width: min(100%, 320px);
  padding: 32px 24px 24px;
  border-radius: 28px;
  background: linear-gradient(180deg, #fff, #f4f7ff);
  box-shadow: 0 24px 44px rgba(0, 0, 0, .28);
  text-align: center;
  color: #182135;
}
.net-modal__icon {
  width: 56px; height: 56px; margin: 0 auto 16px;
  border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, #ff9a56, #ff6b6b);
  box-shadow: 0 8px 18px rgba(255, 107, 107, .28);
}
.net-modal__icon svg { width: 28px; height: 28px; }
.net-modal__title { font-size: 18px; font-weight: 800; color: #1a1a2e; }
.net-modal__desc { margin-top: 10px; font-size: 14px; line-height: 1.7; color: #667085; }
.net-modal__button {
  width: 100%; margin-top: 22px; padding: 14px 0; border: none; border-radius: 14px;
  background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer;
}
.net-modal__button:active { transform: scale(.96); }

/* ========== Toast ========== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 60px;
  transform: translateX(-50%) translateY(20px);
  background: rgba(0, 0, 0, .82);
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  max-width: 82%;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 80;
}
.toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ========== 动画 & 响应式 ========== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 360px) {
  .lp { padding: 48px 20px 40px; }
  .lp__name { font-size: 38px; }
  .lp__slogan { font-size: 18px; }
  .dl-btn { height: 56px; font-size: 17px; }
}
