/* ==========================================================================
   会员领取落地页  —  visual clone of zt261103.gh139.cn/h5 landing
   数据源：/redpack/* 接口（与 home/dist 完全一致）
   ========================================================================== */

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0; padding: 0; width: 100%; min-height: 100%;
  background: #6846C4;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; border: 0; }
button { font-family: inherit; border: 0; background: none; cursor: pointer; }

/* ---------- 根容器：紫蓝渐变 ---------- */
.content {
  position: relative;
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
  min-height: 100vh;
  background: linear-gradient(180deg, #8D6AE3 0%, #7A58D4 42%, #6846C4 100%);
  overflow: hidden;
  padding-bottom: 40px;
}

.content_goods { position: relative; width: 100%; }

/* ---------- 顶部主视觉 ---------- */
.top_img {
  position: relative;
  width: 100%;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}
.top_img img { width: 100%; height: auto; display: block; }

/* ---------- 滚动播报 ---------- */
.wrap {
  position: absolute;
  left: 0;
  right: 0;
  top: 61.2%;
  display: flex;
  justify-content: center;
  z-index: 3;
  pointer-events: none;
}

.marquee-box {
  width: calc(100% - 54px);
  height: 27px;
  margin: 0 27px 4px;
  overflow: hidden;
  white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}

.marquee-list {
  display: inline-flex;
  align-items: center;
  height: 22px;
  animation: marquee-left 16s linear infinite;
  will-change: transform;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  height: 22px;
  margin: 0 6px;
  padding: 0 11px;
  border-radius: 519px;
  background: rgba(255, 255, 255, 0.94);
  white-space: nowrap;
  flex: 0 0 auto;
}

.txt { display: inline-block; font-size: 11px; line-height: 16px; }
.txt.phone { color: #E02323; font-weight: 700; margin-right: 4px; }
.txt.desc  { color: #C46A12; font-weight: 400; }

@keyframes marquee-left {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- 领取按钮区 ---------- */
.bottom_input_view {
  position: absolute;
  left: 0;
  right: 0;
  top: 67.6%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 6px;
  z-index: 6;
}

.login-btn-box {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 66px;
}

/* 与源站完全一致：1.15s 缩放 + 2.6s 扫光，双背景同层 */
.login-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 322px;
  max-width: 88%;
  height: 58px;
  border-radius: 519px;
  background:
    linear-gradient(105deg,
      rgba(255,255,255,0) 0%,
      rgba(255,255,255,0) 38%,
      rgba(255,255,255,.95) 50%,
      rgba(255,255,255,0) 62%,
      rgba(255,255,255,0) 100%),
    linear-gradient(180deg, #FFF6C4 0%, #FFD85A 46%, #FFB423 100%);
  background-size: 42% 100%, 100% 100%;
  background-position: -70% 0, 50% center;
  box-shadow:
    #E08A00 0 4px 0,
    rgba(255,160,20,.38) 0 8px 14px,
    rgba(255,255,255,.8) 0 2px 4px inset;
  overflow: visible;
  animation: btn-scale 1.15s ease-in-out infinite,
             btn-shine 2.6s ease-in-out infinite;
}
.login-btn:active { transform: scale(0.97); }

.login-btn-txt {
  position: relative;
  z-index: 2;
  color: #B0331A;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
}

.login-finger {
  position: absolute;
  right: 14px;
  bottom: -18px;
  z-index: 2;
  width: 56px;
  height: 48px;
  pointer-events: none;
  animation: finger-tap 1.2s ease-in-out infinite;
}

/* 源站 autoScale：缩小到 0.95，不是放大 */
@keyframes btn-scale {
  0%   { transform: scale(1); }
  50%  { transform: scale(0.95); }
  100% { transform: scale(1); }
}
/* 源站 shineScan：-70% → 170%，42% 处就走完，剩下停顿 */
@keyframes btn-shine {
  0%   { background-position: -70% 0, 50% center; }
  42%  { background-position: 170% 0, 50% center; }
  100% { background-position: 170% 0, 50% center; }
}
@keyframes finger-tap {
  0%, 100% { transform: translate(-1px, -2px); }
  50%      { transform: translate(2px, 2px); }
}

/* ---------- 协议勾选 ---------- */
.agreement-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 4px 0;
  margin-top: 2px;
}
.agreement-box > .checkbox-wrapper {
  padding: 3px 12px 3px 10px;
  border-radius: 519px;
  background: rgba(96, 40, 20, 0.30);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.checkbox-wrapper {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.checkbox-input {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin: 2px 6px 0 0;
  flex: 0 0 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 3px rgba(60, 20, 90, 0.35);
  transition: background .15s;
}
.checkbox-input.checked { background: #FFD85A; border-color: #FFD85A; }

.check-icon {
  width: 8px;
  height: 4px;
  margin-top: -2px;
  border-left: 2px solid #B0331A;
  border-bottom: 2px solid #B0331A;
  border-radius: 1px;
  transform: rotate(-45deg) scale(0);
  transition: transform .15s;
}
.checkbox-input.checked .check-icon { transform: rotate(-45deg) scale(1); }

.agreement-txt {
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}
.agreement-txt a {
  color: #FFE58A;
  text-decoration: none;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

/* ---------- N选2 权益图 ---------- */
.desc_imgs {
  padding: 6px 0 20px;
  width: 100%;
}
.desc-img-1 {
  width: calc(100% - 24px);
  margin: 0 12px;
  border-radius: 12px;
  overflow: hidden;
}
.desc-img-1 img { width: 100%; height: auto; display: block; }

/* ---------- 热门短剧会员卡 ---------- */
.desc_imgs_duanju { padding: 6px 0 20px; }

.dl-card {
  width: calc(100% - 35px);
  margin: 0 17.5px;
  padding: 0 0 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, #FFFDF8 0%, #FFF4E4 100%);
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(60, 34, 12, 0.12);
}

.dl-banner {
  height: 46px;
  line-height: 46px;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  color: #FFF3C4;
  letter-spacing: 1px;
  background: linear-gradient(90deg, #E8452C 0%, #F4693A 50%, #E8452C 100%);
  border-radius: 14px 14px 0 0;
}

.dl-download {
  width: 128px;
  height: 34px;
  line-height: 34px;
  margin: 14px auto 10px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #B0331A;
  border-radius: 519px;
  background: #FFD85A;
  box-shadow: 0 3px 0 rgba(201, 138, 0, 0.45);
  cursor: pointer;
}
.dl-download:active { transform: translateY(1px); box-shadow: 0 2px 0 rgba(201,138,0,.45); }

.dl-steps { padding: 0 14px; }
.dl-steps-title {
  font-size: 13px;
  font-weight: 700;
  color: #E02323;
  margin-bottom: 6px;
}
.dl-step-txt {
  display: block;
  font-size: 12px;
  line-height: 1.85;
  color: #5C4036;
  margin-bottom: 4px;
}

/* ---------- 订购规则 ---------- */
.bottom_desc_view {
  width: calc(100% - 24px);
  margin: 4px 12px 24px;
  padding: 14px 14px 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, #FFFDF8 0%, #FFF6EA 100%);
  color: #5C4038;
  font-size: 12px;
  line-height: 1.85;
  box-shadow: 0 6px 18px rgba(60, 34, 12, 0.12);
}
.bottom_desc_view p { margin: 0 0 8px 0; }
.bottom_desc_view b { font-weight: 700; }

/* ---------- 右侧竖排按钮 ---------- */
.side-btn {
  position: fixed;
  left: 50%;
  margin-left: calc(375px - 27px);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 27px;
  padding: 8px 0 9px;
  border-radius: 8px 0 0 8px;
  background: linear-gradient(180deg, rgba(92, 48, 176, 0.92) 0%, rgba(62, 28, 140, 0.92) 100%);
  box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.22);
  cursor: pointer;
}
.side-btn-rule     { top: 119px; }
.side-btn-kefu     { top: 226px; }
.side-btn-download { top: 333px; }

.side-btn-txt {
  display: block;
  font-size: 13px;
  line-height: 1.2;
  color: #fff;
  text-align: center;
}

@media (max-width: 750px) {
  .side-btn { left: auto; right: 0; margin-left: 0; }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 22%;
  transform: translateX(-50%) translateY(10px);
  max-width: 78%;
  padding: 10px 16px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 9999;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
 * 支付成功弹窗（v20261126）
 * 小程序收银台支付完、返回浏览器时「返回即出」的引导弹层。
 * 文案不宣称「支付成功」，只说「点前往观看即可核对订单」。
 * ============================================================ */
.hy-paid {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 20000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.38);
}
.hy-paid.is-open { display: flex; }

.hy-paid__card {
  width: 320px;
  max-width: 86vw;
  box-sizing: border-box;
  padding: 26px 20px 18px;
  border-radius: 12px;
  background: #ffffff;
  text-align: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

/* 双气泡图标：纯 CSS 绘制，不使用微信官方 logo 资源 */
.hy-paid__icon {
  position: relative;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #07c160;
  overflow: hidden;
}
.hy-paid__icon i { position: absolute; display: block; background: #fff; }
.hy-paid__icon i:nth-child(1) {
  left: 13px; top: 17px; width: 26px; height: 22px; border-radius: 11px;
}
.hy-paid__icon i:nth-child(2) {
  left: 29px; top: 28px; width: 21px; height: 18px; border-radius: 9px;
  box-shadow: 0 0 0 2px #07c160;
}

.hy-paid__text {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.7;
  color: #333;
}
.hy-paid__actions { display: flex; gap: 10px; }
.hy-paid__btn {
  flex: 1 1 0;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
  line-height: 44px;
}
.hy-paid__btn--ghost { background: #f2f2f2; color: #333; }
.hy-paid__btn--primary { background: #07c160; color: #fff; }
.hy-paid__btn:active { opacity: .86; }

/* ---------- 支付中遮罩 ---------- */
/* ---------- 支付提示：icon 在上 / 文字在下的紧凑浮层 ----------
   尺寸由内容决定，四周内边距统一 10px
   预估：10 + 26(icon) + 8(gap) + 17(text) + 10 ≈ 71px 高，≈ 110px 宽
   轻量：contain 渲染隔离 + will-change，不做全屏遮罩
   ------------------------------------------------------------------ */
.paying-mask {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  z-index: 9999;
  display: inline-flex;              /* 宽高由内容撑开 */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;                          /* icon 与文字间距 8px */
  width: auto;
  max-width: 86vw;
  height: auto;
  min-width: 0;
  padding: 10px 14px;                /* 四周统一，无下方留白 */
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.78);
  box-sizing: border-box;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s ease, transform .12s ease;
  will-change: opacity, transform;
}

.paying-mask.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* 加载 icon：环形缺口 + 旋转 */
.paying-mask .pm-spinner {
  display: block;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  margin: 0;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.22);
  border-top-color: #FFD85A;
  border-right-color: #FFD85A;
  box-sizing: border-box;
  animation: pm-spin .72s linear infinite;
  will-change: transform;
}

/* 文字：紧贴 icon 下方，无额外外边距 */
.paying-mask .tip {
  margin: 0;
  padding: 0;
  color: #fff;
  font-size: 12px;
  line-height: 17px;
  letter-spacing: .2px;
  text-align: center;
  white-space: nowrap;
}

@keyframes pm-spin {
  to { transform: rotate(360deg); }
}

/* 尊重系统「减少动态效果」偏好 */
@media (prefers-reduced-motion: reduce) {
  .paying-mask .pm-spinner { animation-duration: 1.6s; }
}
/* ---------- 底部悬浮领取条（源站 .sticky-claim 精确复刻） ---------- */
.sticky-claim {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: none;
  z-index: 900;
  display: flex;
  justify-content: center;
  padding: 9px 0 calc(9px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg,
      rgba(104, 70, 196, 0) 0%,
      rgba(104, 70, 196, 0.94) 42%,
      rgb(104, 70, 196) 100%);
  opacity: 0;
  transform: translateY(105%);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  will-change: opacity, transform;
}

.sticky-claim.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.sticky-claim-inner {
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
}

.sticky-claim-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 49px;
  box-sizing: border-box;
  border-radius: 519px;
  background:
    linear-gradient(105deg,
      rgba(255,255,255,0) 0%,
      rgba(255,255,255,0) 38%,
      rgba(255,255,255,.95) 50%,
      rgba(255,255,255,0) 62%,
      rgba(255,255,255,0) 100%),
    linear-gradient(180deg, rgb(255,246,196) 0%, rgb(255,216,90) 46%, rgb(255,180,35) 100%);
  background-size: 42% 100%, 100% 100%;
  background-position: -70% 0, 50% center;
  box-shadow:
    rgb(224, 138, 0) 0 4px 0 0,
    rgba(255, 160, 20, .38) 0 8px 14px 0,
    rgba(255, 255, 255, .8) 0 2px 4px 0 inset;
  animation: btn-scale 1.15s ease-in-out infinite, btn-shine 2.6s ease-in-out infinite;
  cursor: pointer;
  overflow: hidden;
}
.sticky-claim-btn:active { transform: translateY(2px); }

.sticky-claim-txt {
  position: relative;
  z-index: 2;
  color: #B0331A;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  text-shadow: rgba(255, 255, 255, .55) 0 1px 0;
}


/* 底部有悬浮条时留出空间，避免遮挡规则末尾 */
body.has-sticky-claim .content { padding-bottom: 88px; }