space.html 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>AI 空间</title>
  6. </head>
  7. <style>
  8. /* 重置基础样式 */
  9. * {
  10. margin: 0;
  11. padding: 0;
  12. box-sizing: border-box;
  13. }
  14. html, body {
  15. width: 100%;
  16. height: 100%;
  17. overflow: hidden;
  18. }
  19. .center-banner {
  20. position: fixed;
  21. top: 0;
  22. left: 0;
  23. width: 100vw;
  24. height: 100vh;
  25. background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  26. border-radius: 0;
  27. display: flex;
  28. justify-content: center;
  29. align-items: center;
  30. z-index: 999;
  31. }
  32. .center-banner video {
  33. width: 100%;
  34. height: 100%;
  35. object-fit: cover;
  36. display: block;
  37. opacity: 0;
  38. transition: opacity 0.8s ease;
  39. }
  40. .center-banner video.loaded {
  41. opacity: 1;
  42. }
  43. .center-banner .overlay-img {
  44. position: absolute;
  45. z-index: 2;
  46. width: 270px;
  47. cursor: pointer;
  48. transform: translate(-50%, -50%);
  49. animation: float 4s ease-in-out infinite;
  50. transition: all .3s ease;
  51. opacity: 0;
  52. pointer-events: none;
  53. transition: opacity 0.5s ease;
  54. }
  55. .center-banner .overlay-img.show {
  56. opacity: 1;
  57. pointer-events: auto;
  58. }
  59. .center-banner .img-left {
  60. top: 48%;
  61. left: 23%;
  62. }
  63. @keyframes float {
  64. 0%,100%{
  65. transform: translate(-50%, -50%);
  66. }
  67. 50%{
  68. transform: translate(-50%, calc(-50% - 12px));
  69. }
  70. }
  71. .center-banner .overlay-img:hover{
  72. animation-play-state: paused;
  73. }
  74. /* ===== 酷炫 Loading ===== */
  75. .loading-container {
  76. position: absolute;
  77. top: 50%;
  78. left: 50%;
  79. transform: translate(-50%, -50%);
  80. z-index: 1;
  81. display: flex;
  82. flex-direction: column;
  83. align-items: center;
  84. gap: 30px;
  85. }
  86. .loading-container.hide {
  87. display: none;
  88. }
  89. /* 粒子光环 */
  90. .ring {
  91. position: relative;
  92. width: 120px;
  93. height: 120px;
  94. }
  95. .ring .dot {
  96. position: absolute;
  97. width: 12px;
  98. height: 12px;
  99. border-radius: 50%;
  100. background: radial-gradient(circle, #00d2ff, #3a7bd5);
  101. box-shadow: 0 0 20px rgba(0, 210, 255, 0.6), 0 0 60px rgba(0, 210, 255, 0.3);
  102. animation: orbit 2s linear infinite;
  103. }
  104. .ring .dot:nth-child(1) { top: 0; left: 50%; transform: translateX(-50%); animation-delay: 0s; }
  105. .ring .dot:nth-child(2) { top: 25%; right: 0; transform: translateY(-50%); animation-delay: 0.25s; }
  106. .ring .dot:nth-child(3) { bottom: 0; left: 50%; transform: translateX(-50%); animation-delay: 0.5s; }
  107. .ring .dot:nth-child(4) { top: 25%; left: 0; transform: translateY(-50%); animation-delay: 0.75s; }
  108. .ring .dot:nth-child(5) { top: 12%; right: 12%; animation-delay: 0.125s; width: 8px; height: 8px; opacity: 0.6; }
  109. .ring .dot:nth-child(6) { bottom: 12%; right: 12%; animation-delay: 0.375s; width: 8px; height: 8px; opacity: 0.6; }
  110. .ring .dot:nth-child(7) { bottom: 12%; left: 12%; animation-delay: 0.625s; width: 8px; height: 8px; opacity: 0.6; }
  111. .ring .dot:nth-child(8) { top: 12%; left: 12%; animation-delay: 0.875s; width: 8px; height: 8px; opacity: 0.6; }
  112. @keyframes orbit {
  113. 0% { transform: rotate(0deg) translateX(54px) rotate(0deg); }
  114. 100% { transform: rotate(360deg) translateX(54px) rotate(-360deg); }
  115. }
  116. /* 中心发光球 */
  117. .ring .center-glow {
  118. position: absolute;
  119. top: 50%;
  120. left: 50%;
  121. transform: translate(-50%, -50%);
  122. width: 40px;
  123. height: 40px;
  124. border-radius: 50%;
  125. background: radial-gradient(circle, #00d2ff, #3a7bd5);
  126. box-shadow: 0 0 40px rgba(0, 210, 255, 0.5), 0 0 80px rgba(0, 210, 255, 0.2);
  127. animation: glow-pulse 1.5s ease-in-out infinite;
  128. }
  129. @keyframes glow-pulse {
  130. 0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  131. 50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.7; }
  132. }
  133. /* 加载文字 */
  134. .loading-text {
  135. color: rgba(255, 255, 255, 0.9);
  136. font-size: 16px;
  137. font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  138. letter-spacing: 4px;
  139. background: linear-gradient(90deg, #00d2ff, #3a7bd5, #00d2ff);
  140. background-size: 200% 100%;
  141. -webkit-background-clip: text;
  142. -webkit-text-fill-color: transparent;
  143. animation: gradient-move 2s linear infinite;
  144. }
  145. @keyframes gradient-move {
  146. 0% { background-position: 0% 50%; }
  147. 100% { background-position: 200% 50%; }
  148. }
  149. /* 底部波浪条 */
  150. .wave-bars {
  151. display: flex;
  152. gap: 4px;
  153. align-items: center;
  154. height: 30px;
  155. }
  156. .wave-bars .bar {
  157. width: 4px;
  158. height: 100%;
  159. border-radius: 2px;
  160. background: linear-gradient(180deg, #00d2ff, #3a7bd5);
  161. animation: wave 0.8s ease-in-out infinite alternate;
  162. }
  163. .wave-bars .bar:nth-child(1) { height: 10px; animation-delay: 0s; }
  164. .wave-bars .bar:nth-child(2) { height: 20px; animation-delay: 0.1s; }
  165. .wave-bars .bar:nth-child(3) { height: 30px; animation-delay: 0.2s; }
  166. .wave-bars .bar:nth-child(4) { height: 25px; animation-delay: 0.3s; }
  167. .wave-bars .bar:nth-child(5) { height: 15px; animation-delay: 0.4s; }
  168. .wave-bars .bar:nth-child(6) { height: 28px; animation-delay: 0.5s; }
  169. .wave-bars .bar:nth-child(7) { height: 18px; animation-delay: 0.6s; }
  170. .wave-bars .bar:nth-child(8) { height: 22px; animation-delay: 0.7s; }
  171. @keyframes wave {
  172. 0% { transform: scaleY(0.3); opacity: 0.3; }
  173. 100% { transform: scaleY(1); opacity: 1; }
  174. }
  175. @media(max-width:1200px){
  176. .center-banner {
  177. margin-top: 0;
  178. }
  179. }
  180. </style>
  181. <body>
  182. <div class="center-banner">
  183. <!-- Loading 特效 -->
  184. <div class="loading-container" id="loadingContainer">
  185. <div class="ring">
  186. <div class="dot"></div>
  187. <div class="dot"></div>
  188. <div class="dot"></div>
  189. <div class="dot"></div>
  190. <div class="dot"></div>
  191. <div class="dot"></div>
  192. <div class="dot"></div>
  193. <div class="dot"></div>
  194. <div class="center-glow"></div>
  195. </div>
  196. <div class="loading-text">AI 空间初始化中</div>
  197. <div class="wave-bars">
  198. <div class="bar"></div>
  199. <div class="bar"></div>
  200. <div class="bar"></div>
  201. <div class="bar"></div>
  202. <div class="bar"></div>
  203. <div class="bar"></div>
  204. <div class="bar"></div>
  205. <div class="bar"></div>
  206. </div>
  207. </div>
  208. <video
  209. class="video"
  210. id="bgVideo"
  211. src="/static/ai/img/dispatch.mp4"
  212. autoplay
  213. loop
  214. muted
  215. playsinline
  216. webkit-playsinline
  217. x5-playsinline
  218. disablePictureInPicture
  219. preload="auto">
  220. 您的浏览器不支持视频播放
  221. </video>
  222. <div class="img-box" onclick="goDispatchCenter()">
  223. <img src="/static/ai/img/dispatch_center.png" class="overlay-img img-left" id="overlayImg">
  224. </div>
  225. </div>
  226. </body>
  227. <script>
  228. function goDispatchCenter(){
  229. window.location.href = "{:url('dispatchCenter')}";
  230. }
  231. document.addEventListener('DOMContentLoaded', function() {
  232. const video = document.getElementById('bgVideo');
  233. const overlayImg = document.getElementById('overlayImg');
  234. const loadingContainer = document.getElementById('loadingContainer');
  235. function showContent() {
  236. video.classList.add('loaded');
  237. overlayImg.classList.add('show');
  238. loadingContainer.classList.add('hide');
  239. }
  240. setTimeout(() => {
  241. if (video.readyState >= 2) {
  242. showContent();
  243. } else {
  244. video.addEventListener('loadeddata', showContent);
  245. video.addEventListener('error', showContent);
  246. // 再加 2 秒后备
  247. setTimeout(showContent, 2000);
  248. }
  249. }, 3000); // 先等 3 秒
  250. });
  251. </script>
  252. </html>