/* ==========================================================================
   who 落地页 · 桌面优先（对齐 whoapp.live 结构）
   首屏 = 全屏背景视频 + 顶部半透明导航 + 左侧文案 + 右侧「热门」竖向滚动列
   ========================================================================== */

:root {
  --brand: #ff0069;
  --rail-w: 384px;
  --topbar-h: 80px;
  --font-display: "Montserrat", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #000;
  color: #fff;
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overscroll-behavior: none;
}

body { overflow-x: hidden; }

img, video { display: block; max-width: 100%; }
button { font-family: inherit; }

/* ---------- 舞台 ---------- */
.stage {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #000;
}

/* ---------- 背景媒体（图片 / 视频二选一） ---------- */
.bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.bg > video,
.bg > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* 左侧压暗：保证白字在任何一帧画面上都够对比度（亮色图片也能压住） */
.bg-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .6) 22%, rgba(0, 0, 0, .3) 40%, rgba(0, 0, 0, .06) 56%, rgba(0, 0, 0, 0) 66%),
    linear-gradient(180deg, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .12) 16%, rgba(0, 0, 0, 0) 26%);
}

/* ---------- 顶部导航 ---------- */
.topbar {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--topbar-h);
  padding: 0 36px;
  background: rgba(0, 0, 0, .58);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.brand { display: flex; align-items: center; }

.brand img {
  width: 96px;
  height: auto;
  object-fit: contain;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #fff;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-right: 10px;
}

.topnav a {
  color: rgba(255, 255, 255, .94);
  font-size: 14px;
  text-decoration: none;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .5);
  white-space: nowrap;
  transition: color .16s;
}

.topnav a:hover { color: #fff; }

.btn-ghost,
.btn-solid {
  height: 38px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .16s, background .16s, border-color .16s;
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, .45);
  background: transparent;
  color: #fff;
}

.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }

.btn-solid {
  border: 0;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 20px rgba(255, 0, 105, .32);
}

.btn-solid:hover { transform: translateY(-1px); }

/* ---------- 左侧文案区 ---------- */
.copy {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 60%;
  max-width: calc(100% - var(--rail-w) - 56px);
  margin-left: 28px;
}

.locale {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 6px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .05em;
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background .16s;
}

.locale:hover { background: rgba(255, 255, 255, .2); }

.locale-code {
  display: grid;
  place-items: center;
  width: 28px;
  height: 19px;
  border-radius: 3px;
  background: #fff;
  color: #111;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
}

.copy h1 {
  margin: 22px 0 0;
  font-family: var(--font-display);
  font-size: clamp(36px, 4.4vw, 60px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.025em;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .55);
}

.copy .sub {
  margin: 18px 0 0;
  max-width: 26em;
  font-size: clamp(15px, 1.25vw, 19px);
  line-height: 1.55;
  color: rgba(255, 255, 255, .95);
  text-shadow: 0 1px 12px rgba(0, 0, 0, .55);
}

.copy .sub2 {
  margin: 12px 0 0;
  font-size: 14px;
  letter-spacing: .01em;
  color: rgba(255, 255, 255, .82);
  text-shadow: 0 1px 10px rgba(0, 0, 0, .5);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  margin-top: 34px;
  padding: 0 34px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--brand);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.01em;
  cursor: pointer;
  box-shadow: 0 12px 36px rgba(255, 0, 105, .34);
  transition: transform .16s, box-shadow .16s;
}

.cta:hover {
  transform: translateY(-1px) scale(1.015);
  box-shadow: 0 16px 44px rgba(255, 0, 105, .44);
}

.cta:active { transform: translateY(0) scale(.995); }

.cta-ico { width: 20px; height: 20px; flex: none; }

/* ---------- 右侧「热门」竖列 ---------- */
.rail {
  position: absolute;
  right: 0;
  top: var(--topbar-h);
  z-index: 20;
  display: flex;
  flex-direction: column;
  width: var(--rail-w);
  height: calc(100% - var(--topbar-h));
  padding: 0 0 144px 64px;
  background: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .55) 45%, rgba(0, 0, 0, .82) 100%);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}

.rail-title {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: none;
  padding: 12px 0 8px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.flame { width: 18px; height: 18px; color: var(--brand); flex: none; }

.rail-view {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 26px, #000 calc(100% - 48px), transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 26px, #000 calc(100% - 48px), transparent 100%);
}

.rail-track {
  will-change: transform;
  animation: railScroll var(--dur, 40s) linear infinite;
}

@keyframes railScroll {
  from { transform: translateY(0); }
  to   { transform: translateY(var(--shift, -50%)); }
}

.hot-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}

.hot-avatar {
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: #1b1b1f;
}

.hot-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hot-initial {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 17px;
  font-weight: 700;
  color: rgba(255, 255, 255, .75);
  background: linear-gradient(135deg, #3a2b33, #1b1b1f);
}

.hot-dot {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #0b0b0d;
}

.hot-dot.off { background: #6b7280; }

.hot-meta { min-width: 0; }

.hot-name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hot-viewers {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
  font-size: 12px;
  color: rgba(255, 255, 255, .55);
}

.eye { width: 13px; height: 13px; flex: none; }

/* ---------- Cookie 提示 ---------- */
.cookie {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 470px;
  padding: 11px 12px 11px 18px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 14px;
  background: rgba(18, 18, 20, .88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, .82);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .45);
}

.cookie[hidden] { display: none; }

.cookie button {
  flex: none;
  padding: 7px 16px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

/* ---------- 内置浏览器提示 ---------- */
.inapp {
  position: fixed;
  top: var(--topbar-h);
  left: 0;
  right: 0;
  z-index: 60;
  padding: 9px 16px;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.inapp[hidden] { display: none; }

/* ---------- 阿拉伯语：只让文字本身走 RTL，版式结构保持不翻转 ---------- */
[dir="rtl"] .topbar,
[dir="rtl"] .copy,
[dir="rtl"] .rail { direction: ltr; }

[dir="rtl"] .copy h1,
[dir="rtl"] .copy .sub,
[dir="rtl"] .copy .sub2,
[dir="rtl"] .hot-name,
[dir="rtl"] .topnav a { direction: rtl; text-align: left; }

[dir="rtl"] .cookie { direction: ltr; }
[dir="rtl"] .cookie > span { direction: rtl; text-align: left; }

/* ---------- 平板 / 手机 ---------- */
@media (max-width: 1023px) {
  :root { --topbar-h: 64px; }

  .topbar { padding: 0 18px; background: rgba(0, 0, 0, .38); }
  .brand img { width: 78px; }
  .brand-text { font-size: 24px; }
  .topnav { display: none; }
  .btn-ghost, .btn-solid { height: 34px; padding: 0 16px; font-size: 13px; }
  .topbar-right { gap: 8px; }

  .rail { display: none; }

  .copy {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0 20px calc(26px + env(safe-area-inset-bottom, 0px));
    transform: none;
  }

  .bg-shade {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, 0) 26%, rgba(0, 0, 0, .55) 68%, rgba(0, 0, 0, .88) 100%);
  }

  .copy h1 { margin-top: 16px; font-size: 30px; line-height: 1.14; }
  .copy .sub { margin-top: 12px; font-size: 15px; }
  .copy .sub2 { margin-top: 8px; font-size: 13px; }

  .cta {
    width: 100%;
    height: 54px;
    margin-top: 22px;
    font-size: 16px;
  }

  .cookie {
    left: 12px;
    right: 12px;
    top: calc(var(--topbar-h) + 10px);
    bottom: auto;
    max-width: none;
  }
}

@media (max-width: 1023px) and (orientation: landscape) and (max-height: 520px) {
  .copy h1 { font-size: 24px; }
  .copy .sub2 { display: none; }
  .cta { height: 46px; margin-top: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .rail-track { animation: none; }
  .cta, .btn-ghost, .btn-solid { transition: none; }
}

/* ==========================================================================
   首屏以下的长页内容（对齐原站 #landing-wrapper：max-w-2xl 黑底居中列）
   ========================================================================== */
.page {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 672px;
  margin: 0 auto;
  padding: 32px;
  background: #000;
  color: #fff;
  text-align: center;
  overflow-x: hidden;
  -webkit-user-select: none;
  user-select: none;
}

.page section { margin: 0 0 56px; }
.page section:last-child { margin-bottom: 0; }

.page h2 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}

.page h3 {
  margin: 32px 0 14px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
}

.page p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255, 255, 255, .8);
}

.page-img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto 8px;
}

/* 全宽主按钮 */
.page-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 52px;
  margin: 22px 0;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .16s;
}

.page-cta:hover { opacity: .9; }
.page-cta:active { opacity: .8; }
.page-cta svg { width: 9px; height: 14px; flex: none; }

/* 兴趣清单 */
.list-card {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  text-align: start;
}

.list-card li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .9);
}

.list-card .ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  flex: none;
}

/* 普通要点列表 */
.list-plain {
  margin: 0;
  padding-inline-start: 20px;
  text-align: start;
}

.list-plain li {
  margin: 12px 0;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .8);
}

/* perk 卡片 */
.perk-card {
  margin-bottom: 20px;
  padding: 24px;
  border-radius: 12px;
  background: #111114;
  text-align: start;
}

.perk-header {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.perk-icon {
  width: 50px;
  height: 50px;
  flex: none;
  object-fit: contain;
}

.perk-title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
}

.perk-text {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255, 255, 255, .72);
}

/* 数据卡 */
.stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px;
  text-align: start;
}

.stat-icon { width: 88px; flex: none; object-fit: contain; }
.stat-num { font-size: 22px; font-weight: 600; line-height: 1.2; }
.stat-label { margin-top: 4px; font-size: 13px; color: rgba(255, 255, 255, .65); }

/* FAQ 折叠 */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
  text-align: start;
}

.faq-item {
  padding: 16px;
  border-radius: 8px;
  background: #fff;
  color: var(--brand);
}

/* 用 .page .faq-q 提权：.page h3 会把标题染成白色并加上下 margin */
.page .faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  color: var(--brand);
}

.faq-btn {
  width: 20px;
  height: 20px;
  flex: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand);
  cursor: pointer;
  transform: rotate(90deg);
  transition: transform .2s ease;
}

.faq-item.open .faq-btn { transform: rotate(-90deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  color: #6b7280;
  transition: max-height .25s ease;
}

.faq-a p { margin: 10px 0 0; font-size: 14px; line-height: 1.7; color: #6b7280; }

/* 评价 */
.testimonial {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
  padding: 24px;
  border-radius: 12px;
  background: #111114;
  text-align: start;
}

.t-avatar { width: 48px; height: 48px; flex: none; object-fit: contain; }
.t-text { font-size: 13px; line-height: 1.65; color: rgba(255, 255, 255, .82); }
.t-name { margin-top: 8px; font-size: 13px; font-weight: 600; color: #fff; }
.t-stars { display: block; width: 81px; height: 13px; margin-top: 6px; color: var(--brand); }

/* SEO 长文 */
.seo-head { text-align: center; }
.seo-head h2 { font-size: 24px; line-height: 1.25; }
.seo-head p {
  margin: 0 auto 32px;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, .8);
  white-space: pre-line;
}

.seo-list { text-align: start; }

.seo-article {
  margin-bottom: 18px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px;
}

.seo-article > h2 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.seo-article h3 {
  margin: 18px 0 8px;
  font-size: 15px;
  font-weight: 600;
}

.seo-article p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, .75);
}

.seo-article p:last-child { margin-bottom: 0; }

@media (max-width: 1023px) {
  .page { padding: 20px 18px 40px; }
  .page section { margin-bottom: 40px; }
  .page h2 { font-size: 20px; }
  .page h3 { font-size: 17px; margin-top: 26px; }
  .page p { font-size: 14px; line-height: 1.7; }
  .perk-card, .stat-card, .testimonial, .seo-article { padding: 18px; }
  .perk-icon { width: 42px; height: 42px; }
  .stat-icon { width: 64px; }
  .stat-num { font-size: 19px; }
  .page .faq-q { font-size: 14px; }
  .seo-head h2 { font-size: 20px; }
  .seo-article > h2 { font-size: 16px; }
}
