globals.css 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. @tailwind base;
  2. @tailwind components;
  3. @tailwind utilities;
  4. @layer base {
  5. html, body {
  6. height: 100%;
  7. margin: 0;
  8. padding: 0;
  9. }
  10. #__next {
  11. height: 100%;
  12. }
  13. }
  14. @layer utilities {
  15. /* 隐藏 Chrome, Safari 和 Opera 的滚动条 */
  16. .no-scrollbar::-webkit-scrollbar {
  17. display: none;
  18. }
  19. /* 隐藏 IE, Edge 和 Firefox 的滚动条 */
  20. .no-scrollbar {
  21. -ms-overflow-style: none; /* IE 和 Edge */
  22. scrollbar-width: none; /* Firefox */
  23. }
  24. .full-height-minus-64px {
  25. height: calc(100vh - 64px);
  26. }
  27. /* 聊天消息滚动条样式 */
  28. .chat-scrollbar::-webkit-scrollbar {
  29. width: 8px;
  30. }
  31. .chat-scrollbar::-webkit-scrollbar-track {
  32. background: rgba(0, 0, 0, 0.1);
  33. border-radius: 4px;
  34. }
  35. .chat-scrollbar::-webkit-scrollbar-thumb {
  36. background: rgba(255, 255, 255, 0.3);
  37. border-radius: 4px;
  38. }
  39. .chat-scrollbar::-webkit-scrollbar-thumb:hover {
  40. background: rgba(255, 255, 255, 0.5);
  41. }
  42. /* 科技感文本框滚动条样式 */
  43. .tech-scrollbar::-webkit-scrollbar {
  44. width: 6px;
  45. }
  46. .tech-scrollbar::-webkit-scrollbar-track {
  47. background: rgba(0, 0, 0, 0.2);
  48. border-radius: 3px;
  49. }
  50. .tech-scrollbar::-webkit-scrollbar-thumb {
  51. background: rgba(100, 150, 255, 0.5);
  52. border-radius: 3px;
  53. }
  54. .tech-scrollbar::-webkit-scrollbar-thumb:hover {
  55. background: rgba(100, 150, 255, 0.7);
  56. }
  57. .tech-scrollbar {
  58. scrollbar-width: thin;
  59. scrollbar-color: rgba(100, 150, 255, 0.5) rgba(0, 0, 0, 0.2);
  60. }
  61. /* 隐藏滚动条但保持滚动功能 */
  62. .scrollbar-hide {
  63. -ms-overflow-style: none; /* IE 和 Edge */
  64. scrollbar-width: none; /* Firefox */
  65. }
  66. .scrollbar-hide::-webkit-scrollbar {
  67. display: none; /* Chrome, Safari 和 Opera */
  68. }
  69. }
  70. /* 高级科技感动画 */
  71. @keyframes shimmer {
  72. 0%, 100% {
  73. opacity: 0.6;
  74. transform: scaleX(1);
  75. }
  76. 50% {
  77. opacity: 1;
  78. transform: scaleX(1.05);
  79. }
  80. }
  81. /* 边框旋转动画 - 完美科技感 */
  82. @keyframes borderRotate {
  83. 0% {
  84. transform: rotate(0deg);
  85. }
  86. 100% {
  87. transform: rotate(360deg);
  88. }
  89. }
  90. /* 外发光脉冲动画 - 增强边缘感 */
  91. @keyframes glowPulse {
  92. 0%, 100% {
  93. opacity: 1;
  94. filter: blur(0px);
  95. }
  96. 50% {
  97. opacity: 0.8;
  98. filter: blur(2px);
  99. }
  100. }
  101. /* 渐变移动动画 - 用于按钮边框 */
  102. @keyframes gradientShift {
  103. 0% {
  104. background-position: 0% 50%;
  105. }
  106. 50% {
  107. background-position: 100% 50%;
  108. }
  109. 100% {
  110. background-position: 0% 50%;
  111. }
  112. }
  113. /* 扫描线动画 - 科技感扫描效果 */
  114. @keyframes scanLine {
  115. 0% {
  116. transform: translateX(-100%);
  117. opacity: 0;
  118. }
  119. 50% {
  120. opacity: 1;
  121. }
  122. 100% {
  123. transform: translateX(100%);
  124. opacity: 0;
  125. }
  126. }
  127. /* 脉冲动画 - 用于悬停效果 */
  128. @keyframes pulse {
  129. 0%, 100% {
  130. opacity: 0.3;
  131. transform: scale(1);
  132. }
  133. 50% {
  134. opacity: 0.6;
  135. transform: scale(1.05);
  136. }
  137. }
  138. /* 隐藏 Next.js 开发工具的路由标签或"Static route"标签 */
  139. [data-nextjs-scroll-focus-boundary],
  140. [class*="__nextjs"],
  141. [class*="nextjs"],
  142. [title*="Static route"],
  143. [title*="static route"],
  144. [title*="Static Route"] {
  145. display: none !important;
  146. }
  147. /* 隐藏左下角的标签/chip元素(通常是Next.js开发工具的路由指示器) */
  148. .fixed.bottom-4.left-4[class*="route"],
  149. .fixed.bottom-4.left-4[title*="route"],
  150. body > div:last-child [class*="static"][class*="route"] {
  151. display: none !important;
  152. }
  153. /* 更通用的隐藏方式:隐藏包含"Static route"文本的元素 */
  154. body *[aria-label*="Static route"],
  155. body *[aria-label*="static route"] {
  156. display: none !important;
  157. }