chats.css 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633
  1. /*PC端**/
  2. @media screen and (min-width:768px) {
  3. html,body{
  4. height: 100%;
  5. background: #FFFFFF;
  6. }
  7. #globalHead{ width: 100%;height: auto;position: fixed;top: 0;left: 0;z-index: 1999;box-shadow: 3px 3px 5px rgba(0,0,0,.1);display: none;}
  8. #globalHead .baseHeadTop{ display: none; }
  9. #globalHead .baseTopNav{ display: none; }
  10. #globalHead .hotKey{ display: none; }
  11. #globalHead .search{ margin-top: 0; }
  12. #globalHead .wechat_qrcode{ margin-top:5px; display: none;}
  13. #globalHead .baseHeadCenter .wrap{ padding: 10px 0;height: auto; }
  14. #globalHead .baseHeadCenter .logo{ width: 140px;height: 44px;margin-right: 162px; }
  15. #caimei-chat-content{
  16. height: 100%;
  17. }
  18. /*采美AI助手弹窗样式*/
  19. .cm_ai_container_body{
  20. width: 100%;
  21. height: 100%;
  22. box-sizing: border-box;
  23. position: relative;
  24. display: flex;
  25. }
  26. .cm_ai_container_records{
  27. width: 300px;
  28. box-shadow: 1px 0 20px rgba(0,0,0,.02);
  29. display: flex;
  30. flex-direction: column;
  31. height: 100%;
  32. box-sizing: border-box;
  33. padding: 10px 24px;
  34. position: absolute;
  35. flex: 0 0 auto;
  36. background-image: linear-gradient(180deg,#f0edf7 .03%,#ebeaf5 32.19%,#e8e8f3 68.86%,#e4eaf7 99.12%);
  37. }
  38. .cm_ai_container_records .cm_ai_records_btn{
  39. height: 48px;
  40. line-height: 16px;
  41. cursor: pointer;
  42. flex-shrink: 0;
  43. padding: 16px 0;
  44. box-sizing: border-box;
  45. margin-bottom: 12px;
  46. background-color: rgba(255, 91, 0, 0.05);
  47. text-align: center;
  48. border-radius: 8px;
  49. display: flex;
  50. justify-content: center;
  51. color: #ff5b00 !important;
  52. opacity: 1 ;
  53. }
  54. .cm_ai_container_records .cm_ai_records_btn.disabled{
  55. cursor: not-allowed;
  56. opacity: 0.7 ;
  57. }
  58. .cm_ai_container_records .cm_ai_records_btn.show:hover{
  59. background-color: rgba(255, 91, 0, 0.1);
  60. }
  61. .cm_ai_container_records .cm_ai_records_btn .cm_ai_add{
  62. width: 16px;
  63. height: 16px;
  64. display: flex;
  65. background: url("/img/base/icon-aiAdd@2x.png") no-repeat;
  66. background-size: cover;
  67. margin-right: 3px;
  68. }
  69. .cm_ai_container_records .cm_ai_records_list{
  70. flex: 1;
  71. display: flex;
  72. flex-direction: column;
  73. overflow: hidden;
  74. }
  75. .cm_ai_container_records .cm_ai_records_item{
  76. display: flex;
  77. align-items: flex-start;
  78. height: 62px;
  79. padding: 14px 10px;
  80. gap: 8px;
  81. box-sizing: border-box;
  82. flex-direction: column;
  83. justify-content: space-between;
  84. cursor: pointer;
  85. }
  86. .cm_ai_container_records .cm_ai_records_item:hover{
  87. border-radius: 9px;
  88. background: hsla(0, 0%, 100%, .5);
  89. }
  90. .cm_ai_container_records .cm_ai_records_item .content{
  91. font-size: 14px;
  92. font-weight: 500;
  93. line-height: 14px;
  94. color: #50525c;
  95. display: -webkit-box;
  96. text-overflow: ellipsis;
  97. overflow: hidden;
  98. word-break: break-all;
  99. -webkit-line-clamp: 1;
  100. -webkit-box-orient: vertical;
  101. }
  102. .cm_ai_container_records .cm_ai_records_item .time{
  103. font-size: 12px;
  104. font-weight: 400;
  105. line-height: 12px;
  106. color: #848691;
  107. }
  108. .cm_ai_container_records .cm_ai_records_user{
  109. flex-shrink: 0;
  110. display: flex;
  111. align-items: center;
  112. height: 72px;
  113. padding: 0 22px;
  114. font-size: 14px;
  115. cursor: pointer;
  116. border-top: 1px solid hsla(210, 3%, 87%, .5);
  117. }
  118. .cm_ai_container_records .cm_ai_records_user .avatar{
  119. width: 24px;
  120. height: 24px;
  121. border-radius: 100%;
  122. overflow: hidden;
  123. }
  124. .cm_ai_container_records .cm_ai_records_user .name{
  125. margin-left: 8px;
  126. }
  127. .cm_ai_container_main{
  128. width: calc(100% - 300px);
  129. height: 100%;
  130. margin-left: 300px;
  131. background-image: radial-gradient(circle at 14% 85%,#e7ecf7 0,rgba(231,236,247,0) 37%),radial-gradient(circle at 3.4% 3.7%,rgba(245,237,241,.5) 0,rgba(245,237,241,0) 28%),radial-gradient(circle at 100% 18%,#e8ebea 0,hsla(160,7%,92%,0) 30%),linear-gradient(180deg,#f5f4f6,#e6ebf7);
  132. }
  133. .cm_ai_container{
  134. width: 100%;
  135. height: 100%;
  136. display: flex;
  137. flex-direction: column;
  138. box-sizing: border-box;
  139. padding:0 15px;
  140. position: relative;
  141. }
  142. .cm_ai_mall_header{
  143. box-sizing: border-box;
  144. position: absolute;
  145. left: 0;
  146. top: 0;
  147. right: 0;
  148. display: flex;
  149. align-items: center;
  150. justify-content: space-between;
  151. height: 64px;
  152. width: 100%;
  153. padding: 0 24px;
  154. background-image: linear-gradient(360deg,#f0edf7 .03%,#ebeaf5 32.19%,#e8e8f3 68.86%,#e4eaf7 99.12%);
  155. -webkit-backdrop-filter: blur(20px);
  156. backdrop-filter: blur(20px);
  157. z-index: 99;
  158. }
  159. .cm_ai_mall_header .cm_ai_logo{
  160. display: flex;
  161. align-items: center;
  162. flex: 0 0 auto;
  163. }
  164. .cm_ai_mall_header .cm_ai_logo .logo{
  165. width: 120px;
  166. height: auto;
  167. }
  168. .cm_ai_mall_header .cm_ai_extra{
  169. flex: none;
  170. }
  171. .cm_ai_mall_header .cm_ai_extra .index{
  172. color: #1e1f24;
  173. cursor: pointer;
  174. }
  175. .cm_ai_mall_header .cm_ai_extra .index:hover{
  176. color: #ff5b00;
  177. }
  178. .cm_ai_content{
  179. width: 850px;
  180. height: auto;
  181. background-color: #FFFFFF;
  182. box-shadow: 0 16px 20px 0 rgba(174,167,223,.2);
  183. border-radius: 8px;
  184. box-sizing: border-box;
  185. padding: 10px;
  186. margin:0px auto 20px;
  187. position: relative;
  188. }
  189. .cm_ai_header{ width: 100%;height: 24px;box-sizing: border-box;justify-content: left;align-items: center;display: inline-flex;}
  190. .cm_ai_header .cm_ai_icon{ width: 24px;height: 24px;box-sizing: border-box;margin-right: 5px }
  191. .cm_ai_header .cm_ai_icon img{ width: 24px;height: 24px;display: block; }
  192. .cm_ai_header .cm_ai_text{line-height: 24px;font-size: 14px;color: #ff5b00;font-weight: 600; }
  193. .cm_ai_content .cm_ai_input{
  194. display: flex;
  195. align-items: center;
  196. justify-content: space-between;
  197. width: 100%;
  198. min-height: 60px;
  199. padding: 0 ;
  200. overflow: hidden;
  201. box-sizing: border-box;
  202. }
  203. .cm_ai_content .cm_ai_input textarea{
  204. width: 100%;
  205. max-height: 106px !important;
  206. min-height: 60px !important;
  207. font-size: 14px;
  208. line-height: 1.5715;
  209. background-color: transparent;
  210. border: none;
  211. box-shadow: none;
  212. overflow: auto;
  213. scrollbar-width:none;
  214. resize: none;
  215. box-sizing: border-box;
  216. padding-left: 4px;
  217. }
  218. .cm_ai_content .cm_ai_input textarea:focus {
  219. outline: none;
  220. }
  221. .cm_ai_content .cm_ai_button_main{
  222. position: relative;
  223. right: 0;
  224. bottom: 0;
  225. display: flex;
  226. flex-direction: row-reverse;
  227. justify-content: space-between;
  228. width: 100%;
  229. height: 32px;
  230. margin-top: 4px;
  231. }
  232. .cm_ai_content .cm_ai_button{
  233. width: 66px;
  234. height: 32px;
  235. border-radius: 4px;
  236. background-image: linear-gradient(90deg, #FF9300 0%, #FF5B00 100%);
  237. display: inline-flex;
  238. align-items: center;
  239. justify-content: center;
  240. transition: all .16s;
  241. cursor: pointer;
  242. }
  243. .cm_ai_content .cm_ai_button.none{
  244. opacity: 0.5;
  245. cursor: not-allowed;
  246. }
  247. .cm_ai_content .cm_ai_button .cm_ai_icon{
  248. transition: all .16s;
  249. color: #FFFFFF;
  250. }
  251. .cm_ai_content .cm_ai_button:hover{
  252. transform: scale(1.05);
  253. }
  254. .cm_ai_content .cm_ai_button:hover .cm_ai_icon{
  255. transform: scale(1.05);
  256. }
  257. .cm_ai_answer_main{
  258. width: 850px;
  259. min-height: 600px;
  260. margin: 0 auto 15px;
  261. overflow-y: auto;
  262. flex: 9;
  263. padding: 64px 0 0 0;
  264. }
  265. .cm_ai_answer_main::-webkit-scrollbar{
  266. display: none;
  267. }
  268. .cm_ai_answer{
  269. width: 100%;
  270. height: auto;
  271. box-sizing: border-box;
  272. position: relative;
  273. display: flex;
  274. }
  275. .cm_ai_answer.info{
  276. padding-left:0;
  277. padding-right:0;
  278. }
  279. .cm_ai_answer.chat{
  280. padding-left:36px;
  281. justify-content: flex-start;
  282. }
  283. .cm_ai_answer.user{
  284. padding-left:0px;
  285. padding-right:36px;
  286. justify-content: flex-end;
  287. }
  288. .cm_ai_answer.user .cm_ai_html_icon{
  289. width: 32px;
  290. height: 32px;
  291. border-radius: 20px;
  292. background-color: #FFFFFF;
  293. position: absolute;
  294. right: 0;
  295. top: 0;
  296. box-sizing: border-box;
  297. padding: 5px;
  298. }
  299. .cm_ai_answer.chat .cm_ai_html_icon{
  300. width: 32px;
  301. height: 32px;
  302. border-radius: 20px;
  303. background-color: #FFFFFF;
  304. position: absolute;
  305. left: 0;
  306. top: 0;
  307. box-sizing: border-box;
  308. padding: 5px;
  309. }
  310. .cm_ai_answer .cm_ai_html_icon.user{
  311. background-color: rgba(255,91,0,0.1);
  312. }
  313. .cm_ai_answer .cm_ai_html_icon img{
  314. width: 22px;
  315. height: 22px;
  316. border-radius: 20px;
  317. display: block;
  318. }
  319. .cm_ai_answer .cm_ai_html{
  320. width: auto;
  321. min-height: 50px;
  322. border-radius: 0 16px 16px 16px;
  323. line-height: 1.5715;
  324. background-color: #FFFFFF;
  325. box-sizing: border-box;
  326. padding: 10px;
  327. font-size: 16px;
  328. color: #666666;
  329. }
  330. .cm_ai_answer .cm_ai_html.info{
  331. width: 100%;
  332. border-radius: 16px;
  333. padding: 14px;
  334. }
  335. .cm_ai_answer .cm_ai_html.info h1{
  336. font-size: 30px;
  337. font-weight: 600;
  338. color: #333333;
  339. line-height: 60px;
  340. letter-spacing:2px;
  341. }
  342. .cm_ai_answer .cm_ai_html.user{
  343. min-height: 50px;
  344. margin-bottom: 0;
  345. border-radius: 16px 16px 0 16px;
  346. background-color: rgba(255, 91, 0, 0.1);
  347. font-size: 16px;
  348. color: #333333;
  349. }
  350. .cm_ai_answer .cm_ai_html .cm_ai_html_loading{
  351. width: 60px;
  352. }
  353. .cm_ai_answer .cm_ai_link{
  354. width: 100%;
  355. min-height: 100px;
  356. border-radius: 8px;
  357. line-height: 1.5715;
  358. background-color: #FFFFFF;
  359. box-sizing: border-box;
  360. margin: 10px 0 0 0;
  361. }
  362. .cm_ai_answer .cm_ai_link .cm_ai_link_p{
  363. line-height: 22px;
  364. font-size: 14px;
  365. color: #666666;
  366. }
  367. .cm_ai_answer .cm_ai_link .cm_ai_link_a{
  368. width: 100%;
  369. line-height: 22px;
  370. font-size: 14px;
  371. color: #999999;
  372. display: inline-block;
  373. text-decoration: underline;
  374. }
  375. .cm_ai_answer .cm_ai_link .cm_ai_link_a:hover{
  376. text-decoration-color: #ff5b00;
  377. color: #ff5b00;
  378. }
  379. footer{display: none;}
  380. #scrollTop .item .phone{ display: none; }
  381. #scrollTop .item .Iphone{ display: none; }
  382. }
  383. /*移动端**/
  384. @media screen and (max-width:768px){
  385. html,body{
  386. height: 100%;
  387. background: #FFFFFF;
  388. }
  389. #globalHead{ display: none;}
  390. .baseHeadCenter{ height: 14vw;}
  391. .baseHeadCenter .searchBox{display: none;}
  392. /*采美AI助手弹窗样式*/
  393. #caimei-chat-content,.cm_ai_container_body,.cm_ai_container_main{
  394. width: 100%;
  395. height: 100%;
  396. position: relative;
  397. }
  398. .cm_ai_container_records{
  399. display: none;
  400. }
  401. .cm_ai_container{
  402. width: 100%;
  403. height: 100%;
  404. display: flex;
  405. flex-direction: column;
  406. box-sizing: border-box;
  407. padding:0 3vw 0 3vw;
  408. background-image: radial-gradient(circle at 14% 85%,#e7ecf7 0,rgba(231,236,247,0) 37%),radial-gradient(circle at 3.4% 3.7%,rgba(245,237,241,.5) 0,rgba(245,237,241,0) 28%),radial-gradient(circle at 100% 18%,#e8ebea 0,hsla(160,7%,92%,0) 30%),linear-gradient(180deg,#f5f4f6,#e6ebf7);
  409. overflow: auto;
  410. position: relative;
  411. }
  412. .cm_ai_mall_header{
  413. box-sizing: border-box;
  414. position: absolute;
  415. left: 0;
  416. top: 0;
  417. right: 0;
  418. display: flex;
  419. align-items: center;
  420. justify-content: space-between;
  421. height: 14vw;
  422. width: 100%;
  423. padding: 0 3vw;
  424. background-image: linear-gradient(360deg,#f0edf7 .03%,#ebeaf5 32.19%,#e8e8f3 68.86%,#e4eaf7 99.12%);
  425. -webkit-backdrop-filter: blur(20px);
  426. backdrop-filter: blur(20px);
  427. z-index: 99;
  428. }
  429. .cm_ai_mall_header .cm_ai_logo{
  430. display: flex;
  431. align-items: center;
  432. flex: 0 0 auto;
  433. }
  434. .cm_ai_mall_header .cm_ai_logo .logo{
  435. width: 26vw;
  436. height: auto;
  437. }
  438. .cm_ai_mall_header .cm_ai_extra{
  439. flex: none;
  440. }
  441. .cm_ai_mall_header .cm_ai_extra .index{
  442. color: #1e1f24;
  443. cursor: pointer;
  444. }
  445. .cm_ai_content{
  446. width: 100%;
  447. height: auto;
  448. background-color: #FFFFFF;
  449. box-shadow: 0 16px 20px 0 rgba(174,167,223,.2);
  450. border-radius: 8px;
  451. box-sizing: border-box;
  452. padding: 10px;
  453. margin:15px 0;
  454. position: relative;
  455. }
  456. .cm_ai_header{ width: 100%;height: 24px;box-sizing: border-box;justify-content: left;align-items: center;display: inline-flex;}
  457. .cm_ai_header .cm_ai_icon{ width: 24px;height: 24px;box-sizing: border-box;margin-right: 5px }
  458. .cm_ai_header .cm_ai_icon img{ width: 24px;height: 24px;display: block; }
  459. .cm_ai_header .cm_ai_text{line-height: 24px;font-size: 14px;color: #ff5b00;font-weight: 600; }
  460. .cm_ai_content .cm_ai_input{
  461. display: flex;
  462. align-items: center;
  463. justify-content: space-between;
  464. width: 100%;
  465. min-height: 60px;
  466. padding: 5px 0;
  467. overflow: hidden;
  468. box-sizing: border-box;
  469. }
  470. .cm_ai_content .cm_ai_input textarea{
  471. width: 100%;
  472. max-height: 106px !important;
  473. min-height: 60px !important;
  474. font-size: 14px;
  475. line-height: 1.5715;
  476. background-color: transparent;
  477. border: none;
  478. box-shadow: none;
  479. overflow: auto;
  480. scrollbar-width:none;
  481. resize: none;
  482. box-sizing: border-box;
  483. padding-left: 4px;
  484. }
  485. .cm_ai_content .cm_ai_input textarea:focus {
  486. outline: none;
  487. }
  488. .cm_ai_content .cm_ai_button_main{
  489. position: relative;
  490. right: 0;
  491. bottom: 0;
  492. display: flex;
  493. flex-direction: row-reverse;
  494. justify-content: space-between;
  495. width: 100%;
  496. height: 32px;
  497. margin-top: 4px;
  498. }
  499. .cm_ai_content .cm_ai_button{
  500. width: 66px;
  501. height: 32px;
  502. border-radius: 4px;
  503. background-image: linear-gradient(90deg, #FF9300 0%, #FF5B00 100%);
  504. display: inline-flex;
  505. align-items: center;
  506. justify-content: center;
  507. transition: all .16s;
  508. cursor: pointer;
  509. }
  510. .cm_ai_content .cm_ai_button.none{
  511. opacity: 0.5;
  512. cursor: not-allowed;
  513. }
  514. .cm_ai_content .cm_ai_button .cm_ai_icon{
  515. transition: all .16s;
  516. color: #FFFFFF;
  517. }
  518. .cm_ai_content .cm_ai_button:hover{
  519. transform: scale(1.05);
  520. }
  521. .cm_ai_content .cm_ai_button:hover .cm_ai_icon{
  522. transform: scale(1.05);
  523. }
  524. .cm_ai_answer_main{
  525. width: 100%;
  526. min-height: 100vw;
  527. overflow-y: auto;
  528. flex: 9;
  529. padding: 14vw 0 0 0;
  530. }
  531. .cm_ai_answer_main::-webkit-scrollbar{
  532. display: none;
  533. }
  534. .cm_ai_answer{
  535. width: 100%;
  536. height: auto;
  537. box-sizing: border-box;
  538. position: relative;
  539. margin: 10px 0;
  540. display: flex;
  541. }
  542. .cm_ai_answer.info{
  543. padding-left:0;
  544. padding-right:0;
  545. }
  546. .cm_ai_answer.chat{
  547. justify-content: flex-start;
  548. }
  549. .cm_ai_answer.user{
  550. justify-content: flex-end;
  551. }
  552. .cm_ai_answer .cm_ai_html_icon{
  553. width: 32px;
  554. height: 32px;
  555. border-radius: 20px;
  556. background-color: #FFFFFF;
  557. position: absolute;
  558. left: 0;
  559. top: 0;
  560. box-sizing: border-box;
  561. padding: 5px;
  562. display: none;
  563. }
  564. .cm_ai_answer .cm_ai_html_icon.user{
  565. background-color: rgba(255,91,0,0.1);
  566. }
  567. .cm_ai_answer .cm_ai_html_icon img{
  568. width: 22px;
  569. height: 22px;
  570. border-radius: 20px;
  571. display: block;
  572. }
  573. .cm_ai_answer .cm_ai_html{
  574. min-height: 50px;
  575. border-radius: 0 16px 16px 16px;
  576. line-height: 1.5715;
  577. background-color: #FFFFFF;
  578. box-sizing: border-box;
  579. padding: 10px;
  580. }
  581. .cm_ai_answer .cm_ai_html.info{
  582. width: 100%;
  583. border-radius: 16px;
  584. padding: 14px;
  585. }
  586. .cm_ai_answer .cm_ai_html.info h1{
  587. font-size: 6vw;
  588. font-weight: 600;
  589. color: #333333;
  590. line-height: 14vw;
  591. letter-spacing: 0.3vw;
  592. }
  593. .cm_ai_answer .cm_ai_html.user{
  594. min-height: 50px;
  595. border-radius: 16px 16px 0 16px;
  596. background-color: rgba(255, 91, 0, 0.1);
  597. font-size: 16px;
  598. color: #666666;
  599. }
  600. .cm_ai_answer .cm_ai_html .cm_ai_html_loading{
  601. width: 60px;
  602. }
  603. .cm_ai_answer .cm_ai_link{
  604. width: 100%;
  605. min-height: 100px;
  606. border-radius: 8px;
  607. line-height: 1.5715;
  608. background-color: #FFFFFF;
  609. box-sizing: border-box;
  610. margin: 10px 0 0 0;
  611. }
  612. .cm_ai_answer .cm_ai_link .cm_ai_link_p{
  613. line-height: 22px;
  614. font-size: 14px;
  615. color: #666666;
  616. }
  617. .cm_ai_answer .cm_ai_link .cm_ai_link_a{
  618. width: 100%;
  619. line-height: 22px;
  620. font-size: 14px;
  621. color: #999999;
  622. display: inline-block;
  623. text-decoration: underline;
  624. }
  625. .cm_ai_answer .cm_ai_link .cm_ai_link_a:hover{
  626. text-decoration-color: #666666;
  627. color: #666666;
  628. }
  629. footer{display: none;}
  630. }