/* 芒果落地页：背景拉伸铺满可见视口，人物、标题、按钮按示意图百分比定位。
 * 切图在各自的框里等比缩放，背景伸缩不改变字形和按钮比例。
 * PC 1920×1080，H5 750×1334。
 */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: #120c09; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: #fff;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  overflow-y: hidden;
}
img { user-select: none; }

.landing { position: relative; width: 100%; }
.landing[data-layout="pending"] { visibility: hidden; }

.pc-shell, .h5-shell { display: none; position: relative; width: 100%; }
.landing[data-layout="pc"] .pc-shell,
.landing[data-layout="h5"] .h5-shell {
  display: block;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  isolation: isolate;
}
.pc-frame, .h5-frame {
  position: relative;
  width: 100%;
  height: 100%;
}
.pc-bg, .h5-bg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  -webkit-user-drag: none;
}

/* 切图保持原始比例。百分比相对设计稿。 */
.landing-art {
  position: absolute;
  display: block;
  object-fit: contain;
  pointer-events: none;
  -webkit-user-drag: none;
  z-index: 2;
}
.h5-character { left: 4.0000%; top: 0; width: 96.0000%; height: 71.5142%; z-index: 1; }
.h5-logo { left: 3.3333%; top: 2.2489%; width: 11.4667%; height: 6.4468%; z-index: 3; }
.h5-title { left: 0; top: 51.7241%; width: 100%; height: 38.8306%; }
.pc-character { left: 45.5729%; top: 0; width: 45.4688%; height: 100%; z-index: 1; }
.pc-logo { left: 2.0312%; top: 3.8889%; width: 5.2083%; height: 9.2593%; z-index: 3; }
.pc-title { left: 0; top: 9.3519%; width: 55.7813%; height: 78.7037%; }

/* ========== 热区基础样式 ========== */
.hotspot {
  position: absolute;
  display: block;
  background: transparent;
  text-decoration: none;
  border: 0;
  outline: 0;
  cursor: pointer;
  z-index: 5;
}
.landing.debug-hotspots .hotspot { outline: 2px solid rgba(255,64,64,.6); background: rgba(255,64,64,.08); }

/* ========== PC 顶部三按钮（1920×1080：官方TG / 流量合作 / 商务合作） ========== */
.pc-coopbar { position: absolute; inset: 0; z-index: 8; pointer-events: none; }
.pc-coopbtn { position: absolute; line-height: 0; pointer-events: auto; }
.pc-coop-group { left: 73.1250%; top: 2.5926%; width: 9.0104%; height: 6.9444%; }
.pc-coop-channel { left: 81.6146%; top: 2.7778%; width: 9.0104%; height: 6.7593%; }
.pc-coop-biz { left: 90.0521%; top: 2.7778%; width: 9.0104%; height: 6.7593%; }
.pc-coopbtn img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* 扫码卡片。二维码落在白块内，避开四角定位标。 */
.pc-download-card {
  position: absolute;
  left: 83.4896%;
  top: 64.6296%;
  width: 14.2188%;
  aspect-ratio: 273 / 338;
  z-index: 4;
}
.pc-qr-frame {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  -webkit-user-drag: none;
}
.pc-qr {
  position: absolute;
  left: 10.62%;
  top: 7.99%;
  width: 73.63%;
  aspect-ratio: 1;
  z-index: 5;
}
.pc-qr canvas, .pc-qr img { width: 100% !important; height: 100% !important; display: block; }

/* ========== H5 顶部三按钮（750×1334） ========== */
.h5-coopbar { position: absolute; inset: 0; z-index: 8; pointer-events: none; }
.h5-coopbtn { position: absolute; top: 2.3988%; height: 3.1484%; line-height: 0; pointer-events: auto; }
.h5-coop-biz { left: 52.8000%; width: 14.0000%; }
.h5-coop-channel { left: 67.6000%; width: 14.1333%; }
.h5-coop-group { left: 82.4000%; width: 14.0000%; }
.h5-coopbtn img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* ========== H5 底部下载按钮 ========== */
.h5-dlbar { position: absolute; inset: 0; z-index: 20; pointer-events: none; }
.h5-dlbtn { position: absolute; line-height: 0; pointer-events: auto; }
.h5-dl-normal { left: 8.0000%; top: 88.6807%; width: 34.2667%; height: 5.2474%; }
.h5-dl-fast { left: 43.3333%; top: 87.3313%; width: 53.8667%; height: 7.2714%; }
.h5-dlbtn img { width: 100%; height: 100%; object-fit: contain; display: block; }

.h5-footer {
  position: absolute;
  left: 0;
  top: 97.0765%;
  width: 100%;
  height: 2.9235%;
  z-index: 6;
  line-height: 0;
}
.h5-footer img { width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; }

body.landing-h5 { overflow: hidden; }

/* ========== B 版（视频网格长落地页，Figma node 648:66 → 750×2212 裁后） ========== */
/* B 版移动端保留最大 750px 的居中长页；PC 端复用上面的全宽海报。 */
body.b-version { overflow: auto; background: #000; }
.landing.landing-b {
  position: relative;
  inset: auto;
  display: block;
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
  background: #000;
}
/* B 版移动长页容器：定位上下文 = 图片框，热区 % 相对它对齐。
 * PC 端（landing.js 切 data-layout="pc" 并去掉 .landing-b）隐藏本段、改显 pcShell。*/
.b-shell { position: relative; display: block; }
.landing[data-layout="pc"] .b-shell { display: none; }

.b-bg {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  -webkit-user-drag: none;
}
.b-hot {
  position: absolute;
  display: block;
  background: transparent;
  text-decoration: none;
  border: 0;
  outline: 0;
  cursor: pointer;
  z-index: 5;
}
/* B 版热区（基于 bg-b.jpg 750×2212；精确测自 648:102/648:108/648:101 bbox） */
.b-btn-android { left:  4.00%; top: 91.14%; width: 44.80%; height: 3.71%; border-radius: 999px; }
.b-btn-ios     { left: 51.73%; top: 91.14%; width: 44.80%; height: 3.71%; border-radius: 999px; }
.b-bottom-text { left: 24.53%; top: 96.02%; width: 51.20%; height: 2.89%; }
/* B 版顶部右侧 3 个外链按钮（图标+文案为整块热区；目标与 PC pc-mail/telegram/sw 一致）
 * 商务合作(♥)→官网 t1t1.com、官方社群(✈)→Telegram、官方邮箱(✉)→mailto。
 * 坐标量自 bg-b.jpg 顶部 header（750×2212）。 */
.b-biz   { left: 57.60%; top: 1.18%; width: 14.67%; height: 4.43%; }
.b-group { left: 72.00%; top: 1.18%; width: 13.33%; height: 4.43%; }
.b-mail  { left: 84.93%; top: 1.18%; width: 14.67%; height: 4.43%; }
.landing.landing-b.debug-hotspots .b-hot { outline: 2px solid rgba(255,64,64,.6); background: rgba(255,64,64,.08); }

/* ========== 安卓「安装包报毒解决方案」弹层（深色金主题，与落地页统一） ========== */
.android-modal {
  position: fixed; inset: 0;
  background: #0d0a07;
  color: #e8d9a8;
  z-index: 100;
  overflow-y: auto;
}
.android-modal[hidden] { display: none; }
.android-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  background: linear-gradient(180deg, #241a0c, #1a1308);
  border-bottom: 1px solid rgba(212,175,55,.35);
  position: sticky; top: 0; z-index: 2;
}
.android-modal-back {
  width: 32px; height: 32px;
  background: none; border: 0; padding: 0;
  cursor: pointer;
}
/* 原黑色返回箭头图标，深色底下反相成浅金 */
.android-modal-back img { width: 100%; height: 100%; object-fit: contain; filter: invert(1) sepia(1) saturate(2) hue-rotate(5deg) brightness(1.1); }
.android-modal-title { font-size: 16px; font-weight: 700; flex: 1; text-align: center; color: #f2d675; letter-spacing: 1px; }
.android-modal-spacer { width: 32px; }

.android-modal-list { display: flex; flex-direction: column; gap: 10px; padding: 14px; }
/* 修：列表 display:flex 会盖过 hidden 属性的 display:none，点「查看」进详情态时列表隐不掉 */
.android-modal-list[hidden] { display: none; }
.android-modal-cell {
  display: block;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(212,175,55,.22);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
}
.android-modal-cell img { width: 100%; display: block; }

.android-modal-detail { padding: 14px; }
.android-modal-detail[hidden] { display: none; }
.android-modal-pic { background: rgba(255,255,255,.04); border: 1px solid rgba(212,175,55,.22); border-radius: 10px; overflow: hidden; margin-bottom: 10px; }
.android-modal-pic img { width: 100%; display: block; }

/* ========== 浮动广告位（右下） ========== */
.ad-float {
  position: fixed;
  right: 12px;
  bottom: 16px;
  width: min(80px, 22vw);
  aspect-ratio: 1/1;
  z-index: 50;
}
.ad-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .35s; }
.ad-slide.active { opacity: 1; }
.ad-slide img {
  width: 100%; height: 100%;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(0,0,0,.2);
}
.ad-close {
  position: absolute;
  top: -8px; right: -8px;
  width: 20px; height: 20px;
  background: rgba(0,0,0,.6);
  color: #fff;
  border: 0;
  border-radius: 999px;
  font-size: 14px;
  line-height: 18px;
  cursor: pointer;
  z-index: 1;
}

@media (min-width: 961px) {
  .ad-float { width: 96px; right: 24px; bottom: 24px; }
}
