/* qiezi-go landing page styles
 *
 * 两套布局：PC（≥961px）+ H5（<961px），由 landing.js 在 detectDevice 后给
 * <main.landing> 加 data-layout="pc"/"h5" + data-os="ios"/"android"。
 * 热区位置全部精确测自 Figma node 637:260 的 absoluteBoundingBox（见
 * doc 落地页/landing板块实施方案.md §7）。
 *
 *  - PC 背景：3840×2160 (Figma node 637:26 @2x，原 1920×1080 设计稿)
 *  - H5 iOS：750×1270 (node 637:100 裁掉 iPhone 状态栏 88px + Safari 栏 266px)
 *  - H5 Android：750×1536 (node 637:159 仅裁状态栏 88px，无 Safari 栏)
 *
 * iOS / Android 两张 H5 背景图尺寸不同 → 热区百分比按各自图分别算，通过
 * .landing[data-os="ios|android"] 选择器切换。url 加 ?debug=1 可看红框对齐。
 */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; background: #000; }
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: flex; align-items: center; justify-content: center; background: #000; }
.landing[data-layout="h5"] .h5-shell { display: block; background: #000; }

/* H5：背景拉伸铺满整屏(object-fit:fill)——全图显示、不裁剪、无黑边；一屏不滚动。
   热区/按钮 % 相对满屏 .h5-frame(=图铺满视口，% 直接对齐图内位置)。
   代价=非 0.46 比例屏图微拉伸(手机屏≈0.46 与图吻合，几乎无感)。 */
.h5-frame {
  position: absolute; inset: 0;
}

/* PC：按图宽高比(1672×941)框定，最大化填入视口——16:9 窗口=满屏无黑边，
   其它比例=居中留极窄黑边；热区/二维码 % 相对 .pc-frame(=图片本身)，与窗口比例无关，
   彻底解决 object-fit:cover 裁剪导致热区漂移。 */
.pc-frame {
  position: relative;
  width: 100%; height: 100%;
  max-width: calc(100vh * 1672 / 941);
  max-height: calc(100vw * 941 / 1672);
  aspect-ratio: 1672 / 941;
}
.pc-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: fill;
  pointer-events: none;
  -webkit-user-drag: none;
}
.h5-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: fill;
  pointer-events: none;
  -webkit-user-drag: none;
}

/* ========== 热区基础样式 ========== */
.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 热区（黄豆新版 pc.jpg 1672×941；坐标首版估算，用 ?debug 微调） ========== */
/* 右上 3 个外链：广告合作 / 官方群组 / 渠道合作 */
.pc-biz     { top: 3.5%; left: 73.5%; width: 8.5%; height: 4.5%; }
.pc-group   { top: 3.5%; left: 83.0%; width: 8.5%; height: 4.5%; }
.pc-channel { top: 3.5%; left: 91.0%; width: 8.5%; height: 4.5%; }

/* 二维码（qrcode.min.js 渲染当前 URL，含渠道码；压在右下白方块上，坐标=图像分析实测白块） */
.pc-qr {
  position: absolute;
  top: 75.9%; left: 81.9%;
  width: 10.5%; aspect-ratio: 1/1;
  background: #fff;
  padding: 4px;
  z-index: 4;
}
.pc-qr canvas, .pc-qr img { width: 100% !important; height: 100% !important; display: block; }

/* ========== H5 热区（黄豆新版 h5.jpg 750×1621，iOS/安卓同图；坐标首版估算，用 ?debug 微调） ========== */
.h5-biz         { top: 2.5%; left: 46.5%; width: 17.0%; height: 3.6%; }
.h5-group       { top: 2.5%; left: 63.5%; width: 16.5%; height: 3.6%; }
.h5-channel     { top: 2.5%; left: 80.0%; width: 18.0%; height: 3.6%; }
.h5-bottom-text { top: 90.0%; left: 20.0%; width: 60.0%; height: 2.0%; }

/* ========== H5 底部 2 按钮（叠在 frame 底部，随图等比定位，不再是固定栏） ========== */
.h5-dlbar {
  position: absolute; left: 3%; right: 3%; bottom: 2.5%;
  z-index: 20;
  display: flex;
  gap: 4%;
  justify-content: center; align-items: center;
}
.h5-dlbtn { flex: 1 1 0; max-width: 47%; line-height: 0; }
.h5-dlbtn img { width: 100%; height: auto; display: block; }

/* 安装教程圆形金徽章（右下浮动，光泽金 + 呼吸动效，仿参考站样式） */
.h5-guide-btn {
  position: absolute;
  right: 4%; bottom: 14%;
  z-index: 25;
  width: 74px; height: 74px;
  border-radius: 50%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1px;
  text-decoration: none;
  color: #4a2e00;
  background: radial-gradient(circle at 50% 30%, #ffedb0 0%, #f6cc5a 45%, #d99a2b 100%);
  border: 2px solid #ffeeb8;
  box-shadow: 0 4px 12px rgba(0,0,0,.55), inset 0 2px 7px rgba(255,255,255,.7), inset 0 -4px 9px rgba(150,90,0,.45);
  animation: h5GuidePulse 2s ease-in-out infinite;
}
.h5-guide-ic { width: 22px; height: 22px; color: #5a3800; }
.h5-guide-tx { font-size: 12px; font-weight: 800; line-height: 1.1; text-shadow: 0 1px 0 rgba(255,255,255,.45); letter-spacing: .5px; }
@keyframes h5GuidePulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .h5-guide-btn { animation: none; } }

/* H5 一屏显示，不滚动 */
body.landing-h5 { overflow: hidden; }

/* ========== 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); }

/* ========== 安卓「安装包报毒解决方案」弹层（深色金主题，与落地页统一） ========== */
.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; }
}
