/**
 * 落地页定位欢迎弹窗 · 样式（v1.0.28 · 简洁灵动时尚版 · 全机型微信自适应优化版）。
 * 森萝映画品牌视觉：品牌粉渐变按钮、白色圆角卡片、毛玻璃遮罩、
 * 弹性入场动画、顶部光晕装饰。
 * 手机微信自适应：clamp 流式字号、小屏断点、安全区适配（iPhone 刘海/底部
 * 安全区）、禁用点击高亮与文字选中，兼容 iOS Safari / 微信内置浏览器 /
 * 安卓各厂商微信（X5/XWeb 内核）。
 * 本文件只含样式，不含业务文案。
 */

.sl-lp-mask {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  padding: calc(24px + env(safe-area-inset-top, 0px)) 24px calc(24px + env(safe-area-inset-bottom, 0px));
  background: rgba(28, 20, 26, 0.46);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity .28s ease;
}
.sl-lp-mask.on { opacity: 1; }
.sl-lp-mask.out { opacity: 0; }

.sl-lp-card {
  position: relative;
  width: 100%;
  max-width: min(272px, calc(100vw - 32px));
  box-sizing: border-box;
  padding: 18px 15px calc(12px + env(safe-area-inset-bottom, 0px));
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(180, 60, 110, 0.22), 0 2px 8px rgba(0, 0, 0, 0.06);
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", sans-serif;
  transform: scale(0.86) translateY(14px);
  opacity: 0;
  transition: transform .34s cubic-bezier(.21, .9, .32, 1.24), opacity .26s ease;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.sl-lp-mask.on .sl-lp-card { transform: scale(1) translateY(0); opacity: 1; }

/* 顶部品牌色装饰条 + 光晕 */
.sl-lp-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #FF7BA9, #FF4D8D 45%, #B8458F);
}
.sl-lp-card::after {
  content: "";
  position: absolute;
  top: -70px; right: -70px;
  width: 170px; height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 120, 170, 0.14), transparent 70%);
  pointer-events: none;
}

/* ---------- 欢迎弹窗 ---------- */
.sl-lp-logo {
  position: relative;
  width: 54px;
  height: 54px;
  margin: 0 auto 9px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #FF7BA9, #FF4D8D 55%, #B8458F);
  box-shadow: 0 8px 20px rgba(255, 77, 141, 0.32);
}
.sl-lp-logo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2.5px solid #fff;
  box-sizing: border-box;
  background: #FFEDF2;
}
.sl-lp-logo:empty::after,
.sl-lp-logo { line-height: 48px; }
.sl-lp-brand {
  font-size: 10px;
  letter-spacing: 1.4px;
  color: #C2548A;
  font-weight: 600;
  margin-bottom: 5px;
}
.sl-lp-title {
  margin: 0 0 7px;
  font-size: clamp(16px, 5vw, 18.5px);
  font-weight: 700;
  color: #3A2731;
  letter-spacing: .5px;
  line-height: 1.35;
}
.sl-lp-sub {
  margin: 0 0 8px;
  font-size: 12.5px;
  line-height: 1.65;
  color: #8A6E7C;
}

/* 数据条（社会证明 / 紧迫感） */
.sl-lp-stat {
  margin: 0 0 9px;
  font-size: 11.5px;
  font-weight: 700;
  color: #A24A7C;
  letter-spacing: .2px;
}

/* 定位说明行（点击确认前先解释为什么需要位置，弱化系统弹窗的突兀感） */
.sl-lp-loc-tip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 0 10px;
  padding: 6px 8px;
  font-size: 10px;
  line-height: 1.45;
  color: #9A7E8C;
  background: #FFF6F9;
  border: 1px solid #FFE1EC;
  border-radius: 10px;
  text-align: left;
}
.sl-lp-loc-tip i {
  flex: none;
  width: 14px;
  height: 14px;
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FF4D8D'%3E%3Cpath d='M12 2a7.4 7.4 0 0 0-7.4 7.4c0 5.3 6.3 11.6 6.9 12.2a.7.7 0 0 0 1 0c.6-.6 6.9-6.9 6.9-12.2A7.4 7.4 0 0 0 12 2zm0 10.2a2.8 2.8 0 1 1 0-5.6 2.8 2.8 0 0 1 0 5.6z'/%3E%3C/svg%3E");
}

/* ---------- 按钮（品牌渐变主 CTA） ---------- */
.sl-lp-btn {
  display: block;
  width: 100%;
  border: 0;
  outline: 0;
  cursor: pointer;
  padding: 11px 0;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #fff;
  background: linear-gradient(135deg, #FF7BA9 0%, #FF4D8D 55%, #F0357E 100%);
  box-shadow: 0 8px 20px rgba(255, 77, 141, 0.38);
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
  font-family: inherit;
}
.sl-lp-btn:active {
  transform: scale(0.965);
  box-shadow: 0 4px 12px rgba(255, 77, 141, 0.32);
  filter: brightness(0.96);
}

/* ---------- 页脚小字 ---------- */
.sl-lp-foot {
  margin-top: 8px;
  font-size: 9.5px;
  color: #C9B4BF;
  letter-spacing: .3px;
}

/* ---------- 小屏微调（老款安卓微信 / iPhone SE） ---------- */
@media (max-width: 340px) {
  .sl-lp-card { padding: 15px 13px calc(11px + env(safe-area-inset-bottom, 0px)); }
  .sl-lp-logo { width: 48px; height: 48px; }
  .sl-lp-title { font-size: 15px; }
  .sl-lp-sub { font-size: 11.5px; }
  .sl-lp-stat { font-size: 10.5px; }
  .sl-lp-btn { padding: 10px 0; font-size: 13.5px; letter-spacing: 1px; }
}

/* ---------- 横屏 / 低高度（微信横屏浏览不溢出） ---------- */
@media (max-height: 560px) {
  .sl-lp-mask { align-items: flex-start; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .sl-lp-card { margin: auto; transform-origin: center top; }
}

/* ============================================================
 * 新·简洁灵动时尚欢迎弹窗（v1.0.28）
 * 复用 .sl-lp-mask / .sl-lp-card 容器，内层换成 sl-wc-* 灵动布局
 * ============================================================ */
.sl-wc-card { padding: 26px 22px 20px; }
.sl-wc-card::before { height: 3px; background: linear-gradient(90deg, #FF9AC2, #FF4D8D 50%, #C06BE0); }
.sl-wc-card::after {
  top: -92px; right: -78px; width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,120,170,.12), transparent 70%);
}

/* 灵动漂浮光点 */
.sl-wc-spark {
  position: absolute; top: 16px; left: calc(50% + 48px);
  width: 7px; height: 7px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, #FF7BA9);
  box-shadow: 0 0 12px 3px rgba(255,120,170,.55);
  animation: slWcFloat 3s ease-in-out infinite;
}
@keyframes slWcFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: .85; }
  50% { transform: translateY(-7px) scale(1.3); opacity: 1; }
}

/* 品牌徽标胶囊 */
.sl-wc-badge {
  display: inline-block; margin: 0 0 14px;
  padding: 4px 12px; border-radius: 999px;
  font-size: 10px; letter-spacing: 2px; font-weight: 600; color: #C2548A;
  background: linear-gradient(135deg, #FFF0F6, #FFE7F1);
  border: 1px solid #FFD9E8;
}

/* 主标题：关键词“附近”渐变高亮 */
.sl-wc-title {
  margin: 0 0 10px;
  font-size: clamp(19px, 6vw, 22px);
  font-weight: 800; color: #33242E; letter-spacing: .5px; line-height: 1.3;
}
.sl-wc-title .sl-wc-hl {
  background: linear-gradient(90deg, #FF6FA8, #FF4D8D);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: #FF4D8D;
}

/* 高级品牌文案 */
.sl-wc-sub {
  max-width: 232px; margin: 0 auto 14px;
  font-size: 12.5px; line-height: 1.7; color: #9A8591;
}

/* 附近感数据条 */
.sl-wc-stat {
  display: inline-block; margin: 0 0 18px;
  padding: 7px 14px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; color: #B14C82;
  background: #FFF6F9; border: 1px solid #FFE6EF;
}

/* 确定加入按钮（沿用品牌渐变，微调字距） */
.sl-wc-btn { margin-top: 2px; letter-spacing: 3px; padding: 12px 0; }

/* 页脚小字 */
.sl-wc-foot { margin: 10px 0 0; font-size: 9.5px; color: #C9B4BF; letter-spacing: .3px; }

/* 小屏微调 */
@media (max-width: 340px) {
  .sl-wc-title { font-size: 18px; }
  .sl-wc-sub { font-size: 11.5px; }
  .sl-wc-stat { font-size: 10.5px; }
}
