/* DFA-04 landing artwork, 2026-10-19: PC 1920x1080, H5 1080x1920.
 * Hotspots are relative to the artwork canvas, never the cropped viewport.
 */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; background: #21190b; }
body { font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", Arial, sans-serif; color: #fff; -webkit-tap-highlight-color: transparent; overflow: hidden; }
img { user-select: none; }
.landing { position: fixed; inset: 0; }
.landing[data-layout="pending"] { visibility: hidden; }
.pc-shell, .h5-shell { display: none; position: absolute; inset: 0; overflow: hidden; }
.landing[data-layout="pc"] .pc-shell {
  display: block; inset: auto; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(100vw, calc(100vh * 16 / 9)); height: min(100vh, calc(100vw * 9 / 16));
  background: url(/static/assets/pc/bg-wide.jpg?v=20261019) center / 100% 100% no-repeat;
}
.h5-bg { aspect-ratio: 1080 / 1920; background: url(/static/assets/h5/bg1.jpg?v=20261019) top center / 100% 100% no-repeat; }
.landing[data-layout="h5"] { position: relative; inset: auto; }
.landing[data-layout="h5"] .h5-shell { display: block; position: relative; inset: auto; width: 100%; max-width: 750px; margin: 0 auto; }
body.landing-h5 { overflow: auto; }
.hotspot { position: absolute; display: block; background: transparent; text-decoration: none; border: 0; cursor: pointer; z-index: 5; }
.hotspot:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.landing.debug-hotspots .hotspot { outline: 2px solid rgba(255,64,64,.6); background: rgba(255,64,64,.08); }
/* PC: top contacts, QR inside the white frame, and installation tutorial. */
.pc-ad { left: 63.85%; top: 5.18%; width: 9.85%; height: 5.75%; }
.pc-group { left: 74.53%; top: 5.18%; width: 9.85%; height: 5.75%; }
.pc-mail { left: 85.10%; top: 5.18%; width: 10.89%; height: 5.75%; }
.pc-install { left: 60.94%; top: 77.22%; width: 29.90%; height: 5.56%; border-radius: 999px; }
.pc-qr { position: absolute; left: 63.02%; top: 65.19%; width: 5.42%; aspect-ratio: 1; background: #fff; padding: 4px; z-index: 4; }
.pc-qr canvas, .pc-qr img { width: 100% !important; height: 100% !important; display: block; }
/* H5 contacts follow the same configuration as PC. */
.h5-ad { left: 39.91%; top: 2.92%; width: 17.50%; height: 3.23%; }
.h5-group { left: 58.89%; top: 2.92%; width: 17.50%; height: 3.23%; }
.h5-mail { left: 77.59%; top: 2.92%; width: 19.35%; height: 3.23%; }
.h5-dl-fast { left: 9.35%; top: 77.29%; width: 39.17%; height: 7.76%; border-radius: 999px; }
.h5-dl-normal { left: 51.02%; top: 77.29%; width: 40.00%; height: 7.76%; border-radius: 999px; }
.h5-install { left: 21.20%; top: 86.98%; width: 57.87%; height: 4.69%; border-radius: 999px; }
.h5-bottom-text { left: 10.28%; top: 91.98%; width: 79.44%; height: 5.10%; border-radius: 24px; }

/* ========== B 版（视频网格长落地页，Figma node 648:66 → 750×2212 裁后） ========== */
/* B 版是单页长滚动，覆盖默认 body 锁滚 + .landing 固定布局 */
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); }

/* 轻量 toast：下载链未配置时给用户可见反馈（见 landing.js trackThenGo）。 */
.landing-toast {
  position: fixed;
  left: 50%;
  bottom: 12%;
  z-index: 200;
  max-width: 80vw;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .82);
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  transform: translate(-50%, 8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
.landing-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ========== 安卓「安装包报毒解决方案」弹层 ========== */
.android-modal {
  position: fixed; inset: 0;
  background: #f5f5f5;
  color: #222;
  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: #fff;
  border-bottom: 1px solid #eee;
  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; }
.android-modal-title { font-size: 16px; font-weight: 600; flex: 1; text-align: center; }
.android-modal-spacer { width: 32px; }

.android-modal-list { display: flex; flex-direction: column; gap: 8px; padding: 12px; }
.android-modal-cell {
  display: block;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
}
.android-modal-cell img { width: 100%; display: block; }

.android-modal-detail { padding: 12px; }
.android-modal-detail[hidden] { display: none; }
.android-modal-pic { background: #fff; border-radius: 8px; overflow: hidden; margin-bottom: 8px; }
.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; }
}
