/* 模块化样式文件主入口 */

/* src/styles/variables.css - CSS变量定义 */

:root {
  --vh: 1vh;
  /* UI手册sprite图片路径 */
  --sprite-ui-manual: url(/h5/2025/parade2025/static/images/ui-manual.CErMTOjq.png);

  /* 分享按钮 */
  --share-btn-bg: var(--sprite-ui-manual) no-repeat -2px -2px;
  --share-btn-width: 199px;
  --share-btn-height: 75px;

  /* 播放/暂停按钮 */
  --play-btn-bg: var(--sprite-ui-manual) no-repeat -2px -81px;
  --play-btn-active-bg: var(--sprite-ui-manual) no-repeat -329px -2px;
  --play-btn-width: 118px;
  --play-btn-height: 118px;

  /* 速度按钮 */
  --speed-btn-bg: var(--sprite-ui-manual) no-repeat -2px -323px;
  --speed-btn-active-bg: var(--sprite-ui-manual) no-repeat -2px -203px;
  --speed-btn-width: 116px;
  --speed-btn-height: 116px;

  /* 点赞按钮 */
  --like-btn-bg: var(--sprite-ui-manual) no-repeat -124px -119px;
  --like-btn-width: 116px;
  --like-btn-height: 116px;

  /* music */
  --music-btn-bg: var(--sprite-ui-manual) no-repeat -123px -240px;
  --music-btn-active-bg: var(--sprite-ui-manual) no-repeat -123px -338px;
  --music-btn-width: 92px;
  --music-btn-height: 92px;

  /* 飘动emoji */
  --floating-like-star-5-bg: var(--sprite-ui-manual) no-repeat -205px -2px;
  --floating-like-star-5-width: 120px;
  --floating-like-star-5-height: 113px;

  --floating-like-hand-bg: var(--sprite-ui-manual) no-repeat -244px -124px;
  --floating-like-hand-width: 107px;
  --floating-like-hand-height: 94px;

  --floating-like-star-bg: var(--sprite-ui-manual) no-repeat -355px -124px;
  --floating-like-star-width: 101px;
  --floating-like-star-height: 102px;

  --floating-like-heart-bg: var(--sprite-ui-manual) no-repeat -244px -222px;
  --floating-like-heart-width: 96px;
  --floating-like-heart-height: 86px;

  --floating-like-flag-bg: var(--sprite-ui-manual) no-repeat -344px -230px;
  --floating-like-flag-width: 85px;
  --floating-like-flag-height: 91px;

  --floating-like-flower-bg: var(--sprite-ui-manual) no-repeat -285px -325px;
  --floating-like-flower-width: 77px;
  --floating-like-flower-height: 93px;

  /* 控制按钮通用样式 */
  --control-btn-gap: 35px;
  --control-btn-padding-bottom: 60px;
  --control-btn-padding-right: 50px;
  --control-btn-padding-top: 45px;

  /* 响应式缩放比例 */
  --scale-large: 0.75; /* 1280px以下 */
  --scale-medium: 0.5; /* 768px以下 */
  --scale-small: 0.35; /* 480px以下 */
}

/* 可以根据主题或环境切换sprite图片 */

/* [data-theme='dark'] {
  --sprite-ui-manual: url(../assets/ui-manual-dark.png);
} */

/* 高分辨率屏幕使用2x图片 */

/* @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
  :root {
    --sprite-ui-manual: url(../assets/ui-manual@2x.png);
  }
} */

#newsapp-share {
  color: #222;
}

/* base.css - 基础样式和全局设定 */

:root {
  font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;
  color-scheme: light dark;
  color: rgba(255, 255, 255, 0.87);
  background-color: #242424;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  /* height: 100vmax; */
  height: calc(var(--vh) * 100);
  height: 100dvh;
  overflow: hidden;
  background-color: #242424;
}

body p {
    margin: 0;
    padding: 0;
  }

@supports (-webkit-touch-callout: none) {
  body {
    min-height: -webkit-fill-available;
  }
}

/* 防止选择和拖拽 */

* {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-tap-highlight-color: transparent;
}

/* PIXI Canvas优化 */

canvas {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

/* 可见元素高亮 */

.visible {
  transition: opacity 0.3s ease;
}

[data-visible='false'] {
  opacity: 0.5;
}

/* 性能优化类 */

.gpu-accelerated {
  will-change: transform;
  transform: translateZ(0);
}

#newsapp-share .panel .items .item:last-child {
  display: none;
}

#newsapp-share .panel .copy {
  -webkit-user-select: text;
  -moz-user-select: all;
       user-select: all;
}

/* pixi-container.css - PIXI容器相关样式 */

#pixi-container {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  z-index: 100;
}

#pixi-container canvas {
  display: block;
  touch-action: none;
  -moz-user-select: none;
       user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

#pixi-container canvas:focus {
  outline: 2px solid rgba(78, 205, 196, 0.5);
  outline-offset: 2px;
}

#pixi-container canvas:focus {
  outline: 2px solid rgba(78, 205, 196, 0.5);
  outline-offset: 2px;
}

.pixi-canvas {
  position: absolute;
  top: 0;
  left: 0;
  cursor: -webkit-grab;
  cursor: grab;
}

.pixi-canvas:active {
  cursor: -webkit-grabbing;
  cursor: grabbing;
}

#dom-container.end .share-wrap,
    #dom-container.end .controls {
      display: none;
    }

/* controls.css - 控制按钮样式 */

.controls {
  position: fixed;
  bottom: 0;
  right: 0;
  padding: 0 var(--control-btn-padding-right) var(--control-btn-padding-bottom) 0;
  z-index: 999;
  display: flex;
  gap: var(--control-btn-gap);
  justify-content: flex-end;
  transform-origin: 100% 100%;
}

.share-wrap {
  position: fixed;
  top: 0;
  right: 0;
  padding: var(--control-btn-padding-top) var(--control-btn-padding-right) 0 0;
  z-index: 999;
  display: flex;
  gap: var(--control-btn-gap);
  align-items: center;
  justify-content: flex-end;
  transform-origin: 100% 0%;
}

.logo-wrap {
  position: fixed;
  top: 0;
  left: 0;
  padding: var(--control-btn-padding-top) 0 0 var(--control-btn-padding-bottom);
  z-index: 999;
  transform-origin: 0% 0%;
}

.app-logo {
  width: 100px;
  height: 94px;
  background: url(/h5/2025/parade2025/static/images/loading-logo.7tIFf_Ie.png) no-repeat center center;
  background-position: -368px 0;
}

.share-btn {
  /* background: var(--share-btn-bg); */
  width: var(--share-btn-width);
  height: var(--share-btn-height);
  position: relative;
  opacity: 0;
  content: '';
  /* position: absolute; */
  /* left: 0; */
  /* top: 0; */
  width: 199px;
  height: 75px;
  background: var(--share-btn-bg);
  transition: opacity 0.3s ease 1.5s;
}

.share-btn::after {
  }

.music-btn {
  /* width: var(--music-btn-width);
  height: var(--music-btn-height); */
  position: relative;
  /* position: absolute; */
  /* left: 0; */
  /* top: 0; */
  width: 92px;
  height: 92px;
  background: var(--music-btn-bg);
  opacity: 0;
  transition: opacity 0.3s ease 1.4s;
  /* &::after {
    content: '';
  } */
}

.control-btn {
  pointer-events: auto;
  pointer-events: all;
  transition: transform 0.3s ease;
}

.control-btn:hover {
    /* transform: translateY(-2px); */
  }

.control-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }

.control-btn-play {
  position: relative;
  width: 118px;
  height: 118px;
}

.control-btn-play::after {
    content: '';
    position: absolute;
    width: 142px;
    height: 138px;
    left: -14px;
    top: -10px;
    background: url(/h5/2025/parade2025/static/images/btn-play.CLRQXJAv.png) no-repeat;
    background-position: 0 0;
  }

.control-btn-speed {
  position: relative;
  width: 116px;
  height: 116px;
}

.control-btn-speed::after {
    content: '';
    position: absolute;
    width: 142px;
    height: 138px;
    left: -14px;
    top: -10px;
    background: url(/h5/2025/parade2025/static/images/btn-speed.Ek1roHtx.png) no-repeat;
    background-position: 0 0;
  }

.control-btn-rotation {
  width: 116px;
  height: 116px;
  background: #00293c;
  border-radius: 50%;
  color: #82e0ff;
  font-size: 48px;
  border: 2px solid #82e0ff;
}

.control-btn-like {
  width: var(--like-btn-width);
  height: var(--like-btn-height);
  position: relative;
}

.control-btn-like::after {
    content: '';
    position: absolute;
    width: 142px;
    height: 138px;
    left: -14px;
    top: -10px;
    background: url(/h5/2025/parade2025/static/images/btn-like.CbyZAMAg.png) no-repeat;
    background-position: 0 0;
  }

.control-btn-like::before {
    content: '';
    position: absolute;
    z-index: 10;
    width: 142px;
    height: 138px;
    left: -14px;
    top: -10px;
    background: url(/h5/2025/parade2025/static/images/like-btn-loop2.C8O51i63.png) no-repeat;
    opacity: 0;
  }

.controls.animate .control-btn-play::after {
    animation: btn-play-in 1.25s steps(1) 0.6s 1 forwards;
  }

.controls.animate .control-btn-speed::after {
    animation: btn-speed-in 1.25s steps(1) 0.8s 1 forwards;
  }

.controls.animate .control-btn-like::after {
    animation: btn-like-in 1.25s steps(1) 1s 1 forwards;
  }

.share-wrap.animate .share-btn {
    /* animation: btn-share-in 0.3s linear 0.6s 1 forwards; */
    opacity: 1;
  }

.share-wrap.animate .music-btn {
    /* animation: btn-music-in 0.9s linear 0.6s 1 forwards; */
    opacity: 1;
  }

.music-wrap.animate {
}

.controls.animated .control-btn-play::after {
      /* animation: none;
      left: 0;
      top: 0;
      width: 118px;
      height: 118px;
      background: var(--play-btn-bg); */
      left: -14px;
      top: -10px;
      background-position: -426px -276px;
    }

.controls.animated .control-btn-play.active::after {
      background-position: -426px -138px;
      /* background: var(--play-btn-active-bg); */
    }

.controls.animated .control-btn-speed::after {
      /* animation: none;
      left: 0;
      top: 0;
      width: 116px;
      height: 116px;
      background: var(--speed-btn-bg); */
      /* left: -14px;
      top: -10px;
      background: url(../assets/btn-speed.png) no-repeat; */
      background-position: -426px -138px;
    }

.controls.animated .control-btn-speed.active::after {
      background-position: -427px -269px;
    }

.controls.animated .control-btn-like::after {
      /* animation: none; */
      display: none;
      content: none;
    }

.controls.animated .control-btn-like::before {
      /* left: 26px;
      top: 20px;
      background: var(--like-btn-bg);
      background-position: -220px -310px;
      width: 66px;
      height: 62px;
      transform-origin: 18px 49px;
      animation: btn-like-loop 2s ease infinite; */
      opacity: 1;
      animation: btn-like-loop 2s steps(1) 1.5s infinite forwards;
    }

.controls.animated .control-btn-like.active {
      /* &::after {
      width: 144px;
      height: 144px;
      left: -14px;
      top: -14px;
      background: url(../assets/like-btn.png) no-repeat;
    } */
    }

/* @keyframes btn-like-loop {
  0%,
  65%,
  100% {
    transform: rotate(0deg);
  }
  20% {
    transform: rotate(12deg);
  }
  35% {
    transform: rotate(-18deg);
  }
  55% {
    transform: rotate(5deg);
  }
} */

@keyframes btn-like-loop {
  0% {
    background-position: -0px -0px;
  }
  4.35% {
    background-position: -0px -138px;
  }
  8.7% {
    background-position: -142px -0px;
  }
  13.04% {
    background-position: -142px -138px;
  }
  17.39% {
    background-position: -0px -276px;
  }
  21.74% {
    background-position: -142px -276px;
  }
  26.09% {
    background-position: -284px -0px;
  }
  30.43% {
    background-position: -284px -138px;
  }
  34.78% {
    background-position: -284px -276px;
  }
  39.13% {
    background-position: -0px -414px;
  }
  43.48% {
    background-position: -142px -414px;
  }
  47.83% {
    background-position: -284px -414px;
  }
  52.17% {
    background-position: -426px -0px;
  }
  56.52% {
    background-position: -426px -138px;
  }
  60.87% {
    background-position: -426px -276px;
  }
  65.22% {
    background-position: -426px -414px;
  }
  69.57% {
    background-position: -0px -552px;
  }
  73.91% {
    background-position: -142px -552px;
  }
  78.26% {
    background-position: -284px -552px;
  }
  82.61% {
    background-position: -426px -552px;
  }
  86.96% {
    background-position: -568px -0px;
  }
  91.3% {
    background-position: -568px -138px;
  }
  95.65% {
    background-position: -568px -276px;
  }
  100% {
    background-position: -568px -414px;
  }
}

.share-wrap.animated .share-btn {
    opacity: 1;
  }

.share-wrap.animated .music-btn {
    opacity: 1;
  }

.share-wrap.animated .music-btn::after {
    }

.share-wrap.animated .music-btn.active {
      background: var(--music-btn-active-bg);
    }

.music-wrap.animated {
}

.performance-degraded-animation .controls.animate {
    /* .control-btn-play::after {
      animation: none;
    }
    .control-btn-speed::after {
      animation: none;
    }
    .control-btn-like::after {
      animation: none;
    } */
  }

.performance-degraded-animation .controls.animated .control-btn-like::after {
    /* background-image: url(../assets/like-btn.png); */

    /* background: url(../assets/like-btn-loop.png) no-repeat; */
    animation: none;
    background: url(/h5/2025/parade2025/static/images/like-btn-loop2.C8O51i63.png) no-repeat;
  }

@keyframes btn-play-in {
  0% {
    background-position: -0px -0px;
  }
  7.14% {
    background-position: -0px -138px;
  }
  14.29% {
    background-position: -142px -0px;
  }
  21.43% {
    background-position: -142px -138px;
  }
  28.57% {
    background-position: -0px -276px;
  }
  35.71% {
    background-position: -142px -276px;
  }
  42.86% {
    background-position: -284px -0px;
  }
  50% {
    background-position: -284px -138px;
  }
  57.14% {
    background-position: -284px -276px;
  }
  64.29% {
    background-position: -0px -414px;
  }
  71.43% {
    background-position: -142px -414px;
  }
  78.57% {
    background-position: -284px -414px;
  }
  85.71% {
    background-position: -426px -0px;
  }
  92.86% {
    background-position: -426px -138px;
  }
  100% {
    background-position: -426px -138px;
  }
  /* 0%,
  99% {
    width: 144px;
    height: 144px;
    left: -14px;
    top: -14px;
    background: url(../assets/play-btn.png) no-repeat;
  }
  100% {
    left: 0;
    top: 0;
    width: 118px;
    height: 118px;
    background: var(--play-btn-active-bg);
  } */
}

@keyframes btn-like-in {
  0% {
    background-position: -0px -0px;
  }
  7.14% {
    background-position: -0px -138px;
  }
  14.29% {
    background-position: -142px -0px;
  }
  21.43% {
    background-position: -142px -138px;
  }
  28.57% {
    background-position: -0px -276px;
  }
  35.71% {
    background-position: -142px -276px;
  }
  42.86% {
    background-position: -284px -0px;
  }
  50% {
    background-position: -284px -138px;
  }
  57.14% {
    background-position: -284px -276px;
  }
  64.29% {
    background-position: -0px -414px;
  }
  71.43% {
    background-position: -142px -414px;
  }
  78.57% {
    background-position: -284px -414px;
  }
  85.71% {
    background-position: -426px -0px;
  }
  92.86% {
    background-position: -426px -138px;
  }
  100% {
    background-position: -426px -276px;
  }
  /* 0%,
  99% {
    width: 144px;
    height: 144px;
    left: -10px;
    top: -10px;
    background: url(../assets/like-btn.png) no-repeat;
  }
  100% {
    width: 144px;
    height: 144px;
    left: -10px;
    top: -10px;
    background: url(../assets/like-btn.png) no-repeat;
  } */
}

@keyframes btn-speed-in {
  0% {
    background-position: -0px -0px;
  }
  7.14% {
    background-position: -0px -138px;
  }
  14.29% {
    background-position: -142px -0px;
  }
  21.43% {
    background-position: -142px -138px;
  }
  28.57% {
    background-position: -0px -276px;
  }
  35.71% {
    background-position: -142px -276px;
  }
  42.86% {
    background-position: -284px -0px;
  }
  50% {
    background-position: -284px -138px;
  }
  57.14% {
    background-position: -284px -276px;
  }
  64.29% {
    background-position: -0px -414px;
  }
  71.43% {
    background-position: -142px -414px;
  }
  78.57% {
    background-position: -284px -414px;
  }
  85.71% {
    background-position: -426px -0px;
  }
  92.86% {
    background-position: -426px -138px;
  }
  100% {
    background-position: -426px -138px;
  }
  /* 0%,
  99% {
    width: 144px;
    height: 144px;
    left: -14px;
    top: -14px;
    background: url(../assets/speed-btn.png) no-repeat;
  }
  100% {
    left: 0;
    top: 0;
    width: 116px;
    height: 116px;
    background: var(--speed-btn-bg);
  } */
}

@keyframes btn-share-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
  /* 100% {
    left: 0;
    top: 0;
    width: 199px;
    height: 75px;
    background: var(--share-btn-bg);
  } */
}

@keyframes btn-music-in {
  0%,
  99%,
  100% {
    width: 114px;
    height: 114px;
    left: -11px;
    top: -11px;
    background: url(/h5/2025/parade2025/static/images/music-btn.CF-5Yphp.png) no-repeat;
  }
  /* 100% {
    left: 0;
    top: 0;
    width: 92px;
    height: 92px;
    background: var(--music-btn-bg);
  } */
}

#bgm {
  display: none;
}

/* 投票数显示样式 */

#vote-count {
  position: absolute;
  bottom: 124px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 30px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1001;
  text-shadow:
    -8px -8px 8px #4f4d53,
    -8px 0 8px #4f4d53,
    -8px 8px 8px #4f4d53,
    0 -8px 8px #4f4d53,
    0 8px 8px #4f4d53,
    8px -8px 8px #4f4d53,
    8px 0 8px #4f4d53,
    8px 8px 8px #4f4d53;
  color: #fff;
  text-align: center;
  white-space: nowrap;
}

#vote-count i {
    position: relative;
    font-style: normal;
    font-size: 36px;
    color: #ffda62;
  }

#vote-count.active {
    opacity: 1;
    transition: opacity 0.01s ease;
  }

/* 飘动emoji样式 */

.floating-emoji {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%) scale(var(--random-scale)) rotate(var(--random-rotation));
  pointer-events: none;
  z-index: 1000;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  animation:
    floatingMove 0.5s ease-out forwards,
    floatingSwing 0.5s ease-out forwards,
    floatingFade 0.5s ease-out forwards;
}

@keyframes floatingMove {
  0% {
    transform: translate(-50%, -50%) scale(var(--random-scale)) rotate(var(--random-rotation));
  }
  100% {
    transform: translate(calc(-50% + var(--random-phase)), calc(-50% - var(--move-distance)))
      scale(var(--random-scale)) rotate(var(--random-rotation));
  }
}

@keyframes floatingSwing {
  0% {
    transform: translate(calc(-50% + 0px), calc(-50% + 0px)) scale(var(--random-scale))
      rotate(var(--random-rotation));
  }
  25% {
    transform: translate(calc(-50% + 10px), calc(-50% - calc(var(--move-distance) * 0.4)))
      scale(var(--random-scale)) rotate(var(--random-rotation));
  }
  /* 75% {
    transform: translate(calc(-50% - 10px), calc(-50% - calc(var(--move-distance) * 0.75)))
      scale(var(--random-scale)) rotate(var(--random-rotation));
  } */
  100% {
    transform: translate(calc(-50% + var(--random-phase)), calc(-50% - var(--move-distance)))
      scale(var(--random-scale)) rotate(var(--random-rotation));
  }
}

@keyframes floatingFade {
  0%,
  60% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.floating-like-star-5 {
  background: var(--floating-like-star-5-bg);
  width: var(--floating-like-star-5-width);
  height: var(--floating-like-star-5-height);
}

.floating-like-hand {
  background: var(--floating-like-hand-bg);
  width: var(--floating-like-hand-width);
  height: var(--floating-like-hand-height);
}

.floating-like-star {
  background: var(--floating-like-star-bg);
  width: var(--floating-like-star-width);
  height: var(--floating-like-star-height);
}

.floating-like-heart {
  background: var(--floating-like-heart-bg);
  width: var(--floating-like-heart-width);
  height: var(--floating-like-heart-height);
}

.floating-like-flag {
  background: var(--floating-like-flag-bg);
  width: var(--floating-like-flag-width);
  height: var(--floating-like-flag-height);
}

.floating-like-flower {
  background: var(--floating-like-flower-bg);
  width: var(--floating-like-flower-width);
  height: var(--floating-like-flower-height);
}

.speed-tips {
  display: none;
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.speed-tips.active {
    display: block;
  }

.speed-tips::before,
  .speed-tips::after {
    content: '';
    position: absolute;
    background: url(/h5/2025/parade2025/static/images/click-tips.gUxDygsx.png) no-repeat;
  }

.speed-tips::before {
    left: 50%;
    top: -150px;
    width: 120px;
    height: 80px;
    background-position: -120px 0;
    transform: translateX(-30%);
  }

.speed-tips::after {
    left: 50%;
    top: -100px;
    width: 110px;
    height: 105px;
    background-position: -120px -80px;
    transform: translateX(-30%);
    animation: speed-tips 1s ease-in-out infinite;
  }

@keyframes speed-tips {
  0%,
  100% {
    transform: translate(-30%, 0);
  }
  50% {
    transform: translate(-35%, 10px);
  }
}

/* canvas 交互提示 */

.canvas-tips {
  position: absolute;
  left: 50%;
  top: 60%;
  width: 30%;
  height: 30%;
  background: url(/h5/2025/parade2025/static/images/canvas-tips.vvXzRdaH.png) no-repeat center center / contain;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.canvas-tips.active {
    opacity: 1;
  }

/* 移动端控制按钮优化 */

@media (max-width: 1280px), ((max-height: 1280px) and (orientation: landscape)) {
  .controls,
  .share-wrap,
  .logo-wrap {
    transform: scale(var(--scale-large));
  }
}

@media (max-width: 768px), ((max-height: 768px) and (orientation: landscape)) {
  .controls,
  .share-wrap,
  .logo-wrap {
    transform: scale(var(--scale-medium));
  }
}

@media (max-width: 480px), ((max-height: 480px) and (orientation: landscape)) {
  .controls,
  .share-wrap,
  .logo-wrap {
    transform: scale(var(--scale-small));
  }
}

@media (orientation: landscape) {
  .controls,
  .share-wrap,
  .logo-wrap {
    transform: scale(var(--scale-small));
  }
}

.show-pc-border .logo-wrap {
    display: none;
    padding: 320px 0 0 100px;
    transform: scale(0.5);
  }

.show-pc-border .share-wrap {
    padding: 140px 50px 0 0;
    transform: scale(0.5);
  }

.show-pc-border .controls {
    padding: 0 50px 100px;
    transform: scale(0.4);
  }

.show-pc-border #vote-count {
    /* transform: translateX(-70%); */
    text-shadow: none;
  }

.show-pc-border #vote-count i {
      display: inline;
      padding: 0 4px;
    }

/* performance-panel.css - 性能面板样式 */

#performance-panel {
  position: fixed;
  top: 10px;
  left: 10px;
  width: 200px;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  border-radius: 8px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  z-index: 10000;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px 8px 0 0;
  font-weight: bold;
}

.panel-header .toggle-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.panel-header .toggle-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.panel-content {
  padding: 8px;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  padding: 4px 0;
}

.stat-item .label {
  color: #ccc;
  flex: 1;
}

.stat-item .value {
  font-weight: bold;
  color: #4caf50;
  min-width: 60px;
  text-align: right;
}

.fps-graph {
  width: 120px;
  height: 30px;
  margin-top: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.fps-graph svg {
  width: 100%;
  height: 100%;
}

.panel-content {
  padding: 8px;
}

.panel-content.hidden {
  display: none;
}

/* 性能降级样式 */

/* 第一级降级：减少动画效果 */

body.performance-degraded-animation {
  /* 禁用不必要的过渡动画 */
}

body.performance-degraded-animation * {
  /* animation-duration: 0.1s !important;
  transition-duration: 0.1s !important; */
}

body.performance-degraded-animation .loading-icon-plus {
  animation: none !important;
}

body.performance-degraded-animation .cover-plane {
  animation: none !important;
  transform: translateX(0) !important;
}

body.performance-degraded-animation .controls.animate .control-btn {
  /* animation-duration: 0.2s !important; */
}

body.performance-degraded-animation .share-wrap.animate .control-btn {
  animation-duration: 0.2s !important;
}

/* 减少视觉特效 */

body.performance-degraded-animation {
  --shadow-intensity: 0;
  --blur-intensity: 0;
}

body.performance-degraded-animation .modal-loading img {
  animation: none !important;
}

/* 第二级降级：PIXI 降级，显示 DOM 版本 */

body.performance-degraded-pixi {
  /* PIXI 容器隐藏 */
  height: auto;
  overflow: unset;
}

body.performance-degraded-pixi #pixi-container {
  display: none !important;
}

body.performance-degraded-pixi #longimg {
  display: block;
  width: 100vw;
  height: 100vh;
  overflow-y: auto;
  position: relative;
  /* top: 0;
  left: 0; */
  z-index: 150;
  background: #aee3ff;
  pointer-events: all;
}

.longimg-share-btn {
  position: fixed;
  right: 10px;
  bottom: 10px;
  width: 100px;
  height: 39px;
  background: url(/h5/2025/parade2025/static/images/ui-manual.CErMTOjq.png) no-repeat 0 0;
  /* background-size: 458px 441px; */
  background-size: 229px 220px;
  transform: rotate(90deg);
  transform-origin: 100% 0;
}

body.performance-degraded-pixi #longimg .img {
  width: 100%;
  height: auto;
  margin-top: -0.5px;
}

body.performance-degraded-pixi #longimg img {
  width: 100%;
  height: auto;
  display: block;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  -webkit-user-drag: none;
}

/* DOM 版本的基础样式 */

body.performance-degraded-pixi #longimg {
  cursor: pointer;
}

body.performance-degraded-pixi #longimg:active {
  cursor: -webkit-grabbing;
  cursor: grabbing;
}

/* 隐藏不适用于 DOM 版本的控件 */

body.performance-degraded-pixi #controls,
body.performance-degraded-pixi .progress-container {
  display: none !important;
}

/* 保留基础的分享和音乐控件 */

body.performance-degraded-pixi .share-wrap {
  display: flex !important;
  z-index: 100;
}

body.performance-degraded-pixi .logo-wrap {
  z-index: 100;
}

/* DOM模式专用样式 */

body.dom-mode {
  /* DOM模式下的特殊处理 */
}

/* DOM模式下的封面页样式调整 */

body.dom-mode #cover-page {
  /* 确保封面页在DOM模式下也能正常显示 */
}

/* DOM模式下的加载页面 */

body.dom-mode #loading-overlay {
  /* DOM模式的加载样式可以保持一致 */
}

/* 兼容性模式的滚动提示 */

.dom-mode-scroll-hint {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border-radius: 20px;
  font-size: 14px;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.dom-mode-scroll-hint.show {
  opacity: 1;
}

/* 确保DOM模式下的长图在不同设备上的适配 */

@media (max-width: 768px) {
  body.performance-degraded-pixi #longimg {
    /* 移动端优化 */
    -webkit-overflow-scrolling: touch;
  }
}

/* DOM模式下隐藏性能面板相关控件 */

body.dom-mode .performance-panel {
  display: none !important;
}

/* 性能降级提示 */

.performance-degradation-notice {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  border-radius: 20px;
  font-size: 14px;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.performance-degradation-notice.show {
  opacity: 1;
}

.performance-degradation-notice.animation-degraded {
  background: rgba(255, 165, 0, 0.9);
  color: black;
}

.performance-degradation-notice.pixi-degraded {
  background: rgba(255, 0, 0, 0.9);
  color: white;
}

/* loading.css - 资源加载屏幕样式 */

#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, #011620 0%, #00090d 50%, #011620 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 20000;
  transition: opacity 0.5s ease;
  pointer-events: auto;
}

#loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-content {
  text-align: center;
  color: white;
}

.loading-content .loading-img {
    max-width: min(631px, 33vmax, 50vmin);
    max-height: min(626px, 33vmax, 50vmin);
    -o-object-fit: contain;
       object-fit: contain;

    aspect-ratio: 631/626;
    width: 33vmax;
    /* height: 58vmin; */
  }

.loading-content .loading-logo {
    display: block;
    margin: 0 auto;
    max-width: min(170px, 9vmax);
    max-height: min(170px, 15.74vmin);
    -o-object-fit: contain;
       object-fit: contain;

    width: 9vmax;
  }

.loading-content .loading-arr {
    display: block;
    margin: 0 auto;
    max-width: min(832px, 44vmax);
    max-height: min(832px, 10vmin);
    -o-object-fit: contain;
       object-fit: contain;

    margin-bottom: 2.5vmin;
    width: 44vmax;
  }

.loading-info {
  /* position: absolute; */
  /* left: 0; */
  /* bottom: 16%; */
  margin-top: -10%;
  width: 100%;
  text-align: center;
  font-family: 'Rajdhani', 'Impact', 'Arial Black', Arial, sans-serif;
  font-size: calc(16px + (40 - 16) * ((100vw - 320px) / (1920 - 320)));
}

#loading-percent {
  line-height: 1.3;
  margin-bottom: 0.2em;
  font-size: calc(16px + (40 - 16) * ((100vw - 320px) / (1920 - 320)));
}

#loading-text {
  line-height: 1.3;
  font-size: calc(14px + (40 - 14) * ((100vw - 320px) / (1920 - 320)));
  color: #57dfff;
}

#loading-text p {
    width: 100%;
  }

#loading-text p#loading-name {
    font-size: calc(16px + (40 - 16) * ((100vw - 320px) / (1920 - 320)));
  }

.loading-icon-plus {
  position: absolute;
}

.loading-icon-plus::after,
  .loading-icon-plus::before {
    content: '';
    position: absolute;
    background-color: #0ac7de;
  }

.loading-icon-plus::after {
    width: 13px;
    height: 1px;
    left: -6px;
    top: 0;
  }

.loading-icon-plus::before {
    width: 1px;
    height: 13px;
    left: 0;
    top: -6px;
  }

.loading-icon-plus:nth-of-type(1) {
    left: 4%;
    top: 20%;
  }

.loading-icon-plus:nth-of-type(2) {
    left: 4%;
    bottom: 20%;
  }

.loading-icon-plus:nth-of-type(3) {
    right: 4%;
    top: 20%;
  }

.loading-icon-plus:nth-of-type(4) {
    right: 4%;
    bottom: 20%;
  }

.loading-bar-container {
  width: 300px;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  overflow: hidden;
}

#loading-bar {
  width: 0%;
  height: 100%;
  background-color: #4ecdc4;
  border-radius: 4px;
  transition: width 0.2s ease;
}

/* 移动端加载屏幕优化 */

@media (max-width: 768px) {
  #loading-percent,
  #loading-text {
    font-size: 13px;
  }
    #loading-percent #loading-name, #loading-text #loading-name {
      font-size: 16px;
    }

  .loading-bar-container {
    width: 250px;
  }

  .loading-info {
    bottom: 12%;
  }
}

@media (max-width: 480px), ((max-height: 480px) and (orientation: landscape)) {
  #loading-percent,
  #loading-text {
    font-size: 12px;
  }
    #loading-percent #loading-name, #loading-text #loading-name {
      font-size: 14px;
    }

  .loading-bar-container {
    width: 200px;
  }

  .loading-info {
    bottom: 10%;
  }
}

/* cover */

.cover-page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url(/h5/2025/parade2025/static/images/cover-bg.QKhTqsbA.jpg) no-repeat center center / cover;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 19999;
  transition: opacity 0.5s ease;
  pointer-events: auto;
}

.cover-page.active .cover-content img {
        transform: scale(1.02);
      }

.cover-page.hidden {
    display: none;
  }

/* 开始0秒95%的缩放，到7.3秒102%的缩放 */

.cover-content {
  text-align: center;
  color: white;
}

.cover-content img {
    max-width: min(1920px, 100vmax);
    max-height: min(1080px, 100vmin);
    -o-object-fit: contain;
       object-fit: contain;

    aspect-ratio: 1920/1080;
    width: 100vmax;
    transform: scale(0.95);
    transition: transform 8s linear;
    /* height: 58vmin; */
  }

.cover-content.hidden {
    display: none;
  }

.cover-plane-mask {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.cover-plane-mask .cover-plane {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
  }

/* progress-bar.css - 进度条样式 */

.progress-container {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background-color: rgba(255, 255, 255, 0.2);
  z-index: 999;
}

.progress-container-green .progress-bar {
  background: #8fff80;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background-color: #4ecdc4;
  transition: width 0.1s linear;
}

/* help-system.css - 帮助系统样式 (支持页面旋转) */

/* 为帮助系统容器设置容器查询上下文 */

#dom-container {
  container-type: inline-size;
  container-name: dom-container;
}

.help-hints {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 12px;
  z-index: 10000;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  transition: opacity 0.3s ease;
  max-width: calc(100% - 40px);
  text-align: center;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.3s;
}

.help-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  padding: 20px;
  box-sizing: border-box;
  display: none;
}

.help-content {
  background: white;
  color: black;
  padding: 30px;
  border-radius: 12px;
  max-width: 500px;
  width: 100%;
  max-height: 80%;
  overflow-y: auto;
  font-family: Arial, sans-serif;
  box-sizing: border-box;
}

.help-content h3 {
  margin-top: 0;
  color: #333;
  font-size: 1.5em;
}

.help-content ul {
  padding-left: 20px;
}

.help-content li {
  margin-bottom: 8px;
}

.help-content p {
  line-height: 1.6;
  margin-bottom: 16px;
}

.help-close-btn {
  padding: 8px 20px;
  background: #4ecdc4;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s ease;
}

.help-close-btn:hover {
  background: #3a9a92;
}

/* 基于容器宽度的响应式设计 - 适应旋转 */

/* 当DOM容器宽度 ≤ 768px 时（相当于移动端或旋转后的平板） */

@container dom-container (max-width: 768px) {
  .help-hints {
    bottom: 10px;
    padding: 8px 16px;
    font-size: 11px;
    max-width: calc(100% - 20px);
  }

  .help-content {
    padding: 20px;
    max-height: 85%;
    margin: 10px;
    max-width: calc(100% - 20px);
  }

  .help-content h3 {
    font-size: 1.3em;
  }

  .help-content ul {
    padding-left: 16px;
  }

  .help-content li {
    margin-bottom: 6px;
    font-size: 14px;
  }

  .help-content p {
    font-size: 14px;
    margin-bottom: 14px;
  }

  .help-close-btn {
    padding: 10px 24px;
    font-size: 16px;
  }
}

/* 当DOM容器宽度 ≤ 480px 时（小屏幕设备或旋转后的手机） */

@container dom-container (max-width: 480px) {
  .help-hints {
    font-size: 10px;
    padding: 6px 12px;
    max-width: calc(100% - 16px);
    bottom: 8px;
  }

  .help-content {
    padding: 16px;
    margin: 5px;
    max-width: calc(100% - 10px);
  }

  .help-content h3 {
    font-size: 1.2em;
  }

  .help-content ul {
    padding-left: 14px;
  }

  .help-content li {
    font-size: 13px;
    line-height: 1.4;
  }

  .help-content p {
    font-size: 13px;
    margin-bottom: 12px;
  }
}

/* 当DOM容器宽度 ≤ 360px 时（超小屏幕） */

@container dom-container (max-width: 360px) {
  .help-hints {
    font-size: 9px;
    padding: 5px 10px;
    border-radius: 6px;
  }

  .help-content {
    padding: 12px;
    margin: 3px;
    border-radius: 8px;
  }

  .help-content h3 {
    font-size: 1.1em;
    margin-bottom: 12px;
  }

  .help-content ul {
    padding-left: 12px;
  }

  .help-content li {
    font-size: 12px;
    margin-bottom: 4px;
  }

  .help-content p {
    font-size: 12px;
    margin-bottom: 10px;
  }

  .help-close-btn {
    padding: 8px 16px;
    font-size: 14px;
  }
}

/* 兜底方案：如果浏览器不支持容器查询，使用传统媒体查询 */

@supports not (container-type: inline-size) {
  /* 旋转状态下的特殊处理 */
  .page-rotated .help-hints {
    /* 在旋转状态下，相对于旋转后的尺寸调整 */
    max-width: calc(100% - 40px);
  }

  .page-rotated .help-content {
    max-width: calc(100% - 40px);
  }

  /* 传统媒体查询兜底 */
  @media (max-width: 768px) {
    .help-hints {
      bottom: 10px;
      padding: 8px 16px;
      font-size: 11px;
      max-width: calc(100% - 20px);
    }

    .help-content {
      padding: 20px;
      max-height: 85%;
      margin: 10px;
    }

    .help-content h3 {
      font-size: 1.3em;
    }

    .help-content ul {
      padding-left: 16px;
    }

    .help-content li {
      margin-bottom: 6px;
      font-size: 14px;
    }

    .help-content p {
      font-size: 14px;
      margin-bottom: 14px;
    }

    .help-close-btn {
      padding: 10px 24px;
      font-size: 16px;
    }
  }

  @media (max-width: 480px), ((max-height: 480px) and (orientation: landscape)) {
    .help-hints {
      font-size: 10px;
      padding: 6px 12px;
      max-width: calc(100% - 16px);
    }

    .help-content {
      padding: 16px;
      margin: 5px;
    }

    .help-content h3 {
      font-size: 1.2em;
    }

    .help-content ul {
      padding-left: 14px;
    }

    .help-content li {
      font-size: 13px;
      line-height: 1.4;
    }

    .help-content p {
      font-size: 13px;
      margin-bottom: 12px;
    }
  }

  /* 旋转状态下的额外调整 */
  .page-rotated .help-hints {
    max-width: calc(100% - 20px);
  }

  .page-rotated .help-content {
    max-width: calc(100% - 40px);
  }
}

/* rotation.css - 页面旋转样式 (新方案) */

/* DOM 容器的基础样式 */

#dom-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: calc(var(--vh) * 100);
  height: 100dvh;
  z-index: 150; /* 确保 DOM 元素在 PIXI 之上 */
  pointer-events: none; /* 默认不拦截鼠标事件，让 PIXI 接收交互 */
}

/* 让需要交互的元素可以接收事件 */

#dom-container .controls,
#dom-container .help-overlay,
#dom-container #performance-panel,
#dom-container #help-modal,
#dom-container .modal {
  pointer-events: auto;
}

/* PIXI 容器的基础样式 */

#pixi-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  /* height: 100vmax; */
  height: calc(var(--vh) * 100);
  height: 100dvh;
  z-index: 100; /* PIXI 在背景层 */
}

/* 旋转按钮特殊样式 */

.rotation-btn {
  font-size: 16px !important;
  padding: 8px 12px !important;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 旋转状态下的 DOM 容器样式 */

.page-rotated #dom-container {
  transform-origin: center center;
  transform: rotate(90deg);
  width: 100vh;
  /* width: 100vmax; */
  width: calc(var(--vh) * 100);
  width: 100dvh;
  height: 100vw;
  top: 50%;
  left: 50%;
  margin-top: -50vw;
  margin-left: -50vh;
  margin-left: calc(var(--vh) * -50);
  /* margin-left: -50vmax; */
  margin-left: -50dvh;
}

/* 旋转状态下的 PIXI 容器保持不变（通过内部旋转处理） */

.page-rotated #pixi-container {
  /* PIXI 容器本身不旋转，通过内部场景旋转 */
  width: 100vw;
  height: 100vh;
  /* height: 100vmax; */
  height: calc(var(--vh) * 100);
  height: 100dvh;
}

/* 平滑过渡效果 */

#dom-container {
  transition: transform 0.1s ease-in-out;
}

/* 防止旋转过程中的闪烁 */

#dom-container {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
}

/* 移动端优化 */

@media (max-width: 768px) {
  .rotation-btn {
    padding: 6px 10px !important;
    font-size: 14px !important;
    min-width: 36px;
  }
}

/* 横屏时隐藏旋转按钮 */

@media (orientation: landscape) {
  .rotation-btn {
    display: none !important;
  }
}

/* 针对不同设备的媒体查询 */

@media screen and (max-width: 768px) and (orientation: portrait) {
  .rotation-btn {
    display: block !important;
  }
}

/* iOS Safari 特殊处理 */

@supports (-webkit-touch-callout: none) {
  .page-rotated #dom-container {
    -webkit-transform: rotate(90deg);
    -webkit-transform-origin: center center;
  }
}

/* 防止iOS缩放 */

#dom-container {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
       text-size-adjust: 100%;
}

/* 确保在旋转状态下页面元素不会超出边界 */

#dom-container * {
  box-sizing: border-box;
}

/* 旋转状态下的加载界面调整 */

.page-rotated #loading-overlay {
  /* 由于父容器已旋转，子元素的尺寸概念也相应变化 */
  width: 100%;
  height: 100%;
}

/* 旋转状态下的帮助系统调整 */

.page-rotated .help-overlay {
  width: 100%;
  height: 100%;
}

/* 旋转状态下的性能面板调整 */

.page-rotated .performance-panel {
  /* 宽度需要适应旋转后的空间 */
  max-width: calc(100% - 40px);
}

.pc-border {
  display: none;
}

.show-pc-border .pc-border {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  display: block;
}

.show-pc-border .pc-border .pc-border-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 187px;
    background: url(/h5/2025/parade2025/static/images/pc-border-top.Cl24cMV2.png) no-repeat left center / cover;
  }

.show-pc-border .pc-border .pc-border-btm {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 134px;
    background: url(/h5/2025/parade2025/static/images/pc-border-btm.DYlBEffC.png) no-repeat center center / cover;
  }

/* modal.css - 模态框样式 */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  /* transition:
    opacity 0.3s ease,
    visibility 0.3s ease; */
  pointer-events: auto;
}

.modal-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

/* transform: scale(1, 0);
  transition: all 0.3s ease-in;
  transform-origin: center center; */

.modal-wrap.active {
    /* transform: scale(1, 1); */
  }

.modal-loading {
  /* background: url(../assets/modal-loading-anim.png) no-repeat center center / contain; */
  max-width: min(1744px, 90%);
  max-height: min(872px, 90%);
  min-width: 600px;
  min-height: 300px;
  height: 90%;
  aspect-ratio: 2/1;
  position: absolute;
  overflow: hidden;
  left: 0.4%;
  top: 0.6%;
  pointer-events: none;
  transition: 0.1s linear;
  max-width: min(1744px, 90%);
  max-height: min(872px, 90%);
  height: 90%;
  color: #82e0ff;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.modal-loading img {
    width: 100%;
    height: 100%;
    -o-object-fit: contain;
       object-fit: contain;
  }

.modal-content {
  background: url(/h5/2025/parade2025/static/images/modal-video-bg.suKBOsbY.png) no-repeat center center / contain;
  max-width: min(1744px, 90%);
  max-height: min(872px, 90%);
  min-width: 600px;
  min-height: 300px;
  /* width: 90%; */
  height: 90%;
  aspect-ratio: 2/1;
  position: relative;
  color: #82e0ff;
}

.modal-content.modal-carousel {
  background-image: url(/h5/2025/parade2025/static/images/modal-photo-bg.rV3P0GEf.png);
}

.modal-close {
  position: absolute;
  top: 0%;
  right: 0%;
  cursor: pointer;
  z-index: 1;
  width: 25%;
  height: 20%;
  pointer-events: auto;
}

.modal-share {
  position: absolute;
  top: 83%;
  right: 5.8%;
  width: 11.2385%;
  height: 8.4862%;
  background: url(/h5/2025/parade2025/static/images/btn-share.CEIUHnh3.png) no-repeat center center / contain;
  cursor: pointer;
  pointer-events: auto;
  transition: 0.3s ease;
}

.modal-carousel .modal-share {
  right: 4.8%;
  top: 84.4%;
}

.modal-share::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url(/h5/2025/parade2025/static/images/btn-sharing.Ledjbtiz.png) no-repeat center center / contain;
  opacity: 0;
}

.modal-share::after {
  content: '';
  position: absolute;
  left: 74.37%;
  top: 26.087%;
  background: url(/h5/2025/parade2025/static/images/btn-share-arr.A8IR7BV2.png) no-repeat center center / contain;
  width: 16.08%;
  height: 0;
  padding-bottom: 16.08%;
  transform-origin: 1.25% 100%;
  animation: modal-share-arr 1s ease infinite;
}

@keyframes modal-share-arr {
  0%,
  100% {
    transform: rotate(-5deg);
  }
  50% {
    transform: rotate(9deg);
  }
}

.modal-share.modal-sharing::before {
  opacity: 1;
}

.modal-share.modal-sharing::after {
  opacity: 0;
}

.modal-body {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: auto;
  /* aspect-ratio: 2/1; */
  height: 0;
  padding-bottom: 50%;
  transform: translateY(-50%);
}

.modal-actions {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  /* height: auto; */
  /* aspect-ratio: 2/1; */
  height: 0;
  padding-bottom: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.modal video {
  position: absolute;
  left: 5.85%;
  top: 19.4%;
  width: 54.5%;
  height: auto;
  aspect-ratio: 16/9;
  outline: none;
  -o-object-fit: contain;
     object-fit: contain;
  background-color: #000;
}

.modal h2 {
  margin-top: 0;
  color: #333;
  font-family: Arial, sans-serif;
  text-align: center;
}

.weapon-category {
  position: absolute;
  top: 18%;
  left: 64%;
  width: 180px;
  height: 11%;
  display: flex;
  align-items: center;
  justify-content: start;
  font-size: calc(12px + (40 - 12) * ((100vw - 320px) / (1920 - 320)));
  line-height: 1;
  text-align: left;
}

.modal-carousel .weapon-category {
  top: 16%;
  left: 71.3%;
}

.weapon-system {
  position: absolute;
  top: 18%;
  right: 5.5%;
  width: 20%;
  height: 11%;
  display: flex;
  align-items: center;
  justify-content: end;
  justify-content: flex-end;
  font-size: calc(12px + (40 - 12) * ((100vw - 320px) / (1920 - 320)));
  line-height: 1;
}

.modal-carousel .weapon-system {
  top: 16%;
  right: 6.3%;
}

.weapon-name {
  position: absolute;
  top: 22%;
  left: 64%;
  width: 31%;
  height: 11%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: calc(14px + (56 - 14) * ((100vw - 320px) / (1920 - 320)));
  line-height: 1.2;
  white-space: nowrap;
}

.modal-carousel .weapon-name {
  top: 19%;
  left: 71.3%;
  align-items: start;
  line-height: 1;
  font-size: calc(12px + (54 - 12) * ((100vw - 420px) / (1920 - 420)));
}

.weapon-description {
  position: absolute;
  left: 64.1%;
  top: 35%;
  width: 31.4%;
  height: 18%;
  font-size: calc(8px + (18 - 8) * ((100vw - 320px) / (1920 - 320)));
  line-height: 1.5;
  opacity: 0.7;
  text-align: justify;
}

.modal-carousel .weapon-description {
  top: 30%;
  left: 71.3%;
  width: 22.9%;
}

.weapon-attributes {
  position: absolute;
  left: 65.2%;
  top: 84.2%;
  width: 30.1%;
  height: 8%;
  display: flex;
  align-items: center;
  font-size: calc(6px + (20 - 6) * ((100vw - 320px) / (1920 - 320)));
  line-height: 1;
  opacity: 0.7;
}

.video-error-image {
  position: absolute;
  left: 5.85%;
  top: 19.4%;
  width: 54.5%;
  height: auto;
  aspect-ratio: 16/9;
  outline: none;
  -o-object-fit: contain;
     object-fit: contain;
  background-color: #000;
}

.modal-carousel .weapon-attributes {
  top: 74.8%;
  left: 72.3%;
}

.share-screenshot-modal {
  display: flex;
  flex-direction: column;
  position: relative;
  width: 90%;
  height: 0;
  padding-bottom: 50%;
  background: url(/h5/2025/parade2025/static/images/modal-share-bg.w1TdmkBX.png) no-repeat center center / contain;
}

.share-header {
  text-align: center;
  padding: 10px 0;
  display: none;
}

.share-header p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

.share-image-container {
  position: absolute;
  left: 0;
  top: 10%;
  bottom: 5%;
  right: 0;
  text-align: center;
  /* text-align: center;
  margin-bottom: 20px;
  max-height: 60vh;
  max-height: 60vmax; */
  /* max-height: calc(var(--vh) * 60);
  max-height: 60dvh;
  overflow: auto; */
}

.share-screenshot-image {
  height: 100%;
}

.share-screenshot-image-op {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.share-actions {
  /* display: flex; */
  display: none;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.share-download-btn {
  padding: 10px 20px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
}

.share-download-btn span,
.share-close-btn span {
  font-size: 16px;
}

.share-close-btn {
  position: absolute;
  right: 0;
  top: 0;
  width: 14%;
  height: 15%;
  opacity: 0;
}

.share-tips {
  display: none;
  margin-top: 15px;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 6px;
  font-size: 12px;
  color: #666;
  text-align: center;
}

/* 旋转状态下的模态框调整 */

.page-rotated .modal {
  /* 模态框在旋转状态下需要保持正确的尺寸 */
  width: 100%;
  height: 100%;
}

.page-rotated .modal-content {
  /* max-width: 80%;
  max-height: 80%; */
}

.carousel-container {
  /* max-width: 800px;
  max-height: 600px; */
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
  /* background: #f0f0f0; */
  position: absolute;
  left: 6%;
  top: 15%;
  width: 63%;
  height: 76%;
}

.carousel-track {
  display: flex;
  transition: transform 0.3s ease;
  height: 92%;
  /* max-height: calc(100vh - 150px); */
}

.carousel-slide {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide img {
  max-width: 100%;
  max-height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
  border-radius: 4px;
}

.carousel-prev {
  position: absolute;
  left: 0px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 18px;
  transition: background 0.2s;
  z-index: 10;
}

.carousel-next {
  position: absolute;
  right: 0px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 18px;
  transition: background 0.2s;
  z-index: 10;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 3.2vmax;
  padding: 1vmin 0;
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
}

.carousel-dot {
  width: 0.75vmax;
  height: 0.75vmax;
  border-radius: 50%;
  border: none;
  background: #0a4a76;
  cursor: pointer;
  transition: background 0.2s;
}

.carousel-dot.active {
  background: #ff0000;
}

@media (max-width: 1800px) {
  /* .weapon-category {
    font-size: 32px;
  } */
}

@media (max-width: 1440px) {
  /* .weapon-category {
    font-size: 26px;
  } */
}

@media (max-width: 1024px) {
  /* .weapon-category {
    font-size: 20px;
  } */
}

/* 移动端优化 */

@media (max-width: 768px) {
  /* .weapon-category {
    font-size: 18px;
  } */

  .modal-content {
    /* max-width: 95vw;
    max-height: 95vh;
    padding: 15px; */
  }

  /* .modal video {
    max-height: 400px;
  } */

  .modal h2 {
    font-size: 1.2em;
  }
}

/* 响应式视频 */

@media (max-width: 480px) {
  /* .weapon-category {
    font-size: 14px;
  } */

  .modal-content {
    /* padding: 10px; */
  }

  /* .modal video {
    max-height: 300px;
  } */
}

.backcover {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #000;
  z-index: 10;
}

.save {
  position: fixed;
  top: 0;
  left: 0;
  width: 1080px;
  height: 1920px;
  background: #000;
  z-index: 9;
}

.save-bg {
  position: absolute;
  left: 0;
  top: 0;
  width: 1080px;
  height: 1920px;
  background: url(/h5/2025/parade2025/static/images/save-bg.B2zZ3xKv.png) no-repeat center center;
}

.save-info {
  position: absolute;
  left: 84px;
  top: 478px;
  font-size: 0px;
  line-height: 0px;
  color: #82e0ff;
  vertical-align: top;
}

.save-info-split {
  display: inline-block;
  width: 100px;
  height: 40px;
  background: url(/h5/2025/parade2025/static/images/save-info-split.C3FO0I2X.png) no-repeat center center;
  vertical-align: top;
}

.save-category,
.save-system {
  font-size: 40px;
  line-height: 1;
}

.save-name {
  display: flex;
  align-items: center;
  position: absolute;
  left: 84px;
  top: 580px;
  height: 106px;
  font-size: 88px;
  line-height: 106px;
  color: #ff0000;
  white-space: nowrap;
}

.save-description {
  position: absolute;
  left: 84px;
  top: 748px;
  width: 924px;
  font-size: 28px;
  line-height: 44px;
  color: #5ca4bd;
  text-align: justify;
}

.save-img {
  position: absolute;
  left: 172px;
  top: 950px;
  width: 734px;
  height: 734px;
  border-radius: 50%;
  overflow: hidden;
  background-size: cover;
  background-position: center center;
}

.save-tips {
  position: absolute;
  left: 112px;
  top: 1652px;
  font-size: 40px;
  line-height: 1;
  color: #82e0ff;
}

.save-tips-line2 {
  margin-top: 16px;
  display: flex;
  align-items: end;
  justify-content: start;
}

.save-tips-line2 span {
    display: inline-block;
    height: 60px;
    background: red;
    vertical-align: bottom;
    background: url(/h5/2025/parade2025/static/images/save-num-atlas.BDjjOW1M.png) no-repeat;
  }

.save-tips-line2 .save-tips-0 {
    width: 42px;
    background-position: -154px -61px;
  }

.save-tips-line2 .save-tips-1 {
    width: 27px;
    background-position: 0 0;
  }

.save-tips-line2 .save-tips-2 {
    width: 38px;
    background-position: -27px 0;
  }

.save-tips-line2 .save-tips-3 {
    width: 40px;
    background-position: -65px 0;
  }

.save-tips-line2 .save-tips-4 {
    width: 45px;
    background-position: -105px 0;
  }

.save-tips-line2 .save-tips-5 {
    width: 38px;
    background-position: -150px 0;
  }

.save-tips-line2 .save-tips-6 {
    width: 38px;
    background-position: 0 -61px;
  }

.save-tips-line2 .save-tips-7 {
    width: 36px;
    background-position: -38px -61px;
  }

.save-tips-line2 .save-tips-8 {
    width: 40px;
    background-position: -74px -61px;
  }

.save-tips-line2 .save-tips-9 {
    width: 40px;
    background-position: -114px -61px;
  }

.save-qrcode {
  position: absolute;
  left: 866px;
  top: 1616px;
}

.share-content {
  position: absolute;
  left: 50%;
  top: 100px;
  transform: translateX(-50%);
  width: 561px;
  height: 100px;
  font: 24px/2 normal normal bold;
}

/* 定义自定义字体 */

@font-face {
  font-family: 'Rajdhani';
  src: url('/h5/2025/parade2025/static/fonts/rajdhani.CGeyCgsj.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap; /* 优化字体加载性能，在字体加载时先显示降级字体 */
}

/* iOS Safari button 样式重置 */

button {
  /* 移除iOS默认样式 */
  -webkit-appearance: none;
  -moz-appearance: none;
       appearance: none;

  /* 移除默认边框和背景 */
  border: none;
  background: none;

  /* 移除默认内边距和外边距 */
  padding: 0;
  margin: 0;

  /* 重置字体 */
  font-family: inherit;
  font-size: inherit;
  color: inherit;

  /* 移除默认的聚焦样式 */
  outline: none;

  /* 移除点击高亮 */
  -webkit-tap-highlight-color: transparent;

  /* 移除iOS的触摸延迟 */
  touch-action: manipulation;

  /* 确保按钮可以接收触摸事件 */
  cursor: pointer;

  /* 防止文本选择 */
  -webkit-user-select: none;
  -moz-user-select: none;
       user-select: none;

  /* 移除默认的圆角 */
  border-radius: 0;
}

/* input[type="button"] 和 input[type="submit"] 也需要重置 */

input[type='button'],
input[type='submit'],
input[type='reset'] {
  -webkit-appearance: none;
  -moz-appearance: none;
       appearance: none;
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
       user-select: none;
  border-radius: 0;
}
