/* ============================================================
 * 落地页样式（qylibao）
 * ------------------------------------------------------------
 * 1:1 复刻 https://zt261103.gh139.cn/h5/index.html 的落地页。
 * 数值取自链接页实际渲染后的 computed style（375 / 1264 视口双向实测）。
 *
 * 定位：以手机 H5 为基准（375 设计基准），不面向 PC 宽屏铺满。
 *   在宽屏（微信电脑端 / 桌面浏览器）里居中显示为 480px 手机画布，
 *   而不是把 750×720 的头图等比放大到整屏。
 *
 * 布局要点：
 *   · 画布宽度 100%、上限 480px、水平居中
 *   · 头图绝对定位在顶部；内容区起点 = 头图高 × (340/360)，与 375 基准等比
 *   · 内容区为 flex 列，间距 25px
 *   · 卡片 / 图 / 文案按 calc(100% - Npx) 与 % 随画布缩放
 *   · 「立即领取」按 375 基准的 300×70 等比缩放
 *
 * 其余页面（领取页 / 下载页 / 协议页 / 客服页）仍使用 styles.css
 * 与 claim.css，不受本文件影响。
 * ============================================================ */

.lp-shell {
  position: relative;
  width: 100%;
  max-width: 480px;                /* 手机画布上限：宽屏下不再拉伸 */
  margin: 0 auto;                  /* 宽屏居中 */
  padding-top: 340px;              /* 由 fitLandingImages() 按头图高 × 340/360 重算 */
  background: #db3919;
  font-family: Avenir, Helvetica, Arial, sans-serif;
  overflow-x: hidden;
}

/* 链接页 body 背景（#db3919），子页自带底色，不受影响 */
body.pages-landing-v3 {
  background: #db3919;
  padding-block: 0;                /* 覆盖 styles.css 在 ≥751px 时的 body 内边距 */
}

/* 宽屏（PC / 微信电脑端）：手机画布居中，两侧留中性底 + 阴影 */
@media (min-width: 481px) {
  body.pages-landing-v3 {
    background: #ececec;
  }

  .lp-shell {
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.14);
  }
}

.lp-hero {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 360px;                   /* 由 fitLandingImages() 按 widthFix 规则重算 */
}

/* ---------- 右上角固定胶囊入口 ---------- */
/* 胶囊跟随「手机画布」而不是窗口：容器按 480px 居中，胶囊贴画布右缘。
   两个胶囊各自绝对定位，纵向排列，不用 flex 的 align-items。 */
.lp-pills {
  position: fixed;
  top: 0;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  z-index: 999;
  height: 0;
  pointer-events: none;
}

.lp-pill {
  position: absolute;
  right: 0;                        /* 贴住画布右边缘（宽屏时即"页面"右边缘） */
  display: block;
  width: fit-content;
  padding: 7px 14px;
  border-radius: 16px 0 0 16px;    /* 贴边一侧不用圆角，更贴合边缘 */
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  font-size: 13px;
  line-height: 18px;
  white-space: nowrap;
  text-decoration: none;
  pointer-events: auto;
}

.lp-pill:nth-child(1) { top: 20px; }
.lp-pill:nth-child(2) { top: 68px; }   /* 与上一个间隔 16px */

/* ---------- 内容区 ---------- */
/* 链接页内容区绝对定位在 top:340px、叠在头图上；头图高 360px 时会压住
   领取区与协议行。这里把内容区放回正常流，并在其上方留出头图所占的 340px，
   视觉位置与链接页一致，且不会被头图遮挡。 */
.lp-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* ---------- 领取区 ---------- */
.lp-claim {
  display: flex;
  height: 150px;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.lp-ticker {
  display: flex;
  width: 100%;
  height: 20px;
  overflow: hidden;
  justify-content: center;
}

.lp-track {
  transition: transform 0.5s;
}

.lp-msg {
  height: 20px;
  color: #fff;
  font-size: 12px;
  line-height: 20px;
  text-align: center;
  white-space: nowrap;
}

.lp-submit {
  display: block;
  width: 80%;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  animation: lp-submit-pulse 1s infinite;
}

.lp-submit-img {
  display: block;
  width: 100%;
  height: 100%;
  background: url("assets/landing/2.png") no-repeat center;
  background-size: 100% 100%;
}

@keyframes lp-submit-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(0.85); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .lp-submit { animation: none; }
  .lp-track { transition: none; }
}

.lp-agreement {
  display: flex;
  width: calc(100% - 32px);
  margin-top: 2px;
  padding: 4px 4px 4px 0;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.lp-checkbox-wrap {
  display: flex;
  max-width: 340px;
  align-items: flex-start;
}

.lp-check-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.lp-check {
  position: relative;
  display: flex;
  width: 18px;
  height: 18px;
  margin: 2px 6px 0 0;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  box-sizing: border-box;
  cursor: pointer;
}

/* 勾选态：与链接页 .checkbox-input.checked 完全一致 */
.lp-check-input:checked + .lp-check {
  border-color: #ffc93a;
  background: linear-gradient(180deg, #ffe58a, #ffc93a);
  box-shadow: 0 2px 6px rgba(255, 201, 58, 0.4);
}

.lp-check-icon {
  width: 8px;
  height: 4px;
  margin-top: -2px;
  border-bottom: 2px solid #7a4b16;
  border-left: 2px solid #7a4b16;
  border-radius: 1px;
  opacity: 0;
  transform: rotate(-45deg);
}

.lp-check-input:checked + .lp-check .lp-check-icon {
  opacity: 1;
}

.lp-agreement-text {
  color: #fff;
  font-size: 13px;
  line-height: 1.6;
}

.lp-link {
  color: #ffe082;
  font-size: 13px;
  text-decoration: none;
}

/* ---------- N 选 2 权益图 ---------- */
.lp-desc {
  width: 100%;
  padding: 6px 0 20px;
  text-align: center;
}

.lp-desc-img {
  display: block;
  width: calc(100% - 24px);
  height: 348px;                   /* 由 fitLandingImages() 按 widthFix 规则重算 */
  margin: 0 auto;
  border-radius: 12px;
  object-fit: fill;
}

/* ---------- 热门短剧会员卡 ---------- */
.lp-duanju {
  width: 100%;
  padding: 6px 0 20px;
  text-align: center;
}

.lp-dl-card {
  width: calc(100% - 24px);
  max-width: 340px;
  margin: 0 auto;
  padding-bottom: 14px;
  overflow: hidden;
  border: 1px solid #f6d7a4;
  border-radius: 14px;
  background: linear-gradient(180deg, #fffdf8, #fff4e4);
  box-shadow: 0 6px 14px rgba(120, 40, 10, 0.12);
  box-sizing: content-box;
}

.lp-dl-banner {
  width: 160px;
  margin: 0 auto 4px;
  padding: 8px 0 9px;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(180deg, #ff5a4a, #e10612);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  text-align: center;
}

.lp-dl-download {
  display: flex;
  width: 110px;
  height: 28px;
  margin: 10px auto 6px;
  align-items: center;
  justify-content: center;
  border: 1px solid #e8c48a;
  border-radius: 499px;
  background: #fff8ee;
  color: #c4843a;
  font-size: 13px;
  text-decoration: none;
  box-sizing: content-box;
}

.lp-dl-steps {
  width: calc(100% - 24px);
  margin: 0 auto;
  text-align: left;
}

.lp-dl-steps-title {
  display: block;
  margin-bottom: 6px;
  color: #3a2208;
  font-size: 14px;
  font-weight: 700;
}

.lp-dl-step {
  display: block;
  margin-bottom: 6px;
  color: #4a3428;
  font-size: 12px;
  line-height: 1.7;
}

/* ---------- 底部订购规则 ---------- */
.lp-rules {
  width: calc(100% - 24px);
  margin: 4px auto 24px;
  padding: 14px 14px 16px;
  border: 1px solid #f6d7a4;
  border-radius: 14px;
  background: linear-gradient(180deg, #fffdf8, #fff6ea);
  box-shadow: 0 6px 14px rgba(120, 40, 10, 0.1);
  color: #5c4036;
  box-sizing: border-box;
}

.lp-rules-inner {
  color: #5c4036;
  font-size: 12px;
  line-height: 1.85;
  word-break: break-all;
  word-wrap: break-word;
}
