飞天AI数字人展会页面
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

476 lines
8.1 KiB

11 months ago
  1. @font-face {
  2. font-family: "DOUYU-Regular";
  3. src: url('../fonts/斗鱼追光体.ttf');
  4. font-weight: normal;
  5. font-style: normal;
  6. }
  7. @font-face {
  8. font-family: "PingFang";
  9. src: url('../fonts/PingFang.ttc');
  10. font-weight: normal;
  11. font-style: normal;
  12. }
  13. .ai-wrapper{
  14. position: relative;
  15. width: 100vw;
  16. height: 100vh;
  17. background-color: #0F1B46;
  18. font-family: 'DOUYU-Regular';
  19. overflow: hidden;
  20. }
  21. .ai-bg{
  22. width: 100%;
  23. height: 100%;
  24. object-fit: cover;
  25. position: absolute;
  26. top: 0;
  27. left: 0;
  28. z-index: 6;
  29. }
  30. /* 头部 */
  31. .ai-header-wrapper{
  32. position: absolute;
  33. top: 0;
  34. left: 0;
  35. width: 100%;
  36. height: 1.8125rem;
  37. overflow: hidden;
  38. z-index: 999;
  39. }
  40. .ai-header{
  41. position: relative;
  42. width: 100%;
  43. height: 100%;
  44. }
  45. .header-btn{
  46. position: absolute;
  47. top: .45rem;
  48. display: flex;
  49. justify-content: center;
  50. width: 2.2875rem;
  51. height: 1.1125rem;
  52. line-height: .7rem;
  53. font-size: .175rem;
  54. color: #fff;
  55. background: url('../images/header-btn.png') no-repeat left top;
  56. background-size:cover;
  57. }
  58. .header-btn span{
  59. display: block;
  60. width: .25rem;
  61. height: .25rem;
  62. margin-top: .175rem;
  63. margin-right: .025rem;
  64. }
  65. .header-home{
  66. left: 0;
  67. }
  68. .header-home span{
  69. background: url('../images/icon_home_full.png') no-repeat left top;
  70. background-size:cover;
  71. }
  72. .header-login{
  73. right: 0;
  74. }
  75. .header-login span{
  76. background: url('../images/icon_my_full.png') no-repeat left top;
  77. background-size:cover;
  78. }
  79. .header-btn:hover{
  80. background: url('../images/header-btn-hover.png') no-repeat left top;
  81. background-size:cover;
  82. cursor: pointer;
  83. }
  84. .header-title {
  85. width: 24.025rem;
  86. height: 1.8125rem;
  87. margin: 0 auto;
  88. background: url('../images/header.png') no-repeat left top;
  89. background-size:cover;
  90. }
  91. .header-title h2{
  92. font-size: .475rem;
  93. line-height: 1.25rem;
  94. font-weight: 300;
  95. text-align: center;
  96. background: -webkit-linear-gradient(90deg, #fff 0%, #9FCAFF 70%);
  97. background: linear-gradient(180deg, #fff 0%, #9FCAFF 70%);
  98. -webkit-background-clip: text;
  99. background-clip: text;
  100. -webkit-text-fill-color: transparent;
  101. color: transparent;
  102. text-shadow: 0px 11px 11px rgba(105,173,255,0.34), 0px 0px 24px rgba(105,173,255,0.68);
  103. }
  104. /* 首页菜单部分 */
  105. .ai-index{
  106. position: absolute;
  107. left: 0;
  108. top: 0;
  109. width: 100%;
  110. height: 100%;
  111. }
  112. .index-list {
  113. position: absolute;
  114. top: 2.5rem;
  115. }
  116. .list-left{
  117. left: 1.5rem;
  118. }
  119. .list-right{
  120. right: 1.5rem;
  121. }
  122. .index-list li{
  123. position: relative;
  124. width: 5rem;
  125. height: 2.5rem;
  126. margin-bottom: 1rem;
  127. z-index: 9999;
  128. cursor: pointer;
  129. }
  130. .index-list li::before{
  131. content: "";
  132. position: absolute;
  133. left: 0;
  134. top: 0;
  135. width: 5rem;
  136. height: 2.5rem;
  137. background: url('../images/index-box2.png') no-repeat left top;
  138. background-size:cover;
  139. z-index: 10;
  140. }
  141. .other-bg li::before{
  142. background: url('../images/index-box.png') no-repeat left top;
  143. background-size:cover;
  144. }
  145. .index-list li a{
  146. position: relative;
  147. display: block;
  148. width: calc(100% - .625rem);
  149. height: calc(100% - .5rem);
  150. padding: .5rem 0 0 .625rem;
  151. cursor: pointer;
  152. }
  153. .index-list li a p{
  154. position: relative;
  155. font-size: .4rem;
  156. z-index: 99;
  157. color: #fff;
  158. }
  159. .index-list li a span{
  160. position: relative;
  161. font-size: .3rem;
  162. font-family: 'PingFang';
  163. background: -webkit-linear-gradient(360deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 100%);
  164. background: linear-gradient(360deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 100%);
  165. -webkit-background-clip: text;
  166. background-clip: text;
  167. -webkit-text-fill-color: transparent;
  168. color: transparent;
  169. z-index: 99;
  170. }
  171. .index-list li a img{
  172. position: absolute;
  173. right: 0;
  174. top: 0;
  175. display: block;
  176. width: 2.5rem;
  177. height: 2.5rem;
  178. z-index: 99;
  179. }
  180. .list-right li::before{
  181. transform: rotateY(-180deg)
  182. /* transform: scaleY(-1); */
  183. }
  184. .list-left li:nth-child(1),
  185. .list-left li:nth-child(3){
  186. margin-left: 1rem;
  187. }
  188. .list-right li:nth-child(2){
  189. /* margin-left: 1rem; */
  190. }
  191. .list-right li a{
  192. text-align: right;
  193. padding: .5rem .625rem 0 0;
  194. }
  195. .list-right li a{
  196. padding: .5rem .625rem 0 0;
  197. }
  198. .list-right li img{
  199. left: 0;
  200. }
  201. /* 没有背景框的时候 */
  202. .no-box-style li::before{
  203. background: none;
  204. }
  205. .no-box-style li a img{
  206. position: absolute;
  207. right: -0.25rem;
  208. top: -.75rem;
  209. display: block;
  210. width: 2.75rem;
  211. height: 2.75rem;
  212. }
  213. .no-box-style.list-right li a img{
  214. left: -0.25rem;
  215. }
  216. .no-box-style li a span{
  217. background: none;
  218. -webkit-background-clip:initial;
  219. background-clip:initial;
  220. -webkit-text-fill-color:#3D528B;
  221. color: #3D528B;
  222. }
  223. .list-left li:nth-child(1) {
  224. position: absolute;
  225. left: 0;
  226. top: 0;
  227. }
  228. .list-left li:nth-child(2) {
  229. position: absolute;
  230. left: 0;
  231. top: 280px;
  232. animation-delay: .3s;
  233. }
  234. .list-left li:nth-child(3) {
  235. position: absolute;
  236. left: 0;
  237. top: 560px;
  238. animation-delay: .6s;
  239. }
  240. .list-right li:nth-child(1) {
  241. position: absolute;
  242. right: 1rem;
  243. top: 0;
  244. }
  245. .list-right li:nth-child(2) {
  246. position: absolute;
  247. right: 0;
  248. top: 280px;
  249. animation-delay: .3s;
  250. }
  251. .list-right li:nth-child(3) {
  252. position: absolute;
  253. right: 1rem;
  254. top: 560px;
  255. animation-delay: .6s;
  256. }
  257. /* 首页-机器人+底图 */
  258. .index-middle{
  259. width: 11.25rem;
  260. }
  261. .index-middle img{
  262. display: block;
  263. }
  264. .ai-human{
  265. position: absolute;
  266. top: 0;
  267. left: 50%;
  268. transform: translateX(-50%);
  269. z-index: 9;
  270. /* animation-duration: .4s;
  271. animation-delay: .3s; */
  272. }
  273. .ai-bottom{
  274. position: absolute;
  275. bottom: 0;
  276. left: 50%;
  277. transform: translateX(-50%);
  278. z-index: 6;
  279. }
  280. /* 编程体验 */
  281. .page-content{
  282. position: absolute;
  283. top: 0;
  284. left: 0;
  285. width: 100%;
  286. height: calc(100% - 2.75rem);
  287. padding-top: 2.75rem;
  288. z-index: 10;
  289. font-family: 'PingFang';
  290. }
  291. /* ai数字人 start */
  292. .chat-wrapper {
  293. position: relative;
  294. width: 10rem;
  295. height: 10rem;
  296. margin: 1.75rem auto 0 auto;
  297. background-color: #fff;
  298. border-radius: .125rem;
  299. z-index: 99;
  300. }
  301. .chat-content {
  302. width: 100%;
  303. height: calc(100% - 2.5rem);
  304. overflow: hidden;
  305. overflow-y: scroll;
  306. }
  307. .chat-message {
  308. display: flex;
  309. justify-content: flex-end;
  310. margin: .125rem;
  311. padding: .125rem;
  312. line-height: .5rem;
  313. font-size: .25rem;
  314. color: #000;
  315. }
  316. .chat-message p {
  317. position: relative;
  318. line-height: .5rem;
  319. padding: 0 .125rem;
  320. margin-right: .125rem;
  321. background-color: burlywood;
  322. border-radius: .05rem;
  323. }
  324. .chat-message p span{
  325. position: absolute;
  326. left: 0;
  327. bottom: -0.45rem;
  328. width: 1rem;
  329. height: .375rem;
  330. text-align: center;
  331. line-height: .375rem;
  332. border: 1px solid #000;
  333. border-radius: .05rem;
  334. font-size: .175rem;
  335. cursor: pointer;
  336. }
  337. .chat-message p span:hover{
  338. background-color: #999;
  339. }
  340. .chat-message p span.remove-btn{
  341. border: none;
  342. color: #999;
  343. }
  344. .chat-message p span.remove-btn:hover{
  345. background-color: #fff;
  346. }
  347. .chat-message img {
  348. display: block;
  349. width: .5rem;
  350. height: .5rem;
  351. border-radius: 50%;
  352. }
  353. .bot-message {
  354. display: flex;
  355. flex-direction: row-reverse;
  356. justify-content: flex-end;
  357. }
  358. .bot-message p {
  359. margin-left: .125rem;
  360. background-color: rgb(0, 209, 112);
  361. }
  362. .loading{
  363. position: relative;
  364. }
  365. .loading img {
  366. display: block;
  367. width: .25rem;
  368. height: .25rem;
  369. margin-top: .125rem;
  370. animation: rotate 2s linear infinite;
  371. }
  372. @keyframes rotate {
  373. from {
  374. transform: rotate(0deg);
  375. }
  376. to {
  377. transform: rotate(360deg);
  378. }
  379. }
  380. .chat-send {
  381. width: 100%;
  382. height: 2.5rem;
  383. background-color: #fff;
  384. border-radius: .125rem;
  385. }
  386. .chat-send textarea {
  387. display: block;
  388. width: calc(100% - .5rem);
  389. height: 1.25rem;
  390. font-size: .3rem;
  391. line-height: .375rem;
  392. border: none;
  393. padding: .25rem;
  394. background-color: #e4e4e4;
  395. }
  396. .send-button-container {
  397. text-align: right;
  398. }
  399. .send-button {
  400. margin: .125rem .25rem 0 0;
  401. padding: 0 .25rem;
  402. line-height: .5rem;
  403. font-size: .325rem;
  404. color: #000;
  405. }
  406. .send-disabled-button {
  407. color: #7c7c7c;
  408. }
  409. /* ai数字人 end */