/* ============================================================
   StripChat 引流落地页样式
   风格参考：深紫黑底 + 粉色高亮、美女宫格垂直滚动背景、
   主播卡片水平轮播、粉色 CTA 持续动画
   ============================================================ */

:root {
  --bg: #17111b;          /* 深紫黑主背景 */
  --bg2: #24152b;         /* 叠加紫 */
  --grid: #1a1220;        /* 网格线底色 */
  --pink: #fe4e60;        /* 主粉 */
  --pink-light: #ff5a70;
  --pink-dark: #fe2f50;
  --gold: #ffde40;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, .72);
  --card: rgba(255, 255, 255, .07);
  --card-border: rgba(255, 255, 255, .14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: inherit; }
img { display: block; }

/* ===== 美女宫格背景（3 列垂直无限滚动）===== */
.beauty-wall {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: flex;
  overflow: hidden;
  background: var(--grid);
}
.wall-col {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  position: relative;
}
.wall-col + .wall-col { border-left: 2px solid rgba(0, 0, 0, .55); }
.wall-track {
  display: flex;
  flex-direction: column;
  will-change: transform;
  animation: wallScroll 40s linear infinite;
}
.wall-track img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
/* 三列错峰速度，画面更生动 */
.wall-col:nth-child(1) .wall-track { animation-duration: 42s; }
.wall-col:nth-child(2) .wall-track { animation-duration: 50s; }
.wall-col:nth-child(3) .wall-track { animation-duration: 46s; }
@keyframes wallScroll {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}

/* 背景压暗层：中部通透让宫格美女清晰可见，顶部/底部加深保证文字可读 */
.wall-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(72% 30% at 50% 15%, rgba(23, 17, 27, .85), rgba(23, 17, 27, 0) 72%),
    linear-gradient(180deg,
      rgba(23, 17, 27, .62) 0%,
      rgba(36, 21, 43, .32) 32%,
      rgba(23, 17, 27, .42) 60%,
      rgba(23, 17, 27, .9) 100%);
}

/* ===== 内容容器 ===== */
.app-container {
  position: relative;
  z-index: 2;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 14px 118px; /* 底部给固定引流条留位 */
}

/* ===== 头部 ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 -14px;
  padding: 12px 14px;
  background: rgba(23, 17, 27, .78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(254, 78, 96, .28);
}
.logo {
  font-size: 24px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: .5px;
  line-height: 1;
}
.logo-1 { color: #fff; }
.logo-2 {
  color: var(--pink);
  text-shadow: 0 0 14px rgba(254, 78, 96, .75);
}

/* ===== 语言下拉（自定义菜单 + 国旗图片）===== */
.lang-select-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 6px 11px;
  cursor: pointer;
  user-select: none;
  transition: background .15s;
}
.lang-select-wrap:hover { background: rgba(254, 78, 96, .22); }
.lang-globe { font-size: 13px; line-height: 1; }
.lang-flag {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .25);
}
.lang-current-name { font-size: 13px; font-weight: 700; line-height: 1; }
.lang-caret { font-size: 10px; color: var(--muted); line-height: 1; }
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 172px;
  max-height: 330px;
  overflow-y: auto;
  background: rgba(30, 20, 38, .97);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 6px;
  display: none;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .65);
  z-index: 50;
}
.lang-select-wrap.open .lang-menu {
  display: block;
  animation: langMenuIn .15s ease;
}
@keyframes langMenuIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.lang-option {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  white-space: nowrap;
}
.lang-option:hover { background: rgba(254, 78, 96, .22); }
.lang-option.active {
  background: rgba(254, 78, 96, .32);
  font-weight: 800;
}
.lang-option-flag {
  width: 24px;
  height: 18px;
  object-fit: cover;
  border-radius: 3px;
  flex: 0 0 auto;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .2);
}
.lang-option-flag-fallback { font-size: 16px; width: 24px; text-align: center; }
.lang-option-name { overflow: hidden; text-overflow: ellipsis; }

/* ===== 主视觉 ===== */
.hero {
  text-align: center;
  padding: 36px 6px 24px;
}
.online-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, .48);
  border: 1px solid rgba(254, 78, 96, .45);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 700;
  color: #ffd7dd;
}
.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff3b52;
  box-shadow: 0 0 9px #ff3b52;
  animation: dotPulse 1.2s ease-in-out infinite;
  flex: 0 0 auto;
}
@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .45; transform: scale(.78); }
}
.hero h1 {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-style: italic;
  font-weight: 900;
  font-size: 47px;
  line-height: 1.02;
  letter-spacing: 1.2px;
  color: var(--pink);
  text-shadow: 0 2px 0 #7a1226, 0 0 26px rgba(254, 78, 96, .55);
  margin: 17px 0 13px;
  text-transform: uppercase;
}
.hero p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
  max-width: 360px;
  margin: 0 auto;
}

/* ===== 主播轮播区（水平无限滚动）===== */
.live-section {
  margin: 12px -14px 28px; /* 轮播横向出血到屏幕边缘 */
}
.section-head { text-align: center; padding: 0 14px; }
.section-head h2 {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-style: italic;
  font-weight: 900;
  font-size: 30px;
  letter-spacing: .8px;
  color: #fff;
  text-shadow: 0 0 18px rgba(254, 78, 96, .55);
}
.live-sub {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  font-style: italic;
  font-weight: 700;
  margin: 7px 14px 15px;
  font-family: "Comic Sans MS", "Chalkboard SE", "Segoe UI", cursive;
}
.rail-viewport {
  overflow: hidden;
  position: relative;
  padding: 4px 14px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.rail-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: railScroll 24s linear infinite;
  will-change: transform;
}
.rail-viewport:hover .rail-track { animation-play-state: paused; }
@keyframes railScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* 主播卡片（竖版 3:4）*/
.model-card {
  position: relative;
  flex: 0 0 auto;
  width: 132px;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  display: block;
  border: 1px solid rgba(255, 255, 255, .2);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .5);
  transition: transform .15s ease;
}
.model-card:hover { transform: scale(1.05); }
.model-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.badge-live {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #ff2d48;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .5px;
  padding: 3px 7px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(255, 45, 72, .6);
}
.live-dot-sm {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  animation: dotPulse 1s ease-in-out infinite;
}
.badge-hot {
  position: absolute;
  top: 8px;
  right: 8px;
  background: linear-gradient(135deg, #ffde40, #ff8c19, #ff3f2e, #d5003b);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: .5px;
  padding: 3px 8px;
  border-radius: 6px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .4);
  animation: hotPulse 1.25s ease-in-out infinite;
}
@keyframes hotPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.13); }
}
.card-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px 9px 9px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .88));
}
.card-name {
  font-size: 15px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: .5px;
  line-height: 1.1;
}
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 3px;
}
.card-viewers {
  font-size: 10.5px;
  color: #ffc3cb;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-tag {
  font-size: 9.5px;
  color: #fff;
  background: rgba(254, 78, 96, .88);
  padding: 2px 6px;
  border-radius: 5px;
  font-weight: 800;
  white-space: nowrap;
  flex: 0 0 auto;
}

/* ===== 中部引流横幅（替代金币模块位置）===== */
.mid-cta {
  margin: 10px 0 30px;
  padding: 22px 18px;
  border-radius: 20px;
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(254, 78, 96, .28), rgba(254, 78, 96, 0) 60%),
    rgba(255, 255, 255, .06);
  border: 1px solid rgba(254, 78, 96, .38);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .42), inset 0 0 0 1px rgba(255, 255, 255, .04);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.mid-cta::before {
  content: "";
  position: absolute;
  top: -40%;
  left: -20%;
  width: 140%;
  height: 180%;
  background: radial-gradient(50% 40% at 50% 30%, rgba(255, 90, 112, .22), transparent 70%);
  animation: midCtaGlow 3.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes midCtaGlow {
  0%, 100% { transform: scale(1); opacity: .8; }
  50%      { transform: scale(1.08); opacity: 1; }
}
.mid-cta-inner { position: relative; z-index: 1; }
.mid-cta h3 {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-style: italic;
  font-weight: 900;
  font-size: 26px;
  letter-spacing: .8px;
  color: #fff;
  text-shadow: 0 0 18px rgba(254, 78, 96, .7);
}
.mid-cta p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
  margin: 8px auto 16px;
  max-width: 340px;
}

/* ===== CTA 按钮（粉色渐变 + 全套持续动画）===== */
.btn-cta {
  position: relative;
  display: inline-block;
  background: linear-gradient(145deg, var(--pink-light), var(--pink-dark));
  background-size: 200% 200%;
  color: #fff;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: .8px;
  white-space: nowrap;
  border: 2px solid rgba(255, 255, 255, .4);
  text-shadow: 0 1px 3px rgba(0, 0, 0, .35);
  box-shadow: 0 6px 22px rgba(254, 47, 80, .55), inset 0 1px 0 rgba(255, 255, 255, .35);
  overflow: hidden;
  cursor: pointer;
  animation: ctaGradient 2.6s ease infinite;
  transition: transform .12s ease;
}
/* 渐变流动 */
@keyframes ctaGradient {
  0%   { background-position: 0 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}
/* 光泽周期性扫过 */
.btn-cta::after {
  content: "";
  position: absolute;
  top: 0;
  left: -70%;
  width: 45%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .6), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
  animation: ctaShine 2.6s ease-in-out infinite;
}
@keyframes ctaShine {
  0%      { left: -70%; }
  55%, 100% { left: 140%; }
}
.btn-cta:hover { transform: scale(1.06); }
.btn-cta:active { transform: scale(.95); }
.btn-cta-lg {
  display: inline-block;
  padding: 17px 44px;
  font-size: 18px;
  margin-top: 4px;
}

/* ===== 页脚 ===== */
.footer {
  text-align: center;
  padding: 8px 4px 10px;
}
.footer-cta h3 {
  font-size: 22px;
  font-weight: 900;
  font-style: italic;
}
.footer-cta p {
  color: var(--muted);
  font-size: 13px;
  margin: 7px 0 17px;
}
.trust-row {
  margin-top: 20px;
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.trust-dot { color: var(--pink); font-weight: 900; }
.footer-lang {
  margin-top: 20px;
  font-size: 12px;
  color: var(--muted);
}
.lang-quick {
  display: inline-block;
  margin: 4px 3px 0;
  padding: 5px 10px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 12.5px;
  transition: background .15s;
}
.lang-quick:hover { background: rgba(254, 78, 96, .3); }
.adults-notice {
  margin-top: 20px;
  font-size: 11px;
  color: rgba(255, 255, 255, .5);
  line-height: 1.5;
}
.footer-copy {
  margin-top: 8px;
  font-size: 10.5px;
  color: rgba(255, 255, 255, .35);
}

/* ===== 底部固定引流条 ===== */
.bottom-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(20, 12, 26, .94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(254, 78, 96, .32);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, .5);
}
.bottom-bar-info {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.bar-logo {
  font-size: 26px;
  line-height: 1;
  animation: barLogoFloat 2.6s ease-in-out infinite;
}
@keyframes barLogoFloat {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50%      { transform: translateY(-5px) rotate(5deg); }
}
.bar-name { font-size: 14px; font-weight: 900; line-height: 1.2; }
.bar-tip {
  font-size: 10.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* 底部条 CTA：渐变流动 + 光泽扫过 + 脉冲光圈 + 呼吸缩放 */
.bottom-bar .btn-cta {
  padding: 12px 20px;
  font-size: 15px;
  animation:
    ctaGradient 2.6s ease infinite,
    ctaPulse 1.8s ease-out infinite,
    ctaBounce 1.8s ease-in-out infinite;
}
@keyframes ctaPulse {
  0%   { box-shadow: 0 6px 22px rgba(254, 47, 80, .55), 0 0 0 0 rgba(254, 78, 96, .6), inset 0 1px 0 rgba(255, 255, 255, .35); }
  70%  { box-shadow: 0 6px 22px rgba(254, 47, 80, .55), 0 0 0 15px rgba(254, 78, 96, 0), inset 0 1px 0 rgba(255, 255, 255, .35); }
  100% { box-shadow: 0 6px 22px rgba(254, 47, 80, .55), 0 0 0 0 rgba(254, 78, 96, 0), inset 0 1px 0 rgba(255, 255, 255, .35); }
}
@keyframes ctaBounce {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}

/* ===== RTL（阿拉伯语）===== */
body.rtl { direction: rtl; }
body.rtl .lang-menu { right: auto; left: 0; }
body.rtl .card-meta { flex-direction: row-reverse; }
body.rtl .hero h1 { letter-spacing: 0; }

/* ===== 大屏适配（内容居中，两侧加氛围光）===== */
@media (min-width: 520px) {
  .wall-overlay {
    background:
      radial-gradient(520px 620px at 50% 42%, rgba(254, 78, 96, .1), transparent 70%),
      radial-gradient(72% 30% at 50% 15%, rgba(23, 17, 27, .85), rgba(23, 17, 27, 0) 72%),
      linear-gradient(180deg,
        rgba(23, 17, 27, .62) 0%,
        rgba(36, 21, 43, .32) 32%,
        rgba(23, 17, 27, .42) 60%,
        rgba(23, 17, 27, .9) 100%);
  }
}

/* ===== 减弱动效偏好 ===== */
@media (prefers-reduced-motion: reduce) {
  .wall-track,
  .rail-track,
  .btn-cta,
  .btn-cta::after,
  .mid-cta::before,
  .bar-logo,
  .badge-hot,
  .live-dot,
  .live-dot-sm {
    animation: none !important;
  }
}
