:root {
  --ink: #f5f0ff;
  --ink-dim: #a893c9;
  --pink: #ff4d8d;
  --pink-deep: #ff2d6b;
  --violet: #8b3dff;
  --gold: #ffc44d;
  --gold-deep: #f5a623;
  --card: rgba(255,255,255,.055);
  --card-border: rgba(255,255,255,.1);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: #0b0416;
  background-image:
    radial-gradient(ellipse 80% 40% at 20% -5%, rgba(139,61,255,.32), transparent 60%),
    radial-gradient(ellipse 70% 35% at 90% 10%, rgba(255,45,107,.24), transparent 60%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* 像素图不能 display:none，FB 会判无效像素 -> 挪出屏幕 */
.pixel-image {
  position: absolute;
  width: 1px;
  height: 1px;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  pointer-events: none;
}

.glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 90% 50% at 50% 110%, rgba(139,61,255,.16), transparent 60%);
}

button, a { font: inherit; }
button { border: 0; cursor: pointer; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 10px 10px calc(96px + var(--safe-bottom));
}
.shell { width: min(100%, 520px); margin: 0 auto; }

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 14px;
  margin-top: 14px;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 6px 20px rgba(255,45,107,.45);
}
.brand-main {
  font-size: 28px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -.045em;
  background: linear-gradient(90deg, #fff 0%, var(--pink) 55%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-sub { margin-top: 3px; color: var(--ink-dim); font-size: 10.5px; font-weight: 800; letter-spacing: .02em; }
.age {
  flex: 0 0 auto;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--gold);
  background: rgba(255,196,77,.12);
  border: 1px solid rgba(255,196,77,.35);
  font-size: 12px;
  font-weight: 950;
}

.hero {
  position: relative;
  padding: 20px 18px 22px;
  border-radius: 26px;
  border: 1px solid var(--card-border);
  background:
    radial-gradient(circle at 85% 0%, rgba(255,77,141,.25), transparent 55%),
    linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.03));
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}
.live-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,45,107,.16);
  border: 1px solid rgba(255,45,107,.4);
  color: #ffd0e0;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .04em;
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff2d6b;
  box-shadow: 0 0 0 4px rgba(255,45,107,.25);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .55; }
}
.hero h1 {
  margin: 0;
  font-size: clamp(30px, 8.6vw, 42px);
  line-height: 1.05;
  letter-spacing: -.04em;
  font-weight: 950;
}
.grad {
  background: linear-gradient(90deg, var(--pink) 0%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  margin: 12px 0 0;
  color: var(--ink-dim);
  font-size: 13.5px;
  line-height: 1.5;
  font-weight: 700;
}
.vip-line {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  padding: 10px 13px;
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(255,196,77,.16), rgba(255,45,107,.12));
  border: 1px solid rgba(255,196,77,.35);
}
.vip-line .crown {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 7px;
  background: linear-gradient(120deg, var(--gold-deep), var(--gold));
  color: #2a1500;
  font-size: 10px;
  font-weight: 950;
}
.vip-line strong { display: block; font-size: 13.5px; font-weight: 950; color: var(--gold); letter-spacing: -.01em; }
.vip-line span { display: block; margin-top: 2px; font-size: 10.5px; font-weight: 800; color: var(--ink-dim); }
.vip-line .seats { margin-left: auto; flex: 0 0 auto; text-align: right; }
.vip-line .seats b { display: block; font-size: 19px; font-weight: 950; color: #fff; }
.vip-line .seats i { display: block; font-style: normal; font-size: 9.5px; font-weight: 900; color: var(--gold); letter-spacing: .04em; }

.download-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 64px;
  margin-top: 16px;
  border-radius: 17px;
  color: #2a1500;
  text-decoration: none;
  font-size: 19px;
  font-weight: 950;
  letter-spacing: -.01em;
  background: linear-gradient(100deg, var(--gold-deep) 0%, var(--gold) 40%, #ffe08a 100%);
  box-shadow: 0 14px 34px rgba(255,196,77,.42), inset 0 1px 0 rgba(255,255,255,.55);
  transition: transform .16s ease;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
  animation: ctaPulse 2.2s ease-in-out infinite;
}
@keyframes ctaPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.018); }
}
.cta-crown {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 7px;
  background: rgba(42,21,0,.88);
  color: var(--gold);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .04em;
}
.download-cta::before {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 45%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.5), transparent);
  animation: shine 3.2s ease-in-out infinite;
}
@keyframes shine {
  0% { left: -60%; }
  45%, 100% { left: 130%; }
}
.dl-sub { display: block; margin-top: 9px; text-align: center; font-size: 10px; font-weight: 850; color: var(--ink-dim); }
.download-cta:active { transform: scale(.985); }


.download-cta.big { min-height: 66px; font-size: 20px; margin-top: 16px; }
.download-cta:focus-visible, button:focus-visible, .preview-card:focus-visible {
  outline: 3px solid rgba(255,196,77,.5);
  outline-offset: 3px;
}

/* 底部常驻钩子：滚过首屏才出现，保证任何时候都有一个醒目按钮 */
.sticky-cta {
  position: fixed;
  z-index: 20;
  left: 10px;
  right: 10px;
  bottom: calc(10px + var(--safe-bottom));
  width: min(calc(100% - 20px), 520px);
  margin: 0 auto;
  padding: 0;
  transform: translateY(140%);
  opacity: 0;
  transition: transform .25s ease, opacity .25s ease;
  pointer-events: none;
}
.sticky-cta.show { transform: translateY(0); opacity: 1; pointer-events: auto; }
.sticky-cta .download-cta { margin-top: 0; min-height: 58px; font-size: 17px; }

/* 视频卡片下方的金色钩子 */
.card-hook {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 7px;
  padding: 8px 6px;
  border-radius: 10px;
  background: linear-gradient(100deg, var(--gold-deep), var(--gold) 55%, #ffe08a);
  color: #2a1500;
  font-size: 10.5px;
  font-weight: 950;
  letter-spacing: .02em;
  text-align: center;
  line-height: 1.15;
  box-shadow: 0 6px 16px rgba(255,196,77,.35);
  animation: hookPulse 2.6s ease-in-out infinite;
}
@keyframes hookPulse {
  0%, 100% { box-shadow: 0 6px 16px rgba(255,196,77,.3); }
  50% { box-shadow: 0 6px 22px rgba(255,196,77,.65); }
}
.preview-card:active .card-hook { transform: scale(.97); }

.ticker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 13px;
  border-radius: 14px;
  border: 1px solid var(--card-border);
  background: var(--card);
  font-size: 10.5px;
  font-weight: 850;
  color: var(--ink-dim);
}
.ticker .ok-dot {
  flex: 0 0 auto;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #3ddc84;
  box-shadow: 0 0 0 4px rgba(61,220,132,.18);
}
.ticker b { color: #fff; font-weight: 950; }

.previews { margin-top: 12px; padding: 14px 12px 12px; border-radius: 22px; border: 1px solid var(--card-border); background: rgba(255,255,255,.035); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.section-kicker {
  text-transform: uppercase;
  color: var(--pink);
  font-size: 10.5px;
  font-weight: 950;
  letter-spacing: .14em;
  margin-bottom: 3px;
}
.section-head h2 { margin: 0; font-size: 20px; line-height: 1.08; letter-spacing: -.02em; font-weight: 950; }
.section-head .peek-hint { display: block; margin-top: 3px; font-size: 10px; font-weight: 850; color: var(--ink-dim); }
#refresh {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(145deg, rgba(255,45,107,.35), rgba(139,61,255,.35));
  border: 1px solid rgba(255,255,255,.2);
  font-size: 18px;
  font-weight: 900;
  transition: transform .16s ease;
}
#refresh:active { transform: rotate(90deg); }

/* 6 个视频位 */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.preview-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border-radius: 16px;
  border: 1px solid rgba(255,77,141,.25);
  color: var(--ink);
  background: rgba(255,255,255,.05);
  text-align: left;
  box-shadow: 0 10px 24px rgba(0,0,0,.3);
  cursor: pointer;
  transition: border-color .16s ease;
}
.preview-card:hover { border-color: rgba(255,77,141,.6); }
.preview-media {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: #1c0f33 linear-gradient(180deg, #3a1d6b, #170726);
}
.preview-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: transparent;
}
.preview-media::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, rgba(11,4,22,.7));
  pointer-events: none;
}

/* 原片水印挡块：只留底部左上角一处 */
.mask {
  position: absolute;
  z-index: 2;
  left: 8px;
  bottom: 62px;
  width: 30%;
  max-width: 120px;
  height: auto;
  pointer-events: none;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,.35);
}
.mask-b { display: none; }

.play-icon {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 26px;
  text-shadow: 0 4px 14px rgba(0,0,0,.55);
  pointer-events: none;
  opacity: .9;
  transition: opacity .3s ease;
}
.preview-card.playing .play-icon { opacity: 0; }

/* 未点开的卡片盖一层「点我预览」遮罩，点了才消失 */
.preview-card { position: relative; }
.preview-card:not(.playing) .preview-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11,4,22,.18);
  pointer-events: none;
}
.preview-card:not(.playing) .play-icon {
  opacity: 1;
  font-size: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.preview-card:not(.playing) .play-icon::after {
  content: "TAP TO PREVIEW";
  position: absolute;
  bottom: 22%;
  font-size: 9.5px;
  font-weight: 950;
  letter-spacing: .12em;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.8);
}

.media-badge, .media-state {
  position: absolute;
  z-index: 4;
  border-radius: 999px;
  color: #fff;
  font-size: 9px;
  font-weight: 950;
  box-shadow: 0 5px 12px rgba(0,0,0,.35);
}
.media-badge {
  left: 7px; bottom: 34px;
  padding: 4px 8px;
  display: flex; align-items: center; gap: 4px;
  background: linear-gradient(110deg, var(--pink-deep), var(--violet));
}
.media-badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #fff; }
.media-state { right: 7px; bottom: 6px; padding: 3px 7px; background: rgba(11,4,22,.7); }

.preview-content { position: relative; z-index: 5; padding: 9px 9px 10px; }
.preview-content strong { display: block; min-height: 31px; font-size: 11px; line-height: 1.28; font-weight: 950; }
.card-cta { display: block; margin-top: 6px; color: var(--gold); font-size: 10px; font-weight: 950; letter-spacing: .01em; }

.final-cta {
  margin-top: 12px;
  padding: 22px 18px;
  text-align: center;
  border-radius: 24px;
  border: 1px solid rgba(255,196,77,.35);
  background:
    radial-gradient(circle at 50% 0%, rgba(255,196,77,.18), transparent 60%),
    linear-gradient(180deg, rgba(139,61,255,.12), rgba(255,255,255,.03));
}
.final-cta .crown-big {
  display: inline-block;
  margin-bottom: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--gold-deep), var(--gold));
  color: #2a1500;
  font-size: 11px;
  font-weight: 950;
}
.final-cta h2 { margin: 0; font-size: 23px; font-weight: 950; letter-spacing: -.03em; }
.final-cta p { margin: 7px 0 0; color: var(--ink-dim); font-size: 12px; font-weight: 800; }

.foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 0 10px 6px;
  text-align: center;
}
.android-chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  border: 1px solid var(--card-border);
  font-size: 10.5px;
  font-weight: 900;
}
.foot span:last-child { color: var(--ink-dim); font-size: 9.5px; line-height: 1.45; font-weight: 700; max-width: 380px; }

@media (min-width: 700px) {
  .page { padding-top: 18px; }
  .hero { padding: 24px 22px; }
  .previews { padding: 16px; }
  .preview-content strong { font-size: 12px; }
}

/* 小屏（<=380px）缩字号，防止按钮文案被裁掉 */
@media (max-width: 380px) {
  .download-cta { font-size: 16px; letter-spacing: -.02em; gap: 6px; }
  .download-cta.big { font-size: 17px; }
  .cta-crown { font-size: 9px; padding: 3px 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
