main.html 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599
  1. <!DOCTYPE html>
  2. <html lang="zh-CN">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>NOVA AI 中枢</title>
  7. <style>
  8. @import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Roboto:wght@400;500&display=swap');
  9. :root {
  10. --bg-dark: #0A0F1E;
  11. --neon-blue: #02A9F7;
  12. --neon-light: #89D6FB;
  13. --metal-gray: #525F7F;
  14. --electric-purple: #8A2BE2;
  15. --glass-white: rgba(255, 255, 255, 0.15);
  16. }
  17. * {
  18. margin: 0;
  19. padding: 0;
  20. box-sizing: border-box;
  21. }
  22. body {
  23. background-color: var(--bg-dark);
  24. color: white;
  25. font-family: 'Roboto', sans-serif;
  26. height: 100vh;
  27. overflow: hidden;
  28. position: relative;
  29. display: flex;
  30. flex-direction: column;
  31. user-select: none;
  32. }
  33. /* 顶部状态栏 */
  34. .status-bar {
  35. display: flex;
  36. justify-content: space-between;
  37. align-items: center;
  38. padding: 12px 24px;
  39. background: linear-gradient(to bottom, rgba(10, 15, 30, 0.9), rgba(10, 15, 30, 0.7));
  40. backdrop-filter: blur(5px);
  41. border-bottom: 1px solid var(--metal-gray);
  42. z-index: 10;
  43. }
  44. .status-icons {
  45. display: flex;
  46. gap: 16px;
  47. align-items: center;
  48. }
  49. .status-icon {
  50. width: 20px;
  51. height: 20px;
  52. background-color: var(--neon-blue);
  53. border-radius: 50%;
  54. position: relative;
  55. }
  56. .status-icon::after {
  57. content: '';
  58. position: absolute;
  59. top: -2px;
  60. left: -2px;
  61. right: -2px;
  62. bottom: -2px;
  63. border-radius: 50%;
  64. border: 1px solid var(--neon-light);
  65. animation: pulse 2s infinite;
  66. }
  67. .time {
  68. font-family: 'Montserrat', sans-serif;
  69. font-weight: bold;
  70. letter-spacing: 1px;
  71. }
  72. .user-avatar {
  73. width: 32px;
  74. height: 32px;
  75. border-radius: 50%;
  76. background: linear-gradient(135deg, var(--electric-purple), var(--neon-blue));
  77. display: flex;
  78. align-items: center;
  79. justify-content: center;
  80. position: relative;
  81. overflow: hidden;
  82. }
  83. .user-avatar::before {
  84. content: '';
  85. position: absolute;
  86. bottom: 0;
  87. left: 0;
  88. right: 0;
  89. height: 3px;
  90. background: var(--neon-blue);
  91. animation: loading 8s linear infinite;
  92. }
  93. /* 中央AI核心区 */
  94. .ai-core {
  95. flex: 1;
  96. display: flex;
  97. flex-direction: column;
  98. align-items: center;
  99. justify-content: center;
  100. position: relative;
  101. padding: 20px;
  102. }
  103. .energy-ball-container {
  104. position: relative;
  105. width: 200px;
  106. height: 200px;
  107. margin-bottom: 30px;
  108. }
  109. .energy-ball {
  110. width: 100%;
  111. height: 100%;
  112. border-radius: 50%;
  113. background: radial-gradient(circle at 30% 30%, var(--neon-blue), transparent 70%);
  114. box-shadow: 0 0 30px var(--neon-blue),
  115. inset 0 0 20px rgba(2, 169, 247, 0.5);
  116. position: relative;
  117. animation: float 6s ease-in-out infinite;
  118. }
  119. .energy-ball::before {
  120. content: '';
  121. position: absolute;
  122. top: -10px;
  123. left: -10px;
  124. right: -10px;
  125. bottom: -10px;
  126. border-radius: 50%;
  127. background: linear-gradient(45deg, var(--neon-blue), var(--electric-purple), var(--neon-blue));
  128. z-index: -1;
  129. opacity: 0.7;
  130. filter: blur(20px);
  131. animation: rotate 20s linear infinite;
  132. }
  133. .particles {
  134. position: absolute;
  135. top: 0;
  136. left: 0;
  137. width: 100%;
  138. height: 100%;
  139. border-radius: 50%;
  140. overflow: hidden;
  141. }
  142. .particle {
  143. position: absolute;
  144. background-color: var(--neon-light);
  145. border-radius: 50%;
  146. opacity: 0.7;
  147. animation: particle-float 4s infinite ease-in-out;
  148. }
  149. .greeting {
  150. text-align: center;
  151. margin-top: 20px;
  152. }
  153. .greeting h2 {
  154. font-family: 'Montserrat', sans-serif;
  155. font-size: 24px;
  156. margin-bottom: 10px;
  157. background: linear-gradient(to right, var(--neon-blue), var(--neon-light));
  158. -webkit-background-clip: text;
  159. -webkit-text-fill-color: transparent;
  160. animation: text-glow 2s infinite alternate;
  161. }
  162. .voice-wave {
  163. display: flex;
  164. justify-content: center;
  165. gap: 4px;
  166. height: 30px;
  167. margin-top: 15px;
  168. }
  169. .wave-bar {
  170. width: 4px;
  171. height: 10px;
  172. background-color: var(--neon-blue);
  173. border-radius: 2px;
  174. animation: wave 1.2s infinite ease-in-out;
  175. }
  176. /* 底部快捷区 - 修改为固定定位并向上移动 */
  177. .quick-access {
  178. position: fixed;
  179. bottom: 20px; /* 控制离底部距离 */
  180. left: 0;
  181. right: 0;
  182. display: flex;
  183. justify-content: center;
  184. gap: 30px;
  185. padding: 15px 20px;
  186. background: rgba(10, 15, 30, 0.7);
  187. backdrop-filter: blur(10px);
  188. border-top: 1px solid var(--metal-gray);
  189. z-index: 10;
  190. }
  191. .app-icon {
  192. width: 50px;
  193. height: 50px;
  194. border-radius: 12px;
  195. background-color: var(--glass-white);
  196. display: flex;
  197. align-items: center;
  198. justify-content: center;
  199. cursor: move;
  200. transition: all 0.3s ease;
  201. position: relative;
  202. }
  203. .app-icon:hover {
  204. transform: translateY(-5px);
  205. background-color: rgba(2, 169, 247, 0.2);
  206. box-shadow: 0 5px 15px rgba(2, 169, 247, 0.3);
  207. }
  208. .app-icon::after {
  209. content: attr(data-app);
  210. position: absolute;
  211. bottom: -25px;
  212. left: 50%;
  213. transform: translateX(-50%);
  214. font-size: 12px;
  215. opacity: 0;
  216. transition: opacity 0.3s;
  217. white-space: nowrap;
  218. }
  219. .app-icon:hover::after {
  220. opacity: 1;
  221. }
  222. .app-icon i {
  223. font-size: 24px;
  224. background: linear-gradient(to bottom, var(--neon-light), white);
  225. -webkit-background-clip: text;
  226. -webkit-text-fill-color: transparent;
  227. }
  228. /* 右侧语音输入区 - 修改位置向上移动 */
  229. .voice-input {
  230. position: fixed;
  231. right: 30px;
  232. bottom: 150px; /* 调整这个值控制离底部距离 */
  233. display: flex;
  234. flex-direction: column;
  235. align-items: flex-end;
  236. gap: 10px;
  237. z-index: 10;
  238. }
  239. .voice-btn {
  240. width: 60px;
  241. height: 60px;
  242. border-radius: 50%;
  243. background: linear-gradient(135deg, var(--neon-blue), var(--electric-purple));
  244. display: flex;
  245. align-items: center;
  246. justify-content: center;
  247. cursor: pointer;
  248. box-shadow: 0 5px 25px rgba(2, 169, 247, 0.5);
  249. transition: all 0.3s;
  250. position: relative;
  251. }
  252. .voice-btn:hover {
  253. transform: scale(1.1);
  254. box-shadow: 0 8px 30px rgba(2, 169, 247, 0.7);
  255. }
  256. .voice-btn::before {
  257. content: '';
  258. position: absolute;
  259. top: -5px;
  260. left: -5px;
  261. right: -5px;
  262. bottom: -5px;
  263. border-radius: 50%;
  264. border: 2px solid var(--neon-blue);
  265. animation: ripple 2s infinite;
  266. opacity: 0;
  267. }
  268. .voice-btn.active::before {
  269. animation: ripple-active 1s infinite;
  270. }
  271. .voice-btn i {
  272. font-size: 24px;
  273. color: white;
  274. }
  275. .history-bubble {
  276. background: var(--glass-white);
  277. backdrop-filter: blur(10px);
  278. padding: 10px 15px;
  279. border-radius: 20px;
  280. max-width: 200px;
  281. margin-bottom: 10px;
  282. opacity: 0;
  283. transform: translateY(10px);
  284. transition: all 0.3s;
  285. font-size: 14px;
  286. border: 1px solid var(--metal-gray);
  287. }
  288. .history-bubble.show {
  289. opacity: 1;
  290. transform: translateY(0);
  291. }
  292. /* 动画 */
  293. @keyframes float {
  294. 0%, 100% { transform: translateY(0) rotate(0deg); }
  295. 50% { transform: translateY(-20px) rotate(2deg); }
  296. }
  297. @keyframes rotate {
  298. 0% { transform: rotate(0deg); }
  299. 100% { transform: rotate(360deg); }
  300. }
  301. @keyframes particle-float {
  302. 0%, 100% { transform: translate(0, 0); }
  303. 25% { transform: translate(5px, 5px); }
  304. 50% { transform: translate(-5px, 5px); }
  305. 75% { transform: translate(-5px, -5px); }
  306. }
  307. @keyframes pulse {
  308. 0% { opacity: 0.5; transform: scale(1); }
  309. 50% { opacity: 1; transform: scale(1.1); }
  310. 100% { opacity: 0.5; transform: scale(1); }
  311. }
  312. @keyframes loading {
  313. 0% { width: 0; }
  314. 100% { width: 100%; }
  315. }
  316. @keyframes wave {
  317. 0%, 100% { height: 10px; }
  318. 50% { height: 25px; }
  319. }
  320. @keyframes text-glow {
  321. 0% { text-shadow: 0 0 5px var(--neon-blue); }
  322. 100% { text-shadow: 0 0 15px var(--neon-blue); }
  323. }
  324. @keyframes ripple {
  325. 0% { transform: scale(1); opacity: 1; }
  326. 100% { transform: scale(1.5); opacity: 0; }
  327. }
  328. @keyframes ripple-active {
  329. 0% { transform: scale(1); opacity: 0.7; }
  330. 100% { transform: scale(1.8); opacity: 0; }
  331. }
  332. /* 响应式调整 */
  333. @media (max-width: 768px) {
  334. .quick-access {
  335. gap: 15px;
  336. padding: 10px;
  337. }
  338. .app-icon {
  339. width: 40px;
  340. height: 40px;
  341. }
  342. .voice-input {
  343. right: 15px;
  344. bottom: 120px;
  345. }
  346. .voice-btn {
  347. width: 50px;
  348. height: 50px;
  349. }
  350. }
  351. </style>
  352. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
  353. </head>
  354. <body>
  355. <!-- 顶部状态栏 -->
  356. <div class="status-bar">
  357. <div class="status-icons">
  358. <div class="status-icon"></div>
  359. <div class="status-icon"></div>
  360. <div class="status-icon"></div>
  361. </div>
  362. <div class="time">18:24</div>
  363. <div class="user-avatar">
  364. <i class="fas fa-user"></i>
  365. </div>
  366. </div>
  367. <!-- 中央AI核心区 -->
  368. <div class="ai-core">
  369. <div class="energy-ball-container">
  370. <div class="energy-ball">
  371. <div class="particles" id="particles"></div>
  372. </div>
  373. </div>
  374. <div class="greeting">
  375. <h2>HELLO, I'M NOVA</h2>
  376. <div class="voice-wave">
  377. <div class="wave-bar" style="animation-delay: 0s"></div>
  378. <div class="wave-bar" style="animation-delay: 0.2s"></div>
  379. <div class="wave-bar" style="animation-delay: 0.4s"></div>
  380. <div class="wave-bar" style="animation-delay: 0.6s"></div>
  381. <div class="wave-bar" style="animation-delay: 0.8s"></div>
  382. </div>
  383. </div>
  384. </div>
  385. <!-- 底部快捷区 -->
  386. <div class="quick-access">
  387. <div class="app-icon" data-app="微信" draggable="true">
  388. <i class="fab fa-weixin"></i>
  389. </div>
  390. <div class="app-icon" data-app="QQ" draggable="true">
  391. <i class="fab fa-qq"></i>
  392. </div>
  393. <div class="app-icon" data-app="浏览器" draggable="true">
  394. <i class="fas fa-globe"></i>
  395. </div>
  396. <div class="app-icon" data-app="系统管理" draggable="true">
  397. <i class="fas fa-cog"></i>
  398. </div>
  399. </div>
  400. <!-- 右侧语音输入区 -->
  401. <div class="voice-input">
  402. <div class="history-bubble">上次查询: 今天的天气</div>
  403. <div class="voice-btn">
  404. <i class="fas fa-microphone"></i>
  405. </div>
  406. </div>
  407. <script>
  408. // 创建粒子效果
  409. function createParticles() {
  410. const container = document.getElementById('particles');
  411. const particleCount = 30;
  412. for (let i = 0; i < particleCount; i++) {
  413. const particle = document.createElement('div');
  414. particle.classList.add('particle');
  415. // 随机大小和位置
  416. const size = Math.random() * 4 + 2;
  417. const posX = Math.random() * 100;
  418. const posY = Math.random() * 100;
  419. const delay = Math.random() * 4;
  420. particle.style.width = `${size}px`;
  421. particle.style.height = `${size}px`;
  422. particle.style.left = `${posX}%`;
  423. particle.style.top = `${posY}%`;
  424. particle.style.animationDelay = `${delay}s`;
  425. container.appendChild(particle);
  426. }
  427. }
  428. // 语音按钮交互
  429. function setupVoiceButton() {
  430. const voiceBtn = document.querySelector('.voice-btn');
  431. const historyBubble = document.querySelector('.history-bubble');
  432. const waveBars = document.querySelectorAll('.wave-bar');
  433. voiceBtn.addEventListener('click', function() {
  434. this.classList.toggle('active');
  435. if (this.classList.contains('active')) {
  436. // 模拟语音激活状态
  437. waveBars.forEach(bar => {
  438. bar.style.animationDuration = '0.8s';
  439. });
  440. setTimeout(() => {
  441. historyBubble.classList.add('show');
  442. historyBubble.textContent = '正在聆听...';
  443. }, 300);
  444. } else {
  445. // 模拟语音关闭状态
  446. waveBars.forEach(bar => {
  447. bar.style.animationDuration = '1.2s';
  448. });
  449. setTimeout(() => {
  450. historyBubble.textContent = '已识别: 打开天气预报';
  451. setTimeout(() => {
  452. historyBubble.classList.remove('show');
  453. }, 2000);
  454. }, 500);
  455. }
  456. });
  457. }
  458. // 拖拽排序功能
  459. function setupDragAndDrop() {
  460. const quickAccess = document.querySelector('.quick-access');
  461. const appIcons = document.querySelectorAll('.app-icon');
  462. let draggedItem = null;
  463. appIcons.forEach(icon => {
  464. icon.addEventListener('dragstart', function() {
  465. draggedItem = this;
  466. setTimeout(() => {
  467. this.style.opacity = '0.4';
  468. }, 0);
  469. });
  470. icon.addEventListener('dragend', function() {
  471. setTimeout(() => {
  472. this.style.opacity = '1';
  473. draggedItem = null;
  474. }, 0);
  475. });
  476. icon.addEventListener('dragover', function(e) {
  477. e.preventDefault();
  478. });
  479. icon.addEventListener('dragenter', function(e) {
  480. e.preventDefault();
  481. this.style.backgroundColor = 'rgba(2, 169, 247, 0.3)';
  482. });
  483. icon.addEventListener('dragleave', function() {
  484. this.style.backgroundColor = 'var(--glass-white)';
  485. });
  486. icon.addEventListener('drop', function() {
  487. this.style.backgroundColor = 'var(--glass-white)';
  488. if (draggedItem !== this) {
  489. quickAccess.insertBefore(draggedItem, this.nextSibling || this);
  490. }
  491. });
  492. });
  493. }
  494. // 更新时间
  495. function updateTime() {
  496. const timeElement = document.querySelector('.time');
  497. const now = new Date();
  498. const hours = now.getHours().toString().padStart(2, '0');
  499. const minutes = now.getMinutes().toString().padStart(2, '0');
  500. timeElement.textContent = `${hours}:${minutes}`;
  501. }
  502. // 初始化
  503. document.addEventListener('DOMContentLoaded', function() {
  504. createParticles();
  505. setupVoiceButton();
  506. setupDragAndDrop();
  507. updateTime();
  508. setInterval(updateTime, 60000);
  509. // 3D球体悬停效果
  510. const energyBall = document.querySelector('.energy-ball');
  511. energyBall.addEventListener('mousemove', (e) => {
  512. const rect = energyBall.getBoundingClientRect();
  513. const x = e.clientX - rect.left;
  514. const y = e.clientY - rect.top;
  515. const centerX = rect.width / 2;
  516. const centerY = rect.height / 2;
  517. const angleX = (y - centerY) / 20;
  518. const angleY = (centerX - x) / 20;
  519. energyBall.style.transform = `rotateX(${angleX}deg) rotateY(${angleY}deg)`;
  520. });
  521. energyBall.addEventListener('mouseleave', () => {
  522. energyBall.style.transform = '';
  523. });
  524. });
  525. </script>
  526. </body>
  527. </html>