/* ========== Reset ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  background: #000;
  color: #fff;
  font-family: -apple-system, "Helvetica Neue", "PingFang SC", Arial, sans-serif;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }

/* ========== 顶栏（PC） ========== */
.topbar {
  height: 60px;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}
.logo img { height: 36px; }
.slogan { height: 28px; }

/* ========== 移动端底栏 ========== */
.bottombar { display: none; }

/* ========== 舞台与播放器 ========== */
.stage {
  min-height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;           /* 让视频 + 按钮上下排列 */
  align-items: center;
  justify-content: center;
  gap: 36px;                        /* 默认间距（二维码页/视频页用） */
  padding: 20px;
  position: relative;
  overflow: hidden;                 /* 粒子溢出裁剪 */
}
/* 首页专属：双入口大间距布局 */
.home-stage { gap: 140px; }

/* ========== 跳转按钮（CTA） ========== */
.cta {
  display: flex;                     /* 图标 + 文字纵向排列 */
  flex-direction: column;
  align-items: center;
  width: 84px;
  z-index: 2;
  text-decoration: none;
  transition: transform .25s ease, filter .25s ease;
  filter: drop-shadow(0 4px 14px rgba(255, 102, 0, .35));
}
.cta img { width: 100%; height: auto; display: block; }
.cta:hover { transform: translateY(-4px); filter: drop-shadow(0 10px 22px rgba(255, 102, 0, .55)); }
.cta:active { transform: translateY(-1px); transition-duration: .05s; }
/* 粒子背景层 */
#particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;            /* 不能挡住视频交互 */
  z-index: 0;
}

/* ========== 行星逆光弧线 ========== */
.horizon-arc {
  position: absolute;
  top: 0;                            /* 顶到 stage 上沿 */
  left: 0;
  width: 100%;
  height: 100px;                     /* 紧凑高度，让弧线远离视频 */
  pointer-events: none;
  z-index: 3;                        /* 高于视频（z-index: 2），确保浮在上层 */
  filter: drop-shadow(0 0 8px rgba(255, 220, 150, 1))        /* 强发光 */
          drop-shadow(0 0 16px rgba(255, 180, 80, .8));       /* 外圈柔光 */
  animation: horizon-pulse 8s ease-in-out infinite;
}
@keyframes horizon-pulse {
  0%, 100% { opacity: .35; }
  50%      { opacity: 1; }
}
/* ========== 玩家堆叠：视频框上方品牌标识 + 视频框 ========== */
.player-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
}
.brand-mark-link {
  display: flex;                     /* 图标 + 文字纵向排列 */
  flex-direction: column;
  align-items: center;
  position: relative;               /* 让内部 .brand-mark 的 z-index 4 真正生效 */
  z-index: 4;                       /* 与 .player(z:2) 拉开层级 */
  text-decoration: none;
}

/* ========== 入口图标下方的中英文说明 ========== */
.entry-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 26px;
  text-align: center;
  width: max-content;               /* 不被图标窄宽度限制，按内容自然展开 */
}
.caption-zh {
  font-size: 15px;
  letter-spacing: 6px;
  color: rgba(255, 255, 255, .88);
  white-space: nowrap;              /* 禁止在文字中间折行 */
}
.caption-en {
  font-size: 10px;
  letter-spacing: 4px;
  color: rgba(255, 255, 255, .38);
  text-transform: uppercase;
  white-space: nowrap;
}
.cta .entry-caption { margin-top: 18px; }
.brand-mark {
  width: 180px;
  z-index: 4;                      /* 在弧线(z:3)之上 */
  filter: drop-shadow(0 4px 14px rgba(255, 102, 0, .4))
          drop-shadow(0 0 22px rgba(255, 180, 80, .25));
  transition: transform .25s;
  animation: brand-breathe 4s ease-in-out infinite;
}
@keyframes brand-breathe {
  0%, 100% { filter: drop-shadow(0 4px 14px rgba(255, 102, 0, .4)) drop-shadow(0 0 22px rgba(255, 180, 80, .25)); }
  50%      { filter: drop-shadow(0 4px 18px rgba(255, 102, 0, .6)) drop-shadow(0 0 34px rgba(255, 180, 80, .45)); }
}
.brand-mark-link:hover .brand-mark { transform: translateY(-4px); animation-play-state: paused; }

/* ========== 加载进度条（视频播放页，位于视频上方） ========== */
.load-bar {
  width: 100%;
  margin-bottom: 16px;
}
.load-text {
  font-size: 12px;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, .55);
  transition: color .4s ease;
}
.load-text b { color: #ff8a3d; font-weight: 600; }
.load-track {
  margin-top: 8px;
  height: 2px;
  background: rgba(255, 255, 255, .14);
  border-radius: 2px;
  overflow: hidden;
}
.load-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #ff6600, #ffb366);
  border-radius: 2px;
  transition: width .35s ease;
}
.load-bar.loaded { opacity: 0; transition: opacity .8s ease; }
.player {
  position: relative;
  z-index: 2;                      /* 浮在曙光之上 */
  width: 100%;
  max-width: 1280px;
  aspect-ratio: 16 / 9;
  background: transparent;          /* 透明 → 视频 letterbox 透出页面黑底，不再有白色边框 */
  border: 0;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .4);
}
video {
  display: block;                   /* 避免 inline 默认基线对齐造成底部留白 */
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;          /* 同上：透出黑底，避免 letterbox 出现白边 */
  border: 0;
}
video::-webkit-media-controls-enclosure { background: rgba(0, 0, 0, .6); }

/* ========== 静音兜底提示（仅浏览器拦截有声自动播放时出现） ========== */
.sound-hint {
  position: absolute;
  right: 14px;
  bottom: 60px;                        /* 抬高避开原生控制栏 */
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: 13px;
  letter-spacing: 1px;
  cursor: pointer;
  z-index: 5;                          /* 必须配合 position 才浮于视频之上 */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: hint-breathe 2.4s ease-in-out infinite;
  transition: background .25s ease;
}
.sound-hint[hidden] { display: none; } /* display:inline-flex 会覆盖 UA 的 [hidden]，必须显式恢复 */
.sound-hint:hover { background: rgba(255, 102, 0, .65); }
.sound-hint svg { flex: none; opacity: .85; }
@keyframes hint-breathe {
  0%, 100% { opacity: .75; }
  50%      { opacity: 1; }
}

/* ========== 清晰度面板（已移除） ========== */

/* ========== 移动端 ========== */
@media (max-width: 768px) {
  .topbar .slogan { display: none; }              /* 移动端顶栏只留 logo */
  .topbar { padding: 0 16px; height: 50px; }
  .logo img { height: 28px; }

  .stage {
    min-height: calc(100vh - 50px - 70px);        /* 顶栏 50 + 底栏 70 */
    padding: 12px;
  }
  /* 首页专属：图标上移 + 大间距（只作用于首页，不影响二维码/视频页） */
  .home-stage {
    justify-content: flex-start;
    padding-top: 13vh;
    gap: 84px;                      /* 移动端两入口拉近，联系方式按钮上移 */
  }

  /* 移动端底栏：口号图水平居中 */
  .bottombar {
    display: flex;
    align-items: center;
    justify-content: center;                     /* 改：居中 */
    height: 70px;
    padding: 10px 24px;
    background: #1a1a1a;
  }
  .mobile-slogan-img {
    height: 100%;
    max-width: 80%;
    object-fit: contain;
  }

  .cta  { width: 100px; }
  .brand-mark { width: 140px; }
  .entry-caption { margin-top: 24px; gap: 6px; }
  .caption-zh { font-size: 18px; letter-spacing: 6px; }
  .caption-en { font-size: 12px; letter-spacing: 4px; }
  .back-home  { font-size: 18px; }   /* 移动端与“播放宣传片”同字号 */
  .cta .entry-caption { margin-top: 18px; }
  .horizon-arc { top: 40px; }
  .sound-hint { right: 10px; bottom: 56px; padding: 7px 12px; font-size: 12px; }

  /* 二维码页：移动端堆叠 */
  .qr-row { flex-direction: column; gap: 28px; }
  .qr-card { width: 158px; }
  .qr-title { font-size: 18px; }
  .qr-sub   { font-size: 12px; margin-bottom: 4px; }
  .qr-stage { padding-top: 3vh; padding-bottom: 28px; }    /* 移动端贴近顶栏开始内容，底部留白避免与浏览器底栏重叠 */
}

/* ========== 全局：禁止文本选择 & 图片拖拽（防止导出视频帧） ========== */
.player, .player video {
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* ========== 二维码页 ========== */
/* 整体内容上移，靠近顶部 */
.qr-stage {
  justify-content: flex-start;
  padding-top: 4vh;
}
.qr-title {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 4px;
  color: #fff;
  z-index: 2;
  position: relative;
  text-align: center;
}
.qr-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, .55);
  letter-spacing: 2px;
  z-index: 2;
  position: relative;
  margin-top: -16px;          /* 紧贴主标题 */
}
.qr-row {
  display: flex;
  gap: 48px;
  z-index: 2;
  position: relative;
  margin-top: 8px;
}
.qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 178px;
  padding: 15px 15px 12px;
  background: #fff;
  border-radius: 8px;
  text-decoration: none;
  color: #111;
  transition: transform .3s ease, box-shadow .3s ease;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
}
.qr-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(255, 102, 0, .3),
              0 12px 40px rgba(0, 0, 0, .5);
}
.qr-imgbox {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qr-imgbox img { width: 100%; height: 100%; object-fit: contain; }
.qr-platform {
  margin-top: 14px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
}
.qr-account {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(0, 0, 0, .5);
  letter-spacing: 1px;
}
.back-home {
  z-index: 2;
  position: relative;
  margin-top: 18px;                  /* 更贴近二维码组 */
  font-size: 15px;                   /* 与“播放宣传片”同字号 */
  color: #fff;
  text-decoration: none;
  letter-spacing: 6px;
  background: #ff6600;               /* 页面橙色 */
  padding: 11px 26px;
  border-radius: 999px;              /* 圆角胶囊 */
  display: inline-block;
  box-shadow: 0 6px 18px rgba(255, 102, 0, .35);
  transition: background .25s ease, transform .25s ease;
}
.back-home:hover {
  background: #ff7d24;
  transform: translateY(-2px);
}
